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/sh | |
#Script to check webpage status | |
#Adapted to be used with Conky, but is easily adaptable to be a normal | |
#shell script | |
#The script will use curl to check a URL HTTP Status. It will echo one of 4 status text: | |
#* "Up" if request returns a success status code | |
#* "Down - Error <HTTP ERROR CODE>" if request returns an error status code | |
#* "Timeout!" if request operation exceeds the timeout (Default 2 seconds) |
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
#nano with tabs to spaces, line number, autoindent and tabs = 4 spaces | |
alias nano='nano -liET 4' | |
#colors | |
alias grep='grep --color' | |
alias ls='ls --color' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mapita - por Gustavo Alfredo Marín Sáez</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
<script src="http://maps.google.com/maps/api/js?libraries=places"></script> |
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
//Fired when enter is pressed | |
//$('input').onEnter(doStuff); | |
$.fn.onEnter = function (func) { | |
return this.each(function (index, element) { | |
var $element = $(element); | |
$element.on('keyup', function(e) { | |
if (e.keyCode == 13) func.apply($element, [e]); | |
}); | |
}); |