The Unified Conscious Observer Theory (UCOT) proposes a novel framework that unifies quantum mechanics, cosmology, and the emergence of intelligent life. It posits that the universe originates from a singularity during the Big Bang, initiating a universal von Neumann-Wigner chain. This chain serves as a single, all-encompassing wavefunction that remains uncollapsed until the emergence of conscious observers, fulfilling the universe's inherent "purpose."
This file contains hidden or 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
| import java.io.{File, RandomAccessFile} | |
| class RandomAccessFileHashSet(file: File) { | |
| val raf = new RandomAccessFile(file, "rw") | |
| def filePosition = raf.getFilePointer | |
| def fileLength = raf.length | |
| var recordCount: Long = 0L | |
| raf.writeLong(recordCount) | |
| val hashStart = filePosition |
This file contains hidden or 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
| import java.io.{File, RandomAccessFile} | |
| class HashSetFile(file: File, modulus: Int = 32) { | |
| val raf = new RandomAccessFile(file, "rw") | |
| def filePosition = raf.getFilePointer | |
| def fileLength = raf.length | |
| val bytesInLong = java.lang.Long.BYTES | |
| val indexesStart = bytesInLong | |
| val start = System.currentTimeMillis() | |
| if (fileLength == 0) { |
This file contains hidden or 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
| function helloWorld() | |
| print("Hello World") | |
| end | |
| helloWorld() |
This file contains hidden or 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
| const matchStart = (s1, s2) => { | |
| const l = Math.max(s1.length, s2.length) | |
| for (let i = 0; i < l; i++) { | |
| if (s1[i] !== s2[i]) return i | |
| } | |
| return l | |
| } | |
| class Table { | |
| constructor() { |
This file contains hidden or 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
| $fn = 1000; | |
| translate([1,0,0]) rotate([0,-90,0]) { | |
| translate([0,-.5/$fn,0]) cube([1,1/$fn,1]); | |
| intersection() { | |
| union() { | |
| for (i = [0:2/$fn:0.5]) | |
| translate([i,0,0]) | |
| cylinder(1, i, 0); | |
| for (i = [0:2/$fn:.5]) | |
| translate([.5 + i,0,0]) |
This file contains hidden or 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
| Room 1 | |
| Area 1: Treasure | |
| Area 2: Monsters | |
| Area 3: Monsters | |
| Area 4: Monsters | |
| Area 5: Monsters | |
| Area 6: Treasure | |
| Area 7: Treasure | |
| Area 8: Treasure | |
| Area 9: Monsters |
This file contains hidden or 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
| class WebError extends Error { | |
| constructor(message, statusCode = 500, data = null) { | |
| super(message) | |
| this.statusCode = statusCode | |
| } | |
| } | |
| class BadRequest extends WebError { | |
| constructor(message = 'Bad Request', statusCode = 400, data = null) { | |
| super(message, statusCode, data) |
This file contains hidden or 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
| #!/bin/bash -e | |
| SERVICE_NAME="self-installing-service" | |
| SERVICE_DESCRIPTION="A self installing service bash script" | |
| SELF_FILE=$(readlink -f $0) | |
| SELF_DIR=$(dirname $SELF_FILE) | |
| SELF_FILENAME=$(basename $SELF_FILE) | |
| SERVICE_CONFIG="/etc/systemd/system/${SERVICE_NAME}.service" | |
| SERVICE_FILENAME=$(basename $SERVICE_CONFIG) |