Skip to content

Instantly share code, notes, and snippets.

View AhmadDalao's full-sized avatar
😄
Happily Coding

Ahmad Dalao AhmadDalao

😄
Happily Coding
View GitHub Profile
@AhmadDalao
AhmadDalao / SnapshotCamera.cs
Created January 7, 2024 00:30 — forked from mickdekkers/SnapshotCamera.cs
Take snapshot images of Prefabs and GameObjects in Unity using Render Textures
using UnityEditor;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
// Object rendering code based on Dave Carlile's "Create a GameObject Image Using Render Textures" post
// Link: http://crappycoding.com/2014/12/create-gameobject-image-using-render-textures/
@AhmadDalao
AhmadDalao / Members.php
Created April 21, 2021 01:35
Edit update delete insert activate member code
<?php
/*
================================
== Mange Members Page
== you can Add | Edit | Delete Members From Here
================================
*/
ob_start();
session_start();
@AhmadDalao
AhmadDalao / fancy-hamburger-menu.markdown
Created September 9, 2020 09:21
fancy hamburger menu
@AhmadDalao
AhmadDalao / bar-icon-and-loading-icon-with-animation.markdown
Created June 8, 2020 11:08
bar icon and loading icon with animation
@AhmadDalao
AhmadDalao / before-and-after.markdown
Last active June 8, 2020 07:47
before and after
@AhmadDalao
AhmadDalao / MainActivity.java
Created February 6, 2020 08:29
SeekTo method example
package com.example.android.deleteme;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@AhmadDalao
AhmadDalao / Main.java
Created December 21, 2019 13:30
*H4ck3r Sp34k * * Create a function that takes a string as an argument and returns a coded (h4ck3r 5p34k) version of the string.
package com.company;
import com.sun.deploy.util.ArrayUtil;
import com.sun.deploy.util.StringUtils;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
@AhmadDalao
AhmadDalao / Main.java
Created December 20, 2019 16:42
Generate a Countdown of Numbers in an Array * * Create a function that takes a number as an argument and returns an array of numbers counting down from this number to zero.
package com.company;
import com.sun.deploy.util.ArrayUtil;
import com.sun.deploy.util.StringUtils;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
@AhmadDalao
AhmadDalao / Main.java
Created December 20, 2019 16:26
*One Button Messaging Device * * Imagine a messaging device with only one button. For the letter A, you press the button one time, for E, you press it five times, for G, it's pressed seven times, etc, etc. Write a function that takes a string (the message) and returns the total number of times the button is pressed.
package com.company;
import com.sun.deploy.util.ArrayUtil;
import com.sun.deploy.util.StringUtils;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
@AhmadDalao
AhmadDalao / Main.java
Created December 20, 2019 16:03
*Grab the City * * Write a function to return the city from each of these vacation spots.
package com.company;
import com.sun.deploy.util.ArrayUtil;
import com.sun.deploy.util.StringUtils;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {