Skip to content

Instantly share code, notes, and snippets.

@sketchytech
sketchytech / gist:a4e615c8c895c6500cf4
Last active June 27, 2021 11:59
Capture Still Images from Video and add to a View: Swift 2
// MARK: THANKS TO: http://stackoverflow.com/questions/4294996/get-uiimage-from-the-calayer-attached-to-avplayer-extract-frame-from-video-play
func finshedCapture(im:CGImage?, view:UIView, error:NSError?) {
if let img = im {
print("OK")
addImageViewWithImage(img, toView: view)
}
else {
print("Fail")
}
}
@louisremi
louisremi / LICENSE.txt
Created June 1, 2012 11:50 — forked from 140bytes/LICENSE.txt
matches, check if an element matches a CSS selector | IE8 compatible
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Louis-Remi <http://louisremi.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt