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
/** | |
* Definición del módulo | |
*/ | |
var app = angular.module("demoApp",[/*Dependencias*/]); | |
/** | |
* Configuracin de las rutas. | |
*/ | |
app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { | |
$routeProvider |
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
<VirtualHost *:80> | |
ServerName balanceador | |
# Actuamos como reverse proxy, apareciendo a los clientes | |
# como un servidor web corriente. | |
ProxyRequests Off | |
# Acceso sin restringir. | |
<Proxy *> | |
Order deny,allow | |
Allow from all |
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
/** | |
* Facultad Politécnica - Ingeniería en Informática. | |
* Programación Web - Dynamic Proxy | |
* | |
* Ejercicio de como utilizar Dynamic Proxy | |
* | |
* @author mbaez | |
*/ | |
public class Cliente { |
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
<header> | |
<label> Hi <span data-attr="fullname">?</span>! | |
</header> | |
<form id="from-data"> | |
<fieldset> | |
<label class="control-label" for="input-username">Username</label> | |
<input data-attr="username" type="text" id="input-username" > | |
<label class="control-label" for="input-name">full name</label> |
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/sh | |
# sudo ./change-brightness.sh -3000 //reduce the brightness | |
# sudo ./change-brightness.sh 3000 //add brightness | |
path=/sys/class/backlight/intel_backlight | |
echo `cat $path/actual_brightness`+ $1 | bc > $path/brightness |
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 method gets the url parameters and constructs an object with them. | |
* <code> | |
* localhost/app?param=1¶m2=2¶ms3=text | |
* | |
* getUrlParams() returns {param: 1, param2:2, params3='text'} | |
* </code> | |
* @author Maximiliano Báez | |
*/ | |
function getUrlParams() { |
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 script, force one click, every 10 seconds in Gmail Refresh Pop Account button | |
* @author Maximiliano Báez | |
*/ | |
var $popup = window.open("https://mail.google.com/mail/ca/u/0/?shva=1#settings/accounts",'_blank', 'toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10000, top=10000, width=10, height=10, visible=none');function refreshPop(){var $el = $popup.document.getElementsByClassName("rP sA"); if($el.length>0){$el = $el[0]; $el.click(); console.log($el)} setTimeout(refreshPop, 10000)};refreshPop(); |