This file contains hidden or 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
--- lib/std/zig/render.zig 2024-06-10 01:59:43.000000000 +1000 | |
+++ lib/std/zig/render_modified.zig 2024-06-14 16:49:09.134802136 +1000 | |
@@ -1,4 +1,5 @@ | |
const std = @import("../std.zig"); | |
+const divExact = std.math.divExact; | |
const assert = std.debug.assert; | |
const mem = std.mem; | |
const Allocator = std.mem.Allocator; | |
@@ -7,7 +8,7 @@ | |
const Token = std.zig.Token; |
This file contains hidden or 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
#if OPENGL | |
#define SV_POSITION POSITION | |
#define VS_SHADERMODEL vs_3_0 | |
#define PS_SHADERMODEL ps_3_0 | |
#else | |
#define VS_SHADERMODEL vs_4_0_level_9_1 | |
#define PS_SHADERMODEL ps_4_0_level_9_1 | |
#endif | |
float xBlurDistance; |
This file contains hidden or 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
# -*- coding: UTF-8 -*- | |
# integrate cangjie5 into ibus-anthy | |
# USAGE: $ python2.7 export_cangjie5codes_to_ibus-anthy.py <libcangjie-1.2/data/table.txt >>~/.anthy/private_words_default | |
# after that, you need ibus-anthy to reload it somehow. I personally do it by starting kasumi and pressing the "Save" button. | |
import os, sys | |
from os import path | |
pkg_data_dir='/usr/share/ibus-anthy' | |
sys.path.append(path.join(pkg_data_dir, 'setup')) | |
from anthyprefs import AnthyPrefs | |
sys.path.append(path.join(pkg_data_dir, 'engine')) |
This file contains hidden or 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
/* | |
USAGE: | |
$ go run generate_multibyte_range_for_grep.go '"[0-9] 123-345"' #regex for greping numbers from 123 to 345 inclusively | |
2[0-9][0-9]|1[3-9][0-9]|12[3-9]|3[0-3][0-9]|34[0-5] | |
$ go run generate_multibyte_range_for_grep.go '"[\x80-\xBF] \u4E00-\u9FFC"' #regex to grep -P kanjis from 一 to 鿼 | |
[\xE5-\xE8][\x80-\xBF][\x80-\xBF]|\xE4[\xB8-\xBF][\x80-\xBF]|\xE9[\x80-\xBE][\x80-\xBF]|\xE9\xBF[\x80-\xBC] | |
*/ | |
package main | |
import ( | |
"fmt" |