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:
| open -a Google\ Chrome --args --disable-web-security |
| system_profiler SPDisplaysDataType | grep Resolution |
| [ | |
| { "keys": ["ctrl+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}} | |
| ] | |
| // Thanks to "facelessuser" | |
| // https://www.sublimetext.com/forum/viewtopic.php?f=3&t=6663 |
| function test(n){ | |
| return n*(n-1)/2; | |
| } | |
| function compareAll(ary, compareCb, doneCb){ | |
| var a = 0 | |
| , b = 0 | |
| , size = ary.length |
| {% with False as something %} | |
| {% if something %} | |
| True | |
| {% else %} | |
| False | |
| {% endif %} | |
| {% endwith %} |
| var app = angular.module('app.directives.myModule', []); | |
| app.directive('myModule', [function () { return { | |
| restrict: 'E', | |
| scope: { | |
| thingsA: '=', | |
| thingsB: '=', | |
| }, | |
| controller: ['$scope', function ($scope) { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Monokai</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>name</key> |
Where to put .epub files on OSX if you want to read them in Kindle CLoud reader:
~/Library/Containers/com.amazon.Kindle/Data/Library/Application Support/Kindle/My Kindle Content
You can find the dir in Kindle Cloud Reader > Preferences > General > "Content Folder"
| app.controller('MyController', ['$rootScope', function($rootScope) { | |
| $rootScope.$on('$stateChangeStart', function (event, toState) { | |
| usSpinnerService.spin('spinner-1'); | |
| }); | |
| $rootScope.$on('$stateChangeSuccess', function (event, toState) { | |
| usSpinnerService.stop('spinner-1'); | |
| }); |