Skip to content

Instantly share code, notes, and snippets.

View nekolinuxblog's full-sized avatar

nekolinuxblog

View GitHub Profile
@nekolinuxblog
nekolinuxblog / main.go
Created November 25, 2022 14:28
AtCoder用の入出力ルーチン付きテンプレート
/*++++ a code submitted by shunsk2020 +++++++++++++
/\ /ヽ
{/ ̄ ̄ ̄ヽ!
∠__╋__j
AC ヨシ! / (.)八(.) ヽ
{=/(人_)=|´ ̄)`ヽ
\ { {_,ノ ノ //~ `
⊂ ̄ヽ_>―――‐''’,〈 (_)
`ヘ(_ ィ r―‐γ !
_,ノ j | |
@nekolinuxblog
nekolinuxblog / Rprofile.site
Last active June 12, 2022 03:00
サイト全体に対するRのパッケージリポジトリ(ミラー)指定
local({
r <- getOption("repos")
r["CRAN"] <- "https://cran.ism.ac.jp/"
options(repos=r)
})
@nekolinuxblog
nekolinuxblog / easywpmaker.sh
Created April 7, 2022 11:27
archlinux用の壁紙作成スクリプト
#!/bin/sh
########################################################
# 2022/04/07
# ok.xmonad@gmail.com
#
# お洒落な気分でプログラミングの参考スクリプト
#
# Every photo should be the archlinux wallpaper.
#
# 適当にarchlinuxの壁紙を作る
------------------------------------------------------------------------------
-- shunsk's xmonad.hs file for 0.17.0
-- https://ok-xmonad.blogspot.com
--
-- base config with polybar
-- v001
------------------------------------------------------------------------------
{-# LANGUAGE NoMonomorphismRestriction #-}
import XMonad
@nekolinuxblog
nekolinuxblog / scsh_window
Created January 18, 2022 10:53
maimとimage magickで影付きウインドスクリーンショット
#!/bin/sh
########################################################
# 2022/01/17
# ok.xmonad@gmail.com
# すくりーんしょっと
########################################################
output_filename=sc_window_$(date +%Y%m%d%H%M%S).png
sc_dir=${HOME}/Pictures/screenshot
@nekolinuxblog
nekolinuxblog / xmonad.hs
Last active November 11, 2021 16:19
Yeah!! 0.17.0's xmonad.hs
------------------------------------------------------------------------------
-- shunsk's xmonad.hs file for 0.17.0
-- https://ok-xmonad.blogspot.com
--
-- xmobarかpolybarの設定ファイルは別途必要
-- https://ok-xmonad.blogspot.com/p/blog-page.html
------------------------------------------------------------------------------
import XMonad
import qualified XMonad.StackSet as W
@nekolinuxblog
nekolinuxblog / ok-xmonad.hsfiles
Last active March 19, 2021 12:43
Haskell stack template for managing xmonad.hs
{-# START_FILE .gitignore #-}
# files produced by compiler
*.o
*.hi
*.errors
*.cabal
# compiled xmonad executable
xmonad-*
@nekolinuxblog
nekolinuxblog / xmonad.hs
Created March 10, 2021 07:32
navigation2Dモジュールを使った例
------------------------------------------------------------------------------
-- shunsk's base xmonad.hs file for custamize
-- https://ok-xmonad.blogspot.com
-- Navigation2Dモジュール説明用
-- 説明で使うxmonad.hsのベースになるファイル
-- ~/.config/xmobar/mobarrcはリネームしておく
-- xmobarのフォントは日本語が使えるIPAフォント
-- 必要アプリ
@nekolinuxblog
nekolinuxblog / xmonad.hs
Created March 2, 2021 07:21
How to use DynamicProject
--------------------------------------------------------------------------------
-- shunsk's base xmonad.hs file for dynamicproject
-- https://ok-xmonad.blogspot.com
--
-- 必要なプログラム
-- kitty(ターミナルプログラム)
-- xmobar
-- dmenu
-- chromium
-- IPAGothic font
@nekolinuxblog
nekolinuxblog / xmonad.hs
Last active March 1, 2021 06:07
example for named scratchpad of xmonad
--------------------------------------------------------------------------------
-- shunsk's base xmonad.hs file for NamedScratchPad
-- https://ok-xmonad.blogspot.com
--
-- 必要な外部アプリ
-- kittyターミナル
-- dmenu
--------------------------------------------------------------------------------
import System.Exit