Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Patricio López Juri lopezjurip

🎯
Focusing
View GitHub Profile
@lopezjurip
lopezjurip / main.js
Created Sep 4, 2015
Repartidor web js
View main.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 Sep 9, 2015
Azure CLI - Create Docker
View README.md

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download
@lopezjurip
lopezjurip / main.py
Created Sep 10, 2015
[Python] - Actividad para Diseño Detallado de Software
View main.py
#!/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 Sep 10, 2015
[C# Psuedo-código] Actividad para Diseño detallado de Software
View actividad.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Namespace {
class Bebida {
}
View curl.sh
curl -H "Origin: http://example.com" --verbose \
http://arqui8.ing.puc.cl/api/v1/
View init.coffee
# 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 ->
View test.md

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 Oct 23, 2015
[Go + Godeps] Dockerfile
View Dockerfile
FROM golang:onbuild
RUN go get github.com/tools/godep
EXPOSE 8000
@lopezjurip
lopezjurip / README.md
Last active Oct 25, 2015
Docker on Ubuntu
View README.md

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 Nov 30, 2015
Python3 simple web server
View server.sh
python3 -m http.server