Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| from gensim import corpora, models, similarities, utils | |
| import logging | |
| import os | |
| import re | |
| logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) | |
| class DirectoryCorpus(corpora.TextCorpus): | |
| def get_texts(self): |
| import urllib2 | |
| import json | |
| password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() | |
| password_mgr.add_password(None, 'https://stream.twitter.com/1/statuses/sample.json', '<user>', '<password>') | |
| handler = urllib2.HTTPBasicAuthHandler(password_mgr) | |
| opener = urllib2.build_opener(handler) | |
| try: | |
| conn = opener.open('https://stream.twitter.com/1/statuses/sample.json') | |
| except urllib2.HTTPError, exception: |
| alias chmeow="perl -e 'my \$s=\"a,able,about,across,after,all,almost,also,am,among,an,and,any,are,as,at,be,because,been,but,by,can,cannot,could,dear,did,do,does,either,else,ever,every,for,from,get,got,had,has,have,he,her,hers,him,his,how,however,i,if,in,into,is,it,its,just,least,let,like,likely,may,me,might,most,must,my,neither,no,nor,not,of,off,often,on,only,or,other,our,own,rather,said,say,says,she,should,since,so,some,than,that,the,their,them,then,there,these,they,this,tis,to,too,twas,us,wants,was,we,were,what,when,where,which,while,who,whom,why,will,with,would,yet,you,your\"; \$s =~ s/,/|/g; my \$fh; if (\$ARGV[0]) { open \$fh, \$ARGV[0] or exit; } else { \$fh = *STDIN; } while (<\$fh>) { s/\s+(\$s)\s+/ meow /ig; print }'" |
| (function ($) { | |
| var globalArgs = { | |
| minWidth: 150, | |
| minHeight: 150, | |
| } | |
| var colorIndex = 0; | |
| var taupeifyRec = function (args) { | |
| var x = .5*args.width, //(Math.random()*.50 + .25)*args.width, | |
| y = .5*args.height, //(Math.random()*.50 + .25)*args.height, | |
| c = ["#546172", "#87A581", "#C0BD86", "#D6C08F", "#DA6A44", "#324152", "#47535E", "#796466", "#C1836A", "#DEA677"]; |
| /** | |
| * @overview | |
| * | |
| * @author Caesar Chi | |
| * @blog clonn.blogspot.com | |
| * @version 2012/02/27 |
| // Generate the parser either by pasting this grammar into | |
| // http://pegjs.majda.cz/online or using the node.js pegjs | |
| // parser. Set the generated class to "aviParser". | |
| // | |
| { | |
| function clearNode() { | |
| this.node = null; | |
| }; |
| /** | |
| * requestAnimationFrame polyfill by Erik Möller & Paul Irish et. al. | |
| * https://gist.github.com/1866474 | |
| * | |
| * http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| * http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| **/ | |
| /*jshint asi: false, browser: true, curly: true, eqeqeq: true, forin: false, newcap: true, noempty: true, strict: true, undef: true */ |