Skip to content

Instantly share code, notes, and snippets.

View alperozaydin's full-sized avatar

Alper Ozaydin alperozaydin

View GitHub Profile
paper = "this is reference 2"
references = "this is reference, this is reference 2, this is reference 3"
references = references.split(",")
for elem in references:
if elem.strip() == paper:
print elem.strip()
@alperozaydin
alperozaydin / git-cheat-sheet.txt
Last active February 13, 2020 16:26
git cheat sheet
# List all branches
$ git branch -a
# Switch to another branch
$ git checkout <branch_name>
# Which branch I am at
$ git branch
# Revert Changes to File
@alperozaydin
alperozaydin / match
Last active September 4, 2018 09:41
match
import random
rng = 1000000.0
people = [0, 0, 0, 0, 0]
for k in range(0, int(rng)):
match = [True, True, True, True, False]
random.shuffle(match)
min = 0
max = 4