Skip to content

Instantly share code, notes, and snippets.

$(".twitter-anywhere-tweet-box-editor").attr("value","トラウマチキン".split("").map(function(v){return{v:v,toString:function(){return Math.random();}}}).sort().map(function(v){return v.v}).join(""));
@arikui
arikui / upload.php
Last active December 12, 2015 09:09
<?php
header("content-type: text/plain");
$images_dir_name = "images";
$ip = $_SERVER["REMOTE_ADDR"];
// machine dirs
$script_filedir = dirname($_SERVER["SCRIPT_FILENAME"]);
$image_save_dir = $images_dir_name . DIRECTORY_SEPARATOR . $ip;
define("SAVE_DIR", $script_filedir . DIRECTORY_SEPARATOR . $image_save_dir);
// ==UserScript==
// @name Dashboard Drag Scroll
// @namespace http://d.hatena.ne.jp/arikui/
// @include http://www.tumblr.com/dashboard
// @include http://www.tumblr.com/tumblelog/*
// @grunt none
// ==/UserScript==
var position = {
mutable: false,