name = MyModule Multiply Image Styles | |
description = A wrapper to contain a multiply image style | |
package = Images | |
core = 7.x | |
version = "7.x-1.0" | |
core = "7.x" | |
project = "My Sample Project" | |
datestamp = "1374690555" |
Recent improvements to the ClojureScript compiler have greatly simplified setting up development versus production outputs.
This example uses Figwheel as something that you want to exclude for production, but the pattern is general.
With this simple setup you only need one html file/view and it will work for developement and production.
var Fluxxor = require('fluxxor'); | |
var request = require('superagent'); | |
var AuthStore = Fluxxor.createStore({ | |
actions: { | |
"LOGIN_AUTH": "onLoginAuth", | |
}, | |
initialize: function() { | |
this.currentUser = {}; |
var statusUpdate = Reflux.createAction(options); | |
// calling this | |
statusUpdate(data); // Invokes the action statusUpdate | |
statusUpdate.triggerAsync(data); // same effect as above | |
///////////////////////////// | |
var Actions = Reflux.createActions([ | |
"statusUpdate" |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var notify = require('gulp-notify'); | |
var source = require('vinyl-source-stream'); | |
var watchify = require('watchify'); | |
var plumber = require('gulp-plumber'); | |
var less = require('gulp-less'); | |
var csso = require('gulp-csso'); | |
var watch = require('gulp-watch'); | |
var envify = require('envify'); |
Kris Nuttycombe asks:
I genuinely wish I understood the appeal of unityped languages better. Can someone who really knows both well-typed and unityped explain?
I think the terms well-typed and unityped are a bit of question-begging here (you might as well say good-typed versus bad-typed), so instead I will say statically-typed and dynamically-typed.
I'm going to approach this article using Scala to stand-in for static typing and Python for dynamic typing. I feel like I am credibly proficient both languages: I don't currently write a lot of Python, but I still have affection for the language, and have probably written hundreds of thousands of lines of Python code over the years.
let AnimationWrapper = React.createClass({ | |
render() { | |
console.log(this.props.childClassName + ' render'); | |
return this.props.children; | |
}, | |
componentWillAppear (callback) { | |
console.log(this.props.childClassName + ' willappear'); | |
callback(); |
import sys | |
from django.core.management.commands.loaddata import Command as LoadDataCommand | |
class Command(LoadDataCommand): | |
def parse_name(self, fixture_name): | |
self.compression_formats['stdin'] = (lambda x,y: sys.stdin, None) | |
if fixture_name == '-': | |
return '-', 'json', 'stdin' |