Skip to content

Instantly share code, notes, and snippets.

View d12's full-sized avatar
🐱

Nathaniel Woodthorpe d12

🐱
View GitHub Profile
@mathdroid
mathdroid / never.gif
Last active February 11, 2024 22:25
Never
never.gif
@d12
d12 / foo.md
Created January 17, 2018 21:06
-          connection.relation.count("*")
+          connection.relation.count(:all)
@happyrobots
happyrobots / gist:1862963
Created February 19, 2012 10:17
Copy to Clipboard Using Ruby
# Mac
IO.popen('pbcopy', 'r+') { |clipboard| clipboard.puts html_out }
# Linux
IO.popen(’xsel –clipboard –input’, ‘r+’) { |clipboard| clipboard.puts html_out }
@keijiro
keijiro / UnlitTransparentColored.shader
Created January 26, 2012 04:47
Unlit Transparent Colored Shader
Shader "Unlit/Transparent Colored" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
ZWrite Off