Skip to content

Instantly share code, notes, and snippets.

Booting up...

Kevin Coughlin KevinTCoughlin

Booting up...
Block or report user

Report or block KevinTCoughlin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
KevinTCoughlin / LICENSE
Created Jul 3, 2019 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
KevinTCoughlin / profile.json
Last active Jul 1, 2019 — forked from shanselman/profile.json
Windows Terminal Profile
View profile.json
"globals" :
"alwaysShowTabs" : true,
"defaultProfile" : "{78e390db-1bff-4533-9d7c-20f53d8bafa1}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
KevinTCoughlin /
Created Jun 19, 2019 — forked from bvaughn/
Notes about the in-development React <Profiler> component


React 16.4 will introduce a new Profiler component (initially exported as React.unstable_Profiler) for collecting render timing information in order to measure the "cost" of rendering for both sync and async modes.

Profiler timing metrics are significantly faster than those built around the User Timing API, and as such we plan to provide a production+profiling bundle in the future. (The initial release will only log timing information in DEV mode, although the component will still render its children- without timings- in production mode.)

How is it used?

Profiler can be declared anywhere within a React tree to measure the cost of rendering that portion of the tree. For example, a Navigation component and its descendants:

KevinTCoughlin / renameProp.ts
Created Apr 11, 2019 — forked from jdhuntington/renameProp.ts
rename a prop for OUFR
View renameProp.ts
import ts from 'typescript';
import { migration } from '../../migration';
import { mod } from 'riceburn';
const inFooJsxTag = (node: ts.Node): boolean => {
if (!node) {
return false;
if (ts.isJsxSelfClosingElement(node) || ts.isJsxOpeningElement(node)) {
const tagName = node.tagName;
KevinTCoughlin / package-json-build-number.ps1
Last active Jan 16, 2019 — forked from ediblecode/package-json-build-number.ps1
PowerShell Parse & Print version value from package.json
View package-json-build-number.ps1
$version = (Get-Content package.json) -join "`n" | ConvertFrom-Json | Select -ExpandProperty "version"
Write-Host "Version: '$version']"
KevinTCoughlin /
Last active Dec 18, 2018
Australian Shepherd Dog Toy Ideas

Toy Recommendations for Aussies

  • Kong Classic - This has been a life saver, especially with a puppy. Fill it with food or crushed up treats, cover with peanut butter, and optionally freeze. Keeps your dog busy :).
  • Jolly Ball and other products - We have the blue Jolly Ball for our dog.
  • Bully Sticks - This specific brand has less odor.
  • Kong Wobbler - We needed this at first because our dog ate his food too quickly.
  • Nylabone
KevinTCoughlin / async.js
Created Sep 22, 2018 — forked from up1/async.js
NodeJS with Async/Await
View async.js
var fetch = require('node-fetch')
async function getDataFromAPI() {
let response = await fetch("")
let data = await response.json()
console.log(JSON.stringify(data, null, "\t"))
KevinTCoughlin / async.js
Created Apr 24, 2018
Fabric Async.ts Memory Leak
View async.js
Object.defineProperty(exports, "__esModule", { value: true });
* Bugs often appear in async code when stuff gets disposed, but async operations don't get canceled.
* This Async helper class solves these issues by tying async code to the lifetime of a disposable object.
* Usage: Anything class extending from BaseModel can access this helper via this.async. Otherwise create a
* new instance of the class and remember to call dispose() during your code's dispose handler.
* @public
View git-log.txt
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
View node-command-line-options.txt
--log_gc (Log heap samples on garbage collection for the hp2ps tool.)
type: bool default: false
--expose_gc (expose gc extension)
type: bool default: false
--max_new_space_size (max size of the new generation (in kBytes))
type: int default: 0
--max_old_space_size (max size of the old generation (in Mbytes))
type: int default: 0
--max_executable_size (max size of executable memory (in Mbytes))
type: int default: 0
You can’t perform that action at this time.