Skip to content

Instantly share code, notes, and snippets.

@markx
markx / pingjiao.user.js
Created December 4, 2012 12:54
将评教的默认评价设为优秀。
// ==UserScript==
// @name pingjiao
// @namespace
// @version 0.1
// @description to change the default choice of the judgement for teachers in UESTC
// @match http://ea.uestc.edu.cn/xsjxpj.aspx*
// @copyright 2012+, Mark
// ==/UserScript==
var i=0
@markx
markx / Baidupan Multi-post.user.js
Last active June 22, 2016 20:38
upload mulitple ed2k resources
// ==UserScript==
// @name Baidupan Multi-post
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http*://pan.baidu.com/disk*
// @copyright 2012+, Ke Xu <kxu000@gmail.com>
// @run-at document-end
// @grant none
// ==/UserScript==
#!/usr/bin/env python
import requests
from lxml.html import fromstring
import re
import time
fiction=''
prefix='http://www.ranwen.net/files/article/17/17528/'
#!/bin/sh
PLAYER="/cygdrive/d/Program?Files/SMPlayer/mplayer/mplayer.exe"
say() {
local IFS=+;
$PLAYER -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*";
}
n=60
if [ "$#" -ge "1" ]; then
/**
* Parse query string into an object.
*
* @method queryStringToObject
* @param {String} str Query string. Use the query string from URL if this parameter is not provided.
* @return {Object} Returns the object created from query string
*/
queryStringToObject: function (str) {
var i, pair;
var result = {};
cd.ctfs.ftn.qq.com
disk.sz.ftn.qq.com
hz.ftn.qq.com
nj.disk.ftn.qq.com
sh.ctfs.ftn.qq.com
sz.ctfs.ftn.qq.com
tj.ctfs.ftn.qq.com
tj.disk.ftn.qq.com
xa.ctfs.ftn.qq.com
xa.tfs.ftn.qq.com
const readline = require('readline');
function READ(x) {
return x;
}
function EVAL(x) {
return x;
}

Keybase proof

I hereby claim:

  • I am markx on github.
  • I am markx (https://keybase.io/markx) on keybase.
  • I have a public key ASCnctcAu2m4b_QictI41mOoJ11QqJ4rrQ0Lq-5jDzjSwAo

To claim this, I am signing this object:

@markx
markx / aria2.rb
Last active April 18, 2020 03:32
class Aria2 < Formula
desc "Download with resuming and segmented downloading"
homepage "https://aria2.github.io/"
url "https://github.com/aria2/aria2/releases/download/release-1.35.0/aria2-1.35.0.tar.xz"
sha256 "1e2b7fd08d6af228856e51c07173cfcf987528f1ac97e04c5af4a47642617dfd"
bottle do
cellar :any
sha256 "9cc5e04be8b0a58d1f2b60b8abfc636168edbf23e7018003c40f1dd6952aab0c" => :catalina
sha256 "761836ac608eb0a59d4a6f6065860c0e809ce454692e0937d9d0d89ad47f3ce4" => :mojave
Content-Length: 58
{"jsonrpc":"2.0","method":"initialize","params":{},"id":1}
Content-Length: 52
{"jsonrpc":"2.0","method":"exit","params":{},"id":1}