Skip to content

Instantly share code, notes, and snippets.

Aleksander Litynski AleksLitynski

Block or report user

Report or block AleksLitynski

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
View ts_tags_print.c
// prints the tag tree 'self' into an sds string 'printed'
// recursive function, 'node_addr' should start at 0
sds _ts_tags_print_node(ts_tags * self, size_t node_addr, sds padding, sds printed) {
return value should resemble this structure:
|── 0
│ |── abc123
| +── abc124
View gist:9ad800906f85248ef3edf602b294b5ab
var aList = ["a", "b", "c"];
var bObj = {};
for(var i in aList) {
bObj[i] = function() {
View hello.erl
hello() ->
print(output) ->
io:format("~s~n", [output]).
View gist:811b3510126baecb19e3
//A list of effects to be applied to a value
List<Func<double,double>> effects = new List<Func<double,double>>();
//Two sample anonymous effects.
effects.Add(initial_value => initial_value / 2);
effects.Add(initial_value => initial_value - 1);
//Storing an effect as a function, then applying it.
Func<double,double> fire_effect = x => x*x;
AleksLitynski / gist:9592212
Created Mar 17, 2014
notifications only show via file, not http
View gist:9592212
<!doctype html>
<meta charset="UTF-8">
function show_notification(){
//tags are for shared notes. If gmail is open twice, they cannot know
AleksLitynski /
Last active Aug 29, 2015
Notes on a game I'm calling Teller. They're still pretty disjointed.

Teller (A storytelling game)

(Exciting news: I have a $1000 grant for this project!!)

The Big Ideas

  • a single story can be grafted onto any group of characters. The dev writes a story once, but can apply it to multiple situations.

The player is exploring an open world. A fantasy world. They come across a "detective story". They are asked to find the missing puppy. Later, they're playing a space adventure, and the same detictive story appears, this time with different trappings. Space-dogs. Robo-damsels. Etc.

View worst c# ever
abstract class ability
string name;
string description;
ability(n, d)
name = n; description = d;
View Rust file IO attempt
let file_read: Result<@Reader, ~str> = std::io::file_reader(~std::path::Path("handw.rc"));
let file_text:~[~str] = match file_read {
Ok(file) => return file.read_lines(),
Err(e) => {
println(fmt!("Error reading file: %?", e));
return ~[];
You can’t perform that action at this time.