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.
Copy latest
to a directory in your path, e.g. /usr/local/bin
or ~/bin
.
#!/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="" |
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) ], |
Flask |
<?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> |
<?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> |
<?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%); |