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
<html> | |
<script> | |
function printf(ms){ | |
document.write(ms,"<br>"); | |
} | |
var aa=0; |
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
import math | |
from decimal import * | |
import numpy as np | |
def getp(prec=1000, v=True): | |
prec = prec+2 |
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
import math | |
from decimal import * | |
#桁数 | |
keta=1000 | |
N = 2*math.ceil(math.log2(keta)) | |
getcontext().prec = keta |
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
<html> | |
<head> | |
<script src="anime.js"></script> | |
<script> | |
var animation=new ImageLoop("loop",["a.png","b.png","c.png","d.png","e.png","f.png","g.png"]); | |
animation.start(); | |
</script> | |
</head> |
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
<?php | |
require_once("phpQuery-onefile.php"); //phpQuery-onefile.phpのファイルを配置した場所を指定する。 | |
$html=file_get_contents("http://idoushiki.hatenablog.com"); //スクレイピングしたいサイトのURLを指定する。 | |
echo phpQuery::newDocument($html)->find("body")->text();// | |
?> |
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
<html> | |
<script> | |
max=6; | |
for(p=1;p<=max;p++){ | |
for(h=1;h<=max;h++){ | |
for(a=1;a<=max;a++){ | |
for(b=1;b<=max;b++){ |
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 Bread: | |
def __init__(self,menu="cheese "): | |
self.menu=menu | |
self.amount=0 | |
def br(self,g): | |
self.amount+=g | |
msg=self.menu+str(self.amount) | |
print(msg) |
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
amount=0 | |
def bread(menu,am): | |
global amount | |
amount=amount+am | |
msg=menu+str(amount) | |
print(msg) | |
bread("greentea",20) |
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
fp=open("words.txt","r") | |
msg = fp.read().lower() | |
counter = {} | |
for c in msg: | |
if not c in counter: | |
counter[c] = 1 |