Snippets Collections
Private-Key: (2048 bit)
modulus:
    00:c2:e9:c4:ce:89:e8:be:d4:08:38:28:a5:89:7d:
    ce:4d:8e:b2:cb:2b:1b:07:3e:5d:80:25:af:fd:87:
    43:84:48:60:94:c3:19:a8:19:c4:54:5d:2a:8a:6d:
    74:e9:e6:33:22:2a:ed:3e:9a:4c:cc:82:2c:1b:b7:
    c2:28:3a:63:c1:f7:02:fb:3d:2d:ad:c0:15:d0:58:
    b0:e0:a2:dc:9d:2e:70:23:6b:31:9d:c6:0a:8f:60:
    d7:2f:11:d7:4d:25:a7:2f:0a:17:ed:fc:c2:e9:bf:
    a2:06:c4:6d:e0:a6:26:eb:9b:0e:06:35:20:ad:20:
    05:bc:f7:e5:9d:4a:9b:1c:ff:ef:c7:a0:18:98:04:
    39:d0:7b:97:f3:be:ef:36:f3:c3:51:20:0a:ca:84:
    bb:c7:b3:e7:97:bc:4d:b0:ed:c1:0a:72:11:bd:74:
    29:73:6b:91:6e:bc:2a:6d:42:d7:0a:bc:8b:2e:90:
    e8:64:2e:5f:35:0a:c4:ee:ed:60:1e:b5:17:e5:7e:
    d5:cb:e1:40:d3:3e:47:3e:70:72:4e:f3:23:6e:e5:
    87:ee:ef:96:e5:09:c6:21:da:d4:fa:e4:69:4c:fe:
    f1:67:9a:a2:f7:be:73:75:6e:63:31:de:da:8d:c0:
    a0:8e:b2:37:1b:c0:91:ce:90:10:e6:54:99:d7:8b:
    a2:6d
publicExponent: 65537 (0x10001)
privateExponent:
    0f:b7:d4:54:27:90:ea:5a:a4:f3:0a:6c:17:03:5b:
    30:ab:f2:45:2a:0b:ba:f0:cf:8f:76:fa:93:42:66:
    32:73:b7:be:27:61:99:49:c2:a8:5e:ff:00:3c:c5:
    71:db:4b:82:54:dd:de:ef:88:83:f1:77:67:20:d1:
    7a:77:02:f6:70:5a:00:32:b5:cd:4e:31:34:25:02:
    d6:8a:ab:a9:cd:45:e3:c5:50:31:fd:f7:7a:0a:80:
    2f:de:8b:73:40:37:14:37:07:28:fc:fa:26:e9:7a:
    42:7b:72:b4:ec:11:35:6c:c2:9b:c3:8b:08:0b:0e:
    0b:68:1e:4f:29:e6:0a:57:81:4c:73:a3:48:c5:3b:
    6b:93:e1:61:71:41:78:0e:08:59:a3:26:8b:88:09:
    ca:48:65:1a:5c:13:7b:a4:f2:54:c8:10:81:d2:12:
    78:b6:d3:9d:0c:ec:3a:d9:2c:f5:6f:3a:e9:25:8f:
    3d:43:81:d4:9e:67:73:96:8d:cc:d4:f2:fa:6a:ea:
    e1:c8:15:97:8d:2d:82:df:3d:e3:c9:7d:c1:9b:03:
    85:86:74:ee:3f:88:24:09:0d:93:7a:96:7a:31:3f:
    94:1b:45:9a:2a:64:4c:6e:b4:d9:cf:8d:82:7f:74:
    ff:e2:9a:45:98:4d:b8:2c:ac:91:f0:b6:ea:4b:75:
    6d
prime1:
    00:e7:a9:05:e4:1f:25:67:88:4b:06:63:26:b3:a1:
    7e:b8:e6:95:4d:4e:14:9f:e2:e6:75:14:b5:ec:57:
    c9:1a:89:36:43:63:11:87:79:34:f1:83:c3:06:50:
    f5:4c:92:65:49:f9:2b:aa:b6:70:f0:82:78:f9:31:
    f1:e2:f8:c9:57:6d:2d:e8:6b:58:59:af:bc:ad:c6:
    3c:cf:9d:ca:59:54:8b:be:18:2b:47:5e:30:00:d0:
    1d:34:40:86:23:da:98:b2:43:2d:0c:f4:ee:1b:3c:
    7e:18:99:1b:7d:2a:4f:99:72:b0:e5:49:d8:15:a6:
    8f:c1:04:ed:e3:d6:70:28:0b
prime2:
    00:d7:64:5b:89:a8:12:c9:86:14:86:43:4d:bc:e6:
    9d:da:e9:dd:20:44:c0:d7:56:49:3d:18:73:53:c0:
    1a:87:21:28:f3:06:e5:98:fa:64:87:69:e7:e2:19:
    6c:e3:e8:46:2f:fe:96:94:e0:9c:f9:46:7d:a4:4f:
    2b:c3:82:e3:2f:f5:70:65:e8:68:61:da:2e:48:0a:
    8c:3d:f0:03:c1:79:e2:2f:ba:7a:c2:19:67:94:cd:
    ed:cb:85:b5:07:11:70:17:42:84:13:65:f7:fe:60:
    6a:89:a3:a4:71:f8:f9:68:68:1f:3f:4e:83:85:de:
    8c:75:57:ac:e7:f1:c8:52:67
exponent1:
    00:96:23:1b:28:4f:6f:44:7c:36:73:7b:4b:17:dc:
    30:6e:d1:32:2e:19:ce:90:18:d3:d7:49:86:e6:17:
    b6:c4:35:ed:2f:1b:43:bf:13:34:d6:d9:d8:49:7d:
    aa:9c:e7:bc:31:87:05:5f:ec:41:a1:fe:4d:3c:e3:
    bb:aa:a8:26:85:3c:c3:26:00:7c:10:14:2f:2a:48:
    72:1c:f4:5c:b2:2c:73:2c:ce:29:2e:65:c2:a2:a4:
    3e:69:20:f0:4e:c8:5b:72:1c:cb:53:bc:61:9c:d1:
    45:bf:d7:6a:d3:61:da:98:ce:96:0a:e4:22:e1:55:
    43:91:8b:0a:4a:41:2e:0b:25
exponent2:
    52:a4:e5:22:8a:64:bb:02:41:39:ca:f5:36:f7:dd:
    b5:b3:69:ef:09:b2:5c:6d:75:28:86:0b:2a:25:59:
    88:63:c6:cc:88:e6:eb:ad:97:89:05:af:bd:67:38:
    0a:b2:82:cb:c3:89:8f:92:27:68:d6:0d:3b:50:4d:
    60:75:06:2a:ce:a7:d3:d2:3a:ca:e0:e6:45:2a:16:
    e9:65:00:6b:ea:12:49:71:e9:cc:33:e7:34:87:57:
    28:72:23:25:95:21:47:2b:74:75:e4:f8:24:98:66:
    08:6d:cb:99:17:88:ca:f0:b8:9c:97:c9:8b:41:fa:
    ee:c3:37:4a:bf:d0:b7:1d
coefficient:
    39:f0:4c:6f:86:02:36:e5:19:cb:af:ca:ef:92:64:
    66:0b:81:0d:42:db:94:13:0e:5d:e2:66:d8:8e:a3:
    f7:c8:7e:d1:d4:46:73:3f:1d:b9:bb:24:dc:a0:c0:
    6f:3c:8e:6f:b3:c3:bb:a8:1a:ee:6a:0d:a2:50:d3:
    64:b6:c3:44:39:08:13:f1:fa:fc:2c:5d:b3:f3:7d:
    3a:77:8e:a8:4a:6a:f2:19:4b:3f:b7:5e:c3:45:3e:
    d4:e7:6e:75:c4:44:cc:5c:5d:53:0e:ea:e2:a5:33:
    e4:1c:d2:7d:6a:12:8b:70:a4:f6:61:d3:15:45:62:
    7d:2c:92:63:40:55:45:1e
/**
 *  Custom Translation woocommerce and wordpress only on the Frontend !!!
 */

add_action('after_setup_theme', 'register_frontend_translation_filters');

