Skip to content

Instantly share code, notes, and snippets.

View boertel's full-sized avatar

Benjamin Oertel boertel

View GitHub Profile
@boertel
boertel / thrusday.py
Created April 16, 2014 18:50
"Week" number
from dateutil.rrule import *
from datetime import datetime
rr = rrule(WEEKLY, count=7, byweekday=(TH), bysetpos=1, dtstart=datetime(2014,4,10))
print list(rr).index(rr.after(datetime.utcnow())) + 6
@boertel
boertel / vikings-visit.html
Created March 20, 2014 23:32
vikings-visit
<div class="points-wrap pt-toggle-challenge-{{ challenge.id }} template-{{ challenge.template.name }}">
<div class="box panel content external">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "text" "title" %}</h3>
</div>
<div class="column small-3 large-3">
<h3 class="right points-total"><span class="hide-on-success">+</span>{% widget "text" "points" %}</h3>
</div>
@boertel
boertel / vikings-text.html
Last active August 29, 2015 13:57
vikings-text
<div class="points-wrap pt-toggle-challenge-{{ challenge.id }}">
<div class="box panel content external">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "title_and_points" "title" %}</h3>
</div>
<div class="column small-3 large-3">
<div class="row">
<div class="columns large-6 small-4 text-right">
@boertel
boertel / vikings-video.html
Last active August 29, 2015 13:57
vikings-video
<div class="points-wrap pt-toggle-challenge-{{ challenge.id }}">
<div class="box panel content video">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "title_and_points" "title" %}</h3>
</div>
<div class="column small-3 large-3">
{% if challenge.params.title.points %}
<div class="row">
@boertel
boertel / vikings-poll.html
Last active August 29, 2015 13:57
vikings-poll
<div class="points-wrap poll pt-poll challenge-poll-{{ challenge.id }}" data-id="challenge-poll-{{ challenge.id }}" data-type="poll" data-points="{{ challenge.params.title.points }}">
<div class="box panel content external">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "title_and_points" "title" %}</h3>
</div>
<div class="column small-3 large-3">
<div class="row">
<div class="columns large-6 small-4 text-right">
@boertel
boertel / vikings-tweet.html
Last active August 29, 2015 13:57
vikings-tweet
<div class="points-wrap pt-toggle-challenge-{{ challenge.id }}">
<div class="box panel content external">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "text" "title" %}</h3>
</div>
<div class="column small-3 large-3">
<div class="row">
<div class="columns large-6 small-4 text-right">
@boertel
boertel / vikings-share-video.html
Last active August 29, 2015 13:57
vikings-share-video
<div class="points-wrap pt-toggle-challenge-{{ challenge.id }}">
<div class="box panel content video">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "title_and_points" "title" %}</h3>
</div>
<div class="column small-3 large-3">
{% if challenge.params.title.points %}
<div class="row">
@boertel
boertel / .vimrc
Created March 4, 2014 08:58
.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'klen/python-mode'
Bundle 'tpope/vim-fugitive'
@boertel
boertel / challenge.html
Created February 28, 2014 22:46
tweet challenge
<div class="points-wrap pt-toggle-challenge-{{ challenge.id }}">
<div class="box panel content external pt-toggle-on">
<div class="row">
<div class="title">
<div class="column small-9 large-9">
<h3 class="left">{% widget "text" "title" %}</h3>
</div>
<div class="column small-3 large-3">
<h3 class="right points-total"><span class="hide-on-success">+</span>{% widget "text" "points" %}</h3>
</div>
@boertel
boertel / snippet.js
Created February 7, 2014 22:33
SSO Facebook snippet
var _punchtab_settings = {
key: "<YOUR KEY>",
display: "tab",
authentication: {
provider: "sso_facebook_<app_name>",
scope: ['email', 'user_likes'] // default scope
}
};