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:
| function debugAccess(obj, prop, debugGet){ | |
| var origValue = obj[prop]; | |
| Object.defineProperty(obj, prop, { | |
| get: function () { | |
| if ( debugGet ) | |
| debugger; | |
| return origValue; | |
| }, |
| function debugAccess(obj, prop, debugGet){ | |
| var origValue = obj[prop]; | |
| Object.defineProperty(obj, prop, { | |
| get: function () { | |
| if ( debugGet ) | |
| debugger; | |
| return origValue; | |
| }, |
| from socket import * | |
| from xdrlib import Packer, Unpacker | |
| # Set the socket parameters | |
| host = "localhost" | |
| port = 1234 | |
| buf = 1024 | |
| addr = (host,port) | |
| slope_str2int = {'zero':0, |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentelem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeightelem.getClientRects(), elem.getBoundingClientRect()| from __future__ import print_function | |
| """ | |
| Utilities for 256 color support in terminals. | |
| Adapted from: | |
| http://stackoverflow.com/questions/1403353/256-color-terminal-library-for-ruby | |
| The color palette is indexed as follows: | |
| 0-15: System colors |
| --[[ | |
| ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
| Example: | |
| ProFi = require 'ProFi' | |
| ProFi:start() | |
| some_function() | |
| another_function() | |
| coroutine.resume( some_coroutine ) | |
| ProFi:stop() |
== General ==
== Events ==
| #!/usr/bin/env bash | |
| # Method 1 | |
| bind -x '"\C-x4": history_and_alias_expand_line'; | |
| bind '"\C-x3": history-and-alias-expand-line'; | |
| bind -x '"\C-x2": READLINE_LINE_OLD="$READLINE_LINE"'; | |
| bind '"\C-x1": "\C-x2\C-x3\C-x4\C-x5"'; | |
| function history_and_alias_expand_line { |
| # source: https://www.slideshare.net/CouponFollow/top-100-most-common-coupon-code-phrases | |
| fall | |
| black | |
| MEMORIAL | |
| TWEET20 | |
| FREESHIP | |
| earlybird | |
| MONDAY | |
| holidays |