- upload fonts here http://fontello.com/
- get SVGs from here https://icomoon.io/app/#/select/image using the generated svg/fonts
- use something liek https://codepen.io/luiscarvalho/pen/hJFrx for styling and transitions
credits:
credits:
| # _ _ _ | |
| # | | (_)| | | |
| # _ __ ___ | | ____ __ ______ _ | |_ | |
| # | '_ ` _ \ | |/ /\ \ / /|______|| || __| | |
| # | | | | | || < \ V / | || |_ | |
| # |_| |_| |_||_|\_\ \_/ |_| \__| | |
| # | |
| # Simple script to convert your old video files to H.264 mantaining their quality | |
| # | |
| # Usage: |
| # The classics | |
| class Foo | |
| def bar; end | |
| def self.baz; end | |
| end | |
| Foo.instance_method(:bar).source_location | |
| Foo.method(:baz).source_location | |
| # A tad more |
| -- Disable Time Machine Local Backups | |
| sudo tmutil disablelocal | |
| -- Disable Automatic Spell Checker | |
| defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false | |
| -- Disable animations when opening and closing windows. | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
| -- Disable animations when opening a Quick Look window. | |
| defaults write -g QLPanelAnimationDuration -float 0 | |
| -- Accelerated playback when adjusting the window size (Cocoa applications). | |
| defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 |
| run_with_tco = ARGV.include?('-TCO') | |
| # Force the ruby interpreter to use TCO | |
| RubyVM::InstructionSequence.compile_option = { | |
| tailcall_optimization: true, | |
| trace_instruction: false | |
| } if run_with_tco | |
| puts 'To infinity and beyond!' if run_with_tco |
| # Definition of banning something | |
| # to_ban = 'To prohibit (an action) or forbid the use of (something)' | |
| EVERYTHING = -> (existing_bans) { def existing_bans.include?(obj); true; end } | |
| @bans = [] | |
| ban_something = -> (how_to_ban) { how_to_ban.call(@bans) } | |
| # Some simple tests |
This can be fixed via:
But it breaks an important OS X function.
| require 'benchmark' | |
| include Benchmark | |
| n = 500000 | |
| Benchmark.benchmark(CAPTION, 20, FORMAT, ">total:", ">avg:") do |x| | |
| x.report('via usual syntactics') { n.times { class MyError < StandardError ; end && Object.send(:remove_const, 'MyError') } } | |
| x.report('via Class.new') { n.times { MyError = Class.new(StandardError) && Object.send(:remove_const, 'MyError') } } | |
| end | |
| # Results |