This file contains hidden or 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
class Thunk { | |
public value: number; | |
public evaluated: boolean; | |
constructor(value: any) { | |
this.value = value | |
this.evaluated = false | |
} | |
} | |
class Lambda { |
This file contains hidden or 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
#encoding:utf-8 | |
class Thunk | |
attr_accessor :value, :evaluated | |
def initialize(value) | |
@value = value | |
@evaluated = false | |
end | |
end |
This file contains hidden or 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
import std.algorithm, | |
std.typecons, | |
std.string, | |
std.array, | |
std.range, | |
std.conv; | |
template AnonymousClassImpl( | |
string BaseClassName, | |
string bodyString, |
This file contains hidden or 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
#include <pcre.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#define DEBUG false | |
struct Matchs { | |
int length; |
This file contains hidden or 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
ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,) | |
OBJS = main.o | |
TARGET = main.efi | |
EFIINC = /usr/include/efi | |
EFIINCS = -I$(EFIINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol | |
EFILIB = /usr/lib | |
EFI_CRT_OBJS = $(EFILIB)/crt0-efi-$(ARCH).o | |
EFI_LDS = $(EFILIB)/elf_$(ARCH)_efi.lds | |
CFLAGS = $(EFIINCS) \ | |
-fno-stack-protector \ |
This file contains hidden or 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
import std.algorithm, | |
std.string, | |
std.ascii, | |
std.range, | |
std.conv; | |
import std.stdio; | |
R delegate(Args) Z(R, Args...)(R delegate(R delegate(Args), Args) f){ | |
return (Args args) => f(Z(f), args); | |
} |
This file contains hidden or 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
import std.algorithm, | |
std.array, | |
std.stdio, | |
std.string, | |
std.conv; | |
import core.memory; | |
R delegate(Args) Z(R, Args...)(R delegate(R delegate(Args), Args) f){ | |
return (Args args) => f(Z(f), args); |
This file contains hidden or 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
#include <stdlib.h> | |
#include <stdbool.h> | |
// You can generate iTunes.h as follows: | |
// $ sdef /Applications/iTunes.app | sdp -fh --basename iTunes | |
#import "iTunes.h" | |
// For ABI | |
extern "C" { | |
struct Music { | |
const char* name; |
This file contains hidden or 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
import std.parallelism, | |
std.algorithm, | |
std.datetime, | |
std.stdio, | |
std.range, | |
std.conv, | |
std.math; | |
enum times = 100; | |
bool sideEffectTask; |
This file contains hidden or 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
import std.algorithm, | |
std.string, | |
std.ascii, | |
std.range, | |
std.conv; | |
import std.stdio; | |
R delegate(Args) Z(R, Args...)(R delegate(R delegate(Args), Args) f){ | |
return (Args args) => f(Z(f), args); | |
} |