Skip to content

Instantly share code, notes, and snippets.

View akouryy's full-sized avatar
💭
🐰

akouryy akouryy

💭
🐰
View GitHub Profile
@akouryy
akouryy / 1-英辞郎.user.css
Created June 28, 2020 05:22
英辞郎 + MouseDictionary
/* ==UserStyle==
@name MouseDictionary
@namespace akouryy.net/stylus
@version 1.0.0
@description userstyle for MouseDictionary
@author akouryy
==/UserStyle== */
@-moz-document regexp(".*") {
.net-akouryy-mouse_dictionary-custom {
COMPLEMENT = %r{
^ (?:
(?<A> [01] )
(?= (?<B> [01] \g<B> [01] | , .*? (?! \k<A>) [01] ) $ )
)++
, [01]++ $
}x
BINARY_X = %r{
^ (?<B>)
{M[m
a A! s S! i I! o O! # staticっぽいメソッドもインスタンスを介して呼び出す必要があるのでインスタンスを作成
N <50> =
/N
<0> <-1> # スタック: 上←[-1,0]→下
N N* 2 aa.? = # 「2」というのはスタック([N*,N,-1,0])の上から2番目に積まれている<-1>のこと
1 # 1は<0>
J <8> =
/J
J J* 3 aa.? = # 3は<-1>

依存型

  • TBool ☑
  • TInt
  • TFloat
  • TList
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("tweetdeck.twitter.com") {
#container {
background: url(file:///C:/OneDrive/images/anime/lapin-1.png);
background-size: cover;
}
.js-app-columns,
.js-detail-container,
.js-column,
@akouryy
akouryy / slw.cpp
Created February 24, 2016 15:28
競プロテンプレート(2016/2/25)
#include <bits/stdc++.h>
using namespace std;
#define lambda [&]
#define tmpA template<class A>
#define tmpB template<class A, class B>
#define tmpX template<class X, class ...Y>
tmpA using V = vector<A>; tmpA using W = V<V<A>>; tmpA using VW = V<W<A>>; tmpA using WW = W<W<A>>;
tmpB using P = pair<A, B>; tmpA using PP = P<A, A>;
tmpA using S = set<A>;
他人に読まれることを想定していない
@akouryy
akouryy / 競プロ
Last active January 30, 2016 14:26
絶対書く
#define int long long
ios::sync_with_stdio(0); cin.tie(0);
気をつける
入力が0や負のとき
入力が全て条件Pを満たす/満たさないとき
出力が0や負のとき
出力が存在しないとき(-1, NGなど)
出力が全てPを満たす/満たさないとき
テンプレ: https://gist.github.com/akouryy/7450d21b24aaa2bcbbaa