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
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; |
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
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 |
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
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 |
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
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 |
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
foo = 'bar' |
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
__gittu_tab_title () | |
{ | |
TABTITLE=${PWD##*/} | |
if [ $PWD == $HOME ] ; then | |
TABTITLE="~" | |
fi | |
echo $TABTITLE | |
} | |
export PROMPT_COMMAND='echo -ne "\033]0;$(__gittu_tab_title)\007"' |
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
// 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, |
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 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): |
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
var asp = { | |
alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', | |
lookup: null , | |
ie: /MSIE/.test(navigator.userAgent), | |
ieo: /MSIE[67]/.test(navigator.userAgent), | |
encode: function(s) { | |
var buffer = asp.toUtf8(s), position = -1, len = buffer.length, nan0, nan1, nan2, enc = [, , , ]; | |
if (asp.ie) { | |
var result = []; | |
while (++position < len) { |
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
<?php | |
//This script will convert the avro autocorrect dict to json. Rifat bro already did it using textmate manually, but my approach is artistic :D | |
//Get the raw dict from github | |
$raw = file_get_contents("https://raw.github.com/omicronlab/Avro-Keyboard/master/Keyboard%20and%20Spell%20checker/autodict.dct"); | |
//breaking the lines | |
$lines = explode("\n",$raw); | |
$arr = array(); |
OlderNewer