Skip to content

Instantly share code, notes, and snippets.

View xen0n's full-sized avatar

WÁNG Xuěruì xen0n

View GitHub Profile
@xen0n
xen0n / NanNvShen_Self_Voting.user.js
Created October 17, 2013 09:00
experimental Renren userscript to enable self-voting on the hui.renren.com/daren13 campaign for fun
// ==UserScript==
// @name NanNvShen Self Voting
// @namespace name.xen0n
// @description Enables self-voting on hui.renren.com/daren13 campaign.
// @include http://hui.renren.com/daren13/user/profile*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
@xen0n
xen0n / strings.xml
Created August 28, 2012 15:41
github-android zh_CN translation update
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 GitHub Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@xen0n
xen0n / admin-forms.patch
Created August 28, 2012 15:19
rudimentary tag support for django-cms
diff -Nur a//admin/forms.py b//admin/forms.py
--- a//admin/forms.py 2012-07-17 09:56:36.060026507 +0800
+++ b//admin/forms.py 2012-08-28 23:14:08.606910058 +0800
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
from cms.apphook_pool import apphook_pool
from cms.forms.widgets import UserSelectAdminWidget
+from cms.forms.textmodelfield import TextModelMultipleChoiceField
from cms.models import (Page, PagePermission, PageUser, ACCESS_PAGE,
- PageUserGroup)