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
digraph g { | |
rankdir = BT | |
node [shape = ellipse, style = filled, fillcolor = white, fontsize = 10]; | |
edge [arrowhead = open, fontsize = 8]; | |
// Hierarquia | |
"Programador" -> "Analista de Sistemas"; | |
"Programador" -> "Coordenador de Projetos"; | |
"Desenvolvedor" -> "Analista de Sistemas"; | |
"Desenvolvedor" -> "Coordenador de Projetos"; |
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
# General | |
# set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g prefix C-a | |
set -s escape-time 0 | |
set -g set-titles on | |
set -g mode-keys vi | |
#set -g set-titles-string ' #(__git_ps1) ' | |
set -g status-interval 2 |
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
# References: | |
# Original Paper: http://ocw.metu.edu.tr/file.php/40/Schedule/reading8.pdf | |
# Original Algorithm: http://www.tik.ee.ethz.ch/sop/bimax/SupplementaryMaterial/supplement.pdf | |
# Explained for Humans: http://www.kemaleren.com/the-bimax-algorithm.html | |
typealias VVector{T} Vector{Vector{T}} | |
function bimax(m::Matrix{Int}) | |
z = Vector{Int}[] | |
rows = 1:size(m, 1) |
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
# Base Arch with base-devel and yaourt | |
FROM base/devel | |
MAINTAINER Ronie Uliana, ronie.uliana@vagas.com.br | |
# Installing Neo4J using Yaourt | |
RUN yaourt -Sy --noconfirm neo4j | |
RUN /usr/bin/sed -i.back 's/^#\(org\.neo4j\.server\.webserver\.address.*\)/\1/' /etc/neo4j/neo4j-server.properties | |
ENTRYPOINT ["/usr/bin/neo4j", "console"] |
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
private | |
# Truque sujo para compilar um método com | |
# tail call optimization ligado :) | |
RubyVM::InstructionSequence.new(<<-RUBY, nil, nil, nil, tailcall_optimization: true, trace_instruction: false).eval | |
def separar_comuns(restantes, atual, resultado) | |
return resultado if restantes.empty? | |
primeiro, *resto = restantes | |
*_, ultimo= atual |
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 a file compiling it | |
# with tail call optimization. | |
def load_with_tco(file) | |
def find(f) | |
filename = f + '.rb' | |
$LOAD_PATH.lazy.map do |path| | |
File.join(path, filename) | |
end.find do |path| | |
File.exist?(path) | |
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
guard :rspec, cmd: 'bundle exec rspec', all_on_start: true, keep: true, all_after_pass: true, run_all: { cmd: 'bundle exec rspec -f progress' } do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
watch('lib/kremer.rb') { "spec" } | |
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
# ZSH only | |
print -rl **/*(.Om) > frames.txt | |
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect:vqscale=3 -vf scale=1920:1080 -mf type=jpeg:fps=24 mf://@frames.txt -o time-lapse.avi |
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
# telnet localhost smtp | |
# ncat localhost 25 | |
Trying 127.0.0.1... | |
Connected to localhost.localdomain (127.0.0.1). | |
Escape character is '^]'. | |
220 fbreveal.com ESMTP Sendmail 8.13.8/8.13.8; Tue, 22 Oct 2013 05:05:59 -0400 | |
>HELO yahoo.com | |
250 tecadmin.net Hello tecadmin.net [127.0.0.1], pleased to meet you | |
>mail from: sender@tecadmin.net |
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
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Type:text/plain;Charset=utf-8\r\nContent-Length: $(wc -c <some.file)\r\n\r\n"; cat some.file; } | nc -l -p 8080 |