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
-- http://www.google.com/intl/zh-CN/ime/pinyin/api.html | |
--参考谷歌输入法 base.lua | |
-- Google pinyin 定义的数据结构,通过ime.parse_mapping函数parse为标准lua表 | |
-- 之前见过的lua扩展都是里面的TABLE都是 key value1,value2,value2 ... | |
-- 不符合我输入的要求,例如value不能包含有分界符(默认逗号),每行一键多值,得多长啊 | |
-- 每一行代表 "按键" \t "返回值" | |
-- TABLE内数据接近两千行的时候,虽然GooglePinyinApiConsole.exe能返回正确的值,但谷歌输入法无反应。 | |
-- 一千行的时候还是还行的。 |
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 PROXY_DIRECT = "DIRECT"; | |
var DIRECT = "DIRECT"; | |
var BLACK = "PROXY 8.8.8.8:53"; | |
var WHITE = PROXY_DIRECT; | |
function s(u, r) { | |
return shExpMatch(u, r); | |
} | |
function d(h, r) { |
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 AN ALIAS FOR SUBLIMETEXT | |
Powershell cmd below: | |
Test-Path $Profile | |
New-Item –Path $Profile –Type File –Force | |
Set-Alias subl "C:\Program Files\Sublime Text 3\sublime_text.exe" | |
subl . | |
This will load the current directory as a project in SublimeText from the command line. |
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
<?php $tmp =array ( | |
'Version' => | |
array ( | |
0 => '2.3.5', | |
1 => '2.3.1', | |
2 => '2.3', | |
3 => '2.2', | |
4 => '2.1.2', | |
5 => '2.1.1', | |
6 => '2.1', |
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
""" .vromerc example file | |
" Note: sync with wiki | |
" Change key mapping in normal mode, please check Vrome Features for available key mapping | |
map j <C-f> | |
map j 10j | |
map k 10k | |
" Remove key mapping in normal mode | |
" unmap <C-f> |
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
<?php | |
function pre_print_r($var){ echo "<pre>"; print_r($var); echo "</pre>"; echo "<br />"; }; | |
$tmpa = 'Ägypten'; | |
$tmpb = 'Österreich'; | |
$tmpc = 'ÜbereinfuhrÜ'; | |
$d = str_split($tmpa); | |
$e = str_split($tmpb); |
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
cinst Switcheroo | |
cinst Ditto | |
cinst Listary |
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
void(window.open('http://pushbullet.com/push/link?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&device_iden=[Your Device ID]')) |
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
# Q-Search | |
# Modified by nzw9314 | |
# From Neurogram (https://raw.githubusercontent.com/Neurogram-R/Surge/master/module/Q-Search.sgmodule) | |
# - Safari 内输入 命令 + 空格 + 关键词 快速指定搜索引擎搜索 | |
# 注:先进入设置更改 Safari 默认搜索为 DuckDuckGO | |
# 可自行修改指令或者添加搜索引擎 | |
# gh: GitHub搜索 | |
# gm: Google图片搜索 | |
# sof: Stack Overflow |
OlderNewer