Skip to content

Instantly share code, notes, and snippets.

from lxml.html import fromstring, tostring
from pprint import pprint
from inspect import getmembers
from more_itertools import unique_everseen
form_page = fromstring(open('postProduct.html').read())
form = form_page.forms[0]
def printlabel(v):
// Complile:
// clang -o gittumouse gittumouse.c -framework ApplicationServices
#include <ApplicationServices/ApplicationServices.h>
static CGRect screenBounds;
// callback for mouse click.
CGEventRef
myCGEventCallback(CGEventTapProxy proxy, CGEventType type,
__gittu_tab_title ()
{
TABTITLE=${PWD##*/}
if [ $PWD == $HOME ] ; then
TABTITLE="~"
fi
echo $TABTITLE
}
export PROMPT_COMMAND='echo -ne "\033]0;$(__gittu_tab_title)\007"'
foo = 'bar'
7z(1) - A file archiver with highest compression ratio
7za(1) - A file archiver with highest compression ratio
7zr(1) - A file archiver with highest compression ratio
Axel(1) - A light download accelerator for Linux
Cdt(3) - container data types
FIGlet(6) - display large characters made up of ordinary screen characters
GDBM(3) - The GNU database manager. Includes dbm and ndbm compatability. (Version .)
Git(3pm) - Perl interface to the Git version control system
Git::I18N(3pm) - Perl interface to Git's Gettext localizations
Git::SVN::Editor(3pm) - commit driver for "git svn set-tree" and dcommit
7z(1) - A file archiver with highest compression ratio
7za(1) - A file archiver with highest compression ratio
7zr(1) - A file archiver with highest compression ratio
Axel(1) - A light download accelerator for Linux
Cdt(3) - container data types
FIGlet(6) - display large characters made up of ordinary screen characters
GDBM(3) - The GNU database manager. Includes dbm and ndbm compatability. (Version .)
Git(3pm) - Perl interface to the Git version control system
Git::I18N(3pm) - Perl interface to Git's Gettext localizations
Git::SVN::Editor(3pm) - commit driver for "git svn set-tree" and dcommit
7z(1) - A file archiver with highest compression ratio
7za(1) - A file archiver with highest compression ratio
7zr(1) - A file archiver with highest compression ratio
Axel(1) - A light download accelerator for Linux
Cdt(3) - container data types
FIGlet(6) - display large characters made up of ordinary screen characters
GDBM(3) - The GNU database manager. Includes dbm and ndbm compatability. (Version .)
Git(3pm) - Perl interface to the Git version control system
Git::I18N(3pm) - Perl interface to Git's Gettext localizations
Git::SVN::Editor(3pm) - commit driver for "git svn set-tree" and dcommit
server {
listen 80;
server_name fonts.googleapis.com themes.googleusercontent.com;
root /Users/sarim/Sites/php55/;
index app_dev.php index.html index.htm;
location / {
fastcgi_pass unix:/usr/local/var/run/php55.sock;
fastcgi_index index.php;
filename=$1
SOURCE1="../a"
SOURCE2="../c"
TARGET="deploy"
PFILE="config.ini"
######################################
if [ -d $SOURCE1 ];
then
SOURCE=$SOURCE1
@sarim
sarim / Castle.xml
Created January 6, 2014 13:44 — forked from kwmt/Castle.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>