This file contains 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 os | |
import logging | |
import unittest | |
import xmlrunner | |
This file contains 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
from google.appengine.api import apiproxy_stub_map | |
from google.appengine.api.memcache import memcache_stub | |
apiproxy_stub_map.apiproxy.RegisterStub('memcache', memcache_stub.MemcacheServiceStub()) |
This file contains 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 | |
import random | |
import copy | |
NUMS = [1, 2, 3, 4, 5, 6, 7, 8 , 9] | |
class Sudoku(object): | |
def __init__(self): | |
self.box = [] |
This file contains 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
tell application "Things" | |
-- define cr and tab | |
set cr to ASCII character (13) | |
set tab to " " | |
set repStr to "" | |
-- get projects | |
repeat with pr in projects |
This file contains 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
var HEADERS = [ | |
'ID', | |
'By', | |
'Title', | |
'Content', | |
'Created At', | |
'Updated At', | |
'Status' | |
]; |
This file contains 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
#!/bin/bash | |
RETVAL=0 | |
TARGET=$2 | |
PYTHON_BIN=/usr/bin/python2.5 | |
NKF_BIN=/opt/local/bin/nkf | |
dircheck() { | |
if [ -d "$1" ]; then | |
return 1 |
This file contains 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
echo [password] > .password && /usr/bin/python manage.py appcfg update --email=test@test.com --passin -A [appname] < .password |
This file contains 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
#!/bin/bash | |
RETVAL=0 | |
APPID=$2 | |
KIND=$3 | |
APPCFG_PY=/usr/local/bin/appcfg.py | |
download() { | |
echo "Downloading $KIND..." |
This file contains 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
jQuery.fn.fillin = (options) -> | |
default_options = | |
border_color: 'red', | |
background_color: 'red' | |
options = $.extend {}, default_options, options | |
# change color | |
change_color = (el)-> | |
that = $(el) |
This file contains 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
class InvertedNameIndex(db.Model): | |
""" | |
転置Index | |
名前用の転置Index | |
""" | |
word = db.StringProperty(required=True) | |
keys = db.StringListProperty() | |
key_template = 'inverted_name_index/%s/%s' | |
OlderNewer