This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import smtpd | |
import asyncore | |
import email | |
from email.message import Message | |
from email.header import decode_header | |
from email.utils import parseaddr | |
from optparse import OptionParser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*-coding=utf8-*- | |
from django.utils.translation import ugettext_lazy as _ | |
from django import forms | |
from django.forms.widgets import MultiWidget | |
class SplitPhoneNumberWidget(MultiWidget): | |
u""" | |
電話番号ウィジェット | |
[te1]-[te2]-[te3]みたいな感じで入力が出来るよ。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# some credit to https://github.com/maddox/magick-installer | |
require 'formula' | |
def ghostscript_srsly? | |
build.include? 'with-ghostscript' | |
end | |
def ghostscript_fonts? | |
File.directory? "#{HOMEBREW_PREFIX}/share/ghostscript/fonts" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// Routing.php | |
// ===========================================================================+ | |
return urlpatterns(array( | |
url('^$', 'content.view.index', 'index'), | |
include_urlpatterns('^/friend/', 'content.urls', 'friend'), | |
)); |
NewerOlder