Skip to content

Instantly share code, notes, and snippets.

Avatar

AWtnb AWtnb

  • Jimbocho, Japan.
View GitHub Profile
@AWtnb
AWtnb / WHOLE.py
Last active Oct 6, 2021
python-script-called-from-PowerShell
View WHOLE.py
############################
# .\print_color.py
############################
"""
python で色つき出力のためのスニペット
"""
class pycolor:
@AWtnb
AWtnb / BackOrOutdent.js
Last active Mar 18, 2021
テキストエディタ Mery 用の自作マクロ集。
View BackOrOutdent.js
// ------------------------------------------------------------
// インデント直後では逆インデント、それ以外は直前の1字を削除
// ------------------------------------------------------------
function selectLine() {
document.selection.EndOfLine(false, mePosLogical);
document.selection.StartOfLine(true, mePosLogical);
}
function getIndentDepth(s) {
@AWtnb
AWtnb / qrgen.go
Created Oct 8, 2020
qrcode generater with golang
View qrgen.go
package main
import (
"flag"
"fmt"
"image/png"
"os"
"time"
"github.com/boombuler/barcode"
@AWtnb
AWtnb / script.js
Last active Oct 14, 2021
javascript for formatting markdown-compiled html
View script.js
// ------------------------------------------------------------
// format markdown-compiled html with js
// ------------------------------------------------------------
const getElems = (query) => {
return Array.from(document.querySelectorAll(query));
};
const insertFilename = (elm) => {
const filename = elm.className.replace(/^language-/, "");
@AWtnb
AWtnb / github-orange.css
Last active Aug 17, 2020
typora custom-css based on github theme
View github-orange.css
:root {
--side-bar-bg-color: #fafafa;
--control-text-color: #777;
}
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
font-family: 'Open Sans';
font-style: normal;
@AWtnb
AWtnb / cobalt-blue.css
Last active Sep 9, 2020
typora custom-css based on cobalt theme
View cobalt-blue.css
:root {
--bg-color: #141d28;
--side-bar-bg-color: #090b10;
--control-text-color: #a9aaab;
--primary-color: #03b1fc;
--primary-btn-border-color: #0295d4;
--active-file-text-color: inherit;
--active-file-border-color: #0295d4;
--active-file-bg-color: #131c29;
--primary-btn-text-color: #0295d4;
@AWtnb
AWtnb / index.html
Last active Jul 2, 2020
simple-browser-clock
View index.html
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>simple-clock</title>
<style>
body {
background: #fef6e4;
}
@AWtnb
AWtnb / fuzzylauncher.go
Last active Oct 14, 2021
fuzzy directory launcher with golang
View fuzzylauncher.go
package main
import (
"bufio"
"flag"
"fmt"
"io/fs"
"net/url"
"os"
"os/exec"
@AWtnb
AWtnb / markdown.less
Last active Oct 14, 2021
personal markdown style less
View markdown.less
// ------------------------------------------------------------
// original style sheet for markdown-compiled document.
// ------------------------------------------------------------
// load YakuHanMPs_Noto font in html file.
// https://github.com/qrac/yakuhanjp
// <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.3.1/dist/css/yakuhanmp_s-noto.min.css">
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');
@AWtnb
AWtnb / WHOLE.ps1
Last active Oct 16, 2021
pwsh-custom-cmdlets
View WHOLE.ps1
<# ==============================
pwsh profile
encoding: utf8bom
============================== #>
@(
"ImportExcel",
"Scoop-Completion"