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
var arquivo = require ('fs'); | |
var path = './novo.txt'; | |
arquivo.readFile('./clubes.txt',function(err,data){ | |
if(err) throw err; | |
console.log(data.toString()); | |
}); | |
arquivo.exists(path,function(resultado){ | |
if(!resultado){ |
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
#include <cstdio> | |
#include <cstdlib> | |
char* combina(char *a, char *b); | |
int main(){ | |
int n; | |
scanf("%i ",&n);//esse espaço logo depois do %i limpa o buffer |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package jpaint.view; | |
import java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.Font; |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package bntcolorchoise; | |
import java.awt.Color; | |
import java.awt.GridBagLayout; | |
import java.awt.event.ActionEvent; |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package Model; | |
import java.io.Serializable; | |
import javax.persistence.Basic; | |
import javax.persistence.Column; |
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
#include <iostream> | |
#include <sstream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <deque> | |
#include <queue> | |
#include <stack> | |
#include <set> | |
#include <map> |
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
/* URI Online Judge | 1195 | |
** | |
** Árvore Binária de Busca | |
** | |
** By Itacir Ferreira Pompeu | |
** | |
** Instituto Federal Goiano Campus Morrinhos | |
*/ | |
#include <cstdio> |
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
function validarForm(){ | |
validarNome(); | |
validarIdade(); | |
validarEmail(); | |
validarTelefone(); | |
validarLinguasFaladas(); | |
} | |
function validarNome(){ | |
var nome = document.getElementById('formBase').nome.value; | |
if(nome.length > 0 || nome != null || nome != ''){ |
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
var neo4j = require('neo4j'); | |
var db = new neo4j.GraphDatabase('http://localhost:7474'); | |
var node = db.createNode({hello: 'world'}); // instantaneous, but... | |
node.save(function (err, node) { // ...this is what actually persists. | |
if (err) { | |
console.error('Error saving new node to database:', err); | |
} else { | |
console.log('Node saved to database with id:', node.id); | |
} |
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
List<String> listString = new ArrayList<>(); | |
for(int i = 0 ; i < 10 ; i++){ | |
listString.add("amor"+i); | |
} | |
ObservableList<String> obsList = FXCollections.observableArrayList(listString); | |
for (String obsList1 : obsList) { |
OlderNewer