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
    
  
  
    
  | """ | |
| A simple python program showing how to use regular | |
| expressions to write a paren-matching recursive parser. | |
| This parser recognises items enclosed by parens, brackets, | |
| braces and <> symbols, but is adaptable to any set of | |
| open/close patterns. This is where the re package greatly | |
| assists in parsing. | |
| Published by Gene Olson at | 
  
    
      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/bash | |
| # | |
| # Make a FreeBSD bootable sdcard for NanoPi Neo3. | |
| # The idea is to mix an official ROCK64 snapshot with U-Boot for Neo3 board from Armbian project. | |
| # This script is based on the original forum post at | |
| # https://forums.FreeBSD.org/threads/nanopi-neo-3-rockchip-rk3328.76449/post-493043 | |
| # | |
| set -e | |
| if [[ $UID != 0 ]]; then | 
  
    
      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
    
  
  
    
  | # Clone all branches individually | |
| my(@branches) = ( | |
| "eskew", | |
| "combinations", | |
| "distributed", | |
| "earnest", | |
| "emax", | |
| "engine-hpc", | |
| "engine-trivial", | 
  
    
      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/bash | |
| # Automatic Image file resizer | |
| # Written by SirLagz | |
| # Fixed 2016.04.17 by @ChrisPrimeish | |
| strImgFile=$1 | |
| if [[ ! $(whoami) =~ "root" ]]; then | |
| echo "" | |
| echo "**********************************" | |
| echo "*** This should be run as root ***" | 
  
    
      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/bash | |
| # Automatic Image file resizer | |
| # Written by SirLagz | |
| # Fixed 2016.04.17 by @ChrisPrimeish | |
| strImgFile=$1 | |
| if [[ ! $(whoami) =~ "root" ]]; then | |
| echo "" | |
| echo "**********************************" | |
| echo "*** This should be run as root ***" | 
  
    
      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/bash | |
| #===================================================================== | |
| # Selects an android device | |
| # Copyright (C) 2012-2020 Diego Torres Milano. All rights reserved. | |
| # | |
| # See: | |
| # - http://dtmilano.blogspot.ca/2013/01/android-select-device.html | |
| # - http://dtmilano.blogspot.ca/2012/03/selecting-adb-device.html | |
| # for details on usage. | |
| #===================================================================== | 
  
    
      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
    
  
  
    
  | // Given all possible combinations of K values, each no greater than M, and whose sum is exactly N | |
| // (zeros and different orderings are accounted, that is 1 + 4 and 4 + 1 are different combinations), | |
| // for the known combination, reconstruct back its index (the order of enumeration does not matter). | |
| // | |
| // C++ implementation of an algorithm proposed by Mike Earnest. | |
| // | |
| // Compile: g++-11 earnestrank.cpp -o earnestrank | |
| // Run: ./earnestrank | |
| // | |
| // | 
  
    
      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
    
  
  
    
  | --- a/scripts/local 2019-10-17 07:29:20.000000000 +0200 | |
| +++ b/scripts/local 2021-05-12 20:30:38.000000000 +0200 | |
| @@ -198,56 +198,10 @@ | |
| local_mount_overlay() | |
| { | |
| - # Test (mmc) block device | |
| - [ -b "${USERDATA%p*}" ] && \ | |
| - [ -b "${USERDATA}" ] || return | |
| - | 
  
    
      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
    
  
  
    
  | all: jumptable | |
| jumptable.cubin: jumptable.ptx | |
| nvcc -arch=sm_61 $< -cubin | |
| jumptable: jumptable.cu jumptable.cubin | |
| nvcc -arch=sm_61 $< -o $@ -lcuda | |
| clean: | |
| rm -rf jumptable jumptable.cubin | 
  
    
      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/bash | |
| echo "Creating Jupyter environment in" $(pwd) | |
| python3 -m venv ./.venv | |
| sh -c "source .venv/bin/activate && pip3 install --upgrade pip && pip3 install jupyter && ipython kernel install --user --name=.venv" | |
| echo "Created Jupyter environment in" $(pwd) |