function register_frontend_translation_filters() {
    if (!is_admin()) {
        add_filter('gettext', 'translate_reply');
        add_filter('ngettext', 'translate_reply');
    }
}

function translate_reply($translated) {
    $translated = str_ireplace('Enter your e-mail', 'Введите ваш email', $translated);
    $translated = str_ireplace('Просмотр корзины', 'товар в корзине', $translated);
    $translated = str_ireplace('Filters', 'поиск и фильтр товаров', $translated);
    $translated = str_ireplace('Show', 'показать', $translated);
    $translated = str_ireplace('Cancel', 'отмена', $translated);
    return $translated;
}



/**
 *  Custom Translation only on the Frontend (exclude checkout - issue)
 */

add_action('after_setup_theme', 'register_frontend_translation_filters');

function register_frontend_translation_filters() {
    if (!is_admin()) {
        add_filter('gettext', 'translate_reply');
        add_filter('ngettext', 'translate_reply');
    }
}

function translate_reply($translated) {
    // Exclude translations on the WooCommerce checkout page
    if (function_exists('is_checkout') && is_checkout()) {
        return $translated;
    }

    // Translate other strings
    $translated = str_ireplace('Enter your e-mail', 'Введите ваш email', $translated);
    $translated = str_ireplace('Просмотр корзины', 'товар в корзине', $translated);
    $translated = str_ireplace('Filters', 'фильтр товаров', $translated);
    $translated = str_ireplace('Show', 'показать', $translated);
    $translated = str_ireplace('Cancel', 'отмена', $translated);
    $translated = str_ireplace('Размещение заказа', 'Оформить заказ', $translated);
    
    return $translated;
}
x = findMax(1, 123, 500, 115, 44, 88);

function findMax() {
  let max = -Infinity;
  for (let i = 0; i < arguments.length; i++) {
    if (arguments[i] > max) {
      max = arguments[i];
    }
  }
  return max;
}
#include <stdio.h>

int main(void)
{
    int element[100];
    int number_element;
    
    
    printf("Input total number of elements required:\n");
    scanf("%d",&number_element);
    
    for(int i = 0; i < number_element; i++)
    {
       printf("Input element [%d]:\n",i); 
    }
    
    printf("\nBefore insertion:\n"); 
    
    for(int i = 0; i < number_element; i++)
    {
        scanf("%d",&element[i]);
        printf("Element [%d] is %d\n",i,element[i]); 
    }
    
    int new_value;
    int position;
    
    printf("\nInput a new value to insert:\n");
    scanf("%d",&new_value);
    printf("Input where to insert the value %d:\n",new_value);
    scanf("%d",&position);
    
    // Shift elements to make space for new value
    for(int i = number_element; i>position;i--)
    {
        element[i] = element[i-1];
    }
    
    // Insert new value at specified position
    element[position] = new_value;
    number_element ++;

    printf("After insertion:\n");

    for(int i = 0; i < number_element; i++)
    {
        scanf("%d",&element[i]);
        printf("Element [%d] is %d\n",i,element[i]);

        
    }
	return 0;
}
import i18n from "@/lang/index"

const tips = i18n.global.t('return') 
#include <stdio.h>

int main(void)
{
	int number;
	//uncomment to make it pass:
    printf("Input an odd number between 0 and 8: \n");
	scanf("%d", &number);
	switch (number)
	{
		case 1:
			{
				printf("User input ONE\n");
				break;
			}

		case 3:
			{
				printf("User input THREE\n");
				break;
			}

		case 5:
			{
				printf("User input FIVE\n");
				break;
			}

		case 7:
			{
				printf("User input SEVEN\n");
				break;
			}

		default:
			{
				printf("User input does not match ");
				printf("the requirements!\n\n");
				printf("Should be 1, 3, 5, or 7.\n");
				break;
			}
	}

	return 0;
}
internal final class TI_test23
{
    /// <summary>
    /// Class entry point. The system will call this method when a designated menu 
    /// is selected or when execution starts and this class is set as the startup class.
    /// </summary>
    /// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {
        // create Advanced rule
        Name name = "test2";
        DimensionRule   DimensionRule;
        DimensionHierarchyView  DimensionHierarchyView;
        // get account structure 'SHC'
        select DimensionHierarchyView
            where DimensionHierarchyView.Name == curExt()
            && DimensionHierarchyView.UserLanguageId == xUserInfo::find().language;
        // create Advanced rule
        //DimensionRuleStorage newRuleStorage = DimensionRuleStorage::construct(name, name, DimensionHierarchyView.RecId);
        //newRuleStorage.save();

        //ttsbegin;
        //DimensionRule.initValue();
        //DimensionRule.Name = "test1";
        //DimensionRule.Description = "test1";
        //DimensionRule.AccountStructure = curExt();
        //DimensionRule.insert();
        //ttscommit;
        //DimensionAttribute dimensionAttribute = DimensionAttribute::findByName('MainAccount');
        //Info(name);
        //Info(strFmt("%1", DimensionHierarchyView.RecId));

        //DimensionRuleCriteria   DimensionRuleCriteria;
        //DimensionRule = DimensionRule::findByName(name, DimensionHierarchyView.RecId, NoYes::Yes);
        //Info(strFmt("%1", DimensionRule.RecId));

        //DimensionRuleCriteria.initValue();
        //DimensionRuleCriteria.DimensionAttribute = dimensionAttribute.RecId;
        //DimensionRuleCriteria.DimensionRule = DimensionRule.RecId;
        //DimensionRuleCriteria.RangeFrom = name;
        //DimensionRuleCriteria.RangeTo = name;
        ////DimensionRuleCriteria.WildCardString = DimensionCriteriaOperators::WildcardSQL; // 
        //DimensionRuleCriteria.insert();

        // 3
        LedgerAdvancedRuleStructureEntity   en;
        en.AccountRuleStructureName = "test3";
        en.Description = "test3";
        en.SegmentName01 = "BudgetCode";
        en.insert();
        // 2
        //boolean hierarchyCreated = DimensionHierarchyConstraint::createHierarchy(
        //    DimensionHierarchyType::AccountRuleStructure,
        //                name,
        //               name);
        //if(hierarchyCreated) Info("done");
        DimensionHierarchyConstraint d; 
        DimensionHierarchyType hierarchyType = DimensionHierarchyType::AccountRuleStructure;
        DimensionHierarchy activeDimensionHierarchy = DimensionHierarchy::findByTypeAndName(
                    hierarchyType,
                    name,
                    false,
                    true);
        Info(strFmt("%1", activeDimensionHierarchy.RecId));
        //activeDimensionHierarchy.onmo
        DimensionHierarchyConstraint::activateDraftHierarchy(5637172105);
        //DimensionRuleAppliedHierarchy

