Skip to content

Instantly share code, notes, and snippets.

View Bingnan's full-sized avatar
:octocat:
Working from home

段兵楠 Bingnan

:octocat:
Working from home
  • 美团
  • 北京
View GitHub Profile
How to compile CyanogenMod for Buzz (HTC Wildfire).
This how-to was written for Ubuntu 10.04 & Ubuntu 10.10 & Ubuntu 11.04, Buzz, CyanogenMod 7.x (Gingerbread), on 11 June 2011.
Contents
[hide]
1 Prepare the Build Environment
1.1 Install the ADB
@Bingnan
Bingnan / gist:42fa9e601e36096bccd4
Last active August 29, 2015 14:01
visual phone menu config
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Droppable - Shopping Cart Demo</title>
<script src="../../jquery-1.9.1.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.mouse.js"></script>
<script src="../../ui/jquery.ui.draggable.js"></script>
@Bingnan
Bingnan / gist:1c4e8d2ebcf508e4e8f7
Created May 8, 2014 10:47
visual phone menu config 2
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Droppable - Shopping Cart Demo</title>
<script src="../../jquery-1.9.1.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.mouse.js"></script>
<script src="../../ui/jquery.ui.draggable.js"></script>
@Bingnan
Bingnan / gist:833007071f7f5b3fb7e5
Last active August 29, 2015 14:08
获取unix系统时间,格式化输出的方法1
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time(&rawtime);
timeinfo = localtime (&rawtime);
strftime(buffer,80,"%F_%H-%M-%S",timeinfo);
LOG_INFO(g_logger, "AntTranscoder: strftime " + string(buffer));
//------------------------------------------------------------------------
下面是最开始用3.0转,开始稳定,后来时不时卡顿
ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
configuration: --enable-gpl --enable-postproc --enable-pthreads --enable-nonfree --enable-shared --enable-libx264 --enable-libfdk-aac --enable-libfreetype --enable-network --enable-protocol=tcp --enable-demuxer=rtsp --enable-muxer=rtsp --enable-ffplay --enable-librtmp --prefix=/usr/local/ffmpeg/3.0.1 --extra-ldflags=-L/usr/local/lib --extra-cflags=-I/usr/local/include --extra-libs=-lrtmp
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
@Bingnan
Bingnan / flv.md
Created June 16, 2016 01:50 — forked from Akagi201/flv.md

adobe 官方标准

  • F4V/FLV file format (其中, Annex E 为 FLV File Format)
  • 有一些 box 是 Adobe 自定义的, 其他的 box 是标准 ISO/IEC 14496-12:2008 (MPEG-4 Part 12) 定义的.
  • F4V 几乎跟 MP4 一样(通常修改文件名为 .mp4 也能播放).
  • FLV 是 Adobe Flash Video 的旧的标准.
  • FLV, F4V, MP4都可以包含 H.264 编码的视频.

FLV文件格式解析

  • 存储多字节数字用大端序.
@Bingnan
Bingnan / gist:b0c102c676e46b647a05caa4e15592ae
Created April 11, 2017 07:57
go语言中指针或值作为接收者的区别
10.6.3 指针或值作为接收者
鉴于性能的原因,recv 最常见的是一个指向 receiver_type 的指针(因为我们不想要一个实例的拷贝,如果按值调用的话就会是这样),特别是在 receiver 类型是结构体时,就更是如此了。
如果想要方法改变接收者的数据,就在接收者的指针类型上定义该方法。否则,就在普通的值类型上定义方法。
下面的例子 pointer_value.go 作了说明:change()接受一个指向 B 的指针,并改变它内部的成员;write() 接受通过拷贝接受 B 的值并只输出B的内容。注意 Go 为我们做了探测工作,我们自己并没有指出是是否在指针上调用方法,Go 替我们做了这些事情。b1 是值而 b2 是指针,方法都支持运行了。
示例 10.13 pointer_value.go:
@Bingnan
Bingnan / trial.key
Created August 21, 2017 08:33 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t