Skip to content

Instantly share code, notes, and snippets.

View szimmers's full-sized avatar

Steve Zimmers szimmers

  • Viv / Mavencare
  • Toronto ON
View GitHub Profile
@szimmers
szimmers / Gruntfile.js
Created October 22, 2013 14:30
example grunt file for running tasks in subdirectories, each which have their own grunt file
module.exports = function(grunt) {
grunt.registerTask('buildapp', function(dir) {
var done = this.async();
grunt.log.writeln('processing ' + dir);
grunt.util.spawn({
grunt: true,
args:['jshint', 'build', 'test', 'deploy'],
@szimmers
szimmers / .bash_profile
Created October 22, 2013 14:38
example osx bash setup, including PATH for android development and my aliases
if [ -e /etc/bashrc ] ; then
source /etc/bashrc
fi
if [ -e "${HOME}/.bashrc" ] ; then
source "${HOME}/.bashrc"
fi
@szimmers
szimmers / Gruntfile.js
Last active December 26, 2015 06:09
an example grunt file for an app framework in angular, with pre-processor targets to work with cordova/phonegap. see README for details.
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function(grunt) {
var globalConfig = {
src: 'app',
dist: 'dist'
};
@szimmers
szimmers / example.js
Created June 23, 2016 20:16
common Meteor constructs
// SERVER
// methods
Meteor.user()
Meteor.userId()
// publish
this.userId