- 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 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 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 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 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 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 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 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 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
#!/bin/bash | |
useage() { | |
printf "\n\e[1;4mAscii Escape Code Helper Utility\e[m\n\n" | |
printf " \e[1mUseage:\e[m colors.sh [-|-b|-f|-bq|-fq|-?|?] [start] [end] [step]\n\n" | |
printf "The values for the first parameter may be one of the following:\n\n" | |
printf " \e[1m-\e[m Will result in the default output.\n" | |
printf " \e[1m-b\e[m This will display the 8 color version of this chart.\n" | |
printf " \e[1m-f\e[m This will display the 256 color version of this chart using foreground colors.\n" | |
printf " \e[1m-q\e[m This will display the 256 color version of this chart without the extra text.\n" |
This file contains 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 |