Skip to content

Instantly share code, notes, and snippets.

@Gerst20051
Gerst20051 / getCurrentFormattedDate.js
Last active December 2, 2016 20:50 — forked from akb/gist:1187817
Get Current Formatted Date
function getMonthStrings() {
return [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
@Gerst20051
Gerst20051 / jscsrc.json
Last active August 29, 2015 14:22
JavaScript Code Style .jscsrc
{
"disallowEmptyBlocks": true,
/*"disallowDanglingUnderscores": true,*/
"disallowKeywords": [
"with"
],
"disallowKeywordsOnNewLine": [
"else"
],
"disallowMixedSpacesAndTabs": true,
@Gerst20051
Gerst20051 / jshintrc.json
Created June 5, 2015 15:42
JavaScript Hint .jshintrc
{
// JSHint Configuration File
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
@Gerst20051
Gerst20051 / Makefile
Last active September 20, 2016 16:11
Passport Makefile
#MMMMMMMMMM$==~~~==+8MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#MMMMMMMMM?~==~~~=~==?MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#MMMMMMM$+~~~~~~~~~~~=+NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#MMMMMM?=~~~~~~~~~~~~~==+MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#MMMMZ===~~~~~~~~~~~~~~~==$MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#MMD+~~=~~~~~~~~~~~~~~~~~===MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#M+=~~~~~~~~~~~~~~~~~====~~==IMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#M++==~~~=~~~~~=~~=~I$$$?~==++?$MMMMMMMMMM ML MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMM
#M?+++++++======~IZOO8DDDDN7++++?MMMMMMMMM MM
@Gerst20051
Gerst20051 / Package Control.sublime-settings
Last active December 8, 2022 09:02
Personal MacBook Sublime Settings (Preferences and Package Control)
{
"in_process_packages":
[
],
"installed_packages":
[
"Advanced CSV",
"AdvancedNewFile",
"Alignment",
"All Autocomplete",
@Gerst20051
Gerst20051 / filter-github-feed.js
Last active August 29, 2015 14:23
Filter Github Feed
var clickIntervalId = setInterval(function () {
$('.js-events-pagination').click();
}, 2E3);
setTimeout(function () {
clearInterval(clickIntervalId);
$('.news').find('.create, .fork, .public, .issues_opened, .member_add').remove() &&
$('.watch_started').find('.title').find('a:eq(1):not(:contains("dynamics.js"))').closest('.watch_started').remove();
}, 20E3);
@Gerst20051
Gerst20051 / eslintrc.yml
Created July 17, 2015 15:36
JavaScript ESLint .eslintrc
rules:
indent:
- 2
- 4
quotes:
- 2
- single
linebreak-style:
- 2
- unix
@Gerst20051
Gerst20051 / permutation.class.php
Created August 17, 2015 22:04
Permutation PHP Class
<?php
$permutation = new Permutation();
// $permutation = new Permutation(array_rand(range(0, 100), 4));
class Permutation
{
private $data = [];
private $permutations = [];
@Gerst20051
Gerst20051 / hash.js
Created November 11, 2015 16:44
Hash Utils
window.Hash = {
query: {},
getHash: function () {
return decodeURIComponent(window.location.hash.substring(1));
},
clearHash: function () {
window.location.replace('#');
},
setHash: function (hash) {
window.location.replace('#' + encodeURI(hash));
@Gerst20051
Gerst20051 / cookie.js
Last active October 29, 2019 15:12
JavaScript Cookie Utils