Skip to content

Instantly share code, notes, and snippets.

View made-by-chris's full-sized avatar
🏁

Christopher Shelley made-by-chris

🏁
View GitHub Profile
{
"age": [
16,
17,
18,
19,
20,
21,
22,
@made-by-chris
made-by-chris / chatStreamcompletion.mjs
Last active May 27, 2023 11:30
javascript scripts for prompting openAI's chat completion API
// dont forget to npm install openai
// run with node chatStreamcompletion.mjs
import { Configuration, OpenAIApi } from "openai";
import fs from "fs";
const configuration = new Configuration({
apiKey: "YOUR_DEVELOPER_API_KEY_FROM_OPENAI", // https://platform.openai.com/account/api-keys
});
const openai = new OpenAIApi(configuration);
const modelTypes = ["gpt-3.5-turbo", "gpt4", "gpt-4-32k"];
@made-by-chris
made-by-chris / Simulation As Communication.md
Last active May 26, 2023 08:12
Simulation As Communication

Simulation As Communication

2 thought experiments, some thoughts about communication and what the current date is.

What is Communication?

@made-by-chris
made-by-chris / bootstrap-basics.html
Created September 5, 2022 10:24
bootstrap-basics.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
@made-by-chris
made-by-chris / class notes.md
Created September 2, 2022 06:42
think like an architect

thinking like an architect

the square documents we build are like buildings structure / anatomy / heirarchy / commonality

Try to group your website's elements by "commonality"

  • all the sections are the same width? describe that with 1 line of css
  • all the h3s the same size? describe that with 1 line of css

think about the biggest / lowest level of detail first

the architect holistically designs the overall shape, the width of the building

cd
cd projects
git clone https://zansproject.com < 10:00 am
(Fi and Zan finalise a PR together) < 10:20 am
cd zansproject
git checkout -b my_feature_X_branch < 10:30am
touch main.js
@made-by-chris
made-by-chris / handy CLI commands Terminal Day 1.md
Last active September 7, 2022 17:09
Handy Commands, Notes For Class

open the terminal quickly:

Windows WINDOWS KEY -> "git bash" -> HIT ENTER

Mac COMMAND SPACE -> "terminal" -> HIT ENTER

pwd -> print working directory -> "where am i?"

@made-by-chris
made-by-chris / valuep1.md
Created July 21, 2022 11:26
Value, SCRUM, sprints

what is purpose of development?

"to deliver value to somebody"

AGILE & sprint planning (and generally planning) are for fighting human impulse to avoid confrontation, to waste time and be unfocused. In development this is called "waterfall". I call it "programming instead of working".

EXAMPLE - "disorganised" development in a company

  • customer says 'i want a "thing"'
  • company's tech team spends 6 months programming the product, after 6 months shows the product to the customer.
  • customer says "no, not that thing"
@made-by-chris
made-by-chris / Russian Oligarch Planes Info
Last active March 2, 2022 13:51
Russian Oligarch Planes in JSON & CSV
Russian Oligarch Planes
This data is in no way verified by me.
scraped with computer vision from this tweet https://twitter.com/RUOligarchJets/status/1497739735753658371
for use on live map here https://bunkerhub.netlify.app/
excel sheet available: https://docs.google.com/spreadsheets/d/1mNhuhJBmJONAJEtZv3iiYXh4BdC250Ky26U7wIEe-pM/edit#gid=0
Being Russian or having a plane doesn't make you a bad person
SLAVA UKRAINI