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
function numeroSimple(d) { | |
p = 100; // La base que usaremos | |
var a = [ "K", "M", "B", "T" ]; // Las abreviaturas | |
for (var i=a.length-1; i>=0; i--) { | |
var l = Math.pow(10, (i+1)*3); | |
if(size <= d) { | |
d = Math.round(d*p/l)/p; | |
d += a[i]; | |
break; | |
} |
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
function revisaAncho() { | |
var str; | |
if (window.getComputedStyle && window.document.querySelector) { | |
str = window.getComputedStyle(window.document.body, ':after').getPropertyValue('content'); | |
} else { | |
str = "Regular"; | |
} | |
return String(str).replace(/"/g, ''); | |
} |
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
# Primero asegúrate que xcode y sus command line tools estén instaladas | |
# Tienes que descargar LAME, x264, faac y ffmpeg | |
# LAME - http://sourceforge.net/projects/lame/files/latest/download | |
# x264 - git clone git://git.videolan.org/x264.git | |
# faac - http://sourceforge.net/projects/faac/files/latest/download | |
# ffmpeg - git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg | |
# Instalar LAME | |
cd lame/; ./configure && make && sudo make install; cd .. |
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
<? | |
// Logger | |
class Log { | |
protected $path; | |
protected $format = 'Y-m-d H:i:s'; | |
protected $enabled = TRUE; | |
public function __construct($p) | |
{ |
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
<? | |
// Algoritmo para sacar las combinaciones de n elementos | |
// Los elementos que hay que combinar | |
$elementos = array('a','b','c','d','e','f','g','h'); | |
$elementos_invert = array_flip($elementos); | |
$cuantos = count($elementos); | |
$corridas = array(); | |
$resultados = $elementos; |
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
(function($,sr){ | |
// debouncing function from John Hann | |
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ | |
var debounce = function (func, threshold, execAsap) { | |
var timeout; | |
return function debounced () { | |
var obj = this, args = arguments; | |
function delayed () { | |
if (!execAsap) { |
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
<!-- Gif Negro --> | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
strings yourPDFfilepath.pdf | grep FontName |
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
<!-- | |
Íconos para iOS | |
--> | |
<!-- iPhone --> | |
<link rel="apple-touch-icon" href="57x57.png" /> | |
<!-- iPad --> | |
<link rel="apple-touch-icon" sizes="72x72" href="72x72.png" /> |
OlderNewer