text
stringlengths
184
4.48M
--- description: "Bagaimana Menyiapkan Soto ayam + tulang, Sempurna" title: "Bagaimana Menyiapkan Soto ayam + tulang, Sempurna" slug: 1355-bagaimana-menyiapkan-soto-ayam-tulang-sempurna date: 2020-09-11T10:40:43.323Z image: https://img-global.cpcdn.com/recipes/3da694ec3e2537e2/751x532cq70/soto-ayam-tulang-foto-resep-ut...
package com.nikpanfilov.superfit.main.data.storage import android.content.Context import android.content.SharedPreferences import androidx.security.crypto.EncryptedSharedPreferences import androidx.security.crypto.MasterKeys import com.nikpanfilov.network.token.data.storage.SharedPrefsDataStorage class SignOutDataSto...
# 2597. The Number of Beautiful Subsets 🟡 You are given an array `nums` of positive integers and a positive integer `k`. A subset of `nums` is beautiful if it does not contain two integers with an absolute difference equal to `k`. Return the number of non-empty beautiful subsets of the array `nums`. A subset of `n...
<template> <nav class=""> <div class="row gx-0"> <div class="col-md-6"> <h1 :key="index" v-for="(name, index) in customTestName[0]" class="test-name" > {{ name }} </h1> </div> <div class="col-md-6 text-center"> <div class="q...
import styled, { css } from "styled-components"; interface DesktopProps { $dropdown: boolean; } export const StyledNavDesktop = styled.nav<DesktopProps>` ${({ theme, $dropdown }) => css` padding: 1.6rem 2.4rem; display: flex; justify-content: space-between; align-items: center; .navbar-d...
import type { CartEndpoint } from '.' import type { RawVariantSpec } from '../../../types/product' import { formatCart } from '../../utils/cart' import { serialize } from 'cookie' const addItem: CartEndpoint['handlers']['addItem'] = async ({ req, body: { cartId, item }, config: { restBuyerFetch, cartCookie, tok...
/* * Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
// // GeneralInputPage.swift // Tourify // // Created by 顾悦平 on 11/7/23. // import Foundation import UIKit class GeneralInputPage: UIViewController,UITextFieldDelegate{ let currentDate = Date() @IBOutlet weak var startDate: UIDatePicker! @IBOutlet weak var endDate: UIDatePicker! @IBOutlet weak var de...
import React from 'react'; import { Button, ButtonProps } from '@chakra-ui/react'; import useAnimatedRouter from '@/components/useAnimatedRouter'; interface AnimatedButtonProps extends Omit<ButtonProps, 'onClick'> { destination: string; } // Use React.forwardRef to forward refs to the underlying Button component co...
import React, { useContext } from "react"; // import components import House from "../components/House"; // import contex import { HouseContext } from "../components/HouseContext"; // import links import { Link } from "react-router-dom"; // import icons import { ImSpinner2 } from "react-icons/im"; const HouseList = ...
# Setting Up Ansible for Linux via WSL 2 on Ubuntu ********************************************************* ********************************************************* ********************************************************* # Step 1: Update and Install Dependencies Update package information: Run **sudo apt updat...
classdef IntegratorSE < DynamicalSystem % Integrator system on SE(n), n = 2 or 3. % % x: [n + n^2, 1] vector. % u: [3, 1] vector if n == 2 or [6, 1] vector if n == 3. % \dot{x} = u \in T_x SE(n). properties (Access = private) dim end methods function obj = IntegratorSE...
<?php namespace Sabre\VObject; /** * UUID Utility. * * This class has static methods to generate and validate UUID's. * UUIDs are used a decent amount within various *DAV standards, so it made * sense to include it. * * @copyright Copyright (C) fruux GmbH (https://fruux.com/) * @author Evert Pot (http://evert...
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * Shattered Pixel Dungeon * Copyright (C) 2014-2016 Evan Debenham * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either ver...
import { atom, atomFamily } from 'recoil' import { ProposalDraft } from '@dao-dao/types' import { ProposalCreatedCardProps } from '@dao-dao/types/proposal' import { localStorageEffectJSON } from '../effects' // Store proposal ID list endings for proposal pagination for the given // coreAddress. Map list index to its...
import Foundation import SwiftUI import UIDelight import DesignSystem import CoreLocalization public struct PinCodeView: View { let length: Int let attempt: Int @Binding var errorMessage: String let cancelAction: () -> Void @Binding var pinCode: String { didSet { if pinC...
List<List<Integer>> lists = new ArrayList<>(); public List<List<Integer>> combinationSum(int[] candidates, int target) { if (candidates == null || candidates.length == 0 || target < 0) { return lists; } List<Integer> list = new ArrayList<>(); process(0, candidates, targ...
import React from 'react' import { useLoaderData, Form, redirect, useActionData, useNavigation, NavLink, useSearchParams } from 'react-router-dom'; import { styled } from 'styled-components' import { useNavigate } from 'react-router-dom' import { useDispatch, useSelector } from 'react-redux'; import { logIn } from '../...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Configuration; using System.Diagnostics; using System.Globalization; using Microsoft.VisualB...
import React, { Component } from 'react'; import { Layout } from 'antd'; import styles from './index.less'; import BaseLayout from '@/components/BaseLayout'; import BaseMenu from '@/components/BaseMenu'; import ProfileSettingPage from './profile'; import router from 'umi/router'; import _ from 'lodash'; const { Sider,...
export default class Airport { constructor(name, code) { this.name = name; this.code = code; } get name() { // eslint-disable-next-line return this._name; } set name(value) { // eslint-disable-next-line if (typeof value !== 'string') { throw new TypeError('Name must be a string...
import { observer } from "mobx-react-lite"; import { ChangeEventHandler, useCallback, useState } from "react"; import { ToDo, toDoStore } from "./store/global-store"; import { Button, TextField, Toolbar, Typography, Switch } from "@mui/material"; import { ListOfTodos } from "./components/list-of-todos/list-of-todos";...
import { all, call, takeLatest, put } from "typed-redux-saga/macro"; import { USER_ACTIONS_TYPE } from "./user.types"; import { AdditionalInfo, createAuthUserWithEmailAndPassword, createUserDocumentFromAuth, getCurrentUser, signInAuthUserWithEmailAndPassword, signInWithGooglePopup, signOutUser, } from ".....
#include <CL/sycl.hpp> #include <iomanip> #include <vector> #include "dpc_common.hpp" #include "Complex.hpp" using namespace sycl; using namespace std; // Number of complex numbers passing to the DPC++ code static const int num_elements = 10000; // in_vect1 and in_vect2 are the vectors with num_elements complex nube...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>AngularAsm</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <!-- icon --> <link rel="stylesheet" href="https://use.fontawesome.com/rel...
import React from 'react' import { Line} from 'react-chartjs-2' import data from '../Beras/data.json' import { Table } from 'react-bootstrap' function InflasiJogja(){ const styles={marginLeft:"20%"} return( <div id="features"> <div className='container'> <div className='col-md-10 col-md...
<?php /** * @file * Functions to support theming in the university_theme theme. */ use Drupal\block\Entity\Block; use Drupal\Component\Utility\Html; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Link; use Drupal\Core\Render\Markup; use Drupal\Core\Template\Attribu...
--- title: How to Reset your Oppo A59 5G Lock Screen Password date: 2024-05-19T14:17:28.865Z updated: 2024-05-20T14:17:28.865Z tags: - unlock - remove screen lock categories: - android description: This article describes How to Reset your Oppo A59 5G Lock Screen Password excerpt: This article describes How to Re...
@extends('layout.master') @section('content') <form action="{{ route('kategorigallery.update', $kategorigallery->id) }}" method="POST" enctype="multipart/form-data"> @csrf @method('PUT') @if ($errors->any()) <div class="alert alert-danger"> <strong>Whoops!</strong> There we...
// 获取链接和模态框元素 const openLoginModalLink = document.getElementById('openLoginModalLink'); const loginModal = document.getElementById('loginModal'); const closeLoginModalButton = document.getElementById('closeLoginModalButton'); // 打开登录模态框 openLoginModalLink.addEventListener('click', (e) => { e.preventDefault(); // 阻...
package com.wimoor.admin.controller; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.nio.charset.Charset; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.Base64; import java.util.Calendar; import java.util.Date; import java.util.Has...
import styles from './ResultsTable.module.css'; const formatter = new Intl.NumberFormat('ko-KR', { style: 'currency', currency: 'KRW', minimumFractionDigits: 2, maximumFractionDigits: 2, }); export default function ResultsTable({ data, initialInvestment }) { return ( <table className={styles.result}> ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>blogDetail</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link ...
import abc import functools import psycopg2 from psycopg2 import OperationalError from psycopg2.extras import DictCursor from psycopg2.extensions import parse_dsn from loguru import logger from product_inventory.config.envs import DB_URI from product_inventory.exceptions import ErrorDetails from product_inventory.ex...
<?php namespace App\Http\Resources; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class RoomResource extends JsonResource { /** * Transform the resource into an array. * * @return array<string, mixed> */ public function toArray(Request $request): array ...
## Introduction >[!definition] >A language $A$ is **decidable**, or equivalently **recursive** if there exists a halting Turing machine $M$ such that $L(M)=A$. That is, there is a TM $M$ that given an input $w$, if $w$ is in $A$ halts in the accepting state and otherwise halts in the rejecting state. Decidable proble...
import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap/dist/js/bootstrap.bundle'; import './App.css'; import LoadingBar from 'react-top-loading-bar' import React, { Component } from 'react' import Navbar from './Components/Navbar'; import News from './Components/News'; import { BrowserRouter as Router, Rou...
import React, { useState } from 'react'; import { snake2NameCase } from '../../utils/common'; const Table = ({ data, id = true, headers = [], headerNames = [], actions = [], className }) => { if (!data || !data.length) { return <h3>Nothing to show</h3>; } const [filteredData, setFilteredData] = use...
# Karma Core Karma Core is a React Provider Component that is intended to provide each micro-frontend application its core functionality such Context, Session Management, GraphQL Connection, and Responsive Layouts. To do so, the application is wrapped in a [Provider Component](https://reactjs.org/docs/context.html#con...
// RecipeDetailsRouter.swift import UIKit import SafariServices enum RecipeDetailsDestination { case recipeWebPage(_ url: URL) case shareRecipe(_ url: URL) } final class RecipeDetailsRouter: BaseRouter, RecipeDetailsRouterProtocol { static func createModule(recipe: RecipeModel) -> UIViewController ...
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Material App', home: Screen(), ); } } class Screen extends StatefulWidget { const Screen({super.key}); ...
import express, { Express, NextFunction, Request, Response } from "express"; import bodyParser from "body-parser"; import cors from "cors"; import helmet from "helmet"; import serverless from "serverless-http"; import rateLimit from "express-rate-limit"; import morgan from "morgan"; import requestIp from "request-ip"; ...
import requests from bs4 import BeautifulSoup from fake_useragent import UserAgent import json import re import os import pandas as pd def get_content(url): user_agent = UserAgent().random.strip() headers = {'User-Agent': user_agent} response = requests.get(url, headers=headers) if response.status_code...
import BaseCommand from "@structures/BaseCommand"; import BaseClient from "@structures/BaseClient"; import { SlashCommandBuilder, EmbedBuilder } from "discord.js"; export default class UnmuteCommand extends BaseCommand { public constructor(client: BaseClient) { super(client, { name: "unmute", description: "En...
package com.koleff.stockserver.stocks.utils.jsonUtil.base; import com.google.gson.Gson; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.springframewo...
import { Fragment, useState } from 'react'; import { SubmitHandler, useForm } from 'react-hook-form'; import { NavLink, useSearchParams } from 'react-router-dom'; import classNames from 'classnames/bind'; import { useForgotPasswordMutation } from '../../../app/api'; import {ReactComponent as IconArrowLeft} from '../.....
package com.saeyan.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import util.DBManager; import com.saeyan.dto.BoardVO; public class BoardDAO { private BoardDA...
package tech.ada.pagamento.controller; import org.springframework.http.HttpStatusCode; import org.springframework.http.ProblemDetail; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdvice; import tech.ada.pagamento.exception.GetMoneyExcepti...
import { useContext, useEffect, useState } from 'react'; import { Collapse, IconButton, TableCell, TableRow, Tooltip, } from '@mui/material'; import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import { Link, useLoca...
package redis import ( "context" "github.com/26huitailang/yogo/framework/provider/config" "github.com/26huitailang/yogo/framework/provider/log" tests "github.com/26huitailang/yogo/test" . "github.com/smartystreets/goconvey/convey" "testing" "time" ) func TestYogoService_Load(t *testing.T) { container := tests...
<?php include_once('../db.php'); $data = [ ['state' => 'Punjab', 'city' => 'Bathinda'], ['state' => 'Punjab', 'city' => 'Jaito'], ['state' => 'Hariyana', 'city' => 'Gurgaon'], ['state' => 'Hariyana', 'city' => 'Ambala'], ['state' => 'Rajasthan', 'city' => 'Jaipur'], ]; // Create a states table $qu...
<div class="main" #main> <div class="container"> <div class="pt-5 pb-3"> <div class="d-flex justify-content-end"> <form #search="ngForm" (ngSubmit)="searchHandler(search)" class="d-flex justify-content-end"> <input class="form-control me-2" type="search" name=...
import 'package:equeuebiz/constants/appcolor.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:equeuebiz/enum/company_enum.dart'; import 'package:equeuebiz/enum/user_type.dart'; import 'package:equeuebiz/providers/auth_prov.dart'; import 'package:equeuebiz/screens/transaction.dart'; impo...
<!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>HomePage </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"> </head> <body> <div th:insert="Blocks/heade...
import os import re import importlib.util from pathlib import Path import shutil from arcgis.gis import GIS, Group from arcgis.env import active_gis from dotenv import find_dotenv, load_dotenv # see if arcpy available to accommodate non-windows environments if importlib.util.find_spec('arcpy') is not None: import...
<template> <div class="side-drawer-container" :class="{ 'side-drawer-container-closed': closed, 'side-drawer-container-open': !closed }" > <div class="side-drawer" :class="{'side-drawer-closed': closed}" @touchstart="touchStart" @touchmove="touchMove" > <div class="side-drawer-he...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Student Scheduling Page</title> <link rel="stylesheet" href="../css/globals.css"/> <link rel="stylesheet" href="../css/styleguide.css"/> <link rel="stylesheet" href="../css/style.css"/> <!-- JQuery Import--> <script cl...
'''Importação para poder limpar a tela''' import os restaurantes = [{'nome': 'Praça', 'categoria': 'Japonesa', 'ativo': False}, {'nome': 'Pizza Suprema', 'categoria': 'Pizza', 'ativo': True}, {'nome': 'Cantina', 'categoria': 'Italizano', 'ativo': False}] def exibir_nome_do_programa(): ...
import Doctor from "../models/Doctor.js"; import Patient from "../models/Patient.js" import { createError } from "../utils/error.js"; import bcrypt from "bcryptjs" import jwt from "jsonwebtoken"; export const patientRegister = async (req, res, next) => { try { console.log("1"); const salt = bcrypt....
// ignore_for_file: use_build_context_synchronously import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:room_rental/blocs/cubits/user_data/user_data_cubit.dart'; import 'package:room_rental/service/storage/storage_service.dart'; import 'package:room_rental/utils/con...
import { useEffect, useState } from "react"; import { useLocation, useParams } from "react-router-dom"; import { getStationDetails } from "../services/station-service.tsx"; interface DetailStation { id: number; station_name: string; station_address: string; journeys_started: number; journeys_ended: number; ...
import { useState } from "react"; import { useNavigate } from "react-router-dom"; import { useSelector, useDispatch } from "react-redux"; import { clearAllSeats } from "../../store/order"; import List from "../../models/List"; import TrainDesc from "./TrainDesc" import SeatType from "./SeatType"; import VagonOverview f...
const propertyRouter = require("express").Router(); const Property = require("../models/property"); const User = require("../models/user"); const jwt = require("jsonwebtoken"); const multer = require("multer"); const storage = multer.diskStorage({ destination: (req, file, cb) => { cb(null, "./attachments"); },...
package myapi.a02systemdemo; public class SystemDemo1 { public static void main(String[] args) { /* public static void exit(int status) 终止当前运行的 Java 虚拟机 public static long currentTimeMillis() 返回当前系统的时间毫秒值形式 public static void arraycopy(数据源数组,起始索引,目的地数组,起始索引,拷贝个数) 数组拷贝 ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strmapi.c :+: :+: :+: ...
package services import ( "encoding/json" "fmt" "net/http" "strconv" "strings" "time" "github.com/louislaugier/twitter-id-username/internal/scraper" ) func getFollowers(s *scraper.Scraper, userID string, cursor string) ([]string, string, error) { url := fmt.Sprintf("https://api.twitter.com/1.1/followers/ids....
package com.highwayac.com.domain; import jakarta.validation.constraints.*; import java.io.Serializable; import org.springframework.data.annotation.Id; import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Table; /** * A Novel. */ @Table("novel") @Sup...
import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:meals_app/features/filters/widgets/filters_check_item.dart'; import 'package:meals_app/features/tab_bar/widgets/main_drawer.dart'; import 'package:meals_app/providers/filter_provider.dart'; class FiltersScr...
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="shortcut icon" href="../src/images/icon.ico" type="image/x-icon" /> <title>Mesto Russia</title> </head> <body> <div class="...
<!-- File: index.html Author: Nathan Hunter Date: April 23, 2022 Purpose: Creates a 3D animated scene using the Three.js library Consists of at least 6 different shapes, minimum resolution 640x480, multiple lighting effects, and controls to alter/toggle variosu components ...
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, } from '@/components/ui/Dialog'; import { useState } from 'react'; import { Button } from '../../components/ui/Button'; import { useMutation } from '@tanstack/react-query'; import useAxiosPrivate from '@/hooks/useAxiosPrivate'...
{% extends "base.html" %} {% block content %} <h1>Регистрация</h1> <form action="" method="post" enctype="multipart/form-data" class="login_form"> {{ form.hidden_tag() }} <div class="form-group"> <label for="picture">Аватарка</label> <input type="file" class="form-control-file" id="picture" nam...
import { Text, TouchableOpacity } from "react-native"; import { FontAwesomeIcon } from "@fortawesome/react-native-fontawesome"; import { faSquare, faSquareCheck } from "@fortawesome/free-regular-svg-icons"; type CheckProps = { label: string; checked: boolean | false; onToggle: () => void; style?: {}; }; expor...
import 'dart:io'; import 'package:firebase_crashlytics/firebase_crashlytics.dart'; import 'package:flutter/material.dart'; import 'package:haelo_flutter/constants.dart'; import 'package:haelo_flutter/core/utils/functions.dart'; import 'package:haelo_flutter/core/utils/ui_helper.dart'; import 'package:haelo_flutter/fea...
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'; import { Box, SxProps, Typography } from '@mui/material'; import debounce from 'lodash.debounce'; import IconButton from '../IconButton/IconButton'; import { ArrowLeftIcon, ArrowRightIcon } from '../icons'; impo...
import { Controller, Get, Post, Put, Delete, Param, Body, NotFoundException, UseGuards, Request } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { CarsService } from './cars.service'; import { Car } from './car.entity'; import { CarDto } from './dto/car.dto'; @Controller('cars') export cla...
import React, { useState, useEffect } from 'react'; import { useHistory, useParams } from 'react-router-dom'; import TripPlanService from '../../services/trip-plan.service'; import DestinationService from '../../services/destination.service'; const AddTrip = () => { const history = useHistory(); const { id } =...
package structure.linkedlist; import common.ListNode; /** * 92. 反转链表 II * * @author Real * @since 2023/4/5 20:43 */ public class ReverseLinkedListScope { public static void main(String[] args) { ReverseLinkedListScope test = new ReverseLinkedListScope(); int[] array = {1, 2, 3, 4, 5}; ...
import React from 'react'; import Question from './Question'; import QuestionCount from './QuestionCount'; import AnswerOption from './AnswerOption'; import './Quiz.css' import PropTypes from 'prop-types'; const Quiz = (props) => { function renderAnswerOptions(key) { return ( <p> <AnswerOption ...
#Boa:Frame:PlotFrame import wx import sys import os sys.path.append(os.getenv("PAPARAZZI_HOME") + "/sw/lib/python") from settings_tool import IvySettingsInterface def create(parent, ac_ids): return SettingsFrame(parent, ac_ids) SLIDER_ID_OFFSET = 250000 BUTTON_ID_OFFSET = 2 * 250000 SLIDER_FACTOR = 100 # Wrap...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pokemon Cards</title> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/al...
<?php namespace App\Http\Controllers\Student; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class StudentLoginController extends Controller { /* |---------------...
;; (define (for-each proc items) ;; (define (for-iter i item) ;; (if (null? item) ;; true ;; (for-iter (proc (car item)) (cdr item)))) ;; (for-iter '() items)) (define (for-each proc items) (if (not (null? items)) (proc (car items))) (if (null? items) true (for-each proc (cdr items)...
# _api_parser.py # Internal parsing function for the Scrutiny server API messages # # - License : MIT - See LICENSE file. # - Project : Scrutiny Debugger (github.com/scrutinydebugger/scrutiny-python) # # Copyright (c) 2021-2023 Scrutiny Debugger import scrutiny.sdk import scrutiny.sdk.datalogging sdk ...
#pragma once #include <cstring> #include <iostream> #include <fstream> #include <cassert> #include "Gb_types.h" #define CARTRIDGE_MAX_SIZE 1024 * 1024 * 2 #define SIMPLE_BANKING_MODE 0x0 #define RAM_BANKING_MODE 0x1 class Gb_cartridge{ public: // offsets in the cartridge header. enum header{ HARDWARE_TYPE = 0...
package com.github.stanislavbukaevsky.patientrecordsystem.serialization.impl; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.stanislavbukaevsky.patientrecordsystem.dto.FindByCardsResponseDto; import com.github.stanislavbukaevsky.patientrecordsystem.dto.FindByDoctorsAndCardsResponseDto; import co...
import 'package:flutter/material.dart'; import 'package:flutter_pokedex/constants/constant.dart'; import 'package:flutter_pokedex/model/pokemon_model.dart'; import 'package:flutter_pokedex/widgets/pokemon_img_and_ball.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class PokemonListItem extends Sta...
#ifndef GUN_MANAGER_MODULE_H #define GUN_MANAGER_MODULE_H #include <DebugUtil.h> #include <vuVec3.h> class IFiringMode; /// /// @class GunManager /// /// @brief /// class GunManager { public: enum FireType { UNSET, SINGLE_SHOT, BURST, AUTO, UNDEFINED }; static inline void Initialize(void) { ...
import { Component, OnInit, Input, Inject, Output, EventEmitter } from '@angular/core'; import { ActivatedRoute, Params } from '@angular/router'; import { TaskService, TaskItem, ImportanceList, StatusList } from '../service/task.service'; import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';...
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger"; import { Type } from "class-transformer"; import { IsArray, IsDefined, IsEthereumAddress, IsInt, IsOptional, IsString } from "class-validator"; export namespace GetTransactionListDTO { export type Transaction = { hash: string; inco...
import { useEffect, useState } from "react"; import { useDispatch } from "react-redux"; import { Link, useNavigate } from "react-router-dom"; import { login } from "./store/Slices/authSlice"; const Login = () => { const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); const d...
import { useState } from "react"; import Button, { BUTTON_TYPE_CLASSES } from "../button/button.component"; import FormInput from "../form-input/form-input.component"; import { signInAuthUserWithEmailAndPassword, signInWithGooglePopup, // createUserDocumentFromAuth, } from "../../utils/firebase/firebase.utils"; i...
import React from 'react'; import AppBar from '@mui/material/AppBar'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import Button from '@mui/material/Button'; import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; import AccountCircleIcon ...
import getConfig from "next/config"; const { publicRuntimeConfig } = getConfig(); import { useState, useMemo, useEffect } from "react"; import { STD_COLS, STD_FILTERS, ALT_COLS, ALT_FILTERS, MINT_PASS_COLS, GROUP_COLORS, } from "components/constants"; import { PageLayout, PageTitle, CustomTable, ...
| Задание 44 | | --- | | В ячейке ниже представлен код генерирующий DataFrame, которая состоит всего из 1 столбца. Ваша задача перевести его в one hot вид. Сможете ли вы это сделать без get_dummies? import random lst = ['robot'] * 10 lst += ['human'] * 10 random.shuffle(lst) data = pd.DataFrame({'whoAmI'lst}) data.hea...
#include "ds/str.h" #include <stdio.h> #include <string.h> #include "utils/mem.h" double str_charp_hash(const char *str) { double hash = 5381; int c = 0; // store the current char int count = 0; for (c = *str; (count < MAX_STR_LEN) && (*str != 0); str++, count++) { hash = ((hash * 32) + has...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:med_sal/controller/profile/profile_controller.dart'; import 'package:med_sal/core/constant/app_colors.dart'; import 'package:med_sal/core/constant/app_images.dart'; import 'package:med_sal/view/widgets/profile/custom_text.dart'; cla...
package com.dongkuksystems.dbox.services.dept; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import org.apache.commons.lang.StringUtils; import org.springframework.cache.annotation.Cacheable; import org.springframework....
/* * Copyright (C) 2023 Inria * * Inria: Institut National de Recherche en Informatique et en Automatique * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * A copy of the license is provided in the file "LICENSE" distributed ...
import { ComputedRef } from 'vue'; import { balancerSubgraphService } from '@/services/balancer/subgraph/balancer-subgraph.service'; import { PoolDecorator } from '@/services/pool/decorators/pool.decorator'; import { GraphQLArgs, PoolRepository as SDKPoolRepository, } from '@balancer-labs/sdk'; import { balancerAPI...