Skip to content

Instantly share code, notes, and snippets.

View machakann's full-sized avatar
💭
I may be slow to respond.

machakann

💭
I may be slow to respond.
View GitHub Profile
@machakann
machakann / gamess.sh
Last active September 16, 2018 13:46
Bash script to run a new GAMESS process
#!/bin/bash
# Version string of gamess to use
if [ -z "$GAMESS_PATH" ]; then
GAMESS_PATH="/opt/gamess/rungms"
fi
# Version string of gamess to use
if [ -z "$GAMESS_VER" ]; then
GAMESS_VER="00"
fi
@machakann
machakann / kemologo.vim
Created September 22, 2018 16:33
きょうもどったん!ばったん!お・お・さ・わ・ぎ!!! (ウッホホホーホホwwwwwww)
function! s:KemonofriendsFill(rowoffset, coloffset) abort
let filling = []
for i in range(15 + a:rowoffset*2)
let line = repeat(' ', 187 + a:coloffset*2)
let filling += [line]
endfor
call append(0, filling)
endfunction
function! KemonofriendsLogo(...) abort
@machakann
machakann / profile_ezfilter.vim
Created February 11, 2020 09:57
The script to profile osa_filter() function in asyncomplete-ezfilter.vim
function! Tic(...)
if a:0 > 0 && !empty(a:1)
if exists(':PP') == 2
PP! a:1
else
echomsg string(a:1)
endif
endif
let s:starttime = reltime()
endfunction
@machakann
machakann / Comparison_with_QuadGK.ipynb
Last active April 8, 2020 11:38
quadde の性能評価と quadgk との比較
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@machakann
machakann / MorsePotential.jl
Created November 5, 2021 04:06
Morse potential and energy levels
### A Pluto.jl notebook ###
# v0.17.1
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end