Skip to content

Instantly share code, notes, and snippets.

mode "1680x1050 60.00Hz 32bit (GTF)"
# PCLK: 147.14 MHz, H: 65.22 kHz, V: 60.00 Hz
geometry 1680 1050 1680 1050 32
timings 6796 288 104 33 1 184 3
hsync low
vsync high
endmode
Python command line client for gist.github.com
Based on Chris Wanstrath's ruby gist client:
http://github.com/defunkt/gist/tree/master
Install:
wget http://github.com/mattikus/pygist/raw/master/pygist.py -O ~/bin/pygist
Usage:
cat file.txt | pygist
#!/bin/sh
ver=0.3.1
#
# Aurvote, a tool to vote for favorite packages on AUR for inclusion in [community]
# <wain@archlinux.fr>
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Traceback (most recent call last):
File "/usr/bin/qtile", line 53, in <module>
main()
File "/usr/bin/qtile", line 47, in main
q = manager.Qtile(c)
File "/usr/lib/python2.5/site-packages/libqtile/manager.py", line 435, in __init__
self.event
File "/usr/lib/python2.5/site-packages/libqtile/manager.py", line 100, in _configure
i._configure(qtile, self, event)
File "/usr/lib/python2.5/site-packages/libqtile/bar.py", line 137, in _configure
#!/bin/bash
for i in *; do
if [ -d $i ]; then
mp3gain -a $i/*.mp3
fi
done
We couldn’t find that file to show.
TEST!
bioe007 is a fatty fat moron
mkemp@alcfwl131 ~/tmp/macvim/src$ ./Vim --version |grep python
-osfiletype +path_extra -perl +postscript +printer +profile +python +quickfix
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -I. -Iproto -DMACOS_X_UNIX -no-cpp-precomp -I/Developer/Headers/FlatCarbon -g -O -I/Users/mkemp/include/python2.6
mkemp@alcfwl131 ~/tmp/macvim/src$ otool -L Vim |grep -i python
/System/Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility version 2.5.0, current version 2.5.1)
try:
import json
except ImportError:
import simplejson as json
import logging
from xmlrpclib import Server
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
#include <stdbool.h>
#include <stdio.h>
bool isDiv(long answer)
{
for (int x=20; x>1; x--) {
if (answer % x) {
return false;
}
}