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 type="text/javascript"> | |
| MyUpdater = { | |
| since:'<%= @since.to_f %>', | |
| u: function() { | |
| new Ajax.PeriodicalUpdater('notes','/poller', { | |
| asynchronous:false, | |
| frequency:'4', | |
| method:'get', | |
| parameters:"since="+MyUpdater.since, | |
| insertion:'top', |
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 'rubygems' | |
| require 'rubygems/format' | |
| ROOT_DIR = '/home/github/gems/' | |
| CACHE_DIR = ROOT_DIR + 'cache' | |
| SPEC_DIR = ROOT_DIR + 'specifications' | |
| Dir.glob("#{CACHE_DIR}/*.gem") do |f| | |
| begin | |
| spec = Gem::Format.from_file_by_path(f).spec |
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
| var Expr = Sizzle.selectors = { | |
| order: [ "ID", "NAME", "TAG" ], | |
| match: { | |
| ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, | |
| CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, | |
| NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, | |
| ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, | |
| TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, | |
| CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, | |
| POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, |
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
| bar |
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
| >> Dir.entries('_layouts') | |
| => [".", "..", ".svn"] | |
| >> Dir.entries('_layouts').reject { |x| File.directory?(x) } | |
| => [".svn"] | |
| >> Dir.chdir('_layouts') | |
| => 0 | |
| >> Dir.entries('.') | |
| => [".", "..", ".svn"] | |
| >> Dir.entries('.').reject { |x| File.directory?(x) } | |
| => [] |
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
| /* | |
| =skin= | |
| @name Default | |
| @author Yatrik Solanki | |
| @homepage http://www.yatriksolanki.com | |
| @email [email protected] | |
| @license MPL/LGPL/GPL | |
| =/skin= | |
| */ | |
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
| /* | |
| =skin= | |
| @name Default | |
| @author Yatrik Solanki | |
| @homepage http://www.yatriksolanki.com | |
| @email [email protected] | |
| @license MPL/LGPL/GPL | |
| =/skin= | |
| */ | |
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
| # +path+ is the full path of the new repo (traditionally ends with /.git)# +path+ is the full path of the new repo (traditionally ends with /.git)# +path+ is the full path of the new repo (traditionally ends with /.git)# +path+ is the full path of the new repo (traditionally ends with /.git) |
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
| speed test. |
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
| rails_root = "/data/github/current" | |
| 20.times do |num| | |
| God.watch do |w| | |
| w.name = "dj-#{num}" | |
| w.group = 'dj' | |
| w.interval = 30.seconds | |
| w.start = "rake -f #{rails_root}/Rakefile production jobs:work" | |
| w.uid = 'git' |