Skip to content

Instantly share code, notes, and snippets.

View dmitryrck's full-sized avatar

Dmitry L Rocha dmitryrck

View GitHub Profile

Errata from my last talk:

  1. Crystal lang does not have metaprogramming, but they have macros: https://crystal-lang.org/docs/syntax_and_semantics/macros.html , and there is some tricks here https://github.com/crystal-lang/crystal/wiki/MetaProgramming-Help :)
  2. About arguments (or array of arguments) the official documentation talks about that: https://crystal-lang.org/docs/syntax_and_semantics/default_values_named_arguments_splats_tuples_and_overloading.html
  3. youtube-dl is not a binary for two OS, it is at the end a zip file with python code inside a python file, you can see the content with this (I'm using Linux):
wget https://yt-dl.org/downloads/latest/youtube-dl -O- | sed "1d" | gunzip | less
@dmitryrck
dmitryrck / .gitignore
Last active June 26, 2018 02:59
Size of binaries (HelloWorld)
bin*
hello-world.hi
hello-world.o
04a5f4ad4470c090bf2d698fee8f9918ceaac58c4327d4dbb52dbd5c7be858ef9791af4be80bd9173393815289b76c3409ba1ad00e58e92a54d863dc976edf9362;fnando
@dmitryrck
dmitryrck / README.md
Last active December 31, 2017 11:25
Canais que sigo/recomendo para estudar inglês
#!/usr/bin/env ruby
if ARGV.size.zero? || ["--help", "-h"].include?(ARGV[0])
puts %Q[Usage: #{__FILE__} "My Title Here"]
exit 1
end
slug = ARGV[0].downcase.gsub(/[^a-z1-9]+/, "-").chomp("-")
def format_number(number)
[global]
font = Iosevka Term 11
# Allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
@dmitryrck
dmitryrck / hackday2017.1.md
Last active June 25, 2017 16:28
hackday2017.1
@dmitryrck
dmitryrck / Insiter2017.md
Last active July 7, 2017 10:28
insiter2017