Skip to content

Instantly share code, notes, and snippets.

@jaynzr
jaynzr / app.yaml
Last active August 29, 2015 14:26 — forked from darktable/app.yaml
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (jelbourn@google.com)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
@jaynzr
jaynzr / http-response-interceptor.js
Last active August 18, 2016 15:53 — forked from idosela/http-response-interceptor.js
enables conditional features without ngIf
/*
enables conditional features without ngIf
<div>
<div data-keep="feature1,feature3">
only users that have features 1 & 3 can see this
</div>
<div data-omit="feature2">
@jaynzr
jaynzr / python_conversion.md
Created April 22, 2013 05:47 — forked from Nurdok/python_conversion.md
string / number conversions cheatsheet

Python Number Conversion Chart

From To Expression