- 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
<?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
#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
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
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
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
#include "stdio.h" | |
#include "stdlib.h" | |
#include "string.h" | |
#define is_char_num(c) ((c>='0')&&(c<='9')) | |
/* | |
* brief: 从字符串取出数字 | |
* 注意str字符串结束符要有NULL,否则指针越界 | |
* param: str 字符串指针 |
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 -*- | |
""" | |
usage: | |
find /var/www/downloads > /tmp/1.txt | |
python this_script.py /tmp/1.txt | |
""" | |
import urllib | |
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
# Usage: | |
# AStyle.exe --options=style.conf demo.cpp | |
# Language: C/C++ | |
# base style | |
--style=k&r | |
#--style=allman | |
# max length of a line |
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
/* | |
* FileReadWrite.cpp | |
* | |
* Created on: 2017年7月28日上午11:10:36 | |
* Author: lixingcong | |
*/ | |
#include "FileReadWrite.h" | |
#include <iostream> |