Now is the time for all good men to come to the aid of their country. This is just a regular paragraph.
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
| /* | |
| * Preload de imagens | |
| * | |
| * @param {array} imgs - Array com o path das imagens | |
| * @example preload(['img/foto1.jpg', 'img/foto2.jpg']); | |
| */ | |
| function preload( imgs, fn ) { | |
| var len = imgs.length, |
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
| /* | |
| * Remove atributos html passando regex como parametro | |
| */ | |
| $.fn.removeAttrs = function( regex ) { | |
| return this.each(function() { | |
| var $this = $(this), | |
| names = []; |
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
| 'use strict'; | |
| module.exports = function(str) { | |
| return (str || '').toLowerCase() | |
| .replace(/[\u00C0-\u00C5]/gi, 'a') | |
| .replace(/[\u00E7]/gi, 'c') | |
| .replace(/[\u00C8-\u00CB]/gi, 'e') | |
| .replace(/[\u00CC-\u00CF]/gi, 'i') | |
| .replace(/[\u00D2-\u00D6]/gi, 'o') |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>comment</key> | |
| <string>http://chriskempson.com</string> | |
| <key>name</key> | |
| <string>Tomorrow Night</string> | |
| <key>settings</key> | |
| <array> |
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 | |
| # Script to install Sublime Text on Ubuntu | |
| # Apr 9 2013 - @franklinjavier | |
| echo "Downloading Sublime Text 2" | |
| wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.1\ x64.tar.bz2 | |
| echo "Unziping and moving" | |
| tar -xvf Sublime\ Text\ 2.0.1\ x64.tar.bz2 | |
| mv Sublime\ Text\ 2 sublimeText |
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
| // Short script to encode our SVG in base64 | |
| // This can be reversed using window.atob('base64') | |
| var code = document.getElementById('code'); | |
| var demo = document.getElementById('demo'); | |
| var svg = document.getElementsByTagName('svg')[0]; | |
| // Convert the SVG node to HTML. | |
| var div = document.createElement('div'); | |
| div.appendChild(svg.cloneNode(true)); |
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
| var url = "http://r4.soundowl.com/{id}.mp3"; | |
| $('.track_title').each(function(){ | |
| var $this = $(this); | |
| var id = $this.find('a').eq(1).attr('href').split('/')[2]; | |
| var iconDownload = '<span class="add" style="display:block!important; width:24px; height: 24px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADCElEQVRIS51WS2gTURSdTzJJmqR1ERFFQalCN4FAFtImiyhCxY2ICxH8bdyIUIuuijvBVRHEnQjiQkXwgxSpgmKQxA9okSwEq24EsSIEdYKT5jPjOWHeMAlvJtIHh5l5c9+59737e6oSPjbi9wFgP7AFWO+K/8TzK/AQeACsBNGo/FEqleKmaWrpdNoul8urmBoHLgIHAU0s1jTvVbFtW0zz5R4wB3wGVPDFBF9PQT6fH0kkErFKpfLbtfgGnkm/VZFIRFFVVXEcR+l0OjKDG5g8ViwWy5DVIdMF3y9vB7C8BYEzwDyt8DMYhqFomgqrHaXVoph8RKNRG4ZeyGazV6vVKo/NFkR8HgJurZVcGNHt2k673T4Mnjs0QyjYjPcPQHotlkt2+Ac8E8B3oeA6Pk6EkL/Bvylu2ZWht18CO0OO7xr+n6SCrcAXwAsRyaIy/u8aOPnnkCuF+KYL+W1UMAtcEosDLBpUoMfj8ReK4kwNcfwMFTwGpqkgZLt+BXqhUNiwtPTuLhw6GRZVCOsnVPAJ2M44R/gGhaJQ0CNPJNRIpfL2drPZpF+kg3y23V2mAhMZmtJ1vZdIARZRwR5BbllOB3F+E3MlGTtPwk1IkwoaUJBkGRjIUO4sB/wFPMtd8h+YoxM5RoAawPLiHTMSmXw9Bcsg3+GrLcKoJq |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 | |
| # Franklin Javier - Apr 10 2013 | |
| ''' | |
| Como usar | |
| # chmod +x convert-base64.py | |
| $ ./convert-base64.py . png | |
| ''' |
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
| var Infograph = window.Infograph || {}; | |
| (function( window, document, $ ) { | |
| 'use strict'; | |
| Infograph = { | |
| Utils: { |