Skip to content

Instantly share code, notes, and snippets.

@hzno
hzno / pycompress.py
Created November 25, 2010 01:01
(pycompress.py) A file is compressed by "tar.bz2", "tar.gz" or "zip".
#!/usr/bin/env python
# Author: Iyori Komiyama
# Contact: hazimarino@gmail.co.jp
# site: http://hazimarino.blogspot.com/
"""\
A file is compressed by "tar.bz2", "tar.gz" or "zip".
"""
import os
import tarfile
import zipfile
@hzno
hzno / is_prime.py
Created November 25, 2010 06:30
(Python) 素数かどうかを判定し、素数でなかったらどの数で分解できるのか表示する
#!/usr/bin/env python
#-*- coding:utf-8 -*-
# Author: Iyori Komiyama
# Contact: hazimarino@gmail.co.jp
# site: http://hazimarino.blogspot.com/
"""\
素数かどうかを判定し、素数でなかったらどの数で分解できるのか表示する
9973 の素数で分解できる範囲まで。
"""
from __future__ import unicode_literals
@hzno
hzno / epynotify.py
Created November 25, 2010 23:12
(epynotify) Module to be able to use "pynotify" easily.
#-*- coding:utf-8 -*-
# Author: Iyori Komiyama
# Contact: hazimarino@gmail.co.jp
# site: http://hazimarino.blogspot.com/
"""\
Module to be able to use 'pynotify' easily.
Classes:
_EPYNotify
@hzno
hzno / epynotify.py
Created December 7, 2010 19:25 — forked from podhmo/epynotify.py
fork form epynotify by podhmo
#-*- coding:utf-8 -*-
import os.path
import datetime
import pynotify
# __all__ = ['epynotify', 'gnotify', 'messages']
# __version__ = '0.0.1'
DEFAULT_TITLE = 'Hello, World!'
@hzno
hzno / init.el
Last active September 24, 2015 10:57
emacs-starter-kit org-mode
;;; init.el --- Where all the magic begins
;;
;; Part of the Emacs Starter Kit
;;
;; This is the first thing to get loaded.
;;
(setq dotfiles-dir (file-name-directory (or load-file-name (buffer-file-name))))
(add-to-list 'load-path (expand-file-name
@echo off
color f1
prompt $c$p$f[$t]$_$$$s
title MyPrompt(%~d0)
rem cls
rem ver
if not %CD:~-4% == home cd ../../
set PATH=%CD%\bin;%PATH%
set HOME=%CD%