我有2个分支:
我结帐branchB,并在我在那个分支上修理一个小东西.
commit f2c88cad3d7648cad9c12e724d09db0952abec63
Author: Name <email>
Date: Fri Mar 18 09:10:22 2016 -0400
Fix small bug on dashboard
Run Code Online (Sandbox Code Playgroud)
然后,我做了git push origin branchB
我应该做的
git push origin branchA branchB
现在,在branchB我有
commit f2c88cad3d7648cad9c12e724d09db0952abec63
Run Code Online (Sandbox Code Playgroud)
但我没有在branchA上
如何将1个提交复制f2c88ca到我的branchA中?
任何关于此的提示将非常感谢!
<input type="file" upload-files multiple />
Run Code Online (Sandbox Code Playgroud)
<button class="btn btn-link" ng-click="store()" >Create</button>
Run Code Online (Sandbox Code Playgroud)
myApp.directive('uploadFiles', function () {
return {
scope: true,
link: function (scope, element, attrs) {
element.bind('change', function (event) {
var files = event.target.files;
for (var i = 0; i < files.length; i++) {
scope.$emit("seletedFile", { file: files[i] });
}
});
}
};
});
Run Code Online (Sandbox Code Playgroud)
$scope.files = [];
$scope.$on("seletedFile", function (event, args) {
console.log("event is ", event);
console.log("args is ", args);
$scope.$apply(function () {
$scope.files.push(args.file);
});
});
Run Code Online (Sandbox Code Playgroud)
我试着编译我的第一个iOS Hello应用程序.
ViewController.swift
//
// ViewController.swift
// My First Project
import UIKit
class ViewController: UIViewController {
// Declare components
@IBOutlet weak var inputLabel: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
@IBAction func submitBtn(_ sender: Any) {
inputLabel.text = "Hello World"
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Run Code Online (Sandbox Code Playgroud)
越来越 Build Succeeded
但是大约5秒后,我得到了这个
0x0000000103915f69 -[UIApplication workspaceDidEndTransaction:] …Run Code Online (Sandbox Code Playgroud) 我在Laravel应用程序中使用psql.我正在尝试创建我的用户,并且我一直收到此错误
唯一违规:7错误:重复键值违反唯一约束"users_pkey"
$user = User::where('account_id','=',$id)->first();
$user->email = $account->email_address;
$user->fb_email = '';
$user->tw_email = '';
$user->fb_access_token = '';
$user->fb_profile_id = '';
$user->fb_page_id = '';
$user->fb_username = '';
$user->save();
Run Code Online (Sandbox Code Playgroud)
CREATE TABLE "users" (
"id" serial NOT NULL ,
"account_id" varchar(255) NOT NULL ,
"email" varchar(255) NOT NULL ,
"fb_email" varchar(255) NOT NULL ,
"tw_email" varchar(255) NOT NULL ,
"created_at" timestamp(0) without time zone,
"updated_at" timestamp(0) without time zone,
"fb_access_token" varchar(255) NOT NULL ,
"fb_profile_id" varchar(255) NOT NULL ,
"fb_page_id" varchar(255) …Run Code Online (Sandbox Code Playgroud) Laravel版本:5.1.45(LTS)
PHP版本:5.6.1
我正在尝试使用Laravel 任务调度每1分钟运行一次命令.
我已将此行添加到我的cron选项卡文件中
* * * * * php artisan schedule:run >> /dev/null 2>&1
这是我的/app/Console/Kernel.php
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
\App\Console\Commands\Inspire::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')->hourly(); …Run Code Online (Sandbox Code Playgroud) file.eps我从http://www.shutterstock.com/下载的文件,它看起来像这样:

将所有这些图标导出到自己的部分,以便我可以在我的网站上使用它们.
一个接一个地手动执行此操作非常耗时,现在我正在寻找更好的方法来导出所有这些.
有没有任何Mac应用程序帮助我导出/切片我的file.eps多个icon.png文件?
我甚至需要提取它们吗?
我试图向https://randomuser.me/api/提出请求
import requests
import json
url = "https://randomuser.me/api/"
data = requests.get(url).json
print data
Run Code Online (Sandbox Code Playgroud)
我不断得到
# <bound method Response.json of <Response [200]>>
Run Code Online (Sandbox Code Playgroud)
我如何看待json响应?像这样的东西
{
"results": [
{
"user": {
"gender": "female",
"name": {
"title": "ms",
"first": "kerttu",
"last": "tervo"
},
"location": {
"street": "9102 aleksanterinkatu",
"city": "eurajoki",
"state": "pirkanmaa",
"zip": 67561
},
"email": "kerttu.tervo@example.com",
"username": "silvercat709",
"password": "papa",
"salt": "tOCPX2GL",
"md5": "86c60371eeb94596916d66cee898c869",
"sha1": "d06c4f2e43f8c0e53d88e538655f1152169ce575",
"sha256": "5a6b011841b27b08c38d2091dfb3d7ca50f55192ca0fcf6929dae098316c9aae",
"registered": 1419602511,
"dob": 1266822680,
"phone": "03-479-964",
"cell": "047-950-61-69",
"HETU": "220210A290R",
"picture": {
"large": …Run Code Online (Sandbox Code Playgroud) 我正在努力改善自动化的构建时间.现在只需要14分钟来构建前端.
这是我到目前为止所得到的
web.dockerfile
### STAGE 1: Build ###
FROM node:9.3.0-alpine as builder
COPY package.json ./
RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
RUN npm i
RUN mkdir /web
RUN cp -R ./node_modules ./web
WORKDIR /web
COPY . .
RUN $(npm bin)/ng build --prod --build-optimizer
### STAGE 2: Setup ###
FROM nginx:1.13.8-alpine
COPY nginx.conf /etc/nginx/nginx.conf …Run Code Online (Sandbox Code Playgroud) 我使用的是 Laravel 5.8,我们在我们的应用程序中使用了带有 PUSHER 的网络套接字。它在本地或当我处于 HTTP 模式时完美地广播。当我将设置更新为 HTTPS 时,广播不再有效。
Any hints on this ? anyone ?
Run Code Online (Sandbox Code Playgroud)
我试过了
#客户端
window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
wsHost: window.location.hostname,
encrypted: false,
// wsPort: 6001,
// wssPort: 6001,
disableStats: true,
forceTLS: true,
enabledTransports: ['ws', 'wss']
});
Run Code Online (Sandbox Code Playgroud)
和
#服务器端
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'scheme' => 'http',
'useTLS' => true,
'debug' => true,
'curl_options' => …Run Code Online (Sandbox Code Playgroud) 我最近在Sublime Text 3 Editor上安装了一堆软件包.我没有跟踪我安装的内容,但现在我想知道我安装的所有软件包,只是为了作为参考.
我尝试输入:cmd + shift + P,然后输入:list

看到Pckage Control:List Packages后,按Enter键
然后我会看到所有包的列表.很棒,但还不完美!

我想知道是否有更好的方式以更易读的格式列出它们,如果可能的话可以复制它们.
在Sublime Text 3中列出所有已安装软件包的最实用方法是什么?
laravel ×4
php ×4
laravel-5 ×3
angular-cli ×1
angular5 ×1
angularjs ×1
css ×1
docker ×1
dockerfile ×1
eps ×1
git ×1
icons ×1
ios ×1
javascript ×1
mysql ×1
nginx ×1
postgresql ×1
pusher ×1
pusher-js ×1
python ×1
sprite-sheet ×1
sublimetext ×1
sublimetext3 ×1
swift ×1
websocket ×1