Skip to content

Instantly share code, notes, and snippets.

Avatar
♻️
【Rebooting】

Ben "Pig" Chu benpigchu

♻️
【Rebooting】
View GitHub Profile
@benpigchu
benpigchu / bpc.txt
Last active Apr 20, 2021
bpc is short for...
View bpc.txt
bad pointer cast
bad pool caller
baden powell college
baka person crasher
baking pumpkin cake
ball product creator
ban push command
banana pie company
basic permission control
basic pop club
@benpigchu
benpigchu / planet-nyaacat.css
Created Feb 17, 2017
Citrus design for Planet NyaaCat
View planet-nyaacat.css
*{box-sizing:border-box;position:relative;overflow-wrap:break-word;}
html{background-color:#999999}
body{box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);background-color:#ffffff;margin:48px auto;padding:16px}
header{padding-bottom:8px;border-bottom:1px solid #aaa}
.date{opacity:0.2}
.date+ul{padding-bottom:8px;border-bottom:1px solid #aaa}
.date+ul>li{padding-top:8px;border-top:1px dashed #aaa}
figure{overflow-x:auto}
@media screen and (max-width: 480px){
body{width:100%;margin:16px auto;}
@benpigchu
benpigchu / v2ex.css
Last active Feb 13, 2017
Citrus design for v2ex
View v2ex.css
*{border-radius:0!important;position:relative}
.box{box-shadow:none}
.sep20:not(:first-child):not(:last-child){display:none}
.box:not(.transparent):not(:nth-child(1)):not(:nth-child(2)):before{content:"";height:20px;display:block;border:inherit}
#Main>.box:not(.transparent){box-shadow:0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)!important}
.box.transparent{margin-top:20px;margin-bottom:20px;}
.box.transparent+.sep20+.box:before{display:none}
@benpigchu
benpigchu / bomb.cpp
Created Dec 28, 2016
Naively bomb the compiler
View bomb.cpp
#include <iostream>
template<int _height>
struct node{
const int height=_height;
node<_height-1> left;
node<_height-1> right;
inline print(int num=0){
for(int i=0;i<num;i++){
std::cout<<'-';
@benpigchu
benpigchu / wikimedia.user.css
Last active Jan 24, 2021
Citrus design for wikimedia projects
View wikimedia.user.css
@-moz-document regexp("(http|https)://[^]*\\.(wikipedia|wiktionary|wikibooks|wikisource|wikiversity|wikiquote|wikinews|wikivoyage)\\.org/(wiki/|zh/|zh-cn/|zh-hk/|zh-mo/|zh-sg/|zh-tw/|zh-hans/|zh-hant/|w/index.php)[^]*"), regexp("(http|https)://(meta|commons|species|wikitech|wikimania[0-9]*|outreach|incubator)\\.wikimedia\\.org/(wiki/|w/index.php)[^]*"), regexp("(http|https)://www\\.(mediawiki|wikidata)\\.org/(wiki/|w/index.php)[^]*"), regexp("(http|https)://(wikimediafoundation)\\.org/(wiki/|w/index.php)[^]*") {
body>#content{box-shadow:0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);border:none;padding-top:calc(5em + 40px);top:-20px;position:relative;margin-bottom:-20px}
#mw-head-base{height:0}
#mw-head::before{content:"";height:0;width:100%;bottom:0;left:0;position:absolute;border-bottom: 1px solid #e5e5e5}
.rtl #mw-head{right:10em;max-height:5em;width:auto !important}
.ltr #mw-head{left:10em;max-height:5em;width:auto !important}
@media screen and (min-width: 982px){
.ltr #mw-head{left:11em}
View baidu.css
body{display:none}
html::before{content:"你已经连上了互联网";position:fixed;left:0;right:0;top:0;bottom:0;margin:auto;height:100px;width:500px;font-family:"DengXian";text-align:center;line-height:100px;font-size:24px;box-shadow: 0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);background-color: hsl(30,100%,95%)}
html{overflow:hidden;background-color:#FF7F00;background-image:url(http://benpigchu.com/img/pattern.png);color:rgba(0,0,0,0.8)}
@benpigchu
benpigchu / vijos.css
Last active Mar 1, 2016
Citrus design for Vijos
View vijos.css
body,div,p {margin:0;padding:0;position:relative}
html,body {background:#DDDDDD;width:100% !important}
.citrus-night,.citrus-night body{background:#333333}
ul{margin:16px 0}
a {transition:all 200ms}
table {table-layout: fixed;}
blockquote {border:none !important;margin:0 !important;padding:8px 0 !important}
.block {border:none !important;margin-bottom:16px !important}
* {text-shadow:none !important;border-radius:0 !important}
.c1,.lytitle{padding-left:8px !important;padding-right:8px !important}