Noon - 3.PM.
- Portfolio
- Code Snippets
- Ruby Lesson
- Repair Linux Parition
- The Ponies svg tilemap
- Github Markdown Wiki Link compatability with gollum
Noon - 3.PM.
# Lets get the apt stuff taken care of first. | |
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 | |
sudo add-apt-repository -y ppa:numix/ppa | |
sudo apt-get update | |
sudo apt-get install --yes \ | |
sublime-text-installer \ | |
numix-gtk-theme \ | |
numix-icon-theme-circle \ | |
curl \ | |
ttf-inconsolata |
<?xml version="1.0" encoding="UTF-8"?> | |
<interface> | |
<!-- interface-requires gtk+ 3.0 --> | |
<object class="GtkListStore" id="myliststore"> | |
<columns> | |
<!-- column-name code --> | |
<column type="gchararray"/> | |
<!-- column-name legible --> | |
<column type="gchararray"/> | |
</columns> |
from itertools import izip, product, tee | |
# Logic functions: take and return iterators of truth values | |
def AND(a, b): | |
for p, q in izip(a, b): | |
yield p and q | |
def OR(a, b): | |
for p, q in izip(a, b): |
.git/objects/pack$ PACKFILE=pack-<...>.pack ; mv $PACKFILE $PACKFILE.repack; git unpack-objects -r < $PACKFILE.repack |
import argparse | |
import multiprocessing | |
import signal | |
import subprocess | |
from pprint import pprint | |
globallock = multiprocessing.Lock() | |
class BatchSubprocess(object): |
# Original Source: http://ls.pwd.io/2014/08/singly-and-doubly-linked-lists-in-python/ | |
class Node(object): | |
def __init__(self, data, prev, next): | |
self.data = data | |
self.prev = prev | |
self.next = next | |
from percent import Percent | |
from pprint import pprint | |
def main(): | |
pprint( | |
# Ten Percent | |
Percent(5) % 50 | |
) |