This is a vimscript for creating gists (http://gist.github.com).
For the latest version please see https://github.com/mattn/gist-vim.
- Post current buffer to gist, using default privacy option.
entry = { | |
"Day job": "Programmer" | |
"Favorite Python project": "ibid" | |
"Favorite Conference": "UDS" | |
"Python Experience Level": "Daily use on a large Twisted system, 7/10" | |
} | |
enter(entry) |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
path { | |
stroke-linejoin: round; | |
} | |
.land { | |
fill: #ddd; |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
path { | |
stroke-linejoin: round; | |
} | |
.land { | |
fill: #ddd; |
This is a vimscript for creating gists (http://gist.github.com).
For the latest version please see https://github.com/mattn/gist-vim.
class Empty: | |
pass | |
class AVLTree(object): | |
value = None | |
left = None | |
right = None | |
def __init__(self, value=Empty, left=None, right=None, parent=None): | |
if value is Empty and parent: |
from avltree import AVLTree | |
class AVLMap(object): | |
def __init__(self): | |
self._store = AVLTree() | |
def __setitem__(self, key, value): | |
self._store.insert((key, value)) | |
def __getitem__(self, key): |
import random | |
RUNS = 10**6 | |
APPLICANTS = 124000 | |
ACCEPTED_1 = 20000 | |
ACCEPTED_2 = 65000 | |
FRIENDS = 4 | |
import random | |
RUNS = 10**3 | |
APPLICANTS = 124000 | |
ACCEPTED_1 = 20000 | |
ACCEPTED_2 = 65000 | |
FRIENDS = 4 | |
import random | |
RUNS = 10**4 | |
APPLICANTS = 124000 | |
ACCEPTED_1 = 20000 | |
ACCEPTED_2 = 65000 | |
FRIENDS = 4 | |
#!/usr/bin/env python | |
print open(__file__).read(), |