回収したタグ一覧
- 期待の新人
- 期待の本人
- 擬態の新人
- 期待の玄人
- 期待の新神
- 期待の神々
- 期待の真神
- 期待のラスボス
var numbase, | |
numdot_len = 5; | |
/* Bell 数を計算します */ | |
function bellNumber(n, l) { | |
var i, cur_l = [], prev_l; | |
if (l == undefined) { | |
l = [[1]]; | |
} | |
if (n <= 1) { |
#!/usr/bin/python | |
def Hello():_ | |
def World():_ | |
print Hello.__name__,World.__name__ |
回収したタグ一覧
// ==UserScript== | |
// @name Tumblr Tornado | |
// @namespace https://github.com/poochin | |
// @version 1.2.9.42 | |
// @description Tumblr にショートカットを追加するユーザスクリプト | |
// @include http://www.tumblr.com/dashboard | |
// @include http://www.tumblr.com/dashboard?oauth_token=* | |
// @include http://www.tumblr.com/dashboard/* | |
// @include http://www.tumblr.com/reblog/* | |
// @include http://www.tumblr.com/likes |
/** | |
* Name: tParser | |
* Desc: Lite template engine (only assign and array iterate) | |
* License: MIT | |
* Author: poochin | |
**/ | |
/** | |
* 構文: | |
* {{ A }}: 変数の代入 |
// ==UserScript== | |
// @name Tumblr Tornado | |
// @namespace https://github.com/poochin | |
// @version 1.2.8.10 | |
// @description Tumblr にショートカットを追加するユーザスクリプト | |
// @include http://www.tumblr.com/dashboard | |
// @include http://www.tumblr.com/dashboard?oauth_token=* | |
// @include http://www.tumblr.com/dashboard/* | |
// @include http://www.tumblr.com/reblog/* | |
// @include http://www.tumblr.com/likes |
/* fetch から複製できるもの */ | |
{ | |
"error":, false, | |
"created_post": true, | |
"context_page": false /* "dashboard" */, | |
"post_context_page": "dashboard", | |
"post": {} /* -post */ | |
} | |
/* fetch.post から複製できるもの */ |
/* fetch */ | |
{ | |
"errors": false, | |
"post": { | |
"id": null, | |
"two": "", | |
"three": "http:\/\/soundcloud.com\/iosysos\/zedd-clarity-feat-foxes-denpa", | |
"state": 0, | |
"publish_on": false, | |
"type": "audio", |
// Tumblr reblogフォームの変更により対応(中)のパッチ | |
// photoでテストしてて http://www.tumblr.com/svc/post/update で403が返ってくる途中の状態 | |
// あと fetchが重い(というかfetchの必要ない(?) | |
(function() { | |
update(Tombloo.Service.extractors['ReBlog - Dashboard'], { | |
extract : function(ctx) { | |
return Tombloo.Service.extractors.ReBlog.extractByLink(ctx, this.getLink(ctx)).addCallback(function(res) { | |
var expr = './ancestor-or-self::li[starts-with(normalize-space(@class), "post")]' + | |
'//a[starts-with(@href,"/reblog/")]'; |
new Ajax.Request('http://www.tumblr.com/svc/post/update', | |
{ | |
method: 'post', | |
parameters: '{"form_key":"' + document.body.getAttribute('data-form-key') + '","context_id":"","context_page":"dashboard","is_rich_text[one]":"0","is_rich_text[two]":"0","is_rich_text[three]":"0","channel_id":"' + $$('#popover_blogs .popover_menu_item:not(#button_new_blog)')[0].id.slice(9) + '","post[slug]":"","post[draft_status]":"","post[source_url]":"http://","post[date]":"","post[type]":"regular","post[one]":"test","post[two]":"test","post[tags]":"","post[publish_on]":"","post[state]":"1","custom_tweet":"test - test [URL]"}', | |
requestHeaders: ['Content-Type', 'application/json'] | |
}) |