Skip to content

Instantly share code, notes, and snippets.

View jonatas's full-sized avatar
🏠
Working from home

Jônatas Davi Paganini jonatas

🏠
Working from home
View GitHub Profile
set i 0
mkdir captures
while true
set i (math "$i+1")
screencapture -T 60 -x captures/$i.png
end
function migstatus(){
collections = ["lead_timeline_events_xaa", "lead_timeline_events_xag", "lead_timeline_events_xam", "lead_timeline_events_xas", "lead_timeline_events_xay",
"lead_timeline_events_xab", "lead_timeline_events_xah", "lead_timeline_events_xan", "lead_timeline_events_xat", "lead_timeline_events_xaz",
"lead_timeline_events_xac", "lead_timeline_events_xai", "lead_timeline_events_xao", "lead_timeline_events_xau", "lead_timeline_events_xba",
"lead_timeline_events_xad", "lead_timeline_events_xaj", "lead_timeline_events_xap", "lead_timeline_events_xav",
"lead_timeline_events_xae", "lead_timeline_events_xak", "lead_timeline_events_xaq", "lead_timeline_events_xaw",
"lead_timeline_events_xaf", "lead_timeline_events_xal", "lead_timeline_events_xar", "lead_timeline_events_xax" ]
collectionSize = 50000000
verb = Hash.new { |hash, key| hash[key] = 0 }
Dir["*.md"].each do |filename|
File.readlines(filename).each do |line|
if line =~ /extremamente (\w*) /i
verb[$1] += 1
end
end
end
#verb.reject! { |verb,counter| counter < 3 }
p verb.sort_by{|k,v|v}
dictionary = Hash.new { |hash, key| hash[key] = 0 }
Dir["*.md"].each do |filename|
File.readlines(filename).each do |line|
line.split(" ").each do |word|
dictionary[word] += 1 if word.length > 3
end
end
end
dictionary.reject! { |_,counter| counter < 10 }
p dictionary.sort_by{|k,v|v}
require 'thread'
require 'zip'
require 'tempfile'
class Xunda < Queue
def initialize
super
@thread = Thread.new do
while true
if line = pop
No 10º CapyCast gravamos na TheDevConf e foi sobre Linguagens Funcionais.
Conversamos com o criador da linguagem Quack: https://github.com/quack/quack
00:00 Linguagens funcionais com @haskellcamargo e @derekstavis
01:00 O que é programação funcional?
05:00 é valido resolver problemas convencionais com programação funcional?
06:40 o que realmente muda em uma linguagem funcional para linguagens imperativas?
16:35 testes automatizados em linguagens funcionais?

Keybase proof

I hereby claim:

  • I am jonatas on github.
  • I am jonatasdp (https://keybase.io/jonatasdp) on keybase.
  • I have a public key ASA0IjuX2QS_MIRbcNmEuvwK5lshViHwMnV3aVTucFxiiAo

To claim this, I am signing this object:

big_branch=branch-name
function Pick(){
git show $big_branch:$1 > $1
git add $1
}
function M(){
echo 'You should modify it... To something like:'
git show $big_branch:$1 | ccat
function fish_user_key_bindings
bind ! bind_bang
bind '$' bind_dollar
end
function bind_bang
switch (commandline -t)[-1]
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !