Skip to content

Instantly share code, notes, and snippets.

View donfour's full-sized avatar

Donovan So donfour

View GitHub Profile
@donfour
donfour / App.tsx
Last active December 15, 2023 02:12
Sample Editor.js plugin in React
import EditorJs from "react-editor-js";
import SimpleImage from "./SimpleImage";
const App = () => {
return (
<EditorJs
tools={{
simpleImage: SimpleImage,
}}
/>
@donfour
donfour / App.jsx
Created January 4, 2021 10:10
Lazy loading in React
const MyComponent = React.lazy(() => import('./MyComponent.js'));
@donfour
donfour / study.md
Created August 14, 2020 10:05
Summary of Study Less Study Smart
@donfour
donfour / README.md
Last active June 28, 2020 12:21
GRE

ebb: low point, receding tide

besmirch: damange (reputation)

sycophant: bootlicker

sardonic: mocking / synical

fawning: displaying exaggerated flattery

Technical

Clean Code (Bob) Pragmatic Programmer () Head first design patterns

Technology

Elon musk Hitting refresh

Fiction

@donfour
donfour / README.md
Created February 23, 2020 06:55 — forked from talon/README.md
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. clone this gist somewhere locally git clone https://gist.github.com/4191def376c9fecae78815454bfe661c.git windows_home_docker
  2. Run windows_home_containers.ps1 in an Administrative Powershell
@donfour
donfour / test.md
Created February 10, 2020 14:20
Haskell Cheatsheet

Start ghci ghci

List manipulation:

head [1,2,3] 1

tail [1,2,3,4,5] [2,3,4,5]