(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "fguillen.mail+spam@gmail.com"
cd /develop/myrepo
function saveToFile() { | |
var canvasData = document.getElementById('sampleCanvas').msToBlob(); | |
var windowsStorage = Windows.Storage; | |
var inputStream, outputStream; | |
windowsStorage.KnownFolders.picturesLibrary.createFileAsync('sample.png', windowsStorage.CreationCollisionOption.replaceExisting) | |
.then(function (file) { | |
return file.openAsync(windowsStorage.FileAccessMode.readWrite); | |
}).then(function (out) { | |
inputStream = canvasData.msDetachStream(); | |
canvasData.msClose(); |
# If you post to a Ruby on Rails REST API endpoint, then you'll get an | |
# InvalidAuthenticityToken exception unless you set a different | |
# content type in the request headers, since any post from a form must | |
# contain an authenticity token. | |
# | |
# This example shows you how to post to a rails endpoint. | |
require 'json' |
# This prevents capistrano from hanging when executing long tasks | |
# /etc/ssh/sshd_config | |
TCPKeepAlive yes | |
ClientAliveInterval 15 | |
ClientAliveCountMax 5 | |
# Restart sshd |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |