Skip to content

Instantly share code, notes, and snippets.

Seiya Kuramochi sasamijp

Block or report user

Report or block sasamijp

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
@sasamijp
sasamijp / custom.css
Last active Apr 13, 2019
BTDのカスタムCSSに貼り付けると見た目がYorufukurouっぽくなるやつ
View custom.css
.mdl {
height: 100%;
width: 100%;
}
.mdl-column-rhs {
width:100%;
}
View a.hs
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)
View aaaa.py
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")
View client
[ 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
View server
[ 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
View textmito.py
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
View md2tex.rb
inputs = []
while line = gets
inputs.push line.chomp!
end
puts '\documentclass[onecolumn, a4paper, dvipdfmx]{jsarticle}
\usepackage{listings}
\usepackage{color}
%\usepackage{pdfcolparallel}
View part.js
$("#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 });
View main.cpp
#include <iostream>
#include "./Eigen/Core"
using namespace std;
using namespace Eigen;
class NN {
private:
float reactified_linear(float u){
return u * (u > 0);
View index.html
<!doctype html>
<html>
<head>
<title>Self Camera</title>
<meta charset="utf-8">
<script src="https://code.createjs.com/easeljs-0.7.1.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
You can’t perform that action at this time.