install via
brew tap railwaycat/homebrew-emacsmacport
brew install emacs-mac --with-spacemacs-icon # OR, brew cask install emacs-mac
brew linkapps
| #### | |
| # ZSH function to auto-switch to correct Node version | |
| # https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
| # | |
| # - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
| # | |
| # - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
| # | |
| # - Works correctly if your .nvmrc file contains something relaxed/generic, | |
| # like "4" or "v12.0" or "stable". |
| /* | |
| * A Geolocation object | |
| * | |
| * Note: Uses GPS or similar hardware for data if available through | |
| * the browser, but will fall back to using (Google) geolocation | |
| * services with current IP address automatically. | |
| * | |
| * @property {boolean} supported If the geolocation functions are available in the current context | |
| * @property {function} onsuccess The function to be called if the geolocation services are successful | |
| * @property {function} onerror The function to be called if an error occurs |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
| # unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
| # ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
| function ghc-pkg-clean() { | |
| for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
| do | |
| echo unregistering $p; ghc-pkg $* unregister $p | |
| done | |
| } | |
| # remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| // QUESTION | |
| // What does the following JavaScript code do? | |
| var | |
| obj1 = {value: 1}, | |
| obj2 = {value: 2}, | |
| obj3 = {value: 3}; | |
| var ValueCollect = function() { | |
| var values = []; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Test Promises</title> | |
| </head> | |
| <body> | |
| <script> | |
| var promise = new Promise(function(resolve, reject) { | |
| console.log('begin doing async part of promise'); |
wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark .dircolors
eval `dircolors ~/.dircolors`
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |