Skip to content

Instantly share code, notes, and snippets.

View leonardssh's full-sized avatar
:shipit:
<Esc>:wq!<Ret>

Narcis-Ionuț B. leonardssh

:shipit:
<Esc>:wq!<Ret>
View GitHub Profile
@leonardssh
leonardssh / resume-schema.json
Last active July 19, 2022 13:44
Resume Schema with custom modifications
{
"$schema": "http://json-schema.org/draft-04/schema#",
"additionalProperties": false,
"definitions": {
"iso8601": {
"type": "string",
"description": "e.g. 2014-06-29",
"pattern": "^([1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]|[1-2][0-9]{3}-[0-1][0-9]|[1-2][0-9]{3})$"
},
"date": {
@leonardssh
leonardssh / resume.json
Last active September 16, 2022 14:24
Resume
{
"$schema": "https://gist.githubusercontent.com/leonardssh/c9c77d12c05df9c56b4979b9753a827c/raw/resume-schema.json",
"basics": {
"name": "Narcis Ionut B.",
"label": "Full-Stack Web Developer",
"summary": "My name is Narcis and I'm a full-stack web developer who relocated recently to The Netherlands. I'm looking for new challenges in my career therefore I'm currently looking for hire.\n\nI'm well versed in the art of web development. I can manage to do front-end and back-end with relative ease from the point of conceptualization to the point of delivery.",
"url": "https://leonard.sh",
"image": "https://leonard.sh/images/me.png",
"email": "[email protected]",
"location": {
@leonardssh
leonardssh / index.vue
Created July 1, 2022 19:54 — forked from yannbcf/index.vue
custom alt:V drag & drop implementation
<script setup lang="ts">
import { InventoryManager } from './inventoryManager';
import { onMounted, onUnmounted } from 'vue';
import { Container } from 'typedi';
onMounted(() => {
const inventoryManager = Container.get(InventoryManager);
const container = document.querySelector('.container');
if (!inventoryManager || !container) return;
@leonardssh
leonardssh / altvHelper.ts
Created May 7, 2022 12:06
Small Vue3 helper for communicating and debugging webviews. Also removes events when unmounted.
import { onUnmounted } from 'vue';
const insideAltV = 'alt' in window;
export function useAltV(removeEventsOnUnmount: boolean = true) {
const eventHandlers: { [eventName: string]: Array<(...args: any[]) => Promise<void> | void> } = {};
const instance = {
insideAltV,
on: (eventName: string, listener: (...args: any[]) => void): void => {
TypeScript 14 hrs 30 mins █████████▋░░░░░░░░░░░ 46.2%
HTML 10 hrs 1 min ██████▋░░░░░░░░░░░░░░ 31.9%
JavaScript 4 hrs 52 mins ███▎░░░░░░░░░░░░░░░░░ 15.5%
SCSS 1 hr 39 mins █░░░░░░░░░░░░░░░░░░░░ 5.3%
Bash 9 mins ░░░░░░░░░░░░░░░░░░░░░ 0.5%
@leonardssh
leonardssh / coc-discord-rpc-wsl-passthrough.md
Created August 22, 2021 19:31 — forked from mousebyte/coc-discord-rpc-wsl-passthrough.md
coc-discord-rpc on WSL: passthrough to Discord on host Windows

Using coc-discord-rpc on WSL

You can use [npiperelay][] to let coc-discord-rpc connect to a Discord instance running on the host Windows operating system. It requires modifying the extension a bit, but it's relatively painless. This guide assumes you have [coc.nvim][] and [coc-discord-rpc][] already installed.

Get npiperelay and socat

To build npiperelay, you'll need [Go][]. Grab the golang package from your favorite package manager and follow the instructions on the [npiperelay][] repo. You'll also need to install socat if it doesn't come with your distribution.