Skip to content

Instantly share code, notes, and snippets.

View yoophi's full-sized avatar
💭
Hi, there

Pyunghyuk Yoo yoophi

💭
Hi, there
View GitHub Profile
#!/usr/bin/env python
import re
import sys
class KoreanNumberConverter:
big_units = {
'조': 1000000000000,
'억': 100000000,
'만': 10000,
#!/usr/bin/env python
import sys
class InvalidInput(Exception):
pass
class Calculator:
def add(self, *args):
@startuml
title: HTTP Request on ECS\n
actor user
participant Client
participant Route53
box LoadBalancer #LightBlue
participant ALB
@yoophi
yoophi / paramiko_example.py
Created October 19, 2019 18:40 — forked from batok/paramiko_example.py
Paramiko example using private key
import paramiko
k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem")
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
print "connecting"
c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k )
print "connected"
commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ]
for command in commands:
print "Executing {}".format( command )
@yoophi
yoophi / .travis.yml
Created February 27, 2019 07:15 — forked from BretFisher/.travis.yml
Travis-CI Docker Image Build and Push to AWS ECR
sudo: required #is required to use docker service in travis
language: php #can be any language, just php for example
services:
- docker # required, but travis uses older version of docker :(
install:
- echo "install nothing!" # put your normal pre-testing installs here
@yoophi
yoophi / media-query.css
Created December 14, 2018 02:24 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@yoophi
yoophi / gitflow-breakdown.md
Last active January 8, 2020 09:31 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@yoophi
yoophi / gist:2ba02a66de678f112bd0d62bc6ccc34d
Created August 19, 2016 02:04 — forked from alOneh/gist:2953365
RegexConverter for Flask app
# source http://stackoverflow.com/questions/5870188/does-flask-support-regular-expressions-in-its-url-routing
from flask import Flask
from werkzeug.routing import BaseConverter
app = Flask(__name__)
class RegexConverter(BaseConverter):
def __init__(self, url_map, *items):
super(RegexConverter, self).__init__(url_map)
self.regex = items[0]
@yoophi
yoophi / .gitignore
Created July 23, 2016 16:19 — forked from shuhei/.gitignore
An example `gulpfile.js` for CoffeeScript and Browserify. Note that this uses gulp-browserify's master. Update this as soon as 0.2.6 is out.
/node_modules
/build
@yoophi
yoophi / gulpfile.js
Last active June 14, 2016 05:24
compile coffeescript using gulp
var gulp = require('gulp')
var coffee = require('gulp-coffee');
var gutil = require('gulp-util');
var paths = {
coffee: ['./src/**/*.coffee']
};
gulp.task('coffee', function() {
gulp.src(paths.coffee)
.pipe(coffee({bare: true}).on('error', gutil.log))