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
//設定共有用 |
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 | |
# encoding: utf-8 | |
""" | |
check_302.py | |
Created by mmiyaji on 2012-11-09. | |
Referenced from http://www.diveintopython.net/http_web_services/redirects.html | |
""" | |
import sys, os |
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 | |
# encoding: utf-8 | |
""" | |
re.py | |
Created by mmiyaji on 2012-08-27. | |
Copyright (c) 2012 ruhenheim.org. All rights reserved. | |
""" | |
import sys, os, re |
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 | |
# encoding: utf-8 | |
""" | |
tfidf_dumbo.py | |
""" | |
import sys | |
import os | |
from dumbo import * | |
from math import log |
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
package game; | |
import java.util.*; | |
class TAiAlgorithm extends AI | |
{ | |
int THROWTICKS = 0; | |
GA ga = null; | |
boolean isSimulated = false; | |
Player me; | |
Board board; |
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
package game; | |
import java.util.*; | |
class TAiAlgorithm extends AI | |
{ | |
int THROWTICKS = 0; | |
public TAiAlgorithm() | |
{ | |
this.name = "TAI"; | |
this.start_time = 0; |
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 | |
# encoding: utf-8 | |
""" | |
steepest.py | |
Created by mmiyaji on 2011-01-17. | |
Copyright (c) 2011 mmiyaji. All rights reserved. | |
""" | |
import sys |
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
package game; | |
import java.util.*; | |
class TAiAlgorithm extends AI | |
{ | |
public TAiAlgorithm() | |
{ | |
this.name = "TAI"; | |
this.start_time = 0; | |
this.limit_time = Long.MAX_VALUE; |
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
from django.db.models import Q | |
words = ["hoge","fuga"] | |
qs = [Q(word__exact=w) for w in words] | |
query = qs.pop() | |
for q in qs: | |
query |= q | |
Entry.objects.filter(query) |