MOVED TO: https://docs.google.com/spreadsheets/d/1pTcBV5lFBdeeBBKr_FhBfL00xHeuDiiTH70_rLK6vx4/edit?usp=sharing
package.json package-lock.json yarn.lock
.env .gitattributes .gitignore .gitmodules
package.json package-lock.json yarn.lock
.env .gitattributes .gitignore .gitmodules
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
PARAMS="" | |
DB_HOST="localhost" | |
DB_PORT=27017 | |
DB_DATABASE="local" | |
# DB_COLLECTION="" |
-- https://www.hammerspoon.org/go/#window-sizing | |
-- https://stackoverflow.com/questions/54151343/how-to-move-an-application-between-monitors-in-hammerspoon | |
-- https://github.com/fikovnik/ShiftIt/issues/296#issuecomment-438386501 | |
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "r", function() | |
hs.reload() | |
end) | |
hs.alert.show("Config loaded") | |
hs.window.animationDuration = 0 | |
units = { |
🎉 All free or open source.
Note: Updated for 2022-24+
https://twitter.com/snookca/status/1073299331262889984?s=21
Happy to chat about this. There’s an obvious disclaimer that there’s a cost to css-in-js solutions, but that cost is paid specifically for the benefits it brings; as such it’s useful for some usecases, and not meant as a replacement for all workflows.
(These conversations always get heated on twitter, so please believe that I’m here to converse, not to convince. In return, I promise to listen to you too and change my opinions; I’ve had mad respect for you for years and would consider your feedback a gift. Also, some of the stuff I’m writing might seem obvious to you; I’m not trying to tell you if all people of some of the details, but it might be useful to someone else who bumps into this who doesn’t have context)
So the big deal about css-in-js (cij) is selectors.
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
// Feedback requested on the useDeepCompareEffect | |
// it just feels like a bit of work... | |
// HERE'S THE REASON I NEED THIS: | |
// when people use the useQuery hook, they'll typically | |
// do so like this: `useQuery(myQuery, {var1: props.value})` | |
// which means that passing `variables` to `useEffect` will | |
// trigger a rerun of the callback even if they didn't | |
// actually change (referrential equality) | |
function useQuery({query, variables}) { |
/** | |
Utility for React Native's AsyncStorage module. | |
Auto encodes/decodes using `JSON`. | |
Essentially data is saved as key/value to available flash/SD storage. | |
*/ | |
import { AsyncStorage } from "react-native" | |
export default { | |
setItem(key, value) { | |
return AsyncStorage.setItem(key, JSON.stringify(value)) |