Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains 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
#[macro_use] | |
extern crate diesel; | |
pub mod models; | |
pub mod schema; | |
use diesel::prelude::*; | |
use diesel::sqlite::SqliteConnection; | |
use self::models::{Post, NewPost}; |
This file contains 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 pygame | |
import os, sys | |
width, height = 400, 400 | |
os.environ['SDL_VIDEO_CENTERED'] = '1' | |
screen = pygame.display.set_mode((width, height)) | |
class Core(object): | |
def __init__(self, surface, name): | |
pygame.display.set_caption(name) |