Skip to content

Instantly share code, notes, and snippets.

View davidostermann's full-sized avatar

David Ostermann davidostermann

View GitHub Profile
@davidostermann
davidostermann / get.s3.signed.request.hapi.js
Last active May 4, 2017 19:32
HapiJs route + controller : S3 Bucket get signed request
const Boom = require('boom');
const Aws = require('aws-sdk');
const S3_BUCKET = process.env.S3_BUCKET_NAME;
server.routes = [
{
method: 'GET',
path: '/upload/request',
config: {
handler: getS3SignedRequest,
@davidostermann
davidostermann / translate-angular.sublime-snippet
Created April 22, 2015 16:11
sublimetext snippets to add a filter translate for angular-gettext
<snippet>
<content><![CDATA[{{'${SELECTION/'/\\'/g}'|translate}}]]></content>
<description>Add angular filter for angular-gettext</description>
<tabTrigger>trans</tabTrigger>
</snippet>
@davidostermann
davidostermann / dabblet.css
Created February 22, 2013 13:43
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@davidostermann
davidostermann / dabblet.css
Created February 22, 2013 13:42
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;