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:
six seven eight nine ten |
<html><body>one two three four five</body></html> |
I hereby claim:
To claim this, I am signing this object:
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 |
for when you are bored | |
http://girlswhodocrossfit.tumblr.com/ | |
http://crossfitchicks.tumblr.com/ | |
http://crossfitbabes.tumblr.com/ | |
http://pinterest.com/werk8/crossfit-girls/ |
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'); |
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") |
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? |
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() |
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() |