Skip to content

Instantly share code, notes, and snippets.

View danmindru's full-sized avatar
👋

Dan Mindru danmindru

👋
View GitHub Profile
@danmindru
danmindru / index.html
Created May 22, 2025 18:43
Tank AI game with Claude Sonnet 4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tank Battle</title>
<style>
* {
margin: 0;
padding: 0;
@danmindru
danmindru / React & Next.js
Created February 14, 2025 12:30
.copilot-instructions MEGA collection
You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.
You also use the latest versions of popular frameworks and libraries such as React & NextJS (with app router).
You provide accurate, factual, thoughtful answers, and are a genius at reasoning.
## Approach
- This project uses Next.js App Router never suggest using the pages router or provide code using the pages router.
- Follow the user's requirements carefully & to the letter.
- First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail.
- Confirm, then write code!
- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code.
@danmindru
danmindru / filterCode.js
Created July 18, 2023 14:47
IFTTT Filter Code for Crontap & Posting tweets
// Parse the Webhook payload.
// NB: Crontap adds API response data under the `data` key.
let payload = JSON.parse(MakerWebhooks.jsonEvent.JsonPayload);
const post = payload.data.posts[0]; // Get the first post. The API returns top 10 posts in this case, and we want to only tweet about the top post.
const link = `https://hunted.space/dashboard/${post.slug}`;
const upvotes = post.votesCount;
const name = post.name;
const tagline = post.tagline;
@danmindru
danmindru / style.css
Last active February 12, 2020 10:28
Devops Stylish Gold
.region-header {
background: #fffbef;
}
.suite-logo {
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
background: linear-gradient(
to right,
rgb(191, 149, 63, 0.5),
# README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
# In addition, I recommend the
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over
# Terminal.app - it has significantly better color fidelity.
@danmindru
danmindru / setup-development-env-on-windows and mac.md
Last active November 18, 2024 15:43
Setting up a new mac/windows computer

Basics

(Mac - skip to 4)

  1. Enable developer mode in windows settings
  2. Enable WSL (if not in settings, try Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux)
  3. Install distro from windows store, i.e Ubuntu 18.
  4. Install basic software:
  • Git
@danmindru
danmindru / .gitconfig
Created July 26, 2019 09:30
Git config on WSL
[alias]
co = checkout
st = status
bo = checkout -b
unstage = reset HEAD --
last = !"git nlg -1 HEAD"
view-last = !"git view HEAD"
slg = log --oneline --graph --decorate # simple log
nlg = !"git pretty-log" # nice log that also works with bare bash
view = !"git pretty-view" # nice view of commits
@danmindru
danmindru / 34M_17.gltf
Last active May 21, 2019 12:27 — forked from ryanbaumann/34M_17.gltf
Mapbox Custom Layers - Add a 3D GLTF model to a map with Three.js
{
"accessors" : [
{
"bufferView" : 0,
"componentType" : 5123,
"count" : 4320,
"max" : [
1439
],
"min" : [
# Work
export PATH="$HOME/.cargo/bin:$PATH"
export PATH=~/.npm-global/bin:$PATH
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
If not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}
LWin::Control
; RWin::Control - Keeps right win active
Control::Alt