Skip to content

Instantly share code, notes, and snippets.

property property-label category
color text color
background-color bg color
border-color border color
border-radius radius shape
box-shadow shadow elevation
fill fill color
font-family face type
font-size size type
font-weight weight type
@shubhank008
shubhank008 / deleteBuildingEntity_EXT.cs
Created December 10, 2022 09:55
Delete Building Entity from server
using System.Collections.Generic;
using UnityEngine;
using LiteNetLib;
using LiteNetLibManager;
using LiteNetLib.Utils;
using Cysharp.Threading.Tasks;
using UnityEngine.Networking;
using System;
namespace MultiplayerARPG.MMO
@RaheelYawar
RaheelYawar / GuidedProjectile.cs
Last active March 17, 2024 21:11
Guided Missile - positional update routine for a guided missile that tracks a player
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Projectile : MonoBehaviour
{
[SerializeField] private GameObject target = null;
private const float TURN_RATE = 0.5f;
@yvesh
yvesh / gatsby.yml
Created February 22, 2020 11:29
[GitHub Action] Publish Gatsby website to an Linux SFTP (scp) server on PUSH
name: Publish a gatsby project with SFTP
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build project
run: |
@vimtaai
vimtaai / markdown-flavors.md
Last active June 22, 2024 07:34
Comparison of features in various Markdown flavors

Comparison of syntax extensions in Markdown flavors

I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.

Flavor Superscript Subscript Deletion*
Strikethrough
Insertion* Highlight* Footnote Task list Table Abbr Deflist Smart typo TOC Math Math Block Mermaid
GFM
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active July 11, 2024 21:37
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
body{
margin: 0;
}
.grid {
display: grid;
/* # of grid rows. This will be set by JS */
grid-template-rows: var(--grid-rows);
/* # of grid columns. This will be set by JS */
grid-template-columns: var(--grid-cols);
@JLChnToZ
JLChnToZ / _readme.md
Last active April 17, 2024 04:12
Simple bookmarklet that captures any webpage and save as png image using HTML5 technologies

Webpage Snapshot Bookmarklet

This is a simple bookmarklet that captures any webpage and save as png image using HTML5 technologies. Under the hood it uses HTML2Canvas to capture the webpage to canvas, then we convert the content inside this canvas element to image file.

You may copy the text below and save as bookmark. `javascript:!function()%7Bfunction%20e()%7Bthis&&this.parentNode&&this.parentNode.removeChild(this),html2canvas(document.body).then(function(e)%7Breturn%20new%20Promise(function(t)%7Be.toBlob(t)%7D)%7D).then(function(e)%7Bvar%20t=document.createElement(%22a%22);return%20t.href=URL.createObjectURL(e),t.download=document.title.replace(/%5B/%5C%7C%5C%5C%60~!@#%5C$%25%5C%5E&%5C*%5C+%5C-='%22%5C,%5C.:;%5D+/g,%22%22)+%22_%22+(new%20Date).getTime()+%22.png%22,t.click(),new%20Promise(function(e)%7BsetTimeout(10,e,t)%7D)%7D).then(function(e)%7B0===e.href.indexOf(%22blob:%22)&&(URL.revokeObjectURL(e.href),e.href=%22###%22)%7D).catch(function(e)%7Bconsole.error(e)

@AG-Dan
AG-Dan / DoSomethingOnDungeonComplete.cs
Last active March 3, 2024 14:41
This script would be attached to the same object as our RuntimeDungeon component.
using UnityEngine;
using DunGen;
[RequireComponent(typeof(RuntimeDungeon))]
public class DoSomethingOnDungeonComplete : MonoBehaviour
{
private RuntimeDungeon runtimeDungeon;
private void Awake()