Skip to content

Instantly share code, notes, and snippets.

View KevM's full-sized avatar

Kevin Miller KevM

View GitHub Profile
@jmarnold
jmarnold / extensions.cs
Created June 1, 2012 16:57
Templating junk
public static class TemplateExtensions
{
public static string ToMustacheKey(this string name)
{
return "{{" + name + "}}";
}
public static string ToMustacheKey<T>(this Expression<Func<T, object>> expression)
{
return expression.ToAccessor().Name.ToMustacheKey();
@ryansmith111
ryansmith111 / orders.js
Created May 2, 2012 13:08
Using pre-compiled templates with Backbone.Marionette, require.js and the tpl template plugin
define(function (require, exports, module) {
var ns = require('namespace'),
Backbone = require('use!backbone'),
Marionette = require('use!marionette'),
// the tpl require.js plugin extends the text plugin to compile the text into an underscore template
// The require.js optimizer will minify and concatenate them to your apps single JS
ordersViewTpl = require('tpl!templates/orders.html');
var Orders = ns.module();

Node Homework

If you do this, you are awesome.

  1. Update to node 0.4.0
  2. Go to https://github.com/ry/node/issues
  3. Pick a bug.
  4. Try to reproduce it.
  5. Comment with either:
  6. "works for me on 0.4.0"
@drusellers
drusellers / build.sh
Created December 30, 2010 05:27
nixon: a simple script to build and test code in mono
#!/bin/bash
NAME=`basename $(pwd)`
CORE=./bin/$NAME.dll
TEST=./bin/$NAME.specs.dll
find lib -name '*.dll' > refs
ref=`paste -sd, refs`
rm refs