Skip to content

Instantly share code, notes, and snippets.

View umihico's full-sized avatar

Umihiko Iwasa umihico

View GitHub Profile
@umihico
umihico / api.php
Last active July 12, 2019 08:53
Get CSV as array from input form with ajax in Laravel 5.8.14
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
@umihico
umihico / scraping.py
Last active June 24, 2019 04:50
佐川の支店一覧を出力するスクリプト
from selenium.webdriver import Chrome
from umihico.xlsx import to_xlsx
from time import sleep
c=Chrome()
urls=[
"https://www2.sagawa-exp.co.jp/company/branch/list/?sub_b_id=17",
"https://www2.sagawa-exp.co.jp/company/branch/list/?sub_b_id=15",
"https://www2.sagawa-exp.co.jp/company/branch/list/?sub_b_id=16",
"https://www2.sagawa-exp.co.jp/company/branch/list/?sub_b_id=14",
"https://www2.sagawa-exp.co.jp/company/branch/list/?sub_b_id=13",
@umihico
umihico / .alias
Last active April 14, 2019 23:40
My aliases on Mac
alias ls='ls -lhaGF'
alias pas='php artisan serve'
alias p='python'
alias a='atom'
alias d='docker'
alias c='pbcopy'
alias s='source'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
@umihico
umihico / .bash_profile
Last active May 6, 2019 00:35
my macbook setup procedures
export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
source ~/.bashrc
@umihico
umihico / README.md
Last active January 26, 2019 08:05
my atom settings

my atom settings

  • changing wallpaper, colors (styles.less)
  • changing tabe25m wallpaper (tabe25m.less)
@umihico
umihico / README.md
Last active January 17, 2019 12:26
ヤフーオークション再出品スクリプト selenium & python

ヤフーオークション再出品スクリプト selenium & python

@umihico
umihico / README.md
Last active January 16, 2019 12:34
Bug hunting -Element is not clickable at point. Other element would receive the click-

Bug hunting -Element is not clickable at point. Other element would receive the click-

@umihico
umihico / README.md
Last active January 19, 2019 01:48
deploy env to pypi and github

deploy env to pypi and github

How to use

# create empty repository in github.com
$ git clone https://gist.github.com/f331c4c851f4295cd261725b79d426b8.git YOUR-PACKAGE-NAME # clone this env on local
$ cd YOUR-PACKAGE-NAME
$ git remote set-url origin git@github.com:YOUR-NAME/YOUR-PACKAGE-NAME.git # change location
$ mkdir YOUR-PACKAGE-NAME # your actual code in package goes here.
$ touch YOUR-PACKAGE-NAME/__init__.py # start coding!
@umihico
umihico / README.md
Last active January 6, 2019 02:31
Bash script to create issue quickly on CLI

Bash script to create issue quickly on CLI

How to use

$ cd REPOSITORY
$ create-issue
issue title: found a bug # type as you want
issue body: detail is XXXX. # type as you want

That's it! The output will be like