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
UIView *currentView = [[UIView alloc] initWithFrame:CGRectZero]; | |
UIView *copyView = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:currentView]]; |
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
{ | |
"name": "AVOSCloud", | |
"version": "3.1.2.7", | |
"platforms": { | |
"ios": "5.1.1" | |
}, | |
"summary": "LeanCloud iOS SDK for mobile backend.", | |
"homepage": "https://leancloud.cn", | |
"documentation_url": "https://leancloud.cn/docs/api/iOS/index.html", | |
"license": { |
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
{ | |
"name": "AVOSCloudIM", | |
"version": "3.1.2.7", | |
"platforms": { | |
"ios": "5.1.1" | |
}, | |
"summary": "LeanCloud iOS Instant Message SDK for mobile backend.", | |
"homepage": "https://leancloud.cn", | |
"documentation_url": "https://leancloud.cn/docs/api/iOS/index.html", | |
"license": { |
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
1152 * 1920 (这个结论是通过统计和计算得出的) |
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
tips: use viewControllerForView instead of viewControllerforView |
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
add the listener to disable browser scroll. | |
```document.addEventListener('touchmove', function (event) { | |
event.preventDefault(); | |
}, false); | |
``` |
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
ffmpeg -i $video_file -vn -ar 16000 -ac 1 -acodec pcm_s16le -ss 00:01:00 -t 00:00:30 $audio.wav | |
-vn 排除视频 (-an 排除音频 / -sn 排除字幕) | |
-ar 采样率 | |
-ac 声道数量 | |
-acodec 编码 ( flac / pcm_s16le(16bit 线性PCM) ) | |
-ss 开始时间点 | |
-t 时长 |
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
# coding=utf8 | |
import requests | |
class HDCourse: | |
def __init__(self, id, title, teacher_name, videos): | |
self.id = id | |
self.title = title |
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
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
mkdir ~/ffmpeg_sources | |
cd ~/ffmpeg_sources | |
curl -L -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.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
#/bin/sh | |
yum install git -y | |
yum install vim -y | |
yum install wget -y | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python get-pip.py | |
git clone https://github.com/candyan/shadowsocks-py-mu.git -b berrylab | |
pip install supervisor | |
mkdir -p /var/log/supervisor/ |
OlderNewer