Skip to content

Instantly share code, notes, and snippets.

{
"origin":["{svg <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"500\" height=\"500\" viewBox=\"0 0 200 200\" style=\"enable-background:new 0 0 200 200;\" id=\"svg2\" xml:space=\"preserve\"><filter id=\"blurMe\"><feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"#blurSize#\"/> </filter>#rects#</svg>}"],
"rects":[
"#rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect#",
"#rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect#",
"#rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##rect##
@v21
v21 / TraceryDecoder.cs
Created October 24, 2015 14:57
you also need LitJson.dll
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using LitJson;
using System;
using System.Text.RegularExpressions;
public class TraceryDecoder : MonoBehaviour {
@v21
v21 / VectorExtensions.cs
Created July 23, 2015 15:21
VectorExtensions.cs
using UnityEngine;
using System.Collections;
public static class VectorExtensions {
public static Vector2 xy(this Vector3 vector)
{
return new Vector2(vector.x, vector.y);
}
public static Vector2 yz(this Vector3 vector)
@v21
v21 / temperature 0.2.txt
Last active August 29, 2015 14:23
RNN generation of Twine (overnight)
:: finally party?
<<set $player = $player + 1>>
<<endsilently>>
<<if $foudre eq "yes">><<set $party = $player + 1>>
<<endif>>
<<endif>>
<<endif>>
:: beautiful [dream2]
@v21
v21 / first sample output
Created June 15, 2015 01:12
RNN generation of Twine
žmenging.Setyare>), estencare:&offa, remominition) penceever pibcem. 'Youesere. The fimmpre intermer itsage.
<<sitilently>>
<<set $teadin_.=mansgy = $goinder" antage:>>[[Read]]
[[|
Conat it Pesseite
The Every1]
<<set $shoffom1 = 0>>
Togor ging unvershise one blyony, Go buther <<silect>> every the stepiwing sourselar some to the vascies anorostol Un12 1.8..+CINUHETRR SONUNIMAGOEARMS
{
"origin": ["#prefix##suffix#","#prefix##suffix#","#prefix##suffix#","#prefix##suffix#","#prefix##prefix##suffix#","#prefix##suffix##suffix#"],
"prefix" :["infra","infra","super","peri","peri","inter","morph","morph","extra","poly","mech","vita","ludo","ludo","ludi","ludi","phan","phas","multi","magn","nov","gen","fix","glu","glo","form","com","kine","kine","exo","exo", "meet","agon"],
"suffix":["math","math","matic","clash","ward","cosm","cosm","gam","acy","al","dom","ment","gon","ify","aby","ical","ive","stroy","struct","struct","stry","tor","tort"]
}
@v21
v21 / gist:a20ca5100c9443565efa
Created May 27, 2015 15:13
@unicode_garden
{
"origin": [
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
"#[dominant:#grasssource#]grassstructure#",
@v21
v21 / Pixelated.shader
Last active August 29, 2015 14:18
Pixelated.shader
Shader "Custom/Pixelated" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_PixelSize ("Width and height of pixel in px", Range(1,100)) = 1
}
SubShader {
Pass {
ZTest Always Cull Off ZWrite Off
Fog { Mode off }
@v21
v21 / gist:f4bf6552c05fe4753c93
Created January 25, 2015 12:39
Sandstorm errors
___________________________________________
xinput1_3.dll not found. Gamepad support disabled
(click "Ignore", and then)
___________________________________________
############################################################################################
FATAL ERROR in Vertex Shader compilation
@v21
v21 / Write-only Twitter
Created October 20, 2014 00:27
Write-only Twitter
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
#timeline
{
display:none;
}