This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| Bundle 'klen/python-mode' | |
| Bundle 'tpope/vim-fugitive' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _punchtab_settings = { | |
| key: "<YOUR KEY>", | |
| display: "tab", | |
| authentication: { | |
| provider: "sso_facebook_<app_name>", | |
| scope: ['email', 'user_likes'] // default scope | |
| } | |
| }; |