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/ruby | |
class Person | |
def initialize(name, email) | |
@name, @email = name, email.gsub('|', '').gsub('*','.') | |
end | |
def show_name | |
@name | |
end | |
def visit(site) | |
if (@data["portfolio"].match(/http:\/\//) && system("firefox #{site}")) |
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
// ==UserScript== | |
// @name Gmail Replace Domain | |
// @author http://codejoust.com | |
// @namespace http://mail.google.com/ | |
// @description example script to alert "Hello world!" on every page | |
// @include http://mail.google.com/* | |
// ==/UserScript== | |
var your_domain = 'yourdomain.com'; //Your domain to change. | |
var canvas_frame = document.getElementById('canvas_frame').contentWindow.document; //The Canvas Frame in Gmail | |
var user_id = canvas_frame.getElementById('guser').getElementsByTagName('b')[0]; //Get the child b element containing username |
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
<?php | |
class Config{ | |
private static $_data; | |
private static $_instance; | |
public function __construct() { } | |
public static function getInstance(){ |
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
/* command "Bible" */ | |
CmdUtils.CreateCommand({ | |
name: "bible", | |
icon: "http://www.biblegateway.com/favicon.ico", | |
homepage: "http://www.biblegateway.com/", | |
author: { name: "CodeJoust", email: "http://codejoust.com/contact"}, | |
license: "GPL", | |
description: "Search BibleGateway", | |
help: "BibleGateway: General Search", | |
takes: {"input": noun_arb_text}, |
NewerOlder