Skip to content

Instantly share code, notes, and snippets.

View jose-villegas's full-sized avatar

José Villegas jose-villegas

View GitHub Profile
@jose-villegas
jose-villegas / test.js
Last active August 29, 2015 14:27
taimatv
var w = window,
d = document,
e = d.documentElement,
g = d.getElementsByTagName('body')[0],
x = w.innerWidth || e.clientWidth || g.clientWidth,
y = w.innerHeight|| e.clientHeight|| g.clientHeight;
var percentageFill = 0.8;
document.getElementById("messagebuffer").style.height = percentageFill * y + "px";
function checkTime(i) {
if (i<10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
var colorMeBadInterval,
funkyTownInterval,
varPartyModeOn = false;
We couldn’t find that file to show.
.color1{background:orange;transition:background-color .5s ease}.color2{background:#ff0;transition:background-color .5s ease}.color3{background:green;transition:background-color .5s ease}.color4{background:blue;transition:background-color .5s ease}.color5{background:#4b0082;transition:background-color .5s ease}.color6{background:#ee82ee;transition:background-color .5s ease}.color7{background:#ffc0cb;transition:background-color .5s ease}.color8{background:purple;transition:background-color .5s ease}.span1{color:orange}.span2{color:#ff0}.span3{color:green}.span4{color:blue}.span5{color:#4b0082}.span6{color:#ee82ee}.span7{color:#ffc0cb}.span8{color:red}.animated{-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-ms-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s}.animated.hinge{-webkit-animation-duration:2s;-moz-animation-duration:2s;-ms-anima
.spoiler:hover{
background: #000000;
color:#FFFFFF;
}
.nick-hover > .spoiler {
background-color:#000
}
// tube favicon
(function() {
var link = document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'http://boards.420chan.org/static/images/board_icons/b_icon_64.png';
document.getElementsByTagName('head')[0].appendChild(link);
}());
function formatUserlistItem(a) {
.popup-imagelink{
position: absolute;
max-width: 200px;
max-height: 200px;
}
.explain-macro {
border-radius: 4px;
border:0px;
text-align:center;
<div class="modal fade" id="mBuffer-Settings">
<div class="modal-dialog modal-sm">
<div class="modal-content" style="max-width:770px;">
<div class="modal-header">
<button id="mBuffer-Settings-Close" class="close" data-dismiss="modal">
<span>&times;</span>
</button>
<h4 class="modal-title" id="mBufferTitle">
Chat Settings
Shader "Custom/Cook-Torrance" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_BumpMap("Normal Map", 2D) = "bump" {}
_Metallic("Metallic", Range(0,1)) = 0.5
_MetallicTex("Metallic", 2D) = "white" {}
_Roughness("Roughness", Range(0.000000001,1)) = 0.5
_RoughnessTex("Roughness", 2D) = "white" {}
_Fresnel("Fresnel Value", Float) = 0.028