Skip to content

Instantly share code, notes, and snippets.

takuya@mori takuya

  • Osaka City Univ
  • Osaka,Japan
Block or report user

Report or block takuya

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
takuya / jibun_login.js
Created Apr 23, 2019
View jibun_login.js
var jibun_login = function( id , password){
// id is like "57114-12345"
var crn = id.split(/-/);
var inputs = Array.apply(null, document.querySelectorAll("input[name^=fldLoginUserCRN]"));
var list =, i) {return [e, inputs[i]];});
list.forEach(function(e) {e[1].value = e[0]});
document.querySelector("input[type=password]").value = password;
View pycharm
#!/usr/bin/env bash # -x -v
name=`basename $0`
APP_PATH=`realpath ~/Applications/JetBrains\ Toolbox`
declare -A APPNAME
View modal.js
* Created by takuya on 20170809.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
View prod.html
<form name="form1">
<p><input type="button" value="Windowsのライセンスを調査" onClick="show_license('')" /></p>
<div id="result"></div>
<script type="text/javascript">
//by takuya mori 2009-03-26
View aeon-wifi.rb
require 'mechanize'
m =
m.get ''
return if =~ %r'^https?://'[0].submit :action=> /email/ )
f = :action=> /email/ )
f.field( :type => /mail/ ).value = ''
View find
# alias の代替にfunction を定義
function find(){
local post=()
local pre=()
local opts=()
local path=''
local mindepth=1
while [[ $1 ]]; do
case "$1" in
-H | -L | -P ) pre+=($1);;
View bashrc
alias artisan='php artisan'
. vendor/balping/artisan-bash-completion/artisan
View Dockerfile
FROM php:7.2.1-fpm-alpine3.7
MAINTAINER takuya-1st
ENV creator=takuya
COPY ./php-fpm.conf /usr/local/etc/php-fpm.d/zzz-99-.$creator.conf
RUN mkdir -p /usr/local/var/run/php-fpm
VOLUME /usr/local/var/run/php-fpm
VOLUME /var/www/html
#!/usr/bin/env python
import sys
import re
import atexit
import inspect
import time
import subprocess
#!/usr/bin/env bash
# react to cec keypresses in the jankiest way possible
# Author: Dave Eddy <>
# Date: 10/15/2013
# Licens: MIT
# Tested on: Raspberry pi with libcec compiled from soure
You can’t perform that action at this time.