Skip to content

Instantly share code, notes, and snippets.

@SgtPooki
SgtPooki / .jshintrc
Last active August 29, 2015 14:03 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@SgtPooki
SgtPooki / stashConflictExample
Created July 3, 2014 12:08
stash conflict example
07:01:38 /var/projects
$ mkdir gitStashConflictExample
07:01:53 /var/projects
$ cd gitStashConflictExample/
07:01:55 /var/projects/gitStashConflictExample
$ git init
Initialized empty Git repository in /var/projects/gitStashConflictExample/.git/
@SgtPooki
SgtPooki / .gitconfig
Last active August 29, 2015 14:04
git config
[user]
name = Russell Dempsey
email = rdempsey@nerdery.com
[core]
autocrlf = false
editor = vim
[push]
default = current
@SgtPooki
SgtPooki / .jscsrc
Created August 25, 2014 17:05
starter .jscsrc file that should be edited prior to use
/**
* .jscsrc blank template with all options. Used to help people quickly create and edit a .jscsrc file for their project.
*
* @author Russell Dempsey <SgtPooki@gmail.com>
* @version 1.5.9
*/
{
/**
* Path to load additional rules
* Type: Array
@SgtPooki
SgtPooki / scroll.easing.js
Last active April 6, 2023 06:05 — forked from dezinezync/scroll.easing.js
ScrollTo easing
function scrollTo(Y, duration, easingFunction, callback) {
var start = Date.now(),
elem = document.documentElement.scrollTop?document.documentElement:document.body,
from = elem.scrollTop;
if(from === Y) {
callback();
return; /* Prevent scrolling to the Y point if already there */
}
@SgtPooki
SgtPooki / Boxstarter
Last active August 29, 2015 14:11
Boxstarter
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Disable-InternetExplorerESC
Disable-UAC
Set-TaskbarSmall
### development
## languages
@SgtPooki
SgtPooki / ConEmu-for-cmder.xml
Created February 21, 2015 00:14
The settings file for cmder with saved layout
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2015-02-20 18:12:53" build="140707">
<value name="ColorTable00" type="dword" data="00222827"/>
<value name="ColorTable01" type="dword" data="009e5401"/>
<value name="ColorTable02" type="dword" data="0004aa74"/>
<value name="ColorTable03" type="dword" data="00a6831a"/>
<value name="ColorTable04" type="dword" data="003403a7"/>
<value name="ColorTable05" type="dword" data="009c5689"/>
@SgtPooki
SgtPooki / recursiveBezier.js
Created April 2, 2015 15:30
Recursive Bezier function
var recursiveBezier = function recursiveBezier(pointArray, t) {
var P1;
var P2;
var inverse;
var length = pointArray.length;
if (length === 1) {
return pointArray[0];
} else {
P1 = recursiveBezier(pointArray.slice(0,length-1), t)
P2 = recursiveBezier(pointArray.slice(1), t);
@SgtPooki
SgtPooki / mcoords.js
Created April 11, 2015 05:04
Display mouse coordinates
(function() {
'use strict';
var $toolTip = $('<div/>');
$toolTip.addClass('customTooltip-rsd')
.css({
position: 'absolute',
display: 'inline-block',
'font-size': '22px',
backgroundColor: '#000',
color: '#ffffff',
@SgtPooki
SgtPooki / observableDecorator.js
Created April 15, 2015 00:39
A module that decorates a passed in object with on, off, and trigger functions.
/**
* @fileOverview
* @author Russell Dempsey <SgtPooki@gmail.com>
* 2015
*/
'use strict';
var Decoration = {};