Skip to content

Instantly share code, notes, and snippets.

@qustosh
qustosh / Gruntfile.js
Created January 16, 2014 08:53 — forked from sgimeno/Gruntfile.js
A Gruntfile for Apache Cordova app development. Includes prepare, build and run tasks to mimic Cordova CLI commands. Usage: 'grunt <command> [platform]'. If no platform is provided Cordova will try to perform the task for all the installed platforms. Default task 'watch' watches for source changes and runs the prepare task.
module.exports = function ( grunt ) {
/**
* Load required Grunt tasks. These are installed based on the versions listed
* in `package.json` when you do `npm install` in this directory.
*/
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-exec');
@qustosh
qustosh / audit_ctrl.coffee
Created May 26, 2014 19:30 — forked from lawrencejones/auth.coffee
Basic auth module for angular
auth = angular.module 'auth'
auth.directive\
( 'hljs'
, [ ->
restrict: 'A'
scope: src: '&hljs'
link: ($scope, $elem, attr) ->
(hl = (src) ->
$elem.html src