括号内的话都不用读
喂剧本不是这么写的啊,重来重来!
#!/bin/bash | |
if [ "$1" == "" ]; then | |
ffmpeg -f avfoundation -list_devices true -i "" | |
echo Choose input device! | |
exit 1 | |
fi | |
FILENAME=$(date '+%Y-%m-%d-%H-%M') | |
ffmpeg -f avfoundation -i 1 -r 1 -vcodec libx264 $FILENAME-slow.mkv |
# -*- coding: utf-8 -*- | |
from functools import partial | |
SKIP32_FTABLE = [ | |
0xa3, 0xd7, 0x09, 0x83, 0xf8, 0x48, 0xf6, 0xf4, | |
0xb3, 0x21, 0x15, 0x78, 0x99, 0xb1, 0xaf, 0xf9, | |
0xe7, 0x2d, 0x4d, 0x8a, 0xce, 0x4c, 0xca, 0x2e, | |
0x52, 0x95, 0xd9, 0x1e, 0x4e, 0x38, 0x44, 0x28, |
import re | |
import struct | |
import zlib | |
import os | |
def ensure_dir(f): | |
d = os.path.dirname(f) | |
if not os.path.exists(d): | |
os.makedirs(d) |
<?php | |
$str = ''; | |
foreach($_POST as $k => $v) { | |
if(is_array($v)) { | |
$v = implode(', ', $v); | |
} | |
$str .= "$k: $v\n"; | |
} |
tbl1 = 'dBtEGkliy0aLvj61Ph2TIzQSfnY9ArmUFK4Rgs8uWxM7ObwoN3JcCq5VHDeXZp' | |
tbl2 = 'N04A83D7qTIoBMsyQdVLHPGWwiv59YhFX61RbCxftcmSkJlaEeuOg2pZUKzrnj' | |
def decode(s): | |
s = ''.join([tbl2[tbl1.index(i)] for i in s]) | |
s1 = s[0::2] | |
s2 = s[1::2] | |
ss1 = [s1[i:i+2] for i in range(0, len(s1), 2)] | |
ss2 = [s2[i:i+2] for i in range(0, len(s2), 2)] | |
rst = '' |