Skip to content

Instantly share code, notes, and snippets.

View egordorichev's full-sized avatar
🖊️
Available for hire

Egor Dorichev egordorichev

🖊️
Available for hire
View GitHub Profile

Game & Fullstack developer

Portfolio: egordorichev.github.io Blog: rexcellentgames.com

@egordorichev
egordorichev / scaper.py
Last active January 30, 2021 10:05
Useful information from twitter
# Requires python3.6
from pattern.en import parse
from pattern.web import Twitter
from gingerit.gingerit import GingerIt
from better_profanity import profanity
import json
import string
import re
@egordorichev
egordorichev / main.c
Created November 5, 2020 07:43
Full pico8 palette (32 colors)
static SDL_Color palette[] = {
{ 0, 0, 0, 255 },
{ 29, 43, 83, 255 },
{ 126, 37, 83, 255 },
{ 0, 135, 81, 255 },
{ 171, 82, 54, 255 },
{ 95, 87, 79, 255 },
{ 194, 195, 199, 255 },
{ 255, 241, 232, 255 },
@egordorichev
egordorichev / palt.c
Last active October 23, 2020 13:13
Pico8 palette
static SDL_Color palette[] = {
{ 0, 0, 0, 255 },
{ 29, 43, 83, 255 },
{ 126, 37, 83, 255 },
{ 0, 135, 81, 255 },
{ 171, 82, 54, 255 },
{ 95, 87, 79, 255 },
{ 194, 195, 199, 255 },
{ 255, 241, 232, 255 },
{ 255, 0, 77, 255 },
@egordorichev
egordorichev / dog.sh
Created August 25, 2020 14:59
Dog: combines ls and cat for easy file checking
#!/bin/bash
PASSED=$1
if [ -d "${PASSED}" ]
then ls -l $PASSED;
elif [ -f "${PASSED}" ]
then cat $PASSED;
else echo "Confused barking sound";
exit 1
@egordorichev
egordorichev / FloatingRoom.java
Created June 10, 2019 05:40
FloatingRoom.java
package org.rexcellentgames.burningknight.entity.level.rooms;
import com.badlogic.gdx.math.Vector2;
import org.rexcellentgames.burningknight.Dungeon;
import org.rexcellentgames.burningknight.entity.level.Level;
import org.rexcellentgames.burningknight.entity.level.Terrain;
import org.rexcellentgames.burningknight.entity.level.entities.Entrance;
import org.rexcellentgames.burningknight.entity.level.painters.Painter;
import org.rexcellentgames.burningknight.entity.level.rooms.regular.RegularRoom;
import org.rexcellentgames.burningknight.entity.level.save.LevelSave;
@egordorichev
egordorichev / corrupted_space.p8
Created August 12, 2018 18:54
My ldjam42 entry source code (pico8)
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
-- corrupted space
-- by @egordorichev
cartdata("ldjam42")
menuitem(1,"restart lvl",function()
if(state==menu) return
@egordorichev
egordorichev / bkp.p8
Created April 22, 2018 17:31
Rythm is Lava
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
-- main
-- todo
-- music
-- sfx
-- fx
-- spacy adventure
-- by @egordorichev
--
-- main callbacks
--
cartdata("ld39")
t=1
dmg=5