Skip to content

Instantly share code, notes, and snippets.

@bjtitus
bjtitus / UIColor+ContrastAdditions.h
Created October 26, 2012 16:13
UIColor contrast additions
//
// UIColor+ContrastAdditions
//
// Created by Brandon Titus (bjtitus.net) on 10/26/12.
//
//
#import <UIKit/UIKit.h>
#import "UIColor-Expanded.h"
@bjtitus
bjtitus / Perl SafeConnect Bypass
Created January 25, 2011 16:46
SafeConnect Bypass
#!/usr/bin/perl
use Net::Ping;
$host = "www.google.com";
while (1) {
$p = Net::Ping->new('icmp');
if ($p->ping($host)) {
print "$host is alive.\n";
@bjtitus
bjtitus / gist:205540
Created October 8, 2009 23:47
Some code to play around with Python
import sys
import getopt
def main():
""" print ind(40, [ 55, 77, 42, 12, 42, 100 ])
print ind(42, range(0,100))
print ind('hi', [ 'hello', 42, True ])
print ind('hi', [ 'well', 'hi', 'there' ])
print ind('i', 'team')
print ind(' ', 'outer exploration')
print "Hello, World!"
value = raw_input("Input your name: ")
print "Hello, " + value + "!"