Skip to content

Instantly share code, notes, and snippets.

View mhulse's full-sized avatar
👋
👁 ❤️ open source software …

Michael Hulse mhulse

👋
👁 ❤️ open source software …
  • Instructure Inc.
  • Eugene, Oregon
View GitHub Profile
@turboMaCk
turboMaCk / index.html
Last active August 29, 2015 14:02
D3.js Chart Library Boilerplate
<html>
<head>
<title>test</title>
</head>
<body>
<div id="mydiv"></div>
<div id="mydiv2"></div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
@jagoda
jagoda / terminal.css
Created November 28, 2011 19:46
jQuery UI Terminal Widget
.terminal-cursor {
background-color: #00ff00;
color: black;
}
.terminal-console {
background-color: black;
font-family: monospace, courier, arial;
color: #00ff00;
@jjaramillo
jjaramillo / gist:1859669
Created February 18, 2012 15:03
trying to install git on lion...
==> make prefix=/usr/local/Cellar/git/1.7.9.1 CC=/Applications/Xcode.app/Content
GIT_VERSION = 1.7.9.1
* new build flags or prefix
* new link flags
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o hex.o -c -MF ./.depend/hex.o.d -MMD -MP -Os -w -pipe -march=native -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o ident.o -c -MF ./.depend/ident.o.d -MMD -MP -Os -w -pipe -march=native -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ident.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o kwset.o -c -MF ./.depend/kwset.o.d -MMD -MP -Os -w -pipe -march=native -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -D
@jensgro
jensgro / ie-hacks.css
Created February 23, 2012 10:10
IE-Hacks
/* based upon: https://github.com/ginader/CSS-Hacks/ */
/*IE 6 and IE 7 */
.something {*display:block;}
/* IE 6 */
body .something { _display: block;}
/* IE 6 */
.rainbow {
color: rgb(206,106,255); /* Old browsers */
-moz-mask-image: -moz-linear-gradient(top, rgb(206,106,255) 0%, rgb(201,97,252) 0%, rgb(95,255,255) 34%, rgb(102,249,98) 65%, rgb(255,96,96) 100%, rgb(255,105,106) 100%); /* FF3.6+ */
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(206,106,255)), color-stop(0%,rgb(201,97,252)), color-stop(34%,rgb(95,255,255)), color-stop(65%,rgb(102,249,98)), color-stop(100%,rgb(255,96,96)), color-stop(100%,rgb(255,105,106))); /* Chrome,Safari4+ */
-webkit-mask-image: -webkit-linear-gradient(top, rgb(206,106,255) 0%,rgb(201,97,252) 0%,rgb(95,255,255) 34%,rgb(102,249,98) 65%,rgb(255,96,96) 100%,rgb(255,105,106) 100%); /* Chrome10+,Safari5.1+ */
-o-mask-image: -o-linear-gradient(top, rgb(206,106,255) 0%,rgb(201,97,252) 0%,rgb(95,255,255) 34%,rgb(102,249,98) 65%,rgb(255,96,96) 100%,rgb(255,105,106) 100%); /* Opera 11.10+ */
-ms-mask-image: -ms-linear-gradient(top, rgb(206,106,255) 0%,rgb(201,97,252) 0%,rgb(95,255,255) 34%
@mhulse
mhulse / jquery.plugin.1.0.0.js
Created July 8, 2012 01:00
2012: My personal jQuery plugin starter template...
/**
* jQuery pluginName
*
* @author First Last
* @link http://site.com
* @docs http://github.com/username/pluginName
* @copyright Copyright (c) YYYY First Last.
* @license Dual licensed under the MIT and GPL licenses.
* @version 1.0.0
* @date YYYY/MM/DD
"""
WSGI config for fitvaina project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` setting.
Usually you will have the standard Django WSGI application here, but it also
might make sense to replace the whole Django WSGI application with a custom one
@iamnoah
iamnoah / sequence-writes.js
Created July 25, 2012 13:58
WriteCapture2 multiple writes in sequence
var lastWrite = $.Deferred();
lastWrite.resolve();
$.fn.write = function(html) {
return this.each(function() {
var def = $.Deferred();
var el = this;
lastWrite.then(function() {
writeCapture(el,function() { def.resolve(); }).close(html);
@csswizardry
csswizardry / tagged.css
Created August 7, 2012 19:09
Leaving tags in CSS files to find similar chunks of code
/*------------------------------------*\
$NAV
\*------------------------------------*/
/*
TAGS: ^lists ^navigation ^text
*/
/*
As per csswizardry.com/2011/09/the-nav-abstraction
*/
.nav{
@tbjers
tbjers / bitly_filter.rb
Created August 15, 2012 17:53
Liquid Filter to convert URLs to short URLs automatically
require 'bitly'
module Jekyll
class BitlyFilterCache
def initialize
@result_cache = {}
config = Jekyll.configuration({})
@username = config['bitly']['username']
@key = config['bitly']['api_key']
Bitly.use_api_version_3