This file contains hidden or 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
    
  
  
    
  | # Handy list of apps to install via brew | |
| brew install \ | |
| neovim \ | |
| git \ | |
| tmux \ | |
| htop \ | |
| python3 \ | |
| tree \ | |
| fzf \ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Minimal Git prompt script | |
| # The standard git-prompt.sh script is pretty slow when working | |
| # in large repositories since it runs a bunch of git commands. | |
| # This one strips it down to just a signle git commands that gets the | |
| # current branch. | |
| # | |
| # This works with zsh. Haven't tested it with bash | |
| __git_ps1_minimal() { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | from mindstorms import MSHub, Motor, MotorPair, ColorSensor, DistanceSensor, App | |
| from mindstorms.control import wait_for_seconds, wait_until, Timer | |
| from mindstorms.operator import greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to | |
| import math | |
| # Create your objects here. | |
| hub = MSHub() | |
| color_sensor = ColorSensor('B') | |
| distance = DistanceSensor('D') | |
| motor = Motor('C') | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Change cd to always activate the virtual environment, assuming it's called ".venv" | |
| # Save this in your powershell profile folder (`notepad $PROFILE`) to make it work | |
| function Set-Location { | |
| param( | |
| [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] | |
| [Alias('PSPath')] | |
| [string] | |
| $Path | |
| ) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | UseRWithGpus> docker build . -f dockerfiles\tensorflow-2-gpu.Dockerfiles | |
| Sending build context to Docker daemon 2.048kB | |
| Step 1/2 : FROM gcr.io/deeplearning-platform-release/tf2-cpu | |
| latest: Pulling from deeplearning-platform-release/tf2-cpu | |
| 35c102085707: Already exists | |
| 251f5509d51d: Already exists | |
| … | |
| 928e12577c37: Pull complete | |
| 48d9ceba06f1: Pull complete | |
| Digest: sha256:88ae24914e15f2df11a03486668e9051ca85b65f8577358e7d965ce6a146f217 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | FROM gcr.io/deeplearning-platform-release/tf2-gpu | |
| LABEL maintainer="Zain Rizvi" | 
  
    
      This file contains hidden or 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 the lastest version of R from the offical repository | |
| apt install apt-transport-https software-properties-common ocl-icd-opencl-dev -y | |
| apt install dirmngr --install-recommends -y | |
| apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF' | |
| add-apt-repository "deb http://cloud.r-project.org/bin... stretch-cran35/" | |
| apt update | |
| apt install r-base -y | 
  
    
      This file contains hidden or 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 | |
| # add a simple 'nuget' command to Mac OS X under Mono | |
| # get NuGet.exe binary from http://nuget.codeplex.com/releases/view/58939 | |
| # get Microsoft.Build.dll from a Windows .NET 4.0 installation | |
| # copy to /usr/local/bin and Robert is your father's brother.... | |
| # | |
| PATH=/usr/local/bin:$PATH | |
| mono --runtime=v4.0 /usr/local/bin/NuGet.exe $* |