- 博客(173)
- 资源 (2)
- 收藏
- 关注
原创 一段时间自我维护服务器有感
一段时间自我维护服务器有感搞来搞去,发现还是在平台上写东西比较方便。自己维护服务器太麻烦了。。。搞来搞去,发现还是在平台上写东西比较方便。自己维护服务器太麻烦了。。。大爷的。...
2021-01-15 16:31:28
211
原创 Android 常用命令
查看apk的权限aapt d permissions xxx.apkeg:tomlucky@tomdeMacBook-Pro ~ $ aapt d permissions /Users/tomlucky/Downloads/com.facebook.katana_51361700.apk package: com.facebook.katanauses-permission-sdk-...
2019-01-04 21:53:28
345
原创 ADB
查看当前设备#adb devicesadb install 当有多设备时选定一个$ adb devicesList of devices attached02157df258b81106 deviceemulator-5554 device$ adb -s 02157df258b81106 install xxx.apk ...
2018-12-21 16:01:09
170
转载 git 添加tag
这篇文章写的不错,就不复制了,直接去看吧:https://blog.youkuaiyun.com/b735098742/article/details/78935748
2018-11-26 17:46:58
735
原创 [stm32]c复习
1位操作运算符含义&按位与|按位或^按位异或~取反<<左移>>右移2define宏定义格式:#define 标识符 值#define SYSCLK_FREQ_72MHz 720000003条件编译 ifdef/ifndef#ifdef 标识符程序段1#else程序段2#endi...
2018-11-20 00:02:47
235
原创 [macos]命令行打开vscode
下载vscode如下运行:打开 VS Code,打开控制面板(⇧⌘P),输入shell command,在提示里看到 Shell Command: Install 'code' command in PATH,运行它就可以了。
2018-11-19 22:58:30
1481
原创 [stm32][hal]stm32f103rct6控制996r舵机
配置cub代码https://github.com/qdtom/diy/tree/master/stm32/stm32f103rct6_hal_duoji2int main(void){ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------...
2018-11-19 10:13:58
6816
5
原创 [RN]js文件直接调用.json文件当对象
file tree./data.jsontest.js使用import data from "./data".....render(){data.xxxx}感触JS开发真你娘的爽
2018-11-13 09:46:50
775
原创 [RN]笔记
图片添加点击:<TouchableOpacity><Image source={}/></TouchableOpacity>
2018-11-13 07:37:26
158
原创 [RN]component 模板
import React, { Component } from "react"import { View, Text } from "react-native"import PropTypes from "prop-types"class ${NAME} extends Component { constructor(props) { super(props) thi...
2018-11-12 16:52:17
255
转载 [git]新建库,以及和本地的文件夹关联
命令行指令Git 全局设置git config --global user.name "xxx "git config --global user.email " xxx@email"创建新版本库git clone https://code.aliyun.com/xxx/yyy.gitcd testtouch README.mdgit add README.mdgit comm...
2018-11-09 23:05:35
324
原创 [bash]在ps1上显示当前git branch的name
#!/bin/bash## DESCRIPTION:## Set the bash prompt according to:# * the active virtualenv# * the branch/status of the current git repository# * the return value of the previous command...
2018-11-05 14:49:03
1124
原创 [RN]为什么要带上 abiFilters "armeabi-v7a", "x86"
做rn的时候都会加上这个:android { compileSdkVersion 28 defaultConfig { ndk { abiFilters "armeabi-v7a", "x86" //this 货 } } }原因是啥呢?因为rn jni里已经写了:...
2018-10-31 18:27:58
8033
2
原创 [RN]react-navigation V2 tips
隐藏titlebarclass LoginScreen extends Component{ static navigationOptions={ header: null }}
2018-10-30 11:59:47
134
原创 webstorm + prettier 去掉自动保存时候自动添加分号 ;
webstorm上装了prettier结果每次保存都出来个;,非常烦人,查资料后如下取消:其他的设置,可以参考这里:https://prettier.io/docs/en/options.html
2018-10-29 15:49:42
5535
转载 [转]android 判断国家是否是国内用户(不用经纬度)
/** * 判断国家是否是国内用户 * *方法一 * * @return */public static boolean isCN(Context context) { TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); String...
2018-10-11 21:16:30
3136
原创 ubuntu安装
# apt install python-pip #python 2# apt install python3-pip #python 3
2018-10-03 15:27:26
153
原创 [RN]一个模版
[RN]一个模版/** * Created by ${USER} on ${DATE} */ import React, {Component} from 'react';import { StyleSheet, Text, View, Image,} from 'react-native';export default class ${NAME...
2018-09-19 15:37:09
225
原创 [nmap]常用
1扫描带名字[tomlucky @ ~]# sudo nmap -sP 10.0.0.1/24Starting Nmap 7.50 ( https://nmap.org ) at 2018-09-13 23:37 CSTNmap scan report for 10.0.0.1Host is up (0.0023s latency).MAC Address: E4:F4:C6:1...
2018-09-14 10:35:11
201
原创 [树莓派]删除桌面,只保留命令行模式
https://raspberrypi.stackexchange.com/questions/4745/how-to-uninstall-x-server-and-desktop-manager-when-running-as-headless-serversudo apt-get remove --auto-remove --purge 'libx11-.*'sudo apt-get...
2018-09-12 23:22:21
3781
原创 [linux]删除gnome
sudo apt-get purge gnome-shellsudo apt-get purge gnome-themes*sudo apt-get remove gnome-panelsudo apt-get autoclean
2018-09-12 23:13:37
2542
原创 [linux]console下启用wifi
$sudo vim /etc/wpasupplicant/wpa_supplicant.conf//文件内容ctrl_interface=/var/run/wpa_supplicantap_scan=1network={ ssid=&quot;[your SSID name]&quot; psk=&quot;[your WiFi password]&quot; p
2018-09-01 14:02:09
1199
原创 [RN]使用React Native Navigation v2
官网https://wix.github.io/react-native-navigation/v2/#/docs/Installing坑:1.需要改application,这个和之前把rn加入已经有的android project是不一样的。并且加完之后,需要删除之中的旧的代码 2.注意这个reactNative51要和Android studio中Module的build V...
2018-08-28 17:03:07
493
原创 [RN]no viewmanager defined for class RNSVGline
解决: 擦, 擦, 擦, 真TM不省心,需要按照如下操作:https://github.com/react-native-community/react-native-svg
2018-08-09 12:32:56
831
原创 [RN]常用清理
This might be related to https://github.com/facebook/react-native/issues/4968To resolve try the following:Clear watchman watches: watchman watch-del-all.Delete the node_modules folder: rm -rf no...
2018-08-09 10:40:34
671
原创 [RN]unable to load script from assets ‘index.android bundle’ ,make sure your bundle is packaged corr
unable to load script from assets ‘index.android bundle’ ,make sure your bundle is packaged correctly or youu’re runing a packager serverresolve#mkdir android/app/src/main/assets//cd to top lev...
2018-08-08 16:00:37
277
原创 [RN]xxxx/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit
xxxx/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit Could not load: libgnustl_shared.so Could not load: libglog.so Could not load: libglog_init.so Could not load: libreactna...
2018-08-08 15:41:04
1212
原创 [RN]android 中TabNavigator放到底部
const BottomTabs = TabNavigator( { Combined: { screen: Combined, path: 'combined', }, Trend: { screen: Trend, path: 'trend',...
2018-08-08 11:15:56
321
原创 [pip]locale.Error: unsupported locale setting
root@iZj6c3ru5234oqhlkiphcnZ:~/back# pip install virtualenvTraceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/dist-pa...
2018-08-03 18:26:36
301
转载 [转][Android]每个fragment常常需要用到不同的OptionsMenu
有时候在项目中的Home page中需要加载不同的fragment。每一个fragment完成不同的功能。这时候每个fragment常常需要用到不同的OptionsMenu。可以在fragment中重载onCreateOptionsMenu 和 onOptionsItemSelected函数去完成功能。@Override public void onCreateOption...
2018-07-27 00:19:22
434
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人