I hereby claim:
- I am jckdotim on github.
- I am jckdotim (https://keybase.io/jckdotim) on keybase.
- I have a public key ASDkBNGA5x4XLCUkIayjWQPzwbTsX64Jd_-Rin93e45W2go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Oyakodong(Combined, HP10Food): | |
ticker_name = 'OYKD' | |
recipe = {'RICE', 'EGGS', 'CHKN'} | |
class Carbonara(Combined, HP10Food): | |
ticker_name = 'CBNR' | |
recipe = {'WHET', 'EGGS', 'MEAT'} | |
javascript:window.open('/places/' + encodeURIComponent($($('.context')[1]).text()), 'width=1024&height=768'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Page</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.js"></script> | |
</head> | |
<body> |
$ heroku create | |
Created sushi.herokuapp.com | git@heroku.com:sushi.git | |
$ git push heroku master | |
-----> Heroku receiving push | |
-----> Rails app detected | |
-----> Compiled slug size is 8.0MB | |
-----> Launching... done, v1 | |
http://sushi.herokuapp.com deployed to Heroku |
require 'sinatra' | |
get '/hi' do | |
"Hello World!" | |
end |
>>> Place.query.filter(Place.lat - 37.52 > 0.01).count() | |
2011-12-10 02:26:57,731 INFO sqlalchemy.engine.base.Engine SELECT count(*) AS count_1 | |
FROM ... | |
FROM place | |
WHERE aes_decrypt(unhex(place.encrypted_lat), %s) - %s > %s) AS anon_1 | |
2011-12-10 02:26:57,731 INFO sqlalchemy.engine.base.Engine ('1234567890123456', 37.520000000000003, 0.01) | |
8L | |
>>> |
>>> Place.query.get(1).lat | |
37.520410699999999 | |
>>> |
if str(db.engine.url).find('mysql://') >= 0: | |
import EncryptedLocationMixIn as LocationMixIn |