Skip to content

Instantly share code, notes, and snippets.

View kirkbyers's full-sized avatar

Kirk Byers kirkbyers

  • Austin, Texas
View GitHub Profile
@kirkbyers
kirkbyers / LearnGoIn5mins.md
Created January 5, 2021 16:54 — forked from prologic/LearnGoIn5mins.md
Learn Go in ~5mins
@kirkbyers
kirkbyers / tslint.json
Created November 8, 2017 00:51
[WIP] tslint.json options
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"quotemark": {
"options": [
"single",
@kirkbyers
kirkbyers / node-tsconfig.json
Created November 8, 2017 00:49
tsconfig.json for server-side typescript
{
"compilerOptions": {
/* Basic Options */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": [
"es6",
"dom"
], /* Specify library files to be included in the compilation: */
"allowJs": true, /* Allow javascript files to be compiled. */
@kirkbyers
kirkbyers / Regex-for-migrating-withStyles.md
Last active November 2, 2017 23:03
Regex for removing typecasting in ts from material-ui

General:

/(?!([withStyles]))<([^"]+)>/

Javascript:

text.match(/(?!([withStyles]))<([^"]+)>/);
@kirkbyers
kirkbyers / Redux-Container-tsx.json
Created August 30, 2017 22:22
A tsx snippet to quickly scaffold out redux containers
"React Container": {
"prefix": "rx-container",
"body": [
"import * as React from 'react';",
"import { Dispatch, connect } from 'react-redux';",
"",
"import { State } from '../reducers';",
"",
"interface Props { }",
"interface StateProps { }",
@kirkbyers
kirkbyers / my-git-aliases.txt
Last active August 30, 2017 22:20
Some Git Aliases
[alias]
st = status -sb
co = checkout
cb = checkout -b
b = branch
ba = branch -a
br = !sh -c 'git branch -vv | sed "s/].*/]/"' -
pr = remote prune origin
so = remote show origin
cp = cherry-pick
@kirkbyers
kirkbyers / funColorAnimation
Last active October 29, 2015 16:15 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(110deg, #246655, #662441);
background-size: 400% 400%;
-webkit-animation: AnimationName 30s ease infinite;
-moz-animation: AnimationName 30s ease infinite;
-o-animation: AnimationName 30s ease infinite;
animation: AnimationName 30s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:52% 0%}
    50%{background-position:49% 100%}
    100%{background-position:52% 0%}