- Programmer: AVR ISP Programmer: USBASP Cheap programmer based of a microcontroller and software USB
- ATTiny85: 4x ATTiny85 You'll probably want more as spares just in case you blow one.
- Breadboard: 820 point Breadboad
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
ROOT_DIR=$(git rev-parse --show-toplevel); | |
PHP="php -l" | |
for file in $(git diff-index --name-only --diff-filter=ACM --cached HEAD -- | grep -e '\.(php|phtml)$'); do | |
$OUTPUT = $PHP $file 2>&1 | |
if $OUTPUT | grep 'No syntax errors detected'; then | |
exit 0 | |
else | |
echo $OUTPUT | |
exit 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 | |
# REQUIRES SUDO | |
# Benchmark runner | |
repeats=20 | |
output_file='benchmark_results.csv' | |
command_to_run='echo 1' | |
run_tests() { | |
# -------------------------------------------------------------------------- |
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
[alias] | |
share = "!URL=`git remote show origin | awk 'NR==2{print $3}' | sed 's/:/\\//;s/git@/http:\\/\\//g;s/\\.git//'`/commit/`git log -1 --format="%H" HEAD` && echo $URL && echo $URL | pbcopy" |
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
tell application "iTunes" | |
repeat with s in sources | |
if (kind of s is iPod) then | |
tell application "iTunes" to update s | |
end if | |
end repeat | |
end tell |
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
function clone(object) { | |
var cloned = Object.create(object.prototype || null); | |
Object.keys(object).map(function (i) { | |
cloned[i] = object[i]; | |
}); | |
return cloned; | |
} |
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 window = Titanium.UI.createWindow({}); | |
var feedsTable = Titanium.UI.createTableView({}); | |
var playingPanel = Titanium.UI.createView({ | |
bottom:-65, |
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 wnd = Ti.UI.createWindow({ | |
title: "Title Bar", | |
modal: true, | |
backgroundColor: "#FFF", | |
orientationModes: [ | |
Titanium.UI.PORTRAIT, | |
Titanium.UI.UPSIDE_PORTRAIT, | |
Titanium.UI.LANDSCAPE_LEFT, | |
Titanium.UI.LANDSCAPE_RIGHT | |
], |
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 tabGroup = Ti.UI.createTabGroup(); | |
var tabsArray = tabGroup.tabs; | |
Object.defineProperty( | |
tabGroup, | |
"tabs", | |
{ | |
get: function () { | |
alert(tabGroup.tabs.length + " tabs"); |