- make a bacon sandwich. why not put a bit of soy and cumin in the pan.
- use the bacon fat to fry some onions for like 40 minutes
- in the meantime, go and chop up some spring onions, cherry tomatoes and leaf salad. put in a bowl with a pinch of fresh coriander and a squirt of lime juice
- still in the meantime, go and chop up some garlic (like a bulb), some chilli
- take some beef mince, some diced chorizo and whip it up with some paprika, coriander, soy, tamari, gochujang, pepper, cayenne pepper, worchestershire sauce, maybe a hint of chipolte, and a whizz of lime juice. oh and i used ginger
- chuck chilli and garlic in the pan after the onions have gotten impatient (around 30-40-50 minutes)
- wait a little longer, about 10 minutes, and mash the meat into the pan and fry
- make some gnocchi.
- now everything smells tasty, and the meat is browned and cooked, chuck in some (whatever) beans from a tin.
- take the cooked gnocchi and chop it a little and stick it in the pan too. ooh
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
1. pandoc -D latex > pandoc.template.jp.tex | |
2. following instructions from https://groups.google.com/d/msg/pandoc-discuss/R8T4j7SrJXk/EXNLBcm28z0J | |
go into the .tex file and change the XeTeX part so it reads: | |
\ifxetex | |
\usepackage{fontspec,xltxtra,xunicode,xeCJK} | |
\setCJKmainfont{Kochi Mincho} | |
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} |
- Z A
- Y B
- X C
-
- W D
-
- V E
-
- U F
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
from turtle import * | |
def curve(depth, length, angle): | |
if depth == 0: | |
if angle > 0: | |
pencolor('green') | |
else: | |
pencolor('blue') | |
forward(length) |
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
# Python or Ruby | |
l,p,q=(""and"# Ruby"+10 .chr or"# Python"+chr(10)),'l,p,q=(""and"# Ruby"+10 .chr or"# Python"+chr(10))','print((""and"#{print l;c=39.chr;puts p+44.chr+c+p+c+44.chr+c+q+c;puts q}"or"{}{},{!r},{!r}{}{}".format(l,p,p,q,chr(10),q)))' | |
print((""and"#{print l;c=39.chr;puts p+44.chr+c+p+c+44.chr+c+q+c;puts q}"or"{}{},{!r},{!r}{}{}".format(l,p,p,q,chr(10),q))) |
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
# coding=utf-8 | |
import sys | |
normal = u' 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~' | |
wide = u' 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!゛#$%&()*+、ー。/:;〈=〉?@[\\]^_‘{|}~' | |
widemap = dict((ord(n), w) for n,w in zip(normal, wide)) | |
while True: | |
line = sys.stdin.readline() | |
if not line: |
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 collections | |
import itertools | |
def flattened(i): | |
i = iter(i) | |
while True: | |
first = i.next() | |
if isinstance(first, collections.Iterable): | |
i = itertools.chain(first, i) | |
else: |
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
def flatten(source): | |
stack = source[::-1] | |
while stack: | |
top = stack.pop() | |
if hasattr(top, '__iter__'): | |
stack.extend(reversed(top)) | |
else: | |
yield top | |
print list(flatten([1,[2,3,[4,5,[6],7],8,[9,[10,11],[12],[[13]],[[[14,15]]],16]]])) |