Skip to content

Instantly share code, notes, and snippets.

View gangjun06's full-sized avatar

Kangjun Lee gangjun06

View GitHub Profile
@gangjun06
gangjun06 / findAnime.js
Created November 3, 2020 12:09
Search Anime with ios scriptable and shortcuts
const data = await Search(args.shortcutParameter)
await DisplaySelect(data.results)
const DetailHtml= (data) => (`
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=3.0">
<title>Anime Detail</title>
</head>
<body>
@gangjun06
gangjun06 / classcard2anki.go
Created March 5, 2022 09:15
클래스카드의 단어장을 Anki단어장으로 변환하여 줍니다.
package main
import (
"bufio"
"encoding/csv"
"fmt"
"io"
"log"
"net/http"
"os"
function exportToJSON() {
const result = {}
const spreadSheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()
spreadSheet.forEach(sheet => {
const name = sheet.getName()
const matched = name.match(/\[([가-힣!]+)\]/)
if(!matched) return
result[matched[1]] = []
const num = sheet.getLastRow()
const values = sheet.getSheetValues(2,1,num, 5)
@gangjun06
gangjun06 / Turn-Off-Youtube-Notify.js
Created February 11, 2023 11:48
Turn off every notification of youtube channels.
// Simple script for turn off all notification of youtube channels.
// It was created on 2023-02-11. May not working correctly
// 1. Visit https://www.youtube.com/feed/channels
// 2. Open developer tools console
// 3. Paste and run following script.
var delay = () => new Promise((res) => setTimeout(res, 10))
(async () => {
for(const item of list){