Skip to content

Instantly share code, notes, and snippets.

View aboveStars's full-sized avatar
😁
wanna go to 'aboveStars'

Yunus Korkmaz aboveStars

😁
wanna go to 'aboveStars'
  • ITU Faculty of Computer and Informatics Engineering
  • Istanbul
  • 23:14 (UTC +03:00)
View GitHub Profile
@ruzrobert
ruzrobert / Vibration.cs
Last active July 12, 2024 20:49
Android Vibration for Unity 3D. Supports all API: 1 - 29 (auto detect), Amplitudes, Predefined Effects, both Legacy and >=26 APIs.
using System.Diagnostics.CodeAnalysis;
using UnityEngine;
// Dont forget to add "using RDG;" to the top of your script!
namespace RDG
{
/// <summary>
/// Class for controlling Vibration. Automatically initializes before scene is loaded.
/// </summary>
public static class Vibration
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active July 22, 2024 09:05
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for...i or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment