Skip to content

Instantly share code, notes, and snippets.

View aarongeorge's full-sized avatar
🤖

ADG aarongeorge

🤖
View GitHub Profile
@aarongeorge
aarongeorge / .jscsrc
Last active August 29, 2015 14:22
My .jscsrc file for jscs v1.13.1
// DisallowOperatorBeforeLineBreak https://github.com/jscs-dev/node-jscs/issues/845
{
"disallowAnonymousFunctions": null,
"disallowCapitalizedComments": null,
"disallowCommaBeforeLineBreak": null,
"disallowCurlyBraces": null,
"disallowDanglingUnderscores": null,
"disallowEmptyBlocks": true,
"disallowFunctionDeclarations": null,
"disallowIdentifierNames": null,
@aarongeorge
aarongeorge / Equal Height Children.js
Created June 10, 2015 08:03
Equal Height Children
/**
* Equal Height without using Table or flexbox
*/
var EqualHeightChildren = function (container, childrenSelector) {
'use strict';
this.container = container;
this.options = {
childrenSelector: '*'
@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 / 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 / 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 / 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();
};
/**
* Modules: FauxSelect
*
* Usage:
*
* new FauxSelect({
* 'classes': {
* 'active': '-active',
* 'fauxSelect': 'faux-select',
* 'selected': '-selected',
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],
@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"
First install: Package Control from https://packagecontrol.io/installation
Once that has installed, use Package Control to install the following:
A File Icon (Adds file type icons)
Babel (Adds support for ES6 syntax)
Bracket Highlighter (Adds various styles of bracket highlighting to Sublime)
CSS Extended Completions (Adds additional CSS completions)
Emmet (Adds various shorthand to write code faster)
JSX (Adds JSX Syntax)
Material Theme (Adds the nice Material Theme)