Skip to content

Instantly share code, notes, and snippets.

View Dhruvacube's full-sized avatar
:octocat:
Busy

Dhruva Shaw Dhruvacube

:octocat:
Busy
View GitHub Profile
@Dhruvacube
Dhruvacube / signal.ipynb
Created November 15, 2022 18:10
This is my signals and system assignment
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dhruvacube
Dhruvacube / rc_car.py
Created August 21, 2022 17:17
Thr RC CAR in ESP32 written in micropython
from machine import UART, Pin, lightsleep
from micropython import const
#Instruction class
class _Instruction:
left = 'L'
right = 'R'
backward = 'B'
forward = 'F'
stop = 'S'
@Dhruvacube
Dhruvacube / votes.py
Last active February 1, 2022 16:17
A functions file which checks if a user voted for the bot or not, it was stored here https://github.com/The-4th-Hokage/yondaime-hokage/tree/master/minato_namikaze/bot_files/lib/functions
import requests
from ..classes.embed import ErrorEmbed
from ..util.vars import *
def votedVoidBots(ctx):
if ctx.author.id in (ctx.bot.owner_id,
837223478934896670) or ctx.guild.id in (
747480356625711204,
@Dhruvacube
Dhruvacube / disable_right_click.js
Created November 19, 2020 06:48
JS Code to disable the right click in the webpage!
/**
* Disable right-click of mouse, F12 key, and save key combinations on page
*/
/* You can put this in a js file for directly put it in html flie using script tag */
window.onload = function() {
document.addEventListener("contextmenu", function(e) {
e.preventDefault();
}, false);
document.addEventListener("keydown", function(e) {
//document.onkeydown = function(e) {