Skip to content

Instantly share code, notes, and snippets.

View grobertson's full-sized avatar

Grant Robertson grobertson

View GitHub Profile
#!/bin/bash
if [[ -z "$1" ]]; then
FAIL=1
elif [[ -z "$2" ]]; then
FAIL=1
fi
if [[ -n "$FAIL" ]];then
echo "Usage: $0 SOURCE DESTINATION"
#!/usr/bin/python
from sys import stdin
from time import strptime
import re, shlex, subprocess, datetime
import curses
stdscr = curses.initscr()
curses.start_color()
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_BLACK)
#!/usr/bin/python
from sys import stdin
from time import strptime
import re, shlex, subprocess, datetime
import curses
stdscr = curses.initscr()
curses.start_color()
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_BLACK)

Justification

What is this thing supposed to do/fix/add? Is that tied to a company goal?

Requirements

What is this required to do programatically?

  • Something it must do
  • and related something
from django import template
from django.template.base import TemplateSyntaxError
from django.template.loader import render_to_string
register = template.Library()
class SatisfactionNode(template.Node):
def __init__(self, from_object, option):
self.from_object = template.Variable(from_object)
self.option = template.Variable(option)
{# Meta items within this block are dynamic. Things like facebook app_id which persist across all pages are found in base.html #}
{% if article_detail.title %}
{# This is a single article #}
<title>The Daily Dot - {{ article_detail.title }}</title>
<link rel="canonical" href="http://www.dailydot.com{{ article_detail.get_absolute_url }}">
<link rel="shortlink" href="{{ article_detail.get_short_link }}">
<meta name="keywords" content="{{ article_detail.get_keywords }}">
<meta property="og:url" content="http://www.dailydot.com{{ article_detail.get_absolute_url }}">
{# since we load media urls with a relative protocol, the proto must be included #}
~DD(branch:5.10.2013) » ./manage.py createinitialrevisions groberts@kesey
Version 2.0.14 of praw is outdated. Version 2.1.1 was released Wednesday May 01, 2013.
/home/groberts/env/local/lib/python2.7/site-packages/django/conf/urls/defaults.py:3: PendingDeprecationWarning: django.conf.urls.defaults is deprecated; use django.conf.urls instead
PendingDeprecationWarning)
Model permission is not registered.
Model group is not registered.
Model user is not registered.
Model content type is not registered.
Model session is not registered.
Model site is not registered.
dailydot.article.less:.article-content BLOCKQUOTE.pullquote { width:90%; margin:40px auto 30px; border:none; padding:none; position: relative; font:24px/29px @serifFontFamily;}
dailydot.article.less:.article-content BLOCKQUOTE.pullquote P { text-align: left; z-index:2; text-indent:0; font:inherit; position: relative; }
dailydot.article.less:.article-content BLOCKQUOTE.pullquote:before,
dailydot.article.less:.article-content BLOCKQUOTE.pullquote:after { font-size:136px; color:#ddd; position:absolute; z-index:1; display:block; }
dailydot.article.less:.article-content BLOCKQUOTE.pullquote::before { content:'\201C'; top:34px; left: -15px; }
dailydot.article.less:.article-content BLOCKQUOTE.pullquote SPAN.quoter { font-size:16px; display:block; width:100%; text-align:right; }
dailydot.article.less:.article-content BLOCKQUOTE.pullquote SPAN.quoter:before { content:'\2014 '; text-align: right; width:100%; }
/*
*/
/* A namespaced javascript snippet */
var fg = fg || {};
fg.r = fg.r || {};
fg.r.component = fg.r.component || {};
def get_social_history(self):
return self.social_histories.values()