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 (){ | |
var processing = false; | |
if( !(FileAPI.support.html5 || FileAPI.support.flash) ){ | |
alert('Ooops, your browser does not support Flash and HTML5 :['); | |
} | |
function thumb(file, width, height, type){ | |
var image = FileAPI.Image(file), label = width+'x'+height, callback; |
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(){ | |
var __x = Function.prototype.call; | |
Function.prototype.call = function( thisArg ){ | |
if( arguments[1] && arguments[1].indexOf && | |
arguments[1].indexOf( "with (__commandLineAPI" ) !== -1 ) { | |
throw "Sorry, Execution via Console has been disabled!"; | |
} | |
__x.apply( this, arguments ); | |
}; |
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
//Devuelve el registro que más respuestas VÁLIDAS tiene y menos SEGUNDOS, agrupado por email. Ordenado por VALIDAS DESC y | |
db.myDBTrivia.aggregate( | |
[ | |
{ | |
$group: | |
{ | |
_id: "$email", | |
validas: { $max: "$respuesta.validas"}, | |
segundos: { $min: "$respuesta.segundos"} | |
} |
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
<iframe src="page.html" width="320"> | |
<object data="page.html" type="text/html" width="320"> | |
Descarga u Navegador de verdad !! | |
</object> | |
</iframe> |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
#/usr/bin/bash | |
#Capturamos Ctrl-C para terminar | |
trap 'echo;echo;echo Proceso terminado Ctrl-C Hasta la vista Baby;echo; exit' SIGINT SIGQUIT; | |
#procesosHttp.sh | |
#victorcastelan@gmail.com | |
pausa=10; | |
header="\n %-10s %8s %10s %10s %10s\n" | |
format="\r %-10s %8s %10s %10s %10s" |
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
#/usr/bin/bash | |
while [ 1 ]; do | |
printf "\r$(date +%T)"; | |
sleep 1s; | |
done |
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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
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 Slider (min, max, value) { | |
this.min = (min === undefined) ? 0 : min; | |
this.max = (max === undefined) ? 100 : max; | |
this.value = (value === undefined) ? 100 : value; | |
this.onchange = null; | |
this.x = 0; | |
this.y = 0; | |
this.width = 16; | |
this.height = 100; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Real Walk</title> | |
</head> | |
<body> | |
<canvas id="canvas" width="400" height="400"></canvas> | |
OlderNewer