Skip to content

Instantly share code, notes, and snippets.

View davemo's full-sized avatar
😀

David Mosher davemo

😀
View GitHub Profile
@davemo
davemo / npm-shrinkwrap-dev-good-0.14.5.json
Created November 2, 2013 16:13
shrinkwrap --dev, known working good with lineman 0.14.5
{
"name": "shopify",
"version": "2.0.0",
"dependencies": {
"grunt": {
"version": "0.4.1",
"from": "grunt@0.4.1",
"dependencies": {
"async": {
"version": "0.1.22",
@davemo
davemo / npm-shrinkwrap.json
Created November 1, 2013 17:10
shrinkwrap
{
"name": "shopify",
"version": "2.0.0",
"dependencies": {
"grunt": {
"version": "0.4.1",
"from": "grunt@0.4.1",
"dependencies": {
"async": {
"version": "0.1.22",
@davemo
davemo / config.coffee
Last active December 27, 2015 03:28
wip directory watcher
# Exports an object that defines
# * all of the configuration needed by the projects'
# * depended-on grunt tasks.
# *
# * You can find the original parent object in: node_modules/lineman/config/application.coffee
path = require "path"
grunt = require "grunt"
# additional grunt plugins

Hey Workflows & Tooling Workshop Attendees!

Thanks so much for attending my workshop, as promised here is a list of resources for you to continue in your quest for learning Grunt, Lineman, Bower, and modern MV* web app development etc.. enjoy!

Feel free to reach out to me on twitter: @dmosher if you have any questions, I don't mind helping :)

Cheers!

Workshop Code

@davemo
davemo / bundle.install.song.md
Last active December 26, 2015 06:19
The Bundle Install song, sung to the tune of "Big Me" by the Foo Fighters

The Bundle Install Song

(sung to the tune of "Big Me" by the Foo Fighters)

When I bundle install
All day long
Makes me feel so blue

When I bundle install
I sing this song
So you can feel it too

@davemo
davemo / fswait.c
Created October 18, 2013 14:22
A C program by @ibawt that can be used to execute commands using a watch performantly on OSX.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <CoreServices/CoreServices.h>
/* fswait.c
*
* usage: ./fswait /some/directory[:/some/otherdirectory:...]
*
@davemo
davemo / Gruntfile.coffee
Last active December 25, 2015 15:59
Testing a grunt plugin using jasmine-given, via grunt-jasmine-bundle.
module.exports = (grunt) ->
grunt.initConfig(JSON.parse(grunt.option("config" || {})))
@davemo
davemo / install.sh
Last active December 24, 2015 10:49
Installing latest node.js, sass on ubuntu 12.10
sudo apt-get update
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
## Your version may be different. Look for "Version:" in /var/lib/apt/lists/ppa.launchpad.net_chris-lea_node.js_[...]_Packages (ellipsised part of path varies with setup)
sudo apt-get install nodejs=0.10.20-1chl1~precise1
# @@ Why does one need to specify the install version? @@
# we also need the sass gem
sudo gem install sass
@davemo
davemo / def.coffee
Created September 30, 2013 18:56
a little extension to extend.js, to alias as "def" for coffeescript fun
root = this
root.def = _(extend).wrap (ex, args...) ->
[namespace, target] = args
unless typeof(target) is "object"
target.prototype.namespacePath = namespace
ex.apply(this, args)
@davemo
davemo / functions.php
Created September 13, 2013 19:06
Old php codes is old.
<?php
// Dave Mosher, CST224
// December 7, 2006
//BASIC FUNCTIONALITY
//////////////////////////////////////////////////////////////////////////////////////////
//builds an html code header for a page
function genHeader($sTitle, $sMetaRefresh="", $sJScripts="includes/finalScripts.js", $sStyleSheet="includes/phpfinal.css", $sAuthor="Dave Mosher, CST224")