This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AuthController | |
* | |
* @description :: Server-side logic for managing auths | |
* @help :: See http://links.sailsjs.org/docs/controllers | |
*/ | |
module.exports = { | |
index: function (req, res) { | |
var email = req.param('email'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DetectSwipeDirection; | |
DetectSwipeDirection = (function(){ | |
function DetectSwipeDirection(options){ | |
var defaults = { | |
delta: 0, | |
leftCallback: function(){}, | |
rightCallback: function(){}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clip(text) { | |
var copyElement = document.createElement('input'); | |
copyElement.setAttribute('type', 'text'); | |
copyElement.setAttribute('value', text); | |
copyElement = document.body.appendChild(copyElement); | |
copyElement.select(); | |
document.execCommand('copy'); | |
copyElement.remove(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Executes given callback only if some element found by given selector | |
* | |
* @param {String} selector | |
* @param {Function} cb | |
*/ | |
window.anyway = function (selector, cb) { | |
var | |
interval = setInterval(function () { | |
var el = $(selector); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm uninstall `ls -1 node_modules | tr '/\n' ' '` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery Validation Plugin v1.14.0 | |
* | |
* http://jqueryvalidation.org/ | |
* | |
* Copyright (c) 2015 Jörn Zaefferer | |
* Released under the MIT license | |
*/ | |
(function( factory ) { | |
if ( typeof define === "function" && define.amd ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* Repeatable Custom Fields in a Metabox | |
* Author: Helen Hou-Sandi | |
* | |
* From a bespoke system, so currently not modular - will fix soon | |
* Note that this particular metadata is saved as one multidimensional array (serialized) | |
*/ | |
function hhs_get_sample_options() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
Init owlCarousel with custom DOM options | |
http://www.owlcarousel.owlgraphic.com/docs/api-options.html | |
@plugin-options | |
@responsive-options | |
@nav-text | |
https://github.com/smashingboxes/OwlCarousel2 | |
### |