text stringlengths 184 4.48M |
|---|
/*
* Copyright (C) 2004-2006 Alo Sarv <madcat_@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any late... |
;;; Excercise the XDR language compiler. -*- Scheme -*-
;;;
;;; GNU Guile-RPC --- A Scheme implementation of ONC RPC.
;;; Copyright (C) 2008, 2010, 2012, 2014 Free Software Foundation, Inc.
;;;
;;; This file is part of GNU Guile-RPC.
;;;
;;; GNU Guile-RPC is free software; you can redistribute it and/or m... |
import { PrismaClient } from '@prisma/client';
import { Request, Response } from 'express';
import { validate } from 'uuid';
import express from 'express';
const router = express.Router();
const prisma = new PrismaClient();
router.post('/', async (req: Request, res: Response) => {
const { full_name, mob_num, pan_n... |
# Определение категории новостей по содержанию с помощью классификации с нулевым сэмплированием
Этот проект предоставляет приложение для определения категории новостей по содержанию с помощью классификации с нулевым сэмплированием с использованием предобученных моделей из библиотеки Hugging Face Transformers.
## Соде... |
@extends('layouts.auth')
@section('content')
<div class="p-6 bg-indigo-900 min-h-screen flex justify-center items-center">
<div class="w-full max-w-md">
<div class="flex justify-center text-white mb-6 text-5xl font-bold">
<img class="w-48" alt="addy.io Logo" src="/svg/logo.svg">... |
import React, { useState, useEffect } from 'react'
import Swal from 'sweetalert2/dist/sweetalert2.js'
import { getCoworkers } from '../services/users.service'
import Searchbar from '../components/Searchbar'
import Card from '../components/Card'
import styles from '../assets/styles/views/Coworkers.module.scss'
export... |
package com.jslhrd.testa;
abstract class Person {
String name;
boolean gender;
int age;
Person(String name, boolean gender, int age) {
this.name = name;
this.gender = gender;
this.age = age;
}
abstract void namePrint();
abstract String getGender();
}
class ExamPerson extends Person {
ExamPerson(Strin... |
from AST import *
from Visitor import *
from Utils import Utils
from StaticError import *
class TypePlaceholder:
count = 0
def __init__(self):
self.t = None
self.type_id = TypePlaceholder.count
TypePlaceholder.count += 1
def setType(self, t):
self.t = t
def getType(se... |
import {
Count,
CountSchema,
Filter,
FilterExcludingWhere,
repository,
Where,
} from '@loopback/repository';
import {
post,
param,
get,
getModelSchemaRef,
patch,
put,
del,
requestBody,
response,
} from '@loopback/rest';
import {Request} from '../models';
import {RequestRepository} from '..... |
/*
* Copyright (C) 2016 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.example.results;
import jakarta.persistence.ElementCollection;
import jakarta.persistence.Entity;
import jakarta.persistence.OneToMany;
import jakarta.persistence.OneToOne;
import org.example.questions.AbstractQuestion;
import org.example.questions.MultipleChoiceQuestion;
import org.example.questions.Quest... |
defmodule App.KnnIndex do
use GenServer
@moduledoc """
A GenServer to load and handle the Index file for HNSWLib.
It loads the index from the FileSystem if existing or from the table HnswlibIndex.
It creates an new one if no Index file is found in the FileSystem
and if the table HnswlibIndex is empty.
It... |
#include <iostream>
using namespace std;
class TimeHrMn {
friend ostream& operator<<(ostream& output, const TimeHrMn &thm);
public:
TimeHrMn(int timeHours = 0, int timeMinutes = 0);
void Print() const;
TimeHrMn operator+(TimeHrMn rhs) ;
private:
int hours;
int minutes;
};
// Overload + operator for... |
<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithStyles;
use Maatwebsite\Excel\Concerns\WithTitle;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
class ProjectR... |
///Reverse String
class Solution344 {
void reverseString(List<String> s) {
for (int i = 0; i < s.length ~/ 2; i++) {
var temp = s[i];
s[i] = s[s.length - i - 1];
s[s.length - i - 1] = temp;
}
}
///BETTER WAY
void reverseStringV2(List<String> s) {
int left = 0,
right =
... |
import type {QUnit} from '../../../helpers/QUnit';
import {CoreObject} from './../../../../src/core/geometry/Object';
import {GeoObjNode} from '../../../../src/engine/nodes/obj/Geo';
import {ObjectsLayoutSopNode} from '../../../../src/engine/nodes/sop/ObjectsLayout';
export function testenginenodessopObjectsLayout(qUni... |
/* eslint-disable @typescript-eslint/naming-convention, camelcase */
import {
Adresse,
ConditionAcces,
ConditionsAcces,
Contact,
Id,
LabelNational,
LabelsNationaux,
LieuMediationNumerique,
Localisation,
ModaliteAccompagnement,
ModalitesAccompagnement,
Nom,
Pivot,
PublicAccueilli,
PublicsA... |
const { DataTypes } = require("sequelize");
// Exportamos una funcion que define el modelo
// Luego le injectamos la conexion a sequelize.
module.exports = (sequelize) => {
// defino el modelo
sequelize.define(
"videogame",
{
id: {
type: DataTypes.UUID, //TIPO UUID
primaryKey: true,
... |
import { Injectable, OnDestroy } from '@angular/core';
import * as moment from 'moment';
import 'rxjs/add/operator/first';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Observable } from 'rxjs/Observable';
import { Budget } from '../../../../core/models/budget.model';
import { Sale } from '../../..... |
import { Component } from '@angular/core';
import { DialogModule } from 'primeng/dialog';
import { ButtonModule } from 'primeng/button';
import emailjs, { EmailJSResponseStatus } from '@emailjs/browser';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { FormBuilder, ... |
import React, { useState, useEffect } from 'react';
import { IconButton } from '@mui/material';
import { KeyboardArrowDown } from '@mui/icons-material';
import { styled } from '@mui/system';
const StyledScrollButton = styled(IconButton)({
position: 'fixed',
bottom: 30,
right: 1158,
opacity: 0,
transition: 'opacit... |
import { Component, Input, OnInit } from '@angular/core';
import { createChart, CrosshairMode, IChartApi, IPriceLine, LineData, LineStyle, PriceLineOptions, Time } from 'lightweight-charts';
import { Ikline } from 'src/app/interfaces/pivotlevel/Ikline';
import { ILevel, LEVEL_TYPE, TYPE } from 'src/app/interfaces/pivot... |
from tkinter import *
from PIL import Image, ImageTk
from tkinter import messagebox
import cv2
import os
import numpy as np
class Train:
def __init__(self,root) -> None:
self.root = root
self.root.geometry("1920x1020+0+0")
self.root.title("Trainingthe Dataset")
self.root.configure(... |
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:get/get.dart';
import 'package:nourishnet/donate/screens/donate_page.dart';
import 'package:nourishnet/features/community/screens/community_page.dart';
... |
<script>
import { mapActions, mapState, mapGetters } from 'vuex';
import { GlButton, GlLoadingIcon, GlIntersectionObserver, GlModal } from '@gitlab/ui';
import { n__, __, sprintf } from '~/locale';
import ProviderRepoTableRow from './provider_repo_table_row.vue';
export default {
name: 'ImportProjectsTable',
compo... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
%
% latexstring = mbSymbolic2Latex (string, sym, fontsize, output)
%
% This function provides functionality to generate latex output from
% symbolic expressions. The output can either be a string or also be
% plotted in a figure.
%
% Inputs:
% pos Position of 'string' argument as prefix or suff... |
<div class="container">
<div class="container-table">
<h1 class="title">Subject Situation</h1>
<p class="subject-name" *ngIf="subject !== undefined">{{subject.name + ' ' + subject.studyGroup.number + subject.studyGroup.name}}</p>
<div class="situation-navbar">
<div [ngClass]="{ 'current-tab': mode ... |
package lms.user.management.exception;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframewo... |
## Luckysheet
> `Luckysheet` 是一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。
>
> > github:https://github.com/dream-num/Luckysheet
>
> > 官方文档地址:https://dream-num.github.io/LuckysheetDocs/zh/
>
> 目前 `Luckysheet` 已经有了 `15.3K` 的 `star` 可以说是一个前端的明星项目。
##### 特性
> ### **01:支持 格式设置**
>
> - **样式** (修改字体样式,字号,颜色或者其他通用的样式)
>
> - **条件格式** (... |
#include <iostream>
#include <vector>
#include <algorithm>
bool login_admin = false;
bool login_user = false;
using namespace std;
class product
{
public:
int product_Id;
string name;
double price;
int quantity;
void setProduct(string name, int product_id, double price)
{
this->name = ... |
from django.shortcuts import render, redirect, HttpResponse
from .models import Galaxy, System, Planet
from .forms import AddGalaxy, AddSystem, AddPlanet
# Create your views here.
def index(request):
ctx = {
'planets': Planet.objects.all(),
'systems': System.objects.all(),
'galaxies': Gal... |
import { ToastrService } from 'ngx-toastr';
import { Component, OnInit } from '@angular/core';
import { EcommDataService } from '../ecomm-data.service';
import { Product } from '../product';
import { CartService } from '../cart.service';
import { WishlistService } from '../wishlist.service';
@Component({
selector: '... |
import LeaderboardResponse from '../dtos/LeaderboardReponse';
import LeaderboardAwayService from './LeaderboardAwayService';
import LeaderboardHomeService from './LeaderboardHomeService';
class LeaderboardService {
private _homeService = new LeaderboardHomeService();
private _awayService = new LeaderboardAwayServ... |
import { Component, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService } from '../services/login.service';
import { CartService } from '../services/cart.service';
@Component({
selector: 'app-main-nav',
templateUrl: './main-nav.component.html',
... |
use uo;
use os;
include "include/wodinc";
include "include/client";
include "include/objtype";
include "include/spawn";
include "include/eventid";
include "include/effects";
include "include/attributes";
include "../pkg/items/doors/doors";
program use_lever (character, lever)
var did_something := 0;
if (GetObjPrope... |
--схема БД: https://docs.google.com/document/d/1NVORWgdwlKepKq_b8SPRaSpraltxoMg2SIusTEN6mEQ/edit?usp=sharing
--HomeWork_Lesson 3-4
--task13 (lesson3)
--Компьютерная фирма: Вывести список всех продуктов и производителя с указанием типа продукта (pc, printer, laptop). Вывести: model, maker, type
with all_models as
(... |
const express = require('express');
const app = express();
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const cors = require('cors');
require('dotenv').config();
//const fileUpload = require('express-fileupload');
//middlewares
app.use(cors());
app.use(express.json());
// const spe... |
import moment from 'moment';
import { useState, useCallback, useEffect } from 'react';
import { v4 as uuid } from 'uuid';
import PerfectScrollbar from 'react-perfect-scrollbar';
import { Link as RouterLink } from 'react-router-dom';
import {
Box,
Button,
Card,
CardHeader,
Link,
Divider,
Table,
TableBody... |
import mido
import os
from os import environ
environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "1"
import pygame
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
# Dictionary mapping characters to MIDI notes
char_to_note = {
"A": 60,
"B": 61,
"C": 62,
"D": 63,
"E": 64,
"F": 6... |
<?php
namespace App\Http\Controllers\User;
use App\Models\User\Role;
use App\Models\User\Employee;
use Illuminate\Support\Facades\DB;
use App\Transformers\Role\RoleTransformer;
use App\Http\Requests\UserRole\StoreRequest;
use App\Http\Requests\UserRole\DestroyRequest;
use App\Events\Employee\StoreEmployeeRoleEvent;
u... |
// here we remove unnecessary retrieval of user (see getMe func)
const jwt = require('jsonwebtoken')
const bcrypt = require('bcryptjs')
const asyncHandler = require('express-async-handler')
const User = require('../models/userModel.js')
const registerUser = asyncHandler(async(req, res) => {
const {name, em... |
/*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for this code is held jointly b... |
library(limma)
library(edgeR)
## LikeDESeq2, import count data, use cpm to filter data
exprSet<- read.table(file = "/home/xu/RNAseq/edegR/D01357/D01357_counts", sep = "\t", header = TRUE, row.names = 1, stringsAsFactors = FALSE)
# exprSet <- exprSet[,1:21]
group_list <- factor(c(rep("D0",3),rep("D1",3),rep("D3",3),re... |
using Application.Contracts.Persistence;
using Domain;
using MediatR;
namespace Application.UseCases.AssetOwners.GetAssetOwnerList;
/// <summary>
/// Handles the query to get a list of asset owners.
/// </summary>
internal class GetAssetOwnersQueryHandler : IRequestHandler<GetAssetOwnersQuery, List<AssetOwner>>
{
... |
<?php
namespace App\EloquentBuilders;
use Illuminate\Database\Eloquent\Builder;
class FilterBuilder extends Builder
{
public const WHERE = 'where';
public const WHERE_OR = 'orWhere';
public const OPERATOR_EQUAL = '=';
public const OPERATOR_NOT_EQUAL = '!=';
public const OPERATOR_LESS_THAN = '... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:quize_project/Model/Quez.dart';
import 'package:quize_project/View/singnIn.dart';
import '../Servise/FarebaseBackend.dart';
import '../Servise/auth.dart';
import '... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/resource.h>
void print_fibonacci(long n)
{
long first = 0, second = 1, next, i;
if (n == 1)
{
printf("%lu", first);
}
else if (n >= 2)
{
printf("%lu %lu ", first, second);
for (i = 3; i <= n; i++)
... |
# Q4 - Are there differences in activity patterns between weekdays and weekends?
## Create a new factor variable in the dataset with two levels - "weekday" and "weekend" indicating whether a given date is a weekday or weekend day.
activity.imputed$day <- ifelse(weekdays(as.Date(activity.imputed$date)) == "Saturday" | ... |
#' Method 1 for finding the date inside the label
#'
#' @param tree A tree of sequences, phylo
#' @param order Location of the date, character or numeric
#'
#' @return date, character
#' @export
#'
#' @examples
#'
#' data("MCC_FluA_H3_tree")
#' dateType1(MCC_FluA_H3_tree, "last")
#'
dateType1 <- function(tree, order)... |
import { Element } from "../Element.js";
import { Permission } from "../models/Permission.js";
import { Session } from "../models/Session.js";
export class Template
{
session = new Session('Template')
menuIsOpen = false
constructor(app, body, props)
{
this.app = app
this.header = new ... |
package hello.proxy.jdkdynamic;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@Slf4j
public class ReflectionTest {
@Test
void reflection0() {
Hello target = new Hello();
//공통 로직1 시작
... |
(() => {
const login = (data: { email: string; password: string }) => {
const { email, password } = data;
console.log(email, password);
};
login({ email: 'email@mail.com', password: '12345678**' });
type Sizes = 'S' | 'M' | 'L' | 'XL';
//Product is now a type
type Product = {
title: string;
... |
import React, { useCallback, useMemo, useRef } from 'react'
import makeSvgPath from '../../utils/makeSvgPath'
import { ICoordinateType, ILinkType } from '../../types'
import { isEqual } from 'lodash-es'
import { computedLinkSvgInfo } from '../../utils'
interface LinkProps {
input: ICoordinateType
output: ICoordina... |
import React from "react";
import { useRef } from "react";
const UserDetails = (props) => {
const {
pic,
setPic,
profilePic,
uploadPic,
password,
setPassword,
confirmPassword,
setConfirmPassword,
userData,
setUserData,
handleChange,
submitHandler,
} = props;
const... |
import { z } from 'zod';
import { UserEntity } from '../entities';
const registerUserDTOValidator = z.object({
email: z.string().email(),
password: z.string().min(8),
phone: z.string().min(10),
});
export default class RegisterUserDTO {
private constructor(
public email: string,
public password: stri... |
<!DOCTYPE html>
<html lang="ko">
<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>Form Bindings</title>
</head>
<body>
<div id="app">
<!-- <input :value="text" @input="onInput" placeholder="값... |
<template>
<fragment>
<b-sidebar :fullheight="fullheight" :overlay="overlay" :open.sync="open">
<div class="p-1">
<img
src="https://raw.githubusercontent.com/buefy/buefy/dev/static/img/buefy-logo.png"
alt="Lightweight UI components for Vue.js based on Bulma"
/>
<b... |
part of bakecode.engine;
class Ecosystem {
Map map;
final File source;
Ecosystem({required this.source, required this.map});
static const jsonEncoder = JsonEncoder.withIndent(' ');
static Map _convertAddressToMap(Iterable<String> levels, String uuid) {
final map = {};
if (levels.length > 1) {
... |
/*
* LearnVulkan Examples
*
* This is the header file of engine class.
*
* Copyright (C) by engineer1109 - https://github.com/engineer1109/LearnVulkan
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#ifndef BASEPROJECT_H
#define BASEPROJECT_H
#include "vulkan_basice... |
import http from 'http';
import Koa from 'koa';
import WebSocket from 'ws';
import Router from 'koa-router';
import bodyParser from "koa-bodyparser";
import jwt from 'koa-jwt';
import cors from '@koa/cors';
import { jwtConfig, timingLogger, exceptionHandler } from './utils.js';
import { initWss } from './wss.js';
impor... |
# Import Libraries
import pandas as pd
import numpy as np
import nltk
import cleantext
# Preprocessing
from sklearn.feature_extraction.text import TfidfVectorizer
from nltk.tokenize import word_tokenize
# Similarities & Distances
from sklearn.metrics import pairwise
from nltk.tokenize import word_tokenize
from nltk.p... |
package com.liulishuo.filedownloader.download;
import android.database.sqlite.SQLiteFullException;
import android.os.Build;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
import android.os.SystemClock;
import android.support.v4.media.session.PlaybackStateCompat;
import com.liuli... |
package com.codepath.apps.restclienttemplate;
import android.content.Context;
import android.text.format.DateUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import ... |
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
}
/* Sections
/*... |
第一步:建立git仓库
cd到你的本地项目根目录下,执行git命令
git init
第二步:将项目的所有文件添加到仓库中
git add .
如果想添加某个特定的文件,只需把.换成特定的文件名即可
第三步:将add的文件commit到仓库
git commit -m "注释语句"
第四步:去github上创建自己的Repository,创建页面如下图所示:
拿到仓库地址https
出现
第五步:将本地的仓库关联到Github上
git remote add origin https://仓库地址
第六步 上传github之前 要先pull一下 执行如下命令
git pull origin master
... |
<?php declare(strict_types=1);
namespace Boolfly\ProductQuestion\Model;
use Boolfly\ProductQuestion\Api\Data\QuestionInterface;
use Magento\Framework\DataObject\IdentityInterface;
use Magento\Framework\Model\AbstractModel;
class Question extends AbstractModel implements IdentityInterface, QuestionInterface
{
/**... |
import { APP_ROUTES } from "@/lib/constants";
import { useCommitMedia, useCoreDetails, useUser } from "@/lib/hooks/graphql";
import { gqlClient } from "@/lib/services/api";
import { Verb, getLot, getVerb } from "@/lib/utilities";
import {
ActionIcon,
Anchor,
Avatar,
Box,
Button,
Collapse,
Flex,
Image,
Loader,
... |
+++
title = 'Backend Web Development Curriculum'
date = 2024-06-11T13:48:32+07:00
draft = false
description = 'A curriculum to learn Backend Web Development from ChatGPT'
tags = ['web', 'backend', 'AI generated']
+++
Creating a detailed and comprehensive curriculum for Backend Web Development from scratch involves lay... |
/*
* IntelliJ Jenkins Integration Plugin
* Copyright (C) 2014 Andreas Vogler
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... |
import React from "react";
import {
BrowserRouter as Router,
Route,
Routes,
Navigate,
} from "react-router-dom";
import "react-toastify/dist/ReactToastify.css";
import Dashboard from "./pages/dashboard/Dashboard";
import Category from "./pages/category/Category";
import { ToastContainer } from "react-toastify"... |
<h1>Skill Challenge: Programación básica en Java</h1>
<p>
El reto consiste en implementar una aplicación de gestión de películas. Deberás crear las clases
necesarias para representar una película y un gestor de películas que permita realizar operaciones
básicas, como agregar una película, eliminar una película y obten... |
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class extends BaseSchema {
protected tableName = 'Coments'
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.string('username')
table.string('text')
table.integer('mome... |
import {Component, OnInit, Input, forwardRef} from '@angular/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
import * as moment from 'moment';
@Component({
selector: 'app-date-form-input',
templateUrl: './date-form-input.component.html',
styleUrls: ['./date-form-input.compone... |
use crate::api_service::Data;
use actix_web::{delete, get, post, web, HttpResponse, Responder};
#[get("/get-all")]
async fn get_all_json(app_data: web::Data<crate::AppState>) -> impl Responder {
let action: Result<Vec<bson::ordered::OrderedDocument>, mongodb::error::Error> = app_data.service_manager.api.get_json()... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<!-- Meta tags Obrigatórias -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Formulário com máscara e validação</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bo... |
!!Introduction
!!!Rational
@ch:ngRational
The idea behind FamixNG is to allow the creation of meta-models by composing basic entities rather than using single inheritance.
Take for example a simple model with Classes and Methods. A Class has a ''name'' and ''contains'' methods. A Method has a ''name''. The Figure *@... |
/* JAVASCRIPT USADO EM TODO O SITE */
/*
Neste documento estão os JavaScript que atendem à todas ou a mais de uma seção.
Aqui também estão funções que podem ser utilizadas em mais de uma seção do site.
*/
/* FUNÇÕES GLOBAIS USADAS EM QUALQUER PÃGINA QUANDO NECESSÃRIO */
/* A função '$' é um a... |
{% extends theme("base/base.html") %}
{% block content %}
<style>
.coords {
background-color: black;
color: white;
padding: 5px;
}
</style>
<link rel="stylesheet" href="/_themes/default/libraries/leaflet/leaflet.css"/>
<script type="text/javascript" src="/_themes/default/libraries/leaflet/leaflet.js"></sc... |
---
title: Quickstart Tutorial
meta_title: Args — Quickstart Tutorial
---
Imagine we're building a utility for joining MP3 files.
We want the user to supply the file names as a list of command line arguments.
We also want to support an `--out/-o` option so the user can specify an output filename and a `--quiet/-... |
package com.example.parkme.navigation
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="UTF-8">
<title>Modify user</title>
</head>
<body>
<form th:method="PATCH" th:action="@{/admin/update/{id}(id=${user.id... |
package be.example.wordcombiner;
import be.example.WordCombination;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public class SimpleSixLetterWordsCombiner implements WordCombiner {
private final int wordCombinationCharSize... |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... |
<!-- 新增alert 元件進來-->
<app-alert *ngIf="showAlert" [color]="alertColor">
{{ alertMsg }}
</app-alert>
<!-- Registration Form -->
<!--使用ngsubmit event ,來避免頁面刷新,跟e.preventDefault()-->
<form [formGroup]="registerForm" (ngSubmit)="register()">
<!-- Name -->
<div class="mb-3">
<label class="inline-block mb-2">Name</... |
#!/bin/bash
# Библиотека цветов https://wiki.archlinux.org/index.php/Bash/Prompt_customization_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)
# Функции и прочие примеры http://dotshare.it/category/shells/bash/
# Цвета папок dircolors https://github.com/trapd00r/LS_COLORS
# Сброс
Color_Off='\e[0m' # Text Reset
## Обычны... |
import { NIVEAUX_POUR_LBA } from "../constants/recruteur"
import { z } from "../helpers/zodWithOpenApi"
export const zCallerParam = z
.string()
.openapi({
// Duplicated description because we have description when used in queryparams vs body
param: {
description: "Votre raison sociale ou le nom de vo... |
[Shell 명령어 모음]
1. 터미널 툴 종류
cmd : windows 기본
powershell 도구 : windows 기본, powershell 언어 전용
cmder : windows 추천 (기능이 더 많고, 깃이 기본으로 포함되서 설치됨)
iTerm : mac 기본
iTerm2 : mac 추천 (기능이 더 많고, 깃 브랜치 등의 시각화 및 테마 적용으로 보기에 더 편함)
1. 터미널 언어 종류
bash : Linux 기본 (Mac에서도 사용하기도 하고, Windows는 Git 다룰 때 Bash에서 사용하기도 함)
... |
package com.serviceImplementation.Wallet.CustomException;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.context.... |
#include "compiler.h"
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "lexer.h"
#include "memory.h"
#include "utils.h"
#if DEBUG_PRINT_CODE
# include "debug.h"
#endif
typedef struct {
// The most recently lexed token
Token current;
... |
package com.unpi.asika.activity
import android.graphics.Color
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.github.razir.progressbutton.attachTextChangeAnimator
import com.github.razir.progressbutton.bindProgressButton
import com.github.razir.progressbu... |
import { NavLink } from 'react-router-dom';
import { useSelector } from 'react-redux';
import { getUser } from '../../redux/auth/authSelectors';
import UserAvatarIcon from './UserAvatarIcon/UserAvatarIcon';
import UserDefaultIcon from 'icons/UserDefaultIcon';
import styles from './UserNav.module.scss';
export default ... |
import numpy as np
from shapely.geometry.polygon import orient
def gpd_geographic_area(geodf):
if not geodf.crs and geodf.crs.is_geographic:
raise TypeError('geodataframe should have geographic coordinate system')
geod = geodf.crs.get_geod()
def area_calc(geom):
if geom.geom_type not in... |
<!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 Website</title>
<!-- font awesome kit link -->
<script
src="https://kit.font... |
import Foundation
import RxSwift
/// Copyright (c) 2020 Razeware LLC
///
/// 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... |
use isocountry::CountryCode;
use rocket_okapi::okapi::schemars;
use rocket_okapi::okapi::schemars::JsonSchema;
use serde::{Deserialize, Serialize};
/// TODO! the usage location should be part of the cloud_inventory model (region names are tied to a specific cloud provider)
#[derive(Clone, Debug, Serialize, Deserialize... |
public with sharing class ObjectInfoController {
public String objectName{get; set;}
public Boolean canRead{get; set;}
public Boolean canCreate{get; set;}
public Boolean canEdit{get; set;}
public Boolean canDelete{get; set;}
public List<WrappedFields> fields{get; set;}
public void getObj... |
<!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">
<link href="./images/favicon.ico" rel="icon" type="image/x-icon" />
<link rel="stylesheet" href="https://cdn.jsd... |
import { useState } from "react";
const Button = ({ handleClick, text }) => {
return <button onClick={handleClick}>{text}</button>;
};
const StatisticLine = (props) => {
return (
<tr>
<td>{props.text}</td>
<td>{props.value}</td>
</tr>
);
};
const Statistics = ({ all, good, neutral, bad }) => {... |
import express from "express";
import { Request, Response, NextFunction } from "express";
import { UserModel } from "../database/models/user";
import { QueryFindOneAndUpdateOptions } from 'mongoose';
const router = express.Router();
import userRoute from './user/user.routing';
import MessageRoute from './message/messag... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.