create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| /* Exercise: Loops and Functions #43 */ | |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func Sqrt(x float64) float64 { | |
| z := float64(2.) |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| /** | |
| * Invokes a function, performing up to 5 retries with exponential backoff. | |
| * Retries with delays of approximately 1, 2, 4, 8 then 16 seconds for a total of | |
| * about 32 seconds before it gives up and rethrows the last error. | |
| * See: https://developers.google.com/google-apps/documents-list/#implementing_exponential_backoff | |
| <h3>Examples:</h3> | |
| <pre>//Calls an anonymous function that concatenates a greeting with the current Apps user's email | |
| var example1 = GASRetry.call(function(){return "Hello, " + Session.getActiveUser().getEmail();}); | |
| </pre><pre>//Calls an existing function | |
| var example2 = GASRetry.call(myFunction); |
| #!/bin/bash | |
| # Copy file or pipe to Xorg clipboard | |
| # Required program(s) | |
| req_progs=(xclip) | |
| for p in ${req_progs[@]}; do | |
| hash "$p" 2>&- || \ | |
| { echo >&2 " Required program \"$p\" not installed."; exit 1; } | |
| done |
| #!/bin/bash | |
| # Paste contents of Xorg clipboard to a file from the command line | |
| filename=$@ | |
| pasteinfo="clipboard contents" | |
| # Display usage if no parameters given | |
| if [[ -z "$@" ]]; then | |
| echo " ${0##*/} <filename> - paste contents of context-menu clipboard to file" | |
| exit |
| var hexChar = ["0", "1", "2", "3", "4", "5", "6", "7","8", "9", "A", "B", "C", "D", "E", "F"]; | |
| function byteToHex(b) { | |
| return hexChar[(b >> 4) & 0x0f] + hexChar[b & 0x0f]; | |
| } |
| <html> | |
| <head> | |
| </head> | |
| <script type="text/javascript"> | |
| function makeShort() | |
| { | |
| var longUrl=document.getElementById("longurl").value; | |
| var request = gapi.client.urlshortener.url.insert({ | |
| 'resource': { | |
| 'longUrl': longUrl |
I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.
From Require.js - Why AMD:
The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"
I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).