Edit: This list is now maintained in the rust-anthology repo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//from stackoverflow | |
#include <stdio.h> | |
#include <termios.h> | |
#include <unistd.h> | |
int get_pos(int *y, int *x); | |
int main() { | |
int x = 0, y = 0; | |
get_pos(&y, &x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="typings/globals/es6-shim/index.d.ts" />` | |
import * as Rx from 'rxjs'; | |
function generateObservable(...args) { | |
return Rx.Observable.of({ | |
count: arguments.length > 1 ? 0 : 1 | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="typings/globals/es6-shim/index.d.ts" />` | |
import { Observable } from "rxjs/Observable"; | |
import { Observer } from "rxjs/Observer"; | |
import { Subscriber } from "rxjs/Subscriber"; | |
function timerBufferOperator<T>(this: Observable<T>, bufferSize: number, timeFrame: number): Observable<T> { | |
return Observable.create((subscriber: Subscriber<Array<T>>) => { | |
this.subscribe(new TimerBufferOperator(subscriber, bufferSize, timeFrame)); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"targets": [ | |
{ | |
"target_name": "Jzon", | |
"type": "static_library", | |
"sources": [ "Jzon.cpp"] | |
} | |
] | |
} |