Skip to content

Instantly share code, notes, and snippets.

View CanTheAlmighty's full-sized avatar

Jose Canepa CanTheAlmighty

  • Turingo SpA
  • Chile
View GitHub Profile
@CanTheAlmighty
CanTheAlmighty / .gitconfig
Last active August 29, 2015 14:21
Pretty log format
[alias]
llg = log --pretty=format:'%Cgreen%h%Creset %ad (%an) %s' --graph --date=relative
@CanTheAlmighty
CanTheAlmighty / DictionaryTwoWay.swift
Last active August 25, 2021 07:58
Two-Way Dictionary in Swift
struct DictionaryTwoWay<S:Hashable,T:Hashable> : DictionaryLiteralConvertible
{
// Literal convertible
typealias Key = S
typealias Value = T
// Real storage
private var st : [S : T] = [:]
private var ts : [T : S] = [:]

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@CanTheAlmighty
CanTheAlmighty / rubyism.swift
Last active August 29, 2015 14:16
Swift Rubyisms
extension Int
{
func times(f :(Int) -> ())
{
for i in 0..<self
{
f(i)
}
}
}
@CanTheAlmighty
CanTheAlmighty / keybase.md
Created August 12, 2014 22:45
Keybase nonsense

Keybase proof

I hereby claim:

  • I am CanTheAlmighty on github.
  • I am can (https://keybase.io/can) on keybase.
  • I have a public key whose fingerprint is 2F82 5F81 6083 839E A2C3 577F 18F1 8091 E10F 6777

To claim this, I am signing this object: