This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"title": "気付いて小春ちゃん", | |
"people": [ | |
"古賀小春" | |
], | |
"number": 787 | |
}, | |
{ | |
"title": "セクシー魔女の悪戯", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Media Key for Subsonic 5 | |
// @namespace http://utgw.net/ | |
// @version 0.1 | |
// @description Enables to control your Subsonic with Media Key. | |
// @author utgwkk | |
// @match https?://*/subsonic/index.view | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TweetDeck Text Spacing | |
// @namespace http://utgw.net/ | |
// @version 0.1 | |
// @description TweetDeck で英字と非英字の間に自動でスペースを入れる | |
// @author @utgwkk | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.min.js | |
// @match https://tweetdeck.twitter.com/* | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import random | |
def zundoko(): | |
s = 'ズン', 'ドコ' | |
q = [] | |
while True: | |
z = random.choice(s) | |
yield z | |
q.insert(0, z) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import re | |
def expand_hyphen(pattern_string): | |
def _expand(hyphen): | |
start, end = map(ord, hyphen.groups()) | |
return ''.join(map(chr, range(start, end+1))) | |
return re.sub(r'(\S)\-(\S)', _expand, pattern_string) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name arbeit page no hogehoge suruyatu | |
// @namespace | |
// @version 0.1 | |
// @description s-coop.net のあれ | |
// @author utgwkk | |
// @match https://rcpt.kyoto-bauc.or.jp/kyodai_arbeit/* | |
// ==/UserScript== | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def split_list(xs, span=1): | |
result = [] | |
arr = [] | |
for i, x in enumerate(xs): | |
if i > 0 and i % span == 0: | |
result.append(arr) | |
arr = [] | |
arr.append(x) | |
else: | |
if len(arr) > 0: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
import re | |
import requests | |
import lxml.html | |
class Nijie(object): | |
def __init__(self, params): | |
self._scheme = 'http:' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import re | |
import tweepy | |
from tokens import * | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) | |
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET) | |
api = tweepy.API(auth) | |
me = api.me().screen_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
from PIL import Image | |
result = Image.new("L", (6400, 6400)) | |
for r, i in itertools.product(range(6400), repeat=2): | |
c = complex(r / 1600.0 - 2.0, i / 1600.0 - 2.0) | |
z = 0 | |
print(c) |