Skip to content

Instantly share code, notes, and snippets.

Here is a strong assignment-style reflective review (around 900 words) based on your presentation, budget forecast and production schedule.
---
Reflective Review
Activity 1 – Reflection on the Effectiveness of My Presentation
Overall, I believe my presentation was effective in communicating my promotional campaign for the Awesome 80s Exhibition at Backtrack Arts Centre. The presentation clearly explained my campaign ideas, including the pop-up event and promotional video, while linking them to the campaign aims, target audience, and brand values. It followed a clear structure with sections covering the introduction, event proposal, promotional video, research, and client benefits, which made the information easy to follow.
#include <cmath>
typedef struct { float x, y, z; } Vec3;
typedef struct { Vec3 v1, v2, v3; } Input;
typedef struct {
bool active;
int ticks;
float speed, drag, grav, pad;
Vec3 start;
} Bullet;
//
// Created by kotlinsyntax on 6/7/2024.
//
#ifndef ARRAY_HPP
#define ARRAY_HPP
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <functional>
@sequoiadotdev
sequoiadotdev / sha256.cpp
Created March 30, 2024 18:44
Sha256 Implementation in C++
#include <cstdint>
#include <string>
#include <sstream>
#include <iomanip>
uint32_t rotateLeft(uint32_t x, uint32_t n) {
return (x << n) | (x >> (32 - n));
}
std::string sha256(const std::string& input) {
@sequoiadotdev
sequoiadotdev / weighted_method.java
Created February 9, 2024 15:13
Simple method to get a random element from a map based on a weight
/**
*
* @param objects: A Map containing the objects to choose from, where the keys represent the objects and the values represent their respective weights.
* @return Returns a randomly selected element from a Map, with selection probabilities proportional to each element's weight.
* @param <T> A randomly selected element from the Map, or null if the Map is empty.
*/
public static <T> T getRandomWeightedElement(Map<T, Number> objects) {
double sum = objects.values().stream().mapToDouble(Number::doubleValue).sum();
for (T item : objects.keySet()) {
random -= objects.get(item).doubleValue();