Skip to content

Instantly share code, notes, and snippets.

View wozozo's full-sized avatar
😇
Hello

wozozo

😇
Hello
  • Tokyo, Japan
  • 17:21 (UTC +09:00)
View GitHub Profile
diff --git a/translations/django.contrib-admin-js/ja.po b/translations/django.contrib-admin-js/ja.po
index f3aacca..f2bfce9 100644
--- a/translations/django.contrib-admin-js/ja.po
+++ b/translations/django.contrib-admin-js/ja.po
@@ -1,5 +1,5 @@
# This file is distributed under the same license as the Django package.
-#
+#
# Translators:
# Jannis Leidel <[email protected]>, 2011.
# coding: utf-8
import json
import urllib
import memcache
trello_url = ''
def main():
@wozozo
wozozo / skip_gihyo_ad_page.user.js
Created February 29, 2012 03:02
gihyo.jp の広告画面をスキップします
// ==UserScript==
// @name skip gihyo Ad page
// @namespace http://www.fujimotoyoichi.com/
// @include http://gihyo.jp/*
// @author wozozo
// @charset UTF-8
// @version 0.0.1
// ==/UserScript==
(function(){
@wozozo
wozozo / remove-utm.user.js
Last active September 30, 2015 03:37 — forked from yudoufu/remove-utm.txt
utmのパラメータをURLから取り除くuser.js
/**
* Remove utm parameters from url
* ( Use this as bookmarklet )
*/
(function(){
var search, params, i, re;
search = location.search.replace( /^\?/, '' ).split( '&' );
params = [];
if (!search) return;
i = search.length;
@wozozo
wozozo / remove-utm.txt
Created January 30, 2012 15:00 — forked from mach3/remove-utm.js
utmのパラメータをURLから取り除くブックマークレット
javascript:(function(){var d,b,c,a;d=location;b=d.search.replace(/^\?/,'').split('&');c=[];a=b.length;while(a--){if(!b[a].match(/^utm_/)){c.push(b[a])}}d.href=d.pathname+((c.length)?'?'+c.join('&'):'')})();
@wozozo
wozozo / tusyaya_open_reviews.user.js
Created January 29, 2012 08:18
TSUTAYA DISCAS のレビュー全部開くやつ
// ==UserScript==
// @name TSUTAYA: Open all reviews.
// @namespace http://www.fujimotoyoichi.com/
// @include http://www.discas.net/netdvd/dvd/*
// @author wozozo
// @charset UTF-8
// @version 0.0.1
// ==/UserScript==
(function() {
# coding: utf-8
import time
from pydelicious import get_all, delete
USERNAME = ''
PASSWORD = ''
def _delete():
# coding: utf-8
import tweepy
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = ''
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
@wozozo
wozozo / gist:1467189
Created December 12, 2011 13:37
default html template.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 8 ]>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<![endif]-->
<script type="text/javascript" src="//www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1");</script>
# coding: utf8
import random
def choice(d):
s = 0
for k, v in d.items():
s += v
_range = random.randrange(s)
if _range < v: