http://haxe.org/file/hxinst.dmg
haxelib setup
define [ | |
'json2' | |
'underscore' | |
'config' | |
], (JSON, _, Config) -> | |
loggingEnabled = -> Config.get('EVENT_LOGS_ENABLED') | |
validFreeloader = (freeloader) -> | |
_.isObject(freeloader) and |
define ['backbone', 'json!../config.json'], (Backbone, defaultConfig) -> | |
# TODO: | |
# - no bar | |
# - no buddy list | |
class Config extends Backbone.Model | |
defaults: -> defaultConfig |
define [ | |
'underscore' | |
'backbone' | |
], (_, Backbone) -> | |
# TODO: Write some phat tests. | |
class Subset | |
constructor: ({@superset, @collection, @filter, @attr}) -> |
<!DOCTYPE html> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://localhost:1337/analytics/d3.js"></script> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
http://haxe.org/file/hxinst.dmg
haxelib setup
// Gnar arrow mixin. | |
@mixin arrow-base($first: bottom, $second: left, $size: 4px, $color: #fff, $border-width: 0, $border-color: #000, $set-border: true) { | |
position: relative; | |
background: $color; | |
@if $set-border { | |
border: $border-width solid $border-color; | |
} | |
&:after, &:before { | |
#{$first}: 100%; | |
border: solid transparent; |
define [ | |
'underscore' | |
'moment' | |
'coffee!views/view' | |
'jst!views/moderation/row' | |
], (_, moment, View, jst) -> | |
severityJst = _.template """ | |
<div class='fill-cell-<%= severity %>'> | |
<div class='dot-<%= severity %>'></div> |
fs = require 'fs' | |
path = require 'path' | |
module.exports = (grunt) -> | |
grunt.initConfig | |
coffee: | |
default: | |
expand: true | |
cwd: 'source/coffee' |
define([ | |
'text', | |
'underscore' | |
], function(text, _) { | |
var modules = {}; | |
return { | |
load: function(name, req, next, config) { |