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
#how to specify an ssh key to use when cloning a repo in Mac | |
ssh-agent bash -c 'ssh-add /Users/UR_USERNAME/.ssh/UR_PRIVATE_KEY; git clone git@DAS_GIT_URL' | |
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
tone(9,660,100); | |
delay(150); | |
tone(9,660,100); | |
delay(300); | |
tone(9,660,100); | |
delay(300); | |
tone(9,510,100); | |
delay(100); | |
tone(9,660,100); | |
delay(300); |
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, replace the <path to app.js file> with full path to your node app | |
# set crontab to @reboot <full path to this script> | |
# make sure to chmod +x this script to make it runnable | |
export PATH=/usr/local/bin:$PATH | |
if [ `/usr/local/bin/forever list | /usr/bin/wc -l` -le 1 ]; then | |
/usr/local/bin/forever start <path to app.js file> | |
fi |
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
# feel free to pull request | |
*.PCBDoc.htm | |
*.PCBDocPreview | |
*.PrjPrbStructure | |
*.SchDocPreview | |
*.SchDotPreview | |
*.cmp | |
*.swp | |
History | |
Project Logs* |
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
# Utilities for quickly accessing frequently used directories in bash. | |
# Usage: | |
# $ cd /path/to/project/src/ | |
# $ mark code # Will create a new shortcut. | |
# # Becomes interactive if a shortcut already exists | |
# # m is an alias for mark. You can also `m code` | |
# | |
# $ code # From now on, running this anywhere in the shell | |
# # will put you in /path/to/project/src/code |
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
int xPos = 0; | |
int yPos = 0; | |
int xCal; | |
int yCal; | |
void setup() | |
{ | |
Mouse.begin(); | |
delay(1000); |
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
cat freq.txt | sed 's/ /,/g' | sed 's/[^0-9,d]//g' | sed 's/^,/tone(9,/g' | sed 's/$/);/g' | sed 's/d,/delay(/g' | sed 's/^);//g' >gist.txt |
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
cat freq.txt | sed 's/ /,/g' | sed 's/[^0-9,d]//g' | sed 's/^,/tone(9,/g' | sed 's/$/);/g' | sed 's/d,/delay(/g' | sed 's/^);//g' >gist.txt |
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
Some Code Here |
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
#pragma strict | |
function OnTriggerEnter (col : Collider) | |
{ | |
Application.LoadLevel(1); //loads level 1 when some object collides with this object's box-collider (added via the physics sub-menu) | |
} |
NewerOlder