http://stackoverflow.com/q/14327676/130638
- Install express into your project
npm install --save express
http://stackoverflow.com/q/14327676/130638
npm install --save express
{ | |
"name": "moment-demo", | |
"version": "0.0.0", | |
"authors": [ | |
"Niklas Lindgren <niklas@sc5.io>" | |
], | |
"description": "localisation inclusion demo", | |
"dependencies": { | |
"moment": "~2.5.0", | |
"requirejs": "~2.1.10" |
from flask import Flask, request, session, url_for, redirect, \ | |
render_template, abort, g, flash | |
from werkzeug.contrib.sessions import Session, SessionStore | |
from cPickle import HIGHEST_PROTOCOL | |
from random import random | |
from flask import json | |
class MemcachedSessionStore(SessionStore): | |
def __init__(self, servers=None, key_prefix=None, default_timeout=300): |
_sls_templates() { | |
_values \ | |
'VALID TEMPLATES' \ | |
'aws-nodejs' \ | |
'aws-python' \ | |
'aws-java-maven' \ | |
'aws-java-gradle' | |
} | |
_sls_regions() { |
;(function (sp) { | |
if (!sp.startsWith) | |
sp.startsWith = function (str) { | |
return !!(str && this) && !this.lastIndexOf(str, 0) | |
} | |
if (!sp.endsWith) | |
sp.endsWith = function (str) { | |
var offset = str && this ? this.length - str.length : -1 |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine
.babelrc:
{
"presets": ["es2015"]
On the Refinery29 Mobile Web Team, codenamed "Bicycle", all of our unit tests are written using Jasmine, an awesome BDD library written by Pivotal Labs. We recently switched how we set up data for tests from declaring and assigning to closures, to assigning properties to each test case's this
object, and we've seen some awesome benefits from doing such.
Up until recently, a typical unit test for us looked something like this:
describe('views.Card', function() {
// https://forums.oculusvr.com/community/discussion/57052/quill-fbx-to-unity3d#latest | |
Shader "Unlit/Quill Shader" { | |
Properties { | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } |
import React from 'react'; | |
import { Sector, Cell, PieChart, Pie } from 'recharts'; | |
const GaugeChart = () => { | |
const width = 500; | |
const chartValue = 180; | |
const colorData = [{ | |
value: 40, // Meaning span is 0 to 40 | |
color: '#663399' | |
}, { |