Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env node
/**
* After prepare, files are copied to the platforms/[platform] folder.
* Lets clean up some of those files that arent needed with this hook.
*/
var fs = require('fs');
var path = require('path');
var rootdir = process.argv[2];
@maftieu
maftieu / app.py
Last active August 29, 2015 14:26 — forked from panchr/app.py
Queued (I/O intensive) operations in Python
from queue_db import QueuedWriter
from pymongo import Connection
from flask import Flask
from json import dumps
def main():
'''This is just an example using Flask and MongoDB/pymongo.
Of course, you can use any web server and any database as long as you set up the methods appropriately'''
@maftieu
maftieu / generate-pass.html
Created July 28, 2015 14:42 — forked from flesler/generate-pass.html
Bookmarklet to generate deterministic passwords based on a service name
<pre>
(function(length, prefix, suffix, map) {
/* Version 1.0 */
var p = location.hostname.split('.');
// Find service name
do { var pass = p.pop(); }
while (p.length && pass.length <= 3);
// First time assume domain
if (!this._custom_) {
this._custom_ = true;