Skip to content

Instantly share code, notes, and snippets.

View jantimon's full-sized avatar
🧨

Jan Nicklas jantimon

🧨
View GitHub Profile
// Approach 1
$('.demo').each((i,target) => {
var $target = $(target);
$target.height($target.height() + 10);
});
// Approach 2
var heights = $('.demo').map((i,target) => {
return $(target).height();
}).get();
@jantimon
jantimon / plugin.js
Created May 29, 2016 08:43
Inject a file into the main compilation
module.exports.apply = function(compiler) {
var SingleEntryPlugin = require ('webpack/lib/SingleEntryPlugin');
var styleguideName = 'atrium-styleguide-core';
var styleguideEntry = 'atrium-entry.js';
var styleguideFileName = 'atrium/core.js';
// Inject entry into the main compilation
compiler.apply(new SingleEntryPlugin(
this.context,
set UnixPath to POSIX path of ((path to me as text) & "::")
set Grunt to "cd \"" & UnixPath & "\"; node node_modules/grunt-cli/bin/grunt dev"
tell application "Terminal"
do script Grunt
activate
end tell
// http://codepen.io/jantimon/pen/meNYaj
$break-small: 629px;
$break-large: 950px;
$breakpointsMinWidth: (
'mobile': null,
'tablet' : $break-small + 1,
'desktop': $break-large + 1
);