Skip to content

Instantly share code, notes, and snippets.

View terrehbyte's full-sized avatar
It's an Adventure, Right, Right?

Terry Nguyen terrehbyte

It's an Adventure, Right, Right?
View GitHub Profile
@terrehbyte
terrehbyte / UniversalPipelineTemplateShader.shader
Last active October 19, 2021 00:22 — forked from phi-lira/UniversalPipelineTemplateShader.shader
Template shader to use as guide to create Universal Pipeline ready shaders. This shader works with Universal Render Pipeline 8.2.x < 10
// URP 8.2.X - Lit Shader Template
// Forked by @terrehbyte from https://gist.github.com/phi-lira/225cd7c5e8545be602dca4eb5ed111ba
// Changes made per comments from @Dan3dd - https://gist.github.com/phi-lira/225cd7c5e8545be602dca4eb5ed111ba#gistcomment-3259431
//
Shader "Universal Render Pipeline/Custom/Physically Based Example"
{
Properties
{
// Specular vs Metallic workflow
[HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.0

P4 Revert Guide

Old, but Reliable

To revert someone else's files, you'd ideally know the $USER, $CLIENT, $CHANGE (optionally), and $FILESPEC.

  • $USER, the username as indicated by perforce
  • $CLIENT, also known as the workspace
  • $CHANGE, the number of the changelist (or default)

Whiteboard Exercise

In groups, complete the following exercises on a whiteboard with help from your team. Once you think you have a working solution, have someone from the team transcribe it into the HackerRank editor and test to see if it works. If it fails one of the test cases, review it as a team and return to the whiteboard to edit your solution.

Work through the following exercises. They are provided in the order from least difficult to most difficult according to HackerRank's system.

Physics in Unity and Time Steps

Closed

Trampoline

Create an object that acts as a trampoline. Objects that fall into it should be thrust into the air using physical forces.

The amount of force that is applied to the object should be configurable.

Co-routines

Closed

Counting to X

Create a simple script that prints all of the whole numbers from 0 to a given number, such as 10. This should be conducted within a coroutine as opposed to running it within an update message in a regular script.

Scripting and Core Concepts

Closed

1. Game Expansion

Take some time to expand upon your game level and build out your level more. Add some new ramps, bridges, platforms, or anything else you can think of to let your player explore your environment.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
[RequireComponent(typeof(Camera))]
public class CameraDump : MonoBehaviour
{
private int imageCount;
@terrehbyte
terrehbyte / README.md
Last active December 17, 2017 05:29
Comparing startup time between VS 2017 and VS Code in a less than stellar manner.

This completely unprofessional startup time profiling was conducted using [PassMark AppTimer][AppTimer].

The following settings were used:

  • Window Detection Method
    • Input Idle
    • Window Name
    • Visible
  • Window Close Method
  • WM_Close
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@terrehbyte
terrehbyte / material-design-breakpoints.css
Created June 11, 2017 03:32 — forked from eyecatchup/material-design-breakpoints.css
CSS media queries based on the breakpoint guidance published by the Material Design team. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoint
/* Material Design Adaptive Breakpoints */
/*
Below you'll find CSS media queries based on the breakpoint guidance
published by the Material Design team. You can choose to use, customise
or remove these breakpoints based on your needs.
http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
*/
/* mobile-small */