Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /* | |
| * ATTENTION: | |
| * | |
| * This layout is now maintained in the `iosched' code.google.com project: | |
| * | |
| * http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java | |
| * | |
| */ | |
| /* |
| /* | |
| * Copyright 2012 CodeSlap - Cristian Castiblanco | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| pm list packages -f |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/bin/zsh | |
| # Usage: copy-rtf [file] | |
| # | |
| # Copies Pygmentize's RTF output of a source file to the clipboard after making it 36pt Monaco. | |
| # | |
| # Copy straight into an "Auto-Shrink" text box in Keynote for efficient code highlighting in a Coding presentation. | |
| # Depends on [Pygments](http://pygments.org/) being installed in your $PATH... | |
| # try `gem install pygmentize` for a standalone Ruby installation. |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| This playbook has been removed as it is now very outdated. |
| imap <f2> <c-o>:call ToggleHebrew()<cr> | |
| map <f2> :call ToggleHebrew()<cr> | |
| func! ToggleHebrew() | |
| if &rl | |
| set norl | |
| set keymap= | |
| else | |
| set rl | |
| set keymap=hebrew |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |