/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function calculateAngle(h, m) { | |
const minuteDeg = 6; | |
const hourTimesFive = h === 12 ? 0 : h * 5; | |
const minuteMinusHoursTimesFive = m - hourTimesFive; | |
let degrees = minuteMinusHoursTimesFive * minuteDeg; | |
if (Math.sign(degrees) === -1) { | |
degrees = -degrees; // if negative degrees, set to positive | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const writeToS3 = (data) => { | |
console.info('writing to S3'); | |
fetch('s3Url', { | |
method: 'POST', | |
body: JSON.stringify(data), | |
headers: { | |
'Content-Type': 'application/json', | |
} | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var startDateObject = new Date(); | |
var startTime = startDateObject.getTime(); | |
window.onbeforeunload = function (event) { | |
var endDateObject = new Date(); | |
var endTime = endDateObject.getTime(); | |
var timeSpent = endTime - startTime; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* App.js | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
BrowserRouter as Router, | |
Route, | |
Link, | |
Switch, | |
withRouter |
I hereby claim:
- I am konamax123 on github.
- I am brittanmcg (https://keybase.io/brittanmcg) on keybase.
- I have a public key ASAHZsxjbXwXQUXeoU3frWeeYd5VesgKtEaHKcMpYe7ucAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((d => { | |
var s = d.createElement('style') | |
d.head.appendChild(s) | |
s.sheet.insertRule('@keyframes s {from {transform:rotate(0deg);}to {transform:rotate(359deg);}}') | |
d.querySelectorAll('html *').forEach((e, i) => setTimeout(() => (e.style.animation = `s ${Math.pow(i, -1) * 1000 * 60}s infinite linear`), Math.random() * 10)) | |
})(this.document)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": [ | |
"airbnb", | |
"plugin:lodash-fp/recommended" | |
], | |
"parser": "babel-eslint", | |
"plugins": [ | |
"lodash-fp" | |
], | |
"env": { |
Keyboard Symbols | |
---|---|
⌘ | cmd |
⌥ | option |
⇧ | shift |
Eclipse Shortcuts | |
---|---|
⌘ + o | List all available methods on current class |
⌘ + pgup | pgdown |
NewerOlder