This is a dump of links to checkout for later.
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/sh | |
brew_tap 'caskroom/cask' | |
brew_install_or_upgrade 'brew-cask' | |
brew cask install google-chrome | |
sudo mv /opt/homebrew-cask/Caskroom/google-chrome/latest/Google\ Chrome.app /Applications | |
brew cask install chromium | |
brew cask install firefox |
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
import re | |
import sys | |
import os | |
from stat import * | |
import subprocess | |
import shlex | |
import hashlib | |
import time | |
import datetime | |
import pymongo |
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
$ffmpeg -i <input file> -threads <max threads> -vf "transpose=1" -s 1280x720 -r <frame rate> -sameq <output file> |
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
sudo usermod -a -G www-data <some_user> | |
sudo chgrp -R www-data /var/www | |
sudo chmod -R g+w /var/www | |
sudo find /var/www -type d -exec chmod 2775 {} \; | |
sudo find /var/www -type f -exec chmod ug+rw {} \; |
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
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
f = urllib2.urlopen('http://www.yelp.com/developers/documentation/neighborhood_list') | |
raw = f.read() | |
soup = BeautifulSoup(raw) | |
places = soup.find('ul', {'class':'attr-list'}) |
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
$("article").not(".category-tutorials").hide(); |
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
for (i = 0; i < items.length ; i ++){console.log($(items[i]).html());} |
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
String inString = ""; | |
boolean keepReading = false; | |
const int ledPin = 13; | |
const int irTarget = 2; | |
int ledState = LOW; | |
unsigned long previousMillis = 0; | |
long interval = 0; | |
unsigned long offTime = 0; | |
boolean isOff = false; |