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
<!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
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
# 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
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
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
#!/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
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>js sample</title> | |
<script type="text/javascript" src="http://a.nzk.me/static/js/jquery-1.7.1.js"></script> |
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 -*- | |
from flask import * | |
import os | |
from werkzeug import secure_filename | |
app = Flask(__name__) | |
#searchword = request.args.get('q', '') |
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"> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript">google.load("jquery", "1.7.1");</script> | |
<script type="text/javascript">google.load("jqueryui", "1.8.18");</script> | |
<script type="text/javascript"> | |
$(function() { | |
// 掲載数 |