I hereby claim:
- I am commadelimited on github.
- I am commadelimited (https://keybase.io/commadelimited) on keybase.
- I have a public key ASAQmZtWglS2Z-B6hCkNWza35Z27cYczUaVejn80xPvBqgo
To claim this, I am signing this object:
@course.route('/courses/<slug>_<id>/print/') | |
@course.route('/courses/<slug>_<id>/') | |
def show_course(slug=None, id=None): | |
# how do I know whether /print was used, or just normal? | |
pass |
javascript: (function () { | |
function c() { | |
var e = document.createElement("link"); | |
e.setAttribute("type", "text/css"); | |
e.setAttribute("rel", "stylesheet"); | |
e.setAttribute("href", f); | |
e.setAttribute("class", l); | |
document.body.appendChild(e) | |
} | |
function h() { |
class StudentAssignments(BaseModel): | |
assignment = ForeignKeyField(Assignment) | |
student = ForeignKeyField(User) | |
grade = IntegerField(null=True) |
# importing the required module | |
import timeit | |
# code snippet to be executed only once | |
setup = """ | |
class FauxClass(object): | |
pass | |
page = FauxClass() | |
page.url = 'the url' |
######################################## | |
# DO NOT CHANGE ANYTHING BELOW THIS LINE | |
######################################## | |
import sys | |
from boardgamegeek.api import BoardGameGeek | |
bgg = BoardGameGeek() |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
How many unique, simultaneous, players can my board game collection support? | |
""" | |
import sys | |
from boardgamegeek import BGGClient |
# -*- coding: utf-8 -*- | |
from boardgamegeek.api import BGGClient | |
from slugify import slugify as slug | |
print 'Generate hashtags!' | |
game_id = raw_input("BGG game id: ") | |
bgg = BGGClient() | |
bgg_game = bgg.game(game_id=game_id) |
from datetime import datetime | |
from boardgamegeek.api import BoardGameGeek | |
bgg = BoardGameGeek() | |
username = 'commadelimited' | |
start = '2013-01-01' | |
end = '2017-03-07' | |
mindate = datetime.strptime(start, '%Y-%m-%d') | |
maxdate = datetime.strptime(end, '%Y-%m-%d') |
use Rack::Static, | |
:urls => ["/images", "/js", "/css", "/data"], | |
:root => "public" | |
run lambda { |env| | |
[ | |
200, | |
{ | |
'Content-Type' => 'text/html', | |
'Cache-Control' => 'public, max-age=86400' |