Skip to content

Instantly share code, notes, and snippets.

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"

Installing Hiawatha Webserver on Mac OS X and running Symphony CMS

SCREENCASTS

  • Part One: Installing Hiawatha Web Server and running Symphony CMS on Mac OS X (5 min) -- watch
  • Part Two: Installing Hiawatha Web Server and running Symphony CMS on Mac OS X (5 min) -- watch
  • Part Three: Installing Hiawatha Web Server and running Symphony CMS on Mac OS X (4 min 56 seconds) -- watch

SCREENCAST NOTES:

PREREQUISITES

@rmoorman
rmoorman / README.md
Last active August 29, 2015 14:17 — forked from bhauman/README.md

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');
@rmoorman
rmoorman / answer.md
Last active August 29, 2015 14:20 — forked from non/answer.md

What is the appeal of dynamically-typed languages?

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.

@rmoorman
rmoorman / README.md
Last active August 29, 2015 14:21 — forked from jpetazzo/README.md

Mouses Are Overrated

This script allows you to enable/disable your pointers on a Linux machine.

Usage:

mao.sh on   # enters "mouseless" mode
mao.sh off  # returns to "I can has clicks" mode

Note: if you just want to disable built-in pointers (to keep a mouse on the side

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'