This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXX = clang++ | |
CXXFLAGS = -std=c++14 -O3 -pedantic -Wall -Wextra -Werror | |
LDLIBS = -lsqlite3 | |
SRCS = $(wildcard *.cpp) | |
OBJS = $(SRCS:.cpp=.o) | |
EXEC = cqlite | |
.PHONY: all | |
all: $(EXEC) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .zprofile | |
alias ll="ls -lhAF" | |
alias delta=_delta_auto_dark | |
alias code="code-insiders" | |
rf() { | |
read -q "?rm -rf $*? " && rm -rf "$@" | |
echo | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function y<T extends (...args: any) => any>(f: (t: T) => T): T { | |
function g(x: typeof g): T { | |
return function(...args) { | |
return f(x(x))(...args); | |
} as T; | |
} | |
return g(g); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in $HOME/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision; do | |
/usr/libexec/PlistBuddy -c 'Print :Entitlements:application-identifier' /dev/stdin \ | |
<<< $(security cms -D -i "$file") | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
editor = nvim | |
pager = zsh -c _delta_auto_dark | |
excludesfile = ~/.gitignore_global | |
[init] | |
defaultBranch = main | |
[rebase] | |
autoStash = true | |
autoSquash = true | |
[interactive] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set fish_greeting "" | |
set --export LANG "C" | |
alias imx='iex -S mix' | |
alias iphx='iex -S mix phx.server' | |
function fish_prompt --description 'Write out the prompt' | |
set -g __fish_git_prompt_showcolorhints | |
set -g __fish_git_prompt_showdirtystate | |
set -g __fish_git_prompt_showstashstate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
current_dir=$(pwd) | |
for plugin in "$(dirname "$0")"/*; do | |
if [ -d "$plugin" ]; then | |
cd "$plugin"; | |
if [ -e .git ]; then | |
printf "Updating $(basename "$plugin"): " | |
git pull |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) | |
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
endif | |
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'tpope/vim-fugitive' | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug '/usr/local/opt/fzf' | |
Plug 'junegunn/fzf.vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* インデント */ | |
"editor.tabSize": 2, | |
"editor.rulers": [80, 120], | |
/* フォント */ | |
"editor.fontFamily": "'IBM Plex Mono', 'IBM Plex Sans JP'", | |
"editor.fontSize": 14, | |
"debug.console.fontSize": 14, | |
"terminal.integrated.fontSize": 14, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(package-initialize) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. |