Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| javascript:(function() { | |
| var bookmarklet = { | |
| init: function() { | |
| this.parse(); | |
| }, | |
| parse: function() { | |
| page = ""; | |
| /* you must be viewing songs ie. http://www.rdio.com/people/nloko/collection/songs/ | |
| when exporting a collection and this will only export the songs loaded in view, |
| // Add to 'Default (OSX).sublime-keymap' | |
| // Reverse selected lines. | |
| [ | |
| { "keys": ["super+shift+r"], "command": "permute_lines", "args": {"operation": "reverse"} } | |
| ] |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| /* | |
| This code takes a 2D transformation matrix described as a one-dimensional array | |
| (in column order, top to bottom and left to right) and decomposes it using the dojo | |
| matrix library. This input matrix should produce a 45-deg X skew: | |
| 1 1 0 | |
| 0 1 0 | |
| 0 0 1 | |
| The output of decompose() looks like this: |
| /* Following canvas-based Perlin generation code originates from | |
| * iron_wallaby's code at: http://www.ozoneasylum.com/30982 | |
| */ | |
| function randomNoise(canvas, x, y, width, height, alpha) { | |
| x = x || 0; | |
| y = y || 0; | |
| width = width || canvas.width; | |
| height = height || canvas.height; | |
| alpha = alpha || 255; | |
| var g = canvas.getContext("2d"), |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
| // FFmpeg settings for vimeo.com | |
| // ============================= | |
| // Trying to find the best settings for encoding videos as described here: http://vimeo.com/help/compression | |
| // | |
| // Input file: MTS | |
| // Video: H264, 1920x1080, 50fps | |
| // Audio: A52 Audio (aka AC3), Stereo, 48kHz, 256kbps | |
| ffmpeg -i input.mts -vcodec libx264 -acodec aac -strict experimental -vpre hq -s hd720 -b 5000k -ab 320k -r 25 -g 25 -threads 0 output.mp4 |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| # | |
| # Replaces Backbone.History with support for HTML5 history API if browser supports it. | |
| # To use, setup your controllers as usual and try it with a browser that supports the HTML5 history API. | |
| # For browsers that don't support the HTML5 API, this will fall back to using the default Backbone hash routing. | |
| # | |
| # I have only tested this on my project in Firefox, Safari and Chrome so let me know. | |
| # | |
| pushSupport = window.history? and window.history.pushState? | |
| if pushSupport and Backbone? and Backbone.History? | |
| rootUrl = document.location.protocol+'//'+(document.location.host or document.location.hostname) |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |