Skip to content

Instantly share code, notes, and snippets.

wu-lee

Block or report user

Report or block wu-lee

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
@wu-lee
wu-lee / steps.md
Created Aug 16, 2018
Errors trying to run racktris.rkt
View steps.md

I ran:

$ raco pkg install lux
Resolving "lux" via http://download.racket-lang.org/releases/6.3/catalog/
Resolving "lux" via http://pkgs.racket-lang.org
Using cached15253002841525300284739 for git://github.com/jeapostrophe/lux
Promoting lux from auto-installed to explicitly installed

$ git clone https://gitlab.com/dustyweb/racktris.git
@wu-lee
wu-lee / ball.nim
Created Apr 4, 2018
faulty cloning in nim
View ball.nim
type
# ...
Vector*[T] = object
x*, y*: T
Animatable* = object of RootObj
Ball* = object of Animatable
pos*: Vector[float]
@wu-lee
wu-lee / concepts.nim
Created Mar 24, 2018 — forked from PhilipWitte/concepts.nim
How to use concept in Nim
View concepts.nim
type
CanDance = concept x
dance(x) # `x` is anything that has a `dance` procedure
proc doBallet(dancer: CanDance) =
# `dancer` can be anything that `CanDance`
dance(dancer)
# ---
@wu-lee
wu-lee / ns-100.html
Last active Jan 22, 2018
Clickable Number Squares
View ns-100.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Number Square</title>
<meta name="viewport" content="width=device-width">
View boss-or-bossed.html
<!DOCTYPE html5>
<html lang="en">
<head>
<style>
@import url('https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Open+Sans');
body {
margin: 20px;
font: 16px 'Open Sans', sans-serif;
}
@wu-lee
wu-lee / im-pair.c
Created Jul 11, 2017
Immutable C lists experiment
View im-pair.c
#include "im-pair.h"
#include <stdio.h>
#include <stdlib.h>
bool imPairHeap_defaultOnEmpty(imPairHeap* heap)
{
fprintf(stderr, "heap 0x%p empty", heap);
exit(1);
}
View TheCreditCommonsAmoneyforthesolidarityeconomy.html
<html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><style type="text/css">@import url('https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA');.lst-kix_5wknczree46j-4>li:before{content:"\0025cb "}.lst-kix_8kgwfupas1dp-0>li{counter-increment:lst-ctn-kix_8kgwfupas1dp-0}.lst-kix_5wknczree46j-2>li:before{content:"\0025a0 "}.lst-kix_5wknczree46j-6>li:before{content:"\0025cf "}.lst-kix_5wknczree46j-3>li:before{content:"\0025cf "}.lst-kix_5wknczree46j-7>li:before{content:"\0025cb "}ol.lst-kix_ofx39mac5r44-8.start{counter-reset:lst-ctn-kix_ofx39mac5r44-8 0}ol.lst-kix_463rtqr13yoi-5.start{counter-reset:lst-ctn-kix_463rtqr13yoi-5 0}.lst-kix_5wknczree46j-5>li:before{content:"\0025a0 "}.lst-kix_b5d3ihyd12zv-6>li:before{content:"" counter(lst-ctn-kix_b5d3ihyd12zv-6,decimal) ". "}.lst-kix_5wknczree46j-8>li:before{content:"\0025a0 "}ol.lst-kix_pyr2qwdixxa2-4.start{counter-reset:lst-ctn-kix_pyr2qwdixxa2-4 0}.lst-kix_b5d3ihyd12zv-5>li:before{content:"" counter(lst-ctn-kix
@wu-lee
wu-lee / watch.bash
Created Aug 11, 2015
An inotifywait driven script to run erica push in a couchdb development directory
View watch.bash
#!/bin/bash
root=$(dirname $(readlink -f $0))
app=$(basename $root)
src="$root/render"
couchdb=${couchdb:-http://${couchdb_auth:+$couchdb_auth@}localhost:5984/$app}
while true; do
echo "pushing $src to $couchdb id $app"
View SystemsofMoney-1.1.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.