Skip to content

Instantly share code, notes, and snippets.

View jasherai's full-sized avatar

Pritesh jasherai

  • Phatforge
  • London
View GitHub Profile
CmdUtils.CreateCommand(
{
name: "ruby",
takes: {"function": noun_arb_text},
icon: "http://ruby-doc.org/favicon.ico",
homepage: "http://jackndempsey.blogspot.com",
author: {name: "Jack Dempsey", email: "jack.dempsey@gmail.com"},
license: "MPL,GPL",
description: "Search ruby functions documentation",
help: "Select a ruby function",
require 'right_aws'
namespace :utils do
namespace :attachments do
task :initialize_s3 => :environment do
s3_config = YAML.load_file(File.join(File.dirname(__FILE__), '/../../config/amazon_s3.yml'))
s3_config = s3_config[RAILS_ENV].to_options
@s3 = RightAws::S3.new(s3_config[:access_key_id], s3_config[:secret_access_key])
end
@jasherai
jasherai / x
Created February 24, 2009 11:24
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "jquerify",
url: "javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js');if(typeof%20jQuery!='undefined'){var%20msg='This%20page%20already%20using%20jQuery%20v'+jQuery.fn.jquery;}else{document.getElementsByTagName('head')[0].appendChild(s);var%20msg='This%20page%20is%20now%20jQuerified';}var%20el=document.createElement('div');el.style.position='fixed';el.style.height='30';el.style.width='200';el.style.margin='0%20auto%200%20auto';el.id='jq-kswedberg';el.style.top='0';el.style.left='40%';el.style.padding='5px%2010px%205px%2010px';el.style.backgroundColor='#f99';el.innerHTML=msg;var%20b=document.getElementsByTagName('body')[0];b.appendChild(el);window.setTimeout(function()%20{jQuery('#jq-kswedberg').fadeOut('slow',function(){jQuery(this).remove()});},2500);})();"
});
@jasherai
jasherai / x
Created February 24, 2009 11:25
CmdUtils.CreateCommand(
{
name: "mac",
takes: {"function": noun_arb_text},
icon: "http://standards.ieee.org/favicon.ico",
homepage: "http://standards.ieee.org/index.html",
author: {name: "Dragomir Manolov", email: "usmiv4o@gmail.com"},
license: "FREE",
description: "Search mac adress functions",
help: "Select a mac adress last octet function",
@jasherai
jasherai / x
Created February 24, 2009 11:37
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "xray",
url: "javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement('SCRIPT');%20scriptElem.setAttribute('language',%20'JavaScript');%20scriptElem.setAttribute('src',%20scriptURL);%20document.body.appendChild(scriptElem);}loadScript('http://westciv.com/xray/thexray.js');"
});
//STUMBLEUPON
var window = CmdUtils.getWindow();
function createCustomCommand(name, desc, func){
return CmdUtils.CreateCommand({
name: name,
icon: "http://www.stumbleupon.com/favicon.ico",
homepage: "http://foyrek.com/",
author: { name: "Abimanyu", email: "abimanyuraja@gmail.com"},
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "css-reloader",
url: "javascript:(function()%20%7Bvar%20links%20=%20document.getElementsByTagName(%22link%22);for%20(var%20i%20=%200;%20i%20%3C%20links.length;%20i++)%20%7Bif%20(links%5Bi%5D.rel%20===%20%22stylesheet%22)%20%7Bif%20(links%5Bi%5D.href.indexOf(%22?%22)%20===%20-1)%20%7Blinks%5Bi%5D.href%20+=%20%22?%22;%7Dlinks%5Bi%5D.href%20+=%20%22x%22;%7D%7D%7D)()"
});
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "get-request-timer",
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "selectorgadget",
url: "javascript:(function(){var%20s=document.createElement('div');s.innerHTML='Loading...';s.style.color='black';s.style.padding='20px';s.style.position='fixed';s.style.zIndex='9999';s.style.fontSize='3.0em';s.style.border='2px%20solid%20black';s.style.right='40px';s.style.top='40px';s.setAttribute('class','selector_gadget_loading');s.style.background='white';document.body.appendChild(s);s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://www.selectorgadget.com/stable/lib/selectorgadget.js?raw=true');document.body.appendChild(s);})();"
});
const Google = 'http://google.com/',
PLang = 'extensions.ubiquity.google.lang',
PSafe = 'extensions.ubiquity.google.safe',
PSize = 'extensions.ubiquity.google.size',
{prefs} = Application,
ID = '#_'+ (Math.random() +'').slice(2),
Logo = <a class="logo" href={Google}><img border="0"
src={Google +'intl/en_ALL/images/logo.gif'} height="110"/></a>,
Base = <div class="google"><style><![CDATA[
@{position:relative; line-height:1.25}
const Google = 'http://google.com/',
PLang = 'extensions.ubiquity.google.lang',
PFrom = 'extensions.ubiquity.google.from',
PSafe = 'extensions.ubiquity.google.safe',
PSize = 'extensions.ubiquity.google.size',
{prefs} = Application,
ID = '#_'+ (Math.random() +'').slice(2),
Logo = <a class="logo" href={Google}><img border="0"
src={Google +'intl/en_ALL/images/logo.gif'} height="110"/></a>,
Base = <div class="google"><style><![CDATA[