Skip to content

Instantly share code, notes, and snippets.

View PatheticMustan's full-sized avatar
🌠
starry eyed

Nat PatheticMustan

🌠
starry eyed
View GitHub Profile
Object.values(__NEXT_DATA__.props.initialState.entities.gameRoom)[0].items.map(v => {
return [v.textToDisplay, v.enteredText, v.textToDisplay===v.enteredText]
})
Why do Nauruans demonstrate resistance and rejection to the term of "climate refugees"?
Capitalism and Climate Change
- Australia basically used Nauru as a place to dump all their unwanted refugees
- Nauru and Australian govt made agreements which basically institutionalized the refugee industry
+ Australia benefits by getting a place to dump their refugees, and a source for phosphate
+ Nauru gets crazy job stimulation and a cheap labor base from the refugees
Conceptualizations of Displacement
- Nauru was historically fucked for its resources
What are the four fields of anthropology?
- socio cultural
- archeology
- biological
- linguistic
What is the savage slot?
- the classification of non-western societies as primitive
Who is the founding father of American Anthropology?
const items = document.getElementsByClassName("mobile-items")[0];
function match(a, b) {
items.children[a].firstChild.click();
items.children[b].firstChild.click();
}
function matchAllTo(a) {
queue = queue.concat(new Array(items.children.length).fill(0).map((v, i) => [a, i]));
}
@PatheticMustan
PatheticMustan / ArduinoWorkshop.ino
Created February 25, 2024 03:19
our code from an arduino workshop done by Maxlinear
#include <Keypad.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
@PatheticMustan
PatheticMustan / lab7.js
Created December 8, 2023 21:32
just some quick scratchpad calculations
const times = [0.01127,0.01199,0.01197,0.00957,0.01198,0.01104,0.01098,0.01202,0.01159,0.01206]
const velocity = times.map(t => 1.536*2/t);
const meanVelocity = velocity.reduce((a,b) => a+b, 0) / 10;
const stdDev = Math.sqrt(velocity.map(v => (v - meanVelocity)**2 / 10).reduce((a,b) => a+b, 0));
const stdErr = stdDev / Math.sqrt(10);
@PatheticMustan
PatheticMustan / divisors.js
Created December 8, 2023 09:33
get all prime factors of a number (useful for lcm of many numbers)
const divisors = new Set();
let n = 12379872;
const bound = Math.sqrt(n);
while (n > 1) {
for (let i=2; i<=bound; i++) {
if (n % i === 0) {
divisors.add(i);
n /= i;
break;
@PatheticMustan
PatheticMustan / colorViewer.js
Last active December 1, 2023 23:18
a small christmas gift for my darling beloved
const content = `beetle:
arms/legs: #738334
antennae: #4a5224
back primary: #04ab44
back highlights: #7adb8b
eyes: #2f2f2f
octopus:
primary: #ff615e
tentacle highlight: #ffa8a8
refinement of articles
run 1
summarize paragraph by paragraph
bulletpoint evidence
run 2
summarize overall ideas
bulletpoint concepts
fetch("https://apply.vandyhacks.org/api/leaderboard")
.then(v => v.json())
.then(v => {
x = v;
console.log("TEAM CODES:\n\n" + Array.from(new Set(v.map(v => [v.team?.name, v.team?.joinCode].join(": ")))).filter(v => v !== ": ").join("\n"));
console.log("EMAILS:\n\n" + Array.from(new Set(v.map(v => v.email))).filter(v => v).join("\n"))
})