This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Mewlist | |
{ | |
public class EditorBatchProcessor | |
{ |
This file contains 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
Shader "Custom/Holo" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_Emission ("Emission", Range(0,1)) = 0.0 | |
} | |
SubShader { | |
ColorMask 0 |
This file contains 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/ruby | |
puts ARGV[0] + ": " + | |
ARGV[0].split(//).map{|c| | |
open("google-ime_tutc_my.utf.txt").read.split("\n") | |
.inject({}){|acc, line| | |
lambda{|v| acc[v.last] = v.first }.call line.split | |
acc | |
}[c] | |
}.join(" ") |
This file contains 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
{ | |
"description": "mirror commands", | |
"manipulators": [ | |
{ "from": { "key_code": "slash", "modifiers": { "mandatory": [ "right_command" ] } }, | |
"to": [ { "key_code": "z", "modifiers": [ "command" ] } ], "type": "basic" }, | |
{ "from": { "key_code": "slash", "modifiers": { "mandatory": [ "right_command", "right_shift"] } }, | |
"to": [ { "key_code": "z", "modifiers": [ "command", "shift" ] } ], "type": "basic" }, | |
{ "from": { "key_code": "period", "modifiers": { "mandatory": [ "right_command" ] } }, | |
"to": [ { "key_code": "x", "modifiers": [ "command" ] } ], "type": "basic" }, | |
{ "from": { "key_code": "comma", "modifiers": { "mandatory": [ "right_command" ] } }, |
This file contains 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
Shader "Custom/UVScroll" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Velocity ("Velocity", Range(0, 100)) = 0 | |
_Rotation ("Rotation", Range(0, 360)) = 0 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
CGPROGRAM |
This file contains 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
T=[%w(I V X),%w(X L C),%w(C D M), %w(M - -)] | |
D=[[],[0],[0,0],[0,0,0],[0,1],[1],[1,0],[1,0,0],[1,0,0,0],[0,2]] | |
(1..1999).each{|n| | |
s = n.to_s.split('').map{|v|v.to_i} | |
s.size.times{|i| D[s[i]].each{|j| print T[s.size-i-1][j] } } | |
puts | |
} |
This file contains 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
$.ajaxTransport("+*", function( options, originalOptions, jqXHR ) { | |
if(jQuery.browser.msie && window.XDomainRequest) { | |
var xdr; | |
return { | |
send: function( headers, completeCallback ) { |
This file contains 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
[alias] | |
co = checkout | |
st = status | |
ll = log --graph --decorate --oneline | |
la = log --graph --decorate --oneline --all | |
[color] | |
ui = true |
This file contains 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
#!/bin/bash | |
# usage: | |
# alert.sh [command] | |
$@ | |
ruby <<EOD | |
require 'real_growl' | |
RealGrowl::Application.new("Alert").notify(:title=>"Alert", :description=>"finished: $@", :priority=>0, :sticky => false) | |
EOD |
This file contains 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
require 'open-uri' | |
require 'image_size' | |
class ConvertAssetInline | |
def initialize | |
@orig = nil | |
@cache = {} | |
end | |
def convert(url) |