This file contains 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
client = require('./client') | |
apirequest = require('../node_modules/googleapis/lib/apirequest') | |
get_alternate_videos = (docid, callback) -> | |
parameters = { | |
options: { | |
url: "https://docs.google.com/get_video_info?docid={docid}", | |
method: "GET"}, | |
context: client.drive, | |
params: { |
This file contains 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
#!/bin/bash | |
# | |
# Usage: | |
# | |
# hotswap.sh [dev] | |
# | |
# Where [dev] is the name of the device such as "sda". Do not use | |
# partitions (like "sda1"). | |
# | |
# Example: |
This file contains 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
diff --git a/categories/templatetags/category_tags.py b/categories/templatetags/category_tags.py | |
index 226a3ad..cddc8b9 100644 | |
--- a/categories/templatetags/category_tags.py | |
+++ b/categories/templatetags/category_tags.py | |
@@ -1,4 +1,6 @@ | |
from django import template | |
+from django.core.cache import cache | |
+from django.db import models | |
from django.template import Library, Node, TemplateSyntaxError, \ | |
Variable, resolve_variable, VariableDoesNotExist, Context |
This file contains 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
diff --git a/media_tree/templates/admin/media_tree/filenode/mptt_change_list.html b/media_tree/templates/admin/media_tree/filenode/mptt_change_list.html | |
index d882dd3..c081f53 100644 | |
--- a/media_tree/templates/admin/media_tree/filenode/mptt_change_list.html | |
+++ b/media_tree/templates/admin/media_tree/filenode/mptt_change_list.html | |
@@ -1,5 +1,5 @@ | |
{% extends "admin/mptt_change_list.html" %} | |
-{% load adminmedia admin_list i18n mptt_tags media_tree_admin %} | |
+{% load adminmedia admin_list i18n mptt_tags media_tree_admin static %} | |
{% block extrahead %} |
This file contains 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
<?php\n/**\n * A simple function to print "hello"\n *\n * @param string $name A name to say hello to\n *\n */\nfunction sayHello($name)\n{\n printf("Hello %s\\n", $name);\n}\n\n?> |
This file contains 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
diff --git a/chunks/templatetags/chunks.py b/chunks/templatetags/chunks.py | |
index 2b06cad..545b451 100644 | |
--- a/chunks/templatetags/chunks.py | |
+++ b/chunks/templatetags/chunks.py | |
@@ -7,7 +7,7 @@ register = template.Library() | |
Chunk = models.get_model('chunks', 'chunk') | |
CACHE_PREFIX = "chunk_" | |
-def do_get_chunk(parser, token): | |
+def parse_chunk_args(parser, token): |
This file contains 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 django.db import models | |
from django.utils.translation import ugettext, ugettext_lazy as _ | |
from dateutil import rrule | |
RRULE_WEEKDAYS = {"MO":0,"TU":1,"WE":2,"TH":3,"FR":4,"SA":5,"SU":6} | |
freqs = ( ("YEARLY", _("Yearly")), | |
("MONTHLY", _("Monthly")), | |
("WEEKLY", _("Weekly")), |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from setuptools import setup, find_packages | |
import os | |
# Based off of Django's setup.py | |
def fullsplit(path, result=None): | |
""" | |
Split a pathname into components (the opposite of os.path.join) in a |