Skip to content

Instantly share code, notes, and snippets.

View rluvaton's full-sized avatar
:octocat:
Programming

Raz Luvaton rluvaton

:octocat:
Programming
View GitHub Profile
@Eomm
Eomm / fastify-oss.md
Last active January 6, 2024 14:18
Start contributing to OSS

Start contributing to OSS

Do you want to start contributing to Open Souce Software and the Fastify project?

It would be best if you started asking yourself where to start:

  • Do you want to write code?
  • Do you want to understand how things work?
  • Do you like DevOps stuff?
  • Do you want to work on Github action automation?
  • Do you want to make an impact on the community?
@zaripych
zaripych / typeFootprint.ts
Last active February 12, 2024 02:54
ts-morph type footprint
import {
Project,
Type,
Symbol,
SymbolFlags,
Signature,
Node,
TypeFormatFlags,
} from 'ts-morph';
@rluvaton
rluvaton / reference-types-from-another-file-library.js
Last active April 29, 2020 21:24
Reference types from another file / library #jsdoc #types #js
// Example of how to reference another file / library type
import puppeteer from 'puppeteer';
/** @typedef {import(@types/puppeteer).Browser} Browser */
/**
* @type Browser
*/
let browser;
@thomasloven
thomasloven / my-custom-card.js
Last active April 16, 2024 08:44
Simplest custom card
// Simplest possible custom card
// Does nothing. Doesn't look like anything
class MyCustomCard extends HTMLElement {
setConfig(config) {
// The config object contains the configuration specified by the user in ui-lovelace.yaml
// for your card.
// It will minimally contain:
// config.type = "custom:my-custom-card"
#!/bin/bash
function usage()
{
echo "Export Nexus Repositories."
echo ""
echo "./nexus-export"
echo -e "\t--help"
echo -e "\t--localNexusUrl"
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 4, 2024 15:47
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@zorrodg
zorrodg / LICENSE
Last active November 30, 2023 19:37
CLI Integration Test Helper
MIT License
Copyright © 2019 Andrés Zorro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
{
"description": "the description for this gist",
"files": {
"file1.84D9D31B-8AD2-492F-A44D-6407128DAD79.txt": {
"content": "updated file contents"
},
"file2.84D9D31B-8AD2-492F-A44D-6407128DAD79.txt": {
"content": "updated file contents"
}
}
anonymous
anonymous / RunTimeComplaxity.md
Created January 7, 2018 08:17
for(i = 0; i < N; i++)
{
    C[i] = a[i] + b[i];
}

$$t(N) = 1 + N + N + 2N + 8N$$ $$t(N) = 12N + 1$$

@spemer
spemer / customize-scrollbar.css
Last active May 4, 2024 06:37
✨ Customize website's scrollbar like Mac OS. Not supports in Firefox and IE.
/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */
/* total width */
body::-webkit-scrollbar {
background-color: #fff;
width: 16px;
}
/* background of the scrollbar except button or resizer */