Skip to content

Instantly share code, notes, and snippets.

@satomacoto
satomacoto / README.md
Last active December 21, 2025 19:37
Install pyenv and conda

Install pyenv

$ brew update
$ brew install pyenv

Check available versions and install

@satomacoto
satomacoto / 2025年重賞レース結果.md
Created August 11, 2025 03:40
2025年重賞レース結果

更新日: 2025年08月11日

開催日 グレード 場所 レース名 距離 1着馬 2着馬 3着馬 単勝 複勝 枠連 馬連 ワイド 馬単 三連複 三連単
2025/08/03 GⅢ 新潟 アイビスサマーダッシュ 1000m ピューロマジック
(4.6倍/2人)
テイエムスパーダ
(3.7倍/1.0人)
ウイングレイテスト
(24.5倍/10.0人)
460 6番:200円 / 10番:440円 / 13番:150円 3-7
780
6-13
1200
6-10:1670円 / 6-13:520円 / 10-13:1310円 6-13
2330
6-10-13
7110
6→13→10
25830
2025/08/03 GⅢ 札幌 北海道新聞杯クイーンステークス 1800m アルジーヌ
(2.9倍/1人)
ココナッツブラウン
(4.0倍/2.0人)
フェアエールング
(7.5倍/4.0人)
290 2番:170円 / 4番:150円 / 10番:120円 3-6
730
4-10
800
2-4:590円 / 2-10:360円 / 4-10:350円 10-4
1740
2-4-10
1730
10→4→2
6540
2025/07/27 GⅢ 中京 東海ステークス 1400m ヤマニンウルス(7.5倍/4人) インユアパレス(6.0倍/3.0人) ビダーヤ(3.6倍/1.0人) 750 2番:160円 / 7番:270円 / 8番:190円 4-43110 7-82920 2-7:790円 / 2-8:500円 / 7-8:1100円 7-8561
# 命令書
あなたはシニアソフトウェアエンジニアです。
以下の制約条件と入力文をもとに改善されたコードおよびテストのためのコードを出力してください。
# 制約条件
- コードを変える場合は、その理由を説明する
- [X]を日本語とする
- 適切にGoogle Styleの[X]でdocstringを追加する
@satomacoto
satomacoto / create.py
Last active December 15, 2022 10:34
kNN on xvideos.com-db.csv
# -*- coding:utf-8 -*-
from pymongo import MongoClient
client = MongoClient()
db = client.xvideos
def create_db():
f = open('xvideos.com-db.csv')
for line in f:
@satomacoto
satomacoto / Set_up_ScheduledFargateTask_and_EFS.py
Last active October 4, 2022 07:39
Set up ScheduledFargateTask and EFS
def setup_vpc(self):
self.vpc = aws_ec2.Vpc(
self,
"efs-testvpc",
nat_gateways=0,
subnet_configuration=[
aws_ec2.SubnetConfiguration(
name="efs-testsubnet-public",
subnet_type=aws_ec2.SubnetType.PUBLIC,
),
@satomacoto
satomacoto / README
Created October 12, 2013 14:44
Flask + MessagePack
https://devcenter.heroku.com/articles/getting-started-with-python
http://flask.pocoo.org/
http://docs.python-requests.org/en/latest/
https://github.com/msgpack/msgpack-python
@satomacoto
satomacoto / parameter_estimation.py
Created February 17, 2012 09:08
Parameter Estimation for Linear Dynamical Systems
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Parameter Estimation for Linear Dynamical Systems
x[t] = A*x[t-1] + w[t]
y[t] = C*x[t] + v[t]
w[t] ~ N(0,Q)
v[t] ~ N(0,R)
'''
@satomacoto
satomacoto / mathjax.html
Created November 29, 2012 06:15
MathJax Dynamic Math Test Page
<!DOCTYPE html>
<!-- http://docs.mathjax.org/en/v1.1-latest/typeset.html -->
<html>
<head>
<meta charset="utf-8">
<title>MathJax Dynamic Math Test Page</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [["$","$"],["\\(","\\)"]]
@satomacoto
satomacoto / logging_sample.ipynb
Created December 18, 2019 01:44
logging for jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@satomacoto
satomacoto / yahoo_keiba.py
Created June 27, 2012 02:59
競馬 - Yahoo!スポーツ
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
from subprocess import *
import urllib2,re,math
from BeautifulSoup import BeautifulSoup
def get_races(url,r=10):