up: 1
authors: [~rovnys-ricfer(ted@tlon.io), ~pittyp-datfun(anton@tlon.io)]
%ford
is urbit's build system. It's one of the seven kernel modules (vane
s)
def long_to_bytes(n): | |
l = [] | |
x = 0 | |
off = 0 | |
while x != n: | |
b = (n >> off) & 0xFF | |
l.append( b ) | |
x = x | (b << off) | |
off += 8 | |
l.reverse() |
var Location = {}; | |
this.Location = Location; | |
Location.dep = new Deps.Dependency; | |
Location.state = window.history.state; | |
window.onpopstate = function(event){ | |
Location.state = event.state; | |
// note that popstate gets fired on initial page load in Webkit, |
import requests | |
filenames = [ | |
'doxygenConfig', | |
'firstExample', | |
'secondExample', | |
'SConstruct', | |
'mongod', | |
'mongo', | |
'mongodump', |
var page = require('webpage').create(), | |
system = require('system'), | |
startTime, address, requestStartTimes, requestDurations; | |
if (system.args.length === 1) { | |
console.log('Usage: netlog.js <some URL>'); | |
phantom.exit(1); | |
} | |
address = system.args[1]; |
class HandGrenadeError: pass | |
class WrongNumberError(HandGrenadeError): pass | |
class HolyHandGrenade: | |
def reference(self): | |
return "Armaments, chapter two, verses nine through twenty-one." | |
def lob(self, number): | |
if number != 3: |
import cv2 | |
def downsample(im): | |
return im[::2, ::2, :] | |
def smoothIm(im, kernelSize=5): | |
return cv2.GaussianBlur(im, (kernelSize, kernelSize), 0) |
# Detection | |
# | |
hook global BufCreate .*[.](hoon) %{ | |
set buffer filetype hoon | |
} | |
# Highlighters & Completion | |
# |
:: | |
:::: it's a trap! | |
:: | |
!= | |
=/ a 3 | |
|. | |
?: =(a 5) | |
a | |
$(a +(a)) | |
:: |
set nocompatible | |
set encoding=utf-8 | |
let mapleader = " " | |
" Vundle stuff | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' |