Skip to content

Instantly share code, notes, and snippets.

View gologius's full-sized avatar
🐱
On vacation

gologius gologius

🐱
On vacation
View GitHub Profile
Option Explicit
'セルを全て図形に変換する
Sub main()
Dim row As Long
Dim col As Long
Dim maxrow As Long
Dim maxcol As Long
'対象範囲指定
@gologius
gologius / honban_test_string.bat
Created June 16, 2018 00:37
コマンドプロンプト(cmd.exe)で大きく「本番」と「検証」の文字を表示します
@echo off
echo ### ##
echo ### ##############################
echo ### # ### #
echo #### ### ### ####
echo ################################### ### ### ####
echo ###### #####################################
echo ######### ##### ### ####
echo ####### ### ##### ### #####
@gologius
gologius / slack.py
Last active April 22, 2018 22:16
PythonでSlackのAPIを叩いて,メッセージを取得 (個人利用のため,URLのみ抽出してます)
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 13 20:25:57 2017
@author: gologius
Slackで保存しているURL付きのメッセージをJSON形式でファイルに書き出す.
1. get token
https://api.slack.com/custom-integrations/legacy-tokens
@gologius
gologius / file_only_move.bat
Last active April 10, 2018 14:50
ファイルのみをカレントディレクトリに移動するバッチ。多階層のフォルダが大量にあり、ファイルだけとりあえず一括で欲しい時に
@echo off
rem 【ファイルを移動】
rem /P xxxxx パス名指定
rem /S サブディレクトリに対しても処理を行う
rem /C コマンド実行
rem @path forfilesで取得したファイル名(絶対パス)
@echo on
set curpath=%~dp0
forfiles /S /C "cmd /c if @isDir==FALSE move @path %curpath%"
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
#########################
#パラメータ
CHROME_DRIVER_PATH = "chromedriver_win32\chromedriver.exe"
URL = "http://xxx"
WAIT_SEC = 10 #要素が見つかるまで最大何秒待つか
rem 通常タイプ
tasklist | find "firefox.exe" > NUL
if ERRORLEVEL 1 (
echo not found
) else (
echo not found
)
rem 無駄な出力をしないタイプ
@tasklist | find "firefox.exe" > NUL
@gologius
gologius / backup.bat
Last active December 31, 2017 00:23
バックアップと、バックアップ先のファイルを一定期間後に削除するバッチ
@echo off
rem 【コピー元のフォルダの新規ファイルをコピーする。】
rem /S サブディレクトリをコピーします。 このオプションでは、空のディレクトリをコピーしないことに注意してください。
rem /R:n 失敗したコピーに対する再試行数: 既定値は 1,000,000。
rem /W:n 再試行と再試行の間の待機時間: 既定値は、30 秒です。
rem /XJD フォルダの接合ポイントを除外します。 ジャンクションという特殊ファイルをコピー対象から外します。
rem /XJF ファイルの接合ポイントを除外します。ジャンクションという特殊ファイルをコピー対象から外します。
@echo on
robocopy C:XXXXXX\XXXXX C:\yyyy\yyyyy /S /W:5 /XJF /XJD
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
public enum StateID
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Animations;
#endif
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class CustomWindow : EditorWindow
{