A good API is not just easy to use but also hard to misuse.
- Version your API
- Path: /v1/users
- Subdomain: api.v1.example.com/users
| Para CPF | |
| /^\d{3}\.\d{3}\.\d{3}\-\d{2}$/ | |
| Para CNPJ | |
| /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/ | |
| Para ambos ao mesmo tempo |
| function isBase64(str) { | |
| try { | |
| return btoa(atob(str)) == str; | |
| } catch (err) { | |
| return false; | |
| } | |
| } |
| #---------------------------------------# | |
| # Project Ignores # | |
| #---------------------------------------# | |
| # Maven | |
| target/ | |
| pom.xml.tag | |
| pom.xml.releaseBackup | |
| pom.xml.versionsBackup | |
| pom.xml.next |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="background.js"></script> | |
| </head> | |
| <body> | |
| <textarea id="sandbox"></textarea> | |
| </body> |
| echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
| #!/bin/bash | |
| version=1.0.1 | |
| versionDate="2014-02-14" | |
| function showHelp() { | |
| echo "watchfile - monitor file(s)/command and perform action when changed | |
| Possible ways of usage | |
| ---------------------------------------- |
| <% | |
| '// Usage: | |
| '// | |
| '// dim l : set l = new logger | |
| '// l.log("Hello")("World") | |
| '// l.includeTimetamp = false | |
| '// l("Lorem ipsum") | |
| '// l.setLogFile("c:\temp\log_2.log").log("This is a new log!") | |
| '// set l = nothing |
git clone git://github.com/hilverd/vagrant-ubuntu-oracle-xe