Skip to content

Instantly share code, notes, and snippets.

View cakecatz's full-sized avatar
🍖
焼き肉食べたい

Ryo Narita cakecatz

🍖
焼き肉食べたい
View GitHub Profile
{
"endOfLine": "lf",
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "es5"
}
@cakecatz
cakecatz / .editorconfig
Created July 16, 2019 07:52
.editorconfig
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.{js,ts,jsx,tsx,json}]
charset = utf-8
indent_size = 2
indent_style = space
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": true
},
"profiles": [
{
"devices": [],
"fn_function_keys": {
@cakecatz
cakecatz / removeValue
Created February 20, 2015 09:48
現在のポインタの値を削除
[-]
@cakecatz
cakecatz / copyValue
Last active August 29, 2015 14:15
現在のポインタの値を次のポインタにコピー
[> + > + << -] >> [<< + >> -]
var decodeUTF16 = function(text) {
var decoded_str = '';
var arr = text.split(';');
for (var i=0;i<arr.length;i++) {
if (arr[i].search('&#x') !== 0) {
var raw_char = arr[i].replace(/&#([a-zA-Z0-9]+)/gm,'');
decoded_str += raw_char;
arr[i] = arr[i].replace(raw_char, '');
}
var c = arr[i].replace(/&#([a-zA-Z0-9]+)/gm,'0$1');