This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << 'EOT' > ~/.huskyrc | |
if [[ -d '/home/linuxbrew/.linuxbrew' ]]; then | |
# Linux/WSL | |
HOMEBREW_HOME='/home/linuxbrew/.linuxbrew' | |
elif [[ -d '/opt/homebrew' ]]; then | |
# Apple Silicon Mac | |
HOMEBREW_HOME='/opt/homebrew' | |
else | |
# Intel Mac | |
HOMEBREW_HOME='/usr/local' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop table if exists full_columns; | |
create table full_columns( | |
id bigint unsigned auto_increment comment 'id column', | |
col_int int unsigned not null comment 'int column', | |
col_smallint smallint unsigned not null comment 'smallint column', | |
col_tinyint tinyint unsigned not null comment 'tinyint column', | |
col_mediumint mediumint unsigned not null comment 'mediumint column', | |
col_bigint bigint unsigned not null comment 'bigint column', | |
col_decimal decimal(2) not null comment 'decimal column', | |
col_float float not null comment 'float column', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script> | |
(function($) { | |
var path = location.pathname; | |
if (path.indexOf('/entry/') == -1) | |
return; | |
var OLD_DOMAIN = "あなたの旧ドメインを入力して下さい。(例)treeapps.hatenablog.com"; | |
var oldUrl = "http://" + OLD_DOMAIN + path; | |
var apiUrl = "http://api.b.st-hatena.com/entry.count?url=" + encodeURIComponent(oldUrl); | |
$.ajax({ |