Skip to content

Instantly share code, notes, and snippets.

View rsdiaz's full-sized avatar
:octocat:
Working from home

Roberto Serrano rsdiaz

:octocat:
Working from home
View GitHub Profile
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',
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 */
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
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
@rsdiaz
rsdiaz / package.json
Created April 14, 2016 10:28
Version minima de un archivo package.json para npm
{
"name": "miapp",
"version": "0.0.1",
"dependencies": {
"nombre_modulo": "version",
"nombre_modulo2": "version"
}
}
@rsdiaz
rsdiaz / app.js
Created March 31, 2016 21:40
Hello World en Node.js
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/');
@rsdiaz
rsdiaz / yourapp.desktop
Last active August 29, 2015 14:19
Desktop Entry File (Template)
[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.
@rsdiaz
rsdiaz / Firefox-Developer-Edition.desktop
Last active August 14, 2018 17:11
Firefox Developer Edition.desktop file for Gnome 3
#!/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