Today I Learned

3 posts by seankirby

Open a Mingle ticket via Alfred

Open Alfred Preferences -> Features -> Web Search -> Add Custom Search

Usage: Open Alfred search, type mingle 9800

Fancy code highlighting in TIL markdown

If you want to have syntax highlighting in your code blocks, put the language you want highlighting for after the opening backticks. This:

```ruby
some = Code.new
```

Gives:

some = Code.new

Also somewhat works for other languages!

UUID Generation in Ruby Standard Lib

No need for fancy gems in order to generate RFC4122 Version 4 compliant UUID strings.

>> require 'securerandom'
=> true
>> SecureRandom.uuid
=> "af04813c-6d80-4277-b4e7-7193f7413876"