Skip to content

Instantly share code, notes, and snippets.

View mrkn's full-sized avatar
:octocat:

Kenta Murata mrkn

:octocat:
View GitHub Profile
@mrkn
mrkn / zshrc_useful.sh
Created December 25, 2021 03:09 — forked from mollifier/zshrc_useful.sh
少し凝った zshrc
View zshrc_useful.sh
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする
View config.log
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /usr/src/ruby/configure --build=x86_64-linux-gnu --prefix=/usr/local --disable-install-doc --enable-shared optflags=-O3
## --------- ##
## Platform. ##
View alacritty.log
Process: alacritty [90052]
Path: /Applications/Alacritty.app/Contents/MacOS/alacritty
Identifier: io.alacritty
Version: 0.4.3-rc1 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: alacritty [90052]
User ID: 501
Date/Time: 2020-06-01 12:05:01.009 +0900
View libgr.log
$ brew install --verbose libgr
/usr/bin/sandbox-exec -f /private/tmp/homebrew20200131-84978-1r09280.sb nice ruby -W0 -I $LOAD_PATH -- /opt/brew/Library/Homebrew/build.rb /opt/brew/Library/Taps/homebrew/homebrew-core/Formula/libgr.rb --verbose
==> Downloading https://github.com/sciapp/gr/archive/v0.46.0.tar.gz
Already downloaded: /Users/mrkn/Library/Caches/Homebrew/downloads/4f2bd12846615a5586088e085b5acb3779ef4b768d38626c4011353539be62d6--gr-0.46.0.tar.gz
==> Verifying 4f2bd12846615a5586088e085b5acb3779ef4b768d38626c4011353539be62d6--gr-0.46.0.tar.gz checksum
tar xof /Users/mrkn/Library/Caches/Homebrew/downloads/4f2bd12846615a5586088e085b5acb3779ef4b768d38626c4011353539be62d6--gr-0.46.0.tar.gz -C /private/tmp/d20200131-84979-1egd1kd
cp -pR /private/tmp/d20200131-84979-1egd1kd/gr-0.46.0/. /private/tmp/libgr-20200131-84979-16b2yni/gr-0.46.0
chmod -Rf +w /private/tmp/d20200131-84979-1egd1kd
==> make GRDIR=/opt/brew/Cellar/libgr/0.46.0
/Applications/Xcode_11.3.app/Contents/Developer/usr/bin/make -C lib/gks GRDIR=
View new_api_on_plotly.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View new_box_plot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View charty_new_bar_plot_api.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrkn
mrkn / lambda_function.rb
Created August 24, 2019 03:17
The lambda function of daily_prime_check
View lambda_function.rb
require 'json'
require 'prime'
require 'net/http'
require 'uri'
SLACK_URL = 'https://hooks.slack.com/services/....'
def post_to_slack(url, message)
uri = URI.parse(url)
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
View first_commits.sh
git log --pretty=format:'%ct %h %cn' | \
sort -n | \
ruby -e "gets;c={};while line = gets;t, _, n = line.chomp.split(' ');puts %Q(#{c[n] = n} #{Time.at(t.to_i).strftime('%Y%m%dT%H%M%S')}) unless c[n];end"
View iruby_folium_sample_ja.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.