This file contains hidden or 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
| // requires prototype | |
| var Greetings = Class.create({ | |
| initialize: function(who){ | |
| window.alert(['Hello ', who, '!'].join('')); | |
| } | |
| }); | |
| new Greetings('Tumblr'); |
This file contains hidden or 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 valueobject; | |
| import java.io.Serializable; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import exception.InvalidCPFException; | |
| public final class CPF implements Serializable { |
This file contains hidden or 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
| //10Gb | |
| dd if=/dev/random of=out.put bs=1024 count=10000000 |
This file contains hidden or 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
| #!/bin/bash | |
| PASTEL='{ | |
| "Ansi 0 Color" = { | |
| "Blue Component" = 0.3097887; | |
| "Green Component" = 0.3097887; | |
| "Red Component" = 0.3097887; | |
| }; | |
| "Ansi 1 Color" = { | |
| "Blue Component" = 0.3764706; |
This file contains hidden or 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
| #undo last commit | |
| git reset HEAD^ | |
| #show files in a given commit | |
| git show --pretty="format:" --name-only rev_number | |
| #remove untracked files and directories | |
| git clean -f -d | |
| #track remote branch |
This file contains hidden or 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
| PS1='\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]`git branch 2> /dev/null | grep \* | head -1 | sed "s/\* //g" | awk "{ print \"(\" \\\$1 \")\" }"`\[\033[29m\]$\[\033[00m\] ' |
This file contains hidden or 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
| import br.com.caelum.restfulie.Response; | |
| import br.com.caelum.restfulie.Restfulie; | |
| public class RestfulieClient { | |
| public static void main(String[] args) { | |
| String url = "https://esitef-homologacao.softwareexpress.com.br/e-sitef/iniciarTransacao.se"; | |
| Response response = Restfulie.at(url).get(); | |
| System.out.println(response.getContent()); |
This file contains hidden or 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
| Exception in thread "main" br.com.caelum.restfulie.RestfulieException: Unable to execute https://esitef-homologacao.softwareexpress.com.br/e-sitef/iniciarTransacao.se | |
| at br.com.caelum.restfulie.http.apache.ApacheDispatcher.execute(ApacheDispatcher.java:138) | |
| at br.com.caelum.restfulie.http.apache.ApacheDispatcher.access(ApacheDispatcher.java:104) | |
| at br.com.caelum.restfulie.http.apache.ApacheDispatcher.process(ApacheDispatcher.java:52) | |
| at br.com.caelum.restfulie.request.RequestStack.process(RequestStack.java:38) | |
| at br.com.caelum.restfulie.request.RequestChain.next(RequestChain.java:20) | |
| at br.com.caelum.restfulie.request.RequestStack.process(RequestStack.java:29) | |
| at br.com.caelum.restfulie.http.DefaultHttpRequest.access(DefaultHttpRequest.java:103) | |
| at br.com.caelum.restfulie.http.DefaultHttpRequest.retrieve(DefaultHttpRequest.java:61) | |
| at br.com.caelum.restfulie.http.DefaultHttpRequest.get(DefaultHttpRequest.java:57) |
This file contains hidden or 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
| import java.io.IOException; | |
| import java.security.cert.CertificateException; | |
| import java.security.cert.X509Certificate; | |
| import javax.net.ssl.SSLContext; | |
| import javax.net.ssl.TrustManager; | |
| import javax.net.ssl.X509TrustManager; | |
| import org.apache.http.HttpEntity; | |
| import org.apache.http.HttpResponse; |
This file contains hidden or 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
| 3|Valor invalido:null| | |
OlderNewer