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 / 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 / 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 / README.md
Created September 26, 2015 12:13
OSX Homebrew: docker-machine setup

Prerequisites

Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].

# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install Homebrew-cask
brew install caskroom/cask/brew-cask
@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/
@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 / pythongitdepth.py
Created October 21, 2015 00:05
GitPython clone with depth
import git
def clone(cls, directory, url, depth=3):
return git.Repo.clone_from(url, directory, depth=depth)
@lopezjurip
lopezjurip / README.md
Created October 22, 2015 21:05
Stackedit.io - Justify

Settings -> Extensions -> UserCustom

userCustom.onReady = function() {
    $('head').append(`<style>p, pre, blockquote {
      text-align: justify;
    }
    blockquote p, li p {
      text-indent: 0
    }</style>`);
};
@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