-
Git info in your prompt
brew install vcprompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /* | |
| usage: | |
| ``` | |
| jpm xpi # makes myaddon.xpi | |
| npm install addon-linter | |
| ./node_modules/.bin/addon-linter myaddon.xpi | node addon-lint-consumer.js | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* some wild-ass loop parties */ | |
| var x = 6; | |
| var numberArray = [ | |
| 1, /* 0th item, b/c arrays *index* from 0 */ | |
| 2, /* 1st item */ | |
| 3 /* 2nd item */ | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| log = console.log.bind(console); | |
| error = console.error.bind(console); | |
| function cors1 (url, method, data) { | |
| return new Promise(function (resolve, reject) { | |
| var createCORSRequest = function(method, url) { | |
| var xhr = new XMLHttpRequest(); | |
| if ("withCredentials" in xhr) { | |
| // Most browsers. | |
| xhr.open(method, url, true); | |
| } else if (typeof XDomainRequest != "undefined") { |
Running is a very complex activity. You may or may not have the potential to be elite. You always have the potential to improve. This checklist is meant to help you find areas to work on, and maintain good practices. It's a big list! The opportunity is that there is always something to work on, even on your blackest days.
Claim 1: Run Smarter >> Run Harder.
Claim 2: Fast improvement comes from fixing your weakest areas.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ^C46934 glind ~/gits/fjord [git:master_]$ vagrant up | |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| ==> default: Box 'trusty64' could not be found. Attempting to find and install... | |
| default: Box Provider: virtualbox | |
| default: Box Version: >= 0 | |
| ==> default: Box file was not detected as metadata. Adding it directly... | |
| ==> default: Adding box 'trusty64' (v0) for provider: virtualbox | |
| default: Downloading: https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box | |
| ==> default: Successfully added box 'trusty64' (v0) for 'virtualbox'! | |
| ==> default: Importing base box 'trusty64'... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var URL = "https://geo.mozilla.org/country.json"; | |
| var URL = "http://people.mozilla.org/~glind/"; | |
| var myHeaders = new Headers(); | |
| var myInit = { method: 'GET', | |
| headers: myHeaders, | |
| mode: 'cors', | |
| cache: 'default' }; | |
| var myRequest = new Request(URL,myInit); |