Skip to content

Instantly share code, notes, and snippets.

View codemaker2015's full-sized avatar
:octocat:
Designing, Developing and Deploying

Vishnu Sivan codemaker2015

:octocat:
Designing, Developing and Deploying
View GitHub Profile
@codemaker2015
codemaker2015 / generate_dataset.py
Created July 12, 2025 10:58
Syntentic dataset generation script
import numpy as np
import os
import random
import uuid
import time
from datetime import datetime, timedelta
from neo4j import GraphDatabase
from dotenv import load_dotenv
load_dotenv()
@codemaker2015
codemaker2015 / react-coding-standards.md
Created December 30, 2024 15:55
React coding standards

Coding Style For Django

Please follow these coding standards when writing code for inclusion in Django. - Django Documentation

Python Style

  • Use EditorConfig or conform to the indentation style dictated in the .editorconfig file
  • Use 4 spaces for indentation with Python and 2 indentation spaces for HTML files.
  • Use PEP 8 Python style as a guide
  • Use flake8 to check for problems in this area. But Django has line lengths rules that are different then PEP 8 recommends.
@codemaker2015
codemaker2015 / child_process_demo.js
Created May 7, 2024 10:58
launching executable from nodejs
const { execFile } = require('child_process');
const child = execFile("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", [], (error, stdout, stderr) => {
if (error) {
throw error;
}
console.log(stdout);
});
@codemaker2015
codemaker2015 / esp32_webserver_token_disaply_system.ino
Created March 10, 2024 16:47
DEVELOP A WIRELESS TOKEN DISPLAY SYSTEM USING ESP32
// https://icircuit.net/how-to-develop-a-wireless-token-display-system-using-esp32/3698
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
const uint8_t CLK_CYCLE_DELAY = 100;// us
const uint8_t CLK_PIN = 22;
const uint8_t DIO_PIN = 19;
const uint8_t NUM_DIGITS = 4;
@codemaker2015
codemaker2015 / path.md
Created February 14, 2024 04:08
Path configurations on Windows, Mac and Linux

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and

Configure Git to use a proxy

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
@codemaker2015
codemaker2015 / talk_to_pdf_with_langchain.ipynb
Created August 30, 2023 11:07
How to Talk to a PDF using LangChain and ChatGPT
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codemaker2015
codemaker2015 / llama-collab.ipynb
Created August 27, 2023 16:26
Hosting Llama 2 with Free GPU via Google Collab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codemaker2015
codemaker2015 / main.py
Created March 25, 2023 18:46
chatbot demo using gpt3
import openai
import os
from dotenv import load_dotenv
import os
load_dotenv(".env")
openai.api_key = os.getenv("OPENAI_API_KEY")
def read_file(file):
content = ""