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
| (async () => { | |
| const rawResponse = await fetch('https://httpbin.org/post', { | |
| method: 'POST', | |
| headers: { | |
| 'Accept': 'application/json', | |
| 'Content-Type': 'application/json' | |
| }, | |
| body: JSON.stringify({a: 1, b: 'Textual content'}) | |
| }); | |
| const content = await rawResponse.json(); |
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
| 1) Open known_hosts file and look for the invalid host | |
| nano ~/.ssh/known_hosts | |
| 2) Remove the line that has the invalid host. Should be the same host in your .git/config of your repo | |
| ssh-keygen -R [dev.blahblah.com]:1234 | |
| 3) Pull from repo | |
| git pull | |
| 4) You should see something similar to this. Answer 'yes' when asked. |
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 MouseLook : MonoBehaviour | |
| { | |
| private bool mouseLock = true; | |
| public float mouseSensitivity = 100f; | |
| public Transform playerBody; |
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 UnityEngine; | |
| using UnityEngine.EventSystems; // 1 | |
| public class PointerExample : MonoBehaviour | |
| , IPointerClickHandler // 2 | |
| , IDragHandler | |
| , IPointerEnterHandler | |
| , IPointerExitHandler | |
| // ... And many more available! | |
| { |
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.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| using UnityEngine.EventSystems; | |
| public class CheckClicks : MonoBehaviour | |
| { | |
| // Normal raycasts do not work on UI elements, they require a special kind | |
| GraphicRaycaster raycaster; |
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; | |
| using UnityEngine.AI; | |
| // Handles actual movement of character + triggering things like animation | |
| // This game has a "shooting mode" which is activated by Left Shift | |
| // So you'll see shooting logic as well | |
| public class PlayerLocomotionController : MonoBehaviour |
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
| pico-8 cartridge // http://www.pico-8.com | |
| version 18 | |
| __lua__ | |
| --[[function spline(x0,y0,x1,y1,c) | |
| local dx = x1 - x0 | |
| local dy = y1 - y0 | |
| local step = dx/dy | |
| local x = x0 - (y0 % 1) * step | |
| local y = flr(y0) |
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
| git config --global init.defaultBranch main |
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 UnityEngine; | |
| using System.Collections; | |
| public class FlyCamera : MonoBehaviour { | |
| /* | |
| Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care. | |
| Converted to C# 27-02-13 - no credit wanted. | |
| Simple flycam I made, since I couldn't find any others made public. | |
| Made simple to use (drag and drop, done) for regular keyboard layout |
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
| %YAML 1.1 | |
| %TAG !u! tag:unity3d.com,2011: | |
| --- !u!1 &738646681595172696 | |
| GameObject: | |
| m_ObjectHideFlags: 0 | |
| m_CorrespondingSourceObject: {fileID: 0} | |
| m_PrefabInstance: {fileID: 0} | |
| m_PrefabAsset: {fileID: 0} | |
| serializedVersion: 6 | |
| m_Component: |