Skip to content

Instantly share code, notes, and snippets.

View PET-HAL's full-sized avatar

HAL PET-HAL

View GitHub Profile
@PET-HAL
PET-HAL / 20200215_tddbc_TODO.txt
Last active February 15, 2020 08:19
TDD Boot Camp in 愛媛 #1 TDD&ペアプログラミング 実習
- [] 整数閉区間を示すクラス(あるいは構造体)をつくる。
- [✕] 1つの整数を入力すると文字列が返ってくる
- [] 整数閉区間オブジェクトは下端点と上端点を持つ。
- [] 文字列表現も返せる。
(例: 下端点 3, 上端点 8 の整数閉区間の文字列表記は "[3,8]")。
- [✕] 1と2を入力すると括弧付きの文字列が返ってくる
- [✕] 上端点より下端点が大きい閉区間を作ることはできない。
@PET-HAL
PET-HAL / 2019-06-01_pronama.txt
Last active June 1, 2019 03:01
「Marp for VS Code」でスライドをつくってみた。できたもの→https://speakerdeck.com/pet_hal/2019-06-01-pronama
---
marp: true
---
# 5年間で31回勉強会に参加して<br />溜まった知見とやってきたこと
###### Presented by HAL([@PET_HAL](https://twitter.com/PET_HAL))
##### 2019/06/01<br />プログラミング生放送勉強会 第59回@サイボウズ株式会社 松山オフィス(愛媛)
---
<?php
function convert_date_into_timestamp($date) {
if (!$date) {
return null;
}
return strtotime($date);
}
$list = array();
@PET-HAL
PET-HAL / crop-danevo-playshare.py
Created July 30, 2017 08:27
ダンエボのプレーシェア画像(iPhone5sでスクリーンショットした画像)をいい感じに切り抜くGIMPプラグイン
#!/usr/bin/env python
from gimpfu import *
def plugin_main(img, layer):
pdb.gimp_image_crop(img, 582, 872, 29, 128)
register(
"python_fu_crop_danevo_playshare",
"crop the DanEvo Playshare",