        DimensionHierarchyConstraintCriteria c;

    }

}
/*
class MK_Test2
{
    DimensionHierarchy dimHierarchy;
    DimensionConstraintTree dimConstraintTree;
    int dimLevelNum;

/// <summary>
/// Class entry point. The system will call this method when a designated menu
/// is selected or when execution starts and this class is set as the startup class.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {
        MK_Test2 MK_Test2 = new MK_Test2();

        ttsBegin;

        MK_Test2.createHierarchy('MyHierarchy5', 'My hierarchy5');
        MK_Test2.addLevelToTree(5637145090, 'BudgetCode', 'BudgetCode', 1, '', ''); // BudgetCode
        //MK_Test2.addLevelToTree(5637145090, 'BudgetCode', 'BudgetCode', 1, '00500', '00700'); // BudgetCode

        ttsCommit;
    }

    //                          HierarchyName
    private void createHierarchy(HierarchyName _name, Description _description)
    {
        dimHierarchy.initValue();
        dimHierarchy.Description = _description;
        dimHierarchy.DraftDescription = dimHierarchy.Description ;
        dimHierarchy.Name = _name;
        dimHierarchy.IsDraft = true;
        dimHierarchy.DraftName = dimHierarchy.Name;
        dimHierarchy.StructureType = DimensionHierarchyType::AccountRuleStructure;
        dimHierarchy.insert();

        dimConstraintTree.DimensionHierarchy = dimHierarchy.RecId;
        dimConstraintTree.insert();
    }

    //
    private RefRecId addLevelToTree(DimensionAttributeRecId _attribute, Name _name, Description _description,
        DimensionOrdinal _ordinal, DimensionFromValue _from, DimensionToValue _to, boolean _additionalCriteria = false)
    {
        DimensionConstraintNodeCriteria dimConstraintNodeCriteria;
        DimensionConstraintNode dimConstraintNode;
        DimensionHierarchyLevel dimHierarchyLevel;

        if (! _additionalCriteria)
        {
            // Insert level in tree
            // ---------------------------------
            dimLevelNum++;
            dimHierarchyLevel.clear();
            dimHierarchyLevel.DimensionHierarchy = dimHierarchy.RecId;
            dimHierarchyLevel.Level = dimLevelNum;
            dimHierarchyLevel.DimensionAttribute = _attribute;
            dimHierarchyLevel.insert();
        }

        // Add range node to level
        // ------------------------
        dimConstraintNode.clear();
        dimConstraintNode.Description = _description;
        dimConstraintNode.DimensionConstraintTree = dimConstraintTree.RecId;
        dimConstraintNode.DimensionHierarchyLevel = dimHierarchyLevel.RecId;
        dimConstraintNode.IsOptional = false;
        dimConstraintNode.Name = _name;
        dimConstraintNode.Ordinal = _ordinal;
        //dimConstraintNode.ParentConstraintNode = _parentLevelId;
        dimConstraintNode.insert();

        // Add criteria to node
        dimConstraintNodeCriteria.clear();
        dimConstraintNodeCriteria.Ordinal = 1;
        dimConstraintNodeCriteria.DimensionConstraintNode = dimConstraintNode.RecId;

        if (_from || _to)
        {
            dimConstraintNodeCriteria.IsFromOpen = false;
            dimConstraintNodeCriteria.IsToOpen = false;
            dimConstraintNodeCriteria.RangeFrom = _from;
            dimConstraintNodeCriteria.RangeTo = _to;
        }
        else
        {
            dimConstraintNodeCriteria.WildCardString = '%';
            dimConstraintNodeCriteria.IsFromOpen = true;
            dimConstraintNodeCriteria.IsToOpen = true;
        }

        dimConstraintNodeCriteria.insert();
        return dimConstraintNode.RecId;
    }

}
*/
import { useEffect, useState } from "react";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { HeadingLink, MinimalPage, PageHeading, Spinner } from "ui";
import type { Database } from "../../../types";
import dayjs from "dayjs";

const ShiftTable = () => {
  const [usersOnShift, setUsersOnShift] = useState<
    Array<{
      user: string;
      shift_start: string | undefined;
      image: string | undefined;
      fullName: string;
    }>
  >([]);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState("");
  const supabaseClient = useSupabaseClient<Database>();

  useEffect(() => {
    const fetchUsersOnShift = async () => {
      setLoading(true);
      try {
        const { data: usersData, error: usersError } = await supabaseClient
          .from("UserLastWorkedOn")
          .select("shift_start, user, users_view (email, raw_user_meta_data)")
          .not("shift_start", "is", null);

        if (usersError) {
          setError(usersError.message ?? "Failed to fetch user shift data");
          console.error(usersError);
        }

        const mappedUsers = usersData?.map((user) => {
          const userMetaData = Array.isArray(user.users_view)
            ? user.users_view[0].raw_user_meta_data
            : user.users_view?.raw_user_meta_data;
          const fullName = userMetaData
            ? userMetaData["full_name"] ?? "No Name Provided"
            : "No Name Provided";
          const image = userMetaData ? userMetaData["avatar_url"] : undefined;

          return {
            shift_start: user.shift_start
              ? dayjs(user.shift_start).format("DD-MM-YYYY | HH:mm")
              : undefined,
            user: fullName,
            image: image,
            fullName: fullName,
          };
        });

        setUsersOnShift(mappedUsers ?? []);
      } catch (err) {
        setError("Failed to fetch user shift data");
        console.error(err);
      } finally {
        setLoading(false);
      }
    };

    fetchUsersOnShift();
  }, [supabaseClient]);

  const defaultAvatar = "/path_to_default_avatar.jpg"; // Replace with actual path to your default avatar image

  return (
    <MinimalPage
      pageTitle="Shift Table | Email Interface"
      pageDescription="Spot Ship Email Interface | Shift Table"
      commandPrompt
    >
      <div className="w-full">
        <HeadingLink icon="back" text="Home" href="/secure/home" />
      </div>
      <PageHeading text="Spot Ship Shift Table" />
      <div className="flex w-full flex-col">
        {loading ? (
          <Spinner />
        ) : error ? (
          <p className="text-red-500">Error: {error}</p>
        ) : usersOnShift.length ? (
          <table className="mt-4 min-w-full">
            <thead>
              <tr>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  User Name
                </th>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  Shift Started
                </th>
              </tr>
            </thead>
            <tbody className="divide-white-200 divide-x ">
              {usersOnShift.map((user, index) => (
                <tr key={index}>
                  <td className="text-white-500 flex items-center px-6 py-4 text-sm">
                    <img
                      src={user.image || defaultAvatar}
                      onError={(e) => (e.currentTarget.src = defaultAvatar)}
                      alt={user.fullName}
                      style={{
                        height: 30,
                        width: 30,
                        borderRadius: "50%",
                        marginRight: "0.5rem",
                      }}
                    />
                    {user.user}
                  </td>
                  <td className="text-white-500 px-6 py-4 text-sm">
                    {user.shift_start ?? "No Data"}
                  </td>
                </tr>
              ))}
            </tbody>
          </table>
        ) : (
          <p>No users are currently on shift</p>
        )}
      </div>
    </MinimalPage>
  );
};

export default ShiftTable;
# /system.yaml

repo: 'https://pkg-repo.blendos.co/'

impl: 'https://github.com/blend-os/tracks/raw/main'

track: 'plasma'

packages:
    - 'micro' # the best text editor out there ;)
    - 'firefox'
    - 'caddy'

services:
    - 'caddy'

package-repos:
    - name: 'chaotic-aur'
      repo-url: 'https://cdn-mirror.chaotic.cx/$repo/$arch'
(?ms)<classAccesses>.*?<apexClass>CEC_ServiceAppointmentSharingQueueable</apexClass>.*?</classAccesses>
import { useEffect, useState } from "react";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { HeadingLink, MinimalPage, PageHeading, Spinner } from "ui";
import type { Database } from "../../../types";
import dayjs from "dayjs";

const ShiftTable = () => {
  const [usersOnShift, setUsersOnShift] = useState<
    Array<{ user: string; shift_start: string | null }>
  >([]);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState("");
  const supabaseClient = useSupabaseClient<Database>();

  useEffect(() => {
    const fetchUsersOnShift = async () => {
      setLoading(true);
      try {
        const { data: usersData, error: usersError } = await supabaseClient
          .from("UserLastWorkedOn")
          .select("shift_start, user, users_view (email, raw_user_meta_data)")
          .not("shift_start", "is", null);

        if (usersError) {
          setError(usersError.message ?? "Failed to fetch user shift data");
          console.error(usersError);
        }

        const mappedUsers = usersData?.map((user) => {
          const userMetaData = Array.isArray(user.users_view)
            ? user.users_view[0].raw_user_meta_data
            : user.users_view?.raw_user_meta_data;
          const mappedUser: {
            user: string;
            shift_start: string | null;
            image: string | null;
          } = {
            shift_start: user.shift_start,
            user: Array.isArray(user.users_view)
              ? user.users_view[0].email
              : user.users_view?.email ?? user.user,
            image: userMetaData ? userMetaData["avatar_url"] ?? null : null,
          };
          return mappedUser;
        });

        setUsersOnShift(mappedUsers ?? []);
      } catch (err) {
        setError("Failed to fetch user shift data");
        console.error(err);
      } finally {
        setLoading(false);
      }
    };

    fetchUsersOnShift();
  }, [supabaseClient]);

  return (
    <MinimalPage
      pageTitle="Shift Table | Email Interface"
      pageDescription="Spot Ship Email Interface | Shift Table"
      commandPrompt
    >
      <div className="w-full">
        <HeadingLink icon="back" text="Home" href="/secure/home" />
      </div>
      <PageHeading text="Spot Ship Shift Table" />
      <div className="flex w-full flex-col">
        {loading ? (
          <Spinner />
        ) : error ? (
          <p className="text-red-500">Error: {error}</p>
        ) : usersOnShift.length ? (
          <table className="mt-4 min-w-full">
            <thead>
              <tr>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  User Email
                </th>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  Shift Started
                </th>
              </tr>
            </thead>
            <tbody className="divide-white-200 divide-x ">
              {usersOnShift.map((user, index) => (
                <tr key={index}>
                  <td className=" text-white-500 px-6 py-4 text-sm">
                    {user.user}
                  </td>
                  <td className=" text-white-500 px-6 py-4 text-sm">
                    {dayjs(user.shift_start).format("DD-MM-YYYY | HH:mm")}
                  </td>
                </tr>
              ))}
            </tbody>
          </table>
        ) : (
          <p>No users are currently on shift</p>
        )}
      </div>
    </MinimalPage>
  );
};

