Skip to content

Instantly share code, notes, and snippets.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Quick start

Tauri is shipped with state management function/feature by default.

Basic usage is quite simple: a variable of State type can be accessed on the tauri commands which you have defined; in other words, "with tauri commands, they'll magically inject state for you," so that once a variable is managed you can inject them directly as additional input when defining the command.

Example Implementation

@josuenoel
josuenoel / provincias_cantones_distritos_costa_rica.json
Created August 17, 2020 18:14
JSON con provincias, cantones y distritos de Costa Rica
{
"provincias": {
"1": {
"nombre": "San José",
"cantones": {
"01": {
"nombre": "Central",
"distritos": {
"01": "Carmen",
"02": "Merced",
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 5, 2026 08:44
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@clemsos
clemsos / gitbook_to_pdf.sh
Last active June 27, 2025 04:56
Build Gitbook PDF using Pandoc
# #!/bin/bash
GITBOOK_REP=$1
SUMMARY_FILE="SUMMARY.md"
echo $OUTPUT_FILE
if [ -d "$GITBOOK_REP" ]; then
echo "Entering directory '$GITBOOK_REP'..."
cd $GITBOOK_REP
@pedroparra
pedroparra / store-example.js
Last active February 12, 2019 07:58
Ejemplo de store con redux.
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
// Preparamos nuestra funcion reducer
const myReducer = (state = 0, action) => {
switch(action.type) {
case 'sumar':
return state + 1;
case 'restar':
@dokshor
dokshor / michelada.js
Created July 18, 2013 17:41
michelada.js - mejorando.la
(function() {
MicheladaJS = {
init: function(){
this.prepara.la();
},
prepara: {
la: function() {
alert(this.ahora());
},
ahora: function() {