URL: http://www.v2ex.com/api/site/stats.json
获取社区统计信息。
// From http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ | |
// Start with a temperature, in Kelvin, somewhere between 1000 and 40000. (Other values may work, | |
// but I can't make any promises about the quality of the algorithm's estimates above 40000 K.) | |
function colorTemperatureToRGB(kelvin){ | |
var temp = kelvin / 100; |
URL: http://www.v2ex.com/api/site/stats.json
获取社区统计信息。
func encode<T>(var value: T) -> NSData { | |
return withUnsafePointer(&value) { p in | |
NSData(bytes: p, length: sizeofValue(value)) | |
} | |
} | |
func decode<T>(data: NSData) -> T { | |
let pointer = UnsafeMutablePointer<T>.alloc(sizeof(T.Type)) | |
data.getBytes(pointer) | |
BaseSystem.dmg
,拷贝 Packages
覆盖原 Packages
拷贝 BaseSystem.chunklist
和 BaseSystem.dmg
至 USB 根目录https://blog.daliansky.net/Hackintosh-long-term-maintenance-model-checklist.html
# This will enforce that the pods with the names in the list below will be duplicated. | |
targets_to_duplicate = %w(AFNetworking) | |
pre_install do |installer| | |
pod_targets = installer.pod_targets.flat_map do |pod_target| | |
targets_to_duplicate.include?(pod_target.name) ? pod_target.scoped : pod_target | |
end | |
installer.aggregate_targets.each do |aggregate_target| | |
aggregate_target.pod_targets = pod_targets.select do |pod_target| | |
pod_target.target_definitions.include?(aggregate_target.target_definition) | |
end |
I have tried a lot of solutions for IP-camera streams.
Vitamio.https://github.com/yixia/Vitamio-iOS
Result: random crashes and not working cameras
https://github.com/kolyvan/kxmovie
Result: compile time error. I haven't successfully integrated it to my project.
GStreamer. https://github.com/sdroege/gst-player
/** | |
HyperMD breaks the wall between Preview and Writing for Markdown. | |
@see https://github.com/laobubu/HyperMD/ | |
此脚本可以帮助你在 V2EX 发帖界面体验 HyperMD 的强大功能。 | |
使用方法: | |
1. 打开发帖界面 https://www.v2ex.com/new | |
2. 在地址栏输入以下地址并回车 [^1] |