create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| function keepTrying(otherArgs, promise) { | |
| promise = promise||new Promise(); | |
| // try doing the important thing | |
| if(success) { | |
| promise.resolve(result); | |
| } else { | |
| setTimeout(function() { | |
| keepTrying(otherArgs, promise); |
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| alert('hello ' + document.location.href); |
| Key Name Resulting Keystroke | |
| {F1} - {F24} Function keys. For example: {F12} is the F12 key. | |
| {!} ! | |
| {#} # | |
| {+} + | |
| {^} ^ | |
| {{} { | |
| {}} } | |
| {Enter} ENTER key on the main keyboard | |
| {Escape} or {Esc} ESCAPE |
| package com.example.wear; | |
| import android.app.Activity; | |
| import android.hardware.Sensor; | |
| import android.hardware.SensorEvent; | |
| import android.hardware.SensorEventListener; | |
| import android.hardware.SensorManager; | |
| import android.os.Bundle; | |
| import android.support.wearable.view.WatchViewStub; | |
| import android.util.Log; |
| // There's some better solutions in the comments, so scroll down and see how other folks have improved this! | |
| // USAGE: | |
| // abbrState('ny', 'name'); | |
| // --> 'New York' | |
| // abbrState('New York', 'abbr'); | |
| // --> 'NY' | |
| function abbrState(input, to){ | |
| var myScript = document.createElement('script'); | |
| myScript.src = 'http://code.jquery.com/jquery-2.1.4.min.js'; | |
| myScript.onload = function() { | |
| console.log('jQuery loaded.'); | |
| }; | |
| document.body.appendChild(myScript); |