###Atom
Install atom packages
/* =================================== | |
* Only lazy-load 3rd party script tag once the placeholder that interacts with it is visible on viewport. | |
* | |
* Copyright (c) 2017, Wallace Sidhrée | |
* MIT License | |
====================================== */ | |
var lazyScript = function(elId, scriptUrl, threshold) { | |
// polyfill requestAnimationFrame for ie9 | |
window.requestAnimationFrame = window.requestAnimationFrame || function(f) { return setTimeout(f, 1000/60); }; |
/* =================================== | |
* Vertical spacing for Zurb Foundation Grid | |
* | |
* Copyright (c) 2017, Wallace Sidhrée | |
* MIT License | |
====================================== */ | |
$vs-positions: top bottom; | |
$vs-total: 8 !default; // range of classes to be created (in this case 1-8) | |
$vs: $gutter-size-half; |
$(function() { | |
// multi-toggler | |
var toggleItems = function(opts) { | |
var options = { | |
wrapper: 'wrapper', // id | |
toggler: 'toggler', // id | |
togglerOn: 'toggler-on', // class for toggler on state | |
togglerOff: 'toggler-off', // class for toggler off state | |
items: 'toggle-item', // class that will hide/show element(s) | |
classShow: 'toggle-show', // class applied to shown elements |
###Atom
Install atom packages
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
// IE10+ styles go here | |
top: rem-calc(3); | |
} | |
// Reset styles for MSEdge, which usually works as well as Chrome | |
@supports (-ms-accelerator:true) { | |
// IEEdge 12+ styles go here | |
top: rem-calc(10); | |
} |
find . -mtime +200 -name "*.js" -not -path "./components/*" -not -path "./node_modules/*" -not -path "./.git/*" -print |
Download the latest OSX from App Store.
Applications
folder.Run the following command, taking care to rename the OSX version accordingly and to specify the name of the volume (make sure the command is typed in a single line):
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/<name-of-volume> --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
// ref: https://github.com/gulpjs/gulp/blob/master/docs/recipes/running-tasks-in-series.md | |
// ----------- method 1 ----------- // | |
gulp.task('2', ['1'], function() { | |
var stream = gulp.src() | |
// do some concatenation, minification, etc. | |
.pipe(gulp.dest()); | |
return stream; // return the stream as the completion hint |
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
// set pixel reference base | |
$pixelBase: 16 !default; | |
// strip the unit of measure and return it | |
@function parseInt($n) { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Random Functions</title> | |
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> | |
</head> | |
<body> | |
<div id="top" style="height: 400px"></div> | |
<div id="bottom" style="height: 400px"></div> | |
<script type="text/javascript"> |