I hereby claim:
- I am p1xelher0 on github.
- I am p1xelher0 (https://keybase.io/p1xelher0) on keybase.
- I have a public key ASDxA7YLfph-222OjyjIZbMQvMWejInfPqE3gpLUaR7qswo
To claim this, I am signing this object:
# https://superuser.com/questions/270214/how-can-i-change-the-colors-of-my-xterm-using-ansi-escape-sequences | |
colortest() { | |
text='•‿•' | |
printf "base "; | |
for base in 00 01 02 03 04 05 06 07 08 09 '0A' '0B' '0C' '0D' '0E' '0F'; do | |
printf " ${base} "; | |
done | |
printf "\n"; | |
for FG in 00 18 19 08 20 07 21 15 01 16 03 02 06 04 05 17; do | |
printf "\e[38;5;${FG}mcolor${FG}\e[0m "; |
////// | |
// -- basic react linting with prettier | |
// install the following | |
yarn add -D babel-eslint eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-react prettier eslint-plugin-import | |
//.eslintrc |
" I work on both Linux and macOS, so some settings differ on those system | |
function! g:IsMacOS() | |
if has('unix') | |
let s:uname = system('uname') | |
if s:uname ==? "Darwin\n" | |
return 1 | |
else | |
return 0 | |
endif | |
endif |
data Two a b = | |
Two a | |
b | |
deriving (Eq, Show) | |
instance (Semigroup a, Semigroup b) => | |
Semigroup (Two a b) where | |
(Two x1 y1) <> (Two x2 y2) = Two (x1 M.<> x2) (y1 M.<> y2) | |
instance (Monoid a, Semigroup a, Monoid b, Semigroup b) => |
module ConstantInstance where | |
import Data.Monoid as M | |
newtype Constant a b = Constant | |
{ getConstant :: a | |
} deriving (Eq, Ord, Show) | |
instance Functor (Constant a) where | |
fmap f (Constant a) = Constant a |
I hereby claim:
To claim this, I am signing this object:
open Rresult | |
open Sexplib0.Sexp | |
let parse root_path = | |
let read_config path = | |
let root_path = path |> Fpath.to_dir_path |> Fpath.normalize in | |
let odot_file = Fpath.append root_path Model.config_file in | |
Bos.OS.File.read odot_file | |
in |
{ | |
"special": { | |
"background": "#090803", | |
"foreground": "#dfd1be", | |
"cursor": "#dfd1be" | |
}, | |
"colors": { | |
"color0": "#090803", | |
"color1": "#936D16", | |
"color2": "#89765F", |
local nvim_lsp = require("lspconfig") | |
local function on_attach(client, bufnr) | |
require("completion").on_attach(client) | |
local function buf_set_keymap(...) | |
vim.api.nvim_buf_set_keymap(bufnr, ...) | |
end | |
local function buf_set_option(...) |
do shell script "open x-apple.systempreferences:com.apple.preference.displays" | |
tell application "System Events" | |
tell application process "System Settings" | |
repeat until (exists UI element 1 of group 1 of scroll area 2 of group 1 of group 2 of splitter group 1 of group 1 of window 1) | |
delay 0.1 | |
end repeat | |
tell window 1 #"Displays" | |
set displayOptions to UI element 1 of group 1 of scroll area 2 of group 1 of group 2 of splitter group 1 of group 1 | |
set StandardRes to button 4 of displayOptions | |
set MoreSpaceRes to button 5 of displayOptions |