Skip to content

Instantly share code, notes, and snippets.

$ make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/interpreter.o
---- TRACE 10 start t.lua:62
0011 MOV 9 0
0012 TGETS 8 0 3 ; "getint"
0000 . . FUNCC ; ffi.meta.__index
0013 MOV 10 1
0014 CALL 8 2 3
0000 . FUNCF 6 ; rng.lua:11
0001 . UGET 2 0 ; tonumber
0002 . UGET 3 1 ; gsl
0003 . TGETS 3 3 0 ; "gsl_rng_uniform_int"

Experimental Generation of Interpersonal Closeness

Instructions to Subjects Included With Task Slips Packet

This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.

In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.

You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should

// This is evolved into j2c: a JavaScript to CSS compiler
// see https://github.com/pygy/j2c
@pygy
pygy / widget.js
Last active August 29, 2015 14:21 — forked from gilbert/widget.js
Mithril + j2c
Widget = {
styles: j2c.scoped({
title: {
font_size: '3rem',
"&:before":{
color: "#888",
content: "#"
}
},
content: {
/*\
For now, back to the stable if less featureful v4
TODO: implement http://stackoverflow.com/questions/4845762/onload-handler-for-script-tag-in-internet-explorer
for old ie compatiblity (where script.onload doesn't fire).
`{loading, element} = mithrilLoader(libs::Arrary [, m::mithril])`
where `libs` is an array of strings and array:

Broad summary:

  • Elections are on Sunday 5th, July.

  • This is the first time an e-voting system is used in Buenos Aires city.

  • Researchers and IT professionals had been warning about potential issues with the way the system works (short summary at the end).

  • Government officials have said on-record that the machines are only "printers with no memory". There is video evidence that the machines are in fact standard PCs running Ubuntu. USB and VGA ports are located behind a lid on the side. See videos here: https://storify.com/mis2centavos/el-sistema-de-voto-electronico-usado-en-caba

@pygy
pygy / color-conversion-algorithms.js
Last active September 10, 2015 07:14 — forked from mjackson/color-conversion-algorithms.js
RGB, HSV, and HSL color conversion algorithms in JavaScript
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@pygy
pygy / Errors
Created September 29, 2012 19:23
Build errors log of Slate.app on OS X 10.6.
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:96:80: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:97:96: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:187:105: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:200:71: error: use of undeclared identifier 'keyUpSeen'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:247:34: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:262:34: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:298:10: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:301:12: error: use of undeclared identifier '__bridge'
/Volumes/Data HD/Downloads/slate/Slate/SlateAppDelegate.m:322:27: error: use of undeclared identifier '__bridge'
/Volume