Skip to content

Instantly share code, notes, and snippets.

View JunichiWatanuki's full-sized avatar
🏠
Working from home

Junichi Watanuki JunichiWatanuki

🏠
Working from home
View GitHub Profile
@JunichiWatanuki
JunichiWatanuki / slack-for-completeUploadExternal.sh
Last active November 4, 2024 14:59
slack-for-completeUploadExternal.sh
#!/bin/bash
### 本スクリプトは、SlackのファイルアップロードAPIを実行するためのものである。
### files.upload APIは2025年3月に廃止となる代わりに、次の2つのAPIを併用する方式へ移行する。
### なお具体的にその2つのAPIは、
### files.getUploadURLExternal API と files.completeUploadExternal API
### の2つである。
###
### 移行後のアップロード方式を行うためには、4つのパラメータが必要であり、このスクリプトに
### おいては4つのパラメータを引数として取り扱うこととしている。
@JunichiWatanuki
JunichiWatanuki / upload-files-to-slack.sh
Created November 4, 2024 05:28
upload-files-to-slack.sh
#!/bin/bash
### 位置パラメータ(bashのSpecialParameters)を定義した配列に追加する。
declare -a arrSpecialParameters
### SlackAPI利用時のパラメータ
SLACK_OAUTH_TOKEN=xoxp-1234567890123-1234567890123-1234567890123-abcdef0123456789abcdef0123456789
SLACK_POST_CHANNEL_ID=D0123456789
SLACK_POST_TITLE=投稿メッセージ
SLACK_UPLOAD_FILES_LIST=/home/hoge/uploadTarget.files
##### uploadTarget.files には対象ファイルをフルパスで記述しておくこと。
@JunichiWatanuki
JunichiWatanuki / iem-plan_01.js
Last active September 5, 2015 12:52
InfiniteElementMethod_E2D3-LIG
!function(){
var bP={};
var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
var c1=[-150, 40], c2=[-50, 170], c3=[-10, 240]; //Column positions of labels.
var colors =["#3366CC", "#DC3912", "#FF9900","#109618", "#990099", "#0099C6"];
bP.partData = function(data,p){
var sData={};
sData.keys=[
@JunichiWatanuki
JunichiWatanuki / biPartite.js
Last active September 5, 2015 04:15
biPartiteForLig
!function(){
var bP={};
var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
var c1=[-130, 40], c2=[-50, 100], c3=[-10, 140]; //Column positions of labels.
var colors =["#3366CC", "#DC3912", "#FF9900","#109618", "#990099", "#0099C6"];
bP.partData = function(data,p){
var sData={};
sData.keys=[
@JunichiWatanuki
JunichiWatanuki / README.md
Last active August 29, 2015 14:26 — forked from mbostock/.block
Sunburst Partition

A sunburst is similar to the treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.