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
(defun viper-escape-if-next-char (c) | |
"Watches the next letter. If c, then switch to viper mode, otherwise insert a j and forward unpressed key to unread-command-events" | |
(self-insert-command 1) | |
(let ((next-key (read-event))) | |
(if (= c next-key) | |
(progn | |
(delete-backward-char 1) | |
(viper-mode)) | |
(setq unread-command-events (list next-key))))) |
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
<style name="AppTheme" parent="android:Theme.Holo.Light"> | |
<item name="android:windowActionBar">false</item> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowContentOverlay">@null</item> | |
</style> |
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
List<Student> retList = gson.fromJson(s2, | |
new TypeToken<List<Student>>() { | |
}.getType()); |
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
extension UIColor { | |
class func hexColor(hex: Int, alpha: Double = 1) -> UIColor { | |
let red = Double((hex & 0xFF0000) >> 16) / 255.0 | |
let green = Double((hex & 0xFF00) >> 8) / 255.0 | |
let blue = Double((hex & 0xFF)) / 255.0 | |
return UIColor(red: CGFloat(red), green: CGFloat(green), blue: CGFloat(blue), alpha: CGFloat(alpha) ) | |
} | |
} |
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
redis-cli --scan --partten "keys:*" | xargs redis-cli del |
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
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'ervandew/supertab' | |
Plug 'xolox/vim-misc' | |
Plug 'xolox/vim-session' | |
Plug 'padde/jump.vim' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'dracula/vim', { 'as': 'dracula' } |
OlderNewer