Skip to content

Instantly share code, notes, and snippets.


Thorsten Lünborg LinusBorg

View GitHub Profile
tatianamac /
Last active Sep 16, 2021
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.


😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

Akryum / FileExplorer.vue
Last active Nov 25, 2019
Example of migration to Vue Function-based Component API
View FileExplorer.vue
import { isValidMultiName } from '@/util/folders'
import FOLDER_CURRENT from '@/graphql/folder/folderCurrent.gql'
import FOLDERS_FAVORITE from '@/graphql/folder/foldersFavorite.gql'
import FOLDER_OPEN from '@/graphql/folder/folderOpen.gql'
import FOLDER_OPEN_PARENT from '@/graphql/folder/folderOpenParent.gql'
import FOLDER_SET_FAVORITE from '@/graphql/folder/folderSetFavorite.gql'
import PROJECT_CWD_RESET from '@/graphql/project/projectCwdReset.gql'
import FOLDER_CREATE from '@/graphql/folder/folderCreate.gql'
yyx990803 / commits.vue
Last active Sep 11, 2020
Vue examples comparisons in 2.x and function-based APIs
View commits.vue
<div id="demo">
<h1>Latest Vue.js Commits</h1>
<template v-for="branch in branches">
<input type="radio"
<label :for="branch">{{ branch }}</label>
View no-try-catch-async-await.js
/* Helper buddy for removing async/await try/catch litter 🗑 */
function O_o(promise) {
return promise.then(data => {
if (data instanceof Error) return [data]
return [null, data]
}).catch(err => [err])
/* Look ma, no try/catch */
async function usageExample(params) {

‪“‬In what way is JS any more maintainable than CSS? How does writing CSS in JS make it any more maintainable?”

‪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.

getify / 1.js
Last active Apr 18, 2021
creating hard-bound methods on classes
View 1.js
class Foo {
constructor(x) { = x; }
hello() { console.log(; }
class Bar extends Foo {
constructor(x) { super(x); = x * 100; }
world() { console.log(; }
FilipBartos / axios-response-interceptor.js
Last active Dec 10, 2020
Axios response interceptor for access token refresh supporting 1 to N async requests
View axios-response-interceptor.js
let isAlreadyFetchingAccessToken = false
let subscribers = []
function onAccessTokenFetched(access_token) {
subscribers = subscribers.filter(callback => callback(access_token))
function addSubscriber(callback) {
leodutra / mapStatesTwoWay.vuex.js
Last active Jun 9, 2019
Function for mapping Vuex states two way
View mapStatesTwoWay.vuex.js
import { mapState } from 'vuex'
export default function mapStatesTwoWay (namespace, states, updateCb) {
const mappedStates = mapState(namespace, states)
const res = {}
for (const key in mappedStates) {
res[key] = {
set (value) {, { [key]: value })
View inquirer.js
// place this file in __mocks__
let pendingAssertions
exports.prompt = prompts => {
if (!pendingAssertions) {
throw new Error(`inquirer was mocked and used without pending assertions: ${prompts}`)
const answers = {}
bmingles / some-component.ts
Created Dec 12, 2017
Making Vuex stores type safe
View some-component.ts
import { Dispatcher } from './store';
export default Vue.component('some-component', {
created() {
methods: {
* Fetch our data.