(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 "[email protected]"
cd /develop/myrepo
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # This prevents capistrano from hanging when executing long tasks | |
| # /etc/ssh/sshd_config | |
| TCPKeepAlive yes | |
| ClientAliveInterval 15 | |
| ClientAliveCountMax 5 | |
| # Restart sshd |
| # 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' |
| 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(); |
(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 "[email protected]"
cd /develop/myrepo