Skip to content

Instantly share code, notes, and snippets.

@rixtox
rixtox / blockads_weibo.rules
Last active December 10, 2015 00:38
Block ads on Weibo
vdisk.weibo.com##A[id="toolbar_download_forward"][class="W_btn_b"]
vdisk.weibo.com##A[id="toolbar_save_forward"][class="W_btn_b"]
weibo.com##A[class="gn_tab gn_member"]
weibo.com##DIV[id="trustPagelet_recom_interestv5"]
weibo.com##DIV[class="W_rightModule"]
weibo.com##DIV[id="trustPagelet_zt_hottopicv5"]
weibo.com##DIV[class="WB_right_module"]
weibo.com##DIV[id="pl_leftnav_group"][class="level_2_Box"]
weibo.com##DIV[id="pl_leftnav_app"]
weibo.com##A[href="http://club.weibo.com/intro"]
@rixtox
rixtox / marble_kml_bugs.md
Created December 30, 2012 16:25
List of bugs in current Marble dealing with KML file.

Marble KML Bugs

  1. Relative path doesn't work while loading local images in IconStyle
  2. HTML tag links will dissapear after click in placemark's desciption

Earthwings provided a patch for the relative path problem but I didn't try it yet because I'm using the Mac OS binary version of Marble. Check it here

@rixtox
rixtox / .gitconfig
Created January 6, 2013 05:38
my git configs
[user]
name = RixTox
email = [email protected]
[alias]
s = status
co = checkout
p = push
a = add
c = commit
[color]
@rixtox
rixtox / bezierCurve.html
Last active December 15, 2015 00:59
HTML5 Bezier Curve
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Bezier Curve</title>
</head>
<body>
<style>
* {margin: 0; padding: 0;}
body, html {height:100%; background-color: #000;}
@rixtox
rixtox / clock.html
Created March 16, 2013 13:48
HTML5 Clock
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Clock</title>
</head>
<body style="background-color:#000;text-align:center;">
<canvas id="c" height="600" width="600" style=""></canvas>
<script>
var cvs = document.getElementById('c'),
@rixtox
rixtox / tetwist_marathon.js
Created March 16, 2013 17:02
A initial plan for how the engine should be formed.
var marathon_playfield = new voka.playfield({
width: 10,
height: 20,
event_handlers: {
lines_cleared: function(event) {
var current_level = event.game.level,
lines_cleared = event.lines_cleared.length;
var addition = {
1: current_level * 100,
@rixtox
rixtox / jsnoquot.html
Last active December 15, 2015 19:09
Encode your JavaScript without any quotation mark.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS NoQuot</title>
<style>
textarea {
font-family: 'consolas';
}
</style>
@rixtox
rixtox / Generate Iconset.jsf
Created July 12, 2013 16:15
You need to add executable privileges for icns.sh after the first time you run the command. If you changed your project name, you need to remove icns.sh and rerun the command.
/***********************************
Adobe Fireworks Command File
Auto export iconset with different
resolutions for icns generating.
Install into ~/Library/Application
Support/Adobe/Fireworks CS6/Commands
************************************
@rixtox
rixtox / .zshrc
Last active October 23, 2017 07:22
My .zshrc
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="xir"
plugins=(git extract zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
alias ls='ls --color'
alias lsa='ls -lah'
var data = {
stat: {
mastery: {
zh: '精通',
detail: '影响角色不同天赋的不同技能效果'
},
stamina: {
zh: '耐力',
detail: '影响角色和宠物的生命值'
},