Skip to content

Instantly share code, notes, and snippets.

umihico

Block or report user

Report or block umihico

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@umihico
umihico / api.php
Last active Jul 12, 2019
Get CSV as array from input form with ajax in Laravel 5.8.14
View api.php
<?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 Jun 24, 2019
佐川の支店一覧を出力するスクリプト
View scraping.py
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 Apr 14, 2019
My aliases on Mac
View .alias
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
my macbook setup procedures
View .bash_profile
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 Jan 26, 2019
my atom settings
View README.md

my atom settings

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

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

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

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

@umihico
umihico / README.md
Last active Jan 19, 2019
deploy env to pypi and github
View README.md

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 Jan 6, 2019
Bash script to create issue quickly on CLI
View README.md

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

@umihico
umihico / README.md
Last active Dec 29, 2018
python script to use google translation API
View README.md

python script to use google translation API

set your own apikey in credentials.py.

google_apikey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

then test it.

$ python google_translation_api.py
['こんにちは', '東京']
You can’t perform that action at this time.