Skip to content

Instantly share code, notes, and snippets.

View jmshal's full-sized avatar

Jacob Marshall jmshal

  • New Zealand
View GitHub Profile
@jmshal
jmshal / better-nodejs-require-paths.md
Created November 14, 2015 00:43 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@jmshal
jmshal / boo_watching.md
Created September 28, 2015 22:25
boo_watching.md

HI HERE ARE SOME DOG HALP *** SORRY HE IS SO GODDAMN DIRTY ***

Boo Sitting (March 15-19th) 15th: Afternoon/PM 16th: AM/Afternoon/PM 17th: AM/PM 18th: AM/PM 19th: AM/PM

@jmshal
jmshal / test.js
Created March 21, 2015 06:35
Playing around with DataView and ArrayBuffer in JavaScript...
var typeReference = [
['Byte', 'Int8' ],
['UnsignedByte', 'Uint8' ],
['Short', 'Int16' ],
['UnsignedShort', 'Uint16' ],
['Long', 'Int32' ],
['UnsignedLong', 'Uint32' ],
['Float', 'Float32'],
['Double', 'Float64']
];

Keybase proof

I hereby claim:

  • I am jacobmarshall on github.
  • I am jacobmarshall (https://keybase.io/jacobmarshall) on keybase.
  • I have a public key whose fingerprint is 4543 0CA7 26CF 0989 29F7 1D0A C25C E133 0AFC 3EB0

To claim this, I am signing this object:

@jmshal
jmshal / rd.md
Last active August 29, 2015 14:10 — forked from diego898/rd.md

thanks to @neurodyne and this link for updated instructions

This works with the following versions of termsrv.dll

x64 - termsrv.dll - 6.3.9600.17095

Find Replace
39813C0600000F849E310500 B80001000089813806000090
090085C07F078BD8 090085C090908BD8
Uncaught TypeError: Cannot set property 'exports' of undefined main.js:9200
defineExport main.js:9200
browserifyShim main.js:9198
browserifyShim main.js:9200
(anonymous function) main.js:9204
require.AyKrkQ main.js:9206
s main.js:1
(anonymous function) main.js:1
require../core/button.js main.js:9215
s main.js:1
// Red
$color-red-50: #fde0dc;
$color-red-100: #f9bdbb;
$color-red-200: #f69988;
$color-red-300: #f36c60;
$color-red-400: #e84e40;
$color-red-500: #e51c23;
$color-red-600: #dd191d;
$color-red-700: #d01716;
$color-red-800: #c41411;
// Created by Max Luster (@maxluster)
// Usage instructions at https://bugsnag.com/blog/responsive-typography-with-chained-media-queries
// Requires SASS >= 3.3
// Enhanced by Breakpoint 2.4.x and Compass 1.0 (alpha)
// For SASS 3.2.x support, use https://gist.github.com/maxluster/c9ecc6e4a6770e507c2c
// Provides a simplified syntax for chaining media queries across named or numeric breakpoints
@mixin responsive($properties, $default-value, $responsive-values){
// No named breakpoints by default
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.