Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View StevenLangbroek's full-sized avatar

Steven Langbroek StevenLangbroek

View GitHub Profile
{
"openapi": "3.0.3",
"info": {
"title": "Clerk Backend API",
"x-logo": {
"url": "https://clerk.com/_next/image?url=%2Fimages%2Fclerk-logo.svg&w=96&q=75",
"altText": "Clerk docs",
"href": "https://clerk.com/docs"
},
"contact": {
declare module 'geoblaze' {
import { Point, Polygon, Feature, BBox, MultiPolygon } from 'geojson';
import { Georaster } from 'georaster';
// re-rexport for easy access by downstream user
export { Georaster } from 'georaster';
export interface BlazeHistogram {
[key: string]: {
// count of pixels with this value
Research
Draft
Draft PR submitted -> Input
Input
Input provided -> RFC
RFC
Proposed*
For -> Accepted
Against -> Rejected
@StevenLangbroek
StevenLangbroek / suspense.tsx
Created September 19, 2020 12:05
Suspense is easier with components
<React.Suspense fallback={<ProgressIndicator />}>
<Query query={RECENT_POSTS}>
{(result) => <Post result={result.data.post} />}
</Query>
</React.Suspense>
// lil' helpers for squeaky clean code 😎
const load = (url: string) =>
fetch(url).then(async r => {
const json = await r.json();
if (!r.ok) {
throw json;
}
return json;
});
const all = Promise.all.bind(Promise);
interface ThingOptions {
owner: string;
title: string;
}
class Thing {
// this is fine
constructor({ owner, title = 'Thing' }) {
}
window.Users = (function Users() {
// private to this "Module"
function User(attrs) {
this.id = attrs.id;
this.name = attrs.name;
};
User.prototype.sayHello = function sayHello () {
console.log("Hey! I'm" + this.name + "! Nice to meet you!");
return this;
interface AsButtonProps {
as: 'button';
onClick?: React.EventHandler<React.MouseEvent>;
formAction?: string;
// [edited for brevity]
}
interface AsAnchorProps {
as: 'a';
href: string;
@StevenLangbroek
StevenLangbroek / recs.md
Last active December 3, 2019 17:51
Berlin Recommendations for ReactDay 2019 Attendees

So, you think you can Berlin?

You can! You don't need my help, but here's some places I love love love in Berlin. I'll try to focus on the area around the venue, but travelling within the inner ring of Berlin is easy, fast and safe (if you disagree please let me know, let's talk and revise with some specific recommendations).

Food (these all have veggie & vegan options unless otherwise indicated)

@StevenLangbroek
StevenLangbroek / thing.js
Created April 23, 2019 07:51
If code was only for computers...
i R f '1';
c A e R.B { a(a) { t.b(a) }, b(a) { t.a1 = a; } }