Skip to content

Instantly share code, notes, and snippets.

View AWtnb's full-sized avatar
i love coffee

AWtnb AWtnb

i love coffee
View GitHub Profile
@AWtnb
AWtnb / index.html
Last active July 2, 2020 01:24
simple-browser-clock
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>simple-clock</title>
<style>
body {
background: #fef6e4;
}
@AWtnb
AWtnb / markdown.less
Last active September 9, 2022 03:00
personal markdown style less
// ------------------------------------------------------------
// original style sheet for markdown-compiled document.
// ------------------------------------------------------------
@import url('https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp_s-noto.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1+Code&display=swap');
@AWtnb
AWtnb / WHOLE.ps1
Last active October 11, 2022 02:44
pwsh-custom-cmdlets | 個人用バックアップ($Profile から読み込んでいる .ps1 スクリプトを集約)
<# /////////////////////////////////////////////////////////////////
//
// BEGINING OF FILE:
// ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
//
///////////////////////////////////////////////////////////////// #>
<# ==============================
@AWtnb
AWtnb / totalTime2mail.js
Created April 25, 2020 06:16
send mail of total study time
/*
勉強時間の内訳を取得
*/
// グローバル変数としてシートを取得
var sht = SpreadsheetApp.getActiveSpreadsheet().getSheets();
////////////////////////////////////////////////////////
// 集計時処理
// ==UserScript==
// @name adcloser-for-youtube
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@AWtnb
AWtnb / addSearchMenu.gs
Last active March 6, 2020 01:40
googleスプレッドシートに検索メニューを追加
function onOpen() {
var ui = SpreadsheetApp.getUi();
var menu = ui.createMenu('🎃現在の行でWeb検索');
menu.addItem('google', 'searchOnGoogle');
menu.addItem('googleマップ', 'searchOnGoogleMap');
menu.addToUi();
}
function searchOnGoogle() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
@AWtnb
AWtnb / index.html
Last active March 1, 2020 14:58
decorate table from list
<!DOCTYPE html>
<style>
form {
margin-left: 1.5em;
}
td, tr {
border: 1px solid;
vertical-align: baseline;
@AWtnb
AWtnb / slack_gyotaku_robot.gs
Last active February 10, 2020 03:54
gyotaku robot on slack
/*
slack のカスタムアクションでシートに記入していく。
フルに稼働するためにはそのチャンネルにアプリとして追加する必要あり。
scope: interactive component / users.read / reactions.write / channels:read / groups:read
*/
var PROPERTIES = PropertiesService.getScriptProperties();
var BOT_USER_TOKEN = PROPERTIES.getProperty("BOT_USER_TOKEN");
var SHEET_ID = PROPERTIES.getProperty("SHEET_ID");
@AWtnb
AWtnb / diary_template_gerenator.js
Last active January 9, 2021 01:43
diary template generator by slack
/*
次の月の日記テンプレートを作成してslackに投稿する
library: moment.js
bot token scopes
- chat:write
*/
function getYobi(i){
return [ "日", "月", "火", "水", "木", "金", "土" ][i]
}
@AWtnb
AWtnb / releaseIndex.html
Last active January 19, 2020 07:42
index_release_tool
<!DOCTYPE html>
<style>
body {
background-color: mintcream;
color: darkslategrey;
}
a {
color: darkviolet;
}