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
import datetime | |
today = datetime.datetime.today | |
from maya.api import OpenMaya as om2 | |
from maya import cmds | |
start = today() | |
sel_list = om2.MSelectionList() | |
[sel_list.add(m) | |
for m in cmds.ls(dag=True)] |
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
from progress import Progress | |
from maya import cmds | |
sels = cmds.ls(sl=True) | |
progress = Progress(len(sels)) | |
try: | |
for sel in sels: | |
progress.count() | |
print(sel) |
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/python | |
# -*- coding: utf-8 -*- | |
# dependency: | |
# $ sudo apt-get install p7zip-full | |
# $ sudo apt-get install python-dev python-pip | |
# $ sudo pip instal requests | |
# $ sudo python pi_clone.py | |
import os | |
import subprocess | |
import time |
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/python | |
# -*- coding: utf-8 -*- | |
import os | |
import datetime | |
BASE_DIR = './backup' | |
MOST_DAYS = 3 | |
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/python | |
# -*- coding: utf-8 -*- | |
import os | |
import datetime | |
BASE_DIR = './backup' | |
MOST_DAYS = 3 | |
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
NeoBundle 'tomasr/molokai' | |
colorscheme molokai | |
set t_Co=256 | |
hi NonText ctermfg=0 guifg=#333333 | |
hi SpecialKey ctermfg=0 guifg=#333333 | |
" ==== start MyAutoCmd ==== | |
" http://lambdalisue.hatenablog.com/entry/2013/06/23/071344 |
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
" ctrlp | |
NeoBundle 'ctrlpvim/ctrlp.vim' | |
NeoBundle 'rking/ag.vim' | |
let g:ctrlp_mruf_max = 500 " MRUの最大記録数 | |
let g:ctrlp_extensions = ['buffertag', 'dir', 'line', 'mixed'] | |
let g:ctrlp_show_hidden = 1 | |
set wildignore+=*/.git/*,*/.hg/*,*/.svn/* " Linux/MacOSX | |
" set wildignore+=*\\.git\\*,*\\.hg\\*,*\\.svn\\* " Windows ('noshellslash') | |
if executable('ag') " agが使える環境の場合 |
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
# msys2 install | |
http://www.msys2.org/ | |
# msys2のアップデート | |
pacman -Syu | |
強制終了 | |
pacman -Syu | |
# GTK |
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
# coding: utf-8 | |
import sys | |
from PySide import QtGui | |
class ColumnWidget(QtGui.QWidget): | |
def __init__(self, parent=None): | |
super(ColumnWidget, self).__init__(parent) |
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
# -*- coding: utf-8 -*- | |
import sys | |
import subprocess | |
import time | |
from PySide import QtCore, QtGui | |
from PySide.QtUiTools import QUiLoader | |
def load_ui(widget, ui_file): |