This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program : IClientMethods | |
{ | |
void Main() | |
{ | |
IWaku2Rpc<IServerMethods> client = Waku2Rpc.Create<IServerMethods>(this); | |
client.Chat(new Msg { name="", msg="", dummy=0 }); | |
} | |
public void ChatNotify(int id, string name, string msg) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data GameVersion = Vol1 | Vol2 | Vol3 | Vol4 | Vol5 | Vol6 | Promotion | |
deriving Eq | |
data AppearType = Cute | Cool | Sexy | Pop | |
deriving Eq | |
data CardCategory = Tops | Bottoms | Onepiece | Shoes | Accessory | |
deriving Eq | |
data CardBrand = AngelySugar | FuturingGirl | SpicyAgeha | HappyRainbow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
internal class MainForm : Form | |
{ | |
[DllImport("user32.dll", SetLastError = true)] | |
private extern static void AddClipboardFormatListener(IntPtr hwnd); | |
[DllImport("user32.dll", SetLastError = true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Main> simulation State {...} 適当な秒数 | |
module Main where | |
data State = State { | |
baseCost:: Integer, -- 初期コスト。これを元にコストが計算される。 | |
baseCpS:: Integer, -- 一基あたりのCpS。baseって名づけたけどこっちは変動なし。 | |
buildingCount:: Int, -- 所有数。 | |
totalCpS:: Integer, -- 全体のCpS。baseCpSを足していくだけなので、最初から値を入れておけばずらせる。 | |
totalCookies:: Integer -- クッキーおいしい。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
'select setval(''' || sequence || ''', (select max(' || column_name || ') from ' || table_name || '));' as setval | |
from | |
( | |
select | |
table_name | |
, column_name | |
, substr(column_default, 10, length(column_default) - 21) as sequence | |
from | |
information_schema.columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# git-branch-stats.sh (c)2014 unarist | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
同時押しのキー数を数える by unarist | |
押して離したタイミングでカウント。 | |
*/ | |
var form = new Form(); | |
var view = new Label{Dock=DockStyle.Fill}; | |
form.Controls.Add(view); | |
var keys = new HashSet<Keys>(); | |
var log = new int[16]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
autocrlf = False | |
[fetch] | |
prune = true | |
[push] | |
default = current | |
[pull] | |
ff = only | |
[alias] | |
sd = diff --color-words |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name PSO2Wiki コメントページ詳細 | |
// @namespace https://github.com/unarist/ | |
// @version 0.2 | |
// @description enter something useful | |
// @author You | |
// @match http://pso2.swiki.jp/index.php?Comments%2F* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Transifexで原文と訳文をまとめてコピーするやつ | |
// @namespace https://github.com/unarist/ | |
// @downloadURL https://gist.githubusercontent.com/unarist/e58f7a051c285d614a89/raw/transifex-copyall.user.js | |
// @version 0.6 | |
// @description enter something useful | |
// @author unarist | |
// @match https://www.transifex.com/*/translate/ | |
// @require https://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js | |
// @grant none |
OlderNewer