Skip to content

Instantly share code, notes, and snippets.

View AlexMeah's full-sized avatar

Alex Meah AlexMeah

View GitHub Profile
@AlexMeah
AlexMeah / skiddle.json
Created February 24, 2016 09:01
Skiddle Event
{
"id": "12619043",
"eventname": "Parklife 2016",
"venue": {
"id": 6709,
"name": "Heaton Park",
"address": "Heaton Park",
"town": "Manchester",
"postcode": "M25 2sw",
"phone": "",
@AlexMeah
AlexMeah / loc-sort.sh
Last active November 15, 2015 17:58
LOC - Lines of Code
git diff --stat `git hash-object -t tree /dev/null` | sort -t '|' -k 2n
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
15:20:13.396 theproject/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/caw/index.js:21
15:20:13.396 var uriProtocol = opts.protocol === 'https' ? 'https' : 'http';
15:20:13.396 ^
15:20:13.397 TypeError: Cannot read property 'protocol' of undefined
15:20:13.397 at module.exports (theproject/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/caw/index.js:21:24)
15:20:13.397 at Download.<anonymous> (theproject/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/index.js:122:15)
15:20:13.397 at Object.immediate._onImmediate (timers.js:354:16)
15:20:13.397 at processImmediate [as _immediateCallback] (timers.js:336:15)
15:20:15.680
# Known Issues
@AlexMeah
AlexMeah / Delete require cache node
Created August 22, 2014 13:16
Delete require cache node
if (process.env.NODE_ENV === 'dev') {
delete require.cache[require.resolve('../../components/' + componentName + '/lib/index.js')];
}
// Allow scrolling on anything with class scrollable
$(document).on('touchstart', '.scrollable', function (event) {
var startY = event.originalEvent.touches[0].pageY;
var startTopScroll = this.scrollTop;
if (startTopScroll <= 0) {
this.scrollTop = 1;
}
if (startTopScroll + this.offsetHeight >= this.scrollHeight) {
// Screenshots
// -----------
//
// Do our screenshots at break neck speeds
capturelocal: {
irep: {
options: {
thumb: true,
name: function(file, format) {
return file.dest.replace(/\.html/, '-full.' + format);
---
title: title
---
{{#extend "default"}}
{{#content "head" mode="append"}}
{{/content}}
{{#content "body"}}
---
title: title
slideset: true
---
{{#extend "default"}}
{{#content "head" mode="append"}}
{{/content}}