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 gdata.youtube | |
import gdata.youtube.service | |
yt_service = gdata.youtube.service.YouTubeService() | |
entry = yt_service.GetYouTubeVideoEntry(video_id='3KjgpNdcudU') | |
def PrintEntryDetails(entry): | |
print 'Video title: %s' % entry.media.title.text |
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
https://github.com/statesofpop/django-cal | |
import vobject.iCalender | |
def ical(user_id=None): | |
cal = vobject.iCalendar() | |
cal.add('method').value = 'PUBLISH' | |
cal.add('calscale').value = 'GREGORIAN' | |
cal.add('x-wr-calname').value = 'TestCal28' | |
cal.add('x-wr-timezone').value = 'Australia/Sydney' |
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
http://hampom.humming-code.com/google-map-api-v3/ | |
http://hampom.wordpress.com/2010/03/03/google-maps-apiv3-%E3%81%A7%E4%BD%8F%E6%89%80%E3%81%8B%E3%82%89%E5%9C%B0%E5%9B%B3%E3%81%AB%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E7%BD%AE%E3%81%8F%EF%BC%81/ |
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: utf-8 | |
import random | |
import string | |
def random_key(): | |
if __name__ == "__main__": | |
message = string.ascii_lowercase + string.ascii_uppercase + string.digits | |
random_message = "".join([message[random.randrange(0, len(message)-1)] for cnt in range(9)]) | |
print random_message |
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
djb | |
mail qmail | |
mailing list fml,ezmlm |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Deaf Information</title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | |
<!--[if lt IE 9]> |
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
pip install django | |
cd /home/xxxx/htdocs/ | |
dajango-admin.py startproject mysite | |
cd mysite | |
mkdir templates | |
vim setting.py | |
db の設定 | |
テンプレートの場所の設定 |
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
import datetime | |
from google.appengine.ext import db | |
from google.appengine.api import users | |
class Deafnewsdb(db.Model): | |
keyword = db.StringProperty(required=True) | |
title = db.StringProperty(required=True) | |
url = db.StringProperty(required=True) | |
bitly_url = db.StringProperty(required=True) | |
publisher = db.StringProperty(required=True) |
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/perl | |
# deaf_blog_yahoo_api.pl | |
use strict; | |
use warnings; | |
use WebService::Simple; | |
use WebService::Simple::Parser::JSON; | |
use Perl6::Say; | |
use Data::Dumper; |
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
my $charcter = "あいうえお"; | |
utf8::decode($charcter); | |
print '検証文字列: ',$charcter,"\n"; | |
if($charcter !~ /([\x{3041}-\x{30F6}])/) { | |
print 'ひらがなとカタカナが含まれていません'; | |
} |