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 gui.jtable; | |
import javax.swing.event.TableModelListener; | |
import javax.swing.table.TableModel; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class CharactersTableModel implements TableModel { | |
private String[] columnNames = {"", "Character", "Actor", "In"}; |
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 javax.swing.*; | |
import javax.swing.event.DocumentEvent; | |
import javax.swing.event.DocumentListener; | |
import java.awt.*; | |
import java.awt.event.ItemEvent; | |
import java.awt.event.ItemListener; | |
public class JRadioButtonExample extends JFrame { | |
private JRadioButton botao1RadioButton; | |
private JRadioButton botao2RadioButton; |
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
Acompanhamento dos dados de Hanseníase - BRASIL | |
Frequência por Ano Diagnóstico e Mes Diagnóstico | |
Período:2001-2019 | |
"Ano Diagnóstico";"Jan";"Fev";"Mar";"Abr";"Mai";"Jun";"Jul";"Ago";"Set";"Out";"Nov";"Dez";"Total" | |
"<1975";28;8;12;14;14;17;17;14;12;23;21;21;201 | |
"1975";-;1;-;-;-;-;-;-;-;-;-;1;2 | |
"1976";-;-;-;2;1;2;-;-;2;-;1;-;8 | |
"1977";2;-;-;1;-;-;-;-;-;1;1;-;5 | |
"1978";-;-;-;-;-;2;1;2;-;1;-;-;6 | |
"1979";2;1;1;-;-;1;3;3;2;3;-;-;16 |
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
function f1(next) { | |
setTimeout(function() { | |
console.log("1"); | |
next.dequeue(); | |
}, 500); | |
} | |
function f2(next) { | |
setTimeout(function() { | |
console.log("2"); |
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
version: '2.2' | |
services: | |
es01: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2 | |
container_name: es01 | |
environment: | |
- node.name=es01 | |
- cluster.name=es-docker-cluster | |
- discovery.seed_hosts=es02 |
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
<?php | |
use parallel\{Runtime, Channel}; | |
main($argv); | |
function main(array $argv) | |
{ | |
if (count($argv) !== 3) { | |
echo "Type: hello-parallel.php <number-of-tasks> <maximum-time-of-sleep (in seconds)>" . PHP_EOL; |
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
<?php | |
$init = microtime(true); | |
$filePath = $argv[1]; | |
$fileHandler = fopen($filePath, 'r'); | |
$lineNumber = 0; | |
while (($lineString = fgets($fileHandler)) !== false) { | |
$parameters = [$lineString, $lineNumber]; | |
$pdo = new PDO("mysql:dbname=hello_streams", "root"); | |
$statement = $pdo->prepare("INSERT INTO files_line(line_string, line_number) VALUES (?,?)"); |
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
function chain(c, v, f) { | |
if (arguments.length < 3) { | |
f = v; v = c; c = null; | |
} | |
var result = f.call(null, c, v); | |
return { | |
chain: chain.bind(null, result), | |
result: result | |
} | |
} |
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
<?php | |
class ParentClass { | |
private $descendant; | |
public function setDescendant($descendant) { | |
$this->descendant = $descendant; | |
return $this; | |
} | |
public function showDescendantValue() { |
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
(function CloneTest() { | |
const factory = (function () { | |
let factory = { | |
createShallow: function() { | |
return Object.create({ | |
p1: "", | |
p2: "", | |
deepProperty: factory.createDeep(), |
NewerOlder