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 sys,random | |
''' | |
USAGE | |
Let's say you want to read The Oxford Companion to Lulz, which has 819 pages. You would create a file with one line, "1:819", and save it as lulz.txt. Then you would run: | |
python bookmark.py lulz.txt | |
This would return a random page that you haven't yet read. Let's say it was 42. You then read from 42 to 50. You record this fact by running: |
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
// Cassini projection | |
// just a transverse equirectangular projection | |
// implemented from wikipedia description | |
d2r = Math.PI / 180; | |
return Math.asin(Math.sin(x * d2r) * Math.cos(y * d2r)); |
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
var env = process.env; | |
var cfg = { | |
foo: env.FOO_QUEUE || 'foo', | |
pattern: env.BIND_QUEUE_PATTERN, | |
amqpUrl: env.RABBIT_MQ_URL | |
}; | |
cfg.channel = { | |
// Channel method to invoke |
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
[ | |
{ | |
"id": 0, | |
"description": "Science In Action", | |
"tags": "read philosophy", | |
"dependencies": [6] | |
}, | |
{ | |
"id": 1, | |
"description": "Conscience of the Revolution", |
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
// Ramda provides one, but just for verbosity | |
var add = function (x,y) { return x + y; }; | |
var square = function (x) { return x * x; }; | |
// Redundant looping | |
var sumSquares = R.pipe( | |
R.map(square), | |
R.reduce(add, 0) | |
); |
- Basic Income Earth Network
- Vivant (Belgian Political Party)
- Van Parijs - A Capitalist Road to Communism
- Van Parijs - Basic Income in a Globalized Economy
lanetix=# \d foo
Table "scripting.foo"
Column | Type | Modifiers
--------+-----------------------+-----------
id | integer | not null
a | character varying(40) | not null
b | character varying(40) | not null
c | character varying(40) | not null
Autor - How Technology Wrecks the Middle Class
Autor - The Growth of Low-Skill Service Jobs and the Polarization of the US Labor Market (datasets)
Autor - Polanyi’s Paradox and the Shape of Employment Growth
Does Polanyi’s Tacit Knowledge Dimension Exist? fairly extensive citations in the management literature
The Trend is the Cycle: Job Polarization and Jobless Recoveries
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
udpPort.send({ | |
address: '/s_new', | |
args: ['ping', 400] | |
}, '127.0.0.1', 57110) |
OlderNewer