Skip to content

Instantly share code, notes, and snippets.

@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.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 / 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 / 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 / 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 / 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
Base = sqlalchemy.ext.declarative.declarative_base()
class Information(Base):
__tablename__ = 'information'
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True)
lcid = sqlalchemy.Column(sqlalchemy.String)
name = sqlalchemy.Column(sqlalchemy.String)
class CategoryID(Base):
__tablename__ = 'categoryIDs'
@Omochin
Omochin / config.py
Created March 24, 2017 06:05
IntelliSenseが効きそうなConfigクラス
import random
import yaml
class Config:
@classmethod
def register(cls, key):
return property(
lambda self: self.yaml[key],
lambda self, value: self.save(key, value),
)