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
ghci> :m +Data.Ratio | |
ghci> 11 % 29 | |
11%29 | |
it :: Ratio Integer |
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
require 'csv' | |
File.open("output.html", 'w') do |output_file| | |
CSV.readlines("source.csv").each do |text, link| | |
output_file.puts "<a href='#{link}'>#{text}</a> \n" | |
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
class CaesarCipher | |
@@alphabet = ("A".."Z").to_a | |
def initialize(input, shift_num) | |
@input, @shift_num = input.upcase, shift_num | |
end | |
def encrypt | |
shift_things_around |
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
" kill trailing spaces when exiting file | |
autocmd BufWritePre * :%s/\s\+$//e |
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
" http://vimgolf.com/challenges/4d1a34ccfa85f32065000004 | |
noremap E VyjVp | |
" http://vimgolf.com/challenges/4d1a4d82a860b7447200008d | |
noremap <silent> <leader>v mv:%s/\s\+$//e<CR>:%s/\t/ /e<CR>`v | |
" this one was already in my .vimrc |
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
2013-05-14T00:43:35.198206+00:00 heroku[slugc]: Slug compilation finished | |
2013-05-14T00:43:37.805227+00:00 heroku[web.1]: Starting process with command `MIX_ENV=prod mix server -p 42678` | |
2013-05-14T00:43:39.100815+00:00 app[web.1]: Mix requires the compile path "ebin" to be inside a directory with the same name as the application name :dynamo_heroku_demo, got "/app/ebin" | |
2013-05-14T00:43:39.145745+00:00 app[web.1]: =INFO REPORT==== 14-May-2013::00:43:39 === | |
2013-05-14T00:43:39.145745+00:00 app[web.1]: application: dynamo_heroku_demo | |
2013-05-14T00:43:39.145745+00:00 app[web.1]: exited: {bad_return, | |
2013-05-14T00:43:39.145745+00:00 app[web.1]: | |
2013-05-14T00:43:39.145745+00:00 app[web.1]: {'EXIT', | |
2013-05-14T00:43:39.145745+00:00 app[web.1]: {{'Elixir-DynamoHerokuDemo',start,[normal,[]]}, | |
2013-05-14T00:43:39.146064+00:00 app[web.1]: "/tmp/build_3ijls8nj7opfc/ex/lib/elixir/lib/enum.ex"}, |
I hereby claim:
- I am mattonrails on github.
- I am mattreduce (https://keybase.io/mattreduce) on keybase.
- I have a public key whose fingerprint is EA6E 4086 3F06 489E 802A 8967 8A9A 9BA2 D868 8169
To claim this, I am signing this object:
I hereby claim:
- I am mattreduce on github.
- I am mattreduce (https://keybase.io/mattreduce) on keybase.
- I have a public key whose fingerprint is EA6E 4086 3F06 489E 802A 8967 8A9A 9BA2 D868 8169
To claim this, I am signing this object:
OlderNewer