Skip to content

Instantly share code, notes, and snippets.

View fuwac's full-sized avatar

kabineko fuwac

View GitHub Profile
@fuwac
fuwac / serialproc.go
Created March 16, 2021 07:29
goでシリアル通信奴
package main
import (
"flag"
"fmt"
"log"
"time"
"github.com/goburrow/serial"
)
@fuwac
fuwac / capture.py
Created October 15, 2017 23:47
pythonでWEBの画像キャプチャするやつ
# coding: UTF-8
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import datetime
url = r"http://hogefuga:5601/app/kibana#/visualize/edit/foobar&embed=true"
out_path = r"Z:\share\graph"
@fuwac
fuwac / Scroll.cs
Last active June 19, 2017 23:39
Unityでカメラをスクロールさせるやつ
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Scroll : MonoBehaviour {
private float touch_start_x; // タッチ開始X座標
private float touch_end_x; // タッチ終了X座標
private bool during_touch; // タッチ中かな?
public Camera cam; // カメラ(外から入れる)
@fuwac
fuwac / macrocheck.py
Created June 1, 2017 04:31
正規表現と抽出
# coding: UTF-8
import os
import re
import sys
# マクロの情報
class MacroInfo:
def __init__(self, name, value, comment):
self.name = name # マクロ名
self.value = value # 値
@fuwac
fuwac / bintest.py
Created May 23, 2017 23:56
バイナリ走査するやつ
# coding: UTF-8
import sys
import os
param = sys.argv # 引数とってくる
prg_start_addr = 3 # 探索開始アドレス
fin = open(param[1], "rb") # 引数1のファイル読み込み(読み込み専用バイナリ)
@fuwac
fuwac / Form1_Excel.cs
Created May 19, 2017 00:23
Excel操作するやつ
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@fuwac
fuwac / MyProc.c
Created May 13, 2017 12:33
cppucheck導入時のテストコード
int MyProc(int a, int b)
{
return -1; // とりあえず実装
//return a+b; // テストケース通す実装
}
@fuwac
fuwac / command.py
Created May 8, 2017 12:37
コマンドー
# coding: utf-8
print("  ______  ________  __   __   _ _   _ _")
print(" |      | |       | |  \ |   | |   |  | || |")
print(" |      | |____    .| |.  | |   | |   |   ̄  ̄ _____")
print("   ̄ ̄ ̄|  | r― 、  /  /  \__| |   | |     ̄ ̄ ̄|  |     |")
print("  ___|  | |   \/  /      /   | |        |  |     |")
print(" |      | \     ./  | ̄ ̄ ̄   ./ |   | ̄ ̄ ̄   ̄ ̄ ̄ ̄ ̄")
print(" |      |   \   \  |     / |   |")
print("   ̄ ̄ ̄ ̄ ̄      ̄ ̄ ̄    ̄ ̄ ̄       ̄ ̄")