(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import functools | |
import logging | |
from google.appengine.api import memcache | |
def cached(time=1200): | |
""" | |
Decorator that caches the result of a method for the specified time in seconds. | |
Use it as: | |
[ec2-user@ip-XX-XX-XX-XX ~]$ cat build-couchdb/nohup.out | |
(in /home/ec2-user/build-couchdb) | |
/home/ec2-user/build-couchdb/tasks/couchdb.rake:36: warning: (...) interpreted as grouped expression | |
autoconf2.13 | |
env /home/ec2-user/build-couchdb/dependencies/spidermonkey/js/src/configure --prefix=/home/ec2-user/build-couchdb/build --without-x --disable-tests | |
Build CouchDB commit: 106ba9ded5ae939fe03d806d302c664ae7499466 | |
creating cache ./config.cache | |
checking host system type... x86_64-unknown-linux-gnu | |
checking target system type... x86_64-unknown-linux-gnu | |
checking build system type... x86_64-unknown-linux-gnu |
#!/bin/sh | |
# This script is a workaround to virtualbox | |
# hostonly network hang on OSX Maverick. | |
vboxmanage hostonlyif remove vboxnet0 | |
vboxmanage hostonlyif create |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
try { | |
var WAIT = "wait" | |
var FIRE = "fire" | |
var ACTIONS = [WAIT, FIRE] | |
if (!context.classesDefined) { | |
context.classesDefined = true; | |
context.WorldState = function WorldState(numberOfAsteroids, asteroidX, asteroidVx, fired) { | |
this.asteroidX = asteroidX |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> |
aws install MEAN | |
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html | |
#makesure you are in the directory with .pem file downloaded from ec2 console | |
ssh -i myec2access.pem ec2-user@URL.compute.amazonaws.com | |
sudo yum install gcc-c++ | |
sudo yum install openssl-devel |