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
import numpy as np | |
# Use recursion to check insulation | |
def insulate(space, pos): | |
# pos already discovered, skip | |
if space[pos] == 2: | |
pass | |
# pos is on boundary | |
if pos[0] <= 0 or pos[0] >= space.shape[0]-1 \ | |
or pos[1] <= 0 or pos[1] >= space.shape[1]-1 \ |
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
{ | |
"name": { | |
"title": "Full Name", | |
"type": "string", | |
"githubKey": "name" | |
}, | |
"email": { | |
"title": "E-Mail", | |
"type": "string", | |
"githubKey": "email", |
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
{ | |
"name": { | |
"title": "Full Name", | |
"type": "string", | |
"githubKey": "name" | |
}, | |
"email": { | |
"title": "E-Mail", | |
"type": "string", | |
"githubKey": "email", |
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
https://stackoverflow.com/questions/3293531/how-to-permanently-remove-few-commits-from-remote-branch |