Skip to content

Instantly share code, notes, and snippets.

View unarist's full-sized avatar

unarist unarist

View GitHub Profile
@unarist
unarist / only_statuses.sql
Last active October 23, 2017 11:03 — forked from aschmitz/sample_load.sql
Loading a representative sample of data into a Mastodon database for migration tests
DO $$
DECLARE ratio float;
DECLARE statuses_count integer;
DECLARE conversations_count integer;
DECLARE notifications_count integer;
DECLARE media_attachments_count integer;
DECLARE oauth_access_tokens_count integer;
DECLARE stream_entries_count integer;
DECLARE favourites_count integer;
DECLARE mentions_count integer;
@unarist
unarist / auto_nya-n_s_rec.user.js
Last active March 3, 2018 12:12 — forked from pacochi/auto_nya-n_s_rec.user.js
安全なオートにゃーん(音声認識ロック付き)
// ==UserScript==
// @name auto nya-n (unlock by speech recognition)
// @namespace https://github.com/unarist/
// @include https://*/web/*
// @conrtibutor pacochi https://gist.github.com/pacochi/4295d00d6368c53921047d2a90dca8b5
// @version 1.170908
// @description nya-n
// @downloadURL https://gist.github.com/unarist/d71b04702091fe5a8143af26b78410da/raw/auto_nya-n_s_rec.user.js
// @run-at document-idle
// @grant none
@unarist
unarist / README.md
Created December 31, 2015 02:43 — forked from ento/README.md
Treemap of Stack Exchange Sites

Stack Exchangeのサイトをさまざまな指標にもとづいたツリーマップで表示します。色分けはサイト一覧上のカテゴリによります。

@unarist
unarist / gist:6576907
Last active December 23, 2015 03:59 — forked from anonymous/gist:6576895
Cookie Clickerで一つの建造物を買えるだけ買い続けたらどうなるかシミュレートするコード群。
-- Main> simulation State {...} 適当な秒数
module Main where
data State = State {
baseCost:: Integer, -- 初期コスト。これを元にコストが計算される。
baseCpS:: Integer, -- 一基あたりのCpS。baseって名づけたけどこっちは変動なし。
buildingCount:: Int, -- 所有数。
totalCpS:: Integer, -- 全体のCpS。baseCpSを足していくだけなので、最初から値を入れておけばずらせる。
totalCookies:: Integer -- クッキーおいしい。