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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Title</title> | |
</head> | |
<body> | |
<div class="topic-tree"> | |
<ul class="main-menu"> | |
<li>Test</li> | |
<li> | |
Test | |
<input type="checkbox" class="toggle"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample | |
{ | |
public static void main(String[] args) | |
{ | |
int num1, num2, answer; | |
num1 = 1; | |
num2 = 2; | |
answer = num1+num2; | |
System.out.println(answer); | |
} |
NewerOlder