by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
""" | |
Publish the function to S3: | |
cd $DIR_WITH_THIS_SCRIPT | |
zip find_latest_ami_name.zip find_latest_ami_name.py | |
aws s3 cp find_latest_ami_name.zip s3://$YOUR_S3_BUCKET/find_latest_ami_name.zip | |
""" | |
import json |
Template.foo.helpers({ | |
stepsWithIndex: function() { | |
return _.map(this.steps, function(value, index) { | |
return { | |
index: index, | |
value: value | |
}; | |
}); | |
} | |
}); |
#define _XOPEN_SOURCE 700 | |
#include <signal.h> | |
#include <unistd.h> | |
int main() | |
{ | |
sigset_t set; | |
int status; | |
if (getpid() != 1) return 1; |
def exception2msg(e): | |
""" DIE python DIE! Which one works: | |
to_unicode(e.value); unicode(e); str(e); | |
Call this so you don't have to care. """ | |
# ... some stuff |
ff="/tmp/monsterwm.fifo" | |
[[ -p $ff ]] || mkfifo -m 600 "$ff" | |
# desktop names | |
ds=("web" "dev" "foo" "null") | |
# layout names | |
ms=("T" "M" "B" "G" "F") | |
while read -t 60 -r wmout || true; do |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
var application_root = __dirname, | |
express = require("express"), | |
path = require("path"), | |
mongoose = require('mongoose'); | |
var app = express.createServer(); | |
// database | |
mongoose.connect('mongodb://localhost/ecomm_database'); |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.