State | Electoral-Votes | Estimated-Ballots-Cast-In-2016 | Voters-Per-Elector | Weight |
---|---|---|---|---|
Wyoming | 3 | 259,000 | 86333.33333 | 288.46% |
District of Columbia | 3 | 288,000 | 96000 | 259.42% |
Alaska | 3 | 315,000 | 105000 | 237.18% |
Vermont | 3 | 321,000 | 107000 | 232.75% |
Hawaii | 4 | 437,600 | 109400 | 227.64% |
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"
I'm facing a weird issue where my internet speeds on Windows appear to hover around 3Mbps while on the same machine, everything works fine on my dual booted Ubuntu installation.
A hardware / router / placement problem can be ruled out, since the everything is functioning completely fine in the other dual booted operating system.
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
/// <summary> | |
/// Returns comma separated string containing each int from an Array. | |
/// </summary> | |
/// <param name="ints"></param> | |
/// <returns></returns> | |
public string IntArrayToString(int[] ints) | |
{ | |
return string.Join(",", ints.Select(x => x.ToString()).ToArray()); | |
} |
If you have ruby installed (how to install ruby):
sudo gem install gist
If you're using Bundler:
Just enter
PS1='\u:\W\$ '
and press enter.
Taken from : http://askubuntu.com/a/145626
/// <summary>
/// Returns a random point in the space between two concentric circles.
/// </summary>
/// <param name="minRadius"></param>
/// <param name="maxRadius"></param>
/// <returns></returns>
Vector3 GetRandomPointBetweenTwoCircles(float minRadius, float maxRadius)
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
# install dependencies | |
sudo apt-get update | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y cmake | |
sudo apt-get install -y libgtk2.0-dev | |
sudo apt-get install -y pkg-config | |
sudo apt-get install -y python-numpy python-dev | |
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev | |
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev | |