Skip to content

Instantly share code, notes, and snippets.

View rbalicki2's full-sized avatar
💭
why does github have statuses?

Robert Balicki rbalicki2

💭
why does github have statuses?
  • Pinterest
  • NYC
View GitHub Profile
match & *unwrapped_promise.borrow() {
smithy::types::PromiseState::Success(val) => {
let val = val.clone();
smd!({ &mut val })
},
// ...
}
@rbalicki2
rbalicki2 / new_hooks_based_refetching.react.jsx
Last active March 7, 2021 05:14
Comparison of Hooks and Container-based Refetching
type Props = {
comment: CommentBody_comment$key,
};
function CommentBody(props: Props) {
const [data, refetch] = useRefetchableFragment<CommentBodyRefetchQuery, _>(
graphql`
fragment CommentBody_comment on Comment
@refetchable(queryName: "CommentBodyRefetchQuery") {
body(lang: $lang) {
text
@rbalicki2
rbalicki2 / new_hooks_api_based_pagination.react.jsx
Last active March 31, 2021 01:47
Comparison of pagination without and without Relay Hooks
/**
* This file shows an example of pagination using the new Relay Hooks
* APIs. Please see old_container_based_api.react.jsx for an example of
* how this might have looked using the previous, Container-based APIs.
*/
'use strict';
import type {UserComponent_user$key} from 'UserComponent_user.graphql';
@rbalicki2
rbalicki2 / gist:514faf17c0ba2bf4fa443bedd539cad0
Created January 24, 2023 16:24
Jank-ass gist to show the "following" tab
// ==UserScript==
// @name Following
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals