作者:TheLover_Z
假设你的键盘只有以下键:A,Ctrl + A,Ctrl + C,Ctrl + V。
这里 Ctrl+A,Ctrl+C,Ctrl+V 分别代表「全选」,「复制」,「粘贴」,组合键算一次按键。
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
| <style> | |
| </style> | |
| </head> | |
| <body> |
| if ((/http\:\/\/www\.zhihu\.com\/question\/(.+)\/answer\/(.+)/.exec(location.href)) !== null) { | |
| var anwerId = $(".zg-anchor-hidden")[0].name.split("-")[1]; | |
| var votersProfile = "http://www.zhihu.com/answer/" + anwerId + "/voters_profile"; | |
| $.get(votersProfile) | |
| .done(function(data) { | |
| var a = data.payload; | |
| for (var i=0; i < a.length; i++) { | |
| var usrName = $(a[i]).find("a").attr("href").split("/")[2]; | |
| console.log("给 " + usrName + " 执行死刑"); | |
| $.post("http://www.zhihu.com/people/" + usrName + "/block", { action: "add" }); |
| #!/usr/bin/env ruby | |
| # List all keys stored in memcache. | |
| # Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place. | |
| require 'net/telnet' | |
| headings = %w(id expires bytes cache_key cache_value) | |
| rows = [] |
作者:TheLover_Z
假设你的键盘只有以下键:A,Ctrl + A,Ctrl + C,Ctrl + V。
这里 Ctrl+A,Ctrl+C,Ctrl+V 分别代表「全选」,「复制」,「粘贴」,组合键算一次按键。
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import oauth2 as oauth | |
| import urllib | |
| class fanfou(): | |
| def __init__(self, consumer_key, consumer_secret, oauth_token, oauth_token_secret): | |
| self.consumer_key = consumer_key |