Skip to content

Instantly share code, notes, and snippets.

@Omochin
Omochin / StartGranblue.cs
Last active August 24, 2016 10:02
グラブルを12垢同時起動する(起動するだけ)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace ConsoleApplication1
{
@Omochin
Omochin / ForegroundGranblue.cs
Last active August 24, 2016 09:03
グラブルを最前面に表示
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace ConsoleApplication2
@Omochin
Omochin / StartGranblue.xml
Last active September 6, 2016 08:57
StartGranblue.cs で使うXMLファイルの見本
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfGranblueApp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GranblueApp>
<Path>C:\グラブル\01.lnk</Path>
<X>-10</X>
<Y>0</Y>
<Width>352</Width>
<Height>620</Height>
</GranblueApp>
@Omochin
Omochin / generator.py
Last active December 7, 2016 22:00
別のところにあるtemplate.htmlを使う。eve_online_careers_graph.txt はここから https://t.co/pB0t72M7Wt
import codecs
import re
import os
rows = [
"index",
"LICENSE",
"キャリア選択:s:4,5,6,7",
"PvE:s:8,9,12,13,14",
"PvP:s:14,18,19,20,21,22,23,24",
@Omochin
Omochin / template.html
Last active December 7, 2016 21:51
別のところにあるgenerator.pyの生成元HTML
<!DOCTYPE html>
<html lang="ja">
<head>
<title>EVE Online キャリア選択</title>
<meta charset="utf-8">
<style>
a:link { color: white; }
a:visited { color: white; }
a:hover { color: white; }
a:active { color: white; }
@Omochin
Omochin / eveonline_corp_member_portraits_crawler.py
Last active April 17, 2017 05:35
EVE Onlineのコーポレーションの社員のポートレートを取得する。pipでrequestsを入れる。
'''
EVE Online Coporation Member's Portraits Crawler
- Example
python CorpMemberPortraitsCrawler.py 98055960
Get SAKUMA DROP's Member portraits
'''
import requests
import json
@Omochin
Omochin / DPISwitcher.cpp
Last active February 18, 2017 07:20
引数に2つの解像度を指定して切り替えるC++コード
#include <iostream>
#include <string>
#include <Windows.h>
int main(int argc, char* argv[]) {
if (argc != 6)
{
printf("Please arguments: monitorNo width1 height1 width2 height2\n");
getchar();
@Omochin
Omochin / config.yaml
Created February 27, 2017 10:38
https://developers.eveonline.com/resource/resources > sde-xxxxxxxx-TRANQUILITY.zip > sde > fsd > typeIDs.yaml の名前部分を抽出してCSVに吐くスクリプト
import: TypeIDs.yaml
export: TypeIDs.csv
locales:
# - de
- en
# - fr
- ja
# - ru
# - zh
import os
import os.path
import codecs
import watchdog.events
import watchdog.observers
class ChatLogHandler(watchdog.events.FileSystemEventHandler):
def check(self, path):
with codecs.open(path, 'r', 'utf-16-le') as f: