Skip to content

Instantly share code, notes, and snippets.

We'll get there

Brittan McGinnis konamax123

We'll get there
Block or report user

Report or block konamax123

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
View postData.js
const writeToS3 = (data) => {'writing to S3');
fetch('s3Url', {
method: 'POST',
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json',
View measureTimeOnPage.js
var startDateObject = new Date();
var startTime = startDateObject.getTime();
window.onbeforeunload = function (event) {
var endDateObject = new Date();
var endTime = endDateObject.getTime();
var timeSpent = endTime - startTime;

Disable CORS Chrome

/Applications/Google\\ Chrome --disable-web-security --user-data-dir

konamax123 / portalApp.js
Last active Jul 11, 2019
Trouble with routing
View portalApp.js
* App.js
import React, { Component } from 'react';
import {
BrowserRouter as Router,

Keybase proof

I hereby claim:

  • I am konamax123 on github.
  • I am brittanmcg ( on keybase.
  • I have a public key ASAHZsxjbXwXQUXeoU3frWeeYd5VesgKtEaHKcMpYe7ucAo

To claim this, I am signing this object:

konamax123 /
Created Aug 20, 2018
Global npm -i
# working with npm
npm install -g yarn
npm install -g npx
npm install -g np
npm install -g npm-name-cli
# debugging
npm install -g ndb
npm install -g node-inspector
View trippy.js
((d => {
var s = d.createElement('style')
s.sheet.insertRule('@keyframes s {from {transform:rotate(0deg);}to {transform:rotate(359deg);}}')
d.querySelectorAll('html *').forEach((e, i) => setTimeout(() => ( = `s ${Math.pow(i, -1) * 1000 * 60}s infinite linear`), Math.random() * 10))
konamax123 / .eslintrc
Created Sep 25, 2017
Airbnb eslint file
View .eslintrc
"extends": [
"parser": "babel-eslint",
"plugins": [
"env": {
Keyboard Symbols
Eclipse Shortcuts
⌘ + o List all available methods on current class
⌘ + pgup pgdown
konamax123 / lightbox.jsx
Created Feb 7, 2017
Lightbox implementation
View lightbox.jsx
import React from 'react';
import Lightbox from 'react-images';
import Button from '../Button';
const MyComponent = ReactCreateClass({
getInitialState() {
return {
lightboxIsOpen: false
You can’t perform that action at this time.