Skip to content

Instantly share code, notes, and snippets.

View GitaiQAQ's full-sized avatar
🏠
Working for home

Gitai GitaiQAQ

🏠
Working for home
View GitHub Profile
package me.gitai.phuckqq.xposed;
import android.app.Notification;
import android.app.NotificationManager;
import android.support.v4.app.NotificationCompat;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import me.gitai.library.utils.L;
@GitaiQAQ
GitaiQAQ / PhuckQQ.md
Created March 2, 2016 12:53
a xposed module for QQbot
  private void a1405(final XC_LoadPackage.LoadPackageParam lpparam) throws ClassNotFoundException,NoSuchFieldException,IllegalAccessException{
      String className = "com.tencent.mobileqq.activity.ChatActivity";
      String methodName = "a";

      Class<?> message = lpparam.classLoader.loadClass("com.tencent.mobileqq.app.message.QQMessageFacade$Message");

      XposedBridge.log("Hooking a(QQMessageFacade$Message qQMessageFacade$Message)[1405]");
@GitaiQAQ
GitaiQAQ / fonttable.r
Created August 23, 2017 04:35
An example R script that will generate a table of all the fonts rendered so you can compare them a little easier between the 2 systems.
fonttable <- read.table(header=TRUE, sep=",", stringsAsFactors=FALSE,
text='
Short,Canonical
mono,Courier
sans,Helvetica
serif,Times
serif,Times
,AvantGarde
,Bookman
,Helvetica-Narrow
@GitaiQAQ
GitaiQAQ / sm.sh
Last active December 29, 2017 04:00
上传图片到 SM.MS 的脚本
#!bin/bash
# 上传图片到 SM.MS 的脚本
# ./sm.sh image1.png image2.png
jsonRet=""
for f in "$@"
do
ref=$(curl --progress-bar -F smfile=@$f https://sm.ms/api/upload | jq '"[\(.data.filename)](\(.data.url))"')
ref=${ref//\"/}
jsonRet=${jsonRet}$ref"\n"
done
@GitaiQAQ
GitaiQAQ / css权值计算.md
Created April 10, 2018 03:58 — forked from zhuping/css权值计算.md
css权值计算

Alt text

@GitaiQAQ
GitaiQAQ / tingyun.js
Created April 22, 2018 08:28
听云 JS 加了点注释。。。
var TINGYUN = function (t, e, n) {
function r(t) {
var e = !!t && "length" in t && t.length, n = typeof t;
return "function" !== n && ("array" === n || 0 === e || "number" == typeof e && e > 0 && e - 1 in t)
}
function i(t, e) {
var n, i = 0;
if (t) if (r(t)) for (n = t.length; i < n && !1 !== e.call(t[i], t[i], i); i++) ; else for (i in t) if (!1 === e.call(t[i], t[i], i)) break;
return t
@GitaiQAQ
GitaiQAQ / AutoACE.js
Created January 9, 2019 15:13
自动挂载 ACE 替换普通文本域。
(function() {
'use strict';
jQuery(document).ready(function() {
let Language = {
"C": "c_cpp",
"C++": "c_cpp",
"Java": "java",
"JavaScript": "javascript",
"Python": "python"
};
@GitaiQAQ
GitaiQAQ / main.rs
Last active February 8, 2019 09:01
假装写了个 v-dom,实际上只有最简单的 diff
#![allow(dead_code)]
use std::collections::HashMap;
use std::collections::HashSet;
trait Renderable {
fn render(&mut self) {
unimplemented!()
}
}

<TaskerData sr="" dvi="1" tv="4.8m">
	<Profile sr="prof2" ve="2">
		<cdate>1458462937080</cdate>
		<edate>1458488927594</edate>
		<flags>2</flags>
		<id>2</id>
		<mid0>10</mid0>
#!/bin/ts-node
const SymbolCache = Symbol.for("cache");
let miss = 0;
function computed(...args) {
const _cache = {};
return function (
target,
propertyKey: string,