Skip to content

Instantly share code, notes, and snippets.

View gaycomputers's full-sized avatar

Josh gaycomputers

View GitHub Profile
@dyladan
dyladan / asynchronous_explainer.js
Last active July 1, 2019 16:47
This is an example of all the ways asynchronous operations may be carried out in javascript
/*
* First, we will declare some asynchronous functions to consume.
* These actually do not make asynchronous calls, but they illustrate
* the idea.
*/
// Callback style asynchronous function
function callbackAsyncFunction(val1, val2, callback) {
//processing
if (!val1) {
@andys8
andys8 / gist:0270b4c7e4bdc6dc0652755aaba6900c
Created April 24, 2018 22:04
How to build and flash QMK with DZ60 and Docker
# press space + b and connect the usb port
# build
docker run -e keymap=iso_vim_arrow -e keyboard=dz60 --rm -v $('pwd'):/qmk:rw edasque/qmk_firmware
# flash
sudo dfu-programmer atmega32u4 erase --force
sudo dfu-programmer atmega32u4 flash dz60_iso_vim_arrow.hex
sudo dfu-programmer atmega32u4 reset