Skip to content

Instantly share code, notes, and snippets.

View serima's full-sized avatar
🌎

Ryo Shibayama serima

🌎
View GitHub Profile
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
@paltman
paltman / jira-migration.py
Created May 3, 2017 11:06
JIRA to ZenHub Migration Script
"""
1. Create a new repo and setup your pipeline to match JIRA
2. Edit the constants to suit your needs
3. Run `source jira.env`
4. Run `python jira-migration.py`
"""
import os
import requests

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@arikfr
arikfr / README.md
Last active April 16, 2024 07:53
Redash Query Export Tool

Setup

$ pip install click requests

Usage

$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
@syokunin
syokunin / validation.php
Last active December 30, 2021 02:45
Laravel 5.1 日本語バリデーションメッセージファイル
<?php // resources/lang/ja/validation.php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
@nakamura244
nakamura244 / tech.md
Last active May 27, 2018 01:09
makuakeが利用している技術

makuakeが利用している技術

サービス

https://www.makuake.com/

どんなサービス?

クラウドファンディングサービス

インフラ

awsで下記あたり。

@CMCDragonkai
CMCDragonkai / bisecting_binary_search.php
Last active April 2, 2023 01:57
PHP: Bisect Left & Bisect Right using Binary Search (similar to Python's bisect_left & bisect_right). Binary search only works on sorted arrays. Arrays must be first sorted with quick sort. Bisect right finds the index of a value where all the elements from left to right up to the index is less or equal to the value: Array: [1, 1, 2, 2, 3, 4] Va…
<?php
// sorted array must be a 0 indexed
// left most index, right most index all inclusive
// finds all of the elements coming from the left to the right that is less or equal to the key
function bisect_right($sorted_array, $key, $left = null, $right = null){
if(is_null($left)){
reset($sorted_array);
$left = key($sorted_array);
@yoonchulkoh
yoonchulkoh / SBDataMail.rb
Created January 27, 2014 23:56
My SoftBank通信量確認画面の情報をスクレイピングしてメール通知するスクリプト
require "mechanize"
require "yaml"
# 設定ファイル
config = YAML.load_file("config.yml")
# スクレイピング準備
agent = Mechanize.new
agent.user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36"
agent.max_history = 1
@y-ken
y-ken / nginx.conf
Last active November 19, 2019 08:11
流れに乗ってnginxのログフォーマットにLTSVを採用しました。 2013/03/05リリースのfluentd-0.10.32.gemなら標準のin_tailで、format ltsvとする事でそのまま読み込めます。 proxy先からの応答時間や送出したcookieも記録する汎用的な設定です。
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format ltsv 'domain:$host\t'
'host:$remote_addr\t'
'user:$remote_user\t'
'time:$time_local\t'
'method:$request_method\t'
'path:$request_uri\t'