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
### Keybase proof | |
I hereby claim: | |
* I am ricardomurad on github. | |
* I am ricardomurad (https://keybase.io/ricardomurad) on keybase. | |
* I have a public key ASCpYkcT1xJgJnkbkoEgRRguLIzUMJacLhOCPxKuR0b3Vgo | |
To claim this, I am signing this object: |
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
/** | |
postgres=# select * from employees; | |
id | name | parent_id | |
----+----------------------+----------- | |
1 | CEO | | |
2 | CTO | 1 | |
3 | CIO | 1 | |
4 | CFO | 1 | |
5 | Engineering Manager | 2 | |
6 | Finance Director | 4 |
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
find . -name "*.jsp" -type f -exec file --mime {} \; | grep "charset=utf-8" |
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 br.com.appproblmatica; | |
import java.io.File; | |
import org.apache.log4j.Level; | |
import android.os.Environment; | |
import de.mindpipe.android.logging.log4j.LogConfigurator; | |
/** |
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 com.foo.bar; | |
import java.util.Arrays; | |
public class BuscaBinariaRecursiva { | |
public static void main(String[] args) { | |
int[] array = { 1, 8, 34, 67, 9, 6, 78, 12, 56, 41, 90 }; | |
Arrays.sort(array); | |
System.out.println(Arrays.toString(array)); |
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 com.foo.bar; | |
import java.util.Arrays; | |
public class BuscaBinaria { | |
public static void main(String[] args) { | |
int[] array = {1,8,34,67,9,6,78,12,56,41,90}; | |
Arrays.sort(array); | |
System.out.println(Arrays.toString(array)); | |
} |
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 com.foo.bar; | |
import java.util.Arrays; | |
public class BubbleSort { | |
public static void main(String a[]) { | |
int array[] = { 12, 9, 4, 99, 120, 1, 3, 10 }; | |
System.out.println(Arrays.toString(array)); | |
sort(array); | |
System.out.println(Arrays.toString(array)); |
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 com.foo.bar; | |
public class Palindromo { | |
public static void main(String[] args) { | |
String teste1 = "assimaalunaanulaamissa"; | |
String teste2 = "qqcoisa"; | |
System.out.println(isPalindromo(teste1)); | |
System.out.println(isPalindromo(teste2)); | |
} |
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 foo.bar; | |
import java.util.Properties; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.cfg.Configuration; | |
import org.hibernate.service.ServiceRegistry; | |
import org.hibernate.service.ServiceRegistryBuilder; | |
/** |