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 / 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"
@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 / @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 / 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();
};
<!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 -->