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
int getRandomIntBetween(int min, int max) { | |
srand(time(NULL) * getpid() << 16); | |
int randomNumber = (rand() % max) + min; | |
return randomNumber; | |
} |
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
# Makefile for using flex with bison | |
# | |
# The executable receives the name of the current folder | |
# Do not use spaces in the name of the folder | |
# | |
# The .lex and .y files used are the first ones found by ls | |
# | |
# If there is a .txt file, it will be used as the input of the executable | |
# | |
# This Makefile works on Linux and on OSX |
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
# Makefile de exemplo de uso do flex | |
# | |
# O programa fica com o nome da pasta onde estamos | |
# Não usar espaços no nome! | |
# | |
# O ficheiro flex usado é o primeiro encontrado pelo ls | |
# | |
# Se existir um ficheiro .txt este será usado como standard input | |
# ao correr o programa | |
# |
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
# Makefile for using flex with bison | |
# | |
# The executable receives the name of the current folder | |
# Do not use spaces in the name of the folder | |
# | |
# The .lex and .y files used are the first ones found by ls | |
# | |
# If there is a .txt file, it will be used as the input of the executable | |
# | |
# This Makefile works on Linux and on OSX |
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
:root { | |
--ease-in-quad: cubic-bezier(.55, .085, .68, .53); | |
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19); | |
--ease-in-quart: cubic-bezier(.895, .03, .685, .22); | |
--ease-in-quint: cubic-bezier(.755, .05, .855, .06); | |
--ease-in-expo: cubic-bezier(.95, .05, .795, .035); | |
--ease-in-circ: cubic-bezier(.6, .04, .98, .335); | |
--ease-out-quad: cubic-bezier(.25, .46, .45, .94); | |
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1); |
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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
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 java.util.ArrayList; | |
import java.util.List; | |
public class Escrutinio { | |
// variaveis de insância | |
private List<Candidato> candidatos; | |
private int numEleitores; | |
private int numVot; | |
private int data; |
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
::selection { | |
/* placeholder */ | |
} | |
* { | |
box-sizing: border-box; | |
} | |
html { | |
/** |
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
// Updating a JavaFX table when UI loads example | |
private void updateView() { | |
col1.setCellValueFactory(new PropertyValueFactory<>("id")); | |
col2.setCellValueFactory(new PropertyValueFactory<>("username")); | |
col3.setCellValueFactory(new PropertyValueFactory<>("email")); | |
col4.setCellValueFactory(new PropertyValueFactory<>("password")); | |
table.setItems(FXCollections.observableArrayList( | |
system.getUserRegistry() | |
)); | |
} |
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
⁰¹²³⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉ | |
× | |
⋅ | |
· | |
≠ | |
∀ | |
∈ ∉ |