Skip to content

Instantly share code, notes, and snippets.

<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',
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
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*)\))?(?=[^-]|$)/,
bar
>> 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) }
=> []
/*
=skin=
@name Default
@author Yatrik Solanki
@homepage http://www.yatriksolanki.com
@email [email protected]
@license MPL/LGPL/GPL
=/skin=
*/
/*
=skin=
@name Default
@author Yatrik Solanki
@homepage http://www.yatriksolanki.com
@email [email protected]
@license MPL/LGPL/GPL
=/skin=
*/
# +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)
speed test.
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'