Skip to content

Instantly share code, notes, and snippets.

View msukmanowsky's full-sized avatar
🥳
Building the future of how companies work with elvex!

Mike Sukmanowsky msukmanowsky

🥳
Building the future of how companies work with elvex!
View GitHub Profile
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
@msukmanowsky
msukmanowsky / Game.ts
Created October 18, 2022 02:09
TicTacToe using boardgame.io
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
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">
@msukmanowsky
msukmanowsky / 1-prompt.txt
Last active January 27, 2025 20:13
I tried a fairly simple prompt using Ollama and DeepSeek's R1 8B model. The result was a pretty hilarious example of a model spinning out in an endless loop while considering alternatives. I eventually had to kill it with CTRL-C.
>>> 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)`