- Javascript fundamentals 7- hours
- Udacity Javascript Basics
- NodeSchool.io - Javascripting
- The JavaScript Triology by Douglas Crockford
- Udacity Object-Oriented JavaScript
- Crockford on JavaScript
| import logging | |
| from traceback import format_exc | |
| import datetime | |
| from schedule import Scheduler | |
| logger = logging.getLogger('schedule') | |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| // NOTE: I previously suggested doing this through Grunt, but had plenty of problems with | |
| // my set up. Grunt did some weird things with scope, and I ended up using nodemon. This | |
| // setup is now using Gulp. It works exactly how I expect it to and is WAY more concise. | |
| var gulp = require('gulp'), | |
| spawn = require('child_process').spawn, | |
| node; | |
| /** | |
| * $ gulp server | |
| * description: launch the server. If there's a server already running, kill it. |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => 文件编码选项 | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| set encoding=utf-8 | |
| set fileencoding=chinese | |
| set fileencodings=ucs-bom,utf-8,chinese,gb18030,gbk,gb2312,cp936,prc,taiwan,latin-1 | |
| "set fileencoding=utf-8 | |
| set encoding=utf8 | |
| set ffs=unix,dos,mac "设置换行符格式 | |
| set ff=unix "设置缓冲区换行符格式 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| plugin | |
| naming convention: name_of_plugin.vim | |
| these files are sourced for all file types | |
| doc | |
| naming convention: name_of_plugin.txt | |
| these files document the functionality of a plugin | |
| color | |
| naming convention: name_of_colorscheme.vim |
| #!/usr/bin/env python | |
| import sys | |
| import time | |
| import signal | |
| from subprocess import Popen, PIPE | |
| dd = Popen(['dd'] + sys.argv[1:], stderr=PIPE) | |
| while dd.poll() is None: | |
| time.sleep(.3) | |
| dd.send_signal(signal.SIGUSR1) |