Skip to content

Instantly share code, notes, and snippets.

View aarongeorge's full-sized avatar
🤖

ADG aarongeorge

🤖
View GitHub Profile
const SCALES = {
// Common
'major': [0, 2, 4, 5, 7, 9, 11],
'natural minor': [0, 2, 3, 5, 7, 8, 10],
'harmonic minor': [0, 2, 3, 5, 7, 8, 11],
'melodic minor': [0, 2, 3, 5, 7, 9, 11],
'major blues': [0, 2, 3, 4, 7, 9],
'minor blues': [0, 3, 5, 6, 7, 10],
'pentatonic major': [0, 2, 4, 7, 9],
/**
* Modules: FauxSelect
*
* Usage:
*
* new FauxSelect({
* 'classes': {
* 'active': '-active',
* 'fauxSelect': 'faux-select',
* 'selected': '-selected',
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>HTML5 Blank Page</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Styles -->
@aarongeorge
aarongeorge / AbstractedScroll.js
Created December 16, 2016 04:46
JS Module for abstracted scrolling
// Constructor: AbstractedScroll
var AbstractedScroll = function (options) {
'use strict';
// Store reference to `container`
this.container = options.container;
// Call `enable`
this.enable();
};
@aarongeorge
aarongeorge / strokeloader.scss
Created April 20, 2016 00:58
Sass mixin to create a CSS stroke loader
/**
* strokeloader
*
* Creates a circle loader that fills the stroke
*
* @param {string} $radius - Radius of the loader
* @param {string} $stroke - Width of the loaders stroke
* @param {string} $background-colour - Colour of the inactive stroke
* @param {string} $progress-colour - Colour of the progress stroke
* @param {string} $clip-colour - Colour of the inner clipping circle
@aarongeorge
aarongeorge / cyclicArrayIndex.js
Created January 28, 2016 03:09
Cyclic Array Index
var arr = ['a', 'b', 'c'];
var cyclicArray = function (arr, index) {
var item = ((index % arr.length) + arr.length) % arr.length;
console.log(arr[item], item);
}
for (var i = -5; i < 5; i++) {
cyclicArray(arr, i);
@aarongeorge
aarongeorge / Create SSL certificate.txt
Created December 10, 2015 05:10
Create SSL certificate
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key
rm server.pass.key
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
@aarongeorge
aarongeorge / @moviemaking.cfg
Created December 6, 2015 01:24
CS:GO Movie Making Config
// A-Ron's CS:GO Movie Making Config
// Cheats are required
sv_cheats "1"
// Enable console
con_enable "1"
// HUD
cl_autohelp "0"
@aarongeorge
aarongeorge / crossfadeCSSGenerator.js
Last active October 24, 2017 04:15
Crossfade CSS Generator
var CrossfadeCSSGenerator = function (opts) {
'use strict';
this.opts = opts;
this.animationDuration = this.getAnimationDuration(this.opts.imageShownDuration, this.opts.crossfadeDuration, this.opts.numberOfImages);
this.animationDelay = this.getAnimationDelay(this.opts.imageShownDuration, this.opts.crossfadeDuration);
this.init();
};
@aarongeorge
aarongeorge / autoexec.cfg
Last active August 6, 2017 10:39
A-Ron's CS:GO Config
// A-Ron's CS:GO Competitive Config
// Last Updated: 06/08/2017
// HUD
cl_autohelp "0"
cl_hud_background_alpha "1"
cl_hud_bomb_under_radar "0"
cl_hud_color "0"
cl_hud_healthammo_style "1"
cl_hud_playercount_pos "1"