Skip to content

Instantly share code, notes, and snippets.

View ManUtopiK's full-sized avatar
:octocat:
Ready to code.

Emmanuel Salomon ManUtopiK

:octocat:
Ready to code.
View GitHub Profile
@ManUtopiK
ManUtopiK / useBreadcrumbs.ts
Created December 1, 2023 12:23
useBreadcrumbs for Vue
const isMathPatternPath = (pathA: string, pathB: string) => {
const partsA = pathA.split('/');
const partsB = pathB.split('/');
if (partsA.length !== partsB.length) return false;
const isMatch = partsA.every((part: string, i: number) => {
return part === partsB[i] || part.startsWith(':');
})
@ManUtopiK
ManUtopiK / gitlab-webhook.ts
Created July 16, 2024 19:29
Gitlab webhook to refresh nuxt-content
import { defineEventHandler, getRequestHeader, readBody } from 'h3'
import { transformContent } from '@nuxt/content/transformers'
// @ts-expect-error Missing imports
import { useStorage, useRuntimeConfig } from '#imports'
export default defineEventHandler(async (event) => {
const secret = getRequestHeader(event, 'X-Gitlab-Token')
const body = await readBody(event)
const commits = body.commits
const config = useRuntimeConfig()
@ManUtopiK
ManUtopiK / remoteScript.js
Created September 12, 2024 01:40
test remote script
// remoteScript.js
(function() {
// Define a global function
window.remoteFunction = function() {
console.log('Remote function called!');
// You can add more functionality here
};
// Optionally, you can define more functions or objects
window.anotherRemoteFunction = function(message) {
@ManUtopiK
ManUtopiK / make-variable.ts
Created September 21, 2024 19:36
unocss make variable
export const shades = [
50,
...Array.from({ length: 9 }).map((_, i) => (i + 1) * 100),
950,
];
export const makeVariable = ({ fallbackValue, name, shade, withVar }) => {
const variable = `--${name}-${shade}`;
const value = fallbackValue ? variable + ", " + fallbackValue : variable;
return withVar ? `var(${value})` : variable;
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Component } from "vue";
import {
memo,
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
useCallback,
@ManUtopiK
ManUtopiK / emoji.md
Created January 17, 2026 21:34 — forked from janlelis/emoji.md
List of 11.0 Emoji (compiled from emoji-test.txt)

Please note: See character.construction/emoji-categories for more up-to-date listings.

Emoji 11.0

Smileys & People

face-positive

๐Ÿ˜€ ๐Ÿ˜ ๐Ÿ˜‚ ๐Ÿคฃ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜… ๐Ÿ˜† ๐Ÿ˜‰ ๐Ÿ˜Š ๐Ÿ˜‹ ๐Ÿ˜Ž ๐Ÿ˜ ๐Ÿ˜˜ ๐Ÿฅฐ ๐Ÿ˜— ๐Ÿ˜™ ๐Ÿ˜š โ˜บ๏ธ ๐Ÿ™‚ ๐Ÿค— ๐Ÿคฉ

@ManUtopiK
ManUtopiK / install_skills.sh
Created March 26, 2026 16:35
Install skills from a directory
#!/bin/bash
# Install Agent Skills
# This script installs custom skills for AI coding agents using the Vercel skills CLI
set -e
# Default agents to install for
AGENTS=("codex" "claude-code" "pi" "opencode")
SCOPE="${1:-global}"