Skip to content

Instantly share code, notes, and snippets.

View FlandreDaisuki's full-sized avatar
🌈
世界にバグは不要です

Chun-Hao Lien FlandreDaisuki

🌈
世界にバグは不要です
View GitHub Profile
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
pkg-config \
// ==UserScript==
// @name EHShortcut
// @namespace FlandreDaisuki
// @include http://exhentai.org/*
// @include http://g.e-hentai.org/*
// @version 2016.03.02
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
@FlandreDaisuki
FlandreDaisuki / Python2.7-OpenCV.md
Last active March 12, 2016 06:40
Windows suck!!!!

Go to

http://opencv.org/

Extract it and find build/

Copy *.pyd into path/of/your/python/DLL

For example

Your python in C:\python27

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("dcpc.nctu.edu.tw") {
html, body {
height: 100%;
width: 100%;
}
body {
background-image: url(http://i.imgur.com/JIokEO8.jpg) !important;
@FlandreDaisuki
FlandreDaisuki / OrderAnime.py
Created May 13, 2016 18:08
Make your animes orderly
import re
from os import listdir, mkdir
from os.path import isfile, isdir, splitext
from shutil import move as mv
def move(src, dst):
_ = mv(src, dst)
def parseBrackets(fname):
name, ext = splitext(fname)
@FlandreDaisuki
FlandreDaisuki / PMX仕様.txt
Created July 7, 2016 15:56
backup from PmxEditor_0236
■PMX仕様
PMDエディタ0.1.0.1以降及び PMXエディタ にて対応されている PMX形式(2.0以降)のデータフォーマット及び動作仕様です。
■使用条件
規約に関しては PMXエディタ等と共通となります。
管理はこちらで一括して行います。勝手な改変についてはNG(こちらでは一切対応しません)
@FlandreDaisuki
FlandreDaisuki / CustomDYMY.user.js
Last active July 26, 2016 07:54
let dymy more powerful
// ==UserScript==
// @name CustomDYMY
// @description Custom your favorite teams for new anime
// @namespace FlandreDaisuki
// @include https://share.dmhy.org/*
// @author FlandreDaisuki
// @version 2016.07.16
// @grant none
// ==/UserScript==
/* jshint esnext: true */
/*
* 存成 ~/桌面/hello.cpp
*/
#include <GL/glut.h>
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glutWireTeapot(0.5);
@FlandreDaisuki
FlandreDaisuki / index.js
Created November 10, 2016 07:20 — forked from edokeh/index.js
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@FlandreDaisuki
FlandreDaisuki / GM_download_polyfill.js
Created February 18, 2017 02:32 — forked from ccloli/GM_download_polyfill.js
GM_download polyfill, a polyfill to make your userscript supports GM_download
/*
* GM_download polyfill
*
* @description A polyfill to make your userscript supports GM_download
* @author ccloli
* @version 1.0
*/
// to use this polyfill, you must add "@grant GM_xmlhttpRequest" at userscript metadata block