This file contains 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
p{ | |
font-family: verdana; | |
font-size: 12px; | |
} |
This file contains 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
<div id="qunit"></div> | |
<div id="qunit-fixture"></div> |
This file contains 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"gopkg.in/ini.v1" | |
"net" | |
"os" | |
"regexp" | |
"strings" |
This file contains 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 toll import run, Toll | |
app = Toll(__name__) | |
@app.route(r'^/$') | |
def index(): | |
return 'Hello World' | |
This file contains 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 operator | |
import collections | |
class Rule(object): | |
def __init__(self, logic, left=None, right=None, op=None, inv=False): | |
self.logic = logic | |
self.left = left | |
self.right = right | |
self.op = op | |
self.inv = inv |
This file contains 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
# Invert all requirements: python checkdependents.py | |
# View specific: python checkdependents.py somepackage | |
import collections | |
import sys | |
import pip | |
def invert_dependencies_graph(distributions): | |
packages = collections.defaultdict(list) |
This file contains 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
#!/usr/bin/env python | |
""" | |
Checks the commit difference between current branch and target branch | |
a la GitHub. | |
Usage: | |
$ git cdiff upstream/master | |
This branch is 5 commits ahead, 10 commits behind upstream/master. |
This file contains 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
""" | |
Dependencies: pip install blockdiag | |
Run: python visualize.py | |
""" | |
from blockdiag import parser, builder, drawer | |
TEMPLATE = """ | |
blockdiag {{ orientation = portrait | |
{} |
This file contains 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
{ | |
"nickname": "xnodeuser", | |
"username": "xnodeuser", | |
"hostname": "myhost", | |
"servername": "myserver", | |
"realname": "xnodeuser", | |
"channel": "#xnodeuser" | |
} |