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
@mixin on-circle($item-count: 6, $circle-size: 240px, $item-size: 32px, $rotation-adjust: true) { | |
position: relative; | |
width: $circle-size; | |
min-width: $circle-size; | |
height: $circle-size; | |
padding: 0; | |
border-radius: 50%; | |
list-style: none; | |
transform-origin: $circle-size/2 $circle-size/2; |
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
Object.prototype.removeClass = function (string) { | |
var classList = this.className.split(' '); | |
var classesToRemove = string.split(' '); | |
for (var toRemove of classesToRemove) { | |
var index = classList.indexOf(toRemove); | |
if(index !== -1) { | |
classList.splice(index, 1); | |
} | |
} |
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
Object.prototype.addClass = function (string) { | |
var classList = this.className.split(' '); | |
var classesToAdd = string.split(' '); | |
for (var toAdd of classesToAdd) { | |
var index = classList.indexOf(toAdd); | |
if(index === -1) { | |
classList.push(toAdd); | |
} | |
} |
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
/** | |
* Found HERE: https://codepen.io/xerxesnoble/pen/JNgmJR | |
* @desc Basic linear value animation that can accept simple easing functions and provides update & complete callbacks | |
* @param {Object} values - Object with numerical values. eg. { value1: 0, value2: 20, someKey: 55 } | |
* @param {Number} duration - How long (in milliseconds) the animation will be | |
* @param {Object} options - target values, update callback & complete callback | |
* @param {Function} [options.onComplete=(values) => values] - Callback that fires once animation is complete | |
* @param {Function} [options.onUpdate=(values) => values] - Callback that fires when animation frame updates | |
* @param {Function} [options.ease=(t) => t] - easing method eg. https://gist.github.com/gre/1650294 | |
* @example |
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
// https://gist.github.com/gre/1650294 | |
/* | |
* Found HERE: https://codepen.io/xerxesnoble/pen/JNgmJR | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
const ease = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity |
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
const generateKey = (len=5, options) => { | |
let generated_key = ''; | |
let config = { | |
keyCharacters: 'aAbBcCdDeEgFhGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789', | |
...options | |
}; | |
if (typeof len === 'object') { | |
for (let i = 0; i < len.length; i++) { | |
generated_key += generateKey(len[i]); |
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
const fs = require('fs'); | |
const http = require('http'); | |
const path = require('path'); | |
class ExtraUtilities { | |
option (string) { | |
let procArgs = process.argv.slice(2); | |
for (let arg of procArgs) { | |
let firstTwo = arg.substr(0,2); |