- Raspberry Pi (I picked up a new 2B)
- Camera module
- Wifi adapter
- Power adapter (5.1V 2.1A)
- Micro USB
- Micro SD card
This file contains 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
#!/bin/bash | |
# Usage: rolls.sh PATH | |
for path in $1/**; do | |
dirname=`basename "$path"` | |
for file in $path/**; do | |
exiftool -overwrite_original -headline="roll $dirname" "$file" | |
done |
This file contains 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
checkForOuterAction: function checkForOuterAction(event) { | |
+ if (event.defaultPrevented) return | |
var isOuterAction = !this.containerEl.contains(event.target) && !this.targetEl.contains(event.target); | |
if (isOuterAction) this.props.onOuterAction(event); | |
}, |
This file contains 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
:20000000EDFE0000000000019DAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBE | |
:20002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 | |
:20004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0 | |
:20006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0 | |
:20008000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80 | |
:2000A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF60 | |
:2000C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF40 | |
:2000E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF20 | |
:20010000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | |
:20012000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDF |
This file contains 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
const scale = ([domainMin, domainMax], [rangeMin, rangeMax]) => (val) => { | |
return ((val - domainMin) / (domainMax - domainMin)) * (rangeMax - rangeMin) + rangeMin | |
} |
This file contains 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 rps = new Roshambo(shape) | |
// console.log(rps.outcome()); | |
(function() { | |
'use strict'; | |
var Roshambo, random; | |
random = function (min, max) { | |
return min + Math.floor(Math.random() * (max - min + 1)); | |
}; |
This file contains 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
#!/bin/bash | |
# | |
# A script to bootstrap dokku. | |
# It expects to be run on Ubuntu 14.04 via 'sudo' | |
# If installing a tag higher than 0.3.13, it may install dokku via a package (so long as the package is higher than 0.3.13) | |
# It checks out the dokku source code from Github into ~/dokku and then runs 'make install' from dokku source. | |
# We wrap this whole script in a function, so that we won't execute | |
# until the entire script is downloaded. | |
# That's good because it prevents our output overlapping with wget's. |
This file contains 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 node = document.getElementsByTagName("head")[0] || document.body; | |
if (node) | |
{ | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = 'https://rawgithub.com/scottjehl/Respond/master/dest/respond.min.js'; | |
node.appendChild(script); | |
} |
This file contains 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
#!/bin/bash | |
echo -n "Sublime Text 2 or 3? " | |
read version | |
echo "Removing file system packages" | |
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Installed\ Packages | |
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Packages | |
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Pristine\ Packages |