Tim Broder broderboy

View keybase.md

Keybase proof

I hereby claim:

  • I am broderboy on github.
  • I am timbroder (https://keybase.io/timbroder) on keybase.
  • I have a public key whose fingerprint is EB1E 3CD8 E2EB 5369 9898 4B3D 634C 9851 BC45 49A6

To claim this, I am signing this object:

View gist:8497344
1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
View gist:6186635
1 2 3 4 5 6
for when you are bored
 
http://girlswhodocrossfit.tumblr.com/
http://crossfitchicks.tumblr.com/
http://crossfitbabes.tumblr.com/
http://pinterest.com/werk8/crossfit-girls/
View gist:5367090
1 2 3 4 5 6 7 8 9 10
Index: dts_class_switcher.php
===================================================================
--- dts_class_switcher.php (revision 696222)
+++ dts_class_switcher.php (working copy)
@@ -84,26 +84,37 @@
// DEVICE READING & ALTERNATE THEME OUTPUT
// ------------------------------------------------------------------------
public function detect_device_and_set_flag () {
- //Include the MobileESP code library for acertaining device user agents
- include_once('mdetect.php');
View gruber_url_check.py
1 2 3 4 5 6 7 8 9 10
import re
 
def check(test_str):
pattern = r'(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))'
if not re.search(pattern, test_str):
print 'Invalid : %r' % (test_str,)
else:
print 'Valid : %r' % (test_str,)
 
check("http://www.timbroder.com")
View gist:5032595
1 2 3 4 5 6 7 8 9
We are using Disqus SSO (2012) in conjunction with wordpress for one of our clients.
The site is in Spanish and the translation is mostly working.
http://screencast.com/t/h5aDGaX4aI
 
The Spanish translation for the actual comment thread works fine.
But the comment/reaction counts are still returned in English.
The comment counts that disqus replaces wordpress comment counts with comes from a file called count.js (it's part of the JSON in that file).
 
Is what we're trying to do not possible in 2012?
View gist:4955981
1 2 3 4 5 6 7 8 9 10
def save(self,*args,**kwargs):
self.response = self.response.lower()
if not self.expiration:
self.expiration = datetime.datetime.now() + datetime.timedelta(minutes= int(captcha_settings.CAPTCHA_TIMEOUT))
if not self.hashkey:
key_ = unicodedata.normalize('NFKD', str(randrange(0,MAX_RANDOM_KEY)) + str(time.time()) + unicode(self.challenge)).encode('ascii', 'ignore') + unicodedata.normalize('NFKD', unicode(self.response)).encode('ascii', 'ignore')
if hashlib:
self.hashkey = hashlib.new('sha', key_).hexdigest()
else:
self.hashkey = sha.new(key_).hexdigest()
View images_for_seth.py
1 2 3 4 5 6 7 8 9 10
from bs4 import BeautifulSoup
import urllib2, urllib
import sys
import imghdr
import os
 
root = "http://www.imgspark.com"
base = "%s/image/popular/sethwhitton/alltime/" % root
 
page = urllib2.urlopen(base).read()
View gist:4547825
1 2 3 4 5 6 7 8 9 10
#the backend
class MySolrBackend(SolrSearchBackend):
def build_search_kwargs(self, *args, **kwargs):
facet_mincount = kwargs.pop('facet_mincount', None)
search_kwargs = super(AiSolrBackend, self).build_search_kwargs(*args, **kwargs)
if facet_mincount is not None:
search_kwargs['facet'] = 'on'
search_kwargs['facet.mincount'] = facet_mincount
View gist:4319967
1 2 3 4 5 6 7 8 9 10
theme loaded
app ready
pre session restore time: 0.675485
using gamma: 2 (err: 6.9282)
wrote startup cache, added files: 2 orphaned files: 0 total files: 101 cache hits: 99
startup time: 0.976856 (package setup was not run)
loaded 837 snippets
Package Control: Installing 16 missing packages
Package Control: Download Debug
URL: https://sublime.wbond.net/repositories.json
Something went wrong with that request. Please try again.