Skip to content

Instantly share code, notes, and snippets.

View ThaDewey's full-sized avatar

Robert Wall ThaDewey

View GitHub Profile
@ThaDewey
ThaDewey / overshoot.js
Last active February 26, 2024 03:22
overshoot - Maybe this will help you.Add position to your text,disable range selector and add expression selector.Apply the expression below to “amout” propety.and change the value inside as needed.. https://creativecow.net/forums/thread/overshoot-per-character-using-text-animator/
delay = .1;
myDelay = delay*textIndex;
t = (time - inPoint) - myDelay;
if (t>=0){
freq =3;
amplitude = 150;
decay = 8.0;
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
{s,s}
}else{
@ThaDewey
ThaDewey / cssDev.css
Last active December 11, 2023 16:28
A collection of CSS to use while building a website.
.box-100 {
width:100px;
height:100px;
}
/* Colors */
.amber,
.hover-amber:hover {
background-color: #ffc107 !important
}
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class DimensionsTool : EditorWindow {
Bounds bounds = new Bounds();
long polygons = 0;
int count = 0;
bool drawBox = false;
@ThaDewey
ThaDewey / PolyCount.cs
Created July 13, 2017 02:39
A Simple Polygon counter for Unity
using UnityEngine;
using UnityEditor;
using System.Collections;
public class PolyCount : EditorWindow {
long numPolys = 0;
bool deep = false;
bool showList = false;
Vector2 scroll = new Vector2();
@ThaDewey
ThaDewey / AntiRollBar.cs
Created June 24, 2017 04:59
Rollbar physics hanlder so that physically driven cars don;t flip over. use as componeennt
//http://answers.unity3d.com/questions/21417/my-car-keeps-fliping-over-i-have-an-idea-how-to-fi.html
using UnityEngine;
using System.Collections;
public class AntiRollBar : MonoBehaviour {
public WheelCollider wheelL;
public WheelCollider wheelR;
public float antiRollVal = 5000f;
@ThaDewey
ThaDewey / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ThaDewey
ThaDewey / ReusableJquery
Created February 10, 2014 15:00
10+ handy and reusable jQuery code snippets | CatsWhoCode.com | Published on January 21st, 2014 by Jean-Baptiste Jung
10+ handy and reusable jQuery code snippetsPublished on January 21st, 2014 by Jean-Baptiste Jung. 1 Comment -
Over the years, jQuery became a must-use for every web developer. It is simple to use, fast and very powerful. In this article I have put together a series of 10+ handy jQuery code snippets you may save and copy to use at your own discretion. These snippets are super easy to adapt to match your own script.
Smooth scrolling to top of pageLet’s start this list by a very popular and useful snippet: Those 4 lines will allow your visitors to smooth scrool to the top of the page simply by clicking a a link (with #top id) located at the bottom of your page.
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});