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
| user www www; | |
| worker_processes 5; | |
| error_log logs/error.log; | |
| pid logs/nginx.pid; | |
| worker_rlimit_nofile 8192; | |
| events { | |
| worker_connections 4096; | |
| } |
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 ruby | |
| =begin | |
| * Name: xml.rb | |
| * Description parses xml iTunes Music Library and inserts into database | |
| so other apps can use, rather than each time parsing xml file | |
| * Author: Original - Aaron Patterson (xml parsing portion) | |
| http://groups.google.com/group/nokogiri-talk/browse_thread/thread/97973521c6f5f0dc | |
| * Additions by rkumar | |
| * Date: 2010-08-04 | |
| * License: |
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
| /* create tables to store itunes music library data for quick access | |
| - rkumar 2010 July | |
| */ | |
| drop table tracks; | |
| create table tracks ( | |
| album_artist VARCHAR(50), | |
| album_rating_computed INTEGER, | |
| album_rating VARCHAR(50), | |
| album VARCHAR(50), | |
| all_items VARCHAR(50), |
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
| """ | |
| Script to convert a Xcode3 Color theme into a Xcode4 one. | |
| Example: | |
| bash# python xcode3_theme_to_xcode4.py Twilight.xcolortheme | |
| It will write a new file: Twilight.dvtcolortheme into the same folder as the script is residing in. | |
| """ | |
| import plistlib,sys | |
| """ Define boilerplate of the color theme """ | |
| defaultConfig = { |
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
| # ***************************************** | |
| # .irbrc | |
| # | |
| # Includes lots of nice stuff to make | |
| # your irb and script/console ruby shell | |
| # more pretty and productive | |
| # | |
| # ***************************************** | |
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
| // See comments below. | |
| // This code sample and justification brought to you by | |
| // Isaac Z. Schlueter, aka isaacs | |
| // standard style | |
| var a = "ape", | |
| b = "bat", | |
| c = "cat", | |
| d = "dog", |
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
| I, Jason Huggins, the author of the work "CoffeeScript Web Server" (2010), irrevocably renounce | |
| all current and future legal rights to the work in any medium whatsoever. | |
| I stand behind the merit of the work, but disclaim all liability for it under law. | |
| I encourage you, the audience, to share, copy, distribute, perform, remix, mash up, interpret, | |
| excerpt, translate, and otherwise enjoy and use the work as you will. | |
| I request that you acknowledge my authorship. |
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
| require 'pp' | |
| require 'irb/completion' | |
| require 'rubygems' | |
| require 'wirble' | |
| require 'hirb' | |
| Wirble.init | |
| Wirble.colorize | |
| IRB.conf[:AUTO_INDENT]=true |
NewerOlder