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
diff --git a/public/css/default.css b/public/css/default.css | |
index f5a50e2..f50d447 100644 | |
--- a/public/css/default.css | |
+++ b/public/css/default.css | |
@@ -1,19 +1,15 @@ | |
-html, | |
-body { | |
+html { | |
-webkit-user-select: none; | |
- -moz-user-select: none; |
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
{ | |
"rules": { | |
"at-rule-empty-line-before": [ "always", { | |
"except": [ | |
"blockless-after-same-name-blockless", | |
"first-nested" | |
], | |
"ignore": ["after-comment"] | |
}], | |
"at-rule-name-case": "lower", |
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
command! -nargs=* Lorem :call s:LoadLorem(<f-args>) | |
" load lorem with number and optional tag name | |
function! s:LoadLorem(...) | |
let num = get(a:, 1, 1) | |
let html_tag = exists('a:2') ? a:2 : '' | |
let url = 'https://devlorem.kovah.de/api/'.num.'/json' | |
let output = system('curl -s '.url) | |
if v:shell_error && output !=# "" | |
echohl Error | echon output | echohl None |
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 exists('did_completes_me_loaded') || v:version < 700 | |
finish | |
endif | |
let did_completes_me_loaded = 1 | |
function! s:completes_me(shift_tab) | |
let dirs = ["\<c-p>", "\<c-n>"] | |
if get(b:, 'complete_disable', 0) | |
return a:shift_tab ? "\<S-Tab>" : "\<Tab>" | |
endif |
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
" vim:set et sw=2 ts=2 tw=78 nofen: | |
if exists('did_neorun_loaded') || v:version < 700 || !has('nvim') | |
finish | |
endif | |
let did_neorun_loaded = 1 | |
command! -nargs=? Nrun :call s:TernimalRun(<q-args>) | |
function! s:TernimalRun(cmd) | |
execute 'belowright 5new' |
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
# this would fix the error like: [Errno 1] Operation not permitted: '/bin/vint' | |
# file should be ~/.pydistutils.cfg | |
# use homebrew to install python/python3 | |
# see also http://stackoverflow.com/questions/33004708/osx-el-capitan-sudo-pip-install-oserror-errno-1-operation-not-permitted | |
[install] | |
prefix=/usr/local |
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
" ============================================================================ | |
" Description: Insert pair charactor automaticly | |
" Author: Qiming Zhao <[email protected]> | |
" Licence: Vim licence | |
" Version: 0.1 | |
" Last Modified: Sep 13, 2016 | |
" ============================================================================ | |
if exists('did_simple_pairs_loaded') | finish | endif | |
let did_simple_pairs_loaded = 1 | |
let s:pairs = {'(': ')', '[': ']', '{': '}', '"': '"', "'": "'", '`' : '`'} |
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
#!/usr/bin/env bash | |
if [[ $1 =~ ^http.* ]]; then | |
file=$1 | |
else | |
file=file://`realpath $1` | |
fi | |
cat << EOF | sed "s+full_path+$file+" | osascript - | |
if application "Google Chrome" is not running then |
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
" ============================================================================ | |
" Description: Add Qdo and Qargs command used for replaceAll | |
" Author: Qiming Zhao <[email protected]> | |
" Licence: Vim licence | |
" Version: 0.1 | |
" Last Modified: December 31, 2015 | |
" ============================================================================ | |
if exists('did_qdo_loaded') || v:version < 700 | |
finish | |
endif |
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
" ============================================================================ | |
" Description: Some system commands for vim | |
" Author: Qiming Zhao <[email protected]> | |
" Licence: Vim licence | |
" Version: 0.2 | |
" Last Modified: January 19, 2016 | |
" ============================================================================ | |
if exists('did_system_loaded') || v:version < 700 | |
finish |