All in all, Jonathan Delano Salinger’s “The Catcher in the Rye” is a volume of enormous import to American literature. Merriam Webster’s Dictionary of English Words defines “catcher” as, “someone or something that catches something,” while it defines “rye” as, “a hardy annual grass that is widely grown for grain and as a cover crop.” But that is not the novel’s only point of contrast! Indeed, “The Catcher and the Rye” is a puzzle — a pile of amorphous cardboard pieces that through determined study you may put together (assuming, of course, there is a way to fit all of the pieces together). But puzzles — like people, like life — are not meant to be solved. They intrigue. They inspire. They are meaningless diversions. “Life is a game, boy,” Spencer says — for games are more fun than puzzles. And were he honest he would add, “Welcome to the games! Be merry, be miserable, take heart or lose it. Get drunk, make mistakes. Work hard, race the rats. Everything and nothing is here for your enjoyment. Everything and no
View throwItOnALayer.js
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
/* | |
Instagram is 100% React. They pop modals. I didn't know how you could | |
do that in React, so I guessed based on what was going on the in | |
Chrome inspector. The following code assumes a commonJS module system. | |
Classes that I pass into this use the this.props.teardown to take themselves | |
down. | |
*/ | |
var _ = require('lodash'), | |
React = require('react'); |
View you-take-my-breath-away.js
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
/* | |
* you-take-my-breath-away.js | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014 PJ$ | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
View hadoop-yarn-grep-failure
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
failed: [silo-03] => {"changed": true, "cmd": "su - hdfs -c \"export HADOOP_MAPRED_HOME=/usr/lib/hadoop-mapreduce && hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar grep /source-for-mapreduce-test /outputfile 'hello'\" ", "delta": "0:00:11.452524", "end": "2014-04-10 20:01:31.965314", "rc": 255, "start": "2014-04-10 20:01:20.512790"} | |
stderr: 14/04/10 20:01:22 INFO client.RMProxy: Connecting to ResourceManager at silo-03/33.12.34.53:8032 | |
14/04/10 20:01:23 WARN mapreduce.JobSubmitter: No job jar file set. User classes may not be found. See Job or Job#setJar(String). | |
14/04/10 20:01:23 INFO input.FileInputFormat: Total input paths to process : 1 | |
14/04/10 20:01:23 INFO mapreduce.JobSubmitter: number of splits:1 | |
14/04/10 20:01:23 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1397160042836_0001 | |
14/04/10 20:01:23 INFO mapred.YARNRunner: Job jar is not present. Not adding any jar to the list of resources. | |
14/04/10 20:01:24 INFO impl.YarnClientImpl: Submitted application application_13 |
View comment.py
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
# NB. This affront to reason mocks our beliefs in everything save chaos and death. | |
# May whatever you call Holy forgive you, the damned, who read further | |
# than this point. You have been warned. But if you scorn this warning, if | |
# your contempt for these my dying words is so complete that you read on, | |
# if you still believe that there is something good or right or just in this world, | |
# then I will meet you, smiling, with hot tears in my eyes, when you join me in the | |
# black and brackish pit, the Hell below Hell, where I now go. |
View .gitignore
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.pyc |
View gist:8192813
NB. This was recovered from some cache somewhere in the digital ether. I
need to look over it and dig into the history presented here someday. -PJ$, 12.30.2013
ORIGINALLY APPEARED IN : The Dartmouth Independent
TITLE : The Arguably Definitive History of Pong
AUTHOR : Anoop Rathod
PUBLISHED : Sep 19, 2005
Founded in 1769, Dartmouth College has withstood the travails of history to remain one of this country's finest academic institutions with a strong set of time-honored
View swift-on-nix.bash
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
#!/bin/bash | |
set -ev | |
SWIFT_SNAPSHOT="swift-2.2-SNAPSHOT-2016-01-06-a" | |
echo "Installing ${SWIFT_SNAPSHOT}..." | |
curl -s -L -O "https://swift.org/builds/ubuntu1404/${SWIFT_SNAPSHOT}/${SWIFT_SNAPSHOT}-ubuntu14.04.tar.gz" | |
tar -zxvf "${SWIFT_SNAPSHOT}-ubuntu14.04.tar.gz" | |
sudo mv "${SWIFT_SNAPSHOT}-ubuntu14.04" /swift | |
echo "Installing XCTest..." |
View easing.js
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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
View umap_sparse.py
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
### JHW 2018 | |
import numpy as np | |
import umap | |
# This code from the excellent module at: | |
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module | |
import random |
OlderNewer