export default ShiftTable;
#include<stdio.h>

#include<stdlib.h>

int main()

{

 int r[100],i,n,Tst=0,initial,count=0;

printf("Enter the number of Requests\n");

scanf("%d",&n);

printf("Enter the Requests sequence\n");

 for(i=0;i<n;i++)

scanf("%d",&r[i]);
  printf("Enter initial head position\n");

scanf("%d",&initial);

 // logic for sstf disk scheduling

 /* loop will execute until all process is completed*/

 while(count!=n)

 {

 int min=1000,d,index;

 for(i=0;i<n;i++)

 {

 d=abs(r[i]-initial);

 if(min>d)

 {

 min=d;

 index=i;

 }

 }

Tst=Tst+min;

 initial=r[index];

 // 1000 is for max

 // you can use any number

 r[index]=1000;

 count++;

 }

printf("Total head movement is %d",Tst);

 return 0;
  }
#include<stdio.h>
#include<stdlib.h>
int main()
{
 int r[100],i,n,Tst=0,initial;
printf("Enter the number of Requests\n");
scanf("%d",&n);
printf("Enter the Requests sequence\n");
 for(i=0;i<n;i++)
scanf("%d",&r[i]);
printf("Enter initial head position\n");
scanf("%d",&initial);
 // logic for FCFS disk scheduling
 for(i=0;i<n;i++)
 {
Tst=Tst+abs(r[i]-initial);
 initial=r[i];
 }
printf("Total head moment / Total Seek time is %d",Tst);
 return 0;
  }
#include<stdio.h>

int main()

{

int i,j,n,a[50],frame[10],no,k,avail,count=0;

 printf("Enter the no of pages: ");

 scanf("%d",&n);

 printf("Enter the page no: ");

 for(i=1;i<=n;i++)

 scanf("%d",&a[i]);

 printf("Enter the no of page frames: ");

 scanf("%d",&no);

 for(i=0;i<no;i++)

 frame[i]= -1;

 j=0;

 printf("\tPAGE NO\t PAGE FRAMES\n");

 for(i=1;i<=n;i++)

 {

 printf("%d\t\t",a[i]);

 avail=0;

for(k=0;k<no;k++)

 if(frame[k]==a[i])

 avail=1;

 if (avail==0)

 {
   frame[j]=a[i];

 j=(j+1)%no;

 count++;

 for(k=0;k<no;k++)

 printf("%d\t",frame[k]);

 }

 printf("\n");

}

 printf("Page Fault Is %d",count);

 return 0;

}
#include<stdio.h>

#include<unistd.h>

#include<sys/types.h>

#include<sys/wait.h>

#include<stdlib.h>

int main()

{

 int pid;

pid=fork();

 if(pid<0)

 {

printf("\nfork failed\n");

 exit(-1);

 }

 else if(pid==0)

 {

printf("welcome to parent");

execlp("/bin/ls","ls","-1",NULL);

 }

 else

 {

 wait(NULL);

printf("\nchild complete\n");

 exit(0);
   }}
import java.util.*;

class Abhi  implements Comparator<Employee>{
 public int compare(Employee a, Employee b)
    {
 
        return a.fName.compareTo(b.fName);
    }


}
public class Main  {
   
    public static void main(String[] args)
    {
        Scanner sc=new Scanner(System.in);
        LinkedList<Employee> l=new LinkedList<>();
        System.out.println("Enter The Number of Employees");
        int n=sc.nextInt();
        sc.nextLine();
        for(int i=1;i<=n;i++)
        {
            System.out.println("Enter The "+i+" Employee Details:");
            System.out.println("Enter the Firstname");
            String s1=sc.nextLine();
            System.out.println("Enter theLastname");
            String s2=sc.nextLine();
            System.out.println("Enter the Mobile");
            String s3=sc.nextLine();
            System.out.println("Enter the Email");
            String s4=sc.nextLine();
            System.out.println("Enter the Address");
            String s5=sc.nextLine();
            Employee e=new Employee(s1,s2,s3,s4,s5);
            l.add(e);
            
        }
       Collections.sort(l,new Abhi()) ;
        System.out.println("Employee List:");
        System.out.format("%-15s %-15s %-15s %-30s %-15s\n","Firstname","Lastname","Mobile","Email","Address");
        for(Employee e: l)
        {
          
            e.display();
        }
    }
    
}
public class Employee{
    public String fName;
    private String lName;
    private String mNum;
    private String eMail;
    private String address;

    public Employee(String fName,String lName,String mNum,String eMail,String address)
    {
        this.fName=fName;
        this.lName=lName;
        this.mNum=mNum;
        this.eMail=eMail;
        this.address=address;
    }
    public String getfName(){
        return fName;
    }
    public void display()
    {
        
        System.out.format("%-15s %-15s %-15s %-30s %-15s\n",fName,lName,mNum,eMail,address);
    }
}




/**
     * //this was loosely adapted from a reddit post that I basically just used their general idea of
     * //1. Find the direction from evil avatar to avatar
     * //2. Convert this direction into a unit vector
     * //3. Move the avatar
     * Source: https://www.reddit.com/r/libgdx/comments/pm6545/how_to_make_an_enemy_follow_the_player/
     * //I also added some random movements from the evil avatar so that they don't
     * end up chasing the avatar too hard so that the user immediately loses and they rage quit :(
     */
//


    public void moveEvilAvatarTowardsPlayer() {
        int newX = evilX + Integer.compare(avatarX - evilX, 0);
        int newY = evilY + Integer.compare(avatarY - evilY, 0);

        if (newX == lastEvilX && newY == lastEvilY) {
            moveRandomly(); //make sure that it will just randomly move if they choose to stay in the same position
        } else if (canMoveTo(newX, newY)) {
            moveEvilAvatar(newX, newY);
        } else {
            moveRandomly();  //when in doubt just let this thing move randomly
        }
        lastEvilX = evilX;
        lastEvilY = evilY;
    }

    private void moveRandomly() {
        List<Point> possibleMoves = new ArrayList<>();
        for (int dx = -1; dx <= 1; dx++) {
            for (int dy = -1; dy <= 1; dy++) {
                if (dx == 0 && dy == 0) continue;
                int canx = evilX + dx;
                int cany = evilY + dy;
                if (canMoveTo(canx, cany)) {
                    possibleMoves.add(new Point(canx, cany));
                }
            }
        }

        if (!possibleMoves.isEmpty()) {
            Point randomMove = possibleMoves.get(random.nextInt(possibleMoves.size()));
            moveEvilAvatar(randomMove.x, randomMove.y);
        }
    }

    private boolean canMoveTo(int x, int y) {
        return x >= 0 && x < width && y >= 0 && y < height && tiles[x][y] == Tileset.FLOOR;
    }

    private void moveEvilAvatar(int newX, int newY) {
        tiles[evilX][evilY] = Tileset.FLOOR;
        evilX = newX;
        evilY = newY;
        tiles[evilX][evilY] = Tileset.EVIL;
    }

//in main 
//sets menu and HUD
                if (currentState == GameState.MENU) {
                    handleMenuChoice(currentKey);
                    needsRender = true;
                } else if (currentState == GameState.GAME_RUNNING) {
                    gameWorld.moveAvatar(currentKey);
                    gameWorld.moveEvilAvatarTowardsPlayer();
                    needsRender = true;
                }
            }
