Skip to content

Instantly share code, notes, and snippets.

View cchamberlain's full-sized avatar

Cole Chamberlain cchamberlain

View GitHub Profile
{
"compilerOptions": {
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "ES5",
"jsx": "react",
"noImplicitReturns": true,
"noStrictGenericChecks": true,
"sourceMap": true,
{
"extends": ["tslint-react"],
"jsRules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"indent": [
true,
@cchamberlain
cchamberlain / settings.json
Created July 16, 2018 20:05
VSCode Settings
{
"editor.fontSize": 14,
"editor.fontFamily": "'Operator Mono', Consolas, monospace",
"editor.cursorBlinking": "blink",
"terminal.integrated.drawBoldTextInBrightColors": false,
// Enable some vim ctrl key commands that override otherwise common operations, like ctrl+c
"vim.useCtrlKeys": false,
"workbench.colorTheme": "Material Theme",
"window.zoomLevel": -1,
@cchamberlain
cchamberlain / .eslintrc
Last active June 14, 2016 00:03
The best eslint configuration
{
"env": {
"shared-node-browser": true,
"es6": true,
"mocha": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
@cchamberlain
cchamberlain / metaRouter.js
Created April 5, 2016 05:56
redux-middleware
import timeoutScheduler from './timeoutScheduler'
import identityHandler from './identityHandler'
import apiDispatcher from './apiDispatcher'
import routeHandler from './routeHandler'
import idleHandler from './idleHandler'
import errorHandler from './errorHandler'
/**
* Lets you dispatch special actions with a { meta } field.
*
@cchamberlain
cchamberlain / ExampleBase.cs
Last active March 26, 2021 14:59
ILog.cs / Log.cs - NLog service wrapper
using System;
using System.Threading;
using NLog;
using App.Diagnostics;
namespace App {
public abstract class ExampleBase {
private static readonly Lazy<ILogger> GenericLogger = new Lazy<ILogger>(LogManager.GetCurrentClassLogger, LazyThreadSafetyMode.PublicationOnly);
protected ILog Log { get; private set; }
@cchamberlain
cchamberlain / update-nuget-encoded
Last active February 9, 2017 11:23
PowerShell script to automate getting the latest version of NuGet and installing to a configurable location with good defaults.
powershell -encodedcommand W0NtZGxldEJpbmRpbmcoDQogIFN1cHBvcnRzU2hvdWxkUHJvY2Vzcz0kVFJVRSwNCiAgQ29uZmlybUltcGFjdD0iSGlnaCINCildDQpQQVJBTSgNCiAgW3BhcmFtZXRlcihQb3NpdGlvbj0wLEhlbHBNZXNzYWdlPSJEaXJlY3RvcnkgdG8gaW5zdGFsbCAvIHVwZGF0ZSBOdUdldC4iKV0NCiAgW2FsaWFzKCJyIildDQogIFtzdHJpbmddJE5VR0VUX1JPT1Q9IiQoSm9pbi1QYXRoICRFbnY6UHJvZ3JhbUZpbGVzIE51R2V0KSINCikNClBST0NFU1Mgew0KICBOZXctSXRlbSAtcGF0aCAiJE5VR0VUX1JPT1QiIC1pdGVtdHlwZSBEaXJlY3RvcnkgLWZvcmNlIHwgT3V0LU51bGwNCiAgIyAkc291cmNlTnVnZXRFeGUgPSAiaHR0cHM6Ly93d3cubnVnZXQub3JnL2FwaS92Mi9wYWNrYWdlL051R2V0LkNsaWVudC8zLjIuMCINCiAgJHNvdXJjZU51Z2V0RXhlID0gImh0dHBzOi8vbnVnZXQub3JnL251Z2V0LmV4ZSINCiAgJHRhcmdldE51Z2V0RXhlID0gSm9pbi1QYXRoICIkTlVHRVRfUk9PVCIgbnVnZXQuZXhlDQogIEludm9rZS1XZWJSZXF1ZXN0ICIkc291cmNlTnVnZXRFeGUiIC1PdXRGaWxlICIkdGFyZ2V0TnVnZXRFeGUiDQogIFNldC1BbGlhcyBudWdldCAiJHRhcmdldE51Z2V0RXhlIiAtU2NvcGUgR2xvYmFsIC1WZXJib3NlIC1mb3JjZQ0KfQ==
@cchamberlain
cchamberlain / .gitattributes
Last active October 19, 2015 00:58
This is a list of complaints to date that I have with Massage Envy.
*.m4a filter=lfs diff=lfs merge=lfs -text
@cchamberlain
cchamberlain / OpenWithSublimeText3.bat
Last active October 7, 2015 21:57 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (with new flag) (tested in Windows 10)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" -n /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@cchamberlain
cchamberlain / SONGS.md
Last active March 16, 2016 20:47
Songs I'm planning on learning on guitar.

METAL

As I Lay Dying

  • The Sound of Truth