Skip to content

Instantly share code, notes, and snippets.

View bobpattersonjr's full-sized avatar

Bob Patterson Jr bobpattersonjr

View GitHub Profile
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
@bobpattersonjr
bobpattersonjr / branch_switch
Created March 9, 2011 15:57
git branch switching script
#!/usr/bin/perl
#March 9th 2011
#fisrt pass at branch switch script
#author bob patterson <bob at bobpattersonjr dot com>
sub trim($);
print "fetching all branchs and tags\n";
`git fetch;git fetch --tags`;
$new_branch = trim($ARGV[0]);
$non_branch_test = `git branch|tr -d ' '|grep -x $new_branch`;
@bobpattersonjr
bobpattersonjr / csv2strings
Created March 16, 2011 20:54
script to parse .csv files to .strings files for translations
#!/usr/bin/perl
#March 16th 2011
#script to parse .csv files to .strings files for translations
#author bob patterson <bob at bobpattersonjr dot com>
sub trim($);
sub escape_quotes($);
sub process($);
my $operation = trim($ARGV[0]);
@bobpattersonjr
bobpattersonjr / phplogster
Created May 5, 2011 19:06
php error and warning logging parsing script to use with logster
import time
import re
from logster_helper import MetricObject, LogsterParser
from logster_helper import LogsterParsingException
class phplogster(LogsterParser):
def __init__(self):
'''Initialize any data structures or variables needed for keeping track
@bobpattersonjr
bobpattersonjr / checkEmailDomain.php
Created September 14, 2012 02:11
Check Email Domain
function checkEmailDomain($email) {
if(preg_match('/^([a-zA-Z0-9_])+([a-zA-Z0-9\.+_-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/', $email)){
list($username,$domain)=split('@',$email);
if(!checkdnsrr($domain,'MX')) {
return false;
}
return true;
}
return false;
}
/*
JSTN THEME FOR LIMECHAT 1.0
put this and the other thing in ~/Library/Application Support/LimeChat/Themes/
bg 1a2230
hlight 273146
red e44347
purps 8b84d0
fuscia c2339a
@bobpattersonjr
bobpattersonjr / better-git-branch.sh
Created February 14, 2024 17:35 — forked from schacon/better-git-branch.sh
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'