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/env xdg-open | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Firefox Developer Edition | |
Comment=Navegador Firefox Developer Edition | |
Comment[es]=Accede a Internet. | |
Exec=/opt/firefox/firefox | |
StartupNotify=true |
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
[Desktop Entry] | |
Version=Specifies the version of the Desktop Entry Specification to which the .desktop file conforms (currently 1.0). | |
Encoding=The encoding for the .desktop file. The standard calls for UTF-8. | |
Type=Specifies the type of desktop entry. Currently, there are three valid types: Application, Link and Directory. | |
Terminal=Boolean entry which specifies whether or not the application requires a terminal to run. | |
Exec=provides the actual command to execute, with associated arguments (if necessary.) | |
Name=The name of the specific application or directory. | |
Categories=Categories in which this application should appear in menus. Supported categories vary from system to system. | |
Icon=specifies the icon to be used. This entry supports both icons supported under the FreeDesktop Icon Theme. | |
MimeType=Specifies any associated MIME types with this application. |
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
var http = require('http'); | |
http.createServer(function(req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(3000, '127.0.0.1'); | |
console.log('Servidor funcionando en http://localhost:3000/'); |
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
{ | |
"name": "miapp", | |
"version": "0.0.1", | |
"dependencies": { | |
"nombre_modulo": "version", | |
"nombre_modulo2": "version" | |
} | |
} |
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 | |
title= title | |
link(rel='stylesheet', href='/stylesheets/style.css') | |
// Incluimos Bootstrap | |
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css') | |
body | |
block content |
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
extends layout | |
block content | |
div.jumbotron | |
div.container | |
h1=title | |
p Esto es un ejemplo sencillo de un sitio web con Express y Node.js. | |
p | |
a(class='btn btn-primary btn-lg' href='/about', role='button') Leer mas |
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
var express = require('express'); | |
var router = express.Router(); | |
/* GET pagina de inicio */ | |
router.get('/', function(req, res, next) { | |
res.render('index', { title: 'Express' }); | |
}); | |
/* Añadimos la ruta para la pagina about */ | |
/* GET pagina about */ |
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
conky.config = { | |
gap_x = 15, | |
gap_y = 60, | |
alignment = 'top_right', | |
xinerama_head = 2, | |
background = false, | |
border_width = 0, | |
cpu_avg_samples = 4, | |
default_color = 'white', | |
default_outline_color = 'grey', |