Skip to content

Instantly share code, notes, and snippets.

View squirrel532's full-sized avatar

Squirrel squirrel532

  • Taipei, Taiwan
View GitHub Profile
@squirrel532
squirrel532 / pre-commit
Created September 20, 2018 07:35 — forked from samhemelryk/pre-commit
A git pre-commit hook example.
#!/bin/bash
#
# This pre-commit hook checks that you havn't left and DONOTCOMMIT tokens in
# your code when you go to commit.
#
# To use this script copy it to .git/hooks/pre-commit and make it executable.
#
# This is provided just as an example of how to use a pre-commit hook to
# catch nasties in your code.
[tool.poetry]
name = "hello"
version = "2020.02.27"
description = "zzzz"
authors = ["aarrr <[email protected]>"]
[tool.poetry.dependencies]
python = "~2.7 || ~3.7"
pytest = "*"
@squirrel532
squirrel532 / install_vim.sh
Created June 14, 2020 15:13
Build vim from source on macOS
git clone https://github.com/vim/vim
cd vim
./configure --with-features=huge --enable-multibyte \
--enable-python3interp=yes \
--with-python3-config-dir=$(python3-config --configdir) \
--enable-luainterp=yes \
--enable-cscope \
--prefix=/usr/local \
--with-luajit \
@squirrel532
squirrel532 / SQL Cheat Sheet.md
Created October 13, 2020 09:42 — forked from janikvonrotz/SQL Cheat Sheet.md
SQL Cheat Sheet#SQL#Markdown

SQL languages

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE etc, and it is used to store, modify, retrieve, delete and update data in database.

DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.

Datatypes

Text types

Th is a note for those who want to build `qmk/g60ble` firmware for their BIOI G60BLE keyboard.
1. Replace vid by `0x8101` in `info.json`. I wrote this gist based on release `0.22.14` because qmk might change in the future.
1. There is a typo in `LAYOUT_60_hhkb` keymap that maps top-right key into nothing.
The correct config of that key:
```
{"matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25}
```