Skip to content

Instantly share code, notes, and snippets.

View stephencweiss's full-sized avatar
🎉

Stephen Weiss stephencweiss

🎉
View GitHub Profile
import { map } from 'fp-ts/Record';
import * as t from 'io-ts';
export const StandardCodec = t.type({ fields: t.string });
export type Standard = t.TypeOf<typeof StandardCodec>;
// export const OriginalCodec = t.type({ original: t.string });
// export type Original = t.TypeOf<typeof OriginalCodec>;
export const partialRecord = <K extends string, T extends t.Any>(
@stephencweiss
stephencweiss / gist:40c01fbc7b5ae1332baff3aa3a204ca5
Created January 8, 2022 17:19 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
import Component from '@glimmer/component';
export default class extends Component {
get title(){
console.log({args: this.args.list})
if (this.args.list.length === 0) {
return 'Empty List';
} else if (this.args.list.length === 1) {
return '1 Unread';
} else {
@stephencweiss
stephencweiss / machine.js
Last active September 12, 2020 15:11
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@stephencweiss
stephencweiss / machine.js
Created September 11, 2020 16:25
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am stephencweiss on github.
  • I am stephenweiss (https://keybase.io/stephenweiss) on keybase.
  • I have a public key whose fingerprint is 97A4 DED8 1B1A A21E 533A BF4B 39C6 60B6 BF04 72FF

To claim this, I am signing this object:

🏆 2,196 Contributions in year 2020
📦 Used 302 MB in GitHub's Storage
📜 67 Public Gists
🔑 4 Public Keys
🚫 Not opted to Hire
🌞 Morning 296 commits ███████▉░░░░░░░░░░░░░ 37.7%
🌆 Daytime 343 commits █████████▏░░░░░░░░░░░ 43.6%
🌃 Evening 146 commits ███▉░░░░░░░░░░░░░░░░░ 18.6%
🌙 Night 1 commits ░░░░░░░░░░░░░░░░░░░░░ 0.1%
@stephencweiss
stephencweiss / webdev_online_resources.md
Created February 19, 2020 15:20 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@stephencweiss
stephencweiss / submitForm3.js
Created January 5, 2019 02:27
eventHandler with reset attached to `this`
function submitForm (event) {
event.preventDefault();
console.log(`Form submitted!`);
const name = document.querySelector('[name]').value;
console.log(`The name is --> `, name);
// Do anything else you want here
this.reset(); // <-- Our *new* money line
}