Skip to content

Instantly share code, notes, and snippets.

var http = require('http'),
request = require('request');
var prodServer = process.env.PROD_SERVER
var target = process.env.TARGET
var app = http.createServer(function (req, resp) {
var origin;
if (req.headers.origin.match(/(localhost|\.dev|\.local)\:\d+$/)) {
origin = req.headers.origin;
window.stoppingPropagation = (callback) -> (e) ->
e.stopPropagation()
callback(e)
angular.module('myApp',[]).directive 'ngTap', ->
(scope, element, attrs) ->
tapping = false
element.bind 'touchstart', stoppingPropagation (e) -> tapping = true
element.bind 'touchmove', stoppingPropagation (e) -> tapping = false
element.bind 'touchend', stoppingPropagation (e) -> scope.$apply(attrs['ngTap']) if tapping
@geelen
geelen / ng_melb_august.md
Last active December 21, 2015 20:49
ngMelb Analogueue Blogueueue
@geelen
geelen / README.md
Last active December 20, 2015 10:59 — forked from mbostock/.block

Chord diagrams show directed relationships among a group of entities. This example also demonstrates simple interactivity by using mouseover filtering. Layout inspired by Martin Krzywinski's beautiful work on Circos.

@geelen
geelen / notes.md
Created July 25, 2013 00:57
Notes from ngMelb last night
var isAndroidJellyBean = (function() {
var ua = navigator.userAgent,
matches = ua && ua.match(/Android\s+([\d\.]+)/),
androidNr = matches && parseFloat(matches[1]);
return !!(androidNr && androidNr > 4.0)
})();
diff --git a/examples/webapp/app/post.hbs b/examples/webapp/app/post.hbs
new file mode 100644
index 0000000..7bc8704
--- /dev/null
+++ b/examples/webapp/app/post.hbs
@@ -0,0 +1,5 @@
+{{#markdown}}
+## Here are my thoughts
+
+Gosh, do I have a lot of them?
diff --git a/examples/webapp/app/layout.hbs b/examples/webapp/app/layout.hbs
index b149886..69dc14f 100644
--- a/examples/webapp/app/layout.hbs
+++ b/examples/webapp/app/layout.hbs
@@ -7,6 +7,14 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ config.title }}</title>
+
+ <meta name="breakpoint" content="two" media="(max-width: 511px)">
diff --git a/examples/webapp/Gruntfile.js b/examples/webapp/Gruntfile.js
index 905f175..f419097 100644
--- a/examples/webapp/Gruntfile.js
+++ b/examples/webapp/Gruntfile.js
@@ -131,13 +131,14 @@ module.exports = function (grunt) {
assemble: {
options: {
data: '<%= yeoman.app %>/config.json',
- partials: '<%= yeoman.app %>/partials/*.hbs'
+ partials: '<%= yeoman.app %>/partials/*.hbs',
diff --git a/examples/webapp/Gruntfile.js b/examples/webapp/Gruntfile.js
index 1b6e8ce..905f175 100644
--- a/examples/webapp/Gruntfile.js
+++ b/examples/webapp/Gruntfile.js
@@ -130,13 +130,14 @@ module.exports = function (grunt) {
},
assemble: {
options: {
- data: '<%= yeoman.app %>/config.json'
+ data: '<%= yeoman.app %>/config.json',