This file contains 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
#!/bin/bash | |
# extract the protocol | |
proto="$(echo $1 | grep :// | sed -e's,^\(.*://\).*,\1,g')" | |
# remove the protocol -- updated | |
url=$(echo $1 | sed -e s,$proto,,g) | |
# extract the user (if any) | |
user="$(echo $url | grep @ | cut -d@ -f1)" |
This file contains 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
defmodule Ops.Macro do | |
defmacro defop(op) do | |
quote do | |
def unquote(op) do | |
IO.puts "you called #{op}" | |
end | |
end | |
end | |
end |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am jeetkundoug on github. | |
* I am jeetkundoug (https://keybase.io/jeetkundoug) on keybase. | |
* I have a public key whose fingerprint is D9C7 DF81 5F8C 521F 0692 2E66 C7CC E42C 7038 5792 | |
To claim this, I am signing this object: |