Skip to content

Instantly share code, notes, and snippets.

public class MeuDoubleton {
private static MeuDoubleton instancia = new MeuDoubleton();
// aqui está a chave do sucesso!!!
private static MeuDoubleton instancia2 = new MeuDoubleton();
private MeuDoubleton(){
// algum código aqui
}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
<div id="cadastroConsultas">
<form>
<label for="pacientes">Escolha o paciente</label>
<select onclick="desenharOpcoesDropDown()" name="pacienteNome" id="dropDownPacientes">
</select>
<br><br>
<input type="submit" value="Submit">
</form>