原创 mac安裝quicklook命令

mac安裝quicklook命令 brew cask install qlimagesize QLMarkdown quicklook-json qlstephen qlvideo qlcolorcode

原创 python read file

python read file #python def main(): # read one time with open('files/11.data.txt', 'r') as f: prin

原创 java post 請求

java post 請求 #java String authorization = ""; HttpComponentsClientHttpRequestFactory httpRequestFactory = new HttpC

原创 python regex

python regex #python 1.check valid import re def main(): username = input('please input username:') qq = i

原创 python 時間處理

python 時間處理 #python import datetime datetime_object = datetime.datetime.strptime('2019-06-10T09:14:38.146Z', '%Y-%

原创 mysql聯表查詢

mysql聯表查詢 需求: select的時候當前表table_1只有uid, 想拿到name, name在table_2 SELECT t1.uid, t2.`name` FROM `table_1` a, table_

原创 sublimt sftp密鑰對配置

sublimt sftp密鑰對配置 { "type": "sftp", "save_before_upload": true, "upload_on_save": true, "sync_down

原创 python圖形界面開發

python圖形界面開發 #python import tkinter import tkinter.messagebox def main(): flag = True def change_label_te

原创 mintui messagebox使用

MessageBox.alert(message, title).then(action => { });

原创 ios添加覆蓋在狀態欄的view

UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, mScreenW, 20)]; view.backgroundColor = [UIColor redColo

原创 直接下載ipa包

itms-services://?action=download-manifest&url=xxx.plist

原创 ios數組排序

ios數組排序 NSArray *sortedKeys = [keys sortedArrayUsingSelector:@selector(compare:)];

原创 ios sha256加密

+ (NSString *)sha256HashFor:(NSString *)input{ const char* str = [input UTF8String]; unsigned char result[CC_

原创 ios urlencode

+ (NSString *)URLEncodedString:(NSString *)string { NSString *encodedString = (NSString *) CFBridgingRelease(

原创 xposed開發9 - 判斷xposed是否安裝, 模塊是否激活

xposed開發9 - 判斷xposed是否安裝, 模塊是否激活 1.判斷xposed的package是否存在 public class AppUtils { public static final String PACKAG