Skip to content

Instantly share code, notes, and snippets.

View Petschko's full-sized avatar
Moved to Gitlab

Peter Dragicevic Petschko

Moved to Gitlab
View GitHub Profile
@emredesu
emredesu / ScrollRectAutoScroll.cs
Last active June 18, 2024 07:35 — forked from mandarinx/ScrollRectAutoScroll.cs
Re-written for the new input system. Also uses unscaledDeltaTime for use in pause menus, and doesn't do anything if the platform is a mobile platform with no gamepads connected.
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.InputSystem;
[RequireComponent(typeof(ScrollRect))]
public class ScrollRectAutoScroll : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler {
public float scrollSpeed = 10f;
private bool mouseOver = false;
@bekarice
bekarice / registration-order-link-for-woocommerce.php
Last active December 16, 2024 05:07
Automatically link previous orders to new WooCommerce customer accounts upon registration
@tdd
tdd / angular-just-say-no.md
Last active December 18, 2024 15:33
Angular: Just Say No

Angular: Just say no

A collection of articles by AngularJS veterans, sometimes even core committers, that explain in detail what's wrong with Angular 1.x, how Angular 2 isn't the future, and why you should avoid the entire thing at all costs unless you want to spend the next few years in hell.

Reason for this: I'm getting tired of having to explain to everyone, chief of which all the indiscriminate Google Kool-Aid™ drinkers, why I have never believed in Angular, why I think it'll publicly fail pretty soon now (a couple years), and why it's a dead end IMO. This gist serves as a quick target I can point people to in order not to have to parrot / compile the core of the articles below everytime. Their compounded reading pretty much captures 99% of my view on the topic.

This page is accessible through http://bit.ly/angular-just-say-no and http://bit.ly/angularjustsayno, btw.