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 collections | |
itemData = collections.defaultdict(list) | |
print('Reading rows...') | |
for row in range(10, 19): | |
# Each row in the spreadsheet has data for one item. | |
item = sheet['A' + str(row)].value | |
itemData['item'].append(item) | |
description = sheet['C' + str(row)].value |
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 codecs | |
import csv | |
import sys | |
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) | |
with open('sample.csv', encoding='utf-8') as inf: | |
r = csv.reader(inf) | |
for line in r: | |
print(line) |
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 count in range(0, multis) -%} | |
%{{ count %}} & A & B & C & D\\ \hline | |
%{ set count = count + 1 -%} | |
%{ endfor -%} | |
%{{ multis %}} & X & X & X & X\\ \hline |
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
#!/usr/bin/env zsh | |
# 1304046900 TRACKS CHANGES TO PARTS OF SPREE SINCE A GIVEN COMMIT | |
# To be placed in the root of your app. | |
old_commit="32483802d823e92c0746d080217870dd48f49307" | |
parts=( | |
core/app/assets/javascripts/store/checkout.js |
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
;; There's something similar (but fancier) in vc-git.el: vc-git-grep | |
;; -I means don't search through binary files | |
;; --no-color, oddly enough, is required to allow emacs to colorize the output | |
(defcustom git-grep-switches "--extended-regexp -I -n --ignore-case --no-color" | |
"Switches to pass to `git grep'." | |
:type 'string) |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 8.
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
"DN","objectClass","homeMDB","name","displayName","mail","givenName","sAMAccountName","mailnickname","msExchHomeServerName","mDBUseDefaults" | |
"CN=%%k,OU=Users,OU=2013,OU=Secondary,OU=Students,OU=Users,OU=dn1,DC=dn2,DC=dn3,DC=dn4,DC=dn5","%%j","CN=2013","%%k","%%k","%%[email protected]","%%k","%%k","%%[email protected]","CN=InformationStore,CN=server1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=shortAD,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=dn1,DC=dn2,DC=dn3,DC=dn4","TRUE" | |
file2 | |
fn1sn1,fn1,sn1 | |
fn1sn2,fn2,sn2 | |
fn1sn3,fn3,sn3 | |
file3 | |
for /f "tokens=1,2,3 delims=, " %%i in (file1.csv) do csvde -i -k -f file2.csv -j .\ |
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
# terminology | |
^^[[TOC]]^^ | |
### general VCS terminology | |
A **project** is the minimum set of source code (and related files) that need | |
to be kept together to **build** the software. Example: Linux | |
* each project will have one **repository** |
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
git submodule add git://github.com/eschulte/rinari.git vendor/rinari | |
git submodule add git://github.com/defunkt/markdown-mode.git vendor/markdown-mode | |
git submodule add git://github.com/crafterm/twilight-emacs.git vendor/twilight-emacs | |
git submodule add git://github.com/avvo/fuzzy-find-in-project.git vendor/fuzzy-find-in-project | |
git submodule add git://github.com/technomancy/magit.git vendor/magit | |
git submodule add git://github.com/defunkt/cheat.el.git vendor/cheat.el | |
git submodule add git://github.com/defunkt/gist.el.git vendor/gist.el | |
git submodule add git://github.com/defunkt/textmate.el vendor/textmate.el |