Skip to content

Instantly share code, notes, and snippets.

View LuckierDodge's full-sized avatar
🎷
Noodlin'

Ryan D. Lewis LuckierDodge

🎷
Noodlin'
View GitHub Profile
@abstractron
abstractron / GridFloorShader.shader
Created January 18, 2018 20:13
Unity grid floor shader
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
Shader "Custom/GridShader" {
Properties{
_GridThickness("Grid Thickness", Float) = 0.1
_GridSpacing("Grid Spacing", Float) = 0.1
_GridColour("Grid Colour", Color) = (0.5, 1.0, 1.0, 1.0)
_BaseColour("Base Colour", Color) = (0.0, 0.0, 0.0, 0.0)
@micahgodbolt
micahgodbolt / wsl_install_node.md
Last active December 22, 2022 09:37
WSL install Node

The apt-get version of node is incredibly old, and installing a new copy is a bit of a runaround.

So here's how you can use NVM to quickly get a fresh copy of Node on your new Bash on Windows install

$ touch ~/.bashrc
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
// restart bash
$ nvm install --lts
@jjfiv
jjfiv / JSONUtil.java
Created February 27, 2015 21:41
JSON escaping and unescaping that really works, no dependencies.
// BSD License (http://lemurproject.org/galago-license)
package org.lemurproject.galago.utility.json;
public class JSONUtil {
public static String escape(String input) {
StringBuilder output = new StringBuilder();
for(int i=0; i<input.length(); i++) {
char ch = input.charAt(i);
int chx = (int) ch;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname