Skip to content

Instantly share code, notes, and snippets.

View dukuo's full-sized avatar
🎯
Focusing

Dilip dukuo

🎯
Focusing
View GitHub Profile
@victorbruce
victorbruce / Firebase.md
Last active January 12, 2025 18:31
My journey with Firebase so far. Cheatsheet to serve as a quick reference when developing firebase applications

Firebase

Set up firebase and Deploy

  • Head over to firebase. Sign in and create a project.

  • Copy your project settings under Firebase SDK snippet into your local project (ie your project's api key, auth domain, databaseURL, etc)

  • Create a file (firebase.js or config.js Any name that suits you is fine)

@xynova
xynova / Connecting Docker cli and Kubectl to Docker Desktop for Windows.md
Last active June 22, 2023 01:02
Connecting Docker cli and Kubectl to Docker Desktop for Windows
@shawngmc
shawngmc / guacamole_setup.sh
Created December 3, 2018 18:07
Guacamole Docker Setup
. .env
# Used from .env
# PASSWD: The postgres password
# Set up Guacd
echo Creating guacd container...
docker run -d \
--name guacd \
guacamole/guacd
@rcx
rcx / delete-all-messages.js
Last active December 24, 2024 05:08 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
return;
}
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {
@endolith
endolith / DFT_ANN.py
Last active April 30, 2025 19:25
Training neural network to implement discrete Fourier transform (DFT/FFT)
"""
Train a neural network to implement the discrete Fourier transform
"""
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
N = 32
batch = 10000
@Xachman
Xachman / docker-compose.yml
Last active April 14, 2022 17:08
Apache Guacamole docker-compose.yml File
version: '2'
services:
guacd:
image: guacamole/guacd
guac-serve:
image: guacamole/guacamole
links:
- guacd:guacd
- mysql:mysql
ports:
@amark
amark / li.html
Last active April 30, 2023 05:25
<html><body>
<style>
html, body {
background: rgb(245, 245, 245);
margin: 0;
padding: 0;
}
div {
position: relative;
overflow: hidden;
@OliverJAsh
OliverJAsh / foo.ts
Last active January 27, 2025 18:24
Records and dictionaries in TypeScript
/*
In JavaScript, objects can be used to serve various purposes.
To maximise our usage of the type system, we should assign different types to our objects depending
on the desired purpose.
In this blog post I will clarify two common purposes for objects known as records and dictionaries
(aka maps), and how they can both be used with regards to the type system.
@cyberang3l
cyberang3l / How to setup VirtualGL and TurboVNC on Ubuntu.md
Last active April 6, 2025 04:07
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding