text stringlengths 184 4.48M |
|---|
extends Node2D
signal cave_exited(spawn_at)
var max_air: = 150.0
var air_timer: = max_air #air timer set to 2:30 minutes (150 seconds)
var inverse_air_timer: = 0.0
var playing_time_up_music: = false
func _ready() -> void:
$AudioStreamPlayer.play(0.0) #play the song at the start of the level
_connect_coins()
_co... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, NgModel, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { Pokemon } from 'src/app/class/pokemon';
import { ApiPokemonService } from 'src/app/services/api-pokemon.service';
import { ToastService } fr... |
package it.betacom.dao.impl;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import it.betacom.dao.EditoreDao;
import it.betacom.model.Ed... |
// -- Inferred error type `any` --
{
try {
throw new Error('Invalid city ID');
} catch (error) {
// This will output `undefined`
console.error(error.something);
}
}
// -- Explicit error type `unknown` --
{
try {
throw new Error('Invalid city ID');
} catch (error: unknown) {
console.erro... |
import os
from datetime import datetime
from backend.main import app
from backend.routers.rates import get_and_feel_rates
import pytest
from fastapi.testclient import TestClient
from fastapi import status
import requests_mock
from backend.models import Rates
from backend.routers.rates import get_db
from test.db_cone... |
const LinkList = () => {
let head = null;
let length = 0;
const Error = () => {
return "no linked list found yet";
}
const append = (value) => {
let node = NodeInsert(value);
if (head === null) {
head = node;
} else {
let current = head;
... |
// import { html } from 'lit';
import { expect } from '@open-wc/testing';
import { MyUnitTestedComponent } from '../../src/index.js';
window.customElements.define('my-unit-tested-component', MyUnitTestedComponent);
describe('MyUnitTestedComponent', () => {
let component: MyUnitTestedComponent;
beforeEach(() => {... |
---
title: Quickstart
permalink: /docs/using-turing/quick-start
redirect_from: docs/1-quickstart/
weave_options:
error : false
---
# Probabilistic Programming in Thirty Seconds
If you are already well-versed in probabilistic programming and want to take a quick look at how Turing's syntax works or otherwise just wa... |
import React, { useEffect } from 'react';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Row, Col } from 'reactstrap';
import { Translate } from 'react-jhipster';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { getEntity } from './avis.reducer';
import { APP_D... |
import React, { useState } from "react";
import { lazy, Suspense } from "react";
import Navbar from "./Navbar";
import { Routes, Route } from "react-router-dom";
import { Movies } from "./Movies";
import ViewTops from "./ViewTops";
const Home = lazy(() => import("./Home"));
const Search = lazy(() => import("./Search"... |
# 演变的操作系统外壳 v.s. 稳定的操作系统内核
操作系统外壳(OS Interface, OS Shell)和操作系统内核(OS Kernel)是操作系统的两个重要组成部分。
操作系统外壳是操作系统提供给用户/应用进行交互的外壳,通常包括命令行外壳(Command Line Interface,CLI, 即命令行界面)和图形用户外壳(Graphical User Interface,GUI,即图形用户界面)两种形式。命令行外壳是一个纯文本界面,用户通过键盘输入命令来执行操作系统的功能。图形用户外壳是一个图形化的界面,用户可以通过鼠标或触摸屏来执行操作系统的功能。操作系统外壳的设计直接影响用户的使用体验和操作效率。
操作... |
// HelloWorld.vp
//;
//; # Any Line that starts with a slash slash semi-colon is perl
//; # So we can follow our good habits from before
//; use strict ; # Use a strict interpretation
//; use warnings FATAL=>qw(all); # Turn warnings into errors
//; use diagnostics ; # Print helpful in... |
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:flutter_application_1/atv/editar_atv.dart';
class TaskList extends StatefulWidget {
@override
_TaskListState createState() => _TaskListState();
}
class _TaskListState extends State<TaskList> {
... |
#include "Sandbox2D.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#include <imgui/imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Sandbox2D::Sandbox2D()
: Layer("Sandbox2D"), m_CameraController((float)1280 / 720), m_ParticleSystem(10000)
{
}
void Sandbox2D::OnAttach()
{
LWE_PROFILE_FUN... |
#######################################
# Name: Argon
# Argument and and configuration management helper functions
# Noble like the gas
# Authors: ["Christopher Mortimer <christopher@mortimer.xyz>"]
#######################################
#######################################
# Parse a YAML configuration file a... |
```
b) Engramas neuronales y teoría de la mente
```
La teoría de la mente integra, pues, gran cantidad de conocimientos.
Pero no todos tienen la misma importancia. Destacan con fuerza la
fenomenología de la actividad psíquica y del comportamiento, por una
parte, y, por otra, la neurología en todas sus vertientes. Es in... |
const express = require("express");
const cors = require("cors");
const { v4: uuid, validate: isUuid } = require('uuid');
const app = express();
app.use(express.json());
app.use(cors());
const repositories = [];
app.get("/repositories", (request, response) => {
return response.json(repositories);
});
app.post("... |
/* HackTM - C++ implementation of Numenta Cortical Learning Algorithm.
* Copyright (c) 2010-2011 Gianluca Guida <glguida@gmail.com>
*
* This software is released under the Numenta License for
* Non-Commercial Use. You should have received a copy of the Numenta
* License for Non-Commercial Use with this software ... |
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int N, M;
int maze[101][101];
int visited[101][101];
int dist[101][101];
int dx[4] = { 0,0,1,-1 };
int dy[4] = { 1,-1,0,0 };
queue<pair<int, int>> q;
void bfs(int s, int e)
{
visited[s][e] = 1;
q.push(make_pair(s, e));
dist[s][e]++;
... |
import Head from 'next/head';
import { Container, Row, Col } from 'react-bootstrap';
import pokemon from '../../../../pokemon.json';
import Image from 'next/image';
import axios from 'axios';
const getPokemon = async (key: any, name: any) => {
const { data } = await axios.get(`http://localhost:3001/api/pokemon?name=... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { Schedule } from 'src/app/entities/schedule';
import { ScheduleManagement } from 'src/app/entities/schedule-management';
import { Specialty } from 'src/app/entities/specialty';
im... |
import React, { useContext, useEffect, useRef, useState } from 'react'
import { Button, Col, Form, FormGroup, Input, Label, Row } from 'reactstrap'
import validationdata from '../JSON/validation.json'
import { Cardcontext } from '../App'
import CardComponent from './CardComponent'
const FormComponent = () => {
let ... |
<%@page import="kr.or.ddit.vo.MemberVO"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="prod" scope="request" type="kr.or.ddit.vo.ProdVO" />
<table>
<tr>
<... |
import * as cdk from 'aws-cdk-lib';
import * as apig from 'aws-cdk-lib/aws-apigateway';
import * as cognito from 'aws-cdk-lib/aws-cognito';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as helpers from './helperScripts';
import { Construct } from 'constructs';
export class restGatewayNestedStack extends c... |
import { Test, TestingModule } from '@nestjs/testing';
import { OpenaiService } from './openai.service';
import { ConfigModule } from '@nestjs/config';
import { HttpService } from '@nestjs/axios';
import { LoggerModule } from 'nestjs-pino';
import { RequestCacheService } from '../../utils/services/request-cache.service... |
package com.charlyj21.colasegura
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2
import com.google.android.material.tabs.TabLayout
import com... |
import React, { ChangeEvent, useEffect } from 'react'
import FormStyle from "../../../styles/users/_Form.module.scss"
import {passwordInput} from "../../../store/RegisterSlice"
import { useSelector, useDispatch } from 'react-redux';
import { CheckMarkGold, CheckMarkGray } from '../../Atoms/CheckMark';
const Navigation... |
import useSWRMutation from "swr/mutation";
import {
ConnectionWithId,
tryParseConnectionWithId,
} from "@/app/types/Connection";
const updateConnection = async (
url: string,
{ arg }: { arg: ConnectionWithId },
) => {
const response = await fetch(url, {
method: "PATCH",
body: JSON.stringify(arg),
}... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
import React from 'react'
import PropTypes from 'prop-types'
import classNam... |
import spacy
import requests
from flask_cors import CORS
from flask import Flask, request
from youtube_transcript_api import YouTubeTranscriptApi
app = Flask(__name__)
CORS(app)
SMMRY_API_KEY = '<API_KEY>'
SMMRY_API_URL = 'http://api.smmry.com/'
DEFAULT_ERRORS = {
"NO_TRANSCRIPT_FOUND": {
"error": "No tr... |
<template>
<div class="flex justify-between">
<h1
class="text-4xl font-black text-gray-800"
id="modal-create-account"
>
Crie uma conta
</h1>
<button
@click="close"
class="text-4xl text-gray-600 focus:outline-none"
>
×
</button>
</div>
<div class="m... |
from django.shortcuts import render, get_object_or_404
from .models import Todo
from .serializers import TodoSerializer
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework import status
@api_view(["GET", "POST"])
def todo_list(request):
if request.method... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SUTEditableTextBox.h"
#include "SlateBasics.h"
#include "../SUTStyle.h"
#if !UE_SERVER
class UUTLocalPlayer;
class UNREALTOURNAMENT_API SUTChatEditBox : public SUTEditableTextBox
{
SLATE_BEGIN_ARGS(SUTChatEditBox)
: _Style(&SUTSty... |
import { Token } from './configs';
export const Actions = [
'swap',
'collect',
'deposit',
'withdraw',
'borrow',
'repay',
'flashloan',
'liquidate',
'bridge',
'register',
'renew',
'list',
'buy',
'offer',
'trade',
'sow',
'createLiquidityPool',
'lock',
'unlock',
'update',
'useCon... |
import React from 'react';
import { connect } from 'react-redux';
import { menuItems } from '../config/menu.jsx';
import { domainPath } from '../config/system.jsx';
import { encodeParams } from '../util/http.jsx';
import { logSource } from '../config/common.jsx';
import Select from '../component/select.jsx';
import Sea... |
//AUTHOR: Nickolas Davidson
//COURSE: CPT 167
//PURPOSE: report
//CREATEDATE: 09/29/2020
package edu.cpt167.davidson.exercise6;
import java.util.Scanner;
public class DavidsonMainClass
{
public static final double TAX_RATE = .075;
public static final String DISCOUNT_NAME_MEMBER = "Member";
public static final S... |
package com.lilu.multithread;
import java.util.LinkedList;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class ConsumerProducer2<T> {
final private LinkedList<T> list = new LinkedL... |
---
title: "Getting Started with Terraform"
date: 2023-06-16T08:35:01-06:00
tags: ["software", "infrastructure"]
---
In getting moving with Terraform, [you'll want to have an eye on what you're going to do with your state](/posts/terraform-state-management). Proper management and planning is going to be critical for a... |
In Python, a return statement is used to return a value from a function.
When a return statement is executed, the function immediately exits, and any subsequent code in the function is not executed.
Here's an example of a function that returns the sum of two numbers:
def add_numbers(x, y):
sum = x + y
return ... |
package Graphs;
import java.util.*;
// Topological is done on Directed Acyclic Graphs
// A Java program to print topological
// sorting of a graph using indegrees
import java.util.ArrayList;
// Class to represent a graph
class Graph {
// No. of vertices
int V;
// An Array of List which contains
//... |
/\* This is no longer called by us anymore because it interferes with the pixel manipulation of floor/ceiling texture mapping.
https://stackoverflow.com/a/46920541/1645045 https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
sharpenCanvas() { // Set display size (css pixels). let sizew = this.disp... |
package br.com.salomaotech.genesys.controller.fornecedor;
import br.com.salomaotech.genesys.model.fornecedor.FornecedorModelo;
import br.com.salomaotech.genesys.view.JFfornecedor;
import br.com.salomaotech.sistema.jpa.Repository;
import br.com.salomaotech.sistema.swing.PopUp;
import org.junit.Test;
import static org.j... |
namespace MarketVault.Core.Services.Impementations
{
using MarketVault.Core.Exceptions;
using MarketVault.Core.Services.Interfaces;
using MarketVault.Infrastructure.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
//... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "dtd/dblite.dtd" [
<!ENTITY % Symbols SYSTEM "Symbols.ent">
%Symbols;
]>
<chapter id="Errors">
<title>Error messages</title>
<indexterm><primary>Errors</primary></indexterm>
<simplesect>
<variablelist>
<varlistentry id="Error01">
<term>Error 01... |
package sq.mayv.aladhan.ui.screens.home.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compos... |
package com.example.unittesting.utils.quotes
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import app.cash.turbine.test
import junit.framework.TestCase.assertEquals
import kotlinx.coroutines.delay
import kotlinx.coroutines... |
package com.ratatouille.Ratatouille23.user;
import com.ratatouille.Ratatouille23.exception.ApiRequestException;
import com.ratatouille.Ratatouille23.order.OrderRepository;
import com.ratatouille.Ratatouille23.order.OrderResponse;
import com.ratatouille.Ratatouille23.order.OrderResponseMapper;
import jakarta.transactio... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... |
package org.chen.securitydemo.config;
import org.chen.securitydemo.controller.CustomAccessDecisionManager;
import org.chen.securitydemo.controller.CustomFilterInvocationSecurityMetadataSource;
import org.chen.securitydemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... |
#include<iostream>
#include<stack>
#include<math.h>
using namespace std;
//MinsSteptoOne
int MinStepsTo1(int n){ //Brute Force Recursion
//Base Case
if(n<=1){
return 0;
}
int x = MinStepsTo1(n-1);
int y = INT32_MAX, z = INT32_MAX;
if(n%3 == 0){
y = MinStepsTo1(n/... |
from http import client
import os
from routes.text_search import text_search
import flask
from flask import *
from flask_bcrypt import Bcrypt
from flask_session import Session
from flask_mail import Mail, Message
from itsdangerous import URLSafeTimedSerializer, SignatureExpired
from model import db , User ,Tracking , ... |
import { BrowserRouter, Routes, Route, Link } from "react-router-dom";
import Home from "./pages/Home";
import About from "./pages/About";
import Posts from "./pages/Posts";
import History from "./pages/History";
import PostDetail from "./components/PostDetail";
const App = () => {
const posts = [
{
... |
---
title: Adicionar marca d'água à seção em documentos do Word
linktitle: Adicionar marca d'água à seção em documentos do Word
second_title: API GroupDocs.Watermark .NET
description: Adicione facilmente marcas d'água a documentos do Word usando GroupDocs.Watermark for .NET. Proteja seu conteúdo com este guia simples.
... |
<!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>portfolio</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://c... |
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>if, unless</h1>
<table border="1">
<tr>
<th>count</th>
<th>username</th>
<th>age</th>
</tr>
<tr th:each="user, userStat : ${users}">
<td th:text="${userStat.count}">... |
---
title: Redirects
---
Redirect URLs through one of the following methods:
- **Rules:** Rules allow you to define how a URL will be redirected through the [URL Redirect feature](/applications/performance/rules/features#url-redirect). This feature is especially useful when URL redirects should only occur under spec... |
import { createComponentRenderer } from '@/__tests__/render';
import { useNDVStore } from '@/stores/ndv.store';
import { createTestingPinia } from '@pinia/testing';
import userEvent from '@testing-library/user-event';
import { fireEvent } from '@testing-library/vue';
import { createPinia, setActivePinia } from 'pinia';... |
import { TextField,Button, Alert } from '@mui/material';
import React from 'react';
import alert from '../utility/alerts';
import { Navigate } from "react-router-dom";
const RegisterPage = () => {
const [redirect, setRedirect] = React.useState(false);
const name = React.useRef();
const phone = React.useRef();
... |
====== LU04.A03 - Story ======
<WRAP center round todo 60%>
Schreiben Sie ein Programm das eine Geschichte erzählt.
</WRAP>
===== Auftrag =====
Schreiben Sie ein Programm, das den Benutzer nach dem Namen einer Person und ihrem Beruf fragt. Das Programm gibt dann eine kurze Geschichte aus.
Die Ausgabe muss wie unten ... |
Docker Installation
-----------------------
1.
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
2.
apt install docker.io -y
systemctl restart docker
systemctl enable docker.service
docker info
docker version
docker --version
docker version --format '{{.Server.Version}}'
docker build -t(tag) image... |
import * as Yup from "yup";
type Message = string;
type FieldName = string;
type FieldValue = FieldValues[FieldName];
type FieldValues = Record<FieldName, any>;
type FieldError = {
message?: Message;
};
type FieldErrors<T extends FieldValues = FieldValues> = {
[K in keyof T]: FieldError;
};
export type Resolve... |
import "./App.css";
import { Navbar } from "./layouts/NavbarAndFooter/Navbar";
import { Footer } from "./layouts/NavbarAndFooter/Footer";
import { SearchBooksPage } from "./layouts/SearchBooksPage/SearchBooksPage";
import { HomePage } from "./layouts/HomePage/HomePage";
import { Redirect, Route, Switch, useHistory } fr... |
import { createServer } from "http";
import { Server, Socket } from "socket.io";
import AuthController from "../controllers/authController.js";
import ChatMember from "../models/chatMembers.model.js";
import ChatMessage from "../models/chatMessages.model.js";
import Chat from "../models/chats.model.js";
import User fro... |
const OPEN_WEATHER_API_KEY = 'b9f5f022c1e0195a8a3b75d6bf2d2200'
export interface OpenWeatherData {
name: string
main: {
feels_like: number
humidity: number
pressure: number
sea_level: number
temp: number
temp_max: number
temp_min: number
}
weather: {
description: string
icon... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// ReSharper disable CheckNamespace
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable CommentTypo
// ReSharper disable IdentifierTypo
//... |
import Select from '@/components/ui/Select'
import CreatableSelect from 'react-select/creatable'
import type { InputActionMeta, ActionMeta } from 'react-select'
type Option = {
value: string
label: string
color: string
}
const colourOptions = [
{ value: 'ocean', label: 'Ocean', color: '#00B8D9' },
... |
import { Component, Inject, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Location } from '@angular/common';
import { SaloniService } from 'src/app/Services/saloni.service';
import { User } from 'src/app/Models/User... |
@extends('layouts.app')
@section('content')
<div class="flex justify-center">
<div class="w-8/12 bg-white p-6 rounded-lg">
<div class="mb-4">
<a href="{{route('users.posts', $post->user)}}" class="font-bold">{{$post->user->name}}</a><span class="text-gray-600... |
#pragma once
#include "piola_kirchhoff.h"
namespace flesh {
struct BaseMaterial
{
double lambda; // Lame's first parameter
double mu; // Lame's second parameter
virtual ~BaseMaterial() = default;
virtual void compute_piola_kirchhoff_stress(
Eigen::Matrix3d const& F,
Eigen::Matrix3d& P) const = 0;
... |
import { Link } from 'react-router-dom';
import { motion } from 'framer-motion';
type BaseProps = {
addBase: (base: string) => void;
pizza: {
base: string;
toppings: string[] | [];
}
}
const Base = ({ addBase, pizza }: BaseProps) => {
const bases = ['Classic', 'Thin & Crispy', 'Thick Crust'];
retur... |
import { MOCKED_URLS, handlerOverrides } from '@/mocks/handlers';
import { server } from '@/mocks/server';
import { modelToJsonApi } from '@datx/jsonapi';
import { flightsFactory } from '__mocks__/factories';
import { axe } from 'jest-axe';
import { HttpResponse, http } from 'msw';
import { render, screen, waitForEleme... |
import React from 'react';
import Stack from '@mui/material/Stack';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import _round from 'lodash/round';
import { styled, useTheme } from ... |
package com.indy8.petplanner.clients;
import com.indy8.petplanner.config.ClientMapper;
import com.indy8.petplanner.dataaccess.ClientRepository;
import com.indy8.petplanner.domain.Client;
import jakarta.websocket.server.PathParam;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntit... |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Abstract class for the link transformations plugins
*
* @package PhpMyAdmin-Transformations
* @subpackage Link
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/* Get the transformations interface */
require_once 'libraries/plugins/TransformationsPlugin.class.... |
package ace;
import ace.AceMacro;
import ace.types.*;
import ace.types.AceLangRule;
import haxe.Constraints.Function;
import haxe.extern.EitherType;
/**
* Helpers for building syntax highlighter rules easier.
* @author YellowAfterlife
*/
class AceHighlightTools {
public static var jsThisAsRule(get, never):AceLangR... |
/** \file main.c
* \brief Program driver
*
* Executes commands given via the command line.
*
* Use `t64fix --help` for builtin help.
*/
/*
t64fix - a small tool to correct T64 tape image files
Copyright (C) 2016-2021 Bas Wassink <b.wassink@ziggo.nl>
This program is free software; you can redistribute it an... |
#!/usr/bin/python
import argparse
import os
import torch
import torch.optim as optim
import torch.nn as nn
from torch.autograd import Variable
import torchvision
import torchvision.datasets as datasets
import torchvision.transforms as transforms
from tensorboard_logger import configure, log_value
from models impor... |
---
description: "Simple Way to Make Tasty PULAO. (FRIED BASMATI RICE). JON STYLE"
title: "Simple Way to Make Tasty PULAO. (FRIED BASMATI RICE). JON STYLE"
slug: 974-simple-way-to-make-tasty-pulao-fried-basmati-rice-jon-style
date: 2022-02-07T14:21:20.735Z
image: https://img-global.cpcdn.com/recipes/c466fec2e606c30f/68... |
// Project identifier: 43DE0E0C4C76BFAA6D8C2F5AEAE0518A9C42CF4E
#ifndef SORTEDPQ_H
#define SORTEDPQ_H
#include <algorithm>
#include <iostream>
#include <utility>
#include "Eecs281PQ.h"
// A specialized version of the priority queue ADT that is implemented with an
// underlying sorted array-based container.
// Note: ... |
import React from "react";
import "./Navbar.css";
import { Link } from "react-router-dom";
import { useLogout } from "../../hooks/useLogout";
import { useAuthContext } from "../../hooks/useAuthContext";
import topshelfLogo from "../../assets/topshelfLogo.png";
import BrowseDropdown from "./BrowseDropdown";
function Na... |
<template>
<div>
<v-card class="custom-card-user border-grey">
<v-card-text>
<v-row>
<v-col md="12" sm="12" lg="12" text-md-left>
<div class="row">
<div class="col-md-4 my-0 py-0" v-if="detailparrainage.numero_cedeao">
<p class="info-p... |
import bisect
from typing import *
class Solution:
def jobScheduling(self, startTime: List[int], endTime: List[int], profit: List[int]) -> int:
self.max_time = max(endTime)
self.sorted_start_times = sorted(list(set(startTime)))
self.starttime_dict = {}
for i in range(len(startTime)... |
import React from 'react';
import { Weather } from '../../types';
const convertToCelsius = (f: string | number) => {
return (
((+f - 32) * .5556).toFixed(1)
);
};
type CurrentWeatherProps = {
time?: Date;
weather?: Weather;
};
export default function CurrentWeather(props: CurrentWeatherProps) {
if (!pro... |
<template>
<h1>Button示例</h1>
<h2>不同样式(props: theme)</h2>
<div>
<Button>default</Button>
<Button theme="button">button</Button>
<Button theme="primary">primary</Button>
<Button theme="danger">danger</Button>
<Button theme="link">link</Button>
<Button theme="text">text</Button>
</div>
<h2>不同大小(props: size)</h... |
<template>
<a-modal
:visible="visible"
title="新增格组件"
cancelText="取消"
okText="提交"
@ok="submit"
@cancel="cancel"
>
<a-form
ref="formRef"
:model="formState"
:rules="formRules"
:label-col="labelCol"
:wrapper-col="wrapperCol"
>
... |
package com.dariomartin.kotlinexample.adapters
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.dariomartin.kotlinexample.R
import com.dariomartin.kotlinexample.domain.model.Forecast
import com.dariomartin.kotlinexample.d... |
//GLOBAL
* {
padding: 0;
margin: 0;
box-sizing: border-box;
outline: none;
}
//COLOR
$purple-color: #b61984;
$dark-color: #181818;
$white-color: #fff;
$teacher-list-bg: #dcd1f3;
//FONT SIZE
$fs-normal: 16px;
// FONT-WEIGHT
$fw-400: 400;
$fw-600: 600;
$f... |
---
title: Teaching R with Pokémon Go data
date: 2018-11-04
slug: r-train-pkmn
categories:
- rmarkdown
- rstudio
- tidyverse
- videogames
---
{fig-alt="A badly hand-drawn image of the Pokémon Caterpie, Clefairy, Geodude, Nidoran, Pikachu, Ponyta and Weedle." width="100%"}
## tl;dr
I w... |
<!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>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#root ... |
import 'package:flutter/material.dart';
class ErrorBox extends StatelessWidget {
const ErrorBox({Key? key, this.message}) : super(key: key);
final String? message;
@override
Widget build(BuildContext context) {
if (message == null) {
return Container();
} else {
return Container(
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2024/1/4 21:12
# @Author : Laiyong(Archie) Cheng
# @Site :
# @File : 08_基础时间线柱状图开发.py
# @Software: PyCharm
from pyecharts.charts import Bar, Timeline
from pyecharts.options import LabelOpts
from pyecharts.globals import ThemeType
# 使用Bar构建基础柱状图
bar1 =... |
/* eslint-disable react/no-unstable-nested-components */
import React from 'react';
import { Collapse } from 'antd';
import { useRouter } from 'next/router';
import classNames from 'classnames';
import AddressCard from 'components/AddressCard';
import Icon, { EIconColor, EIconName } from 'components/Icon';
import Draw... |
%../../../../../logics/hlm%
[
$~"Natural numbers" = $../Natural/"Natural numbers",
$~number = $../Natural/number,
$~sum = $../Natural/sum
]
/**
* @remarks This is essentially the standard definition of integers as equivalence classes of pairs of natural numbers. We just use a notation that highlights the role ... |
<template>
<div class="space-y-10 divide-y divide-gray-900/10">
<div class="grid grid-cols-1 gap-x-8 gap-y-8 md:grid-cols-3">
<div class="px-4 sm:px-0">
<h2 class="text-base font-semibold leading-7 text-gray-900">
Product Licenses
</h2>
<p class="mt-1 text-sm leading-6 text... |
/*
* Copyright 2023 Pieter van den Hombergh {@code <pieter.van.den.hombergh@gmail.com>}.
*
* 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... |
"""
Created on August 19,2023
@author: Nicolás Peña Mogollón - María Camila Lozano Gutiérrez
"""
from co.edu.unbosque.model.TreeNode import TreeNode
class BinaryTree:
def insert(self, root, key):
"""
Crea un nuevo nodo con el valor dado y lo inserta en el árbol en relación al
nodo actual.... |
//fa riferimento alle risposte della pagina precedente
const risposteDate = localStorage.getItem('risposte');
// divide in un array le risposte in stringa
const arrayRisposte = risposteDate.split(',');
//viariabile globale
let ctxGrafico;
// costanti HTML
let documentRisultatoPositivo = document.querySelector('#corre... |
import React, { Component } from 'react'
import Loader from '../../Loader/Loader';
// import { Link } from "react-router-dom";
// const image = window.location.origin + "/Assets/no-data.svg";
export class Shippingcost extends Component {
constructor() {
super();
this.state = {
shipping: [],
loadin... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if title %}
<title>CH Portal-{{ title }}</title>
{% else %}
<title>CH Portal</title>
{% endif %}
<link type="text/css" href="{{ url_for('static... |
from vixengram.internationalization.i18n import ProxyLanguage
from routers.common.urls import Urls
from vixengram.api import BotAPI
from vixengram.filters.command import CommandFilter
from vixengram.keyboards.buttons import KeyboardButton
from vixengram.keyboards.inline_keyboard import InlineKeyboard
from vixengram.ro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.