Skip to content

Instantly share code, notes, and snippets.

View jckdotim's full-sized avatar
💭
I may be slow to respond.

jckim.xyz jckdotim

💭
I may be slow to respond.
View GitHub Profile

Keybase proof

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:

class Oyakodong(Combined, HP10Food):
ticker_name = 'OYKD'
recipe = {'RICE', 'EGGS', 'CHKN'}
class Carbonara(Combined, HP10Food):
ticker_name = 'CBNR'
recipe = {'WHET', 'EGGS', 'MEAT'}
@jckdotim
jckdotim / gist:9823498
Last active December 27, 2016 16:51
이거 하나면 다 된다.

설치

맥은 __Xcode__를 먼저 설치해야 합니다. __Terminal__을 실행하시고, 아래 명령어를 치세요.

Password는 맥에 쓰던 것을 쓰시면 됩니다.

$ sudo gem install jekyll
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>
@jckdotim
jckdotim / gist:1694125
Created January 28, 2012 12:17
heroku tutorial
$ 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
@jckdotim
jckdotim / gist:1694116
Created January 28, 2012 12:15
sinatra tutorial
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