Skip to content

Instantly share code, notes, and snippets.

@riverleo
riverleo / replaceDakuten.js
Created January 23, 2019 07:24
replaceDakuten.js
import _ from 'lodash';
export const DAKUTEN_CODE = 12441; // \u3099
export const HAN_DAKUTEN_CODE = 12442; // \u309a
/**
* In Japanese, find the dot or dot string and convert it to the correct full-width string.
*
* ぁ: 12353, あ: 12354, ぃ: 12355, い: 12356, ぅ: 12357, う: 12358, ぇ: 12359
* え: 12360, ぉ: 12361, お: 12362, か: 12363, が: 12364, き: 12365, ぎ: 12366
@riverleo
riverleo / deploy.sh
Last active August 29, 2015 14:22
deploy.sh
#!bin/sh
REPOSITORY="riverleo/riverleo.github.io"
MESSAGE=`date +%y%m%d:%H`
count=0
params=("$@")
for param in ${params[@]}; do
if [[ $param == "-m" ]]
then MESSAGE=${params[count+1]}