To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| Moved to: http://github.com/gf3/dotfiles/blob/master/bash_prompt |
| var fs = require("fs"); | |
| /** | |
| * Call fileHandler with the file name and file Stat for each file found inside | |
| * of the provided directory. | |
| * | |
| * Call the optionally provided completeHandler with an array of files (mingled | |
| * with directories) and an array of Stat objects (one for each of the found | |
| * files. | |
| * |
| using UnityEngine; | |
| using System.Collections; | |
| // copied and modified from http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
| public class SimplexNoise { // Simplex noise in 2D, 3D and 4D | |
| private static int[][] grad3 = new int[][] { | |
| new int[] {1,1,0}, new int[] {-1,1,0}, new int[] {1,-1,0}, new int[] {-1,-1,0}, | |
| new int[] {1,0,1}, new int[] {-1,0,1}, new int[] {1,0,-1}, new int[] {-1,0,-1}, | |
| new int[] {0,1,1}, new int[] {0,-1,1}, new int[] {0,1,-1}, new int[] {0,-1,-1}}; |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| // setting up postal and machina to work together | |
| /* | |
| 1. Download underscore.js and the node versions of postal.js, machina.js, and machina-postal.js | |
| from http://github.com/ifandelse | |
| 2. Change the location of underscore in the require() statements of the postal.js and machina.js | |
| 3. Connect machina to postal as follows: | |
| */ | |
| var postal = require('lib/ifandelse/postal'), |
| # Functions to activate/deactivate Continuum Analytics Anaconda Python distribution | |
| # by manipulating the $PATH. | |
| export ANACONDA_PATH="$HOME/anaconda/bin" | |
| function have_anaconda(){ | |
| [[ -n $path[(r)$ANACONDA_PATH] ]] | |
| } | |
| function anaconda_on(){ | |
| if have_anaconda ; then |
This note details the pin mappings for the Smartmaker Smartcore microcontrollers to Arduino standards pins.
The Smartmaker1 Smartcores are small-form-factor Arduino clones.
The special thing about Smartcores is their use of the Smartmaker Open System I/O Smartbus, which is basically a snap-together bus interface for components based on pairs of the Hirose DF9-31 connector. There are two flavors of the bus, Smartbus Basic with two connector (A+B) and Smartbus Full which add two additional connectors (A+B+C+D). Each connector has 31 pins, which are assigned different purposes. The Smartmaker Wiki has more details on the Smartbus configuration.
| # Voices available to `say` on OS X | |
| # "*" indicates new additions since 10.8 | |
| Agnes (en_US) | |
| Albert (en_US) | |
| Alex (en_US) | |
| *Alice (it_IT) | |
| *Alva (sv_SE) | |
| *Amelie (fr_CA) | |
| *Anna (de_DE) |
| #!/usr/bin/env python | |
| __author__ = "m.busche@gmail.com" | |
| # This program lets your blink1 device blink whenever Pi-hole has filtered ads | |
| # Have fun. | |
| # blink1 commandline tool: https://github.com/todbot/blink1/blob/master/docs/blink1-tool.md | |
| # Pi-hole https://github.com/pi-hole/pi-hole | |
| # To start this as a service I would recommend using supervisord |