One-time Dependency Setup/Configuration
wget https://getcomposer.org/download/1.1.0/composer.phar && chmod +x composer.phar && sudo mv /usr/local/bin/composer && composer self-update
{ | |
"comment": "This is the settings file for the SVGO Compressor Plugin. For more info, please check <https://github.com/BohemianCoding/svgo-compressor>", | |
"pretty": true, | |
"indent": 2, | |
"floatPrecision": 3, | |
"plugins": [ | |
{ | |
"name": "removeDoctype", | |
"enabled": true | |
}, |
{% if paginator.total_pages > 1 %} | |
<div class="pagination"> | |
{% if paginator.previous_page %} | |
<a class="ml-1 mr-2" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« {{site.str_previous_page}}</a> | |
{% else %} | |
<span>« {{site.str_previous_page}}</span> | |
{% endif %} | |
{% assign page_start = paginator.page | minus: site.pagination_nr %} | |
{% assign page_end = paginator.page | plus: site.pagination_nr %} |
# MOJAVE: https://gist.github.com/kevmt/476716bfb0383d3fda699e4fcacc6470 | |
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Terminal Aliases | |
echo "alias artisan='php $PWD/artisan'" >> ~/.bash_profile | |
echo "export NVM_DIR=~/.nvm" >> ~/.bash_profile | |
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
;(function ($, window) { | |
var intervals = {}; | |
var removeListener = function(selector) { | |
if (intervals[selector]) { | |
window.clearInterval(intervals[selector]); | |
intervals[selector] = null; | |
} |
/*! | |
* | |
* Copyright (c) David Bushell | @dbushell | http://dbushell.com/ | |
* | |
*/ | |
var fs = require("fs"), | |
path = require("path"); | |
module.exports = function(grunt) |
/*! | |
* | |
* Copyright (c) David Bushell | @dbushell | http://dbushell.com/ | |
* | |
*/ | |
var fs = require("fs"), | |
path = require("path"); | |
module.exports = function(grunt) |