Skip to content

Instantly share code, notes, and snippets.

@anthonykoch
Last active November 29, 2018 17:38
Show Gist options
  • Save anthonykoch/788b665d4bcc78f6e262f3f0c5491d6c to your computer and use it in GitHub Desktop.
Save anthonykoch/788b665d4bcc78f6e262f3f0c5491d6c to your computer and use it in GitHub Desktop.
Examples of my code

Blog posts

Trivia App (React, Redux, Jest, react-emotion, Typescript)

https://github.com/anthonykoch/trivia-app/blob/master/src/screens/QuizScreen/QuizScreen.tsx
https://github.com/anthonykoch/trivia-app/blob/master/src/store/quiz/reducer.ts
https://github.com/anthonykoch/trivia-app/blob/master/src/store/quiz/sagas.test.ts
https://github.com/anthonykoch/trivia-app/blob/master/src/store/fetch/util.test.ts

  • NextJS SSR
  • Docker
  • Postgres
  • Mobx
  • Axios
  • JWT
  • styled-components
  • Flowtype
  • Knex

Design from https://dribbble.com/shots/3903437-Dashboard-message

Note: The long pauses between page changes are caused Next's on-demand compilation in dev mode

emailapp preview

React code examples

https://github.com/anthonykoch/emailapp/blob/master/client/store/index.js
https://github.com/anthonykoch/emailapp/blob/master/client/pages/login.js
https://github.com/anthonykoch/emailapp/blob/master/client/pages/dashboard-messages.js

Backend code examples

Messages REST API
https://github.com/anthonykoch/emailapp/blob/master/server/services/users/messages.service.js

Users REST API
https://github.com/anthonykoch/emailapp/blob/master/server/services/users/users.service.js

Knex migrations
https://github.com/anthonykoch/emailapp/blob/master/server/database/migrations/20180919214442_base.js

A JSON to AST parser (my first project in Golang)

https://github.com/anthonykoch/go-json/blob/master/main.go

Vue & Vuex

Live preview at anthonykoch.com/vue-scuffka/editor

Sass examples

https://github.com/anthonykoch/website/blob/master/assets/styles/utilities/_size.sass
https://github.com/anthonykoch/website/blob/master/assets/styles/pages/_home.sass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment