Skip to content

Instantly share code, notes, and snippets.

View riaf's full-sized avatar
🏠
Working from home

Keisuke SATO riaf

🏠
Working from home
View GitHub Profile
import pandas as pd
csv_file = '00_zenkoku_all_20240830.csv'
df = pd.read_csv(csv_file, header=None, encoding='utf-8', low_memory=False)
df.columns = [
'sequence_number', 'corporate_number', 'process', 'correct', 'update_date',
'change_date', 'name', 'name_image_id', 'kind', 'prefecture_name', 'city_name',
'street_number', 'prefecture_code', 'city_code', 'postcode', 'address_outside',
'address_outside_image_id', 'close_date', 'close_cause', 'successor_corporate_number',
@riaf
riaf / simple-chaser-server-cli.ts
Last active December 12, 2022 12:07
サンプル(動作未確認)
import {
CellTypes,
findPlayersByPosition,
Game,
parseLegacyMap,
State,
} from "https://deno.land/x/[email protected]/mod.ts";
import { LegacyServer } from "https://deno.land/x/[email protected]/examples/legacy_server.ts";
const CELLCHARS = {
@riaf
riaf / userChrome.css
Created August 13, 2020 05:23
Take the anger out of Firefox's UI for use on macOS. (Move the close tab button to the left and only show it on mouseover.)
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
toolbarbutton#alltabs-button {
-moz-binding: url("userChrome.xml#js");
}
.tabbrowser-tab .tab-close-button {
-moz-box-ordinal-group: 0 !important;
opacity: 0;
}

Keybase proof

I hereby claim:

  • I am riaf on github.
  • I am keisuke (https://keybase.io/keisuke) on keybase.
  • I have a public key ASAI_ZVfS8C3nacZu8hpLsonfszLRnG1-FjloeKXgXnRTgo

To claim this, I am signing this object:

@riaf
riaf / riaf.min.svg
Last active November 21, 2017 07:12
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@riaf
riaf / csssh.sh
Created July 26, 2016 07:47
Coreserver に SSH 接続する
curl -XPOST \
-d "id=$USERID" \
-d "pass=$FTPPASS" \
-d "remote_host=$(curl http://dyn.value-domain.com/cgi-bin/dyn.fcg?ip)" \
-d "ssh2=on" \
https://ss1.coressl.jp/www.$CS_SERVER.coreserver.jp/jp/admin.cgi \
| iconv -f SJIS -t UTF8
@riaf
riaf / debian8.sh
Created October 10, 2015 17:10
Debian Jessie for IDCF Cloud
#!/bin/sh
mkdir -p /tmp/debian
cd /tmp/debian
curl -LO curl -LO http://s3.eu-central-1.amazonaws.com/ffuenf-vagrantboxes/debian/debian-8.2.0-amd64_vmware.box
tar xf debian-8.2.0-amd64_vmware.box
ovftool debian-8.2.0-amd64.vmx debian-8.2.0-amd64.ova
cp debian-8.2.0-amd64.ova ~/Dropbox/Public/
rm -rf /tmp/debian
@riaf
riaf / Hybrid.terminal
Created April 23, 2015 02:52
vim-hybrid for terminal.app (Original https://github.com/w0ng/vim-hybrid)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjExMzcyNTQ5MDIgMC4xMjE1Njg2Mjc1IDAuMTMzMzMzMzMzMwAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@riaf
riaf / gist:407b29a267bc5650af16
Created August 21, 2014 07:09
Chatwork の見た目をちょっとマシにする usercss / Chrome でしか動作確認してない。
@-moz-document domain("www.chatwork.com") {
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css);.wrapper,.globalHeader,.numAdminCount,.chatListUnreadNum,.contentHl,.mainContentHl,.sideContentHl,.chatSendArea,.button{background-image:none;-webkit-box-shadow:none;box-shadow:none;border-radius:0;}.promotionArea{height:0;display:none;}.chatRoomListArea{padding-bottom:141px;}.globalHeader .ico35AdminTask,.globalHeader .ico35AdminFile,.globalHeader .ico35AdminContact,.globalHeader .ico27Menu{text-indent:inherit;color:#fff;background:none;font-size:25px;line-height:1.4;height:inherit;}.globalHeader .ico35AdminTask:before{content:"\f0ae";font-family:FontAwesome;}.globalHeader .ico35AdminFile:before{content:"\f07b";font-family:FontAwesome;}.globalHeader .ico35AdminContact:before{content:"\f0c0";font-family:FontAwesome;}.globalHeader .ico27Menu:before{content:"\f05a";font-family:FontAwesome;}.actionArea{top:0;bottom:inherit;}.actionArea .actionNav{border:none;-webkit-box-shadow:none
@riaf
riaf / gist:d3aad20cde677acc350f
Created July 24, 2014 02:44
Connpass をちょっとだけマシにする user-css
@-moz-document domain("connpass.com"), domain("*.connpass.com") {
/**
* $dark: #2c3e50;
* $light: #ecf0f1;
* $blue: #3498db;
* $darkBlue: #2980b9;
* $red: #e74c3c;
*/
html, body, div, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, button, cite, code, del, dfn, img, ins, kbd, q, samp, small, sub, sup, tt, var, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, textarea {