Memoru

System Engineering and Programming and IT

start working on virtualenvwrapper

procedure PS G:\Users\sakai> cd $Env:PROJECT_HOME PS G:\workspace\py> workon Pass a name to activate one of the following virtualenvs: ============================================================================== djanbox djfirst djfourth …

inspect.stack()

inspect.stack() # ----------------------------------------- # def _get_funcname(): return inspect.stack()[1][3] def sample(): logger = logging.getLogger(__name__) logger.debug('begin ------> {}()'.format(sys._getframe().f_code.co_name)) lo…

os.path

os.path def _sample(): logger = logging.getLogger(__name__) logger.debug('__file__ name : {}'.format(__file__)) logger.debug('basename : {basename}'.format(basename=os.path.basename(__file__))) logger.debug('dirname : {dirname}'.format(dir…

PROJECT_HOMEを開く

G:> explorer $Env:PROJECT_HOME

workon

sourcetreeで、project_homeを、Explorerで開き、activateして、projectフォルダに戻る。 $p= $PWD.Path.split("\")[-1] cd $Env:workon_home\$p .\Scripts\activate cd $Env:project_home\$p // --- end of blog

docopt and docstring

docopt overview This tool parses help statement in doc. preference GitHub site github.com Show Usage in Japanese bicycle1885.hatenablog.com installation G:\ > pip install docopt usage How to use docopt形式で、パッケージのdocに記述する。 以…

gibo

.gitignore boilerplates Overview gibo is a shell script to help easily access .gitignore boilerplates. download gibo github.com installation GitHubサイトをclone pathを通す。 Environment PS G:\Users\sakai> $env:path.split(";") | Out-String …

python組み込み変数

組み込み変数 variable content note __file__ 実行script full path __name__ 実行script module sample logging_sample.py #! /usr/bin/env python """sample code for __file__ """ import logging import logging.config import os import sys ### -----…

win key shortcuts on windows 10

Win key shortcuts Windows and Virtual Desktop shortcut application or operations note win+↑ Maximize Window win+shift + ↑ Maximize 縦 windows win+↓ Minimize Window win+M Minimize all windows win+Tab Task Viewer win+ctrl+LEFT/RIGHT Switch v…

($Env:path).split(";")

list up in environment variables with windows os $Env:path.split(";") ps > ($Env:path).split(";") C:\ProgramData\Anaconda3 C:\ProgramData\Anaconda3\Library\mingw-w64\bin C:\ProgramData\Anaconda3\Library\usr\bin C:\ProgramData\Anaconda3\Lib…

change directory to USERPROFILE on powershell console

dir $ dir env: change directory $ cd $env:USERPROFILE reference powershell.wiki.fc2.com

My taskbar on Win 10

Windows 10 Taskbar PCで使う基本的なツールは、決まっている。 以下、よく使うツールは、タスクバーにpin止めする。タスクバーにあるアイコンは、Win+「数字」でshortcutが可能。 よく使うツール reviced in 180518 Browser : WIn+1 File Manager : Win+2 M…

Shell:startup

startup.cmd command line batch for open windows os's startup folder. explorer shell:startup // --- end of blog

Windows Special Folders

$ [Environment]::GetFolderPath("Startup")

Ctrl-Shift-Shortcuts

List up ctrl-shift+x with hotkeys // --- end of hateb

Environment Variable on new PC

Set 'desktop folder' and 'desktop tool folder' into Environment Variable %PATH%.

Shortcuts in My Tools folder

I installed New PC and prepared tools. I uses these tools for better productivity.

My Desktop for new environment since 18/04/27

Desktop Shortcuts ctrl+shift+M : Mail ctrl+shift+B : Browser ctrl+shift+L : Chat (Chatwork) ctrl+shift+Q : Quick Access ctrl+shift+J : Notes List (CintaNotes) ctrl+shift+F12 : New Notes (CintaNotes) ctrl+F12 : clipboard into Notes ctrl+alt…

Browser Mouse Gesture Setting

Mouse Gesture Extention Edge www.microsoft.com Chrome chrome.google.com FireFox マウスジェスチャー – Firefox 向けアドオン Gesture Action

Association and Dissociation

VIM operation

File operation description :q! :w :wq :e filename :r filename Buffer operation description :ls :bn :bp :bw

Powershell wild card

wild card pattern character pattern sample * a* ? a?z [b-d] a[b-d]z [bcde] a[bcde]z operator operator sample -like\n-clike\n-ilike "one" -like "o*" regular expression operator sample -match\n-cmatch\n-imatch "hello" -match "[jkl]"

Making a new package for Node.js

Overview Description Process mkdir package-directory cd package-directory mkdir lib mkdir test git init [ ]FIXME github.comにpackageのrepositoryを用意して、cloneした方がsmooth git branch git remote add github https://github.com/sakai-memor…

Program Language ex. javascript

Code Case Sensitivity Comments Literals Reserved words Expression and statement Expression Expressions are phrases that produce a value. Statement Stetemens are phrases that don't produce a value but instead have some sort of side effect. …

Powershell command

Command command description cmdlet powershell builtin function powershell builtin or defined by user script command define by script file native command define by Windows OS .NET Static method Defined on .NET Environment

powershell Alias

Alias Get-Alias file operation alias cmdlet gc Get-Content cat Get-Content type Get-Content ls Get-ChildItem dir Get-ChildItem cd Set-Location mkdir New-Item dir_name -Type directory ni New-Item cp Copy-Item mv Move-Item rm Delete-Item del…