Skip to content

Instantly share code, notes, and snippets.

View AmmarTee's full-sized avatar
I eat code and drink coffee

Ammar AmmarTee

I eat code and drink coffee
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObstacleSpawner : MonoBehaviour
{
public GameObject red;
public GameObject blue;
[Range(1,10)]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EnvironmentManager : MonoBehaviour
{
// does server need to enable or know about parts of map?
#if !UNITY_SERVER
@AmmarTee
AmmarTee / .deps...remix-tests...remix_accounts.sol
Created January 19, 2022 17:54
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.11+commit.d7f03943.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@AmmarTee
AmmarTee / .deps...remix-tests...remix_accounts.sol
Created January 19, 2022 00:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.11+commit.d7f03943.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@AmmarTee
AmmarTee / .deps...remix-tests...remix_accounts.sol
Created January 18, 2022 22:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@AmmarTee
AmmarTee / mixcolumncalculator.py
Created December 29, 2021 19:08
Replace the vector and Run your code to get mixed column output
mixColumn = [
[2,3,1,1],
[1,2,3,1],
[1,1,2,3],
[3,1,1,2]
]
def shiftRight(element):
return element[1:]+'0'
@AmmarTee
AmmarTee / cameraFollow.cs
Last active January 15, 2021 10:14
Our Bootcamp Scripts for Students
using UnityEngine;
public class cameraFollow : MonoBehaviour
{
public GameObject player;
public float offset;
// Update is called once per frame
void Update()
@AmmarTee
AmmarTee / hello_Hello.java
Created June 5, 2020 17:30
Plugin To store Player data to MongoDB database
package net.ammart.plugin.hello;
import org.bukkit.plugin.java.JavaPlugin;
public final class Hello extends JavaPlugin{
@Override
public void onEnable() {
getCommand("Hello").setExecutor(new HelloCommand());
System.out.println("Hello Plugin Started");