Skip to content

Instantly share code, notes, and snippets.

@edueo
edueo / contributing_to_a_github_project.md
Created October 8, 2015 12:00
The beginner's guide to contributing to a GitHub project
  1. Fork
  2. Clone your fork
  3. Add upstream : git remote add upstream <github_repo>
  4. git checkout master
  5. git pull upstream master && git push origin master
  6. git checkout -b feature-branch
  7. git push -u feature-branch
  8. Create de PR
@edueo
edueo / programming_interview_questions.md
Created November 27, 2015 20:17
Programming Interview questions

#General Find the most frequent integer in an array Find pairs in an integer array whose sum is equal to 10 (bonus: do it in linear time) Given 2 integer arrays, determine of the 2nd array is a rotated version of the 1st array. Ex. Original Array A={1,2,3,5,6,7,8} Rotated Array B={5,6,7,8,1,2,3} Write fibbonaci iteratively and recursively (bonus: use dynamic programming) Find the only element in an array that only occurs once. Find the common elements of 2 int arrays Implement binary search of a sorted array of integers Implement binary search in a rotated array (ex. {5,6,7,8,1,2,3}) Use dynamic programming to find the first X prime numbers

@edueo
edueo / config
Created February 24, 2016 19:32
SSH Config
Host dvi-cajamar
HostName smartris-dvi-cajamar.ddns.net
Port 4242
User proradis
Host croma-santos
HostName smartris-croma-santos.ddns.net
Port 4242
User proradis
@edueo
edueo / dcm4chee.sh
Last active December 16, 2017 16:18
Install dcm4chee
#!/bin/bash
mkdir -p /vagrant/dcm
cd /vagrant/dcm/
wget -O dcm4chee-2.17.3.zip 'http://downloads.sourceforge.net/project/dcm4che/dcm4chee/2.17.3/dcm4chee-2.17.3-mysql.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdcm4che%2Ffiles%2Fdcm4 chee%2F2.17.3%2F&ts=1378999040&use_mirror=ufpr' &
wget -O dcm4che-2.0.23.zip 'http://downloads.sourceforge.net/project/dcm4che/dcm4che2/2.0.23/dcm4che-2.0.23-bin.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdcm4che%2Ffiles%2Fdcm4che2 %2F2.0.23%2F&ts=1378999971&use_mirror=ufpr' &
wget -O jboss-4.2.3.zip 'http://downloads.sourceforge.net/project/jboss/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA-jdk6.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjboss%2Ffiles%2FJBoss%2FJ Boss-4.2.3.GA%2F&ts=1378999423&use_mirror=ufpr' &
# wget -O dcmtk-3.6.0.zip 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.zip' &
wget -O oviyam-1.war 'https://dl.dropboxusercontent.com/u/28191834/proradis-config/programas/oviyam-1.war' &
wget -O oviyam2.war 'https://dl.dropboxu
@edueo
edueo / calculator.c
Last active April 27, 2016 15:55
Calculator in C
# include <stdio.h>
int main()
{
char o;
float num1,num2;
printf("Digite a operação desejada + ou - ou * ou dividir : ");
scanf("%c",&o);
printf("Digite os dois operandos: ");
scanf("%f%f",&num1,&num2);
switch(o) {
@edueo
edueo / 1.json
Created September 1, 2016 16:50
Multiplus - Roleta - JSON
{
"dsNumeroMultiplus" : "35101530816"
}
@edueo
edueo / services-json-failed-to-open-stream.md
Created April 12, 2017 11:53
services.json Failed to open stream

Erro: services.json Failed to open stream

Solução : Verificar se existe as pastas abaixo em app/storage

cache logs meta sessions views

Se algumas delas não existir, criar. Feito isso, executar

@edueo
edueo / curl.md
Last active April 13, 2017 13:25
curl

curl

Postar um formulário

curl --form name=Peter --form age=23 --form upload=@~/myfile.pdf http://httpbin.org/post

Fazer download de um arquivo

curl -O http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
@edueo
edueo / skills-radar.md
Last active April 24, 2017 12:06
Skills Radar

Skills Radar

  • Gremlin
  • Gearman (Message Queue)
  • Solr
@edueo
edueo / servicos-produtos-radar.md
Created April 13, 2017 13:47
Serviços e Produtos - Radar