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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
window.bboxInit = function () { | |
bbox.showForm('####################'); | |
}; | |
(function () { | |
var e = document.createElement('script'); e.async = true; | |
e.src = 'https://bbox.blackbaudhosting.com/webforms/bbox-min.js'; | |
document.getElementsByTagName('head')[0].appendChild(e); | |
} ()); |
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
// Source: http://forum.unity3d.com/threads/webgl-transparent-background.284699/#post-1880667 | |
// Clears the WebGL context alpha so you can have a transparent Unity canvas above DOM content | |
// Add this .jslib to your project et voila! | |
var LibraryGLClear = { | |
glClear: function(mask) | |
{ | |
if (mask == 0x00004000) | |
{ | |
var v = GLctx.getParameter(GLctx.COLOR_WRITEMASK); | |
if (!v[0] && !v[1] && !v[2] && v[3]) |
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/env python3 | |
from two1.wallet import Wallet | |
from two1.bitrequests import BitTransferRequests | |
# set up bitrequest client for BitTransfer requests | |
wallet = Wallet() | |
requests = BitTransferRequests(wallet) | |
# server address | |
server_url = 'http://localhost:5000/' |
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
intro: | |
title: The honest to goodness process. | |
body,wysiwyg: <p>Quae duo sunt, unum facit. Naturales divitias dixit parabiles esse, quod parvo esset natura contenta. Si enim ad populum me vocas, eum. Duo Reges: constructio interrete. Fortasse id optimum, sed ubi illud: Plus semper voluptatis? Non est igitur voluptas bonum. Compensabatur, inquit, cum summis doloribus laetitia.</p> | |
services: | |
title,textarea: | |
value: We’re a digital first agency based in Northern California with over 15 years of experience creating digital interactions, and engaging content that connects businesses, brands, and users alike. | |
help: The title of the <b>Services</b> equation which is shown throughout the site. | |
project_title,textara: | |
value: Services this project included: |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ColorShaderScript : ShaderBaseScript { | |
void Update() | |
{ | |
mat.SetColor("_Color", Color.white * new Vector4( | |
0.5f * Mathf.Sin(Time.timeSinceLevelLoad) + 0.5f, |
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/ColorFromNormals" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
Pass { | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
// include file that contains UnityObjectToWorldNormal helper function |
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/ModulusDiscardSizing" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
Pass { | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#include "UnityCG.cginc" |
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/SimplexNoise2D" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_Color2 ("Color2", Color) = (1,1,1,1) | |
_Color3 ("Color3", Color) = (1,1,1,1) | |
_Color4 ("Color4", Color) = (1,1,1,1) | |
} | |
SubShader { | |
Pass { | |
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
// Renders vertex colors on a mesh. | |
// Flat Shaded flag will ignore light. Useful for static Quill models | |
Shader "Custom/VertexColor" { | |
Properties { | |
[Toggle(FLAT_SHADED)] | |
_FlatShaded ("Flat Shaded", Float) = 0 | |
} |
OlderNewer