Skip to content

Instantly share code, notes, and snippets.

View NEO97online's full-sized avatar
🌐
Y3K

NEO97 NEO97online

🌐
Y3K
View GitHub Profile
@kpcftsz
kpcftsz / DropShadows.cpp
Last active December 2, 2025 05:38
K.I.S.S. Dear ImGui drop shadows - dead simple
/*
* This function assumes the existence of an active Dear ImGui window
*/
void RenderDropShadow(ImTextureID tex_id, float size, ImU8 opacity)
{
ImVec2 p = ImGui::GetWindowPos();
ImVec2 s = ImGui::GetWindowSize();
ImVec2 m = {p.x + s.x, p.y + s.y};
float uv0 = 0.0f; // left/top region
float uv1 = 0.333333f; // leftward/upper region
@NEO97online
NEO97online / firebase.module.ts
Last active March 11, 2022 05:57
Angular Firebase Module boilerplate for AngularFire2 (using Firestore and Storage) NgModule
import { NgModule } from '@angular/core';
import { AngularFireModule } from 'angularfire2';
import { AngularFirestoreModule } from 'angularfire2/firestore';
import { AngularFireAuthModule } from 'angularfire2/auth';
import { AngularFireStorageModule } from 'angularfire2/storage';
import { environment } from '../../environments/environment';
import { FirestoreService } from './firestore.service';
import { StorageService } from './storage.service';