#1 ##2 ###3 ####4 #####5 ######6 #######7 ########8 #########9 ##########10
View 16-62进制互转
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
#coding=gbk | |
# | |
#62进制,特别合于月、日、时、分、秒的压缩进储 | |
# | |
digit62 = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' | |
#整数转化为62进制字符串 | |
#入口: | |
# x : 整数 | |
#返回: 字符串 | |
def int_to_str62( x ): |
View focus_mate.user.js
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
// ==UserScript== | |
// @name Focussi CBA Mate | |
// @namespace https://www.focussi.com | |
// @version 1.0.6 | |
// @author Donnie Ian | |
// @hostAt https://gist.github.com/debbbbie/59bf0a070b7daafa7c42a819292bf2fd | |
// @updateURL https://gist.githubusercontent.com/debbbbie/59bf0a070b7daafa7c42a819292bf2fd/raw/focus_mate.user.js | |
// @downloadURL https://gist.githubusercontent.com/debbbbie/59bf0a070b7daafa7c42a819292bf2fd/raw/focus_mate.user.js | |
// @match https://*.focussi.com/* |
View jquery_array_list_ajax.coffee
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
$.when.apply $, ['/ajax/1','/ajax/2','/ajax/3'].map -> | |
$.ajax(this) | |
.done -> | |
alert('all done') |
View bootlint.js
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
javascript: (function() { | |
var s = document.createElement("script"); | |
s.onload = function() { | |
bootlint.showLintReportForCurrentDocument([]); | |
}; | |
s.src = "https://maxcdn.bootstrapcdn.com/bootlint/latest/bootlint.min.js"; | |
document.body.appendChild(s) | |
})(); |
View tampermonkey.js
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
// ==UserScript== | |
// @name Ruten | |
// @namespace http://debbbbie.com/ | |
// @version 1.0 | |
// @description Ruten | |
// @author debbbbie | |
// @updateURL https://gist.githubusercontent.com/debbbbie/b8792d475ab3feec5750/raw/5788cbe0aefdccd75690a9e50c6fae4450454ddb/tampermonkey.js | |
// @match http://mybid.ruten.com.tw/* | |
// @match http://goods.ruten.com.tw/* |
View easylist.txt
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
[Adblock Plus 2.0] | |
! Checksum: onih6SC4VyGqIvSc373Rsw | |
! Version: 201601140910 | |
! Title: Moneybook EasyList | |
! EasyList China and EasyList combination subscription | |
! Last modified: 14 Jan 2016 09:10 UTC | |
! Expires: 4 days (update frequency) | |
! Homepage: http://abpchina.org/forum/ | |
! | |
! *** easylistchina:easylistchina.txt *** |
View 64进制互转
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
#coding=gbk | |
digit64 = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/' | |
def int_to_str64( x ): | |
try: | |
x=int(x) | |
except: | |
x=0 | |
if x<0: | |
x=-x | |
if x==0: |
View .gemrc
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
gem: --no-ri --no-rdoc --http-proxy=http://USERNAME:PASSWORD@ADDRESS:PORT |
View gist:7656037
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
it "every redis commands should be realized in redis-namespace" do | |
# Use methods.map{|m|m.to_sym} for backward compatible till ruby1.8 | |
r_methods = (Redis.public_instance_methods(false) - MonitorMixin.public_instance_methods).map{|m|m.to_sym} - | |
[:client, :synchronize, :with_reconnect, :without_reconnect, :connected?, :id, :method_missing, :inspect, :_bpop, :_eval, :_scan ] | |
rns_methods = (Redis::Namespace::COMMANDS.keys + Redis::Namespace.public_instance_methods(false)).map{|m|m.to_sym} | |
do_not_needs = [:slowlog, :sync, :time, :migrate, :subscribed?, :unwatch, :script] | |
(r_methods - rns_methods - do_not_needs).should eq([]) | |
end |
NewerOlder