Skip to content

Instantly share code, notes, and snippets.


Richard Lindhout RichardLindhout

View GitHub Profile
anveo /
Created December 4, 2013 16:51
remove node_modules from git history
git filter-branch --tree-filter 'rm -rf node_modules' HEAD
echo node_modules/ >> .gitignore
git add .gitignore
git commit -m 'Removing node_modules from git history'
dispix /
Last active February 15, 2021 16:23
OAUTH2 Authentication and token management with redux-saga

Revision 5

  • Fix error parsing

Revision 4

  • Add missing yield in the login function

Revision 3

View TaskDetail.js
import { useNavigationParam } from 'react-navigation-hooks';
import { graphql, usePreloadedQuery } from 'react-relay/hooks';
const query = graphql`
query TaskDetailQuery($nodeId: ID!) {
task: node(id: $nodeId) {
... on Task {
PurpleBooth / Dockerfile
Last active August 22, 2022 21:20
Create a static binary in go and put it in a from scratch docker container
View Dockerfile
FROM golang:1.9
WORKDIR /go/src/
COPY . .
RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go
FROM scratch
COPY --from=0 /go/src/ /main
CMD ["/main"]
sibelius / AutocompleteRelay.tsx
Last active November 8, 2022 13:22
@material-ui Autocomplete lab with react-window + infinite-loader for GraphQL/Relay connections
View AutocompleteRelay.tsx
import React, { useRef, useState } from 'react';
import { Typography } from '@material-ui/core';
import TextField from '@material-ui/core/TextField';
import CircularProgress from '@material-ui/core/CircularProgress';
import Autocomplete, {
} from '@material-ui/lab/Autocomplete';