Skip to content

Instantly share code, notes, and snippets.

View kwonoh's full-sized avatar

Oh-Hyun Kwon kwonoh

View GitHub Profile
@kwonoh
kwonoh / script.sh
Created February 3, 2017 21:25
Get total size of certain files within a directory branch
du -ch **/*.png | grep total
@kwonoh
kwonoh / keymap.c
Last active February 1, 2022 03:17
Planck Keymap
#include QMK_KEYBOARD_H
enum planck_layers {
L_DEFAULT,
L_OSX,
L_LT,
L_LB,
L_RT,
L_RB
// L_MC
/*
* HHKB Layout
*/
#include "keymap_common.h"
#ifdef KEYMAP_SECTION_ENABLE
const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
#else
const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
@kwonoh
kwonoh / gl_vertex_attrib_pointer.hpp
Last active February 16, 2017 15:43
Generic glVertexAttribPointer
#ifndef GL_VERTEX_ATTRIB_POINTER_HPP
#define GL_VERTEX_ATTRIB_POINTER_HPP
// Copyright Oh-Hyun Kwon 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/*