Skip to content

Instantly share code, notes, and snippets.

View eric6356's full-sized avatar

Zhongjie He eric6356

  • Chicago
View GitHub Profile
{
"name": "KBD75 Rev2",
"vendorProductId": 1262641249,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_F1",
"KC_F2",
"KC_F3",
{
"name": "Spring",
"vendorProductId": 1330860880,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_GRV",
"KC_1",
"KC_2",
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "creatkeebs/glacier",
"keymap": "creatkeebs_glacier_layout_tkl_f13_ansi_tsangan_mine",
"layout": "LAYOUT_tkl_f13_ansi_tsangan",
"layers": [
[
"KC_ESC",
{
"version": 1,
"notes": "My awesome keymap",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "redox_w",
"keymap": "redox_w_eric6356",
"layout": "LAYOUT",
"layers": [
[
"KC_GRV",
@eric6356
eric6356 / plot.py
Last active March 20, 2020 22:50
plot
import plotly.express as px
import numpy as np
t = np.linspace(0, 2*np.pi, 100)
fig = px.line(x=t, y=np.cos(t), labels={'x':'t', 'y':'cos(t)'})
fig.show()
@eric6356
eric6356 / i3status.config
Created August 28, 2019 04:28
~/.config/i3status/config
general {
output_format = "i3bar"
colors = true
interval = 5
}
order += "volume master"
order += "disk /"
order += "wireless wlp3s0"
order += "ethernet enp0s31f6"
@eric6356
eric6356 / i3.config
Last active August 28, 2019 04:28
~/.config/i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@eric6356
eric6356 / us.txt
Last active August 28, 2019 03:01
/usr/share/X11/xkb/symbols/us
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <CAPS> { [ ISO_Level3_Shift ] };
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
from domomagic import *
def fun(df: pd.DataFrame)->pd.DataFrame:
# specify column names
FULL_NAME_COL = 'Full name'
SUP_NAME_COL = 'Supervisor Name'
EXECUTIVE_COL = 'Executive'
exec_set = set(df[EXECUTIVE_COL])
import pandas as pd
# specify column names
FULL_NAME_COL = 'Full name'
SUP_NAME_COL = 'Supervisor Name'
EXECUTIVE_COL = 'Executive'
def fun(df: pd.DataFrame)->pd.DataFrame:
# df = df[~pd.isna(df[SUP_NAME_COL])] # drop no supervisor rows
exec_set = set(df[EXECUTIVE_COL])