If you have ruby installed (how to install ruby):
sudo gem install gist
If you're using Bundler:
If you have ruby installed (how to install ruby):
sudo gem install gist
If you're using Bundler:
The following code was found at http://www.alecjacobson.com/weblog/?p=1875
The page suffered from bad formatting so the contents have been pasted here for easier readibility.
// Modified from "Video Texture" code
// Copyright (C) 2009 Arsalan Malik (arsalank2@hotmail.com)
//
/// <summary> | |
/// Returns a random vector3 between min and max. (Inclusive) | |
/// </summary> | |
/// <returns>The <see cref="UnityEngine.Vector3"/>.</returns> | |
/// <param name="min">Minimum.</param> | |
/// <param name="max">Max.</param> | |
/// https://gist.github.com/Ashwinning/269f79bef5b1d6ee1f83 | |
public Vector3 GetRandomVector3Between (Vector3 min, Vector3 max) | |
{ | |
return min + Random.Range (0, 1) * (max - min); |
I described how to set a context menu option to open a Powershell console on right click earlier.
To open Powershell as admin on right click, we can add a command to be executed on start to our registry entry like so
$stpath = pwd; Start-Process PowerShell -ArgumentList \"-NoExit\", \"-Command cd $stpath\" -verb RunAs
So our Command
in the registry entry will look like the following
Timer module for python to measure elapsed time.
Copy Timer.py to the same folder as your python files.
Linux
wget "https://gist.githubusercontent.com/Ashwinning/313a4bed6af3f7599ac168c4de82b555/raw/Timer.py"