text stringlengths 184 4.48M |
|---|
/* eslint-disable max-len */
/* eslint-disable react/jsx-one-expression-per-line */
import React, { useEffect, useRef } from 'react';
import { useSelector } from 'react-redux';
import Button from '../../common/components/Button/Button';
import Link from '../../common/components/Link/Link';
import { LinkTypes } from '..... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { UsersService } from "../service/users.service";
import { DatePipe } from '@angular/common';
import { MatDialog } from '@angular/material/dialog';
import { UpdatepopupComponent } from "../updatepopup/updatepopup... |
import { createContext ,useState} from "react";
import axios from "axios";
const BooksContext =createContext();
function Provider({children}){
const[books,Setbooks]=useState([]);
const fetchBooks=async () =>{
const response=await axios.get('http://localhost:3001/books')
Setbooks(response.data);
... |
import { BigNumber } from "@ethersproject/bignumber";
import axios from "axios";
import { useCallback, useEffect, useState } from "react";
import {
VaultLiquidityMiningMap,
VaultOptions,
} from "shared/lib/constants/constants";
import { getSubgraphqlURI } from "shared/lib/utils/env";
import { StakingPool } from "s... |
import { manage } from 'manate';
import axios from 'axios';
import { message } from 'antd';
import path from 'path';
const github = axios.create({
baseURL: 'https://api.github.com',
});
import CONSTS from './constants';
export interface Token {
access_token: string;
}
export interface User {
login: string;
}
... |
const path = require('path'),
http = require('http'),
express = require('express'),
socketio = require('socket.io'),
Filter = require('bad-words'),
{generateMessage, generateLocationMessage} = require("./utils/messages"),
{addUser, getUser, removeUser, getUsersInRoom} =... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using MvcDynamicForms.Fields;
namespace MvcDynamicForms.Demo.Controllers
{
public class TestController : Controller
{
public ActionResult Index()
{
... |
---
title: Vsftpd on Arch Linux
category: memo
slug: vsftpd-on-arch-linux
date: 2014-09-27
---
Vsftpd is one of the packages in Arch Linux offical repository.
To enable SSL/TLS along with vsftpd, please do the following.
## Installation
Install vsftpd via pacman
```bash
pacman -S vsftpd
```
Generate an SSL cert
`... |
'''Defines the Mindstorms robot class'''
# pylint: disable = C0103
import math
from math import sin, cos
import bluetooth
import numpy as np
from . import robot
HEADER = b'\x01\x00\x81\x9E'
JOINT_LIMITS = [180, 120, 120]
PORT = 1
STALL_THRESHOLD = 1
class Mindstorms(robot.Robot):
'''Robot class for LEGO Mindstor... |
import collections
import serial
MeasureScan = collections.namedtuple('MeasureScan', ['length', 'width', 'height', 'weight', 'dimweight', 'factor'])
# See documentation for CubiScan 125
CS_PREFIX = bytes([0x02])
CS_SUFFIX = bytes([0x03, 0x0d, 0x0a])
def cmd(char):
b2 = bytes([ord(char)])
return CS_PREFIX + ... |
import { userVoteToConstant } from "../constants";
import { formatDateStandard } from "../utils/dates";
import { Hub, parseHub } from "./hub";
import {
AuthorProfile,
RHUser,
parseAuthorProfile,
parseUnifiedDocument,
parseUser,
TopLevelDocument,
UnifiedDocument,
ID,
RhDocumentType,
ApiDocumentType,
... |
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
<variable
name="vm"
type="com.ramo.simplegithub.ui.UserViewModel" />
<variable
name="item"
... |
package com.si.googleads.advice;
import com.mongodb.MongoBulkWriteException;
import com.mongodb.MongoSocketException;
import com.si.googleads.exceptions.ApiRequestException;
import com.si.googleads.exceptions.DatabaseResourceException;
import com.si.googleads.response.ErrorResponse;
import org.springframework.core.cod... |
## Records
Uniffi records are data objects whose fields are serialized and passed over the FFI. In UDL, they may be specified with the `dictionary` keyword:
```webidl
dictionary OptionneurDictionnaire {
string mandatory_property;
string defaulted_property = "Specified by UDL or Rust";
};
```
They are implemented... |
#pragma once
#include <cstdlib>
#include <algorithm>
#include <iostream>
template <typename T>
class SimpleVector {
public:
SimpleVector()
:begin_(nullptr),
end_(nullptr),
capacity_(0) {}
explicit SimpleVector(size_t size){
begin_ = new T[size];
end_ = begin_ + size;
... |
import { HashTable } from "./helpers";
import { Question } from "./question";
import { LocalizableString } from "./localizablestring";
/**
* A class that describes the Expression question type. It is a read-only question type that calculates a value based on a specified expression.
*
* [View Demo](https://surveyjs.i... |
import { ArrowBack, Delete, RestartAlt, Save } from "@mui/icons-material"
import { LoadingButton } from "@mui/lab"
import {
Autocomplete,
Box,
Button,
Card,
Container,
FormControl,
Grid,
InputLabel,
MenuItem,
Select,
SelectChangeEvent,
TextField,
Typography,
} from "@mui/material"
import { Dat... |
import Backbone from 'backbone';
import HtmlUtils from 'edx-ui-toolkit/js/utils/html-utils';
import pageTpl from '../../../templates/learner_dashboard/program_header_view.underscore';
import MicroMastersLogo from '../../../images/programs/micromasters-program-details.svg';
import XSeriesLogo from '../../../images/pro... |
from typing import Callable
import uvloop
from pyrogram import idle
from pyrogram.handlers import MessageHandler
from src.custom_client import CustomClient
from src.loggers import logger
from src.message_emoji_manager import MessageEmojiManager
from src.user_settings import UserSettings
def register_msg_handler(cus... |
package com.xiaochao.CustomerManagementSystem;
public class CustomerView {
private CustomerList customers = new CustomerList(10);
public CustomerView() {
Customer cust = new Customer("张三", '男', 30, "010-56253825",
"abc@email.com");
customers.addCustomer(cust);
}
//进入主菜单... |
"use client";
import Link from "next/link";
import MainNavigation, { NavigationMenuItem } from "../MainNavigation";
import { useState } from "react";
import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline";
import { mainmenu } from "@/lib/mocks";
import { Dialog, DialogContent } from "@radix-ui/react-dialog... |
from copy import copy
import numpy as np
from .util import intersperse, plaintext2dashdots, wpm2dit_time, dashdot2char
from .timings_type import *
def dashdotchar2timing(dashdotchar, label=None):
"""Convert a '.', a '-', or a ' ' to a Timing
object encoding duration and an optional label"""
if dashdotcha... |
var express = require('express');
var router = express.Router();
const models = require('../models');
var jwt = require('jsonwebtoken');
var { secretKey, Response, tokenValid } = require('../helpers/util')
router.post('/auth', async function (req, res, next) {
try {
const { email, password } = req.body
cons... |
from flask import Flask, render_template, request, send_file
from qrcode import constants
import qrcode
from io import BytesIO
app = Flask(__name__, template_folder='templates')
@app.route('/')
def index():
return render_template('index.html')
@app.route('/generate_qr', methods=['POST'])
def generate_qr():
#... |
import { useState } from "react";
import reactLogo from "./assets/react.svg";
import viteLogo from "/vite.svg";
import "./App.css";
import Header from "./components/Header";
import { Route, Routes } from "react-router-dom";
import Home from "./pages/Home";
import Chats from "./components/Chats";
import Signup from "./c... |
<?php
/**
* @file
* Allows administrators to customize the site's navigation menus.
*
* A menu (in this context) is a hierarchical collection of links, generally
* used for navigation.
*/
use Drupal\Core\Url;
use Drupal\Core\Breadcrumb\Breadcrumb;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Block\B... |
from datetime import timedelta
from django.shortcuts import render
from django import forms
from django.forms import ValidationError
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.utils import timezone
from django.db.models... |
import {
HttpException,
HttpStatus,
Inject,
Injectable,
NotFoundException,
} from '@nestjs/common';
// import { User } from './entities/user.entity';
import { CreateUserDto } from './dto/create-user.dto';
import { PG_CONNECTION } from 'src/constants';
import { User } from './entities/user.entity';
import { Up... |
use ::bitflags::bitflags;
use ::deferred_future::LocalDeferredFuture;
use ::futures::FutureExt;
use ::nwg::{self as nwg, ControlHandle, Event as NwgEvent, Frame, FrameBuilder, FrameFlags, NwgError};
use ::webview2::{Controller, Environment, EnvironmentBuilder, Result as WvResult};
use ::std::{cell::RefCell, path::Path,... |
import from
{
"engine",
"components",
"renderers",
"random",
"thread",
"console",
"math"
};
class runtime
{
application@ self;
int64 clip_now = 0;
usize clip_count = 0;
runtime(application_desc&in init)
{
@self = application(init);
self.set_on_initialize... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = ensureAuthenticated;
var _AppError = require("../errors/AppError");
var jwt = _interopRequireWildcard(require("jsonwebtoken"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return nul... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
... |
#include <iostream>
//using namespace std; since we are using std::cout, cin we do not have to use this now.
int main()
{
int num{};
std::cout <<"Enter a number: ";//character out
std::cin >>num;//character in
std::cout <<'\n';
std::cout << "\nYou have entered " << num <<".\n"<< std::endl;
//u... |
<script setup>
import { PerfectScrollbar } from 'vue3-perfect-scrollbar'
import axios from 'axios';
import {location} from '@/helpers/helper'
import {URL, token} from '@/helpers/token'
import {
emailValidator,
requiredValidator,
} from '@validators'
const props = defineProps({
isDrawerOpen: {
type: Boolean... |
function Get-PowerPlan {
<#
.SYNOPSIS
Returns Windows power plans.
.DESCRIPTION
Returns all Windows power plans or just the active power plan.
.PARAMETER ID
Optional GUID for a specific power plan (default is to return all power plans)
.PARAMETER ComputerName
Optional name of a remote computer. Default is ... |
import { render, waitFor, screen } from '@testing-library/react';
import { QueryClient, QueryClientProvider } from 'react-query';
import { rest } from 'msw';
import { setupServer } from 'msw/node';
import Products from './Products';
const server = setupServer(
rest.get('https://mks-frontend-challenge-04811e8151e6.he... |
require_relative 'casilla'
module Civitas
class Tablero
def initialize (indiceCarcel)
if indiceCarcel>=1
@numCasillaCarcel=indiceCarcel
else
@numCasillaCarcel=1
end
@casillas = Array.new
salida = Casilla.new("Salida")
@casillas.push(salida)
@porSalida=0
@tiene... |
/*
* The MIT License
*
* Copyright 2022 Alexandru Tabacaru.
*
* 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 rights
* to use, co... |
import { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import MainEmpty from '../main-empty/main-empty';
import Sorting from '../sorting/sorting';
import LocationList from '../location-list/location-list';
import OfferList from '../offer-list/offer-list';
import Map from '.... |
The ``3-say_my_name`` module
Tests for the function ``say_my_name``
::
>>> say_my_name = __import__("3-say_my_name").say_my_name
Expected inputs
---------------
::
>>> first = "Chee-zaram"
>>> last = "Okeke"
>>> say_my_name(first, last)
My name is Chee-zaram Okeke
>>> say_my_name("Ovy", "Evbodi")
My name ... |
# Minesweeper Python Implementation Documentation
## Table of Contents
1. [Introduction](#introduction)
2. [Cell Class](#cell-class)
3. [Board Class](#board-class)
4. [Game Class](#game-class)
5. [UserInterface Class](#userinterface-class)
6. [Usage](#usage)
7. [Pygame Integration](#pygame-integration)
8. [Conclusion]... |
# ezsam (easy segment anything model)
A command line and gui tool to segment images and video via text prompts.
Input images and videos, describe the subjects or objects you want to keep, and output new images and videos with the background removed.
## Why?
Meta's [Segment Anything](https://github.com/facebookresea... |
package com.home.keycloak.proxy
import java.util
import scala.jdk.CollectionConverters.*
import io.circe.Json
import io.circe.syntax.*
import org.keycloak.events.admin.{ AdminEvent, AuthDetails }
import org.keycloak.events.{ Event, EventListenerProvider }
import zio.*
import zio.kafka.producer.Producer
import zio.k... |
package concurrent;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Group;
import org.openjdk.jmh.annotations.GroupThreads;
import org.openjdk.jmh.an... |
// 6-3장
import { useState, useEffect } from "react";
function Effects() {
const [counter, setValue] = useState(0);
const [keyword, setKeyword] = useState("");
const onClick = () => setValue((prev) => prev + 1);
const onChange = (event) => setKeyword(event.target.value);
console.log("i run all the time");
... |
WCSLIB 4.8 - an implementation of the FITS WCS standard.
Copyright (C) 1995-2011, Mark Calabretta
This file is part of WCSLIB.
WCSLIB 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 versi... |
//
// SettingView.swift
// wordpop
//
// Created by AhmetVural on 5.05.2022.
//
import SwiftUI
struct SettingView: View {
@EnvironmentObject var settings: ASettings
@Environment(\.dismiss) var dismiss
var body: some View {
ZStack{
Color("background")
.ignoresS... |
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
public class MulticastChat {
private static final int MAX_MESSAGE_LENGTH = 20;
private static final int BUFLEN = 100;
private static boolean working ... |
import React, { useState } from "react";
import RecipeCard from "../../pages/home/RecipeCard";
import axios from "axios";
import { Input, Button, Options, Select, FormDiv } from "./Header.styled";
const Form = () => {
const [query, setQuery] = useState("");
const [meal, setMeal] = useState("");
const [data, set... |
import { useState } from 'react';
import Layout from '@/components/layout';
import stylesGuitarra from '../../styles/guitarras.module.css';
const GuitarraUrl = ({ guitarraSeleccionada, carrito, setCarrito }) => {
const { name, description, price, image } =
guitarraSeleccionada[0].attributes;
const [cantidad, ... |
import json
import os
import re
import time
from urllib.parse import quote
import requests
import urllib3
urllib3.disable_warnings()
class LCSpider:
graph_url = 'https://leetcode-cn.com/graphql'
user_agent = (
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) '
... |
//
// FullStockData.swift
// StockScanner
//
// Created by Colstin Donaldson on 10/19/23.
//
import Foundation
struct FullStockData {
let symbol: String
let companyName: String
let price: Double
let volume: Int
let changesPercentage: Double
let change: Double
var formattedPrice: St... |
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.frontend.data.set.sample.web.internal.provider;
import com.liferay.frontend.data.set.provider.FDSDataProvider;
import com.liferay... |
import React from 'react'
import { colors } from '../Assets/theme'
import Header from './Header'
import Footer from './Footer'
import { Helmet } from 'react-helmet'
export default function Privacy() {
const data = [
{
question: "Introduction",
answer: `
Welcome to the app... |
<template>
<div class="editor-page">
<div class="container page">
<div class="row">
<div class="col-md-10 offset-md-1 col-xs-12">
<ul class="error-messages">
<template v-for="(messages, field) in errors">
<li v-for="(msg, index) in messages" :key="index">
... |
import { useEffect, useState } from "react";
type Data = {
id: string;
name: string;
category: string;
};
const url: Data[] = [
{
id: "sign-up-form",
name: "Sign-Up Form",
category: "HTML",
},
{
id: "javascript-circles",
name: "javascript Circles",
category: "JavaScript",
},
{
... |
const dotenv = require('dotenv');
// Init env so files can use it
dotenv.config();
const express = require('express');
const cors = require('cors');
const morgan = require('morgan');
const mongoose = require('mongoose');
const cookieParser = require('cookie-parser');
const { LIMIT_UPLOAD, MONGO_URI } = require('./co... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Indicador;
use Illuminate\Http\Request;
class IndicadorController extends Controller
{
public function __construct()
{
$this->middleware('can:admin.indicadores.index')->only('index');
$this->midd... |
import { StyleSheet ,View,Button,TextInput, Modal,Image} from "react-native";
import { useState } from "react";
function GoalInput(props) {
const [enterredGoalText,setEnteredGoalText] = useState('');
function goalInputHandler(eneterdText){
setEnteredGoalText(eneterdText);
};
function addGoalHandler(){
prop... |
import { sortedLastIndexOf } from "lodash"
import { detach, getRoot, types } from "mobx-state-tree"
import { api_create_drama, api_update_drama } from "../../queries/drama"
import Asset from "../models/Asset"
const PublishDramaStore = types
.model('PublishDramaStore', {
video: types.optional(
Asset, {}
... |
------------------------------------------------------
CHAPTER 06 - DATA LOADING AND STORAGE
------------------------------------------------------
- Parsing Functions in pandas
Function Description
--------------------------------------------------------------------------------------
read_csv L... |
import { createContext, useEffect, useState } from "react";
import axios from "axios";
import React from "react";
interface User {
username: string;
}
interface UserInfo {
username: string;
password: string;
}
interface AuthContextType {
user: User | null;
login: (UserInfo: UserInfo) => void;
logout: () =... |
import { useState, useEffect } from "react";
import { fetchProductById } from "../api/products";
import { addLineItem } from "../api/lineItems";
import { useNavigate, useParams } from "react-router-dom";
import useAuth from "./Auth/hooks/useAuth";
import "../components/components css/ProductItem.css";
export function ... |
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\UserController;
use App\Http\Controllers\ContactController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\Auth\LoginController;
use App\Http\Controllers\Auth\RegisterController;
use App\Http... |
/*
* Copyright (C) 2022 Vaticle
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Ver... |
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:iscapp/controllers/eventsProvider.dart';
import 'package:iscapp/models/eventClass.dart';
import 'package:iscapp/views/screens/events/eventsList.dart';
import 'package:iscapp/views/widgets/homeWidgets/top... |
package sy.jin.springrestdocsdsl
import org.springframework.web.bind.annotation.*
import org.springframework.web.multipart.MultipartFile
@RestController
@RequestMapping("/test")
class TestController {
@PostMapping("/{id}")
fun test(@RequestBody req: TestDTO, @PathVariable id: Long, param1: String, param2: In... |
import datetime
import os
import requests
from telethon.tl import types
from telethon.tl.types import PeerUser
from youtube_search import YoutubeSearch
import yt_dlp
import eyed3.id3
import eyed3
from telethon import Button, events
from message import DOWNLOADING, UPLOADING, PROCESSING, ALREADY_IN_DB, NOT_IN_DB, SONG... |
THE FREEZE SCRIPT
What is Freeze?
---------------
Freeze make it possible to ship arbitrary Python programs to people
who don't have Python. The shipped file (called a "frozen" version of
your Python program) is an executable, so this only works if your
platform is compatible with that on the receiving end (this ... |
@functions
{
private string IsActive(string page) =>
Url.ActionContext.ActionDescriptor.DisplayName! == page ? "active" : "";
}
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Header - Домашняя Работа</title>
<link rel="s... |
import React from 'react';
export default class FlavorForm extends React.Component {
constructor(prop) {
super(prop);
this.state = { value: 'coconut' };
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
handleChange({ target: { value } }) {
... |
#use wml::debian::ddp title="Manuais do DDP para usuários"
#include "$(ENGLISHDIR)/doc/manuals.defs"
#include "$(ENGLISHDIR)/doc/user-manuals.defs"
#use wml::debian::translation-check translation="1.127" maintainer="Felipe Augusto van de Wiel (faw)"
# To translator: If I'm right, only Cartão de Referência do Debian GN... |
---
title: "Encoding vs. Decoding"
description: "Visualization techniques encode data into visual shapes and colors. We assume that what the user of a visualization does is decode those values, but things aren’t that simple."
date: 2017-02-20 21:25:18
tags: attention
featuredImage: https://media.eagereyes.org/wp-conten... |
.. _amazon_s3:
Amazon S3
This document covers configuration specific to the Amazon Web Services S3
(Simple Storage Service). See also the base S3 configuration in
:ref:`s3_storages`.
.. code-block:: none
plugin {
# Basic configuration (v2.3.10+):
obox_fs = aws-s3:https://BUCKETNAME.s3.REGION.amazon... |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<head>
<meta charset="ISO-8859-1">
<title>Lista De Tarefas... |
package com.qx.gulimall.ware.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import com.qx.common.dto.StockVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.qx.gulimall.ware.entity.WareSkuEntity;
import co... |
// @TODO: YOUR CODE HERE!
var svgWidth = 960;
var svgHeight = 700;
var margin = {
top: 20,
right: 40,
bottom: 60,
left: 100
};
var width = svgWidth - margin.left - margin.right;
var height = svgHeight - margin.top - margin.bottom;
// Create an SVG wrapper, append an SVG group that will hold our chart, and sh... |
/*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
import os
import tensorflow as tf
import tensorflow_addons as tfa
from tensorflow.keras import layers, Model
os.environ['CPP_TF_MIN_LOG_LEVEL'] = '2'
print(tf.__version__)
class MLP(layers.Layer):
def __init__(self, name, hidden_features, out_features, drop_rate=0):
super(MLP, self).__init__()
... |
# Azure Blob Storage Processing with Python Azure Functions with HTTP Triggers
The developers at Mystique Unicorn [process files as soon as they arrive][5]. They want to switch to an event-driven architecture. They were looking for a custom trigger, whether it be payload-based or time-based, to process files efficient... |
#ifndef MPM_MPM_EXPLICIT_H_
#define MPM_MPM_EXPLICIT_H_
#ifdef USE_GRAPH_PARTITIONING
#include "graph.h"
#endif
#include "mpm_base.h"
namespace mpm {
//! MPMExplicit class
//! \brief A class that implements the fully explicit one phase mpm
//! \details A single-phase explicit MPM
//! \tparam Tdim Dimension
template... |
import type mdIt from 'markdown-it';
import { stringRepeat } from '../helpers/string-repeat.js';
export const tabReplacePlugin: mdIt.PluginWithOptions<{tabWidth: number}> = (md, options) => {
// default to being two spaces wide
const tabWidth: number = options?.tabWidth ?? 2;
// patch the current rule, don't rep... |
# python-bs4-web-scraping
## Overview
This project involves web scraping multiple websites using BeautifulSoup (bs4) to extract the most common words and their frequencies. The collected data is then processed, translated using Deepl, and analyzed to find common words among different websites. The results are present... |
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<import type="android.view.View"/>
<variable
name="vmSignUp"
... |
@isTest
public class movimientoBatchTest {
public static testmethod void habilidadTestOk() {
SingleRequestMock fakeResponse = new SingleRequestMock(200,
'Complete',
'{"name":... |
//
// ProfileView.swift
// OnlineFitnessTrainerApp
//
// Created by Admin on 7/6/23.
//
import UIKit
final class ProfileView: UIView {
// Const profile Imge Height
private let profileIamgeHeight: CGFloat = 100
// MARK:- Create Autlets programaticaly
private lazy var profileImageView: UIImageView... |
/*
* Copyright (c) 2021 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 law ... |
/**
* ProjectName
*
* Author:
* Company:
*
* website
*/
import { StyleProp, TextStyle } from "react-native";
import { createTheme, TextProps } from "@rneui/themed";
import { moderateScale } from "react-native-size-matters";
import Colors from "./colors";
import Typography, { fontSizes } from "./typography";
... |
import { zodResolver } from "@hookform/resolvers/zod";
import axios from "axios";
import React, { useState } from "react";
import { SubmitHandler, useForm } from "react-hook-form";
import { useParams } from "react-router";
import { z } from "zod";
import { useAppDispatch } from "../../reducers/hooks";
import {
refres... |
# Welcome to Remix + Vite!
📖 See the [Remix docs](https://remix.run/docs) and the [Remix Vite docs](https://remix.run/docs/en/main/future/vite) for details on supported features.
## Stack
- Testing: [Vitest](https://vitest.dev) + [@remix-run/testing](https://remix.run/docs/en/main/other-api/testing)
- Styling : [Ta... |
# Google Tasks Backup to Sheets
Hey there! 👋 This is a neat little project that backs up your Google Tasks into a Google Sheet. Perfect for those who don't want to lose their tasks and lists, especially since Google Tasks doesn't have a recycle bin feature.
## What's This All About?
This Google Apps Script automat... |
/**
* Create Definition factory from provided classname which must implement {@link ComponentDefinitionsFactory}.
* Factory class must extend {@link DefinitionsFactory}.
* @param classname Class name of the factory to create.
* @return newly created factory.
* @throws DefinitionsFactoryExceptio... |
import React,{useContext,useState,useRef} from 'react';
import gql from 'graphql-tag';
import {useQuery,useMutation} from '@apollo/react-hooks';
import { Button,Icon,Label,Image, Card, Grid,Form } from 'semantic-ui-react';
import LikeButton from '../components/LikeButton'
import moment from 'moment';
import {AuthContex... |
//
// Created by Jelmer Bennema on 1/3/24.
//
#include <boost/numeric/ublas/lu.hpp>
#include "Practical05/Practical05Exercises.hpp"
#include "Utils/UtilityFunctions.hpp"
/** MonteCarlo4 - given a grid of initial stock values (2D GBM), generates a set of possible corresponding payoffs
* @param vS0 an std vector of i... |
"""
Julius Caesar protected his confidential information by encrypting it using a cipher. Caesar's cipher shifts each letter by a number of letters. If the shift takes you past the end of the alphabet, just rotate back to the front of the alphabet. In the case of a rotation by 3, w, x, y and z would map to z, a, b and ... |
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../px-vis-scale.html">
<link rel="import" href="../px-vis-svg.html">
<dom-module id="px-vis-scale-demo">
<link rel="import" type="css" href="../css/px-vis-demo.css"/>
<template>
<p id="px-vis-scale-anchor" class="epsilon demo__titl... |
// Arrays in JS - Basic Functions
// The Array object is used to store multiple values in a single variable:
// Full list of functions here: https://www.w3schools.com/js/js_array_methods.asp
let students = ["Dimitar", "Ivan", "Sarah", "Nikola", "Jesus"];
// Arrays 101 - Push & Pop
// Push adds new element and return... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft.h :+: :+: :+: ... |
//used to show all alerts images (myalert, autoalert) for the given duration selected for each camera
//each cam has its name, then images, then a limiter seperating it
//"useRemoveScroll" removes scroll on page if data is absent
//contains action "getDurationTime" in reducer "investigationReducer"
//component reruns... |
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick3D
import QtQuick.Window
import "qml"
Rectangle {
width: 600
height: 480
color: Qt.rgba(0, 0, 0, 1)
View3D {
id: layer
anchors.fill: parent
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.