I hereby claim:
- I am chetan on github.
- I am chetan (https://keybase.io/chetan) on keybase.
- I have a public key whose fingerprint is 4B9C 048F 5423 B084 3143 68F1 0747 382F 0F4D C0DD
To claim this, I am signing this object:
// unwatch all repos containg "foobar" | |
$("li.subscription-row").each(function(i, row){ if ($(row).find("a.repo-name").text().indexOf("foobar") >= 0) { $(row).find("form.js-unsubscribe-form button").click() } }); |
#!/usr/bin/env ruby | |
lines = STDIN.readlines.map{ |s| s.strip.downcase } | |
# lines = File.read("files.txt").split(/\n/).map{ |s| s.downcase } | |
files = {} | |
lines.each{ |s| files[s] = 1 } | |
lines.each do |s| | |
if s =~ /^(.*?)\.jn1$/ then | |
f = $1 |
user system total real allocations memsize | |
RABL Ultra Simple 2.660000 0.890000 3.550000 ( 3.557719) 106 8751 | |
AMS Ultra Simple 0.280000 0.010000 0.290000 ( 0.285863) 26 650 | |
Presenters Ultra Simple 0.170000 0.000000 0.170000 ( 0.174525) 24 650 | |
ApiView Ultra Simple 0.190000 0.010000 0.200000 ( 0.196894) 12 842 | |
------------------------------------------------------------------------------------------------------------------- | |
RABL Simple 14.240000 4.490000 18.730000 ( 18.813523) 590 53565 | |
AMS Simple 1.280000 0.000000 1.280000 ( 1.290985) 105 2726 | |
Presenters Simple 0.690000 0.010000 0.700000 ( 0.690873) |
// bookmarklet | |
javascript:var d = $("div.slide"), s = $($.grep($("script"), function(el) { return $(el).text().match(/VVMSlideShow/) })).text().replace(/\s+/g, "");s = s.substring(s.indexOf("photoData:")+10, s.indexOf("pointer:")-1);s = JSON.parse(s);_.each(s, function(v, i) {if (i === "1") return;d.append("<img src='" + v["Photo"] + "' />");}); | |
// expanded version | |
var d = $("div.slide"), | |
s = $($.grep($("script"), function(el) { return $(el).text().match(/VVMSlideShow/) })).text().replace(/\s+/g, ""); | |
s = s.substring(s.indexOf("photoData:")+10, s.indexOf("pointer:")-1); | |
s = JSON.parse(s); | |
_.each(s, function(v, i) { | |
if (i === "1") return; |
I hereby claim:
To claim this, I am signing this object:
var ShutdownHook = { | |
prefs: PrefsService, // wrapper around XPCOM preferences API | |
register: function() { | |
if (this.prefs.shutdownRegistered) { | |
return; | |
} | |
var observerService = |
(* | |
Public Domain, 2010 | |
Chetan Sarva <csarva@pixelcop.net> | |
http://chetanislazy.com/ | |
See also: | |
http://blog.entourage.mvps.org/2009/02/use_growl_with_entourage.html (original, help) | |
http://blog.geekdaily.org/2007/12/growl-for-entou.html (another script, borrowed some ideas) | |
*) |
module LinesOfCode | |
include Extension | |
first_time do | |
# Define task not specific to any projet. | |
desc 'Count lines of code in current project' | |
Project.local_task('loc') | |
end |
#!/usr/bin/ruby | |
if ARGV.empty? then | |
puts "usage: reduce_deps.rb <file with dep constants>" | |
exit | |
end | |
deps_file = ARGV[0] | |
orig_consts = Object.constants |
function clearCharSetAndCollation() | |
local schemata = grtV.getGlobal("/wb/doc/physicalModels/0/catalog/schemata") | |
local s | |
local tables | |
local t | |
for s=1, grtV.getn(schemata) do | |
print(schemata[s].name .. "\n") |