First, we define a global prefix key:
(general-create-definer global-definer
:keymaps 'override
:states '(insert emacs normal hybrid motion visual operator)
:prefix "SPC"
:non-normal-prefix "S-SPC")Read this first: http://akrl.sdf.org/gccemacs.html
For that you need to compile gcc (duh). I edited Homebrew's gcc formula:
| # shows all url+titles of Chrome along with front window+tab url+title | |
| set titleString to "" | |
| tell application "Google Chrome" | |
| set window_list to every window # get the windows | |
| repeat with the_window in window_list # for every window | |
| set tab_list to every tab in the_window # get the tabs | |
| repeat with the_tab in tab_list # for every tab |
| " selected IntelliSpace modules | |
| source ~/.intellimacs/spacemacs.vim | |
| source ~/.intellimacs/extra.vim | |
| source ~/.intellimacs/major.vim | |
| source ~/.intellimacs/hybrid.vim | |
| vnoremap < <gv | |
| vnoremap > >gv | |
| nnoremap <silent> n nzz | |
| nnoremap <silent> N Nzz |
| $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($TRUE) | |
| $source = "G:\\2017.4.8f1\\2017.4.8f1\\2017.4.8f1\\" | |
| $destination = "G:\\2017.4.8f1\\2017.4.8f1\\2017.4.8f1\\" | |
| foreach ($i in Get-ChildItem -Recurse -Force) { | |
| if ($i.PSIsContainer) { | |
| continue | |
| } |
git status时中文文件名乱码
现象:
\344\275\240\345\245\275
执行以下命令即可:
Use case : Imagine we have just created a project with composer create-project awesone-project (currently V0.2).
2 weeks later, there is a new release (V0.3). How to update your project ?
Since composer update only updates the project dependencies, it is not what we are looking for.
Composer doesn't know about awesome-project since it's not in our composer.json.
After trying many git solutions, I've come to this :
git archive --output=changes.zip HEAD $(git diff --name-only SHA1 SHA2 --diff-filter=ACMRTUXB)
This command will check for changes between the two commits and ignore deleted files.
| ffmpeg -i OpenGL\ 3D\ Game\ Tutorial\ 33\ -\ Distance\ Field\ Text\ Rendering-d8cfgcJR9Tk.mp4 -ss 00:04:26 -t 00:02:00 -r 1 %d.jpg |
| ((python-mode | |
| ;; 激活 pyvenv-mode,也可以自己在 init.el 中默认激活 | |
| (eval . (pyvenv-mode)) | |
| ;; 这个要写绝对路径 | |
| (pyvenv-activate . "/Users/cosven/projectpath/.venv") | |
| ;; 默认 select python-pylint 这个 checker | |
| ;; |
Simplest intro to git by github and codeschool - Try Git
[Intro to github]