Skip to content

Instantly share code, notes, and snippets.

View mikeumus's full-sized avatar
🪐
ARTEMIS

Michael Duane Mooring mikeumus

🪐
ARTEMIS
View GitHub Profile
@mikeumus
mikeumus / web-dev-crash-courses.md
Last active August 29, 2015 13:58
Crash Course - Web Dev

Take these courses to get web dev savy, in order:

All of these courses result in badges or symbols of course completion. Specifically the CodeSchool courses have OpenBadges awarded for example here's my CodeSchool "Report Card" page: https://www.codeschool.com/users/705399

@derek
derek / README.md
Created August 17, 2012 02:06
Loading YUI from the CDN into a Web Worker

Scenario

I want to use YUI inside of a WebWorker thread. Flickr recently wrote a post on this very topic, Web workers and YUI.

Problem

But I want to use YUI's CDN, which WebWorkers prevent because it enforces a same-origin policy with importScripts()

Solution

@balupton
balupton / docpad.coffee
Created September 11, 2012 04:21
DocPad: Custom Routing
# =================================
# DocPad Events
# Here we can define handlers for events that DocPad fires
# You can find a full listing of events on the DocPad Wiki
events:
# Server Extend
# Used to add our own custom routes to the server before the docpad routes are added
serverExtend: (opts) ->
@visualjeff
visualjeff / dockerfile
Created August 7, 2014 20:42
Dockerfile for ember-cli
# Docker version 1.1.2, build d84a070
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y \
git \
software-properties-common \
python-software-properties \
make\
gcc \
g++ \
@balupton
balupton / README.md
Last active December 10, 2015 06:58
DocPad: Bundle your scripts with Browserify

DocPad: Bundle your scripts with Browserify

The following will bundle your script assets with browserify each time a generation write completes. The bundled file will be located at my-website/out/scripts.js if you are using all the default configuration for your paths.

Installation

  1. Install Dependencies
@ntotten
ntotten / deploy.cmd
Last active December 11, 2015 00:08
Static Site Generation with DocPad on Windows Azure Web Sites
:: 3. Build DocPad Site
echo Building the DocPad site
pushd %DEPLOYMENT_TARGET%
call %DEPLOYMENT_TARGET%\node_modules\.bin\docpad.cmd generate
IF !ERRORLEVEL! NEQ 0 goto error
@ntotten
ntotten / deploy.sh
Created February 5, 2013 16:51
Docpad on Windows Azure
#!/bin/bash
# ----------------------
# KUDU Deployment Script
# ----------------------
# Helpers
# -------
exitWithMessageOnError () {
@balupton
balupton / blog-moving-docpad-forward-a-gui.md
Created June 10, 2012 15:40
Blog: Moving DocPad Forward, the rise of backend-agnostic GUIs

Moving DocPad Forward, the rise of backend-agnostic GUIs

A GUI, or rather a CMS interface for DocPad is the big next step. It was also one of the first proof of concepts I used to ensure DocPad would be able to scale into the web development platform of the future.

Proof of Concept

Back in the first early months of DocPad, I created three plugins:

  • Authenticate: To authenticate you against the project's maintainers to ensure that you have read and write access
  • REST: Provided authenticated users the ability to update documents via HTTP POST requests using JSON
@mikeumus
mikeumus / gitMe.sh
Last active August 31, 2018 15:43
A script to run on new mahcines to setup git aliases - http://bit.ly/git-me
#!/bin/bash
# Run this script like this:
# curl http://bit.ly/git-me | sh
cat > ~/.gitconfig <<EOF
[user]
name = mikeumus
email = mikeumus@gmail.com
[alias]
co = checkout
@johan
johan / grep.js
Created May 9, 2013 21:49
Use grep to find direct/inherited properties of an object or function, or grep.own for direct properties only. (Great for Chrome 29's devtools' Script snippets panel.)
/* Examples:
Use grep with two arguments to find inherited or direct properties of an object:
> grep(document, 'get') // see all properties case insensitively matching *get*:
{ getCSSCanvasContext: function getCSSCanvasContext() { [native code] }
, getElementById: function getElementById() { [native code] }
, getElementsByClassName: function getElementsByClassName() { [native code] }
, getElementsByName: function getElementsByName() { [native code] }
, getElementsByTagName: function getElementsByTagName() { [native code] }