/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #4285F4;
}
.container{
  width: 450px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.container h2{
  font-weight: 600;
  font-size: 1.31rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid #d4dbe5;
}
.wrapper{
  margin: 1.25rem 1.75rem;
}
.wrapper .input-box{
  position: relative;
}
.input-box input{
  width: 100%;
  height: 53px;
  color: #000;
  background: none;
  font-size: 1.06rem;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 1.4px;
  border: 1px solid #aaa;
  padding: 0 2.85rem 0 1rem;
}
.input-box span{
  position: absolute;
  right: 13px;
  cursor: pointer;
  line-height: 53px;
  color: #707070;
}
.input-box span:hover{
  color: #4285F4!important;
}
.wrapper .pass-indicator{
  width: 100%;
  height: 4px;
  position: relative;
  background: #dfdfdf;
  margin-top: 0.75rem;
  border-radius: 25px;
}
.pass-indicator::before{
  position: absolute;
  content: "";
  height: 100%;
  width: 50%;
  border-radius: inherit;
  transition: width 0.3s ease;
}
.pass-indicator#weak::before{
  width: 20%;
  background: #E64A4A;
}
.pass-indicator#medium::before{
  width: 50%;
  background: #f1c80b;
}
.pass-indicator#strong::before{
  width: 100%;
  background: #4285F4;
}
.wrapper .pass-length{
  margin: 1.56rem 0 1.25rem;
}
.pass-length .details{
  display: flex;
  justify-content: space-between;
}
.pass-length input{
  width: 100%;
  height: 5px;
}
.pass-settings .options{
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.pass-settings .options .option{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  width: calc(100% / 2);
}
.options .option:first-child{
  pointer-events: none;
}
.options .option:first-child input{
  opacity: 0.7;
}
.options .option input{
  height: 16px;
  width: 16px;
  cursor: pointer;
}
.options .option label{
  cursor: pointer;
  color: #4f4f4f;
  padding-left: 0.63rem;
}
.wrapper .generate-btn{
  width: 100%;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  background: #4285F4;
  font-size: 1.06rem;
  padding: 0.94rem 0;
  border-radius: 5px;
  text-transform: uppercase;
  margin: 0.94rem 0 1.3rem;
}
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Password Generator JavaScript |</title>
    <link rel="stylesheet" href="style.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Google Icon Link for Icons -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200">
    <script src="script.js" defer></script>
  </head>
  <body>
    <div class="container">
      <h2>Password Generator</h2>
      <div class="wrapper">
        <div class="input-box">
          <inputtype="text" disabled>
          <span class="material-symbols-rounded">copy_all</span>
        </div>
        <div class="pass-indicator"></div>
        <div class="pass-length">
          <div class="details">
            <label class="title">Password Length</label>
            <span></span>
          </div>
          <input type="range" min="1" max="30" value="15" step="1">
        </div>
        <div class="pass-settings">
          <label class="title">Password Settings</label>
          <ul class="options">
            <li class="option">
              <input type="checkbox" id="lowercase" checked>
              <label for="lowercase">Lowercase (a-z)</label>
            </li>
            <li class="option">
              <input type="checkbox" id="uppercase">
              <label for="uppercase">Uppercase (A-Z)</label>
            </li>
            <li class="option">
              <input type="checkbox" id="numbers">
              <label for="numbers">Numbers (0-9)</label>
            </li>
            <li class="option">
              <input type="checkbox" id="symbols">
              <label for="symbols">Symbols (!-$^+)</label>
            </li>
            <li class="option">
              <input type="checkbox" id="exc-duplicate">
              <label for="exc-duplicate">Exclude Duplicate</label>
            </li>
            <li class="option">
              <input type="checkbox" id="spaces">
              <label for="spaces">Include Spaces</label>
            </li>
          </ul>
        </div>
        <button class="generate-btn" id="generate-btn">Generate Password</button>
      </div>
    </div>
    
    <script>
      document.getElementById("generate-btn").addEventListener("click", function() {
        window.location.href = "loginpage.html"; // Redirect to loginpage.html
      });
    </script>
  </body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-height: 100vh;
  background: #1BB295;
}

