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
/** | |
* Displays text to the user. | |
*/ | |
public class TextView extends View { | |
// String value | |
private String mText; | |
// Text color of the text | |
private int mTextColor; |
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
package model; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
public class JavaApplication1 { | |
public static void main(String[] args) { | |
ArrayList a1 = new ArrayList(); | |
a1.add("valter"); | |
a1.add("juarez"); | |
a1.add("japonesa"); | |
a1.add("henrique"); |
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
if(validar){ | |
RequestDispatcher disp = req.getRequestDispatcher("logado.jsp"); | |
disp.forward(req, res); | |
}else{ | |
RequestDispatcher disp = req.getRequestDispatcher("erro-login.jsp"); | |
disp.forward(req, res); | |
} |
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
package quintaAula; | |
import java.util.ArrayList; | |
public class Fila extends Thread { | |
ArrayList<String> nomes = new ArrayList<>(); | |
public synchronized Object remove(int i) { | |
while (nomes.isEmpty()) { |
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
git config --global user.name "Nome" | |
git config --global user.email "e-mail" | |
git init //Inicializar diretorio git | |
git status //Mostra o status do diretorio (commit, etc). | |
git add // Adicionar arquivos para trakiar, Passar aquivos para stage area | |
git commit // Tirar da stage area e mandar para diretorio, salvar mudanças. | |
git commit -m "Mensagem do commit" // Para controle dos commites | |
git commit -a -m "Coments"//Pular a etapa do staging area para o git directory. | |
git diff //Descobrir exatamente o que foi alterado nos arquivos - Working Directory | |
git diff --staged//saber o que foi alterado e esta na area staged. - Staging Area |
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
.wrapper-lists{ | |
display: flex; | |
> .navigation{ | |
margin-top: 15px; | |
} | |
.company-actions-menu{ | |
display: none; | |
} |
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
on_submit_form: () -> | |
plannings = $('#plannings-selected').serialize() | |
company = $('#company-section-form').serialize() | |
form = $('#contract-form') | |
$('#add-item').off().click (e) -> | |
#form.trigger('submit') | |
e.preventDefault() | |
e.stopImmediatePropagation() | |
dataForm = new FormData($('form')[0]) | |
dataForm.append('plannings', plannings) |
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
e = [60, 60, 60, 60, 60, 45, 45, 45, 45, 45, 45, 30, 30, 30, 30, 30, 30, 30, 5] | |
def bt(data, limit, m=[]): | |
data_sum = sum(m) | |
print(m) | |
# solution found | |
if data_sum == limit: | |
return (data, m) | |
# we passed the limit, so no need to check further | |
elif data_sum > limit: |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int idades[0]; | |
void definir_tamanho_vetor(int tamanho){ | |
idades[tamanho]; | |
} |
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 ::Injections | |
register_injections ConstructionSiteStatus: %I[repo manager_creator] | |
module Injections | |
module ConstructionSiteStatus | |
def provide_construction_site_status_repo | |
@construction_site_status_repo ||= Repositories::Obras:: \ | |
ConstructionSiteStatus::DelegateRepository.new |
OlderNewer