Skip to content

Instantly share code, notes, and snippets.

Avatar
🖊️
Available for hire

Egor Dorichev egordorichev

🖊️
Available for hire
View GitHub Profile
@egordorichev
egordorichev / scaper.py
Last active Jan 30, 2021
Useful information from twitter
View scaper.py
# 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 Nov 5, 2020
Full pico8 palette (32 colors)
View main.c
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 Oct 23, 2020
Pico8 palette
View palt.c
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 Aug 25, 2020
Dog: combines ls and cat for easy file checking
View dog.sh
#!/bin/bash
PASSED=$1
if [ -d "${PASSED}" ]
then ls -l $PASSED;
elif [ -f "${PASSED}" ]
then cat $PASSED;
else echo "Confused barking sound";
exit 1
View 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;
View About me.md
@egordorichev
egordorichev / corrupted_space.p8
Created Aug 12, 2018
My ldjam42 entry source code (pico8)
View corrupted_space.p8
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
View bkp.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
-- main
-- todo
-- music
-- sfx
-- fx
View Spacy adventure
-- spacy adventure
-- by @egordorichev
--
-- main callbacks
--
cartdata("ld39")
t=1
dmg=5