Skip to content

Instantly share code, notes, and snippets.

View pseudo-usama's full-sized avatar
👨‍💻
Building ML Solutions

Usama (PSEUDO) pseudo-usama

👨‍💻
Building ML Solutions
View GitHub Profile
@pseudo-usama
pseudo-usama / PostgreSQL docker setup
Last active December 24, 2024 10:43
Compose file to set up PostgreSQL and pgAdmin using Docker. Includes a PostgreSQL database with custom user credentials and a pgAdmin web interface for management, connected via a custom network.
# docker-compose.yml
version: '3.8'
services:
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: pguser
This file has been truncated, but you can view the full file.
version: '3.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- ELASTIC_PASSWORD=YourElasticPassword
- "ES_JAVA_OPTS=-Xms2g -Xmx2g" # Adjust heap size to 2GB
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pseudo-usama
pseudo-usama / Multi dimentional function with Gradiant.nb
Created April 10, 2021 05:40
This is graphing tool written Wolfram Mathematica to visualize function with its gradient vector field.
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.1' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
@pseudo-usama
pseudo-usama / Partial derivative of function.nb
Created April 10, 2021 05:37
This is a graphing tool written in Wolfram Mathematica to visualize partial derivatives of functions
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 11.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
@pseudo-usama
pseudo-usama / Perceptron (Linear classifier).ipynb
Last active May 3, 2021 08:56
Using single perceptron to classify data in two groups.The perceptron is build from scratch using Numpy for learning purposes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// To include a HTML file use this code
// <script> include('path/to/file.html', document.currentScript) </script>
// Note:
// If you want to include a file inside another included file then use absolution paths not relative paths.
// For example for this directory structure:
// - index.html
// - include.js
f[x_,y_]:=x^2 y+Sin[y]
Plot3D[f[x,y], {x,-10,10},{y,-10,10}, PlotRange->10, ClippingStyle->None,ImageSize->Medium]
<!--
https://twitter.com/UsamaIftikharB1
https://www.linkedin.com/in/usama-butt
https://github.com/pseudo-usama
-->
<!DOCTYPE html>
<html>
<head>