Skip to content

Instantly share code, notes, and snippets.

View lbj96347's full-sized avatar

lbjhk lbj96347

View GitHub Profile
@victusfate
victusfate / parse.swift
Last active August 29, 2015 14:14
parse ACV after effects color files, playground
import Foundation
// read a file, OSx type playground, relative path first then
// let url: NSURL! = NSBundle.mainBundle().URLForResource("adjusted", withExtension: "AAE")
func int16WithBytes(bytesFull: [UInt8], offset: Int) -> UInt16 {
let bytes = Array(bytesFull[offset..<offset+2])
let u16raw = UnsafePointer<UInt16>(bytes).memory
let u16 = CFSwapInt16BigToHost(u16raw)
// println("u16: \(u16)")
@porjo
porjo / timelapse.md
Last active May 25, 2023 16:14
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

Simple glob:

ffmpeg -r 24 -i '*.JPG' -s hd1080 -vcodec libx264 timelapse.mp4

Start from DSC_0079.JPG

ffmpeg -r 24 -f image2 -start_number 79 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse2.mp4
@jordiboehme
jordiboehme / FontRegistry.m
Created July 26, 2012 10:04
UIFont from a CSS definition
//
// FontRegistry.h
// Tabris
//
// Created by Jordi Böhme López on 25.07.12.
// Copyright (c) 2012 EclipseSource.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
@lbj96347
lbj96347 / MobileWebAppPageSetup.html
Created November 27, 2011 02:58
Mobile Web App page setup
<!DOCTYPE html>
<html>
<head>
<!-- This is a template for Web App Setup -->
<!-- Author : @CashLee李秉骏 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Deal with the proxy cache and some browser cache here is the setting of the meta -->
<meta http-equiv="cache-control" content="no-cache">
@pithyless
pithyless / gist:1208841
Created September 10, 2011 21:49
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...