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
diff --git a/httpdomain/sphinxcontrib/autohttp/flask.py b/httpdomain/sphinxcontrib/autohttp/flask.py | |
--- a/httpdomain/sphinxcontrib/autohttp/flask.py | |
+++ b/httpdomain/sphinxcontrib/autohttp/flask.py | |
@@ -93,7 +93,15 @@ | |
def make_rst(self): | |
app = import_object(self.arguments[0]) | |
- for method, path, endpoint in get_routes(app): | |
+ | |
+ # order by paths, remember last path per endpoint |
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/python | |
# | |
# Read a CSV/TSV with a header row (!) and put it into a new sqlite table | |
import sys | |
import csv | |
import sqlite3 | |
class Importer (object): |
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
# Now written for ZSH and using oh-my-zsh | |
# Install oh-my-zsh as shown in https://github.com/robbyrussell/oh-my-zsh#basic-installation | |
# Install our custom theme: ln -s ~/profile/p2.zsh-theme ~/.oh-my-zsh/themes/p2.zsh-theme | |
# Change ~/.zshrc and use: | |
# ZSH_THEME="p2" | |
# plugins=() | |
# source ~/.profile | |
# ----------------------- | |
# keep history per session (oh-my-zsh sets this to shared) |
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
# Extended from: | |
# http://baldowl.github.com/2011/04/13/rough-gallery-plugin-for-jekyll.html | |
# | |
# Basic usage: add a `gallery` attribute to the YAML header of any page with | |
# value being the filename extension of your images. | |
# | |
# This script looks for any files with your `gallery` extension that does NOT | |
# end with "-thumb.ext" or "@2x.ext". It sorts all the matching files alpha- | |
# betically and puts in in an array full of hashes that look like: | |
# { |
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
$ brew update | |
Updated Homebrew from 612e0b1c to c4b88b2a. | |
==> Updated Formula | |
ddrescue fbida geeqie | |
$ brew doctor | |
Your system is raring to brew. | |
$ brew uninstall libxml2 | |
Uninstalling /usr/local/Cellar/libxml2/2.8.0... | |
$ brew install libxml2 --with-python | |
==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz |
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
h3 { | |
margin-bottom: 0.5em; | |
} | |
#header { | |
margin-bottom: 40px; | |
padding-top: 40px; | |
} | |
#header h1 a.no_header { | |
font-family: Palatino, Helvetica, sans-serif; |
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
<h1>Convert Bookmarklet</h1> | |
<p>A bookmarklet to (currently) convert <b>feet to cm</b> and <b>inches to Meter</b> on any website.</p> | |
<p>Drag this link to your bookmark bar and click it when you're on a website you want to convert: <a href="javascript:(function(){var head=document.getElementsByTagName('head')[0],script=document.createElement('script');script.type='text/javascript';script.src='http://www.ossus.ch/convert.js?'+Math.floor(Math.random()*99999);head.appendChild(script);})(); void 0">Convert</a> | |
</p> |
NewerOlder