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> |
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
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
Array.prototype.compare = function(array) { | |
if (!array) { | |
return false; | |
} | |
if (this.length !== array.length) { | |
return false; | |
} | |
for (var i = 0, l = this.length; i < l; i++) { | |
if (this[i] instanceof Array && array[i] instanceof Array) { | |
if (!this[i].compare(array[i])) { |
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 | |
if [ $# -eq 0 ] | |
then | |
echo "Please supply paths to search under" | |
exit 1 | |
fi | |
IMG_PATH=$1 | |
HTML_AND_CSS_PATH=$2 |
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
{{ $markdown := . | markdownify }} | |
{{ if not ( strings.Contains $markdown "<p>" ) }} | |
<p>{{ $markdown }}</p> | |
{{ else }} | |
{{ $markdown }} | |
{{ end }} |
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
/* | |
This function will take the scripts specified and load them in order | |
asynchronously. It will not continue until the specified type from | |
each file is loaded. | |
*/ | |
(function () { | |
function loadScripts () { | |
/* | |
This loadScript function takes the name of the object as it |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>postMessage Example</title> | |
<script type="text/javascript"> | |
var popup; | |
function openWindow(){ |
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
{{ with .Lastmod }} | |
<meta http-equiv="Last-Modified" content="{{ .Format "2006-01-02T15:04:05-0700" }}" /> | |
{{ end }} | |
{{ $packageJson := getJSON "./package.json" }} | |
{{ with $packageJson.version }} | |
<meta name="version" content="{{ . }}"> | |
{{ end }} |
OlderNewer