This file contains hidden or 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
defmodule KV do | |
def processaMensagem(itm) do | |
if (elem(itm, 0) == :file_event) do | |
System.cmd("rsync", ["-r", "path/", "[email protected]:/home/lapada/destino"]) | |
end | |
end | |
def receiver() do | |
receive do | |
msg -> processaMensagem(msg) |
This file contains hidden or 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
#include <Adafruit_Fingerprint.h> | |
const int led_pin_accept = 8; | |
const int led_pin_deny = 9; | |
volatile int finger_status = -1; | |
SoftwareSerial mySerial(2, 3); // TX/RX on fingerprint sensor | |
Adafruit_Fingerprint finger = Adafruit_Fingerprint( & mySerial); | |
void setup() { | |
Serial.begin(9600); | |
pinMode(led_pin_accept, OUTPUT); |
This file contains hidden or 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
import UIKit | |
class InfoViewController: UIViewController { | |
@IBOutlet weak var label1: UILabel! | |
@IBOutlet weak var label2: UILabel! | |
var dado: SeuObjeto = SeuObjeto() | |
This file contains hidden or 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
class EstanteViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { | |
@IBOutlet weak var tableView: UITableView! | |
var listaDeObjetos: [Objeto] = [] | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
This file contains hidden or 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
import UIKit | |
class DestinoViewController: UIViewController { | |
// Aqui vão seus Outlets.. | |
var dado: SeuObjeto = SeuObjeto() // Atributo que armazenará os dados recebidos | |
// Se o compilador reclamar por falta de init(), instancie um objeto padrão vazio, | |
// como feito acima. |