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
SEXP (display "Hello, World!") | |
Hello, World! | |
SEXP (def greet (lambda (who) (cat "Hello, " who "!"))) | |
SEXP (display (greet "Martiny")) | |
Hello, Martiny! | |
SEXP (display "a") | |
a | |
SEXP (display "b") | |
b | |
SEXP () |
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
SEXP (display "Hello, World!") | |
Hello, World! | |
SEXP (def greet (lambda (who) (cat "Hello, " who "!"))) | |
SEXP (display (greet "Martiny")) | |
Hello, Martiny! | |
SEXP (display "a") | |
a | |
SEXP (display "b") | |
b | |
SEXP () |
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
local function parse(str, pos) | |
local read, readchar, readcharws, peekchar, eof | |
pos = pos or 1 | |
local readtable = { | |
['^"'] = function() | |
local escape = { | |
['\\'] = '\\', | |
['"'] = '"' | |
} | |
local out = {} |
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
local function parse(str) | |
local read, readchar, readcharws, peekchar, eof | |
local pos = 1 | |
local readtable = { | |
['^"'] = function() | |
local escape = { | |
['\\'] = '\\', | |
['"'] = '"' | |
} | |
local out = {} |
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
local function parse(str) | |
local read, readchar, readcharws, peekchar, eof | |
local pos = 1 | |
local readtable = { | |
['^"'] = function() | |
local escape = { | |
['\\'] = '\\', | |
['"'] = '"' | |
} | |
local out = {} |
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
predicate! Fizzy(n) = n mod 3 == 0 | |
predicate! Buzzy(n) = n mod 5 == 0 | |
print 1..100 each match -> | |
Fizzy? and Buzzy? -> "FizzBuzz" | |
Fizzy? -> "Fizz" | |
Buzzy? -> "Buzz" | |
n -> n |
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 sys | |
import subprocess | |
import imp | |
from os import path | |
class CppFinder(object): | |
def find_module(self, fullname, ignored=None): | |
print("find_module(self, {}, {})".format(fullname, path)) | |
if path.exists(fullname + ".cpp"): |
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
Hello, World | |
find_module(self, foo, <module 'posixpath' from '/usr/lib/python3.4/posixpath.py'>) | |
load_module(self, foo) |
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 loader | |
loader.register() | |
import foo | |
foo.run() | |
#include <cstdio> | |
int main() { std::printf("Hello, World\n"); } | |
Hello, World | |
find_module(self, foo, <module 'posixpath' from '/usr/lib/python3.4/posixpath.py'>) | |
load_module(self, foo) |
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
%!PS-Adobe-2.0 | |
%%Creator: dvips(k) 5.993 Copyright 2013 Radical Eye Software | |
%%Title: test.dvi | |
%%CreationDate: Wed Feb 18 00:38:12 2015 | |
%%Pages: 1 | |
%%PageOrder: Ascend | |
%%BoundingBox: 0 0 596 842 | |
%%DocumentFonts: CMR17 CMR12 | |
%%DocumentPaperSizes: a4 | |
%%EndComments |