Skip to content

Instantly share code, notes, and snippets.

Alexandre Aquiles alexandreaquiles

Block or report user

Report or block alexandreaquiles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fmasanori
fmasanori / Super Salários.txt
Last active Jul 29, 2017
Saída de Super Salários em 4 de julho de 2017
View Super Salários.txt
Nome: Arrigo Leonardo Angelini
Instituto: IP
Função: Professor Catedratico
Salário: 68241.39
Nome: Sergio de Iudicibus
Instituto: FEA
Função: Professor Titular
Salário: 53714.0
View super salários USP.py
"""
Autores:
Tiago Henrique da Cruz Pereira
João Felipe de Moraes Borges
"""
import threading
import time
import os
from urllib.request import urlopen
View .brackets.json
{
"language": {
"javascript": {
"linting.prefer": "JSHint",
"linting.usePreferredOnly": true
}
}
}
@rponte
rponte / Sorteio.java
Last active Apr 4, 2016
Encontrar menor valor único em uma lista (solução mais simples)
View Sorteio.java
public class Sorteio {
/**
* Usar a solução mais simples com a API do Java apenas (nada de Guava, Commons-Collections etc)
*/
public Integer sorteia(List<Integer> valores) {
SortedSet<Integer> unicos = new TreeSet<>(); // mantem ordem natural
Set<Integer> duplicados = new HashSet<>();
@rcaneppele
rcaneppele / TarefasController.java
Created May 29, 2014
FJ21-Tarefas - Bootstrap
View TarefasController.java
package br.com.caelum.tarefas.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
@rcaneppele
rcaneppele / JdbcTarefaDao.java
Created May 29, 2014
FJ21-Tarefas - Multiplos Datasources
View JdbcTarefaDao.java
@Repository
public class JdbcTarefaDao
private Connection connection;
@Autowired
@Qualifier("postgreDataSource")
private DataSource dataSource;
@PostConstruct
@benoitx
benoitx / Date Calc using JDK8 LocalDate.java
Created May 26, 2014
Date Calc using JDK8 LocalDate
View Date Calc using JDK8 LocalDate.java
// create or get the Holidays
final Set<LocalDate> holidays = new HashSet<LocalDate>();
holidays.add(LocalDate.parse("2006-08-28"));
//... keep adding all holidays for 2006
// create the HolidayCalendar ASSUMING that the set covers 2006!
final HolidayCalendar<LocalDate> calendar = new DefaultHolidayCalendar<LocalDate>
(holidays, LocalDate.parse("2006-01-01"), LocalDate.parse("2006-12-31"));
// register the holidays, any calculator with name "UK"
@miguelmota
miguelmota / start_stream.sh
Last active Oct 14, 2017
MJPG-Streamer start and stop bash scripts. For 19 Jan 2014 Update - blog post: http://www.miguelmota.com/blog/raspberry-pi-camera-board-video-streaming/
View start_stream.sh
#!/bin/bash
if pgrep mjpg_streamer > /dev/null
then
echo "mjpg_streamer already running"
else
LD_LIBRARY_PATH=/opt/mjpg-streamer/ /opt/mjpg-streamer/mjpg_streamer -i "input_raspicam.so -fps 15 -q 50 -x 640 -y 480" -o "output_http.so -p 9000 -w /opt/mjpg-streamer/www" > /dev/null 2>&1&
echo "mjpg_streamer started"
fi
@ldaniel
ldaniel / _aviso.md
Created May 16, 2012
Crítica à comunidade .NET
View _aviso.md

Aviso importante

"Às vezes, um charuto é apenas um charuto."

Não almejamos mais seguidores no Twitter, leitores para o blog ou amigos no Facebook. Somos, assumidamente (e com discreto orgulho), pessoas pouco sociáveis. Sim, esta crítica é, nesse caso, apenas uma crítica.

@leandronet e @mantov

@klauswuestefeld
klauswuestefeld / gist:1595701
Created Jan 11, 2012
O Ciclo Vicioso Do Software Retranqueiro
We couldn’t find that file to show.
You can’t perform that action at this time.