Skip to content

Instantly share code, notes, and snippets.

View mikeumus's full-sized avatar
🎯
Focusing

Michael Duane Mooring mikeumus

🎯
Focusing
View GitHub Profile
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">
@mikeumus
mikeumus / 391b62346ab74dc8ca2c
Last active August 29, 2015 14:03
391b62346ab74dc8ca2c
We couldn’t find that file to show.
@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

var canv = document.getElementById('canvas'),
c = canv.getContext('2d');
var context = c
var rowSize = 200
var columnSize = 200
var canvasWidth = $("canvas").width()
var canvasHeight = $("canvas").height()
canv.height = canvasHeight
canv.width = canvasWidth
var radius = canvasWidth/(2*columnSize)
@mikeumus
mikeumus / githubRepoSetup
Created April 2, 2014 04:49
Setup your GitHub Repo
Download git-bash from git-scm:
http://www.git-scm.com/
In git bash use the 'cd' command to navigate you your project's root folder.
Use the 'ls' command to list the files in the current directory to help you navigate.
`git init`
`git remote add origin https://github.com/username/project.git`
@mikeumus
mikeumus / docpad-run
Last active December 28, 2015 16:59
Jason's DocPad Migration.
$ docpad update
module.js:340
throw err;
^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
@mikeumus
mikeumus / gist:7363521
Created November 7, 2013 23:15
Swift docpad plugin.
plugin.init ./plugins/swift-plugin-docpad
views_auto_reload true
startWatching() err Error: ENOENT, readdir '/var/lib/stickshift/68ddb90b5961458485e48f57fc58bc92/app-root/data/346321/plugins/swift-plugin-docpad/views'
Addon DocPad Plugin error Error: ENOENT, readdir '/var/lib/stickshift/68ddb90b5961458485e48f57fc58bc92/app-root/data/346321/plugins/swift-plugin-docpad/views'
Plugins error Error: ENOENT, readdir '/var/lib/stickshift/68ddb90b5961458485e48f57fc58bc92/app-root/data/346321/plugins/swift-plugin-docpad/views'
plugins swift-plugin-docpad swift-plugin-docpad
final step swift-plugin-docpad
@mikeumus
mikeumus / yui-onscroll.js
Created September 21, 2013 07:02
YUI on.scroll header add/remove class snippet.
YUI().use('node', 'event', function (Y) {
function scrolledPast(){
Y.all('#main-header').addClass('main-header-scrolled');
}
function scrolledTop(){
Y.all('#main-header').removeClass('main-header-scrolled');
}