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
s为字符串 | |
s.isalnum() 所有字符都是数字或者字母 | |
s.isalpha() 所有字符都是字母 | |
s.isdigit() 所有字符都是数字 | |
s.islower() 所有字符都是小写 |
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
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
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
linux下ll命令部分结果,以文件名有引号的特殊举例: | |
``` | |
drwxr-xr-x 2 find find 4096 2月 15 13:10 "hello wo" | |
-rw-r--r-- 1 find find 0 2月 15 13:10 "list无名 fd" | |
``` | |
匹配的正则表达式 | |
``` | |
[drwx-]{10}\s+?\d{1,2}\s+?\w+?\s+?\w+?\s+?\d+?\s+?[\d\w\u4e00-\u9fa5]+?\s+?\d+?\s+?[\d:]+?\s+?(.*) | |
``` | |
同样对于ftp中的dir命令结果也是如此 |
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
package main | |
import ( | |
"bytes" | |
"strconv" | |
) | |
func cf(a string) (s string) { | |
var e bytes.Buffer | |
r, _ := strconv.ParseInt(a[0:2], 16, 0) |
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
```python | |
def decode(encode_email): | |
k = int(encode_email[:2], 16) | |
ans = '' | |
for i in range(2, len(encode_email)-1, 2): | |
a = int(encode_email[i:i+2], 16) | |
a ^= k | |
ans += chr(a) | |
print(ans) |
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
``` | |
ipv6=$1 | |
work_path="/home/find/Downloads/" | |
rm $work_path/hosts* | |
cp /etc/hosts $work_path/._backhosts | |
if [ "$ipv6" = "4" ] | |
then | |
#wget https://coding.net/u/onekeyhosts/p/text/git/raw/master/hosts -O hosts | |
wget https://coding.net/u/scaffrey/p/hosts/git/raw/master/hosts-files/hosts -O $work_path/hosts | |
# wget https://raw.githubusercontent.com/sy618/hosts/master/FQ -O hosts |
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 <assert.h> | |
#include <cuda_runtime.h> | |
template <int BLOCK_SIZE> __global__ void | |
matrixMulCUDA(float *C, float *A, float *B, int wA, int wB) | |
{ | |
// Block index | |
int bx = blockIdx.x; | |
int by = blockIdx.y; | |
// Thread index |
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
__global__ void add_vectors( | |
const int* a, | |
const int* b, | |
int *c, | |
const int n) | |
{ | |
const int idx = blockIdx.x * blockDim.x + threadIdx.x; | |
if (idx >= n) return; |
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 -urN a/source/CMakeLists.txt b/source/CMakeLists.txt | |
--- a/source/CMakeLists.txt 2015-02-10 14:15:13.000000000 -0700 | |
+++ b/source/CMakeLists.txt 2015-02-12 06:25:01.334927114 -0700 | |
@@ -46,10 +46,18 @@ | |
set(X64 1) | |
add_definitions(-DX86_64=1) | |
endif() | |
+elseif(${SYSPROC} MATCHES "armv5.*") | |
+ message(STATUS "Detected ARMV5 system processor") | |
+ set(ARMV5 1) |
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
import pytesseract | |
import time | |
from PIL import Image | |
import os | |
import webbrowser | |
path = "/home/find/d/filerecv/xigua.png" | |
import subprocess | |
def get_screen_shot(path): | |
# 这里获取截图,目前的方法太慢了 |
OlderNewer