Skip to content

Instantly share code, notes, and snippets.

View HugoVG's full-sized avatar
🐦
Borb

Hogo HugoVG

🐦
Borb
  • 18:44 (UTC +02:00)
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#define ARRAY_SIZE 1000000
int compare(const void *a, const void *b)
{
int ia = *(int*)a;
@gkaizer1
gkaizer1 / ripple.shader
Last active December 31, 2023 00:51
Unity example of ripple effect
Shader "Unlit/ripple_shader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_amount ("_amount", Range(0.01, 1.0)) = 0.5
_spread ("_spread", Range(0.01, 1.0)) = 0.5
_width ("_width", Range(0.01, 1.0)) = 0.5
_alpha ("_alpha", Range(0.01, 1.0)) = 0.5
@RealDotNetDave
RealDotNetDave / .editorConfig
Last active June 20, 2024 08:27
.editorConfig by David (dotNetDave) McCarter - dotNetTips.com
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5
# Updated May 2, 2024
# dotNetDave's NEW coding standards book is available at: https://bit.ly/CodingStandards8
# Rockin' the Code World with dotNetDave (weekly live show): https://bit.ly/RockinCodeWorldShows
root = true
# All Files
[*]
@ashblue
ashblue / JumpThrough.cs
Last active September 1, 2023 09:35
Unity 2D jump through platforms with fall support.
using UnityEngine;
using System.Collections;
public class Platform : MonoBehaviour {
SpriteRenderer playerGraphic;
Rigidbody2D playerBody;
BoxCollider2D playerBox;
CircleCollider2D playerCircle;
float padTop = -0.2f; // Padding applied to the top of feet platform checks (prevents player from barely standing on platform)