Skip to content

Instantly share code, notes, and snippets.

ping localhost -n 10 > nul
start pathto/file.exe
exit
Type GetPropertyType(SerializedProperty property)
{
var paths = property.propertyPath.Split('.');
var target = property.serializedObject.targetObject as object;
return paths.Aggregate(target, (t, path) => t.GetType().GetField(path).GetValue(t)).GetType();
}
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
[InitializeOnLoad]
class MissingScriptChecker : Editor
{
if ( Input.GetKeyUp(KeyCode.S))
{
var filePath = Application.dataPath + "/screenshot/" + System.DateTime.Now.ToFileTime() + ".png";
Application.CaptureScreenshot(filePath, screenShotScale);
}
javascript:
f = (document.getElementById('accesskey_5')
|| (function(){
var inputs = document.getElementsByTagName('input');
for(var i=0;i<inputs.length;++i){
if(inputs[i].accessKey==5 || /home|btn_main/.test(inputs[i].className)) return inputs[i];
}
})()
).form;
cnt = 0;
javascript:
var els = document.getElementsByTagName('a');
as=[];
for(var i=0;i<els.length && as.length<3;++i){
var e = els[i];
if ('進化素材にする'==e.text && 'shortcut_link_show'!=e.id) as.push(e);
}
(function(){
var e = as.shift();
if ( e ){
javascript:
$.each($('tr td:last-child').find('a'), function(){
var a_tag = $(this);
$.get(a_tag.attr('href'), function(data){
$.each($(data).find('tr td:first-child'), function(){
var value = $(this).text().match(/防戦力:\d+/);
if ( value ){
a_tag.parent().append(value[0]);
return false;
}
javascript:
var posts = $.map($('input[value="報酬を受け取る"]').parents('form'), function(form){
return $.post(form.action);
});
$.when.apply(null,posts).done(function(){ location.reload();});
javascript:
function seq_func(){
$.get(location.href, function(data){
$.get($(data).find('#resque-pop-wrapper a').first().attr('href'), function(){
location.reload();
});
});
}
$.get($('#raid-menu a').first().attr('href'), seq_func);
@fuqunaga
fuqunaga / g_imas
Last active December 17, 2015 05:39
function prog(url,html)
{
var ajax = function(next_url, func){
return next_url && func(next_url, function(data){
prog(next_url, data);
});
}
var get_func = function(next_url){ return ajax(next_url, $.get)};
var post_func = function(next_url){ return ajax(next_url, $.post)};
var link = function(btn_sel)