Skip to content

Instantly share code, notes, and snippets.

@philippbosch
philippbosch / redmine_heroku_deploy.sh
Created August 7, 2011 12:13 — forked from brototyp/redmine_heroku_deploy
Deploy Redmine to Heroku
#!/bin/bash
set -e
REDMINE_URL="http://rubyforge.org/frs/download.php/75097/redmine-1.2.1.tar.gz"
S3_ACCESS_KEY_ID=""
S3_SECRET_ACCESS_KEY=""
S3_BUCKET_NAME=""
HEROKU_APP_NAME=""
@philippbosch
philippbosch / README.md
Created July 26, 2011 18:53
Small bash script to fetch the latest version of some JS libraries from the net and store it locally

latest

latest is a small bash script that fetches the latest version of a JavaScript library from the net and stores it in a local file.

Installation

Copy latest to a directory in your path, e.g. /usr/local/bin or ~/bin.

Usage

require "chunky_png"
require "base64"
module Sass::Script::Functions
def background_noise(kwargs = {})
opts = {}
Sass::Util.map_hash({
"intensity" => [0..1, "", :Number, Sass::Script::Number.new(0.5) ],
"opacity" => [0..1, "", :Number, Sass::Script::Number.new(0.08)],
"size" => [1..512, "px", :Number, Sass::Script::Number.new(200) ],
@philippbosch
philippbosch / requirements.txt
Created May 30, 2011 18:19
Flask on dotcloud
Flask
@philippbosch
philippbosch / mauer-aussen.kml
Created May 23, 2011 11:44
Mauerverlauf (außen)
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<Folder>
<Placemark>
<MultiGeometry>
<LineString>
<extrude>1</extrude>
<tessellate>1</tessellate>
@philippbosch
philippbosch / mauer-innen.kml
Created May 23, 2011 11:44
Mauerverlauf (innen)
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<Folder>
<Placemark>
<MultiGeometry>
<LineString>
<extrude>1</extrude>
<tessellate>1</tessellate>
@philippbosch
philippbosch / mauer.kml
Created May 23, 2011 11:43
Mauerverlauf (KML)
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<Folder>
<Placemark>
<MultiGeometry>
<LineString>
<extrude>1</extrude>
<tessellate>1</tessellate>
from tastypie import fields
from tastypie.authentication import Authentication
from tastypie.authorization import Authorization
from tastypie.bundle import Bundle
from tastypie.exceptions import NotFound
from tastypie.resources import Resource
# a dummy class representing a row of data
class Row(object):
#!/bin/bash
# Usage: ./backup.sh [project [project] ...]
#
# You need to create a config file ~/.pbbackup which needs to look like this:
# AWS_ACCESS_KEY_ID=your_amazon_webservice_access_key
# AWS_SECRET_ACCESS_KEY=your_amazon_webservice_secret_access_key
# PASSPHRASE=the_passphrase_that_should_be_used_for_gpg_encryption
# BUCKET_NAME=the_name_of_the_s3_bucket_to_be_used
// GRAY
$gray: #4e4d49;
$gray-70: mix($gray, #FFF, 70%);
$gray-50: mix($gray, #FFF, 50%);
$gray-20: mix($gray, #FFF, 20%);
$gray-light: #a6a499;
$gray-light-70: mix($gray-light, #FFF, 70%);
$gray-light-50: mix($gray-light, #FFF, 50%);
$gray-light-20: mix($gray-light, #FFF, 20%);