Skip to content

Instantly share code, notes, and snippets.

View shaggun's full-sized avatar
☁️
⚡️

shaggun shaggun

☁️
⚡️
  • Za Warudo
  • 05:48 (UTC -06:00)
View GitHub Profile
@shaggun
shaggun / Autocomplete.onHighlight.tests.js
Last active June 10, 2025 14:22
Expanded onHighlight tests with edge cases
import * as React from 'react';
import { expect } from 'chai';
import { createClientRender, fireEvent, screen, act } from 'test/utils';
import { spy } from 'sinon';
import Autocomplete from './Autocomplete';
import TextField from '../TextField';
describe('<Autocomplete /> - Bug fix for onHighlightChange with input changes', () => {
const render = createClientRender();
@shaggun
shaggun / BendMesh.shader
Last active October 24, 2023 03:33
Bending a mesh with a shader in Unity
Shader "BendMesh"
{
Properties
{
_Texture("Texture", 2D) = "white" {}
_Color("Color", Color) = (0,0,0,0)
_Amplitude("Amplitude", Float) = 0
_Frequency("Frequency", Float) = 0
_OffsetSin("OffsetSin", Float) = 0