Skip to content

Instantly share code, notes, and snippets.

View Noble-247's full-sized avatar
💭
I may be slow to respond.

Emmanuel Ekpobimi Noble-247

💭
I may be slow to respond.
View GitHub Profile
@Noble-247
Noble-247 / ProfileMenu.tsx
Created July 19, 2023 03:58 — forked from adrianhajdin/ProfileMenu.tsx
Build and Deploy a Full Stack Next.js 13 Application | React, Next JS 13, TypeScript, Tailwind CSS
"use client"
import Link from "next/link";
import Image from "next/image";
import { signOut } from "next-auth/react";
import { Fragment, useState } from "react";
import { Menu, Transition } from "@headlessui/react";
import { SessionInterface } from "@/common.types";
@Noble-247
Noble-247 / index.html
Created January 3, 2023 17:10 — forked from gitdagray/index.html
HTML and CSS for Javascript DOM Tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Page</title>
<style>
* {
margin: 0;
padding: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Page</title>
<link rel="stylesheet" href="css/js_chapter_22_css.css" />
<script defer src="js/main.js"></script>
</head>
@Noble-247
Noble-247 / js_chapter_22_css.css
Created January 3, 2023 17:10 — forked from gitdagray/js_chapter_22_css.css
JS Course Chapter 22 CSS
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
@Noble-247
Noble-247 / rps_v3.js
Created December 26, 2022 05:04 — forked from gitdagray/rps_v3.js
Rock_Paper_Scissors_v3
// Rock, Paper, Scissors: Refactored with Functions
const initGame = () => {
const startGame = confirm("Shall we play rock, paper, or scissors?");
startGame ? playGame() : alert("Ok, maybe next time.");
};
// Game flow function
const playGame = () => {
while (true) {
let playerChoice = getPlayerChoice();
@Noble-247
Noble-247 / rps_v2.js
Created December 26, 2022 05:04 — forked from gitdagray/rps_v2.js
Rock_Paper_Scissors_v2
// Rock, Paper, Scissors: Refactored with While Loop and an Array
let playGame = confirm("Shall we play rock, paper, or scissors?");
if (playGame) {
//play
while (playGame) {
const playerChoice = prompt("Please enter rock, paper, or scissors.");
if (playerChoice || playerChoice === "") {
const playerOne = playerChoice.trim().toLowerCase();
if (
playerOne === "rock" ||
@Noble-247
Noble-247 / rps_v1.js
Created December 26, 2022 05:04 — forked from gitdagray/rps_v1.js
Rock_Paper_Scissors_v1
// Your First Interactive Game
let playGame = confirm("Shall we play rock, paper, or scissors?");
if (playGame) {
//play
let playerChoice = prompt("Please enter rock, paper, or scissors.");
if (playerChoice) {
let playerOne = playerChoice.trim().toLowerCase();
if (
playerOne === "rock" ||
playerOne === "paper" ||
@Noble-247
Noble-247 / package.json
Created October 10, 2021 02:40 — forked from coryhouse/package.json
package.json for Building a JS Development Environment on Pluralsight
{
"name": "javascript-development-environment",
"version": "1.0.0",
"description": "JavaScript development environment Pluralsight course by Cory House",
"scripts": {
},
"author": "Cory House",
"license": "MIT",
"dependencies": {
"whatwg-fetch": "1.0.0"
@Noble-247
Noble-247 / git_and_github_instructions.md
Created December 1, 2019 01:15 — forked from mindplace/git_and_github_instructions.md
Pushing your first project to github

Make sure git is tracking your project.

  1. Using your terminal/command line, get inside the folder where your project files are kept: cd /path/to/my/codebase.

You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.

Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.

  1. Check if git is already initialized: git status
@Noble-247
Noble-247 / .gitignore
Created October 21, 2019 11:16 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #