Skip to content

Instantly share code, notes, and snippets.

View chasestarr's full-sized avatar
🎒
""

Chase Starr chasestarr

🎒
""
View GitHub Profile
@chasestarr
chasestarr / 01_v0.118.0_before.txt
Last active February 19, 2020 22:47
before/after transforming cup globals in .js.flow files (25 vs 8 errors)
yarn run v1.10.1
$ flow
Error --------------------------------------------------------------- node_modules/baseui/checkbox/checkbox.js.flow:57:9
Cannot resolve name `__DEV__`.
57| if (__DEV__ && this.props.checkmarkType === STYLE_TYPE.toggle) {
^^^^^^^
#!/bin/bash
# puppeteer test scripts can be flakey. one example is how our datepicker tests will fail
# once every ~10 or so runs. this script was written to efficiently run a command n times
# and count the number of successful exits. most people accept some unreliability in e2e
# tests, so some amount of false-negatives will not cause this script to immediately exit.
# sh runn.sh -n 30 yarn e2e:test datepicker-unreliable.e2e.js
ok=0

env vars:

SLACK_WEBHOOK_URL
CRAIGSLIST_SEARCH_URL=https://sfbay.craigslist.org/search/sfc/apa?query=glen+park&hasPic=1&postedToday=1&availabilityMode=0&sale_date=all+dates
SLACK_ICON_URL
const StyledHeadElement = styled('div', {});
export const StyledHead = (props) => <StyledHeadElement aria-prop="xyz" {...props} />;
{
"FormattingOptions": {
"NewLinesForBracesInLambdaExpressionBody": false,
"NewLinesForBracesInAnonymousMethods": false,
"NewLinesForBracesInAnonymousTypes": false,
"NewLinesForBracesInControlBlocks": false,
"NewLinesForBracesInTypes": false,
"NewLinesForBracesInMethods": false,
"NewLinesForBracesInProperties": false,
"NewLinesForBracesInObjectCollectionArrayInitializers": false,
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
this is the website
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
<head>
<link rel="stylesheet" href="node_modules/fortune-css/dist/fortune.css" />
</head>
<body class="m-2">
<div style="display: flex; flex-direction: row">
<div class="b-1">
<div class="h-2 w-2 g-1" style="background-color: var(--blue);"></div>
</div>
<div class="b-1">
@chasestarr
chasestarr / snippet.html
Created January 5, 2018 17:06 — forked from trun/snippet.html
Snippet for Gigster
<script>
// standard drift snippet
!function() {
function t() {
t.__q.push(Array.prototype.slice.call(arguments));
}
t.__q = [];
var e = window.drift = window.driftt = window.drift || window.driftt || t, i = [ "identify", "init", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on", "config" ];
i.forEach(function(t) {
e[t] || (e[t] = function() {