Skip to content

Instantly share code, notes, and snippets.

How to generate automatic helpful fancy changelog

This howto will setup your project with automatic changelog generation, based on your commit messages.

Setup git hooks with husky

  1. Install husky
    yarn add -D husky
@mfrancois3k
mfrancois3k / Navigation page-back-forward-navigation-detection.md
Created March 15, 2023 05:58 — forked from lukewang1024/page-back-forward-navigation-detection.md
Navigation Dom Some useful snippets for frontend web development

Detect if the page load is from a back or forward browser navigation.

if (window.performance) {
  const navEntries = window.performance.getEntriesByType('navigation');
  if (navEntries.length > 0 && navEntries[0].type === 'back_forward') {
    console.log('As per API lv2, this page is load from back/forward');
  } else if (
    window.performance.navigation &&
 window.performance.navigation.type === window.performance.navigation.TYPE_BACK_FORWARD
@mfrancois3k
mfrancois3k / awwwards marquee orginal
Created March 9, 2023 19:42
awwwards marquee #JavaScript #effects
https://www.youtube.com/watch?v=qcfXA3uAD30&loop=0
class LoopingElement {
constructor(element, currentTranslation, speed) {
this.element = element;
this.currentTranslation = currentTranslation;
this.speed = speed;
this.direction = true;
this.scrollTop = 0;
@mfrancois3k
mfrancois3k / Node directory recursive walksync.js
Last active March 8, 2023 13:43 — forked from iTonyYo/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {
@mfrancois3k
mfrancois3k / cube
Created March 7, 2023 04:54
cube #CSS #effects
reference
https://github.com/fixko/3d-cube
<div class="wrap">
<div class="cube">
<div class="front">
<h2>Fullstack DEVs</h2>
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
</div>
@mfrancois3k
mfrancois3k / concurrently README.md
Created March 2, 2023 00:38 — forked from fuentesld/README.md
Node configuration with express react concurrency

node configuration for concurrent express React in the server

Install concurrently package

On server directory type:

npm i concurrently

In package.json check "scripts" section as above

@mfrancois3k
mfrancois3k / Google script code.js
Last active December 30, 2022 21:35 — forked from supermamon/code.js
Google script Example Google Apps Script WebApp to read/append to a Spreadsheet
/*
How to setup
============
1. Go to https://script.google.com and login
2. Click New Project
3. Give the project a name be clicking on "Untitled Project" and giving a new name
4. Copy this whole code and overwrite everything on Code.gs file. Click on the Save icon to save.
5. Go to Google drive and open the worksheet that you want to manipulate
6. Take a look at the url. It should be in this format -- https://docs.google.com/spreadsheets/d/spreadheet-id-as-some-long-seemingly-random-characters/edit#gid=478439860
@mfrancois3k
mfrancois3k / Email Templates Zurb index.html
Last active December 28, 2022 09:09 — forked from onimenotsuki/index.html
Email Templates Zurb Fourth version of foundation template tutorial
---
layout: index-layout
subject: My Email Templates
---
<spacer size="16"></spacer>
<!-- Contenedor para el encabezado -->
<container class="container-header">
<spacer size="50"></spacer>
async generateIDToken(uid: string) {
const customToken = await this.admin.auth().createCustomToken(uid);
const res = await rp({
url: `https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=${this.apikey}`,
method: 'POST',
body: {
token: customToken,
returnSecureToken: true,
},
json: true,
@mfrancois3k
mfrancois3k / Litmus Makefile
Created December 22, 2022 21:27 — forked from Pacifist117/Makefile
Litmus
CC = gcc
CFLAGS = -D_GNU_SOURCE -g -Wall -O0
# Common Library and Linking Flags
LIBS = -lrt -lm -lpthread -lchronos
LDFLAGS = -L/usr/lib -L/usr/local/lib -L /usr/realtime/ -L/usr/realtime/lib/
# Common install directories