text stringlengths 184 4.48M |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> University website design -Easy Tutorial </title>
<link rel="stylesheet" href="style.css">
<link rel... |
Project Instructions
1) Set up the environment
i. Download and install VirtualBox
ii. Download OVM and sample project files
https://www.dropbox.com/sh/j7f7pog3sw3rbq7/AABX72ga7A0g0lLY9vRHv4Voa
iii. Install OVM appliance. The username and password are both "test".
Instructions for i... |
(%ex "2.7")
; exercise 2.7, page 94
(define (make-interval a b) (cons a b))
(define (upper-bound a)
(let ((x (car a))
(y (cdr a)))
(if (> x y) x y)))
(define (lower-bound a)
(let ((x (car a))
(y (cdr a)))
(if (< x y) x y)))
(let((bound-test1 (make-interval 4 6))
(bound-test2 (make-... |
<%--
Document : CheckOut
Created on : Oct 18, 2023, 9:17:50 PM
Author : Dac Dat
--%>
<%@page import="model.User"%>
<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
User user = (User) session.getAttribute("account");
if(user == null) {
response.se... |
using System;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Results;
using AutoMapper;
using StaffManagement.Dtos;
using StaffManagement.Models;
namespace StaffManagement.Controllers.Api
{
public class SkillsController : ApiContr... |
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { Runtime, Function, Code } from 'aws-cdk-lib/aws-lambda';
import * as sns from 'aws-cdk-lib/aws-sns';
import { Stack, RemovalPolicy } from 'aws-cdk-lib';
import { Rule, Schedule } from 'aws-cdk-lib/aws-events';
import { LambdaFunction }... |
import React, { useContext } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { logout } from '../services/localStorage';
import myContext from '../context/myContext';
function HeaderSeller() {
const navigate = useNavigate();
const { userData } = useContext(myContext);
return (
<he... |
package com.zeyadgasser.core
import android.util.Log
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.zeyadgasser.core.Outcome.EmptyOutcome
import com.zeyadgasser.core.Outcome.EmptyOutcome.emptyOutcomeFlow
import com.zeyadgasser.core.Out... |
package com.ew.gerocomium.controller;
import com.ew.gerocomium.common.constant.Constant;
import com.ew.gerocomium.dao.base.Result;
import com.ew.gerocomium.dao.query.*;
import com.ew.gerocomium.service.OutwardService;
import com.ew.gerocomium.service.RetreatApplyService;
import io.swagger.annotations.Api;
import io.sw... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { KhoDetailComponent } from './kho-detail.component';
describe('Kho Management Detail Component', () => {
let comp: KhoDetailComponent;
let fixture: ComponentFixtu... |
1. Kiểu dữ liệu
- bool
- int/uint: (int8–int256/uint8–uint256) (step by 8 bit)
- address: ~20 byte. Mỗi address có một lượng Ether nhất định, là số cryptocurrency được dùng trên blockchain, và có thể cho và nhận Ether từ các address khác
- byte
- enum
- function type
- struct
- mapping: tương tự hashtable. Cấu trúc map... |
package common
import (
"github.com/toffguy77/statusPage/internal/countries"
"github.com/toffguy77/statusPage/internal/models"
"github.com/toffguy77/statusPage/middleware/prepare"
)
func GetResultData() models.ResultSetT {
var result models.ResultSetT
countriesList := countries.GetCountries()
chanSMS := make(c... |
import {
Box,
Center,
chakra,
Container,
Flex,
HStack,
Text,
VStack,
} from "@chakra-ui/react";
import { ComponentMeta } from "@storybook/react";
import { Card } from ".";
import { StoryRoot } from "../../../.storybook/StoryRoot";
import todoDone from "./todo-done.svg";
import todoOpen from "./todo-open... |
// ignore_for_file: unused_local_variable, prefer_const_constructors, use_build_context_synchronously
import 'dart:io';
import 'package:chat_app/UI/auth%20screens/otp_screen.dart';
import 'package:chat_app/UI/auth%20screens/user_information.dart';
import 'package:chat_app/UI/home%20screen/home_screen.dart';
import 'p... |
# Go API client for taikuncore
This Api will be responsible for overall data distribution and authorization.
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily genera... |
import { Component, Input, OnInit } from '@angular/core';
import { Platform } from '@ionic/angular';
import { MetaMedia } from '../../models/meta-media/meta-media';
/**
* Composant d'affichage des slides "3d" de l'écran d'accueil
* J'ai pris l'effet 3d livré avec sur le site d'ionic
* Je l'ai modifié pour rajouté ... |
data = read.csv2("/Users/maxfilling/Desktop/WBDA2023/wellbeing_data_v3new2.csv")
df_input = data
df_input$date = as.Date(df_input$date)
summary(df_input)
str(df_input)
for(i in 7:23){ #7 is the first column with numbers
df_input[,i] = as.numeric(df_input[,i])
}
for(i in 28:123){ #123 is the last column w... |
package com.example.wellness.mappers;
import com.example.wellness.dto.training.TrainingBody;
import com.example.wellness.dto.training.TrainingResponse;
import com.example.wellness.dto.training.TrainingResponseWithOrderCount;
import com.example.wellness.dto.training.TrainingWithOrderCount;
import com.example.wellness.m... |
# RoomOS Integrations Explained
<img src="/doc/images/meetingroom4.jpeg" />
An integration is a third party extension that can be developed by customers, partners and third party software developers to extend, automate and add value to the Cisco devices, using the public APIs, SDKs and open platform tools.
RoomOS su... |
import os.path
from tkinter import *
import tkinter as tk
from tkinter import ttk
from PIL import Image, ImageTk
from playsound import playsound
MOVE_INCREMENT = 20 # SPACE TO MOVE AFTER FIRST HEAD
MOVES_PER_SECOND = 15 # MOVES PER SEC, AFFECTS GAME SPEED DIRECTLY, CHANGE THIS TO ALTER THE GAME SPEED
GAME_SPEED = 10... |
package com.javabrains;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class Triangle extends ShapeService implements ApplicationContextAware{
private String type;
private int height;
Appl... |
export type CompressImgProps = {
maxW?: number;
maxH?: number;
maxSize?: number;
};
export const compressBase64Img = ({
base64Img,
maxW = 1080,
maxH = 1080,
maxSize = 1024 * 500 // 500kb
}: CompressImgProps & {
base64Img: string;
}) => {
return new Promise<string>((resolve, reject) => {
const fil... |
#pragma warning disable CS0649
#pragma warning disable CS8618
public class NullabilitySamples
{
#region NullabilityUsage
[Test]
public void Test()
{
var type = typeof(NullabilityTarget);
var arrayField = type.GetField("ArrayField")!;
var genericField = type.GetField("GenericFi... |
import React from 'react'
import axios from 'axios'
class Dashboard extends React.Component {
constructor(props) {
super(props)
this.state = {
admins: [],
articles: [],
categories: [],
commentaries: [],
messages: [],
contacts: ... |
<?php
namespace App\Form;
use App\Entity\WebProject;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\UrlType;
use Symfony\Component\Form\FormBuilderInterface;
u... |
/*
* Copyright (C) 2016 Sree Harsha Totakura <sreeharsha@totakura.in>
*
* 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 version 3 of the License, or
* (at your option) any later ver... |
'use strict';
//игроки
const player0 = document.querySelector('.player--0');
const player1 = document.querySelector('.player--1');
//общий счёт игроков
const score0 = document.querySelector('#score--0');
const score1 = document.querySelector('#score--1');
const current0 = document.getElementById('current--0');
const cu... |
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version ... |
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe UserDetail, feature_category: :system_access do
it { is_expected.to belong_to(:user) }
specify do
values = [:basics, :move_repository, :code_storage, :exploring, :ci, :other, :joining_team]
is_expected.to define_enum_for(:registration_obj... |
class OceanFloor
def initialize
@map = {}
@map.default = 0
end
def accept(p1, p2)
dir_x = -1 * (p1[0] <=> p2[0])
dir_y = -1 * (p1[1] <=> p2[1])
len_x = (p1[0] - p2[0]).abs
len_y = (p1[1] - p2[1]).abs
length = [len_x, len_y].max
(length + 1).times do |i|
x = p1[0] + (dir_x ... |
---
title: 'Top Linux commands that commonly used in DevOps'
description: '🐧 Top 79 Linux commands that are commonly used in DevOps ♾'
pubDate: '2024-04-01'
heroImage: '../../assets/images/linux_poster.jpg'
category: 'DevOps'
tags:
- DevOps
- Linux
- LearningResources
---
## 🚀 **_As a DevOps engineer, ideally ... |
<p-confirmDialog [style]="{ width: '450px' }"></p-confirmDialog>
<div *ngIf="vm$ | async as vm" fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap="24px">
<form class="container" [formGroup]="form" (ngSubmit)="submitForm(vm.mode)">
<app-text-input
[placeholder]="'Wprowadź tytuł ogłoszenia'"
... |
import React from 'react';
import { useTranslation } from 'react-i18next';
const useSwitchLang = () => {
const { i18n, t } = useTranslation();
const changeLang = () => {
i18n.changeLanguage(i18n.language === 'en' ? 'de' : 'en');
localStorage.setItem('transzug-lang', JSON.stringify(i18n.language));
};
... |
export default interface Cart {
type: string;
id: string;
version: number;
versionModifiedAt: string;
lastMessageSequenceNumber: number;
createdAt: string;
lastModifiedAt: string;
lastModifiedBy: {
clientId: string;
isPlatformClient: boolean;
customer: {
typeId: string;
id: strin... |
from djongo import models
# Create your models here.
class Category(models.Model):
id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=255)
slug = models.SlugField(max_length=255, unique=True,
help_text='Unique value for product page URL, created from n... |
import { createAsyncThunk } from "@reduxjs/toolkit"
import {
getAllProducts,
addProducts,
updateProducts,
deleteProduct,
getCategory,
} from "../../../services/productServices"
export const fetchProductsByCategory = createAsyncThunk(
"products/fetchProductsByCategory",
async (category: any) => {
cons... |
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LiveFile</title>
<link href="https://unpkg.com/basscss@8.0.2/css/basscss.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<body class="single">
<div class="hero clear... |
<?php
namespace App\Http\Controllers;
use App\Models\App;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class HomeController extends Controller
{
public function home()
{
return view('home');
}
public function index()
{
$app = App::all()... |
import logo from './logo.svg';
import './App.css';
import Button from './component/Button';
import Box from './cssmodule/Box';
import CheckBox from './cssmodule/component/CheckBox';
import { useState } from 'react';
function App() {
const [check, setCheck] = useState(false);
const onChange = e => {
setCheck(e... |
<template>
<div>
<v-tabs>
<v-tab @click="introClick">
<span class="d-md-flex d-none">Intro</span>
<v-tooltip bottom>
<template v-slot:activator="{ on, attrs }">
<v-icon class="d-md-none d-flex" v-bind="attrs" v-on="on">mdi-domain</v-icon>
</template>
<span>Intro</span>
</v-tooltip... |
import { BaseMigration } from './base';
import { MigrationStrategy } from './contracts/migrationContract';
import Logger from '../logger';
import { LumError } from '../../utilities/models/LumError';
export class StatesLookupStrategy extends BaseMigration implements MigrationStrategy {
public async run() {
try... |
#Objective : Write a program in python for any searching techniques.
#Code :
def binary_search(arr, low, high, a):
if high >= low:
mid = (high + low) // 2
if arr[mid] == a:
return mid
elif arr[mid] > a: # If element is smaller than mid, then it can only present in left subarray
return ... |
#Chuong trinh BTL2.D6: Selection sort 10 so nguyen
#-----------------------------------
#Data segment
.data
#Cac cau nhac nhap du lieu
str1: .asciiz "Cac buoc sap xep: \n"
str2: .asciiz "Mang can sap xep: "
str3: .asciiz "Mang sau khi sap xep: "
str4: .asciiz "\n"
str5: .asciiz " "
str6: .asciiz "\n Thoi gian... |
import {
Typography,
Button,
Dialog,
DialogHeader,
DialogBody,
DialogFooter,
Input,
Select,
Option,
Alert,
} from '@material-tailwind/react';
import React, { useEffect, useRef, useState } from 'react';
import { useForm } from 'react-hook-form';
import UserItem from './UserItem';
import { object, st... |
import React from 'react'
import { useEffect, useState } from 'react'
import { creations } from '../utils/data'
import { FaQuoteRight } from 'react-icons/fa'
import { FiChevronRight, FiChevronLeft } from 'react-icons/fi'
import '../creations/Creations.css'
const Creations = () => {
// const [project, setProject] = us... |
package com.example.hibernate.ormapping.onetoone.bidirectional;
import com.example.hibernate.ormapping.onetoone.unidirectional.StudentGfgDetail;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Fetch;
@Entity
@Data
@N... |
import {
AppBar,
Button,
IconButton,
Menu,
MenuItem,
Stack,
Toolbar,
Typography,
} from "@mui/material";
import CatchingPokemonIcon from "@mui/icons-material/CatchingPokemon";
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
import { useState } from "react";
const MuiNavbar = ... |
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2012 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the ... |
import numpy as np
import imageio
import matplotlib.pyplot as plt
from skimage.color import rgb2gray
MAX_PIXEL_VALUE=255
RGB_DIM = 3
GRAYSCALE = 1
RGB = 2
RGB_YIQ_TRANSFORMATION_MATRIX = np.array([[0.299, 0.587, 0.114],
[0.596, -0.275, -0.321],
... |
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>8-bit Sound and Music Engine</title>
<meta charset="utf-8">
<meta name="description" content="8-bit sound and music engine">
<meta name="keywords" content="ZZT, 8-bit sound, 8-bit music, JavaScript"... |
package types
import "encoding/json"
type JSONSchema struct {
Property
ID string `json:"$id,omitempty"`
Title string `json:"title,omitempty"`
Properties map[string]Property `json:"properties"`
Required []string `json:"required,omitempty"`
Defs m... |
_English | [中文](./README.zh.md)_
---
# Overview
Agora Chat UIKit for React-Native is a development kit with an user interface that enables an easy and fast integration of standard chat features into new or existing client apps. Agora Chat CallKit for React-Native is a development kit with an user interface that enab... |
package com.api.book.bootrestbook.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
impor... |
package arep.taller;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* The main function for the Java progr... |
import {AppDispatch, dispatchType} from "./redux-store";
import {authAPI} from "../api/api";
import {stopSubmit} from "redux-form";
export type AuthPageType = {
userId: number | null,
email: string | null,
login: string | null,
isAuth: boolean
}
type SetUserDataAcType = {
type: 'SET_USER_DATA',
... |
import fs from "fs";
import { v4 as uuid } from "uuid";
const DB_FILE_PATH = "./core/db";
type UUID = string;
interface Todo {
id: UUID;
date: string;
content: string;
done: boolean;
}
/**
* Cria uma nova todo com o conteúdo fornecido e a adiciona ao banco de dados.
* @param {string} content - O conteúdo d... |
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="assets/dmt errand.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstra... |
import { useEffect } from "react";
import { fetchAllProductForHomeAsync, selectAllProduct } from "../vendor/AddProductSlice";
import { useDispatch, useSelector } from "react-redux";
import { selectLoggedInUser } from "../auth/AuthSlice";
import { addToCartAsync } from "../cart/CartSlice";
import { Link } from "react-ro... |
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import torch
class F2(object):
def __init__(self, lmbda: float):
super(F2, self).__init__()
self.l... |
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:template match="/">
<xsl:text>
</xsl:text>
<html>
<body>
<h2>Drig Dávid Kurzusfelvétel – 2023/24. I. félév.</h2>
<table border = "4">
<tr bgcolor = "#90EE90">
... |
---
title: Authorization with Identity--Part 2
description: Use Delamater and Murach (2022) as a guide to finish adding authorization to a web app: Restrict the admin controller. Add Admin to our navigation menu, but only for admin users. Seed users and an admin role. Re-publish to Azure
keywords: Identity, Authorizati... |
import { renderHook, waitFor } from '@testing-library/react';
import { usePatientQuery } from './usePatientQuery';
jest.mock('node-fetch');
const fetch = require('node-fetch');
describe('usePatientQuery', () => {
beforeEach(() => {
fetch.mockClear();
});
it('should fetch patient data when id is ... |
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use cstr::cstr;
use fuchsia_criterion::{criterion, FuchsiaCriterion};
use fuchsia_trace as trace;
use fuchsia_trace::Scope;
use std::time::Duration;
macro... |
<template>
<div class="card" style="width: 18rem; margin: auto">
<img
v-bind:src="srcUrl"
class="card-img-top"
width="70"
height="200"
alt="..."
/>
<div class="card-body">
<h5 class="card-title">{{ name }}</h5>
<p class="card-text">{{ food }}</p>
<... |
import 'dart:math' as math;
import 'package:flutter/material.dart';
class TickerPro extends StatefulWidget {
const TickerPro({Key? key}) : super(key: key);
@override
State<TickerPro> createState() => _TickerProState();
}
class _TickerProState extends State<TickerPro> with TickerProviderStateMixin {
late fina... |
import { ref } from 'vue'
import { defineStore } from 'pinia'
import idCreation from '@/helpers/idCreation'
import type { IContacts } from '@/models/ObjectModels'
import type { IClient } from '@/models/ClientModel'
export const useClientsStore = defineStore('client', () => {
const clientJson: string | null = localSt... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import com.ctre.phoenix.sensors.PigeonIMU;
import edu.wpi.first.math.MathUtil;
import ed... |
# -*- coding: utf-8 -*-
# --------------------------------------------------------------------------
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012-Today Serpent Consulting Services PVT. LTD.
# (<http://www.serpentcs.com>)
#
# This program is free software: you can redistribute it and/or ... |
import React, { useState, useEffect } from "react";
import { Route, Redirect } from "react-router-dom";
import { useMsal } from "@azure/msal-react";
export const RouteGuard = ({ Component, ...props }) => {
const { instance } = useMsal();
const [isAuthorized, setIsAuthorized] = useState(false);
const [isOv... |
import { Input } from "@/components/Form/Input";
import { ModalNewAccount } from "@/components/SignUp/newUserModal";
import { AuthContext } from "@/contexts/AuthContext";
import { Button, Flex, HStack, Heading, Link, Text, useDisclosure } from "@chakra-ui/react";
import { useContext } from "react";
import { SubmitHandl... |
import "./styles.css";
import { RadioButtonComponent } from "../../../types";
import { buildMobrixUiReactiveComponent } from "../../../utils";
import component from "./component";
/**
* A single radio button component. Optionally, can prevent user to deselect it
*
* @param {boolean} value actual radio button val... |
import { FC, ReactNode, useEffect } from 'react';
import {
Box,
Flex,
Heading,
IconButton,
Link,
Stack,
StackItem,
Text,
useDisclosure,
} from '@chakra-ui/react';
import { PageLoader, SideNav, UserMenu } from '@/components';
import { IconBell, IconX, IconMenu2 } from '@tabler/icons';
import NextLink f... |
import React from "react";
import l from './Login.module.css'
import Button from './../Button/Button1'
import {reduxForm} from "redux-form";
import {connect} from "react-redux";
import {LoginThunk} from "../../Redux/AuthReducer";
import {createField, Input} from "../Common/FormControls/FormControls";
import {maxLengthC... |
import boto3
import os
import json
import numpy as np
from pathlib import Path
from pprint import pprint
import sagemaker
from langchain.docstore.document import Document
from langchain.document_loaders import TextLoader
from langchain.embeddings import BedrockEmbeddings
from langchain.text_splitter import CharacterTe... |
<div *ngIf="(appService.getGroupe == 'DENDROMAP') && user">
<div class="media align-items-center py-3 mb-3">
<img
[src]="user.img ? appService.urlBase + 'images/' + user.img : appService.default_img"
class="d-block ui-w-100 rounded-circle" alt="">
<div class="media-body ml-4">
<h4 class="fon... |
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also ... |
#include "binary_trees.h"
/**
* binary_tree_size - measures the size of a binary tree
*
* @tree: pointer to the root node of the tree to traverse
* Return: size of a binary tree
*/
size_t binary_tree_size(const binary_tree_t *tree)
{
if (tree != NULL)
{
return (binary_tree_size(tree->left) + 1 +
binary_tre... |
import { shared } from "../styles";
import { BaseElement, element, html, css, property, query, observe } from "./base";
@element("pl-select")
export class Select<T> extends BaseElement {
@property()
options: T[] = [];
@property()
selected: T;
@property()
label: string = "";
@property()
... |
//
// Sequence-Sorting.swift
// Travner
//
// Created by Lorenzo Lins Mazzarotto on 03/04/22.
//
import Foundation
extension Sequence {
func sorted<Value>(
by keyPath: KeyPath<Element, Value>,
using areInIncreasingOrder: (Value, Value) throws -> Bool
) rethrows -> [Element] {
try se... |
from collections import OrderedDict
from typing import List, TypeVar
class _Channel:
def __init__(
self,
name: str,
mung_classes: List[str],
deepscores_classes: List[str],
oversample: bool
):
self.name = name
self.mung_classes = mung_classes
self... |
import 'package:falcon_net/Theme/Light/LightCardTheme.dart';
import 'package:falcon_net/Theme/Light/LightTextTheme.dart';
import 'package:falcon_net/Theme/NegativeButtonTheme.dart';
import 'package:flutter/material.dart';
import 'package:falcon_net/Theme/Light/LightElevatedTheme.dart';
/*
TODO:
- Use '///' to docume... |
<?php
namespace Drupal\image_lazy_load_test\Controller;
use Drupal\Core\Controller\ControllerBase;
/**
* The ImageLazyLoadController class.
*/
class ImageLazyLoadController extends ControllerBase {
/**
* Render an image using image theme.
*
* @return array
* The render array.
*/
public functi... |
// 预算与评分关系图 -xyt
var chartDom = document.getElementById('chart_budgetVote');
var myChart = echarts.init(chartDom);
var option;
function processData(data) {
return data.map(function (item) {
return {
value: [parseInt(item[1] / 1000000), parseFloat(item[2])],
name: item[0]
};
});
}
fetch('../st... |
import React, { Suspense } from "react";
import { useLocation, useNavigate } from "react-router-dom";
import { useAtomValue } from "jotai";
import { profileAtom } from "#/components/lib/jotai";
import {
Drawer,
Box,
Toolbar,
List,
ListSubheader,
Divider,
ListItemIcon,
ListItemText,
Typography,
} from... |
import React from "react";
import styled from "styled-components";
// styled components
import Title from "./StyledComponents/Title";
import Flex from "./StyledComponents/Flex";
import Button from "./StyledComponents/Button";
const Wrapper = styled.div`
width: 95%;
min-height: 10vh;
padding: 2rem;
margin: 0 a... |
const std = @import("std");
const simd = std.simd;
const Interval = @import("interval.zig");
const Vec = @This();
pub const Vec3 = @Vector(3, f64);
pub const z = Vec3{ 0, 0, 0 };
pub fn lensq(v: Vec3) f64 {
return v[0] * v[0] +
v[1] * v[1] +
v[2] * v[2];
}
pub fn len(v: Vec3) f64 {
return @sq... |
import { FC } from 'react';
import Button from '@mui/material/Button';
import MUIDialog from '@mui/material/Dialog';
import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from ... |
import API from "@/utils/API";
import Add from "./add";
import ImageView from "@/component/ImageView";
import Edit from "./edit";
import Delete from "./delete";
import axios from "axios";
type Galeri = {
id: number;
title: string;
image: string;
};
async function getGaleri() {
const res = await axios.get(API.... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract MyContract{
address public owner ;
// Constructor executed once
constructor() public{
owner = msg.sender ;
}
// state var
uint256 amountEth ;
// 2d Array
uint256[][] public... |
/*
* Wire
* Copyright (C) 2018 Wire Swiss GmbH
*
* 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 version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
import * as React from "react";
import { useTheme } from "@mui/material/styles";
import Toolbar from "@mui/material/Toolbar";
import Typography from "@mui/material/Typography";
import IconButton from "@mui/material/IconButton";
import MenuIcon from "@mui/icons-material/Menu";
import { AppBar, Divider, Fade, makeStyles,... |
## @file
# @brief
# Implementation of the
# @ref DesignPatternExamples_python.memento.memento_exercise.Memento_Exercise "Memento_Exercise"()
# function as used in the @ref memento_pattern.
from io import StringIO
from .memento import IMemento, Memento_TextObject
## The list of memento objects that form a series of s... |
import os
import numpy as np
import pandas as pd
from pandas import DataFrame
import matplotlib.pyplot as plt
import statistics
from scipy.stats import weibull_min, weibull_max
from sklearn import preprocessing
import tensorflow as tf
from tensorflow.keras import initializers, regularizers
from tensorflow.keras import ... |
import Box from "@mui/material/Box";
import Button, { ButtonProps } from "@mui/material/Button";
import CircularProgress from "@mui/material/CircularProgress";
import { useTheme } from "@mui/material/styles";
import * as React from "react";
export interface LoadingButtonProps extends Omit<ButtonProps, "ref"> {
isLoa... |
// Copyright (c) 2003-2007, John Harrison. //
// Copyright (c) 2012 Eric Taucher, Jack Pappas, Anh-Dung Phan //
// (See "LICENSE.txt" for details.) //
// LCF-style basis for Tarski-style Hilbert system of first order logic. ... |
---
sidebar_custom_props:
icon: /img/connector_icons/salesloft.png
category: 'Sales engagement'
description: ''
---
# Salesloft
## Overview
**Category:** `engagement`
Supaglue uses the Salesloft v2 API.
| Feature | Available |
| ------------------------------------ | ---------... |
import React from 'react'
import Produto from './Produto';
// Os links abaixo puxam dados de um produto em formato JSON
// https://ranekapi.origamid.dev/json/api/produto/tablet
// https://ranekapi.origamid.dev/json/api/produto/smartphone
// https://ranekapi.origamid.dev/json/api/produto/notebook
// Crie uma interface... |
//local shortcuts
//third-party shortcuts
use serde::{Serialize, Deserialize};
//standard shortcuts
//-------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------... |
#!/usr/bin/env node
const PROCESS = require('process');
const READLINE = require('readline');
const { Client } = require('pg');
require('dotenv').config();
function logAndExit(err) {
console.log(err);
process.exit(1);
};
class ExpenseData {
constructor() {
this.client = new Client({ database: 'expense_proje... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.