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
#include "SDL.h" | |
#include "stb/stb_image.h" | |
#define CAMERA_BORDER 1 | |
typedef struct { | |
SDL_Renderer *renderer; | |
SDL_Texture *target; | |
int width; |
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
------------------------------------------------------------------------ | |
-- Export texture atlas file format | |
-- | |
-- The file format is as follows: | |
-- | |
-- # version VERSION_NUMBER | |
-- # ASEPRITE_FILE | |
-- i IMAGE_FILE NUMBER_OF_FRAMES | |
-- s SPRITE_X SPRITE_Y SPRITE_W SPRITE_H SPRITE_PIVOT_X SPRITE_PIVOT_Y | |
-- a ANIM_NAME ANIM_START ANIM_END ANIM_DIRECTON ANIM_FRAME_TIME_SECONDS |
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
" _ | |
" (_) | |
" __ ___ _ __ ___ _ __ ___ | |
" \ \ / / | '_ ` _ \| '__/ __| | |
" \ V /| | | | | | | | | (__ | |
" (_)_/ |_|_| |_| |_|_| \___| | |
" | |
syntax on | |
set mouse=a " :O |
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
using System.Collections.Generic; | |
using UnityEngine; | |
class Pool<T> where T : Component | |
{ | |
readonly List<T> pool; | |
readonly T prefab; | |
readonly Transform parent; | |
int id; |
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
! vim-nebula terminal colors | |
! theme | |
*.cursorColor: #c9cbd1 | |
*.foreground: #c9cbd1 | |
*.background: #0a121d | |
! black | |
*.color0: #273845 | |
*.color8: #273845 |
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
{ | |
Converts .var files to INI, YAML, or .var with stripped comments. | |
input: | |
""" | |
This string documents | |
the file. | |
""" | |
:name | |
key value # this is a comment |
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
class FastIniParser | |
{ | |
class Env | |
{ | |
public const char DEF = '='; | |
public const char NEW_LINE = '\n'; | |
public const char COMMENT = ';'; | |
public const char OPEN_TAG = '['; | |
public const char CLOSE_TAG = ']'; | |
} |
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
""" | |
-- desklapse v1.0 -- | |
record desklapse.py [PROJECT_NAME] [TIME_INTERVAL (SECONDS)] | |
record desklapse.py [PROJECT_NAME] [TIME_INTERVAL (MINUTES)] -m | |
convert to video desklapse.py [PROJECT_NAME] compile | |
compile and clean desklapse.py [PROJECT_NAME] compile -c | |
remove frames desklapse.py [PROJECT_NAME] clean |
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
""" | |
hmmm | |
==== | |
a simple python program that fixes a typo in its | |
source code, then comits! | |
- this is hmmm.py version -1.00 | |
""" |
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 sys | |
import itertools | |
class Smol: | |
def __init__(self, tapesize=1): | |
self.env = { | |
'+': lambda: self.incdec(1, 0), | |
'-': lambda: self.incdec(-1, 0), | |
'>': lambda: self.incdec(0, 1), | |
'<': lambda: self.incdec(0, -1), |
NewerOlder