JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| /* | |
| * grunt | |
| * https://github.com/cowboy/grunt | |
| * | |
| * Copyright (c) 2012 "Cowboy" Ben Alman | |
| * Copyright (c) 2012 John K. Paul @johnkpaul | |
| * Licensed under the MIT license. | |
| * http://benalman.com/about/license/ | |
| */ |
JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| # Based on https://github.com/kripken/emscripten/wiki/Tutorial | |
| # prerequisites | |
| cd ~/ | |
| brew install node | |
| sudo ln -s /usr/bin/python2.7 /usr/bin/python2 | |
| curl http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-apple-darwin11.tar.gz > llvm.tgz | |
| tar xzvf llvm.tgz | |
| ln -s clang+llvm-3.2-x86_64-apple-darwin11 llvm |
| module.exports = | |
| ModelMixin: (model_name, event_name="all") -> | |
| eventCallbackName = "_eventCallbacks_#{ model_name }_#{ event_name }" | |
| mixin = | |
| componentDidMount: -> |
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
Fauna doesn't (yet?) provide guaranteed expiration/TTL for ABAC tokens, so we need to implement it ourselves if we care about it.
3 javascript functions, each of which can be imported into your project or run from the command-line
using node path/to/script.js arg1 arg2 ... argN:
deploy-schema.js: a javascript function for creating supporting collections and indexes in your Fauna database.