Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Meican Mail Image Helper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author witcher42
// @match http*://mail.meican.com/*
// @match http*://mail.qq.com/*
// @match http*://exmail.qq.com/*
// @grant none
// ==UserScript==
// @name Wide Trello
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Witcher42
// @match http*://*trello.com/*
// @grant none
// ==/UserScript==
@Miaonster
Miaonster / vnwdv.less
Created July 5, 2015 03:28
variable names with default value
@horizontal-default-color: #fff;
@horizontal-inverse-color: #000;
.horizontal-variant(@variant: default) {
@color: "horizontal-@{variant}-color";
color: @@color;
}
.horizontal-default{
.horizontal-variant();
@Miaonster
Miaonster / php-display-errors.php
Created November 29, 2013 09:19
PHP Display Errors
<?php
ini_set('display_errors', 'On');
div.container {
background-color: #FF0000;
margin: auto;
width: 304px;
}
div.div1 {
border: 1px solid #000;
float: left;
width: 150px;
@Miaonster
Miaonster / open-color-picker.sh
Created August 28, 2013 03:30
Tell QQ to open default colorpicker.
osascript -e 'tell application "QQ"' -e 'activate' -e 'choose color default color {123,123,123}' -e 'end tell'
$utf8Character = 'Ą';
list(, $ord) = unpack('N', mb_convert_encoding($utf8Character, 'UCS-4BE', 'UTF-8'));
echo $ord;
@Miaonster
Miaonster / chinese-judger.js
Created August 19, 2013 10:19
Judge Chinese Character
/[\u4e00-\u9fa5]/.test(source);
@Miaonster
Miaonster / dabblet.css
Created March 25, 2013 14:06
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {
background-color:#bca;
width:100px;
border:1px solid green;
}
@Miaonster
Miaonster / dabblet.css
Created January 18, 2013 14:33
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {
background-color:#bca;
width:100px;
border:1px solid green;
}