View echo.sh
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
# print code | |
for (( i=0x2194; i<=0x2199; i++ )) | |
do | |
out=$(printf "%#x\n" $i) | |
echo $out | |
done | |
# print table | |
# '\U0001f004' if 5-digit code | |
for code in '00a9' '00ae' '203c' '2049' '2122' '2139' |
View .profile.ps1
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
Set-PSReadlineKeyHandler -Chord Ctrl+d -Function DeleteCharOrExit | |
Import-Module posh-git | |
Import-Module scoop-completion | |
Import-Module posh-cargo | |
$GitPromptSettings.DefaultPromptPrefix.Text = '$(Get-Date -f "yyyy-MM-dd HH:mm:ss") ' | |
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta | |
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true | |
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n' |
View lexer.rs
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
use crate::lexer::Lexer; | |
pub mod token { | |
pub mod tag { | |
#[derive(Clone, Copy, Debug)] | |
pub enum Tag { | |
Char(u8), | |
Num, | |
Id, | |
True, |
View proxy.pac
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
var FindProxyForURL = function(init, profiles) { | |
return function(url, host) { | |
"use strict"; | |
var result = init, scheme = url.substr(0, url.indexOf(":")); | |
do { | |
result = profiles[result]; | |
if (typeof result === "function") result = result(url, host, scheme); | |
} while (typeof result !== "string" || result.charCodeAt(0) === 43); | |
return result; | |
}; |
View postfix_parser.py
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
import readchar | |
class Parser: | |
def __init__(self): | |
self.lookahead = readchar.readchar() | |
def expr(self): | |
self.term() | |
while True: | |
if self.lookahead == b'+': |
View 肃南裕固族自治县.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 重庆市三大城市群.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View hjkl.ahk
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
; Original script xlr-space.ahk (https://sspai.com/post/57157) | |
; Modified by amorphobia (https://github.com/amorphobia) | |
; Space | |
Space::Send {Space} | |
^Space::Send ^{Space} | |
#Space::Send #{Space} | |
^#Space::Send ^#{Space} | |
!Space::Send !{Space} |
View flow.tex
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
\documentclass[preview]{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{calc} | |
\usetikzlibrary{arrows} | |
\tikzset{default/.style={draw,inner sep=10pt}} | |
\tikzset{else master/.style={draw=gray!60,inner sep=10pt}} | |
\tikzset{feature/.style={draw,inner sep=10pt,fill=gray}} | |
\tikzset{master/.style={draw,inner sep=10pt,fill=blue!20}} | |
\tikzset{rect/.style={rectangle,minimum height=25pt,minimum width=60pt}} |
View xhyx.dict.yaml
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
# 小鹤音形 9.7_20190709 build 378 系统词库 | |
# 删除了词库中的《静夜思》 | |
# $ddcmd( 静夜思·李白 | |
# | |
# 床前明月光,疑是地上霜。 | |
# 举头望明月,低头思故乡。 | |
# ,『静夜思·李白』) jysi | |
--- |
NewerOlder