Skip to content

Instantly share code, notes, and snippets.

View eugene-eeo's full-sized avatar
🍵
 

Eeo Jun eugene-eeo

🍵
 
View GitHub Profile
@eugene-eeo
eugene-eeo / gist:10704619
Created April 15, 2014 05:30
Imgur Crash- full error report
Incident Identifier: 1EDED92C-757E-41CF-95C0-3272D8969070
CrashReporter Key: 30b625998ecb3adcd3ba807bca99517911a2cc1e
Hardware Model: iPhone4,1
Process: Imgur [3672]
Path: /var/mobile/Applications/1C2A60D8-FB9C-4A3D-B602-2142F2EA3995/Imgur.app/Imgur
Identifier: imgurmobile
Version: 0.0.21 (1.3.3)
Code Type: ARM (Native)
Parent Process: launchd [1]
@eugene-eeo
eugene-eeo / guess_number.py
Last active August 29, 2015 14:02
Python number guessing
import random
number = random.randint(1, 1000)
prompt = "Guess a number: "
choice = -1
while choice != number:
choice = int(input(prompt))
if choice == number:
message ="Well done!"
elif choice < number:
@eugene-eeo
eugene-eeo / main.py
Created January 1, 2015 03:04
Schema Analysis for TinyDB
from schema import Schema
s = Schema.from_iterable([
{'key': True, 'maybe': 1},
{'key': None, 'maybe': True},
{'key': False},
])
print(s)
# => {'key': <Key [bool]>, 'maybe': <Maybe [bool, int]>}
@eugene-eeo
eugene-eeo / LICENSE.txt
Created December 28, 2015 03:06 — forked from jed/LICENSE.txt
calculate # of ms/seconds/minutes/hours/days in the past
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@eugene-eeo
eugene-eeo / keybase.md
Created July 30, 2016 02:59
keybase.md

Keybase proof

I hereby claim:

  • I am eugene-eeo on github.
  • I am eeojun (https://keybase.io/eeojun) on keybase.
  • I have a public key ASBPozL3c19DFS2saFNdiQbq_O3si2lcJRrnBGfbAFPgHQo

To claim this, I am signing this object:

@eugene-eeo
eugene-eeo / t.js
Last active August 9, 2016 04:49
micro templating
/*
* lo and behold, in all its glory:
*/
var t = (s,d) => s.replace(/{(.+?)}/, (_,k) => k.split('.').reduce((o,g) => o[g], d))
t('{name}', {name: 'me'})
// => 'me'
t('@{user.name}', {user: {name: 'me'}})
// => '@me'
t('{0}', [1])
@eugene-eeo
eugene-eeo / main.py
Last active September 17, 2016 04:42
What your name says about you
character_map = {
"a": "Atrocious",
"b": "Boring",
"c": "Corrupted",
"d": "Despicable",
"e": "Evil",
"f": "Fraud",
"g": "Gross",
"h": "Homicidal",
"i": "Idiotic",
@eugene-eeo
eugene-eeo / editor.py
Last active November 15, 2016 10:25
editor.py prototype
#!/usr/bin/env python
"""Tools for invoking editors programmatically."""
from __future__ import print_function
import sys
import locale
import os.path
import subprocess
import tempfile
Keyboard Layout for the FILCO 68-key UK layout.
Usage:
- Download filco68.keylayout
- Put it in ' ~/Library/Keyboard Layouts'
- Add layout to input sources => done