This file contains 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; | |
public static class ColliderTwiddler { | |
static List<Collider> colliders = new(); | |
/** | |
* This is a hack to force the colliders to trigger OnTriggerEnter/etc. | |
* Call this after instantiating an object or adding a rigidbody to it. | |
*/ |
This file contains 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
#!/bin/sh | |
if [ -z $1 ] | |
then | |
echo 'Usage: mov2gif [50%] [15fps] source_file [destination_file]' | |
exit 1 | |
fi | |
scale=1 | |
scale_pat='^[0-9]+%$' |
This file contains 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
[ | |
["f", "Show next/latest diffs", "setProposedDiffBounds()"], | |
["n", "Next unreviewed file", "nextUnreviewedFile()"], | |
["p", "Previous unreviewed file", "prevUnreviewedFile()"], | |
["shift+n", "Next changed file", "nextChangedFile()"], | |
["shift+p", "Previous changed file", "prevChangedFile()"], | |
[null, "Next visible file", "nextVisibleFile()"], | |
[null, "Previous visible file", "prevVisibleFile()"], | |
[null, "Next file", "nextFile()"], |
This file contains 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
/* Fix ProBuilder Pivot | |
* An action to move the pivot back to the mesh in cases where you've | |
* manipulated the edges/faces of a mesh and left the pivot far behind | |
* Author: Levi Lansing (https://github.com/levilansing) | |
* Feb 2018 | |
*/ | |
using UnityEngine; | |
using UnityEditor; | |
using ProBuilder2.Common; |
This file contains 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
// increase YouTube video playback speed beyond UI limitations of 2x | |
document.getElementsByTagName("video")[0].playbackRate = 2.5; |
This gist provides polyfill code for the scrollIntoViewIfNeeded()
Element method found on WebKit browsers.
There is no particular requirement on the position in the hierarchy of the element being made visible with respect to any scrollable areas. Elements that are relatively positioned as well as nested scrollable areas are both supported.
CoffeeScript version added with an optional offset for scrolling past fixed headers, etc