Skip to content

Instantly share code, notes, and snippets.

View SeanningTatum's full-sized avatar

Sean Stuart Urgel SeanningTatum

  • Casper Studios
  • Toronto, Canada
  • 18:33 (UTC -04:00)
View GitHub Profile
# Goal
You're helping me design a wireframe for an app/feature that <your single sentence on your job to be done>.
## Target user
<Who is this feature for, and what mindset are they in when using it?>
## Success criteria
<How you will know your user has achieved their job to be done>
## Key screens
@SeanningTatum
SeanningTatum / quicksort.rs
Last active September 2, 2023 16:15
Quick Sort Rust
fn partition(array: &mut Vec<i64>, low: usize, high: usize) -> usize {
let pivot = low;
let mut left = low + 1;
let mut right = high;
while left <= right {
if array[left] >= array[pivot] && array[right] <= array[pivot] {
array.swap(left, right);
}
@SeanningTatum
SeanningTatum / linked_list.rs
Created August 23, 2023 03:34
Rust Linked List
type NodePtr = Option<Box<Node>>;
#[derive(Clone, Debug, PartialEq)]
struct Node {
value: i32,
next: NodePtr,
}
#[derive(Debug, PartialEq)]
pub struct LinkedList {
import React, { useState, useContext } from "react";
import { CounterContext, CounterProvider } from "./counterContext";
function Counter() {
const { state, dispatch } = useContext(CounterContext);
return (
<div>
<h5>Count: {state.count}</h5>