Skip to content

Instantly share code, notes, and snippets.

View tetsunosuke's full-sized avatar

ITO Tetsunosuke tetsunosuke

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
userA
userB
userC
userD
userE
userF
userG
userH
userI
0.9396255256013545 0.3367691598333523 0.4304289481662925 0.9716648357605862 0.30061667603307807
0.8249210452778653 0.5229918840641037 0.10817072956011442 0.012415164656647493 0.197599360875788
0.2254650497769657 0.21738889811558515 0.7333994572403185 0.4576423681568701 0.014836920933792408
0.3693109709142376 0.38954973828723316 0.032986092523487165 0.2545204280175418 0.2923733746010295
0.10591256950816663 0.44201924159520944 0.8137417513611921 0.1684907940326833 0.8911988164919242
0.14183008482897963 0.5042466232891868 0.44667171187246424 0.6649653331104555 0.7156342479618656
0.5129330809593741 0.5244022890748185 0.13539881163581957 0.28202973893725625 0.22427220210434762
0.8098740814811537 0.2386968671376024 0.19306875901795562 0.6194694550969645 0.2020347425892487
0.03602131193358693 0.01195692217218558 0.4429899900477261 0.5142129751876139 0.11541217961435135
@tetsunosuke
tetsunosuke / caesar.php
Created October 7, 2019 08:27
シーザー暗号
<?php
// 入力として与えられた暗号文
$input = "AXBCDYE";
$inputLength = strlen($input);
$alphabets = "ABCDEFGHIJKLMNOPQRSTUWXYZ";
$alphabetsLength = strlen($alphabets);
$output = "";
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
import requests
import base64
import json
import os
GOOGLE_CLOUD_VISION_API_URL = 'https://vision.googleapis.com/v1/images:annotate?key='
API_KEY = 'こちらにAPIキーを'
# APIを呼び、認識結果をjson型で返す
<html>
<head>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js'></script>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/lity/1.6.6/lity.css' />
<script src='https://cdnjs.cloudflare.com/ajax/libs/lity/1.6.6/lity.js'></script>
</head>
<body>
<a href="blank.html" target="_blank">blank</a>
<a href="http://phi-jp.github.io/phiary-workspace/assets/images/cafe.jpg" data-lity>simple</a>
<a href="#">hash</a>
@tetsunosuke
tetsunosuke / index.node.js
Created October 16, 2018 11:26
node.js の暗号化テスト
var Blowfish = require("javascript-blowfish");
const key = "secret key";
const message = "てすと";
var bf = new Blowfish(key);
// Encryption
var encrypted = bf.encrypt(message);
var encryptedMime = bf.base64Encode(encrypted);
console.log(encryptedMime);
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="問い合わせ"/>
<Content type="html"><![CDATA[
<script src="https://embed.small.chat/TAA47MC3CGB1K7B0FL.js" async></script>
]]>
</Content>
</Module>
@tetsunosuke
tetsunosuke / naisengadget.xml
Last active April 8, 2019 09:10
内線表検索ガジェット
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="内線検索" height="400"/>
<UserPref name="key" display_name="Spreadsheetのキー" default_value="" datatype="string"/>
<Content type="html"><![CDATA[
<!-- libs -->
<script src="https://www.google.com/jsapi"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- jquery.quicksearch.js minified -->
<script>
@tetsunosuke
tetsunosuke / gadgettest.xml
Last active May 14, 2018 05:22
gadgettest.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="内線検索" height="400"/>
<UserPref name="key" display_name="Spreadsheetのキー" default_value="" datatype="string"/>
<Content type="html"><![CDATA[
<!-- libs -->
<script src="https://www.google.com/jsapi"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- jquery.quicksearch.js minified -->
<script>