在 Racket 中实现一些简单的 Monad。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* Here's an overview of how support for waiting more than 64 objects | |
on MS-Windows. | |
As noted in the MS documentation, WaitForMultipleObjects can wait on | |
a maximum of MAXIMUM_WAIT_OBJECTS (64) objects. Due to this | |
limitation, earlier versions of Emacs (at least 30) could only |
本 gist 是对 WGSL-20240205 标准的一个简单 tree-sitter 实现
参考官方教程,通过 npm 安装 tree-sitter-cli,将 grammar.js 放在项目根目录,scanner.c 放在 src 目录,通过 tree-sitter generate
命令生成可用的 tree-sitter parser。
本 gist 代码参考了以下项目:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>First WebGPU APP</title> | |
</head> | |
<body> | |
<canvas width="720" height="720"></canvas> | |
</body> | |
<script src="./index.js"></script> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14) | |
project(unitree_guide) | |
set(ROBOT_TYPE Go1) # The type of robot, support Go1 and A1 currently | |
set(PLATFORM amd64) # The platform to compile, support amd64 and arm64 | |
set(CATKIN_MAKE ON) # Use CATKIN_MAKE or not, ON or OFF | |
set(SIMULATION ON) # Use Gazebo or not, ON or OFF | |
set(REAL_ROBOT OFF) # Link real robot or not, ON or OFF | |
set(DEBUG OFF) # Use debug functions or not, ON or OFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; init.el --- include-yy's emacs config -*- lexical-binding:t;no-byte-compile:t; -*- | |
;; Copyright (C) 2023 include-yy <yy@egh0bww1.com> | |
;; Author: include-yy <yy@egh0bww1.com> | |
;; Created: 17 Jun 2023 | |
;; Version: 0.1 | |
;; Keywords: config | |
;; URL: https://gist.github.com/include-yy/e70dcbfc1a80403814d0b7a7357971d9 |
周末光追的 ReScript 实现
直接编译运行即可
NewerOlder