=====
I made a book, its one page.
| /** | |
| * Parses XMLHttpRequest getAllResponseHeaders into a key-value map | |
| */ | |
| function getResponseHeaderObject (xhrObject) { | |
| var headers = xhrObject.getAllResponseHeaders() | |
| var list = {} | |
| var pairs | |
| if (!headers) { | |
| return list |
| // t (in CoffeeScript) | |
| // | |
| // Description: Quick Templating, optional customizing open/closing tags | |
| // | |
| // Author: Nijikokun <nijikokun@gmail.com> | |
| // | |
| // Usage: | |
| // | |
| // t('Hello {name}!', { name: 'World' }); | |
| // |
=====
I made a book, its one page.
| A comparison of Collection+JSON, HAL, JSON-LD and SIREN media types. | |
| Discussion at | |
| http://sookocheff.com/posts/2014-03-11-on-choosing-a-hypermedia-format/ |
| #!/bin/sh | |
| command="${*}" | |
| printf "Initialized REPL for `%s`\n" "$command" | |
| printf "%s> " "$command" | |
| read -r input | |
| while [ "$input" != "" ]; | |
| do | |
| eval "$command $input" | |
| printf "%s> " "$command" |
| /** | |
| * Advanced Window Snap | |
| * Snaps the Active Window to one of nine different window positions. | |
| * | |
| * @author Andrew Moore <andrew+github@awmoore.com> | |
| * @version 1.0 | |
| */ | |
| /** | |
| * SnapActiveWindow resizes and moves (snaps) the active window to a given position. |
If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.
Usage:
git-status [directory]This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.
$ brew install irssiYou should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
ssh-agent from Windows Services:Services in the Start Menu or Win+R and then type services.msc to launch the Services window;OpenSSH Authentication Agent in the list and double click on it;OpenSSH Authentication Agent Properties window that appears, choose Automatic from the Startup type: dropdown and click Start from Service status:. Make sure it now says Service status: Running.git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe