Skip to content

Instantly share code, notes, and snippets.

View MiguhRuiz's full-sized avatar

Miguel Ruiz MiguhRuiz

View GitHub Profile
@MiguhRuiz
MiguhRuiz / hello.conf
Created September 4, 2016 17:05
Serve a Hello World in NGINX
server {
listen 80;
server_name prueba.miguhruiz.xyz;
location / {
root /home/MiguhRuiz;
index index.html;
}
}
@MiguhRuiz
MiguhRuiz / webpack.config.js
Created January 3, 2016 13:17
WebPack @danhanfry configuration
var path = require('path');
module.exports = {
entry: './react/render.js',
output: {
path: './public/',
filename: 'build.js'
},
module: {
loaders: [
{
@MiguhRuiz
MiguhRuiz / index.html
Last active December 12, 2015 21:11
Node Para Principiantes - Sirviendo Archivos Estáticos
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mi Primera App En Node</title>
</head>
<body>
<center>
<h1>Estoy sirviendo estáticos con Node C:</h1>
</center>
/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,
@MiguhRuiz
MiguhRuiz / styles.styl
Created June 20, 2015 15:06
Stylus Error
nav
height 19px
.login
background #A30006
border-radius 5px
height 30px
margin-left 32.5em
position absolute
top 1.2em
@MiguhRuiz
MiguhRuiz / card.html
Created June 7, 2015 11:29
Twitter Card Example
<!-- Estás definiendo que es una Twitter Card -->
<meta name="twitter:card" content="summary" />
<!-- Usuario de Twitter -->
<meta name="twitter:site" content="@MiguhRuiz" />
<!-- Título del Sitio o Producto -->
<meta name="twitter:title" content="Miguh Ruiz, Mi Sitio Personalr" />
<!-- Descripción breve -->
<meta name="twitter:description" content="Soy un gran desarrollador apasionado el cual está creando Twitter Cards, mientras que sean gratis :P" />
<!-- Logo de la cuenta de Twitter o Producto -->
<meta name="twitter:image" content="https://pbs.twimg.com/profile_images/606522502534307840/mE9VJ79B.jpg" />
@MiguhRuiz
MiguhRuiz / opciones.html
Last active August 29, 2015 14:08
Código para volar un drone propietario del Curso de Programacion Básica de Mejorando.la, clase final.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Drondinez Control Panel</title>
</head>
<body>
<h2>¿Qué quieres hacer con drondinez</h2>
<p><a href="/">Inicio</a></p>
<p><a href="/despegar">Despegar</a></p>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
@MiguhRuiz
MiguhRuiz / backend.js
Last active August 29, 2015 14:07
Clase Nº 8 del Curso de Programación Básica de Mejorando.la
//Colección de usuario y contraseña que te dejará entrar al sitio, para cosas avanzadas esto debe ser remplazado por una base de datos
var basededatos = {
usuario: "freddier",
password: "mejorandola"
};
console.log("Arrancando server de Node :)");
//Solicitamos a Node las librerías "Express" y "Body-parser".
var express = require("express");
var parcero = require("body-parser");
//Asignamos a la variable web el uso de express.
@MiguhRuiz
MiguhRuiz / README.md
Last active December 21, 2015 15:48
Mi Readme y mi primer Git. ^_^

Bienvenidos A Mi Github

Aquí encontrarás:

-Codificación de mis blogs.

-Codificación de mis pruebas y sitios.