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
from django.contrib.auth import login as django_login, logout as django_logout | |
from rest_framework.request import Request | |
from rest_framework.response import Response | |
from rest_framework.decorators import ( | |
api_view, | |
authentication_classes, | |
permission_classes, | |
) | |
from rest_framework.authentication import SessionAuthentication | |
from rest_framework.permissions import IsAuthenticated |
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
import type { Game, Move } from "boardgame.io"; | |
import { INVALID_MOVE } from "boardgame.io/core"; | |
export interface TicTacToeState { | |
cells: (null | string)[]; | |
} | |
function isVictory(cells: (null | string)[]): boolean { | |
const positions = [ | |
// Horizontal |
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
type Props = { | |
color: string; | |
}; | |
export default function CrescentSpinner({ | |
color = "gray", | |
}: Props) { | |
return ( | |
<div aria-label="Loading..." role="status"> | |
<svg className="h-6 w-6 animate-spin" viewBox="3 3 18 18"> |
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
>>> I'm loading a spreadsheet in pandas. What's the best way to find the first n | |
... on empty column and row to consider the "table" that will eventually become | |
... the dataframe? Write a method to do this `_get_dataframe_from_excel(sheet_na | |
... me: str, excel_file: ExcelFile)` |
OlderNewer