This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |