Skip to content

Instantly share code, notes, and snippets.

Shader "Custom/test"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
private System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
[SerializeField] private float GroundedWait = 60f;
public CharacterController2D controller;
<style>
.strikethrough {
text-decoration: line-through
}
</style>
<body>
<span class="strikethrough">Just some random text.</span> <br>
<span title="A bit more random text." class="strikethrough">A bit more random text.</span>
</body>
function h2b(hexin){
return parseInt(hexin, 10).toString(2);
}
//from http://stackoverflow.com/a/12987042
function d2h(n){return n.toString(16).toUpperCase()}
function conv(hexin){
console.log('0x'+d2h(hexin)+':'+h2b(hexin));
}
/*
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" content="width=device-width,initial-scale=1" name="viewport">
<title>Your Twitter Data</title>
<style>
@media screen and (min-width: 450px) {
#mobile-error {
display: none;
}
{
"type": "Separator",
"name": "Copper Trade",
"description": "Trades Copper for mats. Low chance for rare mats.",
"size": 2,
"results": [
"graphite/4",
"copper/4",
"lead/10",
"titanium/3",
[I] [GL] Version: OpenGL 4.6.1 / ATI Technologies Inc. / AMD Radeon(TM) RX Vega 10 Graphics
[I] [GL] Max texture size: 16384
[I] [GL] Using OpenGL 2 context.
[I] [JAVA] Version: 1.8.0_72
[I] Loaded mod 'AdvanceContent' in 2.5818ms
[E] rhino.EcmaError: ReferenceError: "DoubleTurret" is not defined. (mirage#1)
at rhino.ScriptRuntime.constructError(ScriptRuntime.java:3955)
at rhino.ScriptRuntime.constructError(ScriptRuntime.java:3935)
at rhino.ScriptRuntime.notFoundError(ScriptRuntime.java:4012)
{
"name": "Armageddon mech pad",
"description": "Transform into the Armageddon mech.",
"type": "MechPad",
"mech": "armageddon-mech",
"size": 2,
"consumes": {
"power": 2.5
},
"category": "upgrade",
{
"type": "ItemVoid",
"name": "Item-Void",
"description": "Entfernen Sie alle Materialien.",
"size": 1,
"hasItems": true,
"ItemStack": 100,
"update": true,
"soild": true,
"requirements": [
//a lot of the faster look like this
var twoSum = function(nums, target) {
let map = new Map();
for (let i = 0; i < nums.length; i++) {
if (map[target - nums[i]] !== undefined) {
return [map[target - nums[i]], i];
}
map[nums[i]] = i;
}