text stringlengths 184 4.48M |
|---|
using NauticalCatchChallenge.Core.Contracts;
using NauticalCatchChallenge.Models;
using NauticalCatchChallenge.Models.Contracts;
using NauticalCatchChallenge.Repositories;
using NauticalCatchChallenge.Utilities.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadat... |
import * as React from "react";
import { TrEditorCell } from "../TrEditorCell";
import { Dev } from "../models/Dev";
import { EditableTrProps } from "./props";
import { EditableTrState } from "./state";
export class EditableTr extends React.Component<EditableTrProps, EditableTrState> {
constructor(props: Editable... |
const mongoose = require('mongoose');
const bcrypt = require('bcryptjs');
require('dotenv').config();
let Schema = mongoose.Schema;
let userSchema = new Schema({
userName: {
type: String,
unique: true,
},
password: String,
email: String,
loginHistory: [{
dateTime: Date,
... |
//38a1108d19f54a1fab115779487fbbcea3ae1843
//c_to_f
//multiply by 1.8 and add 32
let c_to_f = (temp: float) : float => {
((temp *. 1.8) +. 32.);
};
//split tip
//inside of a switch statement you use when
//make a case for if the number is negative
//price is the amount the meal cost and n is the number of ways ... |
# Simple inheritance - Relations between classes
# Association - uses, Aggregation - has
# Composition - Owns, Inheritance - Is a
#
# Inheritance vs Composition
#
# Main class (Person)
# -> super class, base class, parent class
# Child classes (Client)
# -> sub class, child class, derived class
class Person:
cpf = ... |
package edu.uga.cs.shoppingapp.Dialogs;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
impo... |
%% OpenFOAM Wall Shear Stress Calculations
clear;
%% Initializing File Names
% Replace with your own file path for this data.
% Square Data
file_name1 = "C:\Users\Benjamin Tan\Desktop\Courses\COE347\OpenFOAM\square_data\Data1_RE10";
file_name2 = "C:\Users\Benjamin Tan\Desktop\Courses\COE347\OpenFOAM\square_data\Data2_... |
/* Copyright (C) 2016 Andrew Shakinovsky
*/
#ifndef COMMONCOMPONENTS_H_
#define COMMONCOMPONENTS_H_
#include "../JuceLibraryCode/JuceHeader.h"
#include "EditorState.h"
#include "Constants.h"
enum SeqMouseAxis {
unknown,
vertical,
horizontal
};
Component helper - Allows a class to listen for a value chan... |
<!DOCTYPE html>
<html>
<head>
<!-- include our dependency on angular -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
<meta charset="utf-8">
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
<title>User Avatar Template</title>
</head>
<b... |
<?php
/**
* Security controller.
*/
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
/**
* Class Securit... |
import axios from 'axios';
import {
loginFailed,
loginStart,
loginSuccess,
logOutFailed,
logOutStart,
logOutSuccess,
registerFailed,
registerStart,
registerSuccess,
} from './authSlice';
export const loginUser = async (user, dispatch, navigate, toast) => {
dispatch(loginStart())... |
package ast.instructions.controls;
import static ast.instructions.ExecutionResult.SUCCESS;
import ast.instructions.AbstractInstruction;
import ast.instructions.ExecutionResult;
import ast.instructions.expressions.AbstractExpression;
import environment.JWASMStack;
import org.slf4j.Logger;
import org.slf4j.LoggerFactor... |
import React, { useState } from "react";
import Swal from "sweetalert2";
export default function Chasier({ kafes, fails, loads, storeLaba }) {
const [pesan, setPesan] = useState([]);
const [harga, setHarga] = useState(0);
const [riwayat, setRiwayat] = useState([]);
const [laba, setLaba] = useState(0);
const... |
package com.callback.base.worker.async.wrap;
import com.callback.base.service.backpressure.constants.BackPressureEnums;
import io.micrometer.core.instrument.Metrics;
import io.micrometer.core.instrument.binder.jvm.ExecutorServiceMetrics;
import org.springframework.stereotype.Component;
import java.util.concurrent.Exe... |
package com.example.duan.fragment;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextV... |
import Updateable from "../../DataTypes/Interfaces/Updateable";
import ParticleSystem from "./ParticleSystem";
export default class ParticleSystemManager implements Updateable {
private static instance: ParticleSystemManager = null;
protected particleSystems: Array<ParticleSystem>;
private construct... |
// This is the main script
// load this script into Arduino UNO to control the OC box
// To test the proper functionality of the OC box write INPUT COMMANDS on the serial monitor
//
// INPUT COMMANDS:
// 4 Reward
// 3 Dot Stim Both [ Double dots - No wrong response ]
// 1 Dot Stim Left [One dot on the left]
/... |
import subprocess
import platform
def ping_ip(ip_address):
"""
Pings a given IP address once and returns whether the ping was successful.
Args:
ip_address (str): The IP address to ping.
Returns:
bool: True if the ping succeeds, False otherwise.
"""
try:
if platform.system().lo... |
<template>
<ModalComponent
:isOpen="isModalOpened"
@modal-close="closeModal"
name="modal"
/>
<div class="grid-container">
<GridItem
v-if="artworks.length > 0"
class="grid-item"
v-for="artwork in artworks"
@click="() => openModal(artwork.id)"
:key="artwork.id"
:i... |
## AWS EC2 - Security Groups
### Requirements
For this exercise you'll need:
1. EC2 instance with web application
2. Security group inbound rules that allow HTTP traffic
### Objectives
1. List the security groups you have in your account, in the region you are using
2. Remove the HTTP inbound traffic rule
3. Can ... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { toast } from 'react-hot-toast';
import { faHeart as solidHeart } from '@fortawesome/free-solid-svg-icons';
import { faHeart as regularHeart } from '@fortawesome/free-regular-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/... |
/*
; Title: Exercise 6.2 Output Properties
; Author: Kimberly Pierce
; Date: August 2020
; Modified By: Kimberly Pierce
; Description: Exercise 6.2 Output Properties
*/
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BookListComponent } from './book-list... |
@extends('layouts.mainLayout')
@section('content')
<div class="flex flex-col p-10">
<div class="flex justify-between">
<div>
<h1 class="text-3xl font-semibold">Expenses</h1>
<p class="mt-2 text-gray-400 font-medium">Total expense amount on all properties - ₹ {{$su... |
#include <ros/ros.h>
#include <Eigen/Eigen>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <livz/livz.hpp>
Eigen::Vector3d sin3D(double t){
return Eigen::Vector3d(t, std::sin(t), t);
}
bool moveBallUpdater(double duration){
// duration表示自创建任务开始,经过的秒数
Livz::drawOneSphere("sphere", si... |
import os
import numpy as np
import pandas as pd
import torch
from torch import cuda
from torch.utils.data import Dataset, DataLoader
from transformers import T5Tokenizer, T5ForConditionalGeneration
from rich.table import Column, Table
from rich import box
from rich.console import Console
console = Console(record=True... |
#ifndef TIMER_HEAP_HPP
#define TIMER_HEAP_HPP
#include <algorithm>
#include <functional>
#include <iostream>
#include <memory>
#include <vector>
using TimeoutCallback = std::function<void()>;
class Timer {
public:
Timer(int fd, int delay, const TimeoutCallback& cb)
{
this->fd = fd;
e... |
import React from "react";
import { useSelector } from "react-redux";
import { selectColor } from "../store/reducers";
const Card = ({ header, subheader, bodies, second_body, sub_body, second_sub_body }) => {
const color = useSelector(selectColor);
return (
<div
className={`w-5/6 md:w-2/3 l... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'catelogue_id',
'name',
'slug',
'sku',
'img_thumbnail',
'price_regu... |
import React from 'react';
import styled from 'styled-components';
import {
MdAddCircleOutline,
MdPanoramaFishEye,
MdCheckCircle,
MdDelete,
MdOutlineEdit,
MdCheck,
} from 'react-icons/md';
import Skeleton from '@mui/material/Skeleton';
import Modal from '../../components/modal';
import { HTTP_URL } from '..... |
package co.techlax.quoteapp.ui.theme.screens
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.... |
{% load static %}
<nav class="bg-white shadow" x-data="{ isOpen: false }">
<div
class="container px-6 py-4 mx-auto lg:flex lg:justify-between lg:items-center"
>
<div class="lg:flex lg:items-center">
<div class="flex items-center justify-between">
<div>
<a
class="text-2xl ... |
import styled, { keyframes } from "styled-components";
import { colors } from "../../utils/colorPallete";
interface SquareContainerProps {
isClickable: boolean;
isWinningSquare: boolean;
value: string | null;
boardSize: number;
}
export const SquareContainer = styled.button<SquareContainerProps>`
background:... |
import { Suspense, useState } from "react";
import { Outlet } from "react-router-dom";
import Spinner from "../components/common/Spinner";
import Sidebar from "../components/navbarSideBar/Sidebar";
import Header from "../components/navbarSideBar/Header";
import Footer from "../components/common/Footer";
const DefaultL... |
const request = require("supertest");
const { app } = require("../../../setup/app");
const stateController = require("../../../../src/api/v1/state/controllers");
const stateServices = require("../../../../src/lib/state");
const { stateTestUrl, stateTestData } = require("../../../testSeed/state");
// Mock service method... |
import 'dart:async';
import 'dart:ui';
import 'package:easy_localization/easy_localization.dart';
import 'package:firedart/firedart.dart';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:watch_me/pages/home_page.dart';
import 'package:watch_me/pages/l... |
package io.github.jhipster.application.web.rest;
import io.github.jhipster.application.JhipsterSampleApplicationApp;
import io.github.jhipster.application.domain.ListNominalWallThickness;
import io.github.jhipster.application.domain.BendHist;
import io.github.jhipster.application.domain.BuckleArrestorHist;
import io.g... |
import { Fragment } from "react";
import EventContent from "../../components/event-detail/EventContent";
import EventLogistics from "../../components/event-detail/EventLogistics";
import EventSummary from "../../components/event-detail/EventSummary";
import { getEventById, getFeaturedEvents } from "../../helpers/api-ut... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using UserApi.Jwt;
using UserApi.Model;
namespace UserApi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class UsersController : Control... |
import axios from 'axios';
(async () => {
const delay = (seconds: number, message: string) => {
return new Promise((resolve) => {
setTimeout(() => resolve(message), seconds * 1000);
});
};
const getProduts = () =>
axios.get('https://api.escuelajs.co/api/v1/products?offset=1&limit=1');
const... |
import 'dart:ui';
import 'package:flutter/material.dart';
class AppWidget extends StatelessWidget {
const AppWidget({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'My Smart App',
theme: ThemeData(primarySwatch: Colors.blue),
home: HomeWidget(),
... |
import { useState } from "react";
import Step1 from "./components/views/Step1";
import Step2 from "./components/views/Step2";
import Step3 from "./components/views/Step3";
import "./app.scss";
function App() {
const [currentView, setCurrentView] = useState("step1");
const [fetchedFigures, setFetchedFigures] = use... |
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine.SceneManagement;
using UnityEngine;
public class GarbageMiniGameManager : MonoBehaviour
{
public int score;
// Reference to the TextMeshProUGUI components
public TextMeshProUGUI scoreText;
public TextMeshProUGUI ... |
//
// ViewController.swift
// StoreSearch
//
// Created by Benjamin Jaramillo on 03/02/24.
//
import UIKit
class SearchViewController: UIViewController {
@IBOutlet weak var searchBar: UISearchBar!
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var segmentedControl: UISegmentedControl!
... |
package com.wein_business.data.model.ticket
import com.google.gson.annotations.SerializedName
import com.wein_business.data.model.LookupModel
data class TicketSearchModel(
@SerializedName("title")
var title: String,
@SerializedName("imageMaster")
var imageMaster: String,
@SerializedName("startDate... |
package wapi
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/rauldotgit/pricemage/utils"
)
type GameItem struct {
ID int32 `json:"id"`
Name string `json:"name"`
Quality interface{} `json:"quality"`
Media struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
... |
<template>
<div class="article">
<h2 class="article__header">{{ article.title }}</h2>
<p class="article__text">
{{ article.shortText }}
</p>
<button class="button button__white" @click.prevent="goToArticleHandler">
Button
</button>
</div>
</template>
<script>
import { computed } fro... |
import { Button, createStyles, Grid, TextField, Theme, Typography, withStyles, WithStyles } from '@material-ui/core';
import * as React from 'react';
import { IAuthProps } from '../../common/IAuthProps';
import { Endpoints } from '../../configuration/Endpoints';
const styles = (theme: Theme) =>
createStyles({
... |
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import axios from 'axios';
import Footer from './footer';
function ModificarProductoForm() {
const [productId, setProductId] = useState('');
const [name, setName] = useState('');
const [description, setDescription] = useState('');
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mon Site Web</title>
<style>
/* CSS du code que tu m'as fourni */
/* Reset des marges et paddings et utilisation de flexbox pour centrer le contenu... |
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import FriendListItem from './components/profileBar';
import Heading from './components/heading';
import { useState } from 'react';
import Profile from './components/profile';
import * as FileSystem from 'expo-file-syste... |
/*
* Copyright (C) 2008-2014 Hellground <http://hellground.net/>
*
* 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 2 of the License, or
* (at your option) any later version.... |
<?php
// This file is part of AAMS Monitor
// Copyright (C) 2013 Gabriele Antonini
//
// 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)... |
import React, { useRef, useState } from 'react';
import dropdown from "../../assets/icons/chevron-down.svg";
import funnel from "../../assets/icons/filter-funnel-02.svg";
import filterlines from "../../assets/icons/filter-lines.svg";
import upload from "../../assets/icons/share-02.svg";
import add from "../../assets/ic... |
//
// ViewController.swift
// ForgetItNot
//
// Created by 박정현 on 30/07/2019.
// Copyright © 2019 박정현. All rights reserved.
//
import UIKit
import SwipeCellKit
class FinTableViewController: UITableViewController {
let date = DateManager()
var db = Database.getInstance()
var categories = Sett... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Document, Page, Text, View, StyleSheet, PDFDownloadLink } from '@react-pdf/renderer';
import '../styles/MostReservedVehiclesReport.css';
const MostReservedVehiclesReport = () => {
const [mostReservedVehicles, setMostReservedVehic... |
package com.lcx.controller.advice;
import com.lcx.util.NiuKeUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import javax.se... |
package com.syh.algorithm.leetcode.hard;
import com.syh.algorithm.leetcode.ListNode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 给你一个链表,每 k 个节点一组进行翻转,请你返回翻转后的链表。
* k 是一个正整数,它的值小于或等于链表的长度。
* 如果节点总数不是 k 的整数倍,那么请将最后剩余的节点保持原有顺序。
* 示例 1:
* 输入:head = [1,2,3,4,5], k = 2
* 输出:[2,1... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Services\CommonService;
use App\Models\CoaDetailAccount;
use App\Services\PermissionService;
use Illuminate\Support\Facades\Auth;
use App\Services\ChartOfAccountService;
use App\Services\CoaDetailAccountService;
use Illuminate\Database\Eloquen... |
import { render, screen } from '../../../test-utils/testing-library-utils';
import Options from '../Options';
import OrderEntry from '../OrderEntry';
import userEvent from '@testing-library/user-event';
// we test an isolated component so in order to get context here in tests we need to wrap it with context
// you ca... |
using CompraInteractiva.Properties;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace CompraInteractiva
{
public partial class Tienda : Form
{
private static Dictionary<string, Image> imagenes;
private String equipo;
private Li... |
/* Copyright (c) 2022 StoneAtom, Inc. All rights reserved.
Use is subject to license terms
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; version 2 of the License.
This program is di... |
"""Buffer List Mixin."""
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import torch
from torch import nn
class BufferListMixin(nn.Module):
"""Buffer List Mixin.
This mixin is used to allow registering a list of tensors as buffers in a pytorch module.
Example:
>>... |
import type {
IDataObject,
IExecuteFunctions,
INodeExecutionData,
INodeProperties,
} from 'n8n-workflow';
import type { QueryRunner, QueryValues, QueryWithValues } from '../../helpers/interfaces';
import { AUTO_MAP, DATA_MODE } from '../../helpers/interfaces';
import { escapeSqlIdentifier, replaceEmptyStringsByNu... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/main.css">
<title>Homework_12</title>
</head>
<body>
<header>
<nav class="header-nav">
<a class="logo" href="index.html" targ... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SimpleLevelContract {
enum LevelType {
Level1,
Level2,
Level3,
Level4
}
enum StepType {
CallChief,
TriggerAlarm,
ExtinguishFire,
Escape
}
struct Level {
LevelT... |
class Stack:
def __init__(self):
self.items = []
def is_empty(self):
return len(self.items) == 0
def push(self, item):
self.items.append(item)
def pop(self):
if not self.is_empty():
return self.items.pop()
else:
raise IndexError("Stack i... |
/*
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
* 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 required by applicable... |
import { Effect, flow, pipe } from 'effect';
import { getEnabledTypes } from '../config/get-enabled-types';
import type { ErrorHandlers } from '../error-handlers/default-error-handlers';
import type { Ctx } from '../get-context';
import { canAddToGroup } from '../guards/can-add-to-group';
import type { Io } from '../io... |
<template>
<fs-page>
<fs-crud ref="crudRef" v-bind="crudBinding">
<template #actionbar-right>
<a-alert class="ml-1" type="info" message=" ← 在表单的各个位置都可以插入自定义内容" />
</template>
<template #form-header-left>
<a-tag color="red">form-header-left插槽</a-tag>
</template>
<temp... |
import { useForm } from "react-hook-form";
import { Link } from "react-router-dom";
import { zodResolver } from "@hookform/resolvers/zod";
import { Loader2 } from "lucide-react";
import * as z from "zod";
import { Button } from "../../components/ui/button";
import {
Form,
FormControl,
FormField,
FormItem,
For... |
const crypto = require("crypto");
const { promisify } = require("util");
const jwt = require("jsonwebtoken");
const User = require("./../models/userModel");
const catchAsync = require("./../utils/catchAsync");
const AppError = require("./../utils/appError");
const sendEmail = require("./../utils/email");
const signTok... |
import React, { Component } from 'react';
import styles from './textBox.css';
// SubComponent
import StyleControls from './StyleControls';
import constants from './constants';
const {
BLOCK_TYPES,
LIST_TYPES,
HEADER_TYPES,
TEXT_ALIGN_TYPES,
INLINE_STYLES
} = constants;
// Libs
import {
convertToRaw,
Co... |
"use client";
import BreadCrumb from "@/components/ui/BreadCrumb";
import React from "react";
import { useSession } from "next-auth/react";
import Form from "@/components/ui/Form";
import FormInput from "@/components/ui/FormInput";
import { useAddCategoryMutation } from "@/redux/features/categories/categoriesApi";
imp... |
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import tkinter as tk
from tkinter import ttk, messagebox
import sympy as sp
def RungeKutta(f, a, b, h, y0):
n = int((b - a) / h)
t = np.linspace(a, b, n + 1)
y = np.zeros((n + 1, len(y0)))
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<!-- <div class="card-header">{{ __('Admin Login') }}</div> -->
<div class="card-body">
... |
// OpenTibia - an opensource roleplaying game
// 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 program i... |
----------------------------------------------TRIGGERS----------------------------------------------
-Triggers are the plsql block , which are executed before or after specific event or instead of specific event
-triggers are executed automatically by the database server
-Triggers are defined on tables,views,schemas,da... |
/**
* MIT License
*
* Copyright (c) 2019-2022 TriumphTeam and Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the right... |
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'ConfirmationScreen.dart';
class AnswersScreen extends StatefulWidget {
final int questionId; // Field to store the question ID
final String quizName; // Field to store the quiz name
final int totalMark... |
#include "Character.hpp"
Character::Character() : _name("Default"), _count(0), _floorCount(0)
{
std::cout << this->_name << " Character default constructor called" << std::endl;
for (size_t i = 0; i < MATMAX; i++)
_inventory[i] = NULL;
}
Character::Character(std::string const& name) : _name(name), _count(0), _flo... |
import 'remixicon/fonts/remixicon.css';
import '@utrecht/component-library-css';
import '@utrecht/design-tokens/dist/root.css';
import {
Heading5,
Paragraph,
Button,
Heading4,
Heading6,
} from '@utrecht/component-library-react';
import { ProgressBar } from '@openstad-headless/ui/src';
import { SessionStorage ... |
<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<header th:fragment="headerFragment" id="header" class="p-3 mb-3 border-bottom w-100" style="top: 0;">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<ul class="nav col-... |
$Id: README.txt,v 1.3 2005/10/14 08:53:57 webgeer Exp $
Description
-----------
The GMap filter module uses filters to allow the insertion of a Google map
into a node. It includes a page to create the macro and a filter to insert
a map based on the macro.
Installation
------------
1) copy the gmap directory into t... |
defmodule Aa.Invitations.Invitation do
use Ecto.Schema
import Ecto.Changeset
schema "invitations" do
field :status, :string, default: "pending"
belongs_to :user, Aa.Accounts.User
field :invitation_token, :string
field :valid_until, :naive_datetime
belongs_to :trip, Aa.Trips.Trip
belongs_t... |
import React from "react";
import { useQuery, gql } from "@apollo/client";
const FILMS_QUERY = gql`
{
launchesPast(limit: 10) {
id
launch_date_local
launch_site {
site_name_long
}
mission_name
links {
article_link
video_link
}
rocket {
... |
<template lang="pug">
.curso-main-container.pb-3.tema3
BannerInterno
.container.tarjeta.tarjeta--blanca.p-4.p-md-5.mb-5
.titulo-principal.color-acento-botones
.titulo-principal__numero
span 3
h1 Sistemas de gestión de la energía (SGEn)
.row.justify-content-center.align-items-center.mb-4... |
nginx.org website
This repository hosts the content and static site generator for [nginx.org](https://nginx.org/).
The website is primarily authored in XML and converted to static HTML content through
[Extensible Stylesheet Language Transformations](https://en.wikipedia.org/wiki/XSLT) (XSLT).
Static site generati... |
/* eslint-disable spaced-comment */
/**
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @package scandipwa/scandipwa
* @link https://github.com/scandipwa/scandipwa
... |
import {
FetchHttpClient,
HttpClient,
HttpSparqlRepository,
RemoteDataSource,
} from '@exec-graph/graph/data-source-remote';
import { DataSet, DataSource } from '@exec-graph/graph/types';
import { Component } from 'react';
import { detailQuery, wikidataQuery } from './detail-view-queries';
import { DetailView a... |
load 'affine_root_system.rb'
load 'utility.rb'
require 'set'
=begin
Let's explore the world of affine root systems! (・∀・)
=end
type = 'B'
l = 4
# Generate the affine root system R of type B_4^{(1)}
rsys = Affine_root_system.new(type, l)
# Print all the positive roots in the finite root subsystem of type B_4 spanne... |
<article class="container character">
<ng-container *ngIf="canUpdate">
<div class="character__edit-container">
<a [routerLink]="updateUrl">
<app-button
[icon]="'pencil'"
[type]="'SECONDARY'"
></app-button>
</a>
</div>
</ng-container>
<!-- Heading -->
... |
import { Inject, Injectable, Logger } from '@nestjs/common';
import { ImageInfoService } from '@haus/api-common/image-info/services/image-info/image-info.service';
import { ModelInfoService } from '@haus/api-common/model-info/services/model-info/model-info.service';
import { ShopItemRepo } from '@haus/db-common/shop-it... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>cyc-editor-window</title>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
... |
import { Component } from '@angular/core';
import { ApiService } from '../../service/api.service';
import { DatePipe } from '@angular/common';
@Component({
selector: 'app-listarjugadores',
templateUrl: './listarjugadores.component.html',
styleUrls: ['./listarjugadores.component.css']
})
export class Listarjugado... |
"use client";
import React from "react";
import { motion } from "framer-motion";
import Image from "next/image";
import Link from "next/link";
import { TypeAnimation } from "react-type-animation";
export default function IntroSection() {
return (
<section className="lg:py-16">
<div className="grid grid-co... |
/*
* @Author: Daniel Maurelle
* @Email: daniel.maurelle@gmail.com
* Youtube: https://youtube.com/playlist?list=PLDqCEJxpkYKCzZSwAz-2PpzcwMDY11NGp&si=HRSvwoUxsEBtFsfI
* @Date: 12-18-2023 18:20:55
* @Description: 1-Sample code basic banking system.
*
* MIT License
*
* Copyright 2023 Daniel Maurelle
*
* Pe... |
import { OpenAI as OpenAIApi } from "openai";
import { Container } from "@sapphire/pieces";
import { ChatInputCommandInteraction, Message } from "discord.js";
import * as process from "process";
const { OPENAI_API_KEY } = process.env;
export default class OpenAI extends OpenAIApi {
private readonly container: Con... |
const socket = io();
const myFace = document.getElementById("myFace");
const muteBtn = document.getElementById("audio");
const cameraBtn = document.getElementById("camera");
const camerasSelect = document.getElementById("cameras");
const call = document.getElementById("call");
let myStream;
let muted = false;
let cam... |
//Arquivo de tratativa de erro
//Descobre se é fastfy ou express e continuar a aplicação
import { Catch, HttpException, ExceptionFilter, ArgumentsHost, HttpStatus } from "@nestjs/common";
import { AbstractHttpAdapter, HttpAdapterHost } from "@nestjs/core";
@Catch(HttpException)
export class ExceptionFilterHttp imple... |
package org.patterns.generative;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
class SingletonWorker implements Runnable {
private final int threadNumber;
public SingletonWorker(int threadNumber) {
this.threadNumber = threadNumber;
}
@Override
public void run() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.