Skip to content

Instantly share code, notes, and snippets.

Avatar

Murat Ayfer mayfer

View GitHub Profile
@mayfer
mayfer / git_in_sql.js
Created Oct 13, 2020
This is a proof-of-concept for how to turn a Git repository into a tarball binary, which can then be saved in `bytea` or any other binary-compatible SQL column
View git_in_sql.js
const http = require('isomorphic-git/http/node');
const git = require('isomorphic-git');
const tar = require('tar-stream');
const memfs = require('memfs');
const stream = require("stream");
const path = require("path");
const REPO_PATH = '/repo';
function streamToBinary (stream) {
View gpt3-outcome-categorizer.txt
GPT9000 is an AI that has been programmed to detect phrases that are somewhat equivalent in meaning, and is being tested to see if it can categorize sentences by either "he left the room" or "he did not leave the room".
Sentence: "Alright man, whatever. I'm out of here."
Outcome: "he left the room"
Sentence: "What? I remembered you. You're the one who forgot my name."
Outcome: "he did not leave the room"
Sentence: "My name is Brandon."
Outcome: "he did not leave the room"
View metals-gpt3.txt
Below are the outputs of an AI that is excellent at figuring out what metals a mining company is related with from the company description alone. It can also figure out whether the companies are explorers, producers or royalty companies. The supported metals are Gold, Silver, Copper, Zinc, Cobalt, Nickel, Platinum, Palladium, Lead, Tin, Lithium, Magnesium, Chromium, Titanium, Iron and Silicon.
Description: "Karora Resources Inc is a gold exploration and production company. The company's two primary gold producing operations are its 100% interests in the Beta Hunt Mine and the Higginsville Gold Operations, both located in Western Australia approximately 60km from Kalgoorlie and located along the prolific Norseman-Wiluna Greenstone Belt."
Metals: "Gold"
Types: "Exploration, Production"
Description: "Novo Resources Corp is a company engaged in the business of evaluating, acquiring and exploring natural resource properties with a focus on gold. The organization has business interests in the properties located i
View metals-gpt3.md

Below are the outputs of an AI that is excellent at figuring out what metals a mining company is related with from the company description alone. It can also figure out whether the companies are explorers, producers or royalty companies. The supported metals are Gold, Silver, Copper, Zinc, Cobalt, Nickel, Platinum, Palladium, Lead, Tin, Lithium, Magnesium, Chromium, Titanium, Iron and Silicon.

Description: "Karora Resources Inc is a gold exploration and production company. The company's two primary gold producing operations are its 100% interests in the Beta Hunt Mine and the Higginsville Gold Operations, both located in Western Australia approximately 60km from Kalgoorlie and located along the prolific Norseman-Wiluna Greenstone Belt." Metals: "Gold" Types: "Exploration, Production"

Description: "Novo Resources Corp is a company engaged in the business of evaluating, acquiring and exploring natural resource properties with a focus on gold. The organization has business interests in the properties located i

View galaxy-grain-gpt.txt
Expanding brain memes:
Topic: Grammar
Small brain: who
Normal brain: whom
Big brain: whom'st
Galaxy brain: whomst'd
View gpt-equalities.md

Patience + Frustration = Curiosity

Space + Time = Life

Imagination + Undecided = Doubt

Acceptance + Respect = Friendship

Boredom + Exhaustion = Sleep

View meaning-gpt-2.md

top 10 most meaningful activities for an AI to participate in:

  1. Extracting/updating/submitting data to the network (10 points)

  2. Training/debugging/debugging for other AIs (10 points)

  3. Investing/borrowing money to trade with (10 points)

  4. Funding projects, causes and development of other AIs (10 points)

View gpt-meaningful.md

top 10 most meaningful activities for a human to participate in:

  1. Having sex

  2. Having sex with a partner you love

  3. Having sex with a partner you love while listening to music

  4. Having sex with a partner you love while listening to music that is loud enough to hear over the sound of your own screaming

View register-gpt.php
The following is a simple HTML registration form:
<form action="register.php" method="post">
<p>
<label for="firstname">First Name:</label>
<input type="text" name="firstname" id="firstname" />
View gpt3-metals.txt
Below are some mining company descriptions, lists of which metals they mine, and whether they are exploration companies or producers.
List of available metals: Gold, Silver, Copper, Zinc, Palladium, Platinum, Uranium, Lithium
"Silver Grail Resources Ltd an exploration stage company engages in the acquisition and exploration of mineral properties in the province of British Columbia, Canada. The company explores for silver, gold, copper, zinc, and molybdenum minerals. It holds interests in the Clone, Konkin, Tonga-Fiji, Midas, Bay Silver, Silver Crown 6, and other properties located in the Stewart region of northwestern British Columbia; and the Harrison Lake property."
Metals: Gold, Silver, Copper, Zinc
Type: Exploration
"Labrador Gold Corp is a Canadian based mineral exploration company. It focuses on the acquisition and exploration of prospective gold projects in the Americas. The company also has mineral right interests in Ontario, Canada. Its projects include Borden Lake Extension Project and Labrador Pr