- Copy one of the consumer key pairs to Twidere - Settings - Network - Advanced - Default API Settings
- Remove account from Twidere (or just skip this step)
- Re-login. It's OK to see "You've already logged in" message.
This file contains hidden or 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
var _click_count=0; | |
$("body").bind("click",function(e){ | |
//var n=Math.round(Math.random()*100);//随机数 | |
var $i=$("<b>").text("+"+(++_click_count)); | |
var x=e.pageX,y=e.pageY; | |
$i.css({ | |
"z-index":99999, | |
"top":y-15, | |
"left":x, |
This file contains hidden or 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
vi /system/usr/keylayout/synaptics.kl | |
CM14.0 中默认的值为 | |
key 580 APP_SWITCH VIRTUAL | |
key 158 BACK VIRTUAL | |
以上即为默认值,Back---Home---App布局 | |
This file contains hidden or 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
diff --git a/Makefile b/Makefile | |
index cd97f5b..128ed69 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -3,22 +3,22 @@ | |
include Makefile.common | |
LDFLAGS=$(COMMONFLAGS) -fno-exceptions -ffunction-sections -fdata-sections -L$(LIBDIR) -nostartfiles -Wl,--gc-sections,-Tlinker.ld | |
LDFLAGS_USE_NEWLIB=--specs=nano.specs -lc -lnosys | |
-LDLIBS+=-lstm32 | |
+LDLIBS+="libs\libstm32.a" |
This file contains hidden or 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
#include <iostream> | |
#include "math.h" | |
// 数组指针 | |
using namespace std; | |
const int COL = 2; | |
void printRowData(int* p) |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="li.grain2"> | |
<uses-permission android:name="android.permission.CAMERA"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<application | |
android:allowBackup="true" |
This file contains hidden or 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
路由表使用cidrmerge进行合并 | |
cat route.txt| cidrmerge > route_merged.txt | |
https://github.com/karlpilkington/cidrmerge | |
ipip.net中国大陆路由表(每两个月更新一次) | |
wget https://github.com/17mon/china_ip_list/raw/master/china_ip_list.txt -O /tmp/route.txt | |
ChinaRoute ipv4路由表 | |
wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F\| '/CN\|ipv4/ { printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /tmp/route.txt |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
# Time-stamp: < 1.py 2016-11-19 14:09:19 > | |
""" | |
对应《统计学习方法》李航课本的第2章“感知机”的例题2.1 | |
""" | |
import os | |
# An example in that book, the training set and parameters' sizes are fixed |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
# Time-stamp: < 1.py 2016-11-08 21:49:20 > | |
""" | |
递归抓取某个网站下的所有链接,结果输出到一个文件 | |
""" | |
import requests | |
import time | |
import sys |
This file contains hidden or 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
var this_title=document.title; | |
document.addEventListener('visibilitychange', function() { | |
document.title = document.hidden ? this_title+":你看不到我~": this_title; | |
}); |