Skip to content

Instantly share code, notes, and snippets.

@dseeni
dseeni / snapOnClosestVertex.py
Created December 2, 2019 02:57
Autodesk Maya - Snap On Closest Vertex - Python Script
The code previously provided in this Gist has been moved there: https://github.com/KelSolaar/Snippets/blob/master/src/maya/libraries/snapOnClosestVertex.py
@dseeni
dseeni / click2dto3d.py
Created December 2, 2019 11:28 — forked from fredrikaverpil/click2dto3d.py
On Maya click: 2d coordinates to 3d world coordinates
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"""
@dseeni
dseeni / Selected_layers-PS.jsx
Created January 23, 2020 08:18 — forked from hilukasz/Selected_layers-PS.jsx
get array of selected layers in photoshop via extendscript
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') );
@dseeni
dseeni / Selected_layers-PS.jsx
Last active January 23, 2020 08:18 — forked from hilukasz/Selected_layers-PS.jsx
get array of selected layers in photoshop via extendscript
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') );
@dseeni
dseeni / Selected_layers-PS.jsx
Created January 23, 2020 08:18 — forked from hilukasz/Selected_layers-PS.jsx
get array of selected layers in photoshop via extendscript
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') );
@dseeni
dseeni / .bash_profile
Created January 24, 2020 00:32 — forked from alexmason81/.bash_profile
Git Bash command to open file in Notepad++ on Windows
### your .bash_profile code above ###
function npp {
"C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$*";
}
export -f npp;
@dseeni
dseeni / CapsLockCtrlEscape.ahk
Created January 31, 2020 08:42 — forked from nocaoper/CapsLockCtrlEscape.ahk
Shift_CapsLock gives the original capsLock behaviour.... reload script on error
LShift & Capslock::
SetCapsLockState, % (State:=!State) ? "on" : "alwaysoff"
Return
g_AbortSendEsc := false
#InstallKeybdHook
SetCapsLockState, alwaysoff
Capslock::
g_DoNotAbortSendEsc := true
@dseeni
dseeni / .vimrc
Created February 4, 2020 21:17 — forked from hanspinckaers/.vimrc
My full vimrc
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
@dseeni
dseeni / README.md
Created February 7, 2020 02:17 — forked from magnetikonline/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
  • List every object at each commit.
@dseeni
dseeni / config.el
Created February 8, 2020 01:03 — forked from 505aaron/config.el
LSP Doom Emacs Module
;;; 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