https://www.kernel.org/doc/Documentation/process/coding-style.rst
https://stackoverflow.com/questions/1675351/typedef-struct-vs-struct-definitions
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"> |
#pragma once | |
namespace Event { | |
class DataPack | |
{ | |
public: | |
void* data; | |
DataPack(void* d) { | |
this->data = d; |
<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"> |
/* 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> |
interface Lookup<T = any> { | |
[key: string]: T | |
} | |
type IsType<U> = <T>(arg: T & any) => arg is Narrow<T, U> | |
type Narrow<T, U> = [T] extends [Any] ? U : [T] extends [U] ? Extract<T, U> : U | |
type PlainObject<T> = Exclude<T & Lookup, Function | readonly any[]> | |
const is = { | |
arr: Array.isArray as IsType<readonly any[]>, |
/* dust/source/dust/windowmanager/intern/wm_cursors.c */ | |
/** | |
* Custom Cursor Description | |
* ========================= | |
* | |
* Each bit represents a pixel, so 1 byte = 8 pixels, | |
* the bytes go Left to Right. Top to bottom | |
* the bits in a byte go right to left | |
* (ie; 0x01, 0x80 represents a line of 16 pix with the first and last pix set.) | |
* |
GHOST_ContextHandle GHOST_CreateOpenGLContext(GHOST_SystemHandle systemhandle, | |
GHOST_GLSettings glSettings) | |
{ | |
GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | |
return (GHOST_ContextHandle)system->createOffscreenContext(glSettings); | |
} |