Skip to content

Instantly share code, notes, and snippets.

junbaor junbaor

Block or report user

Report or block junbaor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@junbaor
junbaor / jike.py
Last active May 9, 2019
即刻-特别关注
View jike.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import platform
import sys
import threading
import requests
from telegram import Bot, InlineKeyboardMarkup, InlineKeyboardButton
from telegram.utils.request import Request
@junbaor
junbaor / EvaluateMain.java
Created May 11, 2018
java 计算数学公式
View EvaluateMain.java
package com.junbaor.demo;
import java.util.Stack;
public class EvaluateMain {
public static void main(String[] args) {
//从左到右计算, 支持小括号
System.out.println(calcEvaluate("(1+2+4)*3-(8+2)"));
}
View Test.java
/*
<dependency>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
<version>4.0.38</version>
</dependency>
*/
import com.caucho.hessian.io.HessianInput;
import com.caucho.hessian.io.HessianOutput;
View gist:4055bfc145c82ef5895eb582bfb1ce4e
# 系统信息:
1. `uname -a`:
Linux archlinux 4.11.6-1-ARCH #1 SMP PREEMPT Sat Jun 17 08:19:42 CEST 2017 x86_64 GNU/Linux
2. `lsb_release -a`:
LSB Version: 1.4
Distributor ID: Arch
Description: Arch Linux
View ImageUtils.java
private static final String SRC = "D:\\Screenshot_2016-12-26-13-59-44-263_支付宝.png";
public static void main(String[] args) throws IOException {
cutImage(SRC, "D:\\out\\src_out_" + 0 + ".png", 475, 1568, 489, 491);
}
/**
* 裁剪图片
*
* @param sourcePath 源文件
View telnet.java
package com.junbaor.test;
import org.apache.commons.io.IOUtils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
@junbaor
junbaor / clear-baiduyun.js
Created Oct 20, 2016
清理百度云通讯录、短信、通话记录
View clear-baiduyun.js
<!-- 使用说明 -->
<!-- 先打开相应的百度云 web 页面,按 F12 打开开发人员工具,选中 console 标签,粘贴代码回车执行 -->
<!-- 删除短信 -->
setInterval(function(){
$(".check-all.default-check-all").click();
$(".button_batch.btn_hover").click();
$(".alert-dialog-commands.clearfix.center>:first-child").click();
}, 2000);
You can’t perform that action at this time.