Skip to content

Instantly share code, notes, and snippets.

View falcondai's full-sized avatar

Falcon Dai falcondai

View GitHub Profile
@falcondai
falcondai / lr.png
Last active March 3, 2016 19:45
NLP ps 3
lr.png
@falcondai
falcondai / sml-ps3-solution.ipynb
Created November 8, 2015 05:09
SML p set 3 solution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@falcondai
falcondai / sml-ps2-solution.ipynb
Last active October 24, 2015 22:22
SML p set 2 solution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@falcondai
falcondai / lazy_csv_reader.py
Created December 20, 2013 15:33
lazy wrapper for CSV reader in Python
class lazy_csv_reader(list):
def __init__(self, csv_reader, pos):
self.reader = csv_reader
self.pos = pos
def __iter__(self):
r = self.reader.next()
while r:
yield r[self.pos]
r = self.reader.next()
@falcondai
falcondai / JavaDoc.tmLanguage
Created August 20, 2013 16:00
Fix to Sublime Text 2's JavaDoc parsing
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array/>
<key>foldingStartMarker</key>
<string>/\*\*</string>
<key>foldingStopMarker</key>
<string>\*\*/</string>
@falcondai
falcondai / install-fonts.sh
Last active February 5, 2016 19:36
install all fonts files under a directory recursively (for Ubuntu).
#!/bin/bash
echo installing fonts at $PWD to ~/.fonts/
find . -name '*.ttf' -exec cp \{\} ~/.fonts/ \;
find . -name '*.otf' -exec cp \{\} ~/.fonts/ \;
echo finished installing
@falcondai
falcondai / Makefile
Last active December 21, 2015 03:58
Makefile for packaging chrome extensions
EXT_NAME=omni
all: clean pages package
pages:
jade jade/*.jade -Po .
clean:
rm -rf *~
rm -f $(EXT_NAME).zip
@falcondai
falcondai / .emacs
Last active December 21, 2015 00:18
custom init setup for Emacs 24
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (deeper-blue)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.