http://haxe.org/file/hxinst.dmg
haxelib setup
#!/bin/bash | |
#set -x | |
# Shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @author Antony Stubbs | |
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output |
define([ | |
'text', | |
'underscore' | |
], function(text, _) { | |
var modules = {}; | |
return { | |
load: function(name, req, next, config) { |
fs = require 'fs' | |
path = require 'path' | |
module.exports = (grunt) -> | |
grunt.initConfig | |
coffee: | |
default: | |
expand: true | |
cwd: 'source/coffee' |
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> |
// 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; |
http://haxe.org/file/hxinst.dmg
haxelib setup
<!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; | |
} | |
define [ | |
'underscore' | |
'backbone' | |
], (_, Backbone) -> | |
# TODO: Write some phat tests. | |
class Subset | |
constructor: ({@superset, @collection, @filter, @attr}) -> |
define ['backbone', 'json!../config.json'], (Backbone, defaultConfig) -> | |
# TODO: | |
# - no bar | |
# - no buddy list | |
class Config extends Backbone.Model | |
defaults: -> defaultConfig |