Skip to content

Instantly share code, notes, and snippets.

View dahlia's full-sized avatar

Hong Minhee (洪 民憙) dahlia

View GitHub Profile
@dahlia
dahlia / words_ko.html
Last active December 18, 2015 21:09
Korean translation of “Words” http://justinjackson.ca/words.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <title>Words</title> -->
<title>글</title>
<style type="text/css">
body { font-size:18px; }
.wrapper { max-width: 600px; margin:0 auto; }
</style>
@dahlia
dahlia / gist:6315170
Created August 23, 2013 03:10
Darken images using Wand
from wand.color import Color
from wand.display import display
from wand.image import Image
with Image(filename='/Users/dahlia/Downloads/CS1255030-02A-BIG.jpg') as i:
with Image(background=Color('#00000099'), width=i.width, height=i.height) as black_60:
i.composite_channel('all_channels', black_60, 'darken', 0, 0)
display(i)
from wand.color import Color
from wand.image import Image
with Image(filename='tests/assets/trimtest.png') as png:
with Image(width=png.width,
height=png.height,
background=Color('white')) as jpeg:
jpeg.composite(png, 0, 0)
jpeg.save(filename='result.jpg')
@dahlia
dahlia / .gitignore
Last active December 29, 2015 19:29
WPF Étude w/ IronPython
.*.swp
@dahlia
dahlia / thoughts.rst
Last active August 29, 2015 14:00
WANTED LIBRARY

Wanted library

Problems I've spent much time to solve:

  • Web servers. More exactly, API servers that communicate through HTTP.
  • Choosing the right status codes for the situations.
@dahlia
dahlia / keybase.md
Created April 20, 2014 09:12
Hong Minhee’s Keybase proof

Keybase proof

I hereby claim:

  • I am dahlia on github.
  • I am hongminhee (https://keybase.io/hongminhee) on keybase.
  • I have a public key whose fingerprint is 374B 15AF 3237 96A6 2AB1 BCE3 C429 ECD5 7EED 6CCA

To claim this, I am signing this object:

@dahlia
dahlia / .gitignore
Last active August 29, 2015 14:02
Interactively clean up unreachable subscriptions.
*.pyc
.*.swp
.env
@dahlia
dahlia / gist:b59b20083782d90833b8
Created June 10, 2014 18:58
libearth parser refactoring idea
import emails.utils
from ..compat import string_type
from ..feed import Entry, Feed, Person, Text
from .base import parser
parse_rss = parser()
@dahlia
dahlia / find-doc.py
Last active January 24, 2017 22:39
Example code to fetch Sphinx intersphinx inventory
#!/usr/bin/env python3
from __future__ import print_function
import pprint
import sys
import urllib.parse
import urllib.request
from sphinx.ext.intersphinx import read_inventory_v1, read_inventory_v2