Skip to content

Instantly share code, notes, and snippets.

--------------------------------------------------------------------------------
--
-- List
struct nil: List
struct cons: Z -> List -> List
head: List -> V
( nil() )= error
npm info it worked if it ends with ok
npm info using npm@0.2.14-6
npm info using node@v0.5.0-pre
npm info preinstall npm@0.3.18
npm WARN bins installing to /Users/astein/bin, outside PATH
npm WARN man pages installing to /Users/astein/share/man, outside MANPATH
npm info rebuilding bundled dependencies npm@0.3.18
npm ERR! install failed Error: ENOENT, No such file or directory
npm info install failed rollback
npm info uninstall [ 'npm@0.3.18' ]
var Hook = require('hook.io').Hook;
var myhook = new Hook({
'inputs.*': function(name, event, data){
this.emit('inputs.echo', name + event);
},
'inputs.hello': function(name, event, data){
this.emit('inputs.chello', data);
},
True: Bool
False: Bool
`if (a) then (b) else (c)` = match a with
True = b
False = c
`if (a) { (b) } else { (c) }` = if a then b else c
`if (a) { (b) } else (c)` = if a then b else c
ISDA_PERMITTED_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ISDA_PRIME = 59575553
def leiHash( lei, permittedChars = ISDA_PERMITTED_CHARS ):
""" Shorten 20 character alpha-numeric Legal Entity Identifier into 10 character alpha-numeric "short LEI" that
can be used as a Unique Trade Identifier (UTI) prefix. The algorithm is simply the modulo operation lifted from
integers to the space of alpha-numeric case-insensitive strings.
Argument
--------
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/49/Three.min.js"></script>
<script
src="https://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/ui/1.8.23/jquery-ui.min.js"
integrity="sha256-sEFM2aY87nr5kcE4F+RtMBkKxBqHEc2ueHGNptOA5XI="
{
"metadata" :
{
"formatVersion" : 3,
"generatedBy" : "Blender 2.63 Exporter",
"vertices" : 162,
"faces" : 76,
"normals" : 13,
"colors" : 0,
@texodus
texodus / .block
Last active July 15, 2019 17:27 — forked from JHawk/.block
Perspective Viewers Linked Through Click Events Example
license: apache-2.0
height: 1200
@texodus
texodus / .block
Last active July 15, 2019 17:30 — forked from JHawk/.block
Perspective Superstore Arrow Example
license: apache-2.0
@texodus
texodus / .block
Last active July 15, 2019 17:32 — forked from JHawk/.block
Perspective Olympics Example
license: apache-2.0