Skip to content

Instantly share code, notes, and snippets.

View wozozo's full-sized avatar
😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
  • Tokyo, Japan
  • 00:48 (UTC +09:00)
  • X @wozozo
View GitHub Profile
@wozozo
wozozo / json-response.py
Created June 6, 2012 15:34 — forked from leah/json-response.py
JSONResponse classes
import re
import simplejson
from django.http import HttpResponse
from django.conf import settings
class JSONResponse(HttpResponse):
def __init__(self, request, data):
content = simplejson.dumps(data, indent=indent)
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 <jannis@leidel.info>, 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() {
@wozozo
wozozo / r.js
Created September 29, 2015 14:53
__DEV__=!1,__BUNDLE_START_TIME__=Date.now(),function(e){function t(e){for(var t,n,r,o,i=Array.prototype.slice.call(e),a={};i.length;)if(n=i.shift(),!a[n]&&(a[n]=!0,r=h[n],r&&r.waiting))for(t=0;t<r.dependencies.length;t++)o=r.dependencies[t],(!h[o]||h[o].waiting)&&i.push(o);for(n in a)y.call(a,n)&&i.push(n);var s=[];for(t=0;t<i.length;t++){n=i[t];var u=n;if(r=h[n])if(r.waiting){for(var c=[],l=0;l<r.dependencies.length;l++)o=r.dependencies[l],(!h[o]||h[o].waiting)&&c.push(o);u+=" is waiting for "+c.join(", ")}else u+=" is ready";else u+=" is not defined";s.push(u)}return s.join("\n")}function n(e){this.name="ModuleError",this.message=e,this.stack=Error(e).stack,this.framesToPop=2}function r(o){var i,a,s,u=h[o];if(u&&u.exports)return 1===u.refcount--&&delete h[o],u.exports;if(e.ErrorUtils&&!T){T=!0;try{var c=r.apply(this,arguments)}catch(d){e.ErrorUtils.reportFatalError(d)}return T=!1,c}if(!u)throw s='Requiring unknown module "'+o+'"',l&&(s+=". If you are sure the module is there, try restarting the packager."),
# 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)