#1 ##2 ###3 ####4 #####5 ######6 #######7 ########8 #########9 ##########10
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/* |
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') |
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) | |
})(); |
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/* |
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 *** |
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 |
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
/** | |
* DWTFYW License | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* jquery plugin for showing tooltip on overflow | |
* | |
* USAGE: | |
* | |
* $("input, select").tooltipOnOverflow(); | |
* |
以下只适合 v3.5.0 即以前的版本。v3.6.0 以后,对选项增加了 shellescape 减少了命令行注入的风险。
ImageMagick 的 composite
命令可以合成图片,但是一次只能合成两张。如果需要合成多张图片,得用 convert
命令和 -composite
选项。MiniMagick 的push
方法,可添加选项和参数(就像在命令行操作一样)。下是一个合成多张图片的 CarrierWave 的 process 示例。
def composite_images
manipulate! do |img|
img.combine_options(:convert) do |c|
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
module Middleware | |
class Logger | |
def initialize(app, logger) | |
@app = app | |
@logger = logger | |
end | |
def call(env) | |
headers = env.select {|k,v| k.start_with? 'HTTP_'} |
NewerOlder