Skip to content

Instantly share code, notes, and snippets.

John Haugeland StoneCypher

Block or report user

Report or block StoneCypher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Header Header Right
Cell Cell $10
Cell Cell $20
StoneCypher / Learning
Created Mar 18, 2018 — forked from Ehawk82/
(Jason's) experience in learning JS
View Learning

Scope & Timeline. Troubleshooting takes time and it's painful when the problem is because of where something is written in respect to other things. "Return functions". I wish i learned to do this earlier. Instead of writing "document.get[thing]" over and over again sucks. So creating a return function in my global object is a great timesaver... something like UI.bySelect("#tag") and UI.byTag("body"). I believe this is also a good way to learn how to use parameters Parameters. Specifically about the scope of where a variable is named. I found that there are times where i'll use "x", "y" for a generic variable to pass as a parameter. This means the previous function will try to pass their variable in those spots. This is something to pay attention to when using more than two parameters Using setTimeout() to delay a className change. This is something that i spent a lot of time and code on to do things, only to find out that a simple timeout can delay a change momentarity. This is important when l


Citing Huxley's Collected Essays Vol 5

When I reached intellectual maturity and began to ask myself whether I was an atheist, a theist, or a pantheist; a materialist or an idealist; a Christian or a freethinker; I found that the more I learned and reflected, the less ready was the answer; until, at last, I came to the conclusion that I had neither art nor part with any of these denominations, except the last. The one thing in which most of these good people were agreed was the one thing in which I differed from them. They were quite sure they had attained a certain "gnosis,"—had, more or less successfully, solved the problem of existence; while I was quite sure I had not, and had a pretty strong conviction that the problem was insoluble. And, with Hume and Kant on my side, I could not think myself presumptuous in holding fast by that opinion. Like Dante,

Nel mezzo del cammin di nostra vita

Mi ritrovai per una selva oscura,

but, unlike Dante,

View raganwald.fsl
machine_name: "Raganwald's example";
machine_source: ;
start_states: open;
initial_data: { balance: 0 };
open 'deposit' { onfollow: `${(action, data) => ((data.balance += action.amount), data)}`; } -> open;
open 'withdraw' { onfollow: `${(action, data) => ((data.balance -= action.amount), data)}`; } -> open;
StoneCypher / ltdf.html
Created Jan 3, 2018
learn the debugger francisco
View ltdf.html
<!doctype html><html><head><script type="text/javascript">
const Num1 = 500;
const Num2 = 0500; // this is the bug, but let's say that you don't know about octal
const finalNum = Num1 + Num2;
window.onload = () =>
document.body.innerHTML = `Should print 1000: <tt>${finalNum}</tt>`;
StoneCypher / Toy react bootstrap from CDN.html
Last active Jan 8, 2018
Toy react bootstrap from CDN for Francisco
View Toy react bootstrap from CDN.html
<!doctype html>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script type="text/babel">

Keybase proof

I hereby claim:

  • I am StoneCypher on github.
  • I am johnhaugeland ( on keybase.
  • I have a public key whose fingerprint is 64BF D8FA 55C2 0A13 1F2E 33BF 5224 78B4 0318 743C

To claim this, I am signing this object:

StoneCypher / toy-cdn-react.html
Created Oct 19, 2017
Don't do this in prod, but when you're learning React or having fun, honestly, fuck the build toolchain entirely
View toy-cdn-react.html
<!DOCTYPE html>
<html lang="en">
<title>Toy non-Babel React from CDN example</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script type="text/babel">
StoneCypher / .babelrc
Created Oct 13, 2017
fuller build setup
View .babelrc
"plugins" : ["transform-flow-strip-types"],
"presets" : ["es2015", "react"],
"sourceMaps" : "inline"
View lorenzo's italian traffic light.fsl
machine_name : "Semaforo";
machine_version : 1.0.0;
machine_author : "Lorenzo Franchini";
machine_license : MIT;
machine_language : it;
fsl_version : 1.0.0;
graph_layout : dot;
You can’t perform that action at this time.