Skip to content

Instantly share code, notes, and snippets.

View gbromios's full-sized avatar
🌭
buuuuuhhhhhhhh

Steven "Fred" Collins gbromios

🌭
buuuuuhhhhhhhh
View GitHub Profile
@veer66
veer66 / last_insert_rowid.rs
Created January 26, 2019 11:27
I tried to get last insert rowid from SQLite via Diesel. #rust
#[macro_use]
extern crate diesel;
pub mod models;
pub mod schema;
use diesel::prelude::*;
use diesel::sqlite::SqliteConnection;
use self::models::{Post, NewPost};
@iamnewton
iamnewton / bash-colors.md
Last active May 2, 2024 22:42
The entire table of ANSI color codes.

Regular Colors

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
@iKlsR
iKlsR / helper.py
Last active July 25, 2018 23:36
pygame boilerplate..
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)