apache2ctl -S
hostname -A
Explicações: http://www.cyberciti.biz/faq/find-my-linux-machine-name/
function defaultIfUndefined(variable, value) { | |
return isUndefined(variable)?value:variable; | |
} | |
function isUndefined(variable) { | |
return typeof(variable)=='undefined'; | |
} |
$(window).bind("beforeunload",function(evento) | |
{ | |
// Insert the text that you want to return in the box | |
return "Text of the box"; | |
}).unload(function() | |
{ | |
// Any action that you want to do if chose do leave | |
}); |
apache2ctl -S
hostname -A
Explicações: http://www.cyberciti.biz/faq/find-my-linux-machine-name/
<?php | |
class MY_Router extends CI_Router { | |
private $rotas = array(); // Contem todas as rotas so sistema | |
private $classe; // Classe onde está sendo chamado | |
private $metodo; // Método onde está sendo chamado | |
public function __construct() | |
{ |
// jQuery Plugin - ScrollToMe | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
(function($) { | |
/** | |
* Plugin to scroll the page till it element | |
* @param {Object.<(string|integer), string>} options Object with | |
* duration time(duration) and animation style(easing) | |
* @returns {jQuery.this} |
// jQuery Plugin - Centralize | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
(function($) { | |
/** | |
* Plugin to centralize the element according to the window | |
* @param {boolean} resize If true, it will resize everytime the window | |
* resizes | |
* @returns {jQuery.this} |
.cursor-box, div, h3{ | |
float: left; | |
clear: left; | |
} | |
.cursor-box .title::after { | |
content: ""; | |
padding: 0px 4px; | |
background: black; | |
margin: 0 0 0 3px; |
// jQuery Plugin - Loader | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
// - Centralize >> https://gist.github.com/klauskpm/fc25fef2b4c94131d854 | |
(function($) { | |
/** | |
* Plugin to create an waiting page until something is done | |
* @param {Object.<array, integer, boolean>} options Object with waiting | |
* texts(texts), time span between actions(interval), and the option to |
// jQuery Plugin - Loader | |
// | |
// Needs: | |
// - jQuery(2.1.1) >> http://code.jquery.com/jquery-2.1.1.js | |
(function($) { | |
/** | |
* Plugin to retrieve all attributes of a element | |
* @returns {Object} | |
*/ | |
$.fn.attrs = function(){ |
/** | |
* Created by klaus.machado on 25/06/2015. | |
*/ | |
function SimpleDebug() | |
{ | |
var labels = { | |
"APP": { | |
"color": "#000000" | |
}, | |
"EXAMPLE": { |