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
channel.cmi : | |
mVar.cmi : | |
monitor.cmi : | |
session.cmi : | |
channel.cmo : monitor.cmi channel.cmi | |
channel.cmx : monitor.cmx channel.cmi | |
example.cmo : session.cmi | |
example.cmx : session.cmx | |
mVar.cmo : monitor.cmi mVar.cmi | |
mVar.cmx : monitor.cmx mVar.cmi |
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
(* Coroutine implementation in OCaml, with Oleg's delimited continuation *) | |
(* see http://okmij.org/ftp/continuations/implementations.html#caml-shift *) | |
module D = Delimcc | |
(* Coroutine yielded a value of type 'a, and will resume with some value of type 'b *) | |
type ('a, 'b) suspend = | |
| Cont of 'a * ('b, ('a,'b) suspend) D.subcont | |
| Finish | |
let start_coroutine f = |
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
Replenish | |
Authenticate | |
Authenticated -> Assign Batch | |
Assign Batch |
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
'use latest'; | |
// This code is a webtask for https://webtask.io | |
// It can be used send email notifications with some random art in it. | |
// Use it with IFTTT.com for full effect. | |
// POST to this webtask with the following URL params: | |
// to - (required) destination Email | |
// subject - (required) subject line | |
// text - (optional) additional text to attach to the email body, may include escaped HTML |
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
import os | |
import time | |
os.system("clear") | |
def savePing(rotation): | |
ip_address_list = [] |
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
watch-jsx: | |
jsx --watch --extension jsx src/jsx src/js & | |
watch-scss: | |
sass --watch src/scss:src/css & | |
build: | |
jsx --extension jsx src/jsx src/js | |
sass --update src/scss:src/css |
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
def make_numbers_list(limit): | |
i = 0 | |
numbers = [] | |
while i < limit: | |
print "At the top i is %d" % i | |
numbers.append(i) | |
i += 1 | |
print "Numbers now: ", numbers |
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
open Core.Std | |
(* See: http://en.wikipedia.org/wiki/Linear_interpolation *) | |
let linear_interpolation (px, py) x (nx, ny) = | |
let y = (Float.of_int py) +. | |
(Float.of_int (ny - py)) *. | |
(Float.of_int (x - px)) /. (Float.of_int (nx - px)) in | |
(x, y) |
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
# You can also import for the format that secrets itself uses. | |
Gmail | |
password: 1235 | |
username: stopspammingme | |
password: 56787 | |
... |
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
# The first line is the heading, the rest are data. | |
# You can add more colums. Each column must be tab separated. | |
title password ... | |
gmail 12345 ... | |
linkedin 6578 ... | |
something really long 2134567 ... | |
# Once you have that in a file, you can import it: |
NewerOlder