Skip to content

Instantly share code, notes, and snippets.

View sh11mo's full-sized avatar

shimo sh11mo

  • Freelance
  • Japan
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<!-- WYJ_Text_JP -->
<!-- Author: Devalon -->
<!-- DateCreated: 31/10/2023 10:57:17 AM -->
<GameData>
<LocalizedText>
<Replace Tag="LOC_TRAIT_CIVILIZATION_WEI_NAME" Language="ja_JP">
<Text>魏王国</Text>
</Replace>
<Replace Tag="LOC_TRAIT_CIVILIZATION_WEI_DESCRIPTION" Language="ja_JP">
@sh11mo
sh11mo / index.html
Last active October 26, 2018 08:37 — forked from RubaXa/index.html
String#includes vs. String#indexOf vs. RegExp (http://jsbench.github.io/#a4f1efc5ae3806a24c17e85fc05d4a3e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>String#includes vs. String#indexOf vs. RegExp</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@sh11mo
sh11mo / slack-kabutan-bot.js
Created May 1, 2018 05:52
slack-kabutan-bot
const Botkit = require('botkit');
const puppeteer = require('puppeteer');
const fs = require('fs');
const capture = async keyword => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://kabutan.jp/');
await page.type('#input_id', keyword);
await page.click('#kensaku_btn');
@sh11mo
sh11mo / createUser.sh
Created February 26, 2018 09:13
createUser.sh
#!/bin/bash
if [ ! $1 ]; then
echo "pass the username to create."
exit 1;
fi
useradd $1;
cd /home/$1