Webアプリ開発者になろうとする人が現場に入る前に知っておくと良いこと。
何かしらの方法で調べたメモ、操作ログをとること。プログラムはバージョン管理を行うこと。
以下の2種類でそれぞれ三層アーキテクチャ用に用意すること
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.0</real> | |
<key>Green Component</key> | |
<real>0.0</real> |
{ | |
"secret_key":"$secret_key" | |
"akismet_api_key":"$akismet_api_key" | |
"db_default_user":$mysqluser | |
"db_default_password":$mysqlpassword | |
"db_default_host":"$host" | |
"db_default_port":"$port" | |
} |
import sys | |
from pdfminer.pdfinterp import PDFResourceManager, process_pdf | |
from pdfminer.pdfdevice import PDFDevice | |
class ObjectFindDevice(PDFDevice): | |
debug = 0 | |
def __init__(self, rsrcmgr): | |
self.rsrcmgr = rsrcmgr |
// Place your settings in the file "User/Preferences.sublime-settings", which | |
// overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
//"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_face": "RictyDiminished-Regular", |
import pandas as pd | |
from pandas.io import sql | |
import numpy as np | |
import pylab as plt | |
import pymysql | |
# i use local ubuntu box | |
con = pymysql.connect(host='192.168.215.128', user='panda', passwd='weakpassword', db='pandasample') | |
df = sql.frame_query('''select sbj.title as title, stdnt.gender as gender, scr.point as point |
from fabric.api import sudo, run, prefix | |
def _install_apt_if_not_installed(pkg_name): | |
if not pkg_name in run('''dpkg -l | grep '{0}' | cat '''.format(pkg_name)): | |
sudo('apt-get install -y {0}'.format(pkg_name)) | |
def _install_pip_if_not_installed(venv_dir): | |
def _func(libname): | |
with prefix('source {0}/bin/activate'.format(venv_dir)): | |
if not libname.lower() in run('''pip freeze | grep -i '{0}' | cat '''.format(libname)).lower(): |
#~/.zshrc | |
####### 履歴関係設定 start ######## | |
## | |
# 履歴の設定, screen でも共有 | |
HISTFILE="$HOME"/.zhistory | |
# メモリ内の履歴の数 | |
HISTSIZE=100000 |
11c11 | |
< | |
--- | |
> | |
16c16 | |
< if opts.has_key('data'): | |
--- | |
> if 'data' in opts: | |
19c19 | |
< if not os.environ.has_key('EDITOR'): |
from PIL import Image, ImageDraw | |
X = 0 | |
Y = 1 | |
def position_by_ratio(p1, p2, ratio): | |
# divide returns float with Python3 | |
return p1[X] + ((p2[X] - p1[X]) * (ratio/100)), p1[Y] + ((p2[Y] - p1[Y]) * (ratio/100)) | |