Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
div.pH.a9q {
display: none;
width: 0;
}
span.aXw.T-KT.T-KT-JW {
display: none;
}
div.pH-A7.a9q {
Screens*
Logged-out
login -> Logged-in
Logged-in&
SDK
Loading-sdk
loaded-sdk -> Loaded-sdk
Loaded-sdk
Player
@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
<div id="container">
<div id="board">
</div>
<div id="hand">
</div>
<div id="scoreboard">
</div>
</div>

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 ...

// 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
(() => `hi @healeycodes at ${new Date()}!`)()
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;
};