Skip to content

Instantly share code, notes, and snippets.

View tai-cha's full-sized avatar

taichan tai-cha

View GitHub Profile
@tai-cha
tai-cha / LICENCE
Last active July 26, 2024 09:34
misskey providor example for next-auth
ISC License
Copyright (c) 2022-2024, Balázs Orbán
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF

Keybase proof

I hereby claim:

  • I am taichanne30 on github.
  • I am taichan (https://keybase.io/taichan) on keybase.
  • I have a public key ASAUbmJ3vklOVZb4Sk7Zbx5lgRL2r66mkriiG5tMo296ogo

To claim this, I am signing this object:

@tai-cha
tai-cha / array_to_str.js
Created May 26, 2020 11:02
array to string sample
const strArray = ["This", "is", "test", "code", "to", "join", "string"];
const arrayToString = (arr) => arr.reduce((acc, cur) => acc + " " + cur);
console.log(arrayToString(strArray));
@tai-cha
tai-cha / cdfd.js
Last active May 14, 2020 08:28 — forked from mtsgi/cdfd.js
Classroomの資料一括ダウンロードするやつ (Google Classroom Drive Files Downloader)
document.querySelectorAll('a[aria-label][data-focus-id][target=_blank]').forEach(anc => {
if(anc.getAttribute('href').search(/https?:\/\/drive\.google\.com\/open\?/) === 0)
window.open(anc.getAttribute('href').replace(/https?:\/\/drive\.google\.com\/open\?/, 'https://drive.google.com/uc?export=download&'), anc.getAttribute('href'))
})
@tai-cha
tai-cha / wip_kao.html
Created January 25, 2020 16:43
CSSだけで顔が描きたかった
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div class="top">
@tai-cha
tai-cha / inviteAll.rb
Last active June 26, 2019 06:11
Slackで特定チャンネルに全員招待するやつ
require 'slack-ruby-client'
class OutOfRangeError < Exception
end
TOKEN = 'Replace here your token'
if ARGV.include?("--help")
puts "このアプリケーションは指定したSlackのチャンネルに対して全員招待をするものです。"
puts "使用法: ruby inviteAll.rb [引数]\n"
@tai-cha
tai-cha / ifSample3.pde
Created June 12, 2019 13:50
ちょっとだけしかく、もうちょっとだけおおきいしかく、そのあとまる
int count = 0; //カウント用変数
void setup(){
background(255,255,255);
size(480, 480);
stroke(0);
noFill();
}
void draw(){
@tai-cha
tai-cha / ifSample2.pde
Created June 12, 2019 13:27
ちょっとだけしかく、そのあとまる
int count = 0; //カウント用変数
void setup(){
background(255,255,255);
size(480, 480);
stroke(0);
noFill();
}
void draw(){
@tai-cha
tai-cha / ifSample1.pde
Last active June 12, 2019 13:14
ちょっとだけ出て消えるしかく
int count = 0; //カウント用変数
void setup(){
background(255,255,255);
size(480, 480);
stroke(0);
noFill();
}
void draw(){
@tai-cha
tai-cha / insert.js
Created June 9, 2019 10:28
課題5の検証で毎回打つのめんどくさいから自動化した、コンソールにコピペでOK、データ変更は配列いじればOK
{
let data = [
["イギリス", 245, 63181, 2434],
["日本", 378, 126200, 4841],
["アメリカ", 9628, 327830, 20412],
["ロシア", 17098, 146804, 2097]
];
let form = document.forms[0];
let inputs = form.getElementsByTagName("input");