Skip to content

Instantly share code, notes, and snippets.

View begoon's full-sized avatar
💭
Eating

Alexander Demin begoon

💭
Eating
View GitHub Profile
@begoon
begoon / sad_words.py
Created September 17, 2024 12:36
Sad words classifier
import sys
import torch
from torch import Tensor
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import Dataset, DataLoader
sad_words = ["грустно", "одиноко", "cry", "tears", "sad", "sorrow", "grief", "pain", "lonely"]
normal_words = ["happy", "joy", "love", "smile", "cheerful", "excited", "fun"]
@begoon
begoon / AWS lambda custom runtime for Deno or Bun
Last active July 4, 2024 16:08
AWS lambda custom runtime for Deno or Bun
.
@begoon
begoon / Paginator.svelte
Created July 8, 2023 14:43
Simple paginator for Svelte
<script lang="ts">
import PageLink from "./PageLink.svelte";
export let pages: number;
export let current: number;
export let query: string | undefined;
</script>
{#if pages > 1}
{#if pages < 20}
@begoon
begoon / Dockerfile
Last active July 8, 2023 14:40
Dockerize SvelteKit app for nodejs
FROM node:20.2.0-bullseye-slim AS build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# ---
@begoon
begoon / mars3-lpe.rkr
Created December 7, 2021 08:55 — forked from Paguo-86PK/mars3-lpe.rkr
Mars ]I[ - Light Pen Edition
#!rk86 !name=mars3-lpe.rkr !start=0000 !entry=0000
0000 00 00 16 46 C3 00 15 23 21 23 23 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 C3 A2 FF 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
@begoon
begoon / LICENSE
Created September 11, 2021 18:55 — forked from brianbruggeman/LICENSE
Convert Viscosity to Open VPN
Public Domain
{
"id": "rk86",
"created": "2021-03-19T20:41:05.131Z",
"format": "1",
"emulator": "rk86.ru",
"version": "1.8.1",
"start": "0x0000",
"end": "0xFFFF",
"boot": {
"keyboard": [
{
"id": "rk86",
"created": "2021-03-19T18:39:41.732Z",
"format": "1",
"emulator": "rk86.ru",
"version": "1.8.1",
"start": "0x0000",
"end": "0xFFFF",
"boot": {
"keyboard": [
{
"id": "rk86",
"created": "2021-03-19T20:10:12.339Z",
"format": "1",
"emulator": "rk86.ru",
"version": "1.8.1",
"start": "0x0000",
"end": "0xFFFF",
"cpu": {
"a": "0x16",
#!rk86 !name=beta_bas_test.bin !start=0000 !entry=f800
0000 31 ff 75 c3 00 16 00 00 7e e3 be 23 e3 c2 9b 00
0010 23 7e fe 3a d0 c3 8b 04 c5 e5 f5 4f c3 67 03 00
0020 7c 92 c0 7d 93 c9 01 22 3a 50 21 b7 c2 6e 11 c9
0030 4e 23 46 23 c3 3b 00 00 c9 00 00 22 64 20 e1 c5
0040 e5 2a 64 20 c9 21 04 00 39 7e 23 fe 81 c0 4e 23
0050 46 23 e5 69 60 7a b3 eb ca 5d 00 eb e7 01 0d 00
0060 e1 c8 09 c3 49 00 cd 86 00 c5 e3 c1 e7 7e 02 c8
0070 0b 2b c3 6c 00 e3 4e 23 e3 e5 2a 49 21 06 00 09
0080 09 cd 86 00 e1 c9 d5 eb 21 db ff 39 e7 eb d1 d0