text stringlengths 184 4.48M |
|---|
import Handlebars from 'handlebars/dist/handlebars';
import { v4 } from 'uuid';
type Tv4 = () => string;
import { EventBus } from './event-bus';
export type TEvents = { [key: string]: EventListenerOrEventListenerObject };
enum Events {
flowCDM = 'flow:component-did-mount',
flowCSU = 'flow:component-should-updat... |
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributo... |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/file_system_access/file_system_access_permission_context_factory.h"
#include "base/no_destructor.h"
#include "chrome/browser/content_settings/host_con... |
// 1. eval использовать запрещено
// eval('13 * 54 * 72 === 84240')
// 2. Если eval использовать нельзя, то нужно использовать объекты ответов и интерфейсы
export enum OperatorSymbol {
PLUS,
MINUS,
MULTIPLY,
DIVIDE,
// POW
}
export const ALLOWED_OPERATORS: Operator[] = [
{
symbol: Ope... |
import * as React from "react";
import { useNavigate } from "react-router-dom";
import "./Trips.css";
import axios from "axios";
import EditTrip from "../EditTrip/EditTrip";
export default function Trips({
setOrigin,
setDestination,
setUser,
setStops,
setStopsDist,
setStopsTime,
setStopsFuel,
}) {
cons... |
//
// ContentView.swift
// MyPortfolio
//
// Created by Arnaud NOMMAY on 27/03/2023.
//
import SwiftUI
struct ContentView: View {
@EnvironmentObject var dataController: DataController
var body: some View {
List(selection: $dataController.selectedInterest) {
ForEach(dataController.i... |
// ---------------------------------------------------------------------
// Action Store Load Variable
// ---------------------------------------------------------------------
import * as CL3D from "../main.js";
/**
* @private
* @constructor
* @class
*/
export class ActionStoreLoadVariable extends CL3D.Action{
... |
import Link from 'next/link'
import { JSX } from 'react'
interface LinkButtonProps {
icon: JSX.Element
alt: string
content: string
href: string
focus?: boolean
setFocus?: () => void
}
export function LinkButton({
icon,
content,
href,
focus,
setFocus,
}: LinkButtonProps) {
return (
<Link
... |
from json import encoder
import pandas as pd
import logging
from pathlib import Path
from src.utils.encoding_utils import read_data, save_data
from src.utils.config_utils import get_config
from src.config_schemas.features.encoding_config_schema import encoding_Config
from src.features.encoding.encoding_model import En... |
<?php
namespace Illuminate\Database\Console\Factories;
use Illuminate\Console\GeneratorCommand;
use Symfony\Component\Console\Input\InputOption;
class FactoryMakeCommand extends GeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'make:factory';
/*... |
import { useForm } from "react-hook-form";
import { FormWrapper } from "../components/form/FormWrapper";
import { RHFTextField } from "../components/form/RHFTextField";
import { Button, Card, Container, Grid, Stack } from "@mui/material";
import * as Yup from "yup";
import { yupResolver } from "@hookform/resolvers/yup"... |
package com.distributionlock.redis;
import redis.clients.jedis.Jedis;
/**
* @Author: Bojun Ji
* @Description:
* @Date: 2018/8/6_12:45 AM
*/
public class RedisUtil {
/**
* set if not existed, return 1 if ok, return 0 when not updated
*
* @param key
* @param value
* @return
*/
... |
import { Routes } from "@angular/router";
import { ShoppingComponent } from "./shopping.component";
import { IndexComponent } from "./top-pages/index/index.component";
import { ProductListComponent } from "./top-pages/product-list/product-list.component";
import { ProductDetailComponent } from "./top-pages/product-deta... |
#tabela referenciada com Common Table Expression
WITH TotalGanhadores AS (
SELECT
COUNT(DISTINCT r.clientes_id) AS Total
FROM
`sapient-tractor-310701.H2Club.resultado` r
WHERE
r.Winning > 0
)
#consulta principal
SELECT
c.Sexo,
COUNT(DISTINCT r.clientes_id) AS Numero_Ganhador... |
import { readdirSync } from "fs";
import matter from "gray-matter";
import { GetStaticPaths, GetStaticProps, NextPage } from "next";
import remarkHtml from "remark-html";
import remarkParse from "remark-parse";
import { unified } from "unified";
const Post: NextPage<{ post: string }> = ({ post }) => {
return <h1>{po... |
import { EIP712Proxy } from '../../src/eip712-proxy';
import Contracts from '../components/Contracts';
import chai from './helpers/chai';
import { EAS, EIP712Proxy as EIP712ProxyContract, SchemaRegistry } from '@ethereum-attestation-service/eas-contracts';
import { ethers } from 'hardhat';
import { Signer } from 'ether... |
import {useFocusEffect, useNavigation, useRoute} from '@react-navigation/core';
import React, {useContext, useState} from 'react';
import colors from '../../assets/theme/colors';
import RegisterComponent from '../../components/Register';
import { LOGIN } from '../../constants/routeName';
import register, { clearAuthSta... |
import { Textarea } from '../textarea';
import { Icon } from '../icon';
import { Text } from '../text';
import { Devider } from '../devider';
import { iconDelete } from '../../../stories/assets/IconDelete';
import { iconYes } from '../../../stories/assets/IconYes';
import { iconNo } from '../../../stories/assets/IconNo... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
package sandy.errors;
/**
* The SingletonError class is used as a workaround for private constructors not existing
* in ActionScript 3.0. Every singleton class in Sandy has a private static variable
* called <code>instance</code>. The <code>instance</code> variable is given a
* reference to an instance of the class th... |
import React, { useEffect, useState } from "react";
import { Box, Stack, Typography } from "@mui/material";
import { fetchFromAPI } from "../utils/fetchFromAPI";
import { Videos, Sidebar } from "./";
const Feed = () => {
const [selectedCategory, setSelectedCategory] = useState("New");
const [videos, setVideos] = ... |
---
title: "[New] Unveiling the Secrets of YouTube to MP4/MPEG Mastery"
date: 2024-06-04T07:42:36.800Z
updated: 2024-06-05T07:42:36.800Z
tags:
- screen-recording
- ai video
- ai audio
- ai auto
categories:
- ai
- screen
description: "This Article Describes [New] Unveiling the Secrets of YouTube to MP4/MPE... |
/*
* Arduino nfc door lock with remote card database on webserver.
* Copyright 2014 Alberto Panu alberto[at]panu.it
*
* Pin layout for the MFRC522 board should be as follows:
* Signal Pin
* Arduino Uno
* ------------------------
* Reset 8
* SPI SS 9
* SPI MOSI 11
* SPI M... |
import { ApiProperty, OmitType, PickType } from "@nestjs/swagger"
import { Type } from "class-transformer"
import { IsObject, IsOptional, IsString, ValidateNested } from "class-validator"
import { UserDto } from "src/user/dto/create-user.dto"
// export class DeskripsiMobil {
// @ApiProperty()
// @IsOptional()
... |
import type { PackageCacheNamespace } from '../../cache/package/types';
export interface GithubDatasourceItem {
version: string;
releaseTimestamp: string;
}
/**
* Datasource-specific structure
*/
export interface GithubGraphqlDatasourceAdapter<
Input,
Output extends GithubDatasourceItem,
> {
/**
* Used... |
import { BaseSyntheticEvent } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { addToCart, deleteToCart } from '../../redux/cart/cartSlice';
import { ProductComponent } from '../../types/components';
import { State } from '../../types/redux';
function Product({ product, name, desc, price, ... |
# Query Saver Chrome Extension (React, TypeScript, Webpack)
This project demonstrates how to build a Chrome extension using [React](https://react.dev/) with TypeScript and Webpack. It showcases key features such as interacting with Chrome APIs ([storage](https://developer.chrome.com/docs/extensions/reference/api/stora... |
import _ from 'radash'
import type { Props, ApiFunction } from '@exobase/core'
import { errors } from '@exobase/core'
import { verify } from '@octokit/webhooks-methods'
export async function withGithubWebhook(func: ApiFunction, secret: string, props: Props) {
const signature = props.req.headers['x-hub-signature-256... |
import { useEffect, useState } from "react";
const DataFetch = () => {
const [todos, setTodos] = useState(null); //for data fetching
const [isLoading, setIsLoading] = useState(true); // if data loding
const [error, setError] = useState(null); //if catch error
useEffect(() => {
fetch("https://jsonplacehold... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package account.connections;
import account.requests.ConnectionRequestCreate;
import java.io.IOException;
import java.io.PrintWriter;
... |
from django.db import models
from django.core.validators import FileExtensionValidator
from django.contrib.auth.models import User
from django.contrib import admin
from django.utils import timezone
# Address model
class Address(models.Model):
"""
Modèle représentant une adresse.
Attributes:
street ... |
"""
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Example 1:
Input: height = [0,1,0,2,1,0,1,3,2,1,2,1]
Output: 6
Explanation: The above elevation map (black section) is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. ... |
// 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.commands;
import edu.wpi.first.math.MathUtil;
import edu.wpi.first.math.controller.PIDController;
imp... |
<template>
<div id="container">
<!-- Header -->
<header id="main-header">
<div id="bio-container">
<h1 id="header-name">Ethan Printz</h1>
<h3 id="header-major">New Grad from NYU IMA/ITP</h3>
<h3 id="header-role">UX // XR // Mobile Dev // Web Dev</h3>
</div>
<img :src=... |
<!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>Password Generator</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<d... |
import 'package:flutter/material.dart';
import 'package:yitaku/common/widget/text_style.dart';
import 'package:yitaku/utils/asset_res.dart';
import 'package:yitaku/utils/colorRes.dart';
class BlueBotton extends StatelessWidget {
final double height;
final String buttonText;
final Color color;
final VoidCallbac... |
package app
import (
"flag"
"os"
"strconv"
"github.com/AaronSaikovski/golotteryservice/config"
"github.com/AaronSaikovski/golotteryservice/router"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/fiber/v2/middleware/logger"
"github.com/gofiber/fiber/v2/middlewar... |
import React, { useEffect, useState } from 'react'
import BottomBar from '../components/BottomBar/BottomBar'
import Feed from '../components/feed/Feed'
import Leftbar from '../components/leftbar/LeftBar'
import RightBar from '../components/rightbar/RightBar'
import TopBar from '../components/topbar/TopBar'
import TopBa... |
// Copyright (C),2006-2012 HandCoded Software Ltd.
// All rights reserved.
//
// This software is the confidential and proprietary information of HandCoded
// Software Ltd. ("Confidential Information"). You shall not disclose such
// Confidential Information and shall use it only in accordance with the terms
// of the... |
import { render, screen } from "@testing-library/react";
import { Todo } from "types/todo";
import TodoList from "../TodoList";
const mockTodos = [
{
id: 1,
content: "운동하기",
done: false,
},
{
id: 2,
content: "개발 공부하기",
done: false,
},
] as Array<Todo>;
function renderTodoList() {
con... |
import { assets } from './spritePreview/assets'
import { loadAsset } from './gameUtils/loadAsset'
import constants from './spritePreview/constants'
import sprites from './sprites'
let frame = 0
let spriteFrame = 0
const $sprites = document.getElementById('ctdl-game-sprites')
const $direction = document.getElementById(... |
package config;
import javax.servlet.annotation.WebFilter;
import domain.dao.UserDao;
import domain.dao.UserDaoImpl;
import lombok.Getter;
import service.UserService;
import service.UserServiceImpl;
@Getter
public class ServletContextConfig {
private static ServletContextConfig instance = null;
/*
* Custom Io... |
import { Button, Card, Col, Form, Input, notification, Row } from "antd";
import React, { Fragment, useState } from "react";
import { useHistory } from "react-router-dom";
const Signup = () => {
const [form] = Form.useForm();
const history = useHistory();
const [usersList, setUsersList] = useState(
JSON.pars... |
/*
This file is part of Memory Patcher.
Memory Patcher is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Memor... |
import React, { useEffect, useState } from "react";
import { useOrderStore } from "../../hooks/useOrderStore";
import { usePaymentStore } from "../../hooks/usePaymentStore";
import { useForm } from "../../hooks/useForm";
import { useParams, Link, useNavigate } from "react-router-dom";
import Swal from "sweetalert2";
im... |
// To parse this JSON data, do
//
// final sectors = sectorsFromJson(jsonString);
import 'dart:convert';
Sectors sectorsFromJson(String str) => Sectors.fromJson(json.decode(str));
String sectorsToJson(Sectors data) => json.encode(data.toJson());
class Sectors {
Sectors({
this.error,
this.errorMsg,
... |
/******************************************************************************
NAME: ias_math_convert_month_day_to_doy
PURPOSE: Converts month/day for a specific year to day of year.
RETURN VALUE: ERROR or SUCCESS
******************************************************************************/
#include "ias_lo... |
#### Отпечатване на резултата
Накрая остава да изведем резултата на конзолата. По задание, ако студентът е дошъл точно на време (**без нито една минута разлика**), не трябва да изваждаме втори резултат. Затова правим следната **проверка**:

Реално за цели... |
"""Test module for client list use case"""
# pylint: disable=w0621
# pylint: disable=c0116
import pytest
from src.domain.category import Category
from src.repository.in_memory.memrepo_category import MemRepoCategory
@pytest.fixture
def category_dicts():
return [
{
'descricao': 'categoria A',
... |
using Eddy.Core.Validation;
using Eddy.Tests.x12;
using Eddy.x12.Mapping;
using Eddy.x12.Models.Elements;
using Eddy.x12.Models.v3030;
namespace Eddy.x12.Tests.Models.v3030;
public class W21Tests
{
[Fact]
public void Parse_ShouldReturnCorrectObject()
{
string x12Line = "W21*w*BV*C*bz*2*8*g*9*1*i*b*2*3*2*5*8*6*4"... |
<?php
namespace App\Factory;
use App\Entity\PokemonStat;
use App\Repository\PokemonStatRepository;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Proxy;
use Zenstruck\Foundry\RepositoryProxy;
/**
* @extends ModelFactory<PokemonStat>
*
* @method PokemonStat|Proxy create(array|... |
import 'package:api/api.dart';
import 'package:badges/badges.dart' as badge;
import 'package:common/constant/constant.dart';
import 'package:common/function/function.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:pull_to_refresh_flutter3/pull_to_... |
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Header from "../components/Header/Header";
import Footer from "../components/Footer/Footer"
import HomePage from "../pages/HomePage/HomePage";
import LoginPage from "../pages/Login/LoginPage";
import EventosPage from "..... |
//
// Stock.swift
// MasteringChartsInSwiftUI4
//
// Created by DevTechie on 9/14/22.
//
import Foundation
struct Stock: Identifiable {
var id = UUID()
var name: String
var date: String
var openPrice: Double
var highPrice: Double
var lowPrice: Double
var closePrice: Double
}
extension ... |
type Color8 = 'negro' | 'rojo' | 'azul' | 'amarillo' | 'blanco';
enum LiquidoVehiculo {
Agua,
Aceite,
LiquidoFrenos
}
enum PiezasExterna {
Llantas = 5,
Pintura
}
class Vehiculo8 {
_numeroRuedas: number;
_marca: string;
_color: Color8;
constructor(marca: string, color: Color8, num... |
const Koa = require('koa')
const app = new Koa()
const errHandler = require('./errHandler')
const { secret } = require('../constant/secretKey')
const { handleTokenError } = require('../utils/token')
const cors = require('koa2-cors')
// 导入数据库
require('../db/index.js')
const userRouter = require('../router/users.routes')... |
//
// Double+Extensiosn.swift
// Jia Jie's DCA Calculator
//
// Created by Jia Jie Chan on 5/10/21.
//
import Foundation
extension Double {
var stringValue: String {
return String(describing: self)
}
var twoDecimalPlaceString: String {
return String(format: "%.2f", self)
}... |
class Node{
constructor(value){
this.value = value;
this.next = null; // pointer reference to next node
}
}
class SinglyLinkedList {
constructor() {
this.head = null;
this.tail = null;
this.length = 0;
}
// adding/inserting node to the end
push(value){
... |
import {Module} from "vuex";
import {Nullable} from "@/core/Common/Common";
export interface AppStateStates {
isLoading: boolean;
loadingErrorText: Nullable<string>;
}
export const appState: Module<AppStateStates, any> = {
namespaced: true,
state: {
isLoading: false,
loadingErrorText: ... |
import { Component, OnInit, Injector } from '@angular/core';
import { AppConsts } from '@shared/AppConsts';
import { AppComponentBase } from '@shared/common/app-component-base';
import { Router } from '@angular/router';
@Component({
selector: 'app-app-home',
templateUrl: './app-home.component.html',
styleU... |
import style from "../../../assets/style/homePage/aboutHome.module.css";
import AboutCard from "./AboutCard";
import { useTranslation } from "react-i18next";
import Slider from "react-slick";
function AboutHome({aboutData}){
const [t] = useTranslation();
let cards = aboutData?.map((item, index) =>
<Abou... |
package ru.spb.leti.g6351.kinpo.adressbook.main.forms;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map.Entry;
import javax.swing.text.JTextComponent;
import ru.spb.leti.g6351.kinpo.adressbook.data.DefaultDataSource;
import ru.spb.leti.g6351.kinpo.adressbook.data.IsDataSource;
import ru.spb.l... |
from flask import Flask, jsonify
import random
app = Flask(__name__)
quotes = {
"Albert Einstein": "The important thing is not to stop questioning. Curiosity has its own reason for existing.",
"Maya Angelou": "Still I rise.",
"Nelson Mandela": "The greatest glory in living lies not in never falling, but ... |
'use client';
import styles from './live.module.css';
import { useEffect, useRef, useState } from 'react';
import Image from 'next/image';
import Link from 'next/link';
import Hls from 'hls.js';
import Plyr from 'plyr';
import 'plyr/dist/plyr.css';
import useSWR from 'swr';
import FollowBtn from '@/util/followBtn';
ex... |
import time
import sys
import json
import os
import grpc
import bank_pb2
import bank_pb2_grpc
import concurrent.futures
class Customer:
def __init__(self, id, events):
self.id = id
self.events = events
self.recvMsg = list()
self.channel = None
self.stub = None
self... |
import { Test, TestingModule } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from '../entity/User';
import { UserService } from './user.service';
describe('UserService', () => {
let userService: UserService;
let userRepository: R... |
// Copyright 2024 The Cockroach Authors.
//
// 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 law or ag... |
import { useState, useEffect } from "react";
/**
* Finish the PlayerStatus component so that it follows the current status of the player.
* - The status can be either "online" or "away".
* - When the component first renders, the player should be "online".//
* - The toggleStatus function should change the status var... |
package com.geckotools.recipe.repository;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.geckotools.recipe.model.Recipe;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoco... |
# SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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
... |
package structural.decorator
abstract class LanternDecorator(val wrappe: ILantern): ILantern {
public override fun on(){
beforeOn()
wrappe.on()
afterOn()
}
public override fun off(){
beforeOff()
wrappe.off()
afterOff()
}
open fun beforeOn() {}
o... |
import { injectable } from "tsyringe";
import { JwtPayload, sign, verify } from "jsonwebtoken";
import { TokenManagerServiceInterface } from "../../domain/services/token-manager-service.interface";
import { VerifyTokenOutput } from "../../domain/services/verify-token.output";
@injectable()
export class TokenManagerSer... |
import { Construct } from 'constructs';
import { App, TerraformStack, Testing } from 'cdktf';
import * as NullProvider from './.gen/providers/null';
const token = process.env.TERRAFORM_CLOUD_TOKEN;
export class HelloTerra extends TerraformStack {
constructor(scope: Construct, id: string) {
super(scope, id);
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateQuotationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('quotations',... |
import express from 'express';
import path from 'path';
import hbs from 'hbs'
import 'dotenv/config'
const app = express();
const port = process.env.PORT;
const __dirname = path.resolve();
hbs.registerPartials(__dirname + '/views/partials');
app.set('view engine', 'hbs');
app.use( express.static( 'public' ));
ap... |
use std::vec;
use nannou::prelude::*;
use crate::boid::*;
const VISUAL_RANGE : f32 = 130.;
const SEPARATION_RANGE : f32 = 40.;
const V_LIM : f32 = 10.;
const COHESION_PERCENT : f32 = 20.;
const SEPARATION_PERCENT : f32 = 40.;
pub fn move_boids(flocks: &mut Vec<Boid>, width: &u32 , height:&u32) {
let mut v1: Vec2;... |
package dev.oddsystems.fpkata.todolist.webserver
import dev.oddsystems.fpkata.todolist.domain.ListName
import dev.oddsystems.fpkata.todolist.domain.ToDoItem
import dev.oddsystems.fpkata.todolist.domain.User
import dev.oddsystems.fpkata.todolist.domain.ZettaiHub
import dev.oddsystems.fpkata.todolist.ui.HtmlPage
import ... |
{% extends 'core/base.html' %}
{% load static %}
{% block title %}TICKETS{% endblock title %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-md-6">
<h1>Elementos Agregados</h1>
<table id="elementos-tabla" class="col-12... |
import React, {useContext} from 'react';
import { CartContext } from '../../context/CartContext';
import { Link } from 'react-router-dom';
import CartItem from '../CartItem/CartItem';
const Cart = () => {
const {cart,vaciarCarrito,eliminarItem,totalCarrito} = useContext(CartContext)
return (
<div>
... |
import { CronJob } from 'cron'
import { BigNumber, BigNumberish } from 'ethers'
import { ICronJobs, INode, INodeData, INodeOptionsValue, INodeParams, NodeType } from '../../src/Interface'
import { returnNodeExecutionData } from '../../src/utils'
import EventEmitter from 'events'
import axios from 'axios'
import { FLOWN... |
WITRAY
wmii-@VERSION@
May, 2010
%!includeconf: header.t2t
= NAME =
witray - The wmii system tray
= SYNOPSIS =
witray [-a <address>] [-NESW] [-HV] [-p <padding>] [-s <iconsize>] [-t tags] +
witray -v
= DESCRIPTION =
`witray` is a simple system tray program meant to be used with wmii.
It supports the Freedesktop S... |
import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {AuthService} from 'src/app/services/auth.service';
import {ApiService} from '../../../services/api.service';
import {NotificationService} from '../../../services/notification.service';
@Component({
selector: 'app-registe... |
import { fireEvent, render, screen } from "@testing-library/react";
import { GifExpertApp } from "../src/GifExpertApp";
describe("Pruebas en <GifExpertApp />", () => {
test("Debe de mostrar el componente correctamente", () => {
const { container } = render(<GifExpertApp />);
expect(container).toMatchSnapshot... |
Final Project for CPSC 431 Spring 2013, Yale University
Kenta Koga, Cezar Mocan
After loading final.lhs into ghci, run finalProject.
Important comments:
Controls (not case sensitive):
Same note as before: G
Next note in scale: H
Second next in scale: J
Third next in scale: K
Fourth next in scal... |
<?php
/**
* The template for displaying the Breadcrumb
*
* @package Catch Themes
* @subpackage Catch Base
* @since Catch Base 1.0
*/
if ( ! defined( 'CATCHBASE_THEME_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
/**
* Add breadcrumb.
*
* @action catchbase... |
import React from 'react';
import {mount} from 'enzyme';
import {expect} from '../../../../util/reconfiguredChai';
import InternationalOptIn from '@cdo/apps/code-studio/pd/international_opt_in/InternationalOptIn';
describe('InternationalOptInTest', () => {
const defaultProps = {
options: {
schoolCountry: [... |
programa
{
/*
2- Obtenha um número digitado pelo usuário e repita a operação de multiplicar ele por três
(imprimindo o novo valor) até que ele seja maior do que 100. Ex.: se o usuário digita 5,
deveremos observar na tela a seguinte sequência: 5 15 45 135.
*Autor: Melqui Santos - Turma 39
*Data: 29/10/21
*/... |
part of '../auth_part.dart';
enum AuthStatus { authenticated, unauthenticated }
@copyWith
@props
class AuthState extends Equatable {
final AuthStatus status;
final UserModel user;
const AuthState({
required this.status,
required this.user,
});
@override
List<Object?> get props => _$AuthStateProp... |
# encoding: utf-8
"""
@author: liaoxingyu
@contact: sherlockliao01@gmail.com
提取图像的特征,并保存
"""
import argparse
import glob
import os
import sys
import torch.nn.functional as F
import cv2
import numpy as np
import tqdm
from torch.backends import cudnn
sys.path.append('.')
from fastreid.config import get_cfg
from fast... |
C doesn't have any built-in boolean types, see: https://stackoverflow.com/a/1921557
Standard C header files:
<assert.h> Program assertion functions
<ctype.h> Character type functions
<locale.h> Localization functions
<math.h> Mathematics functions
<setjmp.h> Jump functions
<signal.h> Signal handli... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.15;
import 'forge-std/Test.sol';
import {UniversalRouter} from '../../contracts/UniversalRouter.sol';
import {Payments} from '../../contracts/modules/Payments.sol';
import {Constants} from '../../contracts/libraries/Constants.sol';
import {Commands} from '../... |
import React, { useState, useEffect } from "react";
import Button from "@mui/material/Button";
import IconButton from "@mui/material/IconButton";
import Accordion from "@mui/material/Accordion";
import AccordionDetails from "@mui/material/AccordionDetails";
import AccordionSummary from "@mui/material/AccordionSummary";... |
import React from "react";
import PropTypes from "prop-types";
import style from "./FeedbackOptions.module.css";
const FeedbackOptions = ({ options, onLeaveFeedback }) => {
return (
<>
{options.map((buttonList) => (
<button
type="button"
onClick={onLeaveFeedback}
key={... |
// Create Twinkling Stars
function createTwinklingStars() {
const starsContainer = document.querySelector('.stars');
const numberOfStars = window.innerWidth * window.innerHeight / 8000;
for (let i = 0; i < numberOfStars; i++) {
const star = document.createElement('div');
const size = Math.ra... |
<?php
// OOP 정적 METHOD, 정적 PROPERTY STATIC
class Car{
private static $count = 0;
private static $carList = [];
private $name;
function __construct($name){
$this->name = $name;
self::$count = self::$count + 1;
array_push(self::$carList, $name);
}
function message(){
echo "<p> {$this->name}가 ... |
const express = require('express');
const path = require('path');
const morgan = require('morgan');
const cookieParser = require('cookie-parser');
const session = require('express-session');
const flash = require('connect-flash');
const ColorHash = require('color-hash');
require('dotenv').config();
const webSocket = ... |
<?php
declare(strict_types=1);
namespace App\Tests\Controller\Bonus;
use App\Entity\Bonus\BonusFactory;
use App\Repository\Bonus\BonusRepository;
use App\Tests\Controller\Traits\ProcessResponseTrait;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DeleteBonusControllerTest extends WebTestCase
{
use P... |
import React, { useState } from "react";
import { View, Text, StyleSheet, TextInput, FlatList, Image, TouchableOpacity } from 'react-native'
import { useNavigation } from "@react-navigation/native";
import { Foundation } from '@expo/vector-icons';
import ShowScreen from "../Screen/ShowScreen";
const Resultlist = ({ ti... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('menu_items', function (Blueprint $table) {
... |
<template>
<div
class="h-screen w-screen flex items-center justify-center text-center overflow-hidden"
>
<div>
<div class="loader">
<div v-for="n in 5" :key="n" class="circle" />
</div>
<h1 class="mt-32 text-2xl font-medium letter tracking-wide">
Restarting
</h1>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.