Skip to content

Instantly share code, notes, and snippets.

// ~/.config/nvim/init.vim
lua require('init')
lua require('plugins')
call plug#begin('~/.vim/plugged')
Plug 'reasonml-editor/vim-reason-plus'
Plug 'TaDaa/vimade'
Plug 'tpope/vim-fugitive'
Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
@maxlibin
maxlibin / kitty.conf
Last active January 28, 2022 05:10
Kitty terminal config
# include ./theme.conf
include ./tokyo-night-kitty.conf
hide_window_decorations yes
window_padding_width 0
window_margin_width 0
font_family Fira Code
italic_font Fira Code Italic
@maxlibin
maxlibin / init.vim
Last active February 19, 2022 05:42
Vim setup
" Start Vim
" ------------------------------------------------------------------------------
syntax on
set number
set relativenumber
set rnu
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
@maxlibin
maxlibin / bsconfig.json
Last active September 12, 2019 15:28
bsconfig
{
"name": "some-name",
"version": "0.0.1",
"namespace": false,
"sources": {
"dir": "src",
"subdirs": true
},
"ignored-dirs": ["./ignored-folder"],
"bs-dependencies": ["reason-react"],
kill $(lsof -t -i :YOUR_PORT_NUMBER)
git config --global alias.tree 'log --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset"'
@maxlibin
maxlibin / # Sublime Emmet JSX Reactjs.md
Created May 24, 2017 03:53 — forked from max-mykhailenko/# Sublime Emmet JSX Reactjs.md
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin

This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/

Thanks, @wesbos

Problem

  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
@maxlibin
maxlibin / simple-react-example.js
Last active March 9, 2017 11:30
simple react example
// http://mikelambert.me/react/?#rVTBbptAED2brxhxAilZq9fERqocVYrUqlLcWxRVBCYxDbB0d3BiWfx7Z3cxrGkS5xAJyzAwb968fTNZmWoNv2QuV5uizAFfCOtcww2mGYmVrBpZY02wDwAyWWtSbUZSRY2SjY5NdKbbBg+BSw50/OPrEemasLquc3yJ0H2KolG4ZbwrfEjbkiKbAECbQguLII7SvHhhAvEIr5gml7W45olaVUf2HmBRFsnez2XADhb3LZGsgXYNLkP3EIKsV2WRPS3d9351cc81LYW4S84Xc5eRLOaMbgs5Nl0QZIOI3wtN+hNF3KR1XuINVnKL0e9tWvb9es0p+9Kwdh942adkasskmM2mSmlRpU0UmdszcLLDMoHFaBJfpV44n6gvHBiY5d6dQOES7F8HT7gb7udJ3AUzpjQ3nN4Q92v+Kf60uvQSakoJYQn7XhLD8wLC0D5203NYt/dVQafMPD0gbbO+SVVFY02rtO9+jbQ2L6LXqcRTLiv+e8QPcSmRLBr3iYJSxccn2Ckt/qfGwMGe10en7YFb4zly6iz34BnCxTxDQJf0aZxY1E1L/TwSn6ydRtvXMYqLHaGAbaA336iocdKIfzTw7hjChF00zPKhg7lpYeK7wLfeu76bWM8f0am/iLH0xe3d1F9Ti3mj/o5FHJongQ0IJpOlFN0akLt49I/FOrFYBsMo1Mx7in05aa2vqBveoQ7nDL7YWm/Snr3O+nWa7/ouL7beYTfJBstSPsOzVLyjDD7wRajJCiWEWMybJBgzxoVt196RmSynDsblemrP+b47LKtx8k9OhZ8/uHJocDSl9d/Vzx+iV8bW4uQzyGXWVmxJ8bdFtVtjidaNofijz5XJOpct8byFMe+Gfw==
class TodoChild extends React.Component {
constructor(props){
super(props);
}
getItemIndex(e){
e.prev
@maxlibin
maxlibin / gist:11244599
Last active August 29, 2015 14:00
Gulp sample
var g = require('gulp'),
sass = require('gulp-ruby-sass'),
notify = require("gulp-notify"),
changed = require("gulp-changed"),
sftp = require("gulp-sftp"),
watch = require('gulp-watch');
sources = {
sass: "sass/*.scss",
js: "coffee/*.coffee",
@maxlibin
maxlibin / gist:7716158
Created November 30, 2013 06:53
change wordpress phpmyadmin content
UPDATE wp_posts SET post_content = REPLACE(
post_content,
'something',
'to replace here'
)