Skip to content

Instantly share code, notes, and snippets.

View tmax818's full-sized avatar

Tyler Maxwell tmax818

View GitHub Profile
<BrowserRouter basename="/endpoint">
function same(arr1, arr2){
if(arr1.length !== arr2.length){
return false;
}
let frequencyCounter1 = {}
let frequencyCounter2 = {}
for(let val of arr1){
frequencyCounter1[val] = (frequencyCounter1[val] || 0) + 1
}
for(let val of arr2){
$ ./a.out
Hello, world
$
$ ls
a.out hello.c
$
$ cc hello.c
$
$ mkdir c //creates a new directory called c
$ cd c //makes c the new working directory
$ touch hello.c //creates a new file hello.c
$ atom . //opens the c directory in Atom
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
let title = document.getElementById("title");
let button = document.querySelector(".hide");
const toggle = () => {
if (title.style.display == "none") {
console.log(title.style.display);
button.textContent = "Hide title";
title.style.display = "block";
console.log(title.style.display);
} else {
$ node hello.js
Hello, world!
$
console.log("Hello, world!");