This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:advert_app/utils/logging.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter/gestures.dart'; | |
class ScalingGestureDetector extends StatefulWidget { | |
final Widget child; | |
final void Function(Offset initialPoint) onPanStart; | |
final void Function(Offset initialPoint, Offset delta) onPanUpdate; | |
final void Function() onPanEnd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:animator/animator.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
class SimpleAnimatedWidget extends StatelessWidget { | |
SimpleAnimatedWidget({ | |
@required this.child, | |
@required this.tween, | |
@required this.builder, | |
this.curve = Curves.linear, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Navigate to: | |
https://www.linkedin.com/mynetwork/ | |
then on Firefox press F12 and copy/paste this code + enter | |
*/ | |
setInterval(() => { | |
var elems = document.querySelectorAll('[data-control-name="invite"]'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter packages pub global activate webdev | |
flutter packages pub global activate stagehand | |
flutter packages pub get | |
flutter packages pub global run webdev serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FF, F12, copy/paste run | |
setInterval( function () { var o = document.getElementsByClassName("button Lts($ls-s) Z(0) CenterAlign Mx(a) Cur(p) Tt(u) Bdrs(50%) P(0) Fw($semibold) focus-button-style recsGamepad__button D(b) Bgc(#fff) Wc($transform) End(15px) Scale(1.1):h"); o[0].click() }, 300) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.Events; | |
namespace _MyScripts.Utils | |
{ | |
public static class CoroutineExtensions | |
{ | |
public static IEnumerator PostCoroutine(this MonoBehaviour mono, IEnumerator coroutine) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
namespace _MyScripts.Utils | |
{ | |
public static class MeshExtensions | |
{ | |
public static Mesh PivotToCenter(this Mesh originalMesh) | |
{ | |
var mesh = new Mesh(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace _MyScripts.Utils | |
{ | |
public static class PlaneUtils | |
{ | |
private static Camera _camera; | |
public static void PlaneRotateToCamera(GameObject go, float x, float y, float z) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine.SceneManagement; | |
namespace _MyScripts.Utils | |
{ | |
public static class SceneUtils | |
{ | |
private static string NameFromIndex(int buildIndex) | |
{ | |
var path = SceneUtility.GetScenePathByBuildIndex(buildIndex); | |
var slash = path.LastIndexOf('/'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace _MyScripts.Demos | |
{ | |
public class Unity_RaycastDemo : MonoBehaviour | |
{ | |
[SerializeField] private Vector3 from = Vector3.zero; //honnan, meliyk pontbol | |
[SerializeField] private Vector3 direction = Vector3.right; //mi az irany vektor? | |
[SerializeField, Range(1, 20)] private float distance = 10; //mi a szakasz távolsága | |
[SerializeField] private LayerMask layerMask = 0; //mi a layerMask, amin van, alapbol Default |
OlderNewer