Skip to content

Instantly share code, notes, and snippets.

@hecomi
hecomi / favstar.rb
Created April 4, 2012 15:57 — forked from siyo/favstar.rb
favstar ふぁぼったりRTしたユーザ名も見るやつ(色つき) / earthquakge.gem plugin
# -*- coding: utf-8 -*-
# favstar / earthquakge.gem plugin
#
# e.g. :favstar #=> your favstar
# :favstar who #=> who's favstar
#
require 'rss'
require 'open-uri'
require 'nokogiri'
@hecomi
hecomi / blink1_notifier.rb
Last active December 14, 2015 15:29 — forked from siyo/blink1_notifier.rb
blink(1) eartuqake.gem plugin to blink by each user's icon color
# -*- coding: utf-8 -*-
# blink(1) eartuqake.gem plugin to blink by each user's icon color
#
require 'rubygems'
require 'rmagick'
def getRGB(url)
@rgb ||= {}
if (@rgb["#{url}"].nil?)
image = Magick::Image.read(url).first.resize!(1, 1)
Shader "Custom/TestShading" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
}
SubShader {
Tags { "RenderType" = "Opaque" }
CGPROGRAM
#pragma surface surf Lambert
struct Input {
float4 color : COLOR;