Skip to content

Instantly share code, notes, and snippets.

View pferreirafabricio's full-sized avatar
🌀
let's not fix what's not broken

Fabrício Pinto Ferreira pferreirafabricio

🌀
let's not fix what's not broken
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kasari
kasari / PostProcess-HeightFog.shader
Created November 3, 2019 09:20
[Unity] Post Process Height Fog
Shader "PostProcess/HeightFog"
{
Properties
{
[HideInInspector] _MainTex ("Texture", 2D) = "white" {}
_FogColor ("FogColor", Color) = (1,1,1,1)
_FogDensity ("FogDensity", Range(0,1)) = 0.2
_FogHeight ("FogHeight", float) = 5.0
}
SubShader
@raduchiriac
raduchiriac / prepare-commit-msg
Last active September 3, 2024 06:13
Hook: Prepend Jira ticket ID to the git commit message
#!/bin/bash
# Get the current branch name
current_branch=`git rev-parse --abbrev-ref HEAD`
# Search Jira ID in a pattern such a "feature/ABCD-123-my-feature"
id=$(echo $current_branch | sed -nE 's,[a-z]+/([A-Z]+-[0-9]+)-.+,\1,p')
# only prepare commit message if pattern matched and jiraId was found
if [[ ! -z $id ]]; then
<template>
<slot :env="env" />
</template>
<script setup lang="ts">
const env = computed(() =>
Object.entries(import.meta.env).reduce(
(acc, [key, value]) => ({
...acc,
[key]: value,