text stringlengths 27 775k |
|---|
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\ResourceCollection;
use JWTAuth;
use App\Comment;
class CommentCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
... |
package com.cheise_proj.data.mapper.user
import com.cheise_proj.data.mapper.base.DataMapper
import com.cheise_proj.data.model.user.ProfileData
import com.cheise_proj.domain.entity.user.ProfileEntity
internal class ProfileDataEntityMapper : DataMapper<ProfileData, ProfileEntity> {
override fun dataToEntity(d: Prof... |
using System;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
namespace Assets.Pixelation.Scripts
{
[Serializable]
[PostProcess(typeof(Pixelationv2Renderer), PostProcessEvent.AfterStack, "Custom/Pixelation")]
public sealed class Pixelationv2 : PostProcessEffectSettings
{
[Range(... |
import MetaInfo from "../config/metainfo.js"
const { NODE_ENV } = process.env
const html = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>${MetaInfo.title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<meta data-v... |
import { Scene } from 'phaser';
import U from '../utils/usefull';
import getConfigKeys from '../utils/getConfigKeys';
import head from '../assets/head.png';
import bip from '../assets/sounds/bip.ogg';
export default class LoadSavedGame extends Scene {
constructor() {
super({ key: 'loadSavedGame' });
}
prelo... |
@extends('layout')
@section('body')
<div class="well bs-component">
<h3>Section Lists</h3>
<?php
$sections = Section::orderBy('created_at','desc')->simplePaginate() ;
?>
<ul>
@foreach($sections as $section)
<li><a href="{{asset('/section/show/'.$section->id)}}"><strong>{{$section->name}}</strong></a>
<h4>{{$sec... |
require 'mister_bin'
module Kojo
module Commands
# Handle calls to the +kojo file+ command
class FileCmd < CommandBase
using Kojo::Refinements
attr_reader :opts, :outfile, :infile, :import_base
help "Transform a file from a template"
usage "kojo file INFILE [--save FILE --imports D... |
package entity
import (
"crypto/rsa"
)
// RsaKey represents RSA private & public key
type RsaKey struct {
PrivateKey *rsa.PrivateKey
PublicKey *rsa.PublicKey
}
|
{-|
Module : Network.Nakadi.Internal.Conversions
Description : Nakadi Client Conversions (Internal)
Copyright : (c) Moritz Clasmeier 2017
License : BSD3
Maintainer : mtesseract@silverratio.net
Stability : experimental
Portability : POSIX
Internal module containing conversions code.
-}
module Network.Nak... |
aries.samples <- read.csv(file.path(aries.dir, "samplesheet", "samplesheet.csv"), stringsAsFactors=F)
ewas.dat <- sapply(time.points, function(time) {
ewas <- eval.ret(paste("ewas-handed", time, "full", sep="-"))
ewas.dat <- as.data.frame(ewas$design)
ewas.dat <- ewas.dat[,which(colnames(ewas.dat) != "(Inte... |
/// <reference path="../vertx-js/throwable.d.ts" />
/// <reference path="../vertx-js/vertx.d.ts" />
/// <reference path="./template_engine.d.ts" />
/// <reference path="./routing_context.d.ts" />
declare module "vertx-web-js/template_handler" {
export = TemplateHandler;
}
/**
*
* A handler which renders ... |
import { MetaComponent } from '@rebelstack-io/metaflux';
import { instanceElement } from '../../utils';
import defaulAvatar from '../../assets/images/user.svg';
import cog from '../../assets/icons/cog-solid.svg';
import searchIcon from '../../assets/icons/search-solid.svg';
import enevelope from '../../assets/icons/env... |
# Set database settings. defaults is like below
# db_url = 'localhost'
# db_port = 27017
# db_name = "crawl"
# db_collection = "crawl_collec" |
using System;
using NUnit.Framework;
namespace Guards.Tests
{
[TestFixture]
public class Int32ExtensionTests
{
[TestCase(5, 5, true)]
[TestCase(4, 5, false)]
public void should_throw_on_equal_int(int intA, int intB, bool shouldThrow)
{
if (shouldThrow)
... |
library timeline_tile;
export 'package:timeline_tile/src/tile.dart';
export 'package:timeline_tile/src/style.dart';
export 'package:timeline_tile/src/timeline_divider.dart';
|
import { Routes, RouterModule } from '@angular/router';
//Route for content layout with sidebar, navbar and footer
export const Full_ROUTES: Routes = [
{
path: 'changelog',
loadChildren: () => import('../../portal-changelog/changelog.module').then(m => m.ChangeLogModule)
},
{
path: 'full-layout',
... |
require 'citysdk/util.rb'
require 'citysdk/api.rb'
require 'citysdk/file_reader.rb'
require 'citysdk/importer.rb'
module CitySDK
VERSION = "0.1.1.4"
end
|
#!/usr/bin/env bash
set -euo pipefail
mvn clean install package
# Generate the root index.html
DOC_PROJECT_PATH=../tmp
PROJECT_NAME=${PWD##*/}
DESTINATION_PATH=${DOC_PROJECT_PATH}/docs
cp ${DESTINATION_PATH}/${PROJECT_NAME}/index.html ${DESTINATION_PATH}/index.html
HREF_TO_REPLACE="<a href=\".\/"
REPLACE_BY="<a href... |
import React from 'react';
import { Provider } from 'react-redux';
// Store
import store from '../store/store';
// Components
import Test from './Test';
export default function MasterUI() {
return (
<Provider store={store}>
<Test />
</Provider>
);
}
|
SELECT
user_id
,first_name
,last_name
,email
,password
,tel
,zip
,address
,created_by
,created_at
,updated_by
,updated_at
,deleted_by
,deleted_at
,version
FROM
users
WHERE
deleted_at IS NULL
/*%if user.id != null */
AND user_id = /* user.id */1
/*%end*... |
/*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
---
layout: layout.pug
navigationTitle: Delete the Cluster
title: Delete the Cluster
menuWeight: 90
excerpt: Delete the Kubernetes cluster and/or the bootstrap cluster
beta: false
enterprise: false
---
## Delete the Kubernetes cluster
If you have a need to remove the Kubernetes cluster, such as for environment cleanu... |
import reacher_env
from puppersim.reacher import reacher_kinematics
import math
import time
import numpy as np
from absl import app
from absl import flags
import copy
flags.DEFINE_bool("run_on_robot", False, "Whether to run on robot or in simulation.")
FLAGS = flags.FLAGS
def run_example():
env = reacher_env.... |
# StudentCardRecorder
This repository contains a Student Card Recorder Desktop Java Application.

|
@if(\Illuminate\Support\Facades\View::exists("info.".$type.".info"))
@include("info.".$type.".info")
@else
@include("info.Maintainable.info")
@endif |
package com.paranoia.webfluxreactive.collection.platform;
import com.paranoia.webfluxreactive.collection.BaseDocument;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongo... |
<?php
//---------------------------------------------------------------------------------------------------
// Proyecto: Icasus <https://gestionproyectos.us.es/projects/r2h2-icasus/>
// Archivo: planes/linea_mostrar.php
// Tipo: controlador
// Desarrolladores: Juanan Ruiz (juanan@us.es), Jesus Martin Corredera (jjmc@u... |
using System;
namespace Microsoft.Language.Xml
{
using InternalSyntax;
internal class LastTokenReplacer : InternalSyntax.SyntaxRewriter
{
private readonly Func<SyntaxToken.Green, SyntaxToken.Green> _newItem;
private int _skipCnt;
private LastTokenReplacer(Func<SyntaxToke... |
package queue
import "time"
type TaskStatus uint8
const (
TaskStatusCreated TaskStatus = iota // just created, waiting to be processed
TaskStatusProcessing // processing by a worker
TaskStatusFailed // process failed
TaskStatusDone // process com... |
//! Miscellaneous utilities.
use std::fmt;
/// Wrapper to force a `&[u8]` to display as nicely-formatted hexadecimal
/// bytes with only the the first line or so of bytes shown.
pub struct BytesFormatter<'a>(pub &'a [u8]);
impl<'a> fmt::Debug for BytesFormatter<'a> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt:... |
import React from "react";
export const ShipmentTerms = (): JSX.Element => (
<>
<h3>Shipment and delivery.</h3>
<p>
Our products are shipped to any country within the EU. We are usually able
to deliver your product within 14 days of ordering. We'll keep you
up-to-date of your order sta... |
# chinese_backend
Backend For Chinese Memory Cards App
# URLs
* Admin - http://learnzh2.cloudapp.net/admin
* Xcode Generated Source Code - http://learnzh2.cloudapp.net/modata/xcode
* Android Generated Source Code - http://learnzh2.cloudapp.net/modata/android
* Data Sample - http://learnzh2.cloudapp.net/modata/data/To... |
SELECT
gebaeudeadressen_benanntesgebiet.ogc_fid AS t_id,
flaeche AS geometrie,
gebaeudeadressen_benanntesgebiet.gem_bfs,
gebaeudeadressen_benanntesgebiet.los,
gebaeudeadressen_benanntesgebiet.lieferdatum,
text AS name_benanntes_gebiet
FROM
av_avdpool_ng.gebaeudeadressen_benanntesgebiet
... |
const router = require('express').Router();
const Task = require('../models/Task');
module.exports = router
.post('/', (req, res, next) => {
Task.create(req.body)
.then(task => res.json(task))
.catch(next);
}); |
#include <chili/cont.h>
#if CBY_BACKEND_CYCLES_ENABLED
#include "../bytecode/opcodes.h"
#include "../instrument/append.h"
#include "../instrument/count.h"
#include "../instrument/cycles.h"
INSTRUMENT_APPEND(countcycles, count, cycles)
void insnStats(CbyInterpreter*, const countData*, const cyclesData*);
CHI_INL vo... |
import React from 'react';
import StoryElement from './StoryElement';
const StoryList = ({storiesList, history, loggedIn, deleteFn, editFn}) => (
<div>
{storiesList.map((story, i) =>
<div key={i}>
<StoryElement story={story} history={history} loggedIn={loggedIn} deleteFn={deleteFn} editFn={editFn} />
<... |
# Logging
* [How to use](HowToUse.md)
* [Sub-categories](SubCategories.md)
|
C$Procedure ET2LST ( ET to Local Solar Time )
SUBROUTINE ET2LST ( ET, BODY, LONG, TYPE, HR, MN, SC, TIME, AMPM )
C$ Abstract
C
C Given an ephemeris epoch ET, compute the local solar time for
C an object on the surface of a body at a specified longitude.
C
C$ Disclaimer
C
C THIS SOFTWARE AND ANY RE... |
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package event_test
import (
"context"
"io"
"testing"
"golang.org/x/exp/event"
"golang.org/x/exp/event/adapter/logfmt"
"golang.org/x/exp/event/eventtest"... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Decharge ;
use App\Facture;
use App\Devis;
class DechargeController extends Controller
{
public function index(){
$decharges = Devis::where('date_decharge','<>',null)->orderBy('id' , 'DESC')->with('client')->get();
//$mesur... |
// Copyright 2015-2021 Swim Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using Serilog;
nam... |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using System;
using System.Collections.Generic;
using System.Text;
namespace Cofoundry.Web
{
public class ErrorsRouteRegistration : IOrderedRouteRegistration, IRunAfterRouteRegistration
{
public int Ordering => (int)RouteRegistrat... |
MODULE efstr_I
INTERFACE
!...Generated by Pacific-Sierra Research 77to90 4.4G 10:47:10 03/09/06
SUBROUTINE efstr (XPARAM, FUNCT, IHESS, NTIME, ILOOP, IGTHES, MXSTEP&
, IRECLC, IUPD, DMAX, DDMAX, DMIN, TOL2, TIME1, TIME2, NVAR, SCF1, LUPD&
, LDUMP, LOG, RRSCAL, DONR, GNMIN,... |
//
// Created by Yohsuke Murase on 2021/10/17.
//
#include <iostream>
#include <vector>
#include <array>
#include <cassert>
#include "mpi.h"
#ifndef CPP_SCALAPACK_HPP
#define CPP_SCALAPACK_HPP
extern "C" {
void sl_init_(int *icontext, int *nprow, int *npcolumn);
// SL_INIT initializes an NPROW x NPCOL process g... |
package com.socion.backend.service;
import com.socion.backend.dto.AppUpdateDto;
public interface AppUpdateService {
AppUpdateDto appupdate(String appVersion, String appName, String appType);
}
|
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Dolittle.CodeAnalysis.ExceptionDescriptionShouldFollowStandard
{... |
import { Context, Next } from "koa";
import { Provide } from "../../../decorator/provide.decorator";
import { IMiddleware } from "../../../types/http";
import { Inject } from "../../../decorator/inject.decorator";
import { Application } from "../../../Application";
import fs from "fs";
import path from "path";
interfac... |
'use strict';
/* Controllers */
angular.module('sampleApp.controllers')
.controller('MainController', [ '$scope', 'messageService', 'language',
function ($scope, messages, language) {
$scope.language = language;
$scope.user = {username:"daniel"};
$scope.addMsg = function(transl8Key, level, showContact... |
<?php
namespace Hris\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Gist\CoreBundle\Template\Entity\HasGeneratedID;
use Gist\CoreBundle\Template\Entity\HasName;
use Gist\CoreBundle\Template\Entity\HasCode;
use Gist\CoreBundle\Template\Entity\HasNotes;
use Gi... |
package uk.jixun.project.Exceptions;
public class LabelNotFoundException extends Exception {
public LabelNotFoundException() {
super();
}
public LabelNotFoundException(String s) {
super(s);
}
static public LabelNotFoundException fromLabel(String l) {
return new LabelNotFoundException("From labe... |
/*
+----------------------------------------------------------------------+
| Copyright (c) 1997-2019 Derick Rethans |
+----------------------------------------------------------------------+
| This source file is subject to the 2-Clause BSD license which is |
| availabl... |
/*
Copyright 2018 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
---
layout: page
title: grep
docs: https://www.man7.org/linux/man-pages/man1/grep.1p.html
---
Find and print lines containing `hello` in file `./file.txt`
```bash
grep hello file.txt
```
Find and print lines containing `hello` in files in directory `./files` and it's subdirectories
```bash
grep -r hello files
```
Find ... |
/**
# 2D Rayleigh-Bernard convection in a periodic square.
Setting $Ra = 10^6$ and $Pr = 1$ results in a periodic-in-time
pattern.

*/
#define NOSLIP_TOP (1)
#define NOSLIP_BOTTOM (1)
#include "nsf4t.h"
scalar zeros[], b[], * tracers = {b};
b[bottom] = dirichlet_vert_bottom(0.5);
b[top] = ... |
import React from "react";
import cn from "classnames";
import { LinkCommonProps } from "src/components/Link";
import { overrideTw } from "src/util/site";
type LinkButtonProps = {
color?: "default";
};
export type ButtonLinkProps = LinkCommonProps & LinkButtonProps;
export const buttonStyles = {
default: `
b... |
---
title: Frameset.Delete Method (Word)
keywords: vbawd10.chm165806131
f1_keywords:
- vbawd10.chm165806131
ms.prod: word
api_name:
- Word.Frameset.Delete
ms.assetid: 21290f22-9881-02a9-278c-055c0b8d1051
ms.date: 06/08/2017
---
# Frameset.Delete Method (Word)
Deletes the specified **Frameset** object.
## Syntax
... |
/*
* 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 ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Str;
class Member extends Model
{
//
use Notifiable;
//creating uuid for user model
/**
* @var mixed
*/
public $incrementing = false;
protected static fun... |
import 'reflect-metadata'
import { ButtonComponent, Discord, Slash, SlashChoice, SlashOption } from 'discordx'
import { fetchData } from '../Cache'
import { ButtonInteraction, Client, CommandInteraction, InteractionReplyOptions, MessageActionRow } from 'discord.js'
import { Location } from '../lib/game/Location'
import... |
import React from "react"
import { Global, css } from "@emotion/react"
import Header from "./Header"
import "normalize.css"
import "@fontsource/poppins/300.css"
import "@fontsource/poppins/400.css"
import "@fontsource/poppins/600.css"
import "@fontsource/poppins/700.css"
import "@fontsource/raleway/900.css"
const Layo... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreBookRequest;
use Image;
use App\Models\Book;
use App\Models\Author;
use App\Models\Publisher;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
class BookController extends Controller
{
/**
* Di... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { NgxCarousel } from 'ngx-carousel';
//import { NgxHmCarouselModule } from 'ngx-hm-carousel';
import { AuthenticationService, UserDetails } from '../authentication.service';
import { Router } from '@angular/router';
@Component({
templateUrl: './home... |
using Cars.WebAPI.Repository;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace Cars.WebAPI.Controllers
{
[ApiVersionNeutral]
[Route("[controller]")]
public class ApiController : ControllerBase
{
/// <summary>
/// Reset AP... |
{-# LANGUAGE DuplicateRecordFields #-}
module GpoM.Types.CSE.Common where
import Data.List.NonEmpty
import Data.Text (Text)
import Data.Word (Word8)
class FromXml a where
fromXml :: Text -> a
data Outer = Outer {clsid :: !Text
,disabled :: !(Maybe Bool)
}
deriving (Eq, Show)... |
package test;
fun main() {
console.log("Testing math...")
console.log("1+1:", 1 + 1)
console.log("30/2:", 30 / 2)
console.log("10-(20-10)+100:", 10 - (20 - 10) + 100)
console.log("JSTest: ", "11" - 2)
console.log("JSTest №2: ", "1" + 1)
} |
package digraph_test
import (
"testing"
. "github.com/DmitryBogomolov/algorithms/graph/digraph"
"github.com/DmitryBogomolov/algorithms/graph/internal/tests"
"github.com/stretchr/testify/assert"
)
func TestReverseDigraph(t *testing.T) {
gr := tests.NewTestDigraph(4,
0, 1,
0, 2,
2, 1,
1, 3,
2, 3,
)
... |
package io.github.warriorzz.ktify.model.auth
enum class Scope(val value: String) {
NONE("none"),
UGC_IMAGE_UPLOAD("ugc-image-upload"),
USER_READ_RECENTLY_PLAYER("user-read-recently-played"),
USER_TOP_READ("user-top-read"),
USER_READ_PLAYBACK_POSITION("user-read-playback-position"),
USER_REA... |
<?php
// Call Zend_View_Helper_DeclareVarsTest::main() if this source file is executed directly.
if (!defined("PHPUnit_MAIN_METHOD")) {
define("PHPUnit_MAIN_METHOD", "Zend_View_Helper_DeclareVarsTest::main");
}
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/TestHelper.php';
require_once "PHPUnit/Fra... |
/*
* *
* * Created by Sina Dalvand on 12/22/20 19:20 PM
* * Copyright (c) 2020 . All rights reserved.
* * Last modified 12/22/20 19:20 PM
*
*/
package ir.sinadalvand.projects.bazaarproject.contracts
import android.os.Bundle
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.V... |
package com.tomcz.ellipse.internal.util
import com.tomcz.ellipse.PartialState
import kotlinx.coroutines.flow.MutableStateFlow
fun <T : PartialState<K>, K : Any> MutableStateFlow<K>.reduceAndSet(intent: T) {
value = intent.reduce(value)
}
|
// PROBLEM: none
open class A {
<caret>internal fun foo() {}
fun bar() {
O.foo()
}
}
object O : A() |
package 四法
trait P1Num1
case class P1Num1S(tail: P1Num1) extends P1Num1
case object P1Num1T extends P1Num1
trait P1Num2 {
def method1(num1: P1Num1): P1Num1
}
case class P1Num2S(tail: P1Num2) extends P1Num2 {
override def method1(num1: P1Num1): P1Num1 = P1Num1S(tail.method1(num1))
}
case object P1Num2... |
<?php
namespace PgFramework;
use PgFramework\Auth\UserInterface;
interface Auth
{
/**
*
* @return UserInterface|null
*/
public function getUser(): ?UserInterface;
/**
*
* @param UserInterface $user
* @return Auth
*/
public function setUser(UserInterface $user): se... |
// Read a sequence of double values into a vector.
// Think of each value as the distance between two cities along a given route.
// 1. Compute and print the total distance.
// 2. Find the smallest and the greatest distance between two neighbor cities.
// 3. Find and print the mean distance between cities.
#include<io... |
INSERT INTO COUNTRIES(ID, NAME, CODE) VALUES
(1, 'Australia', 'au'),
(2, 'Great Britain (UK)', 'gb'),
(3, 'United States of America', 'us');
INSERT INTO CITIES(ID, COUNTRY_ID, LATITUDE, LONGITUDE, NAME) VALUES
(1, 1, -33.88333300, 151.21666700, 'Sydney'),
(2, 1, -37.81666700, 144.96666700, 'Melbourne'),
(3, 1, -... |
<h5 class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span id="user-email">{{ $text }}</span><span class="caret"></span>
</h5> |
package bsaber.tools.bsaber_scrapper;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gso... |
<?php
namespace App\Http\Controllers;
use App\Admin;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cookie;
class LoginController extends Controller
{
//登陆展示
public function login(){
return view("login.login");
}
public function loginDo(){
// echo 11;
\request()->val... |
// export const APP_SERVE_URL = 'http://88.128.18.193:8080/';
// export const FILE_SERVE_URL = 'http://88.128.18.144:3333/';
/*----------------------------------------后台Api地址----------------------------------------*/
export const APP_SERVE_URL = 'http://192.168.0.225:55555/'; // 'http://119.7.14.131:8099/';
/*-------... |
using StyleCop;
using StyleCopCmd.Reader;
namespace StyleCopCmd.Core
{
public abstract class StyleCopIssueReporter
{
public virtual void Report(string message)
{
}
public virtual void ProjectAdded(CsProject project)
{
}
public virtual void Started()
... |
from tkbuilder.widgets.widget_wrappers.button import Button
from tkbuilder.widgets.widget_wrappers.canvas import Canvas
from tkbuilder.widgets.widget_wrappers.combobox import Combobox
from tkbuilder.widgets.widget_wrappers.scale import Scale
from tkbuilder.widgets.widget_wrappers.label import Label
from tkbuilder.widge... |
class App < ApplicationRecord
has_one :graylog_stream, dependent: :destroy
NAME_FORMAT = /\A[a-z0-9\-]+\Z/.freeze
attr_accessor :validate_stream
validates :name, uniqueness: true, presence: true, format: { with: NAME_FORMAT }
validates :image_source, inclusion: { in: %w[dockerhub ecr] }
validates :reposi... |
## Cryptocoin Price Indicator
<a href="https://github.com/tortuvshin/indicator/issues">
<img src="https://img.shields.io/github/issues/tortuvshin/indicator.svg"
alt="Issues"></a>
<a href="https://github.com/tortuvshin/indicator/fork">
<img src="https://img.shields.io/github/forks/tortuvshin/indicator.svg?style=soc... |
# frozen_string_literal: true
require "ferrum/frame"
module Ferrum
class Page
module Frames
attr_reader :main_frame
def frames
@frames.values
end
def frame_by(id: nil, name: nil)
if id
@frames[id]
elsif name
frames.find { |f| f.name == name }... |
/*
* Copyright (C) 2004-2016 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... |
<?php
declare(strict_types=1);
namespace __Vendor__\__Package__;
class __Package__
{
}
|
docker build -t `
scth/mssql-server-windows-2019-developer:10.0.17763.1397 `
--no-cache `
.
docker rmi $(docker images -f "dangling=true" -q) -f
docker tag scth/mssql-server-windows-2019-developer:10.0.17763.1397 scth/mssql-server-windows-2019-developer:latest
|
package com.nikitamaslov.domain.interactor.preferences
import com.nikitamaslov.domain.model.Temperature
import com.nikitamaslov.domain.repository.PreferencesRepository
interface SetTemperatureUnitUseCase {
suspend operator fun invoke(temperatureUnit: Temperature.Unit)
}
internal class SetTemperatureUnitUseCaseI... |
// 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 in the LICENSE-APACHE file or at:
// https://www.apache.org/licenses/LICENSE-2.0
//! Size and EventState manager
use super::Pending;
use cr... |
from test_util import build_parquet_data, verify_datasets
import sys
official_application = sys.argv[1]
official_files_location = sys.argv[2]
cmdline_params = ["-p",
"PriceUpdate-for-test",
"-o",
"1003",
official_files_location + "/20190104/221500/224.0.66.193_21193.pcap.gz",
official_files_lo... |
(function () {
var global = typeof window !== 'undefined' ? window : this || Function('return this')();
var nx = global.nx || require('@jswork/next');
//@thanks to: https://github.com/gr0uch/promise-compose/blob/master/index.js
//@thanks to: https://itnext.io/roll-your-own-async-compose-pipe-functions-658cafe4c... |
<?php
namespace App\MsAccess\Traitements;
use App\MsAccess\Database\DatabaseAccess;
use App\Entity\EmDenom;
use App\Entity\EmDenomV2;
//use Doctrine\ORM\EntityManagerInterface;
/**
* Description of TrtBaseEM
*
* @author Frannou
*/
class TrtBaseEM {
private $em;
function __construct($em)
... |
#!/usr/bin/env sh
# Sets up a new Aniseed plugin project within the current directory.
# Warning: Only run in new empty directories, it will replace your
# `.gitignore`, `Makefile` and other such files!
# Warning: Requires `make` as part of the workflow.
# Usage: curl -fL https://raw.githubusercontent.com/Olical/anise... |
import { addons } from "@storybook/addons";
import flatTheme from "./flat-theme";
addons.setConfig({
theme: flatTheme,
});
|
package p26_1
func removeDuplicates(nums []int) int {
if len(nums) < 2 {
return len(nums)
}
target, source := 1, 1
for source < len(nums) {
if nums[source] == nums[target-1] {
source++
} else {
nums[target] = nums[source]
source++
target++
}
}
return target
}
|
## 函数
1.函数使用def关键字定义,不需要指定函数参数或返回值类型。
2.python中每一个对象都有一个关联的真值,表示这个对象计算为True或者False
> 如果计算为0、值None、空窜或者一个空的内置数据结构,则为False。其它为True
>
> 可以向bool函数传递任何对象来确定它是True还是False。任何非空数据结构都计算为True
3.使用函数注解来提供参数和返回说明
```python
# str 注解说明希望word参数类型是字符串,->set 说明函数将返回一个set
# 注解添加与否,解释器同样不会对输入和返回进行检验
def search_for_vowels_by_ann(... |
# Copyright 2020 Self Group Ltd. All Rights Reserved.
# frozen_string_literal: true
require 'httparty'
module SelfSDK
class RestClient
attr_reader :self_url, :jwt, :env
# RestClient initializer
#
# @param url [string] self-messaging url
# @param token [string] jwt token identifying the authent... |
import 'package:flutter/material.dart';
import 'user.dart';
///页面路由角色
abstract class IYimPageRouterRole {
///允许访问页面的角色
List<IYimRouterRole> visitsRouterRoles(BuildContext context);
}
///页面
abstract class YimPage implements Widget, IYimPageRouterRole {}
class EmptyYimPage extends StatelessWidget implements YimPa... |
package com.zys.my.shop.persistence;
import com.zys.my.shop.dto.BaseResult;
import java.util.List;
/**
* @program: my-shop
* @description: 树形结构业务逻辑层标准
* @author: Leo
* @create: 2019-06-13 14:23
**/
public interface BaseTreeService<T extends BaseEntity> {
/**
* @Description: 查询所有信息
* @Author: Leo
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.