This file contains hidden or 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
| # GNU Screen - main configuration file | |
| # All other .screenrc files will source this file to inherit settings. | |
| # Author: Christian Wills - cwills.sys@gmail.com | |
| # Allow bold colors - necessary for some reason | |
| attrcolor b ".I" | |
| # Tell screen how to set colors. AB = background, AF=foreground | |
| termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
This file contains hidden or 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
| # Written by Brendan O'Connor, brenocon@gmail.com, www.anyall.org | |
| # * Originally written Aug. 2005 | |
| # * Posted to gist.github.com/16173 on Oct. 2008 | |
| # Copyright (c) 2003-2006 Open Source Applications Foundation | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # |
This file contains hidden or 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 | |
| /** | |
| * A simple Facebook PHP example. | |
| * | |
| * - This is not a "Facebook SDK". | |
| * - This example uses Curl, Hash, JSON, Session extensions. | |
| * - This does not use the JavaScript SDK, nor the cookie set by it. | |
| * - This works with Canvas, Page Tabs with IFrames, the Registration Plugin | |
| * and with any other flow which uses the signed_request. |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """ | |
| LICENSE: BSD (same as pandas) | |
| example use of pandas with oracle mysql postgresql sqlite | |
| - updated 9/18/2012 with better column name handling; couple of bug fixes. | |
| - used ~20 times for various ETL jobs. Mostly MySQL, but some Oracle. | |
| to do: | |
| save/restore index (how to check table existence? just do select count(*)?), | |
| finish odbc, |
This file contains hidden or 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
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |
This file contains hidden or 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
| Mac OSX pygraphviz program dot not found: Solution | |
| This is a bug. You need to fix by editing file agraph.py of the pygraphviz package | |
| at about line number 1240 | |
| For me file was at ___ | |
| $ mdfind agraph.py | |
| Change | |
| FROM: | |
| runprog=self._get_prog(prog) |
This file contains hidden or 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 python2.7 | |
| """ | |
| Sorting a Million 32-bit integers in 2MB of RAM using Python | |
| Inspired by the Master himself! | |
| """ | |
| import array | |
| import heapq | |
| import random | |
| import struct |
This file contains hidden or 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
| #include | |
| #include | |
| #include | |
| char site_list[6][30]={ | |
| “google.com”, | |
| “www.google.com”, | |
| “youtube.com”, | |
| “www.youtube.com”, | |
| “yahoo.com”, |
This file contains hidden or 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
| cd into uncompyle2 project folder | |
| $python setup.py install | |
| after installation | |
| $python /Users/arunprasathshankar/Downloads/uncompyle2-master/scripts/uncompyle2 <.pyc file path> |
This file contains hidden or 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
| \documentclass[pstricks,dvipsnames,cmyk]{standalone} | |
| \usepackage{etoolbox} | |
| \def\temp{} | |
| \begingroup | |
| \renewcommand\DefineNamedColor[4]{\listgadd{\temp}{#2}} | |
| \input{dvipsnam.def} | |
| \endgroup |
NewerOlder