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
# General aliases | |
#alias rm='rmtrash' | |
alias rm='/usr/local/bin/rmtrash' | |
alias remove='/bin/rm' | |
alias cdr='cd `git rev-parse --show-toplevel`' | |
alias up='cd ..' | |
alias upp='cd ../../' | |
alias uppp='cd ../../../' | |
alias v='vim' |
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
<keymap version="1" name="custom" parent="Mac OS X 10.5+"> | |
<action id="$Redo"> | |
<keyboard-shortcut first-keystroke="shift meta z" /> | |
</action> | |
<action id="ActivateDatabaseToolWindow"> | |
<keyboard-shortcut first-keystroke="ctrl g" second-keystroke="ctrl d" /> | |
</action> | |
<action id="ActivateRoutesToolWindow"> | |
<keyboard-shortcut first-keystroke="ctrl g" second-keystroke="r" /> | |
</action> |
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
.DEFAULT_GOAL := help | |
APP_HOST= | |
bm: confirm-app-host ## Run Benchmark | |
@echo "$(date '+[%Y/%m/%d %H:%M:%S]') `/opt/go/bin/benchmarker -t http://${APP_HOST}/ -u /opt/go/src/github.com/catatsuy/private-isu/benchmarker/userdata`" | tee -a result.log | |
bm-inf: confirm-app-host ## Run Benchmark Infinity | |
@while true; do echo "$(date '+[%Y/%m/%d %H:%M:%S]') `/opt/go/bin/benchmarker -t http://${APP_HOST}/ -u /opt/go/src/github.com/catatsuy/private-isu/benchmarker/userdata`" | tee -a result.log; done; | |
confirm-app-host: |
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
require 'pycall/import' | |
include PyCall::Import | |
pyimport "pandas", as: :pd | |
# kaggleのtitanicのデータで機械学習 | |
# https://www.kaggle.com/c/titanic | |
# データの読み込み(トレーニングデータとテストデータにすでに分かれていることに注目) | |
df_train = pd.read_csv.('./data/train.csv') | |
df_test = pd.read_csv.('./data/test.csv') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
% rebase('base.tpl', title='About') | |
<h1>About</h1> | |
<p> | |
about about about | |
</p> |
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
%#ベースとなる大枠のHTML要素 | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="static/style.css"> | |
<title>{{title or 'No title'}}</title> | |
</head> | |
<body> | |
%# ここにrebaseしたテンプレートが入る。この場合make_table.tplの内容がここに入る。 | |
{{!base}} | |
</body> |
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 sqlite3 | |
from bottle import route, run, debug, template, request | |
import datetime | |
import pprint | |
@route('/todo') | |
@route('/') | |
def todo_list(): | |
# データベースに接続 | |
conn = sqlite3.connect('todo.db') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.