Skip to content

Instantly share code, notes, and snippets.

Idoushiki idoushiki

  • Japan
Block or report user

Report or block idoushiki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@idoushiki
idoushiki / gazouhaiti.html
Last active Dec 31, 2018
画像を配置するjsコード
View gazouhaiti.html
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<input type="button" class="button"id="btn1" value="消す" onclick="clc();">
<canvas id="c"width="600"height="600">
View bunseki.py
fp=open("words.txt","r")
msg = fp.read().lower()
counter = {}
for c in msg:
if not c in counter:
counter[c] = 1
View kansuu.py
amount=0
def bread(menu,am):
global amount
amount=amount+am
msg=menu+str(amount)
print(msg)
bread("greentea",20)
View aaaa1.py
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)
View daen.js
<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++){
View phpq.php
<?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();//
?>
@idoushiki
idoushiki / gazo.html
Last active Jan 3, 2018
画像が切り替わる何か
View gazo.html
<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>
View pipi.py
import math
from decimal import *
#桁数
keta=1000
N = 2*math.ceil(math.log2(keta))
getcontext().prec = keta
View pi.py
import math
from decimal import *
import numpy as np
def getp(prec=1000, v=True):
prec = prec+2
@idoushiki
idoushiki / Cookie.js
Last active Dec 5, 2017
本、参考
View Cookie.js
You can’t perform that action at this time.