Skip to content

Instantly share code, notes, and snippets.

Shahin Kiassat shaahink

Block or report user

Report or block shaahink

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
@JasonKleban
JasonKleban / LiteEvent.ts
Last active Jun 13, 2019
TypeScript LiteEvent Events implementation
View LiteEvent.ts
interface ILiteEvent<T> {
on(handler: { (data?: T): void }) : void;
off(handler: { (data?: T): void }) : void;
}
class LiteEvent<T> implements ILiteEvent<T> {
private handlers: { (data?: T): void; }[] = [];
public on(handler: { (data?: T): void }) : void {
this.handlers.push(handler);
@throughnothing
throughnothing / README.md
Last active Jan 17, 2017
Readability send-to-kindle.js
View README.md

Looks like they POST => /kindle/queue, which returns a 302 redirect to a url with an id, or something like that?

@xperiments
xperiments / Dictionary.ts
Created Jun 25, 2013
Typescript Dictionary
View Dictionary.ts
//http://stackoverflow.com/questions/15877362/declare-and-initialize-a-dictionary-in-typescript
interface IDictionary {
add(key: string, value: any): void;
remove(key: string): void;
containsKey(key: string): bool;
keys(): string[];
values(): any[];
}
You can’t perform that action at this time.