Skip to content

Instantly share code, notes, and snippets.

View Intel0tw5727's full-sized avatar

Shingo Minowa Intel0tw5727

  • okinawa
View GitHub Profile
@Intel0tw5727
Intel0tw5727 / atc001_bfs.py
Created January 30, 2022 11:22
atc001をbfsで解く
def bfs(coordinates, done, stack):
px, py = stack.pop()
# 移動先がgなら探索終了
if coordinates[px][py] == 'g':
print("Yes")
sys.exit()
# それ以外なら探索を実施する
for x, y in ([0, 1], [1, 0], [0, -1], [-1, 0]):
@Intel0tw5727
Intel0tw5727 / atc001_dfs.py
Last active January 30, 2022 11:20
atc001をdfsで解く
def dfs(coordinates, done, stack):
px, py = stack.pop()
# 移動先がgなら探索終了
if coordinates[px][py] == 'g':
print("Yes")
sys.exit()
# それ以外なら探索を実施する
for x, y in ([0, 1], [1, 0], [0, -1], [-1, 0]):
#!/bin/bash
# Ansible Path
ANSIBLE_PATH = ~/Desktop/dotfiles/dotfiles_20210428/
# Xcode install
sudo xcode-select --install
# homebrew install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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.

仮説ノート

1.今回の仮説は?

2.仮説の検証のためになにが必要?

from paramiko import SSHClient, RSAKey, AutoAddPolicy
import pandas as pd
class DataSets:
def __init__(self, hostname, username, key_path):
self.hostname = hostname
self.username = username
self.key_path = key_path
self.client = SSHClient()
import subprocess
char_set = str(subprocess.check_output(["file", "--mime", path]))[2:-3].split("=")[1]
print(char_set)
import struct
from PIL import Image
import os
filename = 'ETL9B'
for root, dirs, files in os.walk(filename):
for file in sorted(files):
filepath = os.path.join(root, file)
print(file)
PRG04 START
RPUSH
;INIT
LAD GR1,1
LAD GR3,0
;RUN
LOOP LD GR2,='0'
ADDA GR2,GR1
ADDA GR3,GR1
ST GR2,CNT