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
| #!/usr/bin/env python | |
| # Unity indicator for evolution-less clock and date display | |
| # author: phil ayres | |
| # 24 Oct 2011 | |
| import gobject | |
| import gtk | |
| import appindicator | |
| import os, sys | |
| import time |
| function foo(args) { | |
| var i, j, k; | |
| // ... | |
| // j acquires some interesting value | |
| // Who called foo when j took this interesting value? | |
| // | |
| var e = new Error('dummy'); | |
| var stack = e.stack.replace(/^[^\(]+?[\n$]/gm, '') | |
| .replace(/^\s+at\s+/gm, '') |
The purpose of this "howto" is to document how browsing can be done in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the "How to Contribute" section for information on contributing your own knowledge.
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| /* | |
| * If the loop bumps into an function, it returns true, and moves on, | |
| * but if it bumps into a number, it waits x milliseconds, | |
| * it stops the _.every loop by returning false, and recursively | |
| * calls the sequence function with the rest of the array. | |
| * Nifty, huh? 😝😝 | |
| */ | |
| const sequence = b => b.every((a, i) => !(a.call ? a() : setTimeout(() => sequence(b.slice(++i)), a))); |
Substack https://aljamal.substack.com/p/homoiconic-python
atom=lambda x:not isinstance(x,list)
eq=lambda x,y:x == y
car=lambda x:x[0]
cdr=lambda x:x[1:]