Skip to content

Instantly share code, notes, and snippets.

View ricokahler's full-sized avatar
💭
recovering from burnout

Rico Kahler ricokahler

💭
recovering from burnout
View GitHub Profile
class Polynomial:
def __init__(self, coefficient, exponent, next = None):
self.coefficient = coefficient
self.exponent = exponent
self.next = next
def _add(term_a, term_b):
if term_a == None:
return term_b
@ricokahler
ricokahler / test.js
Last active April 25, 2017 04:45
My Gist
// Generated by JSIL v0.8.2 build 13182. See http://jsil.org/ for more information.
'use strict';
var $asm00 = JSIL.GetAssembly("1dd27d7b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");
var $asm01 = JSIL.GetAssembly("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
var $asm02 = JSIL.GetAssembly("System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
/* Generated by JSIL v0.8.2 build 13182. See http://jsil.org/ for more information. */
'use strict';
var $asm00 = JSIL.DeclareAssembly("1dd27d7b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");
@ricokahler
ricokahler / example.js
Last active February 20, 2017 22:37
Evaluate JS to JSDOM
const applu = require('./index');
const html = `
<html>
<head></head>
<body>
<p id="content"></p>
<body>
</html>
`;
@ricokahler
ricokahler / Component.ts
Created September 15, 2016 01:08
Structured Component for Cycle
/**
* Component module to enforce model update view
*/
import xs, {MemoryStream, Stream} from 'xstream';
import {DOMSource, VNode} from '@cycle/dom';
import {Record} from 'immutable';
export interface ComponentSource { DOM: DOMSource }