Skip to content

Instantly share code, notes, and snippets.

Avatar

Leonardo Rodrigues da Silva leo07vasp

View GitHub Profile
View descontoProporcional.js
var exames = [
{type:"AUR", price:10},
{type:"FOL", price:10},
{type:"GLI", price:10},
{type:"COL", price:30.92},
{type:"USA", price:23.32},
{type:"POT", price:48.13}
];
var copy = exames.map( function( elem ) {
View desconto.js
const items = [
{
nome:'exame 1',
valor: 10
},
{
nome:'exame 2',
valor: 12
},
View This is a list of my favourite bookmarklets I use on daily basis.
//Resizer - Responsive Design Bookmarklet
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://codebomber.com/jquery/resizer/resizer.min.js';})();
//ish - yet another viewport resizer
bradfrostweb.com/demo/ish/?url=http%3A%2F%2Fbradfrostweb.com%2Fdemo%2Fish%2F
//Responsinator - Responsive Design Bookmarklet
javascript:location.href='http://www.responsinator.com/?url='+window.location.href
//RWD - Responsive Design Bookmarklet
View drupal-views-share-global-text-field
<ul>
<li class="share-text">Share this>/li>
<li class="share-gl"><a href="https://plus.google.com/share?url=YOUR_URL_HERE"><span></span></a></li>
<li class="share-tw"><a href="http://twitter.com/share?text=[title]"><span></span></a></li>
<li class="share-fb"><a href="http://www.facebook.com/sharer.php?u=/node/[nid]&p=[title]"><span></span></a></li>
<li class="share-pinterest"><a href="http://pinterest.com/pin/create/button/?url=/node/[nid]&description=[title]"><span></span></a></li>
</ul>