Skip to content

Instantly share code, notes, and snippets.

View dcneiner's full-sized avatar

Doug Neiner dcneiner

View GitHub Profile
@dcneiner
dcneiner / include.css
Last active August 29, 2015 14:11
Example for a lessc 2.1.1 bug report
/* Normal CSS Stuff*/
html, body { font-size: 16px; }
this is cool
@dcneiner
dcneiner / time-based.html
Created September 14, 2013 18:07
A quick jQuery plugin I wrote for a friend. Just will show or hide certain elements based on the time.
<!-- show this div between 2:00 and 2:30 September 19 -->
<div class="time-based" data-start="September 19, 2013 14:00:00 CDT" data-end="September 19, 2013 14:30:00 CDT">Hello there!</div>
<script>
$( ".time-based" ).timeBased();
</script>

Just a tiny gist to illustrate node shares required dependencies between different files that require the same module. Modifying underscore in the parent file modified it for the child files as well.

@dcneiner
dcneiner / Terminal.md
Last active December 18, 2015 23:39
Information about my terminal configuration and theme.

Terminal

Application

I use iTerm 2

Font

15pt Menlo Regular for Powerline (Menlo-Powerline.otf from this Gist)

@dcneiner
dcneiner / tools.md
Created February 23, 2013 11:46
A list of tools I use on a regular basis.

var shouldSerialize = (function () {
var serialize = false;
window.addEventListener( "message", function callback ( e ) {
serialize = e.data.sample === true;
window.removeEventListener( "message", callback );
}, false);
window.postMessage( { sample: true }, "*" );
return serialize;
}());
@dcneiner
dcneiner / machina.css-state.js
Created December 20, 2012 17:58
An example state machine that also maintains css state.
var Lightswitch = machina.Fsm.extend({
initialState: "off",
states: {
off: {
},
on: {
@dcneiner
dcneiner / gist:3172508
Created July 24, 2012 20:37 — forked from micahwave/gist:3172454
responsive img
time_the_post_thumbnail( 'l', array(
'breakpoints' => array(
'0' => 'm 1x, l 2x',
'476' => 'l 1x, xxl 2x',
'740' => 'xl 1x, xxl 2x',
'951' => 'l 1x, xxl 2x'
)
));