Skip to content

Instantly share code, notes, and snippets.

View yuesha-yc's full-sized avatar
🚩
Studying

Yichen Wang yuesha-yc

🚩
Studying
  • UC Los Angeles
  • Los Angeles, CA
View GitHub Profile
https://stackoverflow.com/questions/3293531/how-to-permanently-remove-few-commits-from-remote-branch
@yuesha-yc
yuesha-yc / metadata
Last active September 28, 2021 18:21
{
"name": {
"title": "Full Name",
"type": "string",
"githubKey": "name"
},
"email": {
"title": "E-Mail",
"type": "string",
"githubKey": "email",
{
"name": {
"title": "Full Name",
"type": "string",
"githubKey": "name"
},
"email": {
"title": "E-Mail",
"type": "string",
"githubKey": "email",
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 \