Skip to content

Instantly share code, notes, and snippets.

View eelstork's full-sized avatar

T.E.A de Souza eelstork

View GitHub Profile
@thallippoli
thallippoli / Pulse
Last active July 11, 2022 07:04
Pulsing shader in Unity
Shader "Custom/Glow" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_GlowColor ("Glow Color", Color ) = ( 1.0, 1.0, 1.0, 1.0 )
_Frequency( "Glow Frequency", Float ) = 1.0
_MinPulseVal( "Minimum Glow Multiplier", Range( 0, 1 ) ) = 0.5
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
@davisford
davisford / markdown-to-pdf.txt
Last active June 20, 2023 06:20
Convert Markdown to PDF
$ brew install markdown htmldoc
$ markdown <file.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > <file.pdf>
@AlexMAS
AlexMAS / ProcessHelper.cs
Last active December 9, 2021 11:58
The right way to run external process in .NET
public static class ProcessHelper
{
public static ProcessResult ExecuteShellCommand(string command, string arguments, int timeout)
{
var result = new ProcessResult();
using (var process = new Process())
{
process.StartInfo.FileName = command;
process.StartInfo.Arguments = arguments;