Skip to content

Instantly share code, notes, and snippets.

@phanviet
phanviet / snippets.cson
Created December 6, 2019 02:26
atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
AWSTemplateFormatVersion: 2010-09-09
Description: AWS AppSync Notes API
Parameters:
APIName:
Type: String
Description: Name of the API - used to generate unique names for resources
MinLength: 3
MaxLength: 20
@phanviet
phanviet / cloudSettings
Last active September 13, 2018 01:49
vscode config
{"lastUpload":"2018-09-13T01:49:40.076Z","extensionVersion":"v3.1.2"}
[general]
ui=TTYUI
accounts = Gmail
autorefresh = 5
[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
[Repository Gmail-Local]
@phanviet
phanviet / init.el
Last active December 26, 2022 05:01
(tool-bar-mode -1)
(show-paren-mode 1)
(setq auto-save-default nil)
(setq make-backup-files nil)
(setq ring-bell-function 'ignore)
(setq-default indent-tabs-mode nil)
(setq tab-width 2)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(setq require-final-newline t)
(set-frame-font "Anonymous Pro 16" nil t)
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
is_fzf="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?fzf$'"
bind -n C-h run "($is_vim && tmux send-keys C-h) || \
tmux select-pane -L"
bind -n C-j run "($is_vim && tmux send-keys C-j) || \
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-fugitive'
" Better default
Plug 'tpope/vim-sensible'
" Project management
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.local/share/nvim/plugged')
" Project management
Plug 'scrooloose/nerdtree'