Skip to content

Instantly share code, notes, and snippets.

View msikma's full-sized avatar
🚀
オープンソースの熱狂的なファン

Michiel Sikma msikma

🚀
オープンソースの熱狂的なファン
View GitHub Profile
Traceback (most recent call last):
File "/Users/msikma/.virtualenvs/kc/bin/kanaconv.py", line 9, in <module>
load_entry_point('kanaconv', 'console_scripts', 'kanaconv.py')()
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2719, in load_entry_point
return ep.load()
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2379, in load
return self.resolve()
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2385, in resolve
$ vf deactivate
$ vf new kc
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.5'
New python executable in /Users/msikma/.virtualenvs/kc/bin/python3.5
Not overwriting existing python script /Users/msikma/.virtualenvs/kc/bin/python (you must use /Users/msikma/.virtualenvs/kc/bin/python3.5)
Installing setuptools, pip, wheel...done.
$ ./setup.py develop
running develop
running egg_info
writing top-level names to kanaconv.egg-info/top_level.txt
# MIT license
'''
Module for formatting text for display in a terminal. Colored output is
provided through the use of ISO 6429 terminal escape sequences.
'''
# Terminal colors are defined by the ISO 6429 standard.
# To convert this list to foreground colors, add 30;
# for a background color, add 40.
'''
Schema for JMdict files. There will be only a single entry: the currently
used JMdict file. If needed, it's possible to create a new one, parse and
insert a whole new JMdict file, and then delete the old.
Every dictionary entry is in a 1-n relationship with the DictDictionary
entry.
'''
from tqdm import tqdm
# Copyright (C) 2014-2016, Reisan Ltd. - All rights reserved.
# This file is proprietary and confidential. For more information,
# see the 'copyright.md' file, which is part of this source code package.
'''
Database schema definitions for the site's persistent state information.
'''
from reisan.flask import db
@msikma
msikma / ballade-no-1.ly
Created January 4, 2016 03:59
Ballade No.1 in Lilypond, work in progress
% Ballade No.1 in G Minor, Op.23 (F.Chopin, 1835-1836)
%
% (C) 2016, Michiel Sikma <[email protected]>
% Licensed under CC BY-SA 4.0.
%
% This sheet music is part of the Pdly project.
% See <https://github.com/msikma/pdly> for more information.
AUTHORS = "M.Sikma"
\version "2.18.2"
\language "english"
\header {
title = "Prelude No.4"
subtitle = "24 Praeludien"
composer = "F. Chopin"
opus = "Op.28"
tagline = "tagline"
}
一二三四五六七八九十百千日本人中国田何先生学校門時計辞書手紙糸万円会社受付教室月火水木金土曜朝昼晩夜今午前後毎半分起働休終勉強行来帰歩友達週年去名病院駅飛機電車気見聞読食飲買実習映画写真牛馬肉魚茶酒お父母兄姉弟妹家族主子内借貸切修理英語大小高低安新古暑寒熱冷悪青赤白黒親有山花町元宿題間頭痛歌音楽薬字料好全鳥上下右左男女外公園図使館竹箱筆庭銀地鉄汽船漢荷物回台階雨雪雲空天店多少遠近暖温早速旅出入送遊欲結言話呼取覚急伝番号方線塩立売消作開閉待身知仕事工場委員住所戸都府県区市郡村州力口目耳鼻歯顔足体長短明暗重軽広乗浴心配残念止返絵泳練始運転刀弓矢失礼初
/**
* Returns a function that will print a line to the console in a given color.
* The line will be prefixed and colored. All substituted values are bolded.
*
* @param {String} color Color to print in (must be supported by cli-color)
* @param {String} level Severity of the message {log, info, warn, error}
* @param {String} pre Prefix character in front of the message
* @returns {Function} Logging printer
*/
function logMessage(color, level='log', pre=bullet) {
{
// Uses the Airbnb config as a base with a number of overrides.
// See <https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb>.
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"node": true
},
"rules": {
"block-scoped-var": 0,