- 使用AdBlock去广告扩展的人,增加一条规则,变成多功能扩展,屏蔽香港域名跳转加入以下自订规则:
||google.com.hk$script
,这样点搜索结果时就不会自动在url里加入google的链接了。注意根据你的搜索引擎是否是hk来去掉规则里面的hk - 打开Chrome,在地址栏键入chrome://net-internals/,在HSTS选项卡下的Domain中输入你想要实现这个强制跳转的域名,例如你Chrome的默认搜索引擎是www.google.com,就在add domain里填写www.google.com,记得在下面的include subdomains打对勾,确保google的二级域名也是加密的,这样跳转结果页也是加密的,然后就可以打开结果页面了
- 将搜索引擎改为
googlestable.com
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
function parseURI (uri) { | |
"use strict"; | |
if (!uri) return; | |
var regexMaybe = function (str) { | |
return '(?:' + str + ')?'; | |
}, | |
reg = new RegExp('^' + regexMaybe('(([^:]+):)?') + '\\/\\/([^:/]+)/*' + regexMaybe(':(\\d+)\\/*') + regexMaybe('([^?#]+)') + regexMaybe('\\?([^#]+)') + regexMaybe('#(\\w+)')), | |
match = uri.match(reg), | |
protocol = match[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
#!/bin/bash | |
echo '***********************************'; | |
echo '*'; | |
echo -e '*\t分支清理'; | |
echo '*'; | |
echo '***********************************'; | |
echo ''; | |
# 切到主干分支develop,更新远程分支 |
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
/* | |
* Water Canvas by Almer Thie (http://code.almeros.com). | |
* Description: A realtime water ripple effect on an HTML5 canvas. | |
* Copyright 2010 Almer Thie. All rights reserved. | |
* | |
* Example: http://code.almeros.com/code-examples/water-effect-canvas/ | |
* Tutorial: http://code.almeros.com/water-ripple-canvas-and-javascript | |
*/ | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Handlebars Partials Example</title> | |
</head> | |
<body> | |
<h1>Handlebars Partials Example!</h1> | |
<div id="list"> | |
</div> |
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
#!/bin/bash | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
if [ "$current_branch" = "master" ] || [ "$current_branch" = "develop" ]; then | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | |
echo "" | |
echo "禁止直接向master或develop分支提交代码!" | |
echo "" | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | |
exit 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
{"0.5948624295038616":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEbP2Np3drW8PJcuu56YYZix3a1nZav7zg\r\nieEQefM7nKbUwywPWyWwZmjRrfMiW3YnOYOtZA6D0bSCXd0iTd9rnc3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWgv46P8AAAACiwn/AAAACZDTJGpWQDwt\r\nwv8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAMCcA/0bxi7IwmNe2\r\n05BhjbAVUm76wnGMdf+nBY3QvV4da8VTAQCtpL11br+VnN9H3Fjt74P25coExy3o\r\ncaI9kW1naejTFs7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBIp1elaRkVhBNChZ/wj1\r\n4tC44OnOXn6aT/WwSp/Ur1JIYALqjIYSP9DpWJPv3hj0eODviKRyLv4/2h4V4j9l\r\niFMDAQgHwv8AAABtBBgTCAAf/wAAAAWCWgv46P8AAAAJkNMkalZAPC3C/wAAAAKb\r\nDAAA6pIBAKZRmL3XzN7OF0OstQvZoAD3+HhBRH7qKXbrvZ2xJmSrAQDju+A10wsY\r\n8ksrkfValMIBPYRDNv6g9kBJno2Nr3dz9w==\r\n=IBWE\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"} |
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
/* AlloyFinger v0.1.2 | |
* By dntzhang | |
* Github: https://github.com/AlloyTeam/AlloyFinger | |
*/ | |
function getLen(v) { | |
return Math.sqrt(v.x * v.x + v.y * v.y); | |
} | |
function dot(v1, v2) { | |
return v1.x * v2.x + v1.y * v2.y; |
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
/** | |
* USAGE: | |
* 外部定义全局变量 RSINFO = { 'path': 'version' } | |
*/ | |
(function (win) { | |
var rslist, | |
RSLIST_KEY = 'rslist', | |
RSINFO = win.RSINFO || {}, | |
isLocalStorageSupported = (function() { |
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
# 查找当前文件夹及其子文件夹下包含某个字符串的某类型文件 | |
# From http://www.ai7.org/wp/html/653.html | |
find . -name "*.js"|xargs grep require |
NewerOlder