Skip to content

Instantly share code, notes, and snippets.

@ahmedosama007
ahmedosama007 / FlatScrollBar.vb
Last active October 24, 2025 07:56
Flat ScrollBar control for Windows Forms apps based on https://www.codeproject.com/Articles/41869/Custom-Drawn-Scrollbar
'Copyright (c) Smart PC Utilities, Ltd.
'All rights reserved.
#Region "References"
Imports System.ComponentModel
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D
#End Region
@yasirkula
yasirkula / EditorCollapseAll.cs
Last active December 7, 2025 16:11
An editor script for Unity 3D to collapse all GameObject's in Hierarchy view or to collapse all folders in Project view. See the comments section below for instructions.
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEditorInternal;
using UnityEngine.SceneManagement;
#if UNITY_6000_3_OR_NEWER
using EntityId = UnityEngine.EntityId;
#else
using EntityId = System.Int32;