Skip to content

Instantly share code, notes, and snippets.

View puterjam's full-sized avatar
😃
Coding make me happy

舜子 puterjam

😃
Coding make me happy
View GitHub Profile
@fauxpark
fauxpark / applefn.patch
Last active May 2, 2024 05:11
QMK Apple Fn
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index 18f8b0bbfc..4ef3e230e4 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -878,6 +878,10 @@ ifeq ($(strip $(JOYSTICK_ENABLE)), yes)
endif
endif
+ifeq ($(strip $(APPLE_FN_ENABLE)), yes)
+ OPT_DEFS += -DAPPLE_FN_ENABLE
@puterjam
puterjam / httptoy.js
Created October 28, 2013 08:42
简易的nodejs httpserver
(function(){
var http = require("http");
var fs = require('fs');
//默认启动http服务的路径
var documentRoot = process.cwd();
//默认文档名称
var defaultDocument = "index.htm";