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
| mdfind dict.txt ==> pulls down all paths associated with the file name | |
| ffmpeg ==> combine images to form video | |
| ffmpeg -f image2 -r 1/5 -i image%03d.png -vcodec mpeg4 -y movie.mp4 | |
| where image2 --> part of command | |
| image%03d --> all images of series 001, 002, 003 ... | |
| -r --> rate 1/5 (rate of holding each frame for 5 seconds) can be changed to 24 frames (experiment yourself) | |
| dig |
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 python | |
| # Quick Sort Implementation in Python | |
| # Author: Arunprasath Shankar | |
| # Case Western Reserve University | |
| # Using Partition Method | |
| from random import randint | |