form {
  padding: 25px;
  background: #fff;
  max-width: 500px;
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

form h2 {
  font-size: 27px;
  text-align: center;
  margin: 0px 0 30px;
}

form .form-group {
  margin-bottom: 15px;
  position: relative;
}

form label {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
}

form input,
form select {
  height: 45px;
  padding: 10px;
  width: 100%;
  font-size: 15px;
  outline: none;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #bfbfbf;
}

form input:focus,
form select:focus {
  border-color: #9a9a9a;
}

form input.error,
form select.error {
  border-color: #f91919;
  background: #f9f0f1;
}

form small {
  font-size: 14px;
  margin-top: 5px;
  display: block;
  color: #f91919;
}

form .password i {
  position: absolute;
  right: 0px;
  height: 45px;
  top: 28px;
  font-size: 13px;
  line-height: 45px;
  width: 45px;
  cursor: pointer;
  color: #939393;
  text-align: center;
}

.submit-btn {
  margin-top: 30px;
}

.submit-btn input {
  color: white;
  border: none;
  height: auto;
  font-size: 16px;
  padding: 13px 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  background: #000000;
  transition: 0.2s ease;
}

.submit-btn input:hover {
  background: #179b81;
}
// Selecting form and input elements
const form = document.querySelector("form");
const passwordInput = document.getElementById("password");
const passToggleBtn = document.getElementById("pass-toggle-btn");

// Function to display error messages
const showError = (field, errorText) => {
    field.classList.add("error");
    const errorElement = document.createElement("small");
    errorElement.classList.add("error-text");
    errorElement.innerText = errorText;
    field.closest(".form-group").appendChild(errorElement);
}

// Function to handle form submission
const handleFormData = (e) => {
    e.preventDefault();

    // Retrieving input elements
    const fullnameInput = document.getElementById("fullname");
    const emailInput = document.getElementById("email");
    const dateInput = document.getElementById("date");
    const genderInput = document.getElementById("gender");

    // Getting trimmed values from input fields
    const fullname = fullnameInput.value.trim();
    const email = emailInput.value.trim();
    const password = passwordInput.value.trim();
    const date = dateInput.value;
    const gender = genderInput.value;

    // Regular expression pattern for email validation
    const emailPattern = /^[^ ]+@[^ ]+\.[a-z]{2,3}$/;

    // Clearing previous error messages
    document.querySelectorAll(".form-group .error").forEach(field => field.classList.remove("error"));
    document.querySelectorAll(".error-text").forEach(errorText => errorText.remove());

    // Performing validation checks
    if (fullname === "") {
        showError(fullnameInput, "Enter your full name");
    }
    if (!emailPattern.test(email)) {
        showError(emailInput, "Enter a valid email address");
    }
    if (password === "") {
        showError(passwordInput, "Enter your password");
    }
    if (date === "") {
        showError(dateInput, "Select your date of birth");
    }
    if (gender === "") {
        showError(genderInput, "Select your gender");
    }

    // Checking for any remaining errors before form submission
    const errorInputs = document.querySelectorAll(".form-group .error");
    if (errorInputs.length > 0) return;

    // Submitting the form
    form.submit();
}

// Toggling password visibility
passToggleBtn.addEventListener('click', () => {
    passToggleBtn.className = passwordInput.type === "password" ? "fa-solid fa-eye-slash" : "fa-solid fa-eye";
    passwordInput.type = passwordInput.type === "password" ? "text" : "password";
});

// Handling form submission event
form.addEventListener("submit", handleFormData);
<!DOCTYPE html>
<!-- Website - www.codingnepalweb.com -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <style>
        /* Styles for body to match the login page background color */
        body {
            background-color: #f5f5f5; /* Match the background color of the login page */
        }

        /* Your CSS styles here */
        /* Styles for modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(183, 46, 46, 0.5);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px;
            text-align: center;
            border-radius: 10px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Button styles */
        .btn {
            background-color: #4CAF50; /* Green */
            border: none;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            transition-duration: 0.4s;
            cursor: pointer;
            border-radius: 8px;
        }

        .btn:hover {
            background-color: #45a049; /* Darker Green */
        }

        /* Form styles */
        #myForm {
            margin: 0 auto;
            padding: 20px;
            max-width: 400px;
            text-align: center;
            background-color: #fff; /* Background color for the form */
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
    </style>
    <!-- Fontawesome CDN Link For Icons -->
    <link rel="stylesheet" href="loginpage.css" />
</head>
<body>
<form id="myForm" action="drop.html" onsubmit="return validateForm()">
    <h2>Login</h2>
    <div class="form-group username">
        <label for="username">Username</label>
        <input type="text" id="username" placeholder="Enter your username" required>
    </div>
    <div class="form-group password">
        <label for="password">Password</label>
        <input type="password" id="password" placeholder="Enter your password" required>
        <i id="pass-toggle-btn" class="fa-solid fa-eye"></i>
    </div>
    <div class="form-group submit-btn">
        <input type="submit" value="Login" class="styled-btn">
    </div>
    <div class="form-group">
        <button onclick="redirectToLoginPage()" class="btn">Sign up</button>
    </div>
</form>

<!-- Popup window for random password -->
<div id="myModal" class="modal">
  <div class="modal-content">
    <span class="close">&times;</span>
    <p>Suggested Password:</p>
    <p id="randomPassword"></p>
    <button id="useRandomPassword" class="btn">Use This Password</button>
    <button id="createOwnPassword" class="btn">Create Own Password</button>
    <button id="cancelPassword" class="btn">Cancel</button>
  </div>
</div>

<script>
    // JavaScript code for generating a suggested password
    function generateSuggestedPassword() {
        var length = 10; // Change the length of the suggested password as needed
        var charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+<>?"; // Define the character set for the suggested password
        var password = "";
        for (var i = 0; i < length; i++) {
            password += charset.charAt(Math.floor(Math.random() * charset.length));
        }
        return password;
    }

    // JavaScript code to display suggested password in popup window
    document.getElementById('password').addEventListener('click', function() {
        var suggestedPassword = generateSuggestedPassword();
        document.getElementById('randomPassword').textContent = suggestedPassword;
        document.getElementById('myModal').style.display = "block";
    });

    // Close the modal when the close button is clicked
    document.getElementsByClassName('close')[0].addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Close the modal when clicked outside of the modal content
    window.onclick = function(event) {
        var modal = document.getElementById('myModal');
        if (event.target == modal) {
            modal.style.display = "none";
        }
    };

    // Use the random password when the "Use This Password" button is clicked
    document.getElementById('useRandomPassword').addEventListener('click', function() {
        var suggestedPassword = document.getElementById('randomPassword').textContent;
        document.getElementById('password').value = suggestedPassword;
        document.getElementById('myModal').style.display = "none";
    });

    // Redirect to index.html when the "Create Own Password" button is clicked
    document.getElementById('createOwnPassword').addEventListener('click', function() {
        window.location.href = "index.html";
    });

    // Cancel and close the modal when the "Cancel" button is clicked
    document.getElementById('cancelPassword').addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Redirect to loginpage.html when the "Login" button is clicked
    function redirectToLoginPage() {
        window.location.href = "signup.html";
    }

    // Form validation function
    function validateForm() {
        var form = document.getElementById('myForm');
        if (!form.checkValidity()) {
            // If form is invalid, prevent form submission
            event.preventDefault();
            event.stopPropagation();
        }
        form.classList.add('was-validated');
        return form.checkValidity();
    }
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Form Validation in HTML | </title>
    <style>
        /* Your CSS styles here */
        /* Styles for modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(183, 46, 46, 0.5);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px;
            text-align: center;
            border-radius: 10px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Button styles */
        .btn {
            background-color: #4CAF50; /* Green */
            border: none;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            transition-duration: 0.4s;
            cursor: pointer;
            border-radius: 8px;
        }

        .btn:hover {
            background-color: #45a049; /* Darker Green */
        }
    </style>
    <!-- Fontawesome CDN Link For Icons -->
    <link rel="stylesheet" href="loginpage.css" />
</head>
<body>
<form id="myForm" action="drop.html" onsubmit="return validateForm()">
    <h2>Form Validation</h2>
    <div class="form-group fullname">
        <label for="fullname">Full Name</label>
        <input type="text" id="fullname" placeholder="Enter your full name" required>
    </div>
    <div class="form-group email">
        <label for="email">Email Address</label>
        <input type="email" id="email" placeholder="Enter your email address" required>
    </div>
    <div class="form-group password">
        <label for="password">Password</label>
        <input type="password" id="password" placeholder="Click here to generate a password" required>
        <i id="pass-toggle-btn" class="fa-solid fa-eye"></i>
    </div>
    <div class="form-group date">
        <label for="date">Birth Date</label>
        <input type="date" id="date" placeholder="Select your date" required>
    </div>
    <div class="form-group gender">
        <label for="gender">Gender</label>
        <select id="gender" required>
            <option value="" selected disabled>Select your gender</option>
            <option value="Male">Male</option>
            <option value="Female">Female</option>
            <option value="Other">Other</option>
        </select>
    </div>
    <div class="form-group submit-btn">
        <input type="submit" value="Submit" class="styled-btn">
    </div>
    <div class="form-group">
        <button onclick="redirectToSignup()" class="btn">Login</button>
    </div>
</form>

<!-- Popup window for random password -->
<div id="myModal" class="modal">
  <div class="modal-content">
    <span class="close">&times;</span>
    <p>Suggested Password:</p>
    <p id="randomPassword"></p>
    <button id="useRandomPassword" class="btn">Use This Password</button>
    <a href="index.html" class="btn" id="createOwnPassword">Create Own Password</a>
    
    <button id="cancelPassword" class="btn">Cancel</button>
  </div>
</div>

<script>
    // JavaScript code for generating a suggested password
    function generateSuggestedPassword() {
        var length = 10; // Change the length of the suggested password as needed
        var charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+<>?"; // Define the character set for the suggested password
        var password = "";
        for (var i = 0; i < length; i++) {
            password += charset.charAt(Math.floor(Math.random() * charset.length));
        }
        return password;
    }

    // JavaScript code to display suggested password in popup window
    document.getElementById('password').addEventListener('click', function() {
        var suggestedPassword = generateSuggestedPassword();
        document.getElementById('randomPassword').textContent = suggestedPassword;
        document.getElementById('myModal').style.display = "block";
    });

    // Close the modal when the close button is clicked
    document.getElementsByClassName('close')[0].addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Close the modal when clicked outside of the modal content
    window.onclick = function(event) {
        var modal = document.getElementById('myModal');
        if (event.target == modal) {
            modal.style.display = "none";
        }
    };

    // Use the random password when the "Use This Password" button is clicked
    document.getElementById('useRandomPassword').addEventListener('click', function() {
        var suggestedPassword = document.getElementById('randomPassword').textContent;
        document.getElementById('password').value = suggestedPassword;
        document.getElementById('myModal').style.display = "none";
    });

    // Redirect to signup.html when the "Login" button is clicked
    function redirectToSignup() {
        window.location.href = "loginpage.html";
    }

    // Cancel and close the modal when the "Cancel" button is clicked
    document.getElementById('cancelPassword').addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Form validation function
    function validateForm() {
        var form = document.getElementById('myForm');
        if (!form.checkValidity()) {
            // If form is invalid, prevent form submission
            event.preventDefault();
            event.stopPropagation();
        }
        form.classList.add('was-validated');
        return form.checkValidity();
    }
</script>
</body>
</html>
List<PermissionSetAssignment> psAssignmentsToRemove = [SELECT Id 
                                                       FROM PermissionSetAssignment 
                                                       WHERE PermissionSetGroup.DeveloperName = 'CEC_JTAC_Engineer'
                                                       AND Assignee.IsActive = FALSE];
System.debug('Permission Set Assignment #: ' + psAssignmentsToRemove.size()); // Confirm # of users it will be removed from
Integer errorCounter = 0;
Database.DeleteResult[] deletedPSAssignments = Database.delete(psAssignmentsToRemove, false);
for (Database.DeleteResult result : deletedPSAssignments) {
    if (!result.isSuccess()) {
        errorCounter++;
    }
}
System.debug('Assignments not deleted: ' + errorCounter);
%%[
var @link_CatExpert, @link_CatExpert_MX, @link_CatExpert_GB
set @link_Language = AttributeValue(Language__c)
set @link_CatExpert_MX = "https://www.cat.com/en_US/by-industry/electric-power/electric-power-industries/energy-as-a-service/contact-your-dealer.html"
set @link_CatExpert_ROW = "https://www.cat.com/en_US/by-industry/electric-power/electric-power-industries/energy-as-a-service/contact-your-dealer.html"
set @link_CatExpert = Iif(@link_Language == "_MX", @link_CatExpert_MX, @link_CatExpert_ROW)
]%%
 public static void main(String[] args) {
        System.out.println("Try programiz.pro");
      int[] arr = {1,2,3,4,5};
      
      int indexToRemove = 2;
      
      int[] newArray = new int[arr.length-1];
      
      System.arraycopy(arr,0, newArray, 0,indexToRemove );
        System.arraycopy(arr,indexToRemove+1, newArray,indexToRemove,  arr.length - indexToRemove -1);
        
         System.out.println(Arrays.toString(newArray));
    }
---------------
    ArrayList<Integer> arr = new ArrayList<Integer>();
     arr.add(1);
      arr.add(2);
       arr.add(3);
        arr.add(4);
         arr.add(5);
         
         int indexToRemove = 3;
         
          arr.remove(elementToRemove);
          
          for(int num : arr){
              System.out.println(" "+ num);
          }
<!DOCTYPE html>
<html lang="ja">
 <head>
    <script async src="https://xxxxx/liquidekyc.js"></script>
    <title>申込フォーム</title>
  </head>
  <body>
    <h1>新規申込</h1>
    <form id="applicant-form">
      <div>
        <label for="last_name">姓</label>
        <input type="text" id="last_name" name="last_name" />
      </div>
      <div>
        <label for="first_name">名</label>
        <input type="text" id="first_name" name="first_name" />
      </div>
      ・・・
    </form>
    <script>
     ・・・
      function handleSubmit(e) {
       ・・・
        const data = new FormData(applicantForm);
        const params = JSON.stringify(Object.fromEntries(data));
        LIQUIDEKYC.startKYC(params)
       ・・・
      }
    </script>
  </body>
</html>
name: Qodana
on:
  workflow_dispatch:
  pull_request:
  push:
    branches: # Specify your branches here
      - main # The 'main' branch
      - 'releases/*' # The release branches

jobs:
  qodana:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
      checks: write
    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{ github.event.pull_request.head.sha }}  # to check out the actual pull request commit, not the merge commit
          fetch-depth: 0  # a full history is required for pull request analysis
      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2023.3
        env:
          QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
