Skip to content

Instantly share code, notes, and snippets.

@nyteshade
nyteshade / UIImage+WebP.h
Last active November 6, 2018 06:18
This is a friendly class I use in my iOS applications linked with the Google WebP framework. It adds the ability to create any UIImage from WebP encoded imagery. It also attempts to automatically look for an @2x version for retina resolutions. In order to build the libWebP library for iOS, perform a "git clone http://git.chromium.org/webm/libweb…
//
// UIImage+WebP.m
//
// Created by Brielle Harrison <[email protected]>
// Much inspiration for code comes from Carson McDonald
// his website is http://www.ioncannon.net
//
// Portions copyright by Carson McDonald fall under this license
//
// Copyright (c) 2011 Carson McDonald
@evandrix
evandrix / README.md
Created September 11, 2012 00:06
Headless web browsers

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"