Skip to content

Instantly share code, notes, and snippets.

View lopezjurip's full-sized avatar
🎯
Focusing

Patricio López Juri lopezjurip

🎯
Focusing
View GitHub Profile
@lopezjurip
lopezjurip / main.js
Created September 4, 2015 13:46
Repartidor web js
var turn = 0;
console.log(['LosExtraterrestresMusicales', 'Rupie', 'TheTeam', 'Veritas',
'YisusPlusOne', 'ImaginApp', 'Nebuchadnezzar', 'Rock',
'InternalServerError', 'String.random', 'ZipCity2000',
'PW:Software', 'ToPa', 'tqzptscsaj',]
.sort(.5 - Math.random())
.reduce(function(previous, current) {
previous[['pato', 'thomas', 'pedro'][turn++ % 3]].push(current);
return previous;
}, {pato: [], thomas: [], pedro: []}));
@lopezjurip
lopezjurip / README.md
Created September 9, 2015 02:18
Azure CLI - Create Docker

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download
@lopezjurip
lopezjurip / main.py
Created September 10, 2015 15:21
[Python] - Actividad para Diseño Detallado de Software
#!/usr/bin/env python3
# coding=utf-8
class Jugador:
def __init__(self, numero, nombre, posicion):
self.numero = numero
self.nombre = nombre
self.posicion = posicion
@lopezjurip
lopezjurip / actividad.cs
Created September 10, 2015 15:07
[C# Psuedo-código] Actividad para Diseño detallado de Software
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Namespace {
class Bebida {
}
@lopezjurip
lopezjurip / curl.sh
Created October 11, 2015 13:35
Test CORS
curl -H "Origin: http://example.com" --verbose \
http://arqui8.ing.puc.cl/api/v1/
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@lopezjurip
lopezjurip / test.md
Created October 17, 2015 23:19
Hello!

Welcome to StackEdit!

Hey! I'm your first Markdown document in StackEdit[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.


Documents

@lopezjurip
lopezjurip / Dockerfile
Created October 23, 2015 00:38
[Go + Godeps] Dockerfile
FROM golang:onbuild
RUN go get github.com/tools/godep
EXPOSE 8000
@lopezjurip
lopezjurip / README.md
Last active October 25, 2015 13:56
Docker on Ubuntu

Prepare Ubuntu server for Docker

Lets start up-to-date everything:

sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y

Update your apt sources

apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@lopezjurip
lopezjurip / server.sh
Created November 30, 2015 15:14
Python3 simple web server
python3 -m http.server