Skip to content

Instantly share code, notes, and snippets.

@kellec
kellec / capture-range.scpt
Created June 22, 2013 09:01
Applescript to capture the current frame in VLC (using the snapshot function in the app) and advance to the next frame. It'll keep going until it hits the specified end time, which you have to set in the script itself.
global endTime
set starttime to 2510
set endTime to 2528
on captureAndStep()
tell application "VLC" to activate
tell application "System Events"
keystroke "s" using {command down, option down}
keystroke "e"
@kellec
kellec / successiveVLCsnapshot.scpt
Created June 15, 2013 06:31
Applescript to capture the current frame in VLC (using the snapshot function in the app) and advance to the next frame. It then asks you if you want to capture this frame too and so in into recursive goodness. Images are saved as per your settings in VLC.
on captureAndStep()
tell application "VLC" to activate
tell application "System Events"
keystroke "s" using {command down, option down}
keystroke "e"
end tell
tell application "VLC" to display dialog "Capture next frame?" buttons {"Yes", "No, I'm done"} default button 1 cancel button 2 with title "Continue?"
if result = {button returned:"Yes"} then
captureAndStep()
end if
@kellec
kellec / linear-gradient.less
Last active November 21, 2017 20:53
Linear gradient mixin for LESS CSS
// linear-gradient
//============================================================
// @see http://dev.w3.org/csswg/css3-images/#linear-gradients
//
// @param dir : top, left, 90deg
// @param start-color : #000, rgba(255,255,255,0.5)
// @param end-color : #000, rgba(255,255,255,0.5)
//
// NOTE: The direction for the IE gradient is automagically
// worked out for you based either on the direction or the
@kellec
kellec / examples-and-output.css
Created April 12, 2012 02:10
a LESS mixin for versatile gradients (with IE support)
/* Basic two stop gradient */
.example-gradient {
.linear-gradient(150deg, #eee, #aaa);
}
/* Outputs */
.example-gradient {
background: -webkit-linear-gradient(150deg, #EEE 0%, #AAA 100%);
background: -moz-linear-gradient(150deg, #EEE 0%, #AAA 100%);
background: -ms-linear-gradient(150deg, #EEE 0%, #AAA 100%);
background: -o-linear-gradient(150deg, #EEE 0%, #AAA 100%);