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
CONTENTS OF THIS FILE | |
--------------------- | |
* Introduction | |
* Installation | |
* Issues | |
* TODO | |
INTRODUCTION | |
------------ |
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
# Command to start second instance of Firefox for development | |
/Applications/Firefox.app/Contents/MacOS/firefox-bin --profilemanager --no-remote #Mac | |
C:\Program Files\Mozilla Firefox\firefox.exe --profilemanager --no-remote #Windows |
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
<html> | |
<head> | |
<script src="jquery.js"></script> | |
<script> | |
var cardidx = 0; | |
var deck = [["question 1","answer 1"],["question 2","answer 2"],["question 3","answer 3"]]; | |
function shownextcard() { |
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
# recursively get a directory with FTP | |
ncftp -u <user> -p <pass> <server> | |
ncftp> mget directory |
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 = "/a/b/c/d/" | |
def removeroot(path): | |
return path.replace(root, "") | |
from BeautifulSoup import BeautifulSoup | |
pathtohtml = "/Users/formido/tmp/vallejo.html" | |
import os |
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
ini_set("display_errors","2"); | |
ERROR_REPORTING(E_ALL); |
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
wget -m -k -K -E -nv -R jpg,gif,js,css |
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
bash-3.2$ wget -m -k -K -E http://url/of/web/site |
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
# switch to remote | |
git checkout origin/master | |
# switch back | |
git checkout master |
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 range = window.getSelection().getRangeAt(0); | |
var offset = range.startOffset; | |
var container = range.commonAncestorContainer; | |
var containerText = container.nodeValue; |