Skip to content

Instantly share code, notes, and snippets.

View jsteenkamp's full-sized avatar

Johan Steenkamp jsteenkamp

View GitHub Profile
@jsteenkamp
jsteenkamp / app.js
Last active August 29, 2015 14:20
Angular 1.x Component Architecture Application using JSPM for ES6 and importing CSS and HTML
'use strict';
// vendor modules
import angular from 'angular';
import 'angular-touch';
import 'angular-animate';
import 'angular-aria';
import 'angular-ui-router';
// app modules
@jsteenkamp
jsteenkamp / osx-dsclean
Last active August 29, 2015 14:20
OSX bash function and alias to remove hidden directories from zip files
$ nano ~/.bash_rc
function dsclean() {
if [ -f $1 ]
then
echo "Delete __MACOSX folder from $1"
zip -d "$1" __MACOSX*
echo "Delete all .DS_Store folders from $1"
zip -d "$1" \*.DS_Store
fi
@jsteenkamp
jsteenkamp / codepen-save
Created January 26, 2015 19:35
JSON object saved by CodePen
{
pen: {
"defaultAJAXTimeout": 10000,
"failedRequestMsg": "Unable to reach CodePen.io. Please contact support@codepen.io",
"auto_run": true,
"checksum": 1415964482,
"created_at": "2015-01-26T19:05:43Z",
"css": "",
"css_external": "",
"css_pre_processor": "none",