Skip to content

Instantly share code, notes, and snippets.

View NicholasEli's full-sized avatar

Nicholas Eli NicholasEli

View GitHub Profile
@NicholasEli
NicholasEli / the-theory-of-nothing.txt
Last active July 20, 2026 02:31
The Theory of Nothing
# The Theory of Nothing
### A Philosophical Exploration of Time as Configuration Rather Than a Fundamental Dimension
## Abstract
This paper does not propose a new mathematical theory of physics. Instead, it explores a philosophical interpretation of reality: that **time is not a fundamental feature of the universe**, but rather a descriptive concept humans use to organize configurations of matter.
The central claim is simple:
// Cleaner way to manage state and its handlers
import React, { useState, useMemo } from 'react';
const Home = (props) => {
const [count, { inc, dec }] = useCounter();
return (
<main id="home-component" className="component-container">
<h5>Count {count}</h5>
@NicholasEli
NicholasEli / gist:0b6ae0cc1a78fe2e8cc0b453704586bc
Created February 20, 2020 22:29
Javascript Reverse Array with String Values
/*
Write a function that reverses a string. The input string is given as an array of characters char[].
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
You may assume all the characters consist of printable ascii characters.
*/
const arr = ["h", "e", "l", "l", "o"]
function stringPosition(needle, haystack) {
var m = needle.length,
n = haystack.length;
if (!m || !n || m > n) {
return -1;
}
if (m === n) {
return needle === haystack ? 0 : -1;