This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| - type: custom:plotly-graph | |
| defaults: | |
| entity: | |
| extend_to_present: true | |
| period: auto | |
| line: | |
| width: 0 | |
| layout: | |
| hovermode: x unified | |
| entities: |
| /** | |
| * URL like: | |
| * https://unsplash.com/?page=44 | |
| */ | |
| var | |
| base_url = 'https://unsplash.com', | |
| result = [], | |
| last_page = 1; |
| ;(function($, undefined) { | |
| 'use strict'; | |
| if (typeof window.MY_MODULE_NAME !== 'undefined') { | |
| return; | |
| } | |
| // | |
| // Module general vars | |
| // |
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| @token = '' | |
| def list_files | |
| ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
| params = { | |
| token: @token, |
| #!/bin/bash | |
| # Change the iterm2 profile programatically | |
| function iterm_profile { | |
| if [[ -z $1 ]]; then | |
| profile="Default" | |
| else | |
| profile=$1 | |
| fi |
| /** | |
| * ValidateSpanishID. Returns the type of document and checks its validity. | |
| * | |
| * Usage: | |
| * ValidateSpanishID( str ); | |
| * | |
| * > ValidateSpanishID( '12345678Z' ); | |
| * // { type: 'dni', valid: true } | |
| * | |
| * > ValidateSpanishID( 'B83375575' ); |
| $('form').validate({ | |
| errorPlacement: function(error, element) { | |
| if (element[0].tagName == "SELECT") { | |
| element.parent().addClass('error'); | |
| } | |
| return true; | |
| }, | |
| unhighlight: function(element, errorClass, validClass) { |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| #!/usr/bin/env ruby | |
| # Put this file in the root of your Rails project, | |
| # then run it to output the SQL needed to change all | |
| # your tables and columns to the same character set | |
| # and collation. | |
| # | |
| # > ruby character_set_and_collation.rb | |
| DATABASE = '' |