Skip to content

Instantly share code, notes, and snippets.

@hbussell
hbussell / update.sh
Created May 25, 2015 04:19
Flow update
#!/bin/bash
echo "Updating Flow..."
# Update to the latest version of flow.
cd ~/flow
git fetch
git checkout master
git pull origin master
@hbussell
hbussell / designer.html
Created August 11, 2014 22:37
designer
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@hbussell
hbussell / install.sh
Last active December 16, 2015 08:49
Flow install
#!/bin/zsh
git clone git@github.com:fclimited/flow.git /home/vagrant/flow/
sudo apt-get install php5-curl -f -y --force-yes
cd /home/vagrant/flow/
php composer.phar install
ln -s /home/vagrant/flow/flow ~/scripts/flow
Tundra.CustomClass.extend("jQuery.Controller",
{
},
{
_pluginManager: Tundra.Controllers.Plugins.PluginManager,
_hasPlugins: false,
registerPlugins: function() {
if (this.pluginSettings != "") {
this._pluginManager.registerPlugins(this.pluginSettings, this);
this._hasPlugins = true;
from django.core.management.base import LabelCommand
from django.template.loader import find_template
from django.template import TemplateDoesNotExist
import sys
def get_template_path(path):
try:
template = find_template(path)
return template[1].name
except TemplateDoesNotExist:
@hbussell
hbussell / download_wget.js
Created January 28, 2010 00:02
greasemonkey script to download page resources with wget
// ==UserScript==
// @name Download with Wget
// @namespace http://userscripts.org/users/14536
// @description Creates code to download web pages, images and other files using wget
// @include *
// ==/UserScript==
// Last updated 2009-01-13
function $(id) { return document.getElementById(id); }
from django.conf import settings
from django.utils.importlib import import_module
def load_settings(apps):
for app in apps:
try:
mod = import_module('.config', app)
for setting in dir(mod):
if setting == setting.upper():
value = getattr(mod, setting)
Installing collected packages:
Successfully installed
Requirement already satisfied: django in /usr/lib/python2.5/site-packages
Installing collected packages: django
Successfully installed django
Requirement already satisfied: pycrypto in /usr/lib/python2.5/site-packages/pycrypto-2.0.1-py2.5-linux-i686.egg
Installing collected packages: pycrypto
Successfully installed pycrypto
Downloading/unpacking http://www.satchmoproject.com/snapshots/trml2pdf-1.2.tar.gz
Downloading trml2pdf-1.2.tar.gz (173Kb):