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
using System; | |
using System.Threading; | |
namespace FormsSandbox | |
{ | |
public class ChecadorDeLabel | |
{ | |
public EventHandler<bool> _event; | |
public ChecadorDeLabel() |
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
<connectionStrings> | |
<add name="NomeDoContexto" connectionString="data source=.\SQLJFRode;Integrated Security=SSPI;Initial Catalog=nomeDoBanco" | |
providerName="System.Data.SqlClient"/> | |
</connectionStrings> |
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
/* | |
A Hello World with JADE - JAVA Agent DEvelopment Framework | |
API: http://jade.tilab.com/ | |
DOC: http://jade.tilab.com/doc/api/index.html | |
*/ | |
package jfrode.hellojave; | |
import jade.core.AID; | |
public class Agent extends jade.core.Agent { |
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
FileReader file; | |
String line; | |
String lineSplited[]; | |
int qtd = 0; | |
// File Readding | |
file = new FileReader("C:\\Users\\user\\Desktop\\arquivo.txt"); | |
BufferedReader reader = new BufferedReader(file); | |
FileWriter fileNew = new FileWriter("C:\\Users\\user\\Desktop\\arquivo_alterado.txt"); | |
BufferedWriter writer = new BufferedWriter(fileNew); |
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
// credit /okedokee | |
private final String JDBC = "postgresql"; | |
private final String HOST = ""; | |
private final String PORT = "5432"; | |
private final String DATABASE = ""; | |
private final String USER = ""; | |
private final String PASSWORD = ""; | |
private final String DRIVER = "org.postgresql.Driver"; | |
private String url; | |
private Connection conexao; |
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
package jfrode.jsontosql.main; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
/** | |
* |
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
// Alternando de uma activity para outra | |
// Codigo principal esta na linha 3 e 6 | |
Intent intent = new Intent(MainActivity.this, RegistroActivity.class); // de onde, para onde | |
intent.putExtra("email", email.getText().toString()); // envia campo email por parametro para MainActivity | |
intentLogin.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // encerra a pilha de activities | |
startActivity(intent); // transicao | |
finish(); // encerra a atual activity (OBS: se pretende voltar a esta activity não a finalize) |