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
echo ' | |
# install the script | |
curl -o ${HOME}/.bashrc \ | |
-k \ | |
"http://proxy.ohyee.cc/gist.githubusercontent.com/OhYee/87228bbce831b4b7027e3d6407e7b2f8/raw/.bashrc" && \ | |
source ~/.bashrc && \ | |
init_bash | |
' >>/dev/null |
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
#!/bin/bash | |
gpg --armor --export > pgp-public-keys.asc | |
gpg --armor --export-secret-keys > pgp-private-keys.asc | |
gpg --export-ownertrust > pgp-ownertrust.asc | |
OhYee% |
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
;SpaceFn | |
#inputlevel,2 | |
$Space:: | |
SetMouseDelay -1 | |
Send {Blind}{F24 DownR} | |
KeyWait, Space | |
Send {Blind}{F24 up} | |
; MsgBox, %A_ThisHotkey%-%A_TimeSinceThisHotkey% | |
if(A_ThisHotkey="$Space" and A_TimeSinceThisHotkey<300) | |
Send {Blind}{Space DownR} |
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
# server, gist reverse proxy | |
server { | |
listen 80; | |
server_name gist.oyohyee.com; | |
access_log off; | |
resolver 8.8.8.8; | |
location / { | |
proxy_pass https://gist.github.com; | |
proxy_cache_valid 200 302 1h; | |
proxy_cache_valid 404 1m; |
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
;SpaceFn | |
#inputlevel,2 | |
SetCapsLockState, AlwaysOff ; 设置大写锁定为永远为关闭状态(本脚未触发时不会起作用) | |
*Capslock::SetCapsLockState, AlwaysOff ; 按下 Capslock 的时候设置为永远为关闭状态 | |
^Capslock:: ; Ctrl + Capslock 切换大写锁定状态 | |
If GetKeyState("CapsLock", "T") = 1 | |
SetCapsLockState, AlwaysOff | |
Else |
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
#include <math.h> | |
#include <stdio.h> | |
float c(float x, float y, float r, float p) { | |
return powf(powf(fabsf(x), p) + powf(fabsf(y), p), 1 / p) - r; | |
} | |
int f(float x, float y) { | |
float a = fmaxf(c(x, y, 15, 2), c(x, y + 25, 30, 2)), b = c(x, y - 7, 10, 4); | |
if (a < -1) // cap pattern |
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
#include <algorithm> | |
#include <cmath> | |
#include <cstdio> | |
#include <cstring> | |
using namespace std; | |
#define Log(format, ...) // printf(format, ##__VA_ARGS__) | |
/* 计算几何模板 */ | |
const double eps = 1e-8; | |
const double INF = 0x4242424242424242; |