image: atlassian/default-image:4

pipelines:
  branches:
    main:
      - step:
          name: Qodana
          caches:
            - qodana
          image: jetbrains/qodana-<linter> # Specify a Qodana linter here. For example, jetbrains/qodana-jvm:latest
          script:
            - export QODANA_TOKEN=$QODANA_TOKEN  # Export the environment variable
            - qodana --results-dir=$BITBUCKET_CLONE_DIR/.qodana --report-dir=$BITBUCKET_CLONE_DIR/.qodana/report --cache-dir=$BITBUCKET_CLONE_DIR/.qodana/cache
          artifacts:
            - .qodana/report

definitions:
  caches:
    qodana: .qodana/cache
- task: QodanaScan@2023
  env:
    QODANA_TOKEN: $(QODANA_TOKEN)
$
docker run \
   -v $(pwd):/data/project/ \
   -e QODANA_TOKEN="<qodana-cloud-token>" \
   -e QODANA_REMOTE_URL="<project-remote-url>" \
   -e QODANA_BRANCH="<project-branch-name>" \
   -e QODANA_REVISION="<commit-hash>" \
   -e QODANA_JOB_URL="<job-url>" \
   jetbrains/qodana-<linter>
			CODE:400
			MESSAGE:Unable to create extras param, because of: 
Currency SOS not allowed for using as store currency. Use one of: DZD,ARS,AUD,BDT,BOB,BRL,GBP,CAD,CLP,CNY,COP,CRC,CZK,DKK,EGP,EUR,GTQ,HNL,HKD,HUF,ISK,INR,IDR,ILS,JPY,KES,KRW,MOP,MYR,MXN,NZD,NIO,NGN,NOK,PKR,PYG,PEN,PHP,PLN,QAR,RON,RUB,SAR,SGD,ZAR,SEK,CHF,TWD,THB,TRY,AED,UAH,USD,UYU,VEF,VND 
arr.splice(start[, deleteCount, elem1, ..., elemN])
	 

	    <html>

	        <head>

	            <meta charset="utf-8">

	            <link rel="stylesheet" href="css/style.css">

	            <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">

	            <title>slide image tutorial</title>

	        </head>

	        <body>

	        <h1>Auto - Image Slider HTML and CSS</h1>

	        <div class="slider-frame">

	            <div class="slide-images">

	                    <div class="img-container">

	                        <img src="image/image 1.jpg">

	                    </div>

	                    <div class="img-container">

	                        <img src="image/image 2.jpg">

	                    </div>

	                    <div class="img-container">

	                        <img src="image/image 3.jpg">

	                    </div>

	            </div>

	        </div>

	        </body>

	    </html>
Looking to break into the world of cryptocurrency exchange platforms? Addus Technologies has the perfect solution for you with our Binance clone script. Our script is the key to unlocking your own exchange platform that is secure, customizable, and user-friendly. With features that rival the industry leader, Binance, you can launch your own exchange and start trading digital assets in no time. Take the leap into the exciting world of cryptocurrency trading - bookmark this page now and begin your journey towards financial success!

Get Free Demo: https://www.addustechnologies.com/binance-clone-script
column_name <- "my_col"
value <- 0
dplyr::mutate(df, !!rlang::sym(column_name) := value)
sudo dpkg --configure -a
apt purge libreoffice-base libreoffice-core

dpkg -l "libreoffice" | grep "^ii"

sudo dpkg --configure -a

sudo apt-get install -f
$UpperCase=@('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z')
$LowerCase=@('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z')
$Numbers=@('1','2','3','4','5','6','7','8','9','0')
$Symbols=@('!','@','$','?','<','>','*','&')
label {
      font-family: $Josef;
      font-size: 1.5rem;
      line-height: 5.2rem;
      position: absolute;
      left: 22px;
      color: $black;
      z-index: 1;
      transition: transform .15s ease-out, font-size .15s ease-out;
    }

    &.focused {
      label {
        top: 0px;
        transform: translateY(5%);
        line-height: 1.5rem;
        font-size: 1.2rem;
        color: $black;
      }
    }
@"C:\temp4\database\01_plano_execucao_GFF-261.sql";
In case anyone else has a similar issue, I got the same error message when using a personal Microsoft account, just like OP.

So, if you are using a personal account in a registered Azure Active Directory(AAD) app, that type isn't Personal Microsoft accounts only or Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g., Skype, Xbox) you will get this error. Also, you need to use the correct endpoint to avoid errors.

The main problem is our account type. As a personal account, there are some restrictions to access one drive files. These restrictions are:

