Skip to content

Instantly share code, notes, and snippets.

declare global {
const console: {
log(...data: any[]): void;
error(...data: any[]): void;
debug(...data: any[]): void;
info(...data: any[]): void;
warn(...data: any[]): void;
email(log: any, subject?: string | number): void;
};
(() => `hi @healeycodes at ${new Date()}!`)()
// this function needs to be run on `http://daystareld.com` because of CORS
async function doIt() {
const url = "http://daystareld.com/pokemon-"
const maxChapter = 105
const numbers = [...Array(maxChapter).keys()].map(n => n+1)
const urls = numbers.map(n => `${url}${n}/`)
const pages = await Promise.all(urls.map(u => fetch(u).then(r => r.text())))
const output = pages.map(p => {
const el = document.createElement( 'html' );
el.innerHTML = p

Update from third-party accounts

When a company signs up for Secureframe, they connect it to all the vendors they use. We then authenticate to those vendors and pull all the employees from that company that use the service. For example, a customer may connect Secureframe to GSuite, Gusto, and Github.

After we pull data from these services, we want to use it to update the fields on the internal Secureframe User model. However, we may get back conflicting data from these services and we want to prioritize different fields from different services. For example, we want to prioritize names from Gusto but emails from GSuite.

We want to create a method updateFromThirdPartyAccounts(user) which will ...

<div id="container">
<div id="board">
</div>
<div id="hand">
</div>
<div id="scoreboard">
</div>
</div>
@stevekrouse
stevekrouse / machine.js
Created September 26, 2019 20:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
Screens*
Logged-out
login -> Logged-in
Logged-in&
SDK
Loading-sdk
loaded-sdk -> Loaded-sdk
Loaded-sdk
Player
div.pH.a9q {
display: none;
width: 0;
}
span.aXw.T-KT.T-KT-JW {
display: none;
}
div.pH-A7.a9q {
This file has been truncated, but you can view the full file.