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 parse_switchy(text){ | |
return text | |
.split("\n") | |
.filter(l => l.length && l[0] == '*') | |
.map(l => l.split(' ')) | |
} | |
function switchy2tire_if(text){ | |
function tree2if(tree){ | |
function t2i(node, depth, defa){ |
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 parse_switchy(text){ | |
return text | |
.split("\n") | |
.filter(l => l.length && l[0] == '*') | |
.map(l => l.split(' ')) | |
} | |
function switchy2tire(text){ | |
function get_proxy_from_tree(host, tree){ | |
host = host.split('.').reverse() |
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 parse_switchy(text){ | |
return text | |
.split("\n") | |
.filter(l => l.length && l[0] == '*') | |
.map(l => l.split(' ')) | |
} | |
function switchy2tire(text){ | |
function get_proxy_from_tree(host, tree){ | |
host = host.split('.').reverse() |
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
#!/usr/bin/env ruby | |
#encoding=utf-8 | |
require 'data_mapper' | |
require 'moneta' | |
require 'rack/session/moneta' | |
require 'grape' | |
require 'sinatra' | |
class API < Grape::API |
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
#!/usr/bin/env ruby | |
#encoding=utf-8 | |
require 'data_mapper' | |
require 'moneta' | |
require 'rack/session/moneta' | |
require 'grape' | |
require 'sinatra' | |
class API < Grape::API |
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
let start_at = 0 // 从第0个开始删 | |
let end_at = 10 // 删到第9个 | |
let aa=Array.prototype.slice.apply(document.querySelectorAll('.WB_feed_detail .W_ficon.ficon_arrow_down.S_ficon')).slice(start_at,end_at) | |
for(let i=0; i<aa.length; i++){ | |
setTimeout( () => { | |
aa[i].click() | |
document.querySelector('[title="删除此条微博"]').click() | |
document.querySelector('.layer_mini_opt .W_btn_a').click() | |
}, i*1000) | |
} |
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
REM ***** BASIC ***** | |
Sub Main | |
Dim xUntil, yUntil as integer | |
Dim left, cleanCol As Integer | |
Dim isEmptyCol as boolean | |
left = 0 | |
xUntil = 10 | |
yUntil = 10 |