Skip to content

Instantly share code, notes, and snippets.

@sasamijp
sasamijp / sample.txt
Created October 12, 2020 08:07
サンプル
いりあす 宗教 物語
みえ 地名
あっぱー 暴力
きよう ノーマル
あむろなみえ 人物 芸術
まぐま 理科
けんしゅう 社会
ぷれす 工作
ふがく 地名
くらふと 工作
@sasamijp
sasamijp / custom.css
Last active April 13, 2019 06:18
BTDのカスタムCSSに貼り付けると見た目がYorufukurouっぽくなるやつ
.mdl {
height: 100%;
width: 100%;
}
.mdl-column-rhs {
width:100%;
}
my_reverse :: [a] -> [a]
my_reverse [] = []
my_reverse [x] = [x]
my_reverse (x:xs) = (my_reverse xs) ++ [x]
my_min_elem :: (Ord a) => [a] -> a
my_min_elem [x] = x
my_min_elem (x:xs)
| x < head xs = my_min_elem ([x] ++ tail xs)
@sasamijp
sasamijp / aaaa.py
Last active December 18, 2018 06:54
n = 1000
values = [5+(i**2 % 111) for i in range(1, n+1)]
weights = [20+(i % 11) for i in range(1, n+1)]
W=800
print("maximize")
print("-", " + ".join(str(v)+" x("+str(i+1)+")" for i, v in enumerate(values)))
print("subject to")
print("c1:", " + ".join(str(w)+" x("+str(i+1)+")" for i, w in enumerate(weights)), "<=", str(W))
print("bounds")
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 1.09 GBytes 934 Mbits/sec 378 sender
[ 4] 0.00-10.00 sec 1.08 GBytes 931 Mbits/sec receiver
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.04 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.04 sec 1.08 GBytes 927 Mbits/sec receiver
import xml.etree.ElementTree as ET
import requests
urls ="""https://www.youtube.com/api/timedtext?caps=asr&expire=1528456705&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&v=03H1qSot9_s&hl=ja_JP&signature=7DEDE0C063DB0BA0AD5980CE7BF43A827D02467A.AA2D771D078788DDACF627D9D8F00D8E643ADF05&key=yttt1&asr_langs=es%2Cko%2Cru%2Cde%2Cit%2Cja%2Cnl%2Cen%2Cpt%2Cfr&lang=ja&fmt=srv3
https://www.youtube.com/api/timedtext?v=VN_rVULV9UM&expire=1528457192&hl=ja_JP&caps=asr&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&asr_langs=it%2Cko%2Cde%2Cfr%2Cja%2Cen%2Cru%2Ces%2Cpt%2Cnl&signature=D5C83F6597621548DDC89147F975009B4D8D1ED9.C95E25932F65A2BEFEB4C471E13962C594272463&key=yttt1&lang=ja&fmt=srv3
https://www.youtube.com/api/timedtext?key=yttt1&signature=C03440573CE92B7BBFDE76CD37FCDCC1BE9DCC3D.707042A3F4F7FE02B4D0E43426DFFEA4F6145E46&asr_langs=fr%2Cru%2Ces%2Cnl%2Cpt%2Cde%2Cko%2Cit%2Cen%2Cja&hl=ja_JP&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&expire=1528457548&v=-URg3ZoyBJw&caps=asr&lang=ja&fmt=srv3
https://www.youtube.com/api/timedtext?asr_langs=pt%2Cr
inputs = []
while line = gets
inputs.push line.chomp!
end
puts '\documentclass[onecolumn, a4paper, dvipdfmx]{jsarticle}
\usepackage{listings}
\usepackage{color}
%\usepackage{pdfcolparallel}
$("#chiba").hover(function () {
if(!(lock_chiba)){
lock_chiba = true;
$('#west').find('#info').transition({ opacity: 1 });
$('#west').find("#info .info-name").shuffleLetters();
$('#west').find("#info .rainfall").shuffleLetters();
$('#west').find("#info .temperature").shuffleLetters();
$('#west').find("#info .windspeed").shuffleLetters();
setTimeout(function(){
$('#west').find('#line').transition({ opacity: 1 });
#include <iostream>
#include "./Eigen/Core"
using namespace std;
using namespace Eigen;
class NN {
private:
float reactified_linear(float u){
return u * (u > 0);