You can only use Oauth2 Code Flow or Oauth2 Token Flow. Both are interactive approaches. [1][2]
Your application registered in AAD needs to be Personal Microsoft accounts only or Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox) and each one have a different endpoint to acquire the access token (That you can see clicking on endpoint button, near the delete app button in app page). [3]
Enable these delegated permissions to your application registered in AAD: Files.Read, Files.Read.All, Files.ReadWrite, and Files.ReadWrite.All.
With these restrictions in mind, you can set up a workflow in Postman following these two steps(I'm using endpoints of Personal Microsoft accounts only app type and using Oauth2 Code Flow):

Important note: To use code flow, you need to enable Access tokens in Implicit grant and hybrid flows on Authentication ADD app sidebar menu.

Aquire access token:
https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id=YOUR_CLIENT_ID&response_type=token&redirect_uri=ONE_OF_REGISTERED_REDIRECT_URI&scope=Files.Read Files.Read.All Files.ReadWrite Files.ReadWrite.All
 Save
After you fill in your information on Postman's request, I recommend using a browser and network inspection to log in with a Microsoft account and permit the app. You are getting the access token via network inspection.

List one drive root files:
https://graph.microsoft.com/v1.0/me/drive/root/children
Add a new header:
Authorization
With value:
Bearer ACCESS_TOKE_OF_STEP_1
 Save
In my angular application, due to this interactive way restriction to access one drive files, I changed my authentication method to use Microsoft Authentication Library(MSAL) to avoid every time that need to send an API request open a popup window to authenticate a valid Microsoft account.

import numpy as np
import pandas as pd
import statsmodels.api as sm
from statsmodels.formula.api import ols

A=[10,12,13,11,10,14,15,13]
B=[9,11,10,12,13]
C=[11,12,15,14,12,13]
All_scores=A+B+C
print(All_scores)

company_name=(['A']*len(A)+['B']*len(B)+['C']*len(C))
print(company_name)

df=pd.DataFrame({'company':company_name, 'output':All_scores})
print(df)

model=ols('output~company',data=df).fit()
anova_table1=sm.stats.anova_lm(model,typ=1)
print(anova_table1)

p_val= 0.212944

if p_val>0.05:
    print('Accept H0')
else:
    print('Reject H0')
import numpy as np
import pandas as pd
import statsmodels.api as sm
from statsmodels.formula.api import ols

y=(18,15,15,17,17,16,14,14,13,16,15,14)
print(y)

v=('A','A','A','A','B','B','B','B','C','C','C','C')
print(v)

c=('I','II','III','IV','I','II','III','IV','I','II','III','IV')
print(c)

dict = {'Yield':y,'Variety':v,'Chemist':c}
print(dict)

twd = pd.DataFrame(dict)
print(twd)

model=ols('Yield~Variety+Chemist',data=twd).fit()
anova_two_able=sm.stats.anova_lm(model,typ=2)
anova_two_able
import numpy as np
import pandas as pd
from scipy import stats

df=pd.read_excel("C:/Users/vishw/OneDrive/Desktop/Book.xlsx")
df

f,p = stats.f_oneway(df['A'],df['B'],df['C'])
f,p

if p>0.05:
    print('Accept H0')
else:
    print('Reject H0')
star

Thu Apr 18 2024 18:54:27 GMT+0000 (Coordinated Universal Time) https://darkwebmarketbuyer.com/product/mr-mushies-mushroom-bars/

@darkwebmarket

star

Thu Apr 18 2024 16:16:43 GMT+0000 (Coordinated Universal Time) http://primitekgroup.com:2082/cpsess4894933346/frontend/jupiter/ssl/genkey.html

@mainul

star

Thu Apr 18 2024 15:17:47 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Thu Apr 18 2024 12:26:33 GMT+0000 (Coordinated Universal Time)

@gitjck #javascript

star

Thu Apr 18 2024 11:44:01 GMT+0000 (Coordinated Universal Time) https://artprojectgroup.es/tienes-infectada-tu-base-de-datos

@edujca

star

Thu Apr 18 2024 11:05:58 GMT+0000 (Coordinated Universal Time) https://codevalidator.aut.ac.nz/autmoodle1/mod/quiz/attempt.php?attempt

@meanaspotato #c

star

Thu Apr 18 2024 09:32:51 GMT+0000 (Coordinated Universal Time) https://www.jianshu.com/p/fffe291d7d3e

@adoin

star

Thu Apr 18 2024 09:15:20 GMT+0000 (Coordinated Universal Time) https://codevalidator.aut.ac.nz/autmoodle1/mod/quiz/attempt.php?attempt

@meanaspotato #c

star

Thu Apr 18 2024 09:12:19 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Thu Apr 18 2024 09:10:45 GMT+0000 (Coordinated Universal Time)

@rafal_rydz

star

Thu Apr 18 2024 09:06:53 GMT+0000 (Coordinated Universal Time) https://blog.blendos.co/blendos-v4-alpha

@j3d1n00b

star

Thu Apr 18 2024 08:19:28 GMT+0000 (Coordinated Universal Time)

@kchan

star

Thu Apr 18 2024 08:08:00 GMT+0000 (Coordinated Universal Time)

@rafal_rydz

star

Thu Apr 18 2024 07:29:38 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:28:25 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:27:28 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:25:59 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:01:31 GMT+0000 (Coordinated Universal Time)

@signup

star

Thu Apr 18 2024 05:18:32 GMT+0000 (Coordinated Universal Time)

@pineapple

star

Thu Apr 18 2024 03:56:40 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:56:10 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:55:34 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:55:04 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:54:41 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:53:09 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Wed Apr 17 2024 22:48:43 GMT+0000 (Coordinated Universal Time) https://remagineai.com/

@remagineai #aicontentwriting #seo #blogging #copywriting #ai content creation

star

Wed Apr 17 2024 22:08:46 GMT+0000 (Coordinated Universal Time) https://editor.p5js.org/alkhasawneh/sketches/prtzYQ93-

@najeebemad #javascript

star

Wed Apr 17 2024 17:56:14 GMT+0000 (Coordinated Universal Time)

@kchan

star

Wed Apr 17 2024 16:39:20 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Apr 17 2024 16:02:06 GMT+0000 (Coordinated Universal Time)

@Divya ##array

star

Wed Apr 17 2024 14:17:41 GMT+0000 (Coordinated Universal Time) https://liquidinc.asia/liquid-ekyc/

@isopet #javascript

star

Wed Apr 17 2024 14:12:25 GMT+0000 (Coordinated Universal Time) https://www.jetbrains.com/help/qodana/cloud-forward-reports.html?_gl

@dw #yaml

star

Wed Apr 17 2024 14:12:14 GMT+0000 (Coordinated Universal Time) https://www.jetbrains.com/help/qodana/cloud-forward-reports.html?_gl

@dw #yaml

star

Wed Apr 17 2024 14:12:03 GMT+0000 (Coordinated Universal Time) https://www.jetbrains.com/help/qodana/cloud-forward-reports.html?_gl

@dw #yaml

star

Wed Apr 17 2024 14:11:56 GMT+0000 (Coordinated Universal Time) https://www.jetbrains.com/help/qodana/cloud-forward-reports.html?_gl

@dw #bash

star

Wed Apr 17 2024 13:42:55 GMT+0000 (Coordinated Universal Time) https://github.com/s-h-3-l-l/katoolin3

@j3d1n00b

star

Wed Apr 17 2024 13:20:50 GMT+0000 (Coordinated Universal Time) https://www.blockchainappfactory.com/zk-rollups-development

@zarazyana #zkrollup #zkrollupsdevelopment #zk #zkrollups #zeroknowledgerollups

star

Wed Apr 17 2024 11:40:35 GMT+0000 (Coordinated Universal Time) https://fbshops.ecwid.com/oauth/return?verification_token

@ahmed52

star

Wed Apr 17 2024 11:13:20 GMT+0000 (Coordinated Universal Time) https://javascript.info/array-methods#searching-in-array

@gitjck #javascript

star

Wed Apr 17 2024 10:41:22 GMT+0000 (Coordinated Universal Time) https://tutorials-warehouse.blogspot.com/2023/01/blog-post.html?m

@_prathamgupta_

star

Tue Apr 16 2024 16:13:11 GMT+0000 (Coordinated Universal Time)

@vs #r

star

Tue Apr 16 2024 14:35:30 GMT+0000 (Coordinated Universal Time) https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1

@j3d1n00b

star

Tue Apr 16 2024 13:39:35 GMT+0000 (Coordinated Universal Time)

@ITProToday

star

Tue Apr 16 2024 12:14:06 GMT+0000 (Coordinated Universal Time)

@divyasoni23 #css

star

Tue Apr 16 2024 11:03:47 GMT+0000 (Coordinated Universal Time)

@hallancma #apex #oracleapex #plsql #javascript

star

Tue Apr 16 2024 10:52:55 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/46802055/tenant-does-not-have-a-spo-license

@fearless

star

Tue Apr 16 2024 10:26:29 GMT+0000 (Coordinated Universal Time)

@mrv

star

Tue Apr 16 2024 10:24:43 GMT+0000 (Coordinated Universal Time)

@mrv

star

Tue Apr 16 2024 10:21:49 GMT+0000 (Coordinated Universal Time)

@mrv

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension