Skip to content

Instantly share code, notes, and snippets.

View klaszlo8207's full-sized avatar

KL klaszlo8207

  • Planet Earth
View GitHub Profile
@klaszlo8207
klaszlo8207 / Vars.bas
Last active January 23, 2023 08:54
Vars.bas 2003 körüli Visual Basic 6.0 szakdolgozat kódom egy része, globális változók
Attribute VB_Name = "mVars"
'---------------------------------------------
' VÁLTOZÓK MODUL - variables
'---------------------------------------------
'Egy kis API hívás
Public Declare Function GetTickCount Lib "kernel32" () As Long
Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
'Globális változók, így nem kell értékátadással bajlódni.. _
@klaszlo8207
klaszlo8207 / Draws.bas
Created January 23, 2023 08:51
Draws.bas 2003 körüli Visual Basic 6.0 szakdolgozat kódom egy része, Draws
Attribute VB_Name = "mDraws"
'---------------------------------------------
'"A dákó színének a pulzálása"
Dim col1 As Single
Dim c_bool As Boolean
Dim b_Transp As Boolean
Dim dx, dx2, dxv
Dim Transp
Public deltaY As Integer
@klaszlo8207
klaszlo8207 / Engine.bas
Last active January 23, 2023 08:32
Engine.bas 2003 körüli Visual Basic 6.0 szakdolgozat kódom egy része
Attribute VB_Name = "mEngine"
'---------------------------------------------------_
' Billiard 3GL : the ENGINE, created it in Opengl 1.2
'---------------------------------- ----------- --_
' I / \/ \ I
'\____/--------------\______/--- I/\__/\_/\I
' created by: /(o)(o)\ -
'\____/--------------\______/---\___/--\__O_O_/ _/-
' KOZaRI / /LLI\ \_/_--
@klaszlo8207
klaszlo8207 / Unity_RaycastDemo.cs
Last active January 23, 2023 08:48
Unity raycast demo, egy ismerősnek példaprogi
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
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('/');
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)
{
using System;
using UnityEngine;
namespace _MyScripts.Utils
{
public static class MeshExtensions
{
public static Mesh PivotToCenter(this Mesh originalMesh)
{
var mesh = new Mesh();
using System.Collections;
using UnityEngine;
using UnityEngine.Events;
namespace _MyScripts.Utils
{
public static class CoroutineExtensions
{
public static IEnumerator PostCoroutine(this MonoBehaviour mono, IEnumerator coroutine)
{
@klaszlo8207
klaszlo8207 / tinder_auto_like.js
Created January 6, 2020 16:16
Tinder auto like script js
//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)
@klaszlo8207
klaszlo8207 / flutter_activate_webdev.txt
Created January 6, 2020 16:11
Flutter activate webdev
flutter packages pub global activate webdev
flutter packages pub global activate stagehand
flutter packages pub get
flutter packages pub global run webdev serve