Skip to content

Instantly share code, notes, and snippets.

View a0viedo's full-sized avatar
🌯
no burrito no code

Alejandro Oviedo a0viedo

🌯
no burrito no code
View GitHub Profile
@a0viedo
a0viedo / 0_reuse_code.js
Last active August 29, 2015 14:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
function sumar(parametro1, parametro){
return parametro1 + parametro;
}
console.log(contarvocales("coderhouse"));
function contarvocales(string){
var totaldevocales = 0;