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
24: | |
Is it because we can't be satisfied with our daily life | |
that we enjoy watching sports and going to the theater? | |
25: | |
If I were to choose a most important thing of all the things | |
that can be called hobbies for me, it would be reading and collecting books. | |
26. | |
In interviews with the press, I'm often asked what my hobby is. |
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 src="draw.js" type="text/javascript"></script> | |
<link href="mine.css" rel="stylesheet" type="text/css"> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
<title>speak into it!</title> | |
</head> | |
<body> |
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
def exprs(name): # return lambda expression | |
if name == 'S': | |
return (lambda x: lambda y: lambda z: x(z)(y(z))) | |
elif name == 'K': | |
return (lambda x: lambda y: x) | |
elif name == 'I': | |
return (lambda x: x) | |
elif name == 'cons': | |
return (lambda s: lambda b: lambda f: f(s(b))) | |
elif name == 'car': |
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 | |
A = C = D = 0 #レジスタ | |
memory = [-1 for i in range(59049)] #メモリ | |
output = '' #出力 | |
def run(code): | |
global C, D, memory | |
code = code.replace(' ', '').replace('\n', '') | |
for i, ch in enumerate(code): |
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
def foo(a,b): | |
return a+b, a*b | |
def bar(c,d): | |
return c-d, c/d | |
foo(*bar(1,2)) #barの返り値が展開される |
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
/*var element = document.getElementById('card0'); | |
if (element == null) { | |
alert('Card element is not found. Check element id.'); | |
} else { | |
var myevent = document.createEvent('MouseEvents'); | |
myevent.initEvent('click', false, true); | |
element.dispatchEvent(myevent); | |
alert('Card color is "' + element.style.backgroundColor + '".'); | |
} | |
*/ |
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
i=raw_input().split(' ') | |
n,m,k=int(i[0]),int(i[1]),float(i[2]) | |
old_skill=[] | |
new_skill=[] | |
for i in range(n): | |
data=raw_input().split(' ') | |
old_skill.append({'name':data[0],'exp':int(data[1])}) | |
for i in range(m): |
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 tweepy, random, re, os, time, urllib, urllib2, cookielib, csv, MeCab | |
from xml.etree.ElementTree import * | |
from PIL import Image | |
from cv import * | |
from BeautifulSoup import BeautifulSoup | |
secrets=[i for i in csv.reader(open('Database\\password.csv'))] | |
consumer_key=secrets[2][1]; consumer_secret=secrets[3][1] | |
access_key=secrets[4][1]; access_secret=secrets[5][1] |
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 tweepy, random, re, os, time, urllib, urllib2, cookielib, csv,MeCab | |
from xml.etree.ElementTree import * | |
from PIL import Image | |
from BeautifulSoup import BeautifulSoup | |
secrets=[i for i in csv.reader(open('Database\\password.csv'))] | |
consumer_key=secrets[2][1]; consumer_secret=secrets[3][1] | |
access_key=secrets[4][1]; access_secret=secrets[5][1] | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
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 | |
''' | |
使用可能なオペランドは2~6個 | |
main(operandList,answer[,n]) | |
operandList : 被演算子のlist | |
answer : 答え | |
n : n則で計算(デフォルト値4,許容値1~6) | |
''' |