Bash script to:
- Iterate all commits made within a Git repository.
- List every object at each commit.
| The code previously provided in this Gist has been moved there: https://github.com/KelSolaar/Snippets/blob/master/src/maya/libraries/snapOnClosestVertex.py |
| import maya.api.OpenMaya as om | |
| import maya.api.OpenMayaUI as omui | |
| import maya.cmds as cmds | |
| # Maya Python API: | |
| # http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__py_ref_index_html | |
| def onPress(): | |
| """Take x,y from mouse click, convert into 3d world coordinates""" |
| var docRef = app.activeDocument; | |
| cTID = function(s) { return app.charIDToTypeID(s); }; | |
| sTID = function(s) { return app.stringIDToTypeID(s); }; | |
| function newGroupFromLayers(doc) { | |
| var desc = new ActionDescriptor(); | |
| var ref = new ActionReference(); | |
| ref.putClass( sTID('layerSection') ); |
| var docRef = app.activeDocument; | |
| cTID = function(s) { return app.charIDToTypeID(s); }; | |
| sTID = function(s) { return app.stringIDToTypeID(s); }; | |
| function newGroupFromLayers(doc) { | |
| var desc = new ActionDescriptor(); | |
| var ref = new ActionReference(); | |
| ref.putClass( sTID('layerSection') ); |
| var docRef = app.activeDocument; | |
| cTID = function(s) { return app.charIDToTypeID(s); }; | |
| sTID = function(s) { return app.stringIDToTypeID(s); }; | |
| function newGroupFromLayers(doc) { | |
| var desc = new ActionDescriptor(); | |
| var ref = new ActionReference(); | |
| ref.putClass( sTID('layerSection') ); |
| ### your .bash_profile code above ### | |
| function npp { | |
| "C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$*"; | |
| } | |
| export -f npp; |
| LShift & Capslock:: | |
| SetCapsLockState, % (State:=!State) ? "on" : "alwaysoff" | |
| Return | |
| g_AbortSendEsc := false | |
| #InstallKeybdHook | |
| SetCapsLockState, alwaysoff | |
| Capslock:: | |
| g_DoNotAbortSendEsc := true |
| syntax on | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'scrooloose/nerdtree' " file list | |
| Plug 'majutsushi/tagbar' " show tags in a bar (functions etc) for easy browsing | |
| Plug 'vim-airline/vim-airline' " make statusline awesome | |
| Plug 'vim-airline/vim-airline-themes' " themes for statusline | |
| Plug 'jonathanfilip/vim-lucius' " nice white colortheme | |
| Plug 'davidhalter/jedi-vim' " jedi for python |
| ;;; completion/lsp/config.el -*- lexical-binding: t; -*- | |
| (def-package! lsp-mode | |
| :commands (lsp-mode lsp-define-stdio-client)) | |
| (def-package! lsp-ui | |
| :hook (lsp-mode . lsp-ui-mode) | |
| :config | |
| (set-lookup-handlers! 'lsp-ui-mode | |
| :definition #'lsp-ui-peek-find-definitions |