Skip to content

Instantly share code, notes, and snippets.

View YCF's full-sized avatar
🎯
Focusing

YouCanFly YCF

🎯
Focusing
View GitHub Profile
@YCF
YCF / shift.c
Created March 29, 2018 13:00
按下shift ,某一键变为其他键
//shift + enter = " 来自:https://github.com/qmk/qmk_firmware/blob/e899cb8940da04fa2610604f0aab417db7fac119/keyboards/mitosis/keymaps/datagrok/keymap.c
bool comm_shifted = false;
bool ques_shifted = false;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
uint8_t shifted;
uint16_t s_keycode;
bool *k_shifted;
switch (keycode) {
//特殊 shift
@YCF
YCF / auto_gray.html
Last active February 8, 2020 14:37
<style>
body.grayDay {
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
-webkit-filter: grayscale(100%); }
</style>
<script>
window.onload = function() {
var grayDay = [108, 207, 219, 404, 420, 512, 815, 909, 918, 1213];
var today = new Date();
var d = (today.getMonth() + 1) * 100 + today.getDate();
@YCF
YCF / board.dts
Created September 1, 2021 14:09 — forked from petejohanson/board.dts
Zephyr level shifter GPIO abstraction
/dts-v1/
/ {
shifter: 74hc595a@0 {
compatible = "ti,xx74hc595a";
a-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
b-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
c-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;