This uses generator functions to generate permutations on demand.
The typescript is the original, the js version is just the compiled typescript.
This uses generator functions to generate permutations on demand.
The typescript is the original, the js version is just the compiled typescript.
@echo off | |
IF "%1" == "" ( | |
echo %cd% >> %userprofile%\_k | |
) ELSE ( | |
IF "%1" == "ls" ( | |
type %userprofile%\_k | |
exit /B | |
) |
class Wren { | |
construct new() { | |
var a = 0 | |
_list = [1,2,3].map{|i| | |
a = a + 1 | |
return a | |
} | |
} | |
printList() { |
class Wren { | |
construct new() { | |
var a = 0 | |
_list = [1,2,3].map{|i| | |
a = a + 1 | |
return a | |
} | |
} | |
printList() { |
#include <iostream> | |
#include <map> | |
using namespace std; | |
int main() { | |
map<char, int> stuff; | |
stuff['a'] = 1; | |
stuff['b'] = 2; | |
stuff['c'] = 3; | |
#!/bin/bash | |
version=1.0.1 | |
versionDate="2014-02-14" | |
function showHelp() { | |
echo "watchfile - monitor file(s)/command and perform action when changed | |
Possible ways of usage | |
---------------------------------------- |
import Queue as queue # like really | |
import urllib2 | |
import threading | |
class DoThing(object): | |
def __init__(self, url): | |
self.q = queue.Queue() | |
self.t = threading.Thread(target=self.go, args=(url,)) | |
self.t.start() |
package bloomcounter | |
import ( | |
"encoding/binary" | |
"bytes" | |
"crypto/md5" | |
) | |
type BloomCounter struct { | |
buckets []uint |
package bloomfilter | |
import ( | |
"crypto/md5" | |
"encoding/binary" | |
"bytes" | |
) | |
type BloomFilter struct { | |
buckets []bool |