This file contains hidden or 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/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 |
This file contains hidden or 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 PlayerMovement : MonoBehaviour | |
{ | |
private System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); | |
[SerializeField] private float GroundedWait = 60f; | |
public CharacterController2D controller; |
This file contains hidden or 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
<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> |
This file contains hidden or 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
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)); | |
} | |
/* |
This file contains hidden or 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
<!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; | |
} |
This file contains hidden or 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
{ | |
"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", |
This file contains hidden or 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
[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) |
This file contains hidden or 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
{ | |
"name": "Armageddon mech pad", | |
"description": "Transform into the Armageddon mech.", | |
"type": "MechPad", | |
"mech": "armageddon-mech", | |
"size": 2, | |
"consumes": { | |
"power": 2.5 | |
}, | |
"category": "upgrade", |
This file contains hidden or 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
{ | |
"type": "ItemVoid", | |
"name": "Item-Void", | |
"description": "Entfernen Sie alle Materialien.", | |
"size": 1, | |
"hasItems": true, | |
"ItemStack": 100, | |
"update": true, | |
"soild": true, | |
"requirements": [ |
This file contains hidden or 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
//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; | |
} |