- Infix?
- Whitespace-aware, but not required (implicit {})
- Static single assignment
package append | |
import "testing" | |
var result []T | |
const size = 10000 | |
type T int |
mkdir ~/whatToDownload ~/torrentfs | |
someServiceThatLetsYouModifyFolder ~/whatToDownload & | |
torrentfs ~/whatToDownload ~/torrentfs & | |
httpFileServer ~/torrentfs |
def alternates_even_odd(x): | |
x = iter(x) | |
try: | |
while True: | |
if next(x)%2: | |
return False | |
if not next(x)%2: | |
return False | |
except StopIteration: | |
return True |
1 (= lambda ^) | |
2 (= if ?) | |
3 (= define (# (names value) | |
4 (if (pair? names) | |
5 (list '= (car names) (list '^ (cdr names) value)) | |
6 (list '= names value)))) |
#!/usr/bin/env python3 | |
import argparse | |
import http.cookies | |
import io | |
import json | |
import pprint | |
import urllib.request | |
import webbrowser |
package main | |
import ( | |
"bytes" | |
"crypto/tls" | |
"database/sql" | |
"encoding/hex" | |
"flag" | |
"html/template" | |
"io" |
#process = require 'process' | |
http = require 'http' | |
url = require 'url' | |
mime = require 'mime' | |
querystring = require 'querystring' | |
path = require 'path' | |
fs = require 'fs' | |
cp = require 'child_process' | |
constants = require 'constants' | |
sendError = (res, err) -> |
module StaleUpdater exposing (..) | |
type alias StaleUpdater = | |
{ stale : Bool | |
, updating : Bool | |
} | |
new : StaleUpdater |
usage = chunk(redis_cli('hgetall', key+':'+date), 2) | |
usage = map(lambda x: x[:1]+(int(x[1]),)+x[2:], usage) | |
usage = sorted(usage, key=lambda x: x[1], reverse=True) |