Skip to content

Instantly share code, notes, and snippets.

View clintecker's full-sized avatar
🎯
Focusing

Clint Ecker clintecker

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am clintecker on github.
  • I am clintecker (https://keybase.io/clintecker) on keybase.
  • I have a public key whose fingerprint is EE27 FEE0 EF78 A7B8 B9E7 6AFB F4EE 284B E2F8 B7F2

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v0.1.1
Comment: https://keybase.io/crypto
wcFMA1UJ6md+eAqJARAAjUuMKKFfdRTxBvjdED1hor6T9WzseuJJrfFDDENbnjCO
Pb5wH9/Y+8aD0hP4etp8Eiix65IZxlD4HPmuZyeLzeaeLhuZj7oIlQPL1WqD/XNk
xFzD1qVTStzKEj509CWtHNArMYmnLUIzFOz08JQ6qfv+ktKD9539fngOJL+7ykbs
XdABQu5HJDPEFD00eTwj/BmttGRA6BUknAoiYYT/fZ/rBVeGt2dkhxwQrhfFGjjO
tNOK1Czp3GHIp9hjerLowgCPSeHvIY8AZasapmI9gYv1mILokI2JlPWqqN+Gf0r6
BqbP4MoqsCV3KRhoRawIskMlTkwkq4UpqM71+1kPV1f1f1821EFBbu7HJnsuAcXk
@clintecker
clintecker / gist:9789329
Created March 26, 2014 17:55
for harper
-----BEGIN PGP MESSAGE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
hQEMA/0pCQnlhrS5AQf+OHpcZV03GyGToErWqIT+D5W/1/6sMGoEAn/pVB17zA6+
srXaD+mrFFaMf1cOQIynJiGHrkND5ICL9rBinmM4QI3n2RRAxHbuWprt+FYlmR8x
4GoZDNS34SI2f8tDXwDpV9niGTizXYt8FHGJYiwbWllMQ9Qy5che46HdYg6BqJ1A
OJQVdKkfcu3W6i1bZCogBDODwoscH1vu1Df1YWJzi3Yg/LjMMepmG+O/Afgu3sgV
emqa9DQjO8BGRwYqR4voXOfz1nPmfwobEan/eXi3HraBqXOfLI0UuZ6ovuSnYzqT
8VyhxTbF+HZLe3rW9qn6/vMu9VD30LIpvgYjFW2yG9JoARJ4blwEM3UqO43JL9gB
# -*- coding: utf-8 -*-
from base64 import b64decode, b64encode
import hashlib
f = 'users.csv'
d = open(f).read()
d = d.decode('utf16')
username = raw_input('your ars username: ')
sql = "SELECT %(column)s FROM %(table)s" % {
'column': 'blah',
'table': 'mytable',
}
var D = Class.create(true);
D.namespace({
meta: {
page: {
number: 0,
type: "other"
},
user: {
loggedIn: false
},
[arstechnica@hq js]$ grep -i individual site.js
[arstechnica@hq js]$ grep -i 'individual' site.js
[arstechnica@hq js]$ grep -i 'individual' site.js
[arstechnica@hq js]$ grep -i 'individual' site.js
[arstechnica@hq js]$ grep -i 'individual' site.js <--- Started the template re-building
if(com.arstechnica.common.body.hasClass('individual')) { <--- line appears! yay!
[arstechnica@hq js]$ grep -i 'individual' site.js
if(com.arstechnica.common.body.hasClass('individual')) {
[arstechnica@hq js]$ grep -i 'individual' site.js
if(com.arstechnica.common.body.hasClass('individual')) {
<div class="news-item-figure CenteredImage"> <!-- You can change centered image to ImageLeft/Right if you want -->
<div class="news-item-figure-image">
<img src="http://arstechnica.com/cdn/columbine.jpg"/>
</div>
<div class="news-item-figure-caption">
<div class="news-item-figure-caption-text">The catalyst behind society's disapproval of aggression: school shootings like Columbine in 1990s.</div>
</div>
</div>
<div class="news-item-figure ImageLeft" style="width:310px;">
<table>
<thead>
<tr>
<th>
<em>The BBook of Geek: The Only Geek Humor Book You'll Ever Need</em>
</th>
</tr>
</thead>
<tbody>
(ars-django-project)[master][~/src/ars-django-project/arstechnica] ./manage.py syncdb
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/Users/clintecker/.virtualenvs/ars-django-project/lib/python2.5/site-packages/django/core/management/__init__.py", line 340, in execute_manager
utility.execute()
File "/Users/clintecker/.virtualenvs/ars-django-project/lib/python2.5/site-packages/django/core/management/__init__.py", line 295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/clintecker/.virtualenvs/ars-django-project/lib/python2.5/site-packages/django/core/management/base.py", line 192, in run_from_argv
self.execute(*args, **options.__dict__)