Skip to content

Instantly share code, notes, and snippets.

View jwilander's full-sized avatar

Joram Wilander jwilander

View GitHub Profile
@mickmister
mickmister / scrape_new_plugins.sh
Last active November 2, 2024 05:03
This bash script checks if there are any new plugins added to the Mattermost plugin marketplace, and creates a new post through a Mattermost incoming webhook request. See the comment below for more details.
#!/usr/bin/env bash
if [ -z "$MM_WEBHOOK_URL" ]
then
echo "Please set the MM_WEBHOOK_URL environment variable"
exit 0
fi
LOCAL_PLUGINSJSON_PATH="plugins.json"
REMOTE_PLUGINSJSON_PATH="new_plugins.json"
@yasirkula
yasirkula / CircleGraphic.cs
Last active March 2, 2025 21:47
Create circles/ellipses in Unity UI system in one of three modes: FillInside, FillOutside and Edge.
using UnityEngine;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
// Custom Editor to order the variables in the Inspector similar to Image component
[CustomEditor( typeof( CircleGraphic ) ), CanEditMultipleObjects]
public class CircleGraphicEditor : Editor
{