I recently had to write a quick script to update a text file full of pdf annotations. I wrote the script in Ruby then I wondered how much of a difference in speed I would get if I turned it into Crystal. See below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'Chiel92/vim-autoformat' | |
| Plug 'Shougo/denite.nvim' | |
| Plug 'Shougo/deoplete.nvim' | |
| Plug 'Shougo/unite.vim' | |
| Plug 'Shougo/vimfiler.vim' | |
| Plug 'Taverius/vim-colorscheme-manager' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": false, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Season | Episode | Title | Reason | |
|---|---|---|---|---|
| 1 | 5 | The Enchiridion | A good intro to the series, plus introduces the important Enchiridion | |
| 1 | 2 | Trouble in Lumpy Space* | Introduces LSP (episode out of order) | |
| 1 | 3 | Prisoners of Love | Introduces Ice King and his obsession (episode out of order) | |
| 1 | 7 | Ricardio the Heart Guy | Finn and PB development, Sets a returning plot | |
| 1 | 8 | Business Time* | First mention of Ooo being post-apocalyptic | |
| 1 | 9 | My Two Favorite People | Intros the Jake and Lady Rainicorn plotline | |
| 1 | 10 | Memories of Boom Boom Mountain | A look at how Finn was adopted into Jake's Family | |
| 1 | 12 | Evicted! | Intros Marceline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # There was a day where I have too many color schemes in iTerm2 and I want to remove them all. | |
| # iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one. | |
| # iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format | |
| # What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files. | |
| $ cd /tmp/ | |
| $ cp ~/Library/Preferences/com.googlecode.iterm2.plist . | |
| $ plutil -convert xml1 com.googlecode.iterm2.plist | |
| $ vi com.googlecode.iterm2.plist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date | person | message | |
|---|---|---|---|
| 2020-10-21 22:04:50 | Matt | Oh hey! Are you Blade? That half-vampire vampire-hunter? | |
| 2020-10-21 22:04:52 | Blade | ___ | |
| 2020-10-21 22:05:45 | Matt | Um. Okay yeah. You're busy all hackin' and slashin' all these vamparoonies about. | |
| 2020-10-21 22:04:47 | Blade | ___ | |
| 2020-10-21 22:05:55 | Matt | Uh if you ever want to keep your black leather clothes clean and still hack n slash - you can join my D&D game. | |
| 2020-10-21 22:06:08 | Blade | ___ | |
| 2020-10-21 22:06:15 | Blade | I will play this Dee and Dee. On one condition - I must play a bard. | |
| 2020-10-21 22:06:25 | Blade | Text the number carved into the chest of this dying vampire before it turns to dust. |
OlderNewer