Skip to content

Instantly share code, notes, and snippets.

@junkor-1011
junkor-1011 / README.md
Last active December 15, 2024 09:31
TypeScript ErrorHandling with Result Type Example

TypeScript ErrorHandling with Result Type Example

(todo)

@junkor-1011
junkor-1011 / <distribution-name>.user-data
Last active November 22, 2024 15:03
WSL2 cloud-init example
#cloud-config
# EXAMPLE
timezone: Asia/Tokyo
locale: en_US.utf8
users:
- name: wsl-user
groups: [adm, sudo, wheel]
sudo:
@junkor-1011
junkor-1011 / hello.ipynb
Last active October 17, 2024 14:21
Scala(2.13) Jupyter Notebook Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@junkor-1011
junkor-1011 / .gitignore
Last active July 11, 2024 14:55
nodejs unzip-note
*.zip
tmp/
temp/
data/
export
# Created by https://www.toptal.com/developers/gitignore/api/node,deno,vim,emacs,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=node,deno,vim,emacs,visualstudiocode
### Deno ###
@junkor-1011
junkor-1011 / README.md
Last active May 4, 2024 06:52
Setup Note for Ubuntu24.04 LTS Desktop

Ubuntu24.04(Noble Numbat) LTS Desktop セットアップメモ

コンセプトのメモ:

  • デスクトップ用途含めてユーザー・実績が多く、安定性に優れると考えられるため、 Ubuntu LTS版をベースOSに使う
  • waylandを基本的に使うようにする(ホスト/ゲスト共に)
  • WindowsのWSL2に着想を得て、KVMベースの仮想マシンを諸々の開発や検証に使うようにする
    • ベース側(Ubuntu24.04 LTS Desktop)はホストOSとしての機能と、ブラウザ周りなどデスクトップで行うのに適したものを行うのに使い、 必要以上に開発用途のライブラリ・ツールを入れすぎたりカスタマイズを行わないようにする
@junkor-1011
junkor-1011 / README.md
Last active July 3, 2023 15:56
note(escape): rewriting html file by using jsdom

rewriting html by using jsdom

Example

  • rewrite single file
import path from 'node:path';
@junkor-1011
junkor-1011 / index.html
Created June 5, 2023 12:29
LT資料: pep668 & pipx
<!DOCTYPE html>
<html>
<head>
<title>about pep668</title>
<meta charset="utf-8">
<style>
@page {
size: 1210px 681px;
margin: 0;
@junkor-1011
junkor-1011 / README.md
Last active May 13, 2023 15:46
deno test

test

cli install

deno install \
  -n hoge \
  --import-map=https://gist.githubusercontent.com/junkor-1011/96efc32a454e956d468ba5516e811ca9/raw/ed87f6757b1524c02db5de2d00e513b6bef00d90/import_map.json \
  # --no-check \
 https://gist.githubusercontent.com/junkor-1011/96efc32a454e956d468ba5516e811ca9/raw/ed87f6757b1524c02db5de2d00e513b6bef00d90/cli.ts
@junkor-1011
junkor-1011 / .editorconfig
Last active May 13, 2023 08:34
LT資料: Makefile as a task runner
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
@junkor-1011
junkor-1011 / .gitignore
Last active April 24, 2023 14:41
geopandas intro
testdata
tmp
temp
.tmp
.temp
# Created by https://www.toptal.com/developers/gitignore/api/jupyternotebooks,visualstudiocode,python,pycharm+all
# Edit at https://www.toptal.com/developers/gitignore?templates=jupyternotebooks,visualstudiocode,python,pycharm+all
### JupyterNotebooks ###