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
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 |
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
/********************************************************** | |
* jQuery-less version of Chris Coyier's | |
* Value Bubbles for Range Inputs | |
* http://css-tricks.com/value-bubbles-for-range-inputs/ | |
**********************************************************/ | |
function modifyOffset() { | |
var el, newPoint, newPlace, offset, siblings, k; | |
width = this.offsetWidth; | |
newPoint = (this.value - this.getAttribute("min")) / (this.getAttribute("max") - this.getAttribute("min")); |
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
#!/bin/bash | |
# Location of the nginx config file that contains the CloudFlare IP addresses. | |
CF_NGINX_CONFIG="/etc/nginx/cloudflare" | |
# The URLs with the actual IP addresses used by CloudFlare. | |
CF_URL_IP4="https://www.cloudflare.com/ips-v4" | |
CF_URL_IP6="https://www.cloudflare.com/ips-v6" | |
# Temporary files. | |
CF_TEMP_IP4="/tmp/cloudflare-ips-v4.txt" | |
CF_TEMP_IP6="/tmp/cloudflare-ips-v6.txt" | |
# Download the files. |
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
/** | |
* transition using width or height auto | |
*/ | |
ul,li { | |
display: block; | |
margin: 0; | |
padding: 0; | |
width: 250px; | |
} | |
li { |
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
<div class="ibw"> | |
<div class="ib">inline block</div> | |
<div class="ib">inline block</div> | |
<div class="ib">inline block</div> | |
</div> |
NewerOlder