Skip to content

Instantly share code, notes, and snippets.

View uchiiii's full-sized avatar
🦉
Working from home

Ryosuke Horiuchi uchiiii

🦉
Working from home
View GitHub Profile
@uchiiii
uchiiii / autocopy.bat
Last active November 22, 2018 13:12
This is used to backup your file or folder on Windows.
@echo off
setlocal
rem FROM refers to the source of your folder or file that you want to backup.
set FROM=<ABSOLUTE_PATH>
rem TO refers to the destination.
set TO=Z:<ABSOLUTE_PATH>
set LOG=%~dp0\autocopy.log
rem EXCEPT refers to files that you don't want to backup.
set EXCEPT=<ABSOLUTE_PATH>
set OPT=/MIR /R:3 /W:10 /V /FP /DCOPY:T /LOG:%LOG% /XD:%EXCEPT% /TEE
@uchiiii
uchiiii / crawler.py
Last active December 20, 2018 05:03
This is a crawler written by python3.
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This program crawls the specified site and generates a text to represent it.
#
# This collects internal nodes only.
#
# Usage: crawler.py url [limit] [i|d|e]
# The option ''url'' is the start page of the crawling.
# The crawling continues while it can find unvisited pages on the same host.
@uchiiii
uchiiii / acure_game.js
Created September 2, 2019 08:40
Acure 輪投げゲームのクリア用コード
timer = setInterval(function(){
arrow = document.getElementsByClassName('play__cursor')[1];
if(window.getComputedStyle(arrow, null).getPropertyValue('display') == "none"){
document.getElementsByClassName('play__attack')[0].click();
clearInterval(timer);
}
}, 190);
@uchiiii
uchiiii / .vimrc
Created March 2, 2021 08:05
my vimrc
set nocompatible " be iMproved, required
filetype off " required
set clipboard+=unnamed " for yank and paste
" let g:python3_host_prog="/Users/horiuchiryousuke/.pyenv/shims/python3"
" ###########################################
"文字コードをUFT-8に設定
set fenc=utf-8
" バックアップファイルを作らない
set nobackup
" スワップファイルを作らない