Skip to content

Instantly share code, notes, and snippets.

View Kielan's full-sized avatar
💻
Java Rust Go Swift C# Typescript React Graphql C C++ Python

Kielan Kielan

💻
Java Rust Go Swift C# Typescript React Graphql C C++ Python
View GitHub Profile
@Kielan
Kielan / Notes.rs
Last active January 17, 2025 15:04
Where the Click Capturing Interaces with Codebase File List
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/event.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/app_handle.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/pointer.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/app_delegate.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/examples/layout/src/right_sidebar.rs
@Kielan
Kielan / Mouse_To_View_Comparator_Method.rs
Last active January 17, 2025 13:27
Get World Position from Cursor OnClick Event
//https://github.com/StarArawn/bevy_ecs_tilemap/blob/de8d005331dde7d9ebb8c4fe1b36769b84e44be5/examples/mouse_to_tile.rs#L291-L306
//from bevy_ecs_tilemap/examples/mouse_to_tile.rs
pub fn cursor_pos_in_world(
windows: &Windows,
cursor_pos: Vec2,
cam_t: &Transform,
cam: &Camera,
) -> Vec3 {
let window = windows.primary();
@Kielan
Kielan / gametest.py
Created December 12, 2024 06:04
Basketball pseudo code from Anthony on github
## Anthony Dike started: 3/8/18
##
## This is VERSION 3 of a program that
## will simulate basketball games like NBA 2k.
##
## In this version I will add
## 1) More Overtime and Sportcasting (announcers and stuff)
## 2) Notifier that says when team is blown out or a close game
## 3) Win Counter
##
@Kielan
Kielan / install_cmake.md
Created November 2, 2024 10:56 — forked from fscm/install_cmake.md
[macOS] Install CMake

[macOS] Install CMake

Instructions on how to install the CMake tool on macOS.

Uninstall

First step should be to unsinstall any previous CMake installation. This step can be skipped if no CMake version was previously installed.

To uninstall any previous CMake installations use the following commands:

export default function Widget() {
return (
<div className="bg-white p-6 rounded-lg shadow-lg max-w-4xl mx-auto">
<div className="grid grid-cols-3 gap-4">
<div className="col-span-1 bg-white p-4 rounded-lg shadow-sm">
<img className="rounded-full w-32 h-32 mx-auto" src="https://placehold.co/128x128" alt="Profile Picture">
<h2 className="text-center text-xl font-semibold mt-4">Monalisa Ashley</h2>
<p className="text-center text-zinc-500">UI/UX Designer</p>
<div className="flex justify-center gap-2 mt-4">
@Kielan
Kielan / DataPack.h
Last active April 15, 2024 03:14
EventEmitter module cpp
#pragma once
namespace Event {
class DataPack
{
public:
void* data;
DataPack(void* d) {
this->data = d;
@Kielan
Kielan / Index.html
Last active November 8, 2023 00:44
Neural ntwork
<a href="#controls">Jump to controls</a>
<canvas id="graph" width="600" height="600"></canvas>
<div class="controls" id="controls">
<button onclick="initialise()">initialise</button>
<button onclick="train()">Train</button>
<button onclick="classifyPoints()">Classify Points</button>
<button onclick="visualizeNeuronsAndWeights()">Visualize Neurons and Weights</button>
</div>
<label>Training Data Size
<input id="trainingDataSize" value="5000">
@Kielan
Kielan / interface_templates.c
Last active April 15, 2024 03:00
Ui btn cxt
/* main/source/dune/editors/interface/interface_templates.cc */
#include <ctype.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "mem_guardedalloc.h"
#include "types_brush.h"
Assume Positive Intent. Always begin with a position of positivity, empathy, and grace.
Work Out Loud (WOL). Commit is still in the scrappy phase of a startup. We value all your thoughts, opinions, and feelings on all subject matter! Since we live in different locations and often have very different perspectives, we encourage you to work-out-loud and start conversations in Slack channels or message someone on the Support Team!
Practice Kindness. Although you likely have not met the person you are speaking to, remember that even though you are looking at a screen, you are really talking to a person. If the message that you are sending is something you wouldn't say to a person's face, then don't send that message.
Own It. If you say it or type it, own it. If it hurts the company or an individual, even unintentionally, we encourage you to look at things from other viewpoints and apologize without hesitation.
Be a Role Model of our Key Operating Principle.
Feedback is Key. Given we are a remote-first team with me
/*
Doubly linked list
Navigation possible in both directions
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>