Skip to content

Instantly share code, notes, and snippets.

View GitHub30's full-sized avatar
🌴
On vacation

GitHub30

🌴
On vacation
  • Osaka, Japan
View GitHub Profile
@GitHub30
GitHub30 / personal_info.json
Last active December 1, 2017 08:30
架空の個人情報JSON
This file has been truncated, but you can view the full file.
[{"名前":"大島 三重子","名前フリガナ":"オオシマ ミエコ","性別":"女","血液型":"A","生年月日":"1994/01/17","電話番号":"02955-0-4300","携帯番号":"","メール":"okeim2002@livedoor.com","住所":"319-2513","住所フリガナ":"茨城県常陸大宮市氷之沢7-13-5"},{"名前":"福島 知子","名前フリガナ":"フクシマ トモコ","性別":"女","血液型":"O","生年月日":"1984/07/25","電話番号":"0745-17-5451","携帯番号":"070-6687-3039","メール":"hukusima.tomoko@freeml.co.jp","住所":"635-0087","住所フリガナ":"奈良県大和高田市内本町8293"},{"名前":"窪田 菜美","名前フリガナ":"クボタ ナミ","性別":"女","血液型":"A","生年月日":"1994/01/31","電話番号":"045-220-5312","携帯番号":"090-3661-0520","メール":"tbk@infoweb.ne.jp","住所":"221-0005","住所フリガナ":"神奈川県横浜市神奈川区松見町9-12-9-105号室"},{"名前":"村山 雅","名前フリガナ":"ムラヤマ ミヤビ","性別":"女","血液型":"A","生年月日":"1994/12/17","電話番号":"03-3935-7590","携帯番号":"090-2088-3722","メール":"","住所":"160-0017","住所フリガナ":"東京都新宿区左門町1-5-4 マリオン左門町 1階"},{"名前":"島崎 朋絵","名前フリガナ":"シマサキ トモエ","性別":"女","血液型":"A","生年月日":"1990/10/27","電話番号":"03-3884-1793","携帯番号":"090-2439-0358","メール":"tomoe.simasaki@infoseek.jp","住所":"133-0044","住所フリガナ":"東京都江戸川区本一色1-5-2"},{"名前":"河野 公生","名前フリガナ":"カワノ キミオ","性別":"男","血液型":"O","生年月日":"1979/11
@GitHub30
GitHub30 / monthly-urls.js
Last active December 3, 2017 23:44
小売物価統計調査
{
"2017-01": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001174344",
"2017-02": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001177726",
"2017-03": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001179543",
"2017-04": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001181803",
"2017-05": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001185005",
"2017-06": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001187446",
"2017-07": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001189663",
"2017-08": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001192443",
"2017-09": "http://www.e-stat.go.jp/SG1/estat/List.do?lid=000001194743",
@GitHub30
GitHub30 / xdebug.ini
Created December 7, 2017 19:11
"C:\MAMP\conf\php7.1.5\php.ini"
[XDebug]
zend_extension = "C:\MAMP\bin\php\php7.1.5\ext\php_xdebug.dll"
xdebug.remote_enable = On
xdebug.remote_host = 127.0.0.1
xdebug.remote_connect_back = Off
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_autostart = On
@GitHub30
GitHub30 / client.py
Created December 20, 2017 10:03
WebSocket with Python on Ubuntu 17.10
import websocket
import thread
import time
import sys
port = sys.argv[1]
def on_message(ws, message):
1 cd /usr/local/src/
2 git clone https://github.com/mysqludf/lib_mysqludf_sys.git
3 apt install -y git
4 apt update
5 apt install -y git
6 git clone https://github.com/mysqludf/lib_mysqludf_sys.git
7 cd lib_mysqludf_sys/
8 ./install.sh
9 apt install make
10 ./install.sh
// Overwrites native 'firstElementChild' prototype.
// Adds Document & DocumentFragment support for IE9 & Safari.
// Returns array instead of HTMLCollection.
;(function(constructor) {
if (constructor &&
constructor.prototype &&
constructor.prototype.firstElementChild == null) {
Object.defineProperty(constructor.prototype, 'firstElementChild', {
get: function() {
var node, nodes = this.childNodes, i = 0;
@GitHub30
GitHub30 / install.sh
Last active April 5, 2018 11:12
Install Adobe Reader on Linux
set -xe \
&& sudo apt install -y libxml2:i386 libstdc++6:i386 \
&& wget 'ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb' \
&& sudo gdebi --non-interactive AdbeRdr9.5.5-1_i386linux_enu.deb
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
axios.defaults.headers['x-requested-with'] = 'XMLHttpRequest';
function getURLFromHTML(html){
return new DOMParser().parseFromString(html, "text/html").querySelector('a').href;
}
function getURLById(param, type){
return new Promise((resolve, reject) => {
@GitHub30
GitHub30 / 1char.sh
Created January 24, 2018 04:52
CodePen
for f in {a..z} {0..9}; do
echo $f;
curl 'https://codepen.io/accounts/duplicate_check' -H 'cookie: __cfduid=d202c54284a6c5f34acf261fbaf6903881516767436; screen_width=1920; _ga=GA1.2.1257934424.1516767437; _gid=GA1.2.1686688306.1516767437; codepen_session=S3REQlRSMzB4M09kNmE3QXpYNXBQWHdGSEFHY0hJVkJjN1VaVU0vRlJWQnlualBoNkxXa0t5MVU0aTBLM0RFY2xyQjFHdUp4RnpYcjYxS29ucTNLYTZpZ3ZWajE4ZTc1S05EUUkxaWYxSkxsaEZWeHN6ZGlsR0JxbTIyNFBienh2YlYwbVgwMkp1R21Jb2I4M3ZLZVp5U3dQbnZyUENuVjgxQjdXTkNjSHdqUCtSSWFDQTdneUdmSWhGS29MNklvNnROeVFCTHlIRW15QjJ0bTJFYXdQR0FTckVESmxNUjJINUpBMzF6U1U4cFZVQlUvSTI5WVRCWUpwc041dTQ3V2tnYnJWZlBxeFMxQVY4YUxKWmhRSjFXY0xIeU5mRElHVW1XdjA2bzZmWGM9LS1FT3JMQWtLbEErcW9JdFFyUERsMHB3PT0%3D--0a25be01f411783c94c55f3bae34f8b8af5b6cda' -H 'origin: https://codepen.io' -H 'x-retry-csrf-token: false' -H 'x-csrf-token: FxV9VHRrrjrKZcjakCswusIse0S8Ydr8LeIAEtQQM3KI4anfxs4w8HjblQwk3jMrbFNxBYCQ98tKRr+QT70FsQ==' -H 'accept-language: ja,en-US;q=0.9,en;q=0.8' -H 'x-cookies-enabled: true' -H 'x-requested-with: XMLHttpRequest
@GitHub30
GitHub30 / 2018-03-14_urls.txt
Created March 14, 2018 15:04
YouTube URLs for Machine Learning Crash Course
https://www.youtube.com/watch?v=0mK52UsOj-U
https://www.youtube.com/watch?v=fMcjV8xwapk
https://www.youtube.com/watch?v=qAjFQLydY8E
https://www.youtube.com/watch?v=CaO0UDJirO4
https://www.youtube.com/watch?v=DZ_uSRfJjM8
https://www.youtube.com/watch?v=QsM-qYJoLME
https://www.youtube.com/watch?v=iqEr4Mc7P6o
https://www.youtube.com/watch?v=gvnn3HoPg-Y
https://www.youtube.com/watch?v=MiC5H_ASTGU
https://www.youtube.com/watch?v=JlkXvxwL2zE