Skip to content

Instantly share code, notes, and snippets.

View angelnikolov's full-sized avatar

Angel Nikolov angelnikolov

View GitHub Profile
@skanev
skanev / chronicle.md
Last active October 31, 2024 20:01
Twitch Streaming Plan

Chronicle

I’m building an app on Twitch. Here’s an outline of what’s going on. You watch here.

Motivation

I’d like make a non-trivial web application that is both (1) useful to me on a daily basis and (2) I can use as a test-bed for experimentation with different tech. Functionality-wise, I imagine it will end up being a smörgåsbord of things I need (calories/exercise tracking, expense tracking, simple notes, todo lists, daily habits, what have you). Tech-wise, it will start as a classic Rails app, but once this is done, I might do things like:

  • Create a GraphQL API and build a React SPA front end
  • Build separate mobile clients with iOS, Android, React Native, Flutter, etc.
@kyleshevlin
kyleshevlin / memoizedHandlers.js
Created January 22, 2021 00:26
Using React.useMemo to create a `handlers` object
// One of my new favorite React Hook patternms is to create handler
// functions for a custom hook using `React.useMemo` instead of
// `React.useCallback`, like so:
function useBool(initialState = false) {
const [state, setState] = React.useState(initialState)
// Instead of individual React.useCallbacks gathered into an object
// Let's memoize the whole object. Then, we can destructure the
// methods we need in our consuming component.
@jevakallio
jevakallio / reactiveconf-slam-poetry.md
Last active July 7, 2021 19:57
#ReactiveConf 2017 Lightning Talk Submission: JavaScript Slam Poetry

TL;DR: If you want to see me perform a spoken word poem about JavaScript in front of 1000 people (and on video), please ⭐ star this gist. If you're on mobile, you'll need to request desktop site.

JavaScript Slam Poetry

Javascript! Slam! Poetry!