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:
// connect() is a function that injects Redux-related props into your component. | |
// You can inject data and callbacks that change that data by dispatching actions. | |
function connect(mapStateToProps, mapDispatchToProps) { | |
// It lets us inject component as the last step so people can use it as a decorator. | |
// Generally you don't need to worry about it. | |
return function (WrappedComponent) { | |
// It returns a component | |
return class extends React.Component { | |
render() { | |
return ( |
! Enabled modi | |
rofi.modi: window,run,ssh | |
! Window opacity | |
rofi.opacity: 100 | |
! Window width | |
rofi.width: 50 | |
! Number of lines | |
rofi.lines: 15 | |
! Number of columns | |
rofi.columns: 1 |
Complete stuff: | |
https://xmonader.github.io/letsbuildacompiler-pretty/ | |
Lexers + DFAs: | |
https://gist.github.com/pervognsen/218ea17743e1442e59bb60d29b1aa725 | |
Parsing: | |
https://eli.thegreenplace.net/2012/08/02/parsing-expressions-by-precedence-climbing | |
Backend: |
Ultra-compact sprite rendering code with example frame animation logic. This release contains tech bits from the upcoming SuperNeo™ 2D game engine and includes anchor/pivot point, rotation, color filtering, alpha blending and built-in antialiased point sampling. As usual: complete, runnable single-function app. ~150 LOC. No modern C++, OOP or (other) obscuring cruft.
Sprites are rendered back-to-front (AKA "painter's algorithm") in the order they are submitted, as one draw call. The provided setup employs a single texture atlas containing all the sprite graphics.
The renderer is "im