Skip to content

Instantly share code, notes, and snippets.

View mlvrkhn's full-sized avatar
👋

mlvrkhn mlvrkhn

👋
View GitHub Profile
@jsdf
jsdf / Fetch-API-cheat-sheet.md
Last active August 18, 2022 20:23
Fetch API cheat sheet

fetch api cheat sheet

get JSON

fetch('/things/10', {
  credentials: 'same-origin',
  headers: {
    'accept': 'application/json'
  }
@rsheldiii
rsheldiii / chess.py
Created June 26, 2012 04:07
chess program for python
"""CONVENTIONS:
positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples
"""
import itertools
WHITE = "white"
BLACK = "black"