Skip to content

Instantly share code, notes, and snippets.

View rudrathegreat's full-sized avatar
🎥
Running a YouTube Channel!

Rudra Sekhri rudrathegreat

🎥
Running a YouTube Channel!
View GitHub Profile
@rudrathegreat
rudrathegreat / README.md
Created April 6, 2021 07:05
Translation Capabilities on Site

Translation Capabilities on Website

The code in this gist can be used to provide simple translation on your website. The translation itself uses Google Translate, as can be indicated in the translator.js code. Google Translate is definetely not perfect at translation, in fact it is far from it, however it does provide a simple way to translate your website.

@rudrathegreat
rudrathegreat / app.js
Created January 12, 2021 05:23
Mouse Interactions with JS
let mouseCursor = document.querySelector(".cursor");
var navList = document.querySelector(".nav-list");
var navListElements = navList.querySelectorAll(".nav-list li");
var heroText = document.querySelector(".hero h1");
var heroImg = document.querySelector(".hero .img");
window.addEventListener("mousemove", cursor);
function cursor(e) {
mouseCursor.style.top = e.pageY + 'px';
@rudrathegreat
rudrathegreat / index.html
Created December 31, 2020 04:10
Dropdown Example 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<title>Education Model Navigation</title>
</head>
@rudrathegreat
rudrathegreat / index.html
Created December 31, 2020 04:08
Dropdown-Example_1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<title>Education Model Navigation</title>
</head>
@rudrathegreat
rudrathegreat / CONTRIBUTING.md
Created October 21, 2020 03:40 — forked from briandk/CONTRIBUTING.md
A basic template for contributing guidelines that I adapted from Facebook's open source guidelines

Contributing to Transcriptase

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

We Develop with Github

@rudrathegreat
rudrathegreat / index.html
Last active September 28, 2020 05:25
Simple Tree View in Pure HTML and CSS
<head>
<title>Title</title>
</head>
<body>
<div class="topic-tree">
<ul class="main-menu">
<li>Test</li>
<li>
Test
<input type="checkbox" class="toggle">
@rudrathegreat
rudrathegreat / README.md
Last active September 28, 2020 03:26
Network Github Template - Building the HTML and CSS
@rudrathegreat
rudrathegreat / FM.py
Created September 2, 2020 08:50
Catch FM stations using Python
from rtlsdr import RtlSdr
import numpy as np
import scipy.signal as signal
from scipy.io.wavfile import write
sdr = RtlSdr()
F_station = int(105.9e6) # FM Station
duration = 10
F_offset = 250000 # Offset to capture at
@rudrathegreat
rudrathegreat / Sample.java
Created September 15, 2019 11:02
Writing Equations
public class Sample
{
public static void main(String[] args)
{
float x, y, z, answer;
x = 5;
y = 2;
z = 3;
answer = ((3*x+y))/(z+2);
System.out.println(answer);
@rudrathegreat
rudrathegreat / Sample.java
Created September 15, 2019 10:50
Assigning Variables 1
public class Sample
{
public static void main(String[] args)
{
int num1, num2, answer;
num1 = 1;
num2 = 2;
answer = num1+num2;
System.out.println(answer);
}