text
stringlengths
27
775k
<?php /** * DECO Library * * @link https://github.com/stenvala/deco-essentials * @copyright Copyright (c) 2016- Antti Stenvall * @license https://github.com/stenvala/deco-essentials/blob/master/LICENSE (MIT License) */ namespace deco\essentials\prototypes\restmap; /** * Base class for instantiating services ...
package googlecloud import ( "context" "sync" "time" "cloud.google.com/go/pubsub" "github.com/pkg/errors" "google.golang.org/api/option" "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill/message" ) var ( // ErrPublisherClosed happens when trying to publish to a topic while the publis...
pub struct Demo { pub title: String, pub path: String, }
package response import org.apache.spark.sql.functions._ import org.apache.spark.sql.{DataFrame, SparkSession} /** The RankRegions object uses methods to group and sort by some metric passed as an argument. */ object RankRegions { /** returns resulting dataFrame after performing given operation 'op' * on som...
$( document ).ready(function() { console.log("fds"); $("body").on("click", "#submitPost", function() { console.log("fdf"); console.log($("#addPostForm").serializeArray()); }); });
require 'json' require 'httparty' incidents_file = File.read('incidents.json') incidents = JSON.parse(incidents_file) resolved = [] errors = [] incidents.each do |incident| next if incident['id'].to_i < 407 puts "getting #{incident['id']}" lat = incident['lat'] lng = incident['lng'] next if lat.nil? || lng.n...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOngsTable extends Migration { /** * Creating ongs table. * * @return void */ public function up() { Schema::create('ongs', function(Blueprint $table) { $table->increments('id'); $table->stri...
use std::fs; use std::io::{self, Write}; use std::path::{Path, PathBuf}; use std::process; use structopt::StructOpt; use tokio::runtime; use gha_runner::*; #[derive(StructOpt)] /// Run a Gitub Actions workflow locally struct Opt { owner: String, repo: String, sha: String, /// Can be either an absolut...
package handler import ( "net/http" "github.com/gorilla/mux" "go.uber.org/zap" "github.com/update_me/update/internal/config" ) // Handler is the struct to track dependencies of the Vendor Portal Service routes. type Handler struct { Log *zap.SugaredLogger Config *config.Config } // New creates the route h...
SELECT c.class FROM ( SELECT cc.class, COUNT(cc.class) AS count FROM ( SELECT student, class FROM courses GROUP BY student, class ) cc GROUP BY cc.class ) c WHERE c.count >= 5;
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. Write-Host "##[info]Test Native simulator" Push-Location (Join-Path $PSScriptRoot "build") ctest -C "$Env:BUILD_CONFIGURATION" --verbose if ($LastExitCode -ne 0) { Write-Host "##vso[task.logissue type=error;]Failed to t...
import * as React from 'react'; import { LocalSettings } from 'constants/SettingConstants'; import LocalSettingForm from 'routes/Settings/components/LocalSettingForm'; import '../style.css'; import { SettingSectionChildProps } from 'routes/Settings/components/SettingSection'; const PopupEntry = [ LocalSettings.NO...
//! Utilities for working with raw byte units. use core::fmt; /// `1 KiB` pub const KIB: usize = 1 << 10; /// `1 MiB` pub const MIB: usize = 1 << 20; /// `1 GiB` pub const GIB: usize = 1 << 30; /// `1 TiB` pub const TIB: usize = 1 << 40; /// Return a formattable type that will pretty-print the given amount of bytes....
@extends('layouts.index') @section('content') @component('components.breadcrumb') @slot('title') @lang('lang.prod') @endslot @slot('desc') {{ $product->category->getTranslatedAttribute('name', \App::getLocale()) }} @endslot @endcomponent <div class="container-fluid cards"> <div class="container cards__wrapp...
import { executeViaParent, servicesAnnouncement } from '@Lib/child' import { emitToParent } from '@Lib/emitter' export const emit = emitToParent export const execute = executeViaParent export { servicesAnnouncement }
<?php require("config.php"); /*** set a form token ***/ $form_token = md5(uniqid('auth', true)); /*** set the session form token ***/ $_SESSION['form_token'] = $form_token; ?> <html> <head> <title><?php echo $servername ?> Registration</title> </head> <body> <h2>Register</h2> <form action="register_submit.php" ...
using System.Web.Mvc; using EPiServer.Framework.DataAnnotations; using EPiServer.Framework.Web; using EPiServer.Web.Mvc; using EpiserverSite.Models.Pages; using EpiserverSite.Models.ViewModels; namespace EpiserverSite.Controllers { [TemplateDescriptor(Tags = new[] { RenderingTags.Mobile })] public class Start...
#!/bin/bash # # A PVFS2 test script using only sysint test programs # # This script focuses on making sure that basic mkdir, # create, lookup, and symlink programs are working properly. # # During operation, this test stresses the lookup operation # and symlink resolution. # # tests the following functionality: # # /...
package pages.proposals.view import MarketplaceDsl import backendService import items.demands.MarketplaceDemandRouteParams import items.demands.view.MarketplaceDemandViewProps import items.demands.view.marketplaceDemandView import items.proposals.MarketplaceProposalRouteParams import items.proposals.view.MarketplacePr...
module Bowline module Desktop # This class provides a useful abstraction on the Window class. # It's the usual way of interfacing with your application's windows, # and all of Bowline's windows normally inherit from it. # # You'll need to call the setup! method, before calling using this class. ...
require 'spec_helper' describe EkoConfig::Section do before(:all) do @section = EkoConfig::Section.new('Section') end it 'responds to name' do expect(@section).to respond_to(:name) end it 'responds to settings' do expect(@section).to respond_to(:settings) end it 'starts with no settings' d...
# swjtu_review 致力于收集西南交通大学本科考试的复习资料 # 网盘分享地址 阿里云盘 https://www.aliyundrive.com/s/7PoTJF2sooo # 其他 如果你也是交大学生,欢迎共享你的资料,你可以通过以下方式联系我: * QQ:1093230325 * 邮箱:1093230325@qq.com
--- layout: single title: "Physics Notes - 1 " date: 2020-08-07 08:49:23 +0100 categories: physics excerpt: All Notes Relating to the IB Physics HL Course --- ## Test 1 - Physics!
/** * Copyright 2019 Huawei Technologies 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...
using UnityEngine; namespace RTG { public class GizmoCap3DControllerData { public Gizmo Gizmo; public GizmoCap3D Cap; public GizmoHandle CapHandle; public ConeShape3D Cone; public PyramidShape3D Pyramid; public BoxShape3D Box; public SphereSh...
const Config = require('../../Config.json'); const db = require('quick.db'); client.on('message', async message => { if (message.channel.id === Config.Partner) { await db.add(`yetkili.partner.${message.author.id}`, 1) } }) client.on('messageDelete', async message => { let entry = await message.guild.f...
#!/bin/bash echo "/*" echo "* TABLE SQL CELL_TYPES" echo "*/" echo "" echo "DROP TABLE IF EXISTS cell_types;" echo "CREATE TABLE cell_types (" echo "id serial NOT NULL," echo "cell_size double precision NOT NULL," echo "bounds geometry," echo "description text," echo "CONSTRAINT pk_cell_types PRIMARY KEY (id )" echo '...
using Microsoft.AspNetCore.Mvc; using SFA.DAS.ApprenticeCommitments.Apis.InnerApi; using SFA.DAS.ApprenticeCommitments.Configuration; using SFA.DAS.SharedOuterApi.Interfaces; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace SFA.DAS.ApprenticeCommitments.Api.Controllers { [Api...
package superficial import Object._ import Morphism._ import Helper._ import Equivalence_class._ trait Category {cat => var objects : Set[Object] var morphisms : Set[Morphism] var equality_of_morphisms : Equivalence_class[Morphism] def are_equal (f : Morphism, g : Morphism) : Boolean = equality_of_morph...
package terraform import ( "reflect" "strings" "sync" "testing" ) func TestContext2Input(t *testing.T) { input := new(MockUIInput) m := testModule(t, "input-vars") p := testProvider("aws") p.ApplyFn = testApplyFn p.DiffFn = testDiffFn ctx := testContext2(t, &ContextOpts{ Module: m, Providers: map[string...
class Photo < ActiveRecord::Base validates :user_id, :image, presence: true belongs_to :user belongs_to :hashtag has_and_belongs_to_many :messages has_attached_file :image, styles: { cover: '320x1000^', medium: '300x300>', ...
import { NotSupportedError } from "../dom/DOMException" import { Element, Node } from "../dom/interfaces" /** * Matches elements with the given selectors. * * @param selectors - selectors * @param node - the node to match against */ export function selectors_scopeMatchASelectorsString(selectors: string, node: N...
/*++ Copyright (c) Microsoft Corporation. Licensed under the MIT License. Abstract: This file respresents a generic way to store objects that are represented by non-unique pointers. An object has a lifetime and after that, its pointer may be reused for a new object. An object is 'active' if it's ...
import { theme } from "../src/theme/theme"; import { themes } from "@storybook/theming"; const darkTheme = { ...themes.dark, colorPrimary: theme.colors.blue[500], colorSecondary: theme.colors.gray[500], appBg: theme.colors.gray[800], appContentBg: theme.colors.gray[750], appBorderColor: theme.colors.gray[7...
import logging from typing import Callable, Dict from lunr.exceptions import BaseLunrException from lunr.token import Token log = logging.getLogger(__name__) class Pipeline: """lunr.Pipelines maintain a list of functions to be applied to all tokens in documents entering the search index and queries ran agai...
import { geneTypeDoc } from './gene-type-doc'; import { ITypesResolver, NodeModulesTypesResolver } from './types-resolver'; export async function main() { const resolver: ITypesResolver = new NodeModulesTypesResolver(process.cwd()); await geneTypeDoc({entryPoints: [resolver.getTypesAbsolutePath('jquery')]}) } ...
require "test_helper" class ObjectMethodsTest < Test::Unit::TestCase def setup @klass = Class.new end def test_define_method_on_only_one_instance_of_a_class instance = @klass.new assert_raises(NoMethodError) { instance.success? } instance.__metaclass__.class_eval { def success?; true; end } ...
! Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. ! See https://llvm.org/LICENSE.txt for license information. ! SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ! module mod type base_t contains procedure :: some_proc => baseproc end type contains subroutine baseproc(this,this2,r...
using Moq; using Serilog.Sinks.Http.Private.IO; using Serilog.Support; using Shouldly; using Xunit; namespace Serilog.Sinks.Http.Private.Durable { public class FileSizeRolledBufferFilesShould { private readonly Mock<IDirectoryService> directoryService; private readonly FileSizeRolledBufferFile...
package com.anshul.theroadrunner.home import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import com.anshul.theroadrunner.entities.Attraction import com.anshul.theroadrunner.repos...
Dockerfile of latest ubuntu image w/ sshd ================================ username: ubuntu password: ubuntu
import 'dart:convert'; import 'package:gastracker/services/etherscan/gastracker.dart'; import 'package:test/test.dart'; void main() { const sampleJson = '''{"LastBlock":"12879723","SafeGasPrice":"12","ProposeGasPrice":"14","FastGasPrice":"18"}'''; final oracle = GasOracle.fromJson(jsonDecode(sampleJs...
### limma for GenePix microarray data ## read https://www.bioconductor.org/packages/3.3/bioc/vignettes/limma/inst/doc/usersguide.pdf ## http://biocourse.wp.sanbi.ac.za/wp-content/uploads/sites/7/2013/01/day3.pdf ## read here on how to install bioconductor packages https://www.bioconductor.org/install/ source("https:/...
import ContactClass from './contact'; describe('Contact class tests', () => { let contact: ContactClass = null; beforeEach(() => { contact = new ContactClass(); }); afterEach(() => { contact = null; }); it('should have a valid constructor', () => { expect(contact).not...
--- layout: post title: "World War II in Colour" description: "Recounts the events of world War II in color..." img: 2069688.jpg kind: tv series genres: [Documentary,History,War] tags: Documentary History War language: English year: 2009 imdb_rating: 8.7 votes: 4721 imdb_id: 2069688 netflix_id: 70254851 color: 432818 ...
## Details For `options.directed: false`, this function returns an object of the following form: ```js { /* the normalised degree centrality of the specified node */ degree: function( node ){ /* impl */ } } ``` For `options.directed: true`, this function returns an object of the following form: ```js { /* the...
import React, { useState, useCallback, useEffect } from "react"; import { useDispatch } from "react-redux"; import { paymentAction } from "../../actions"; import Typography from "@material-ui/core/Typography"; import Grid from "@material-ui/core/Grid"; import TextField from "@material-ui/core/TextField"; const Payment...
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Applicative (optional, some, many) import qualified Options.Applicative as O import Options.Applicative ((<|>), (<**>)) import qualified Data.Attoparsec.Text as Atto import Data.Semigroup ((<>)) import qualified Data.Tex...
class WelcomeController < ApplicationController def user @username = params[:username] @gossips = Gossip.all.reverse end end
/*Fenwick Tree is used when there is a problem of range sum query with update i.e. RMQ. Suppose you have an array and you have been asked to find sum in range. It can be done in linear time with static array method. If will be difficult for one to do it in linear time when you have point updates. In this update operati...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-09-2020 a las 05:06:40 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
// ----------------------------------------------------------------------- // <copyright file="Program.cs" repo="TextScript"> // Copyright (C) 2018 Lizoc Inc. <http://www.lizoc.com> // The source code in this file is subject to the MIT license. // See the LICENSE file in the repository root directory for m...
pdf_file<-"pdf/tablecharts_symbol_signs.pdf" cairo_pdf(bg="grey98",pdf_file,width=9,height=4) par(omi=c(0.5,0.25,0.5,0.25),mai=c(0,0,0,0),family="Lato Light",cex=1.2) # Import data library(gdata) myData<-read.xls("myData/leaking_pipeline.xlsx", encoding="latin1") attach(myData) # Create graphics b1<-barplot(Men+75...
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source $SCRIPT_DIR/setup-common.sh ### wifi client sudo cp etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/ ### ntp follower sudo apt-get -y install ntp sudo cp etc/ntp.conf /etc/ntp.conf sudo chown -R ntp /var/log/ntpstats #...
using Hypermedia.Metadata; using Hypermedia.Metadata.Runtime; namespace Hypermedia.Configuration { public sealed class FieldSerializationBuilder<T> : FieldBuilder<T> { /// <summary> /// Constructor. /// </summary> /// <param name="builder">The parent builder.</param> //...
#### 细节补充 一、搭建 spring 源码项目的阅读环境需要以下条件 1.1、jdk1.8_265及以上版本:原因可见 https://github.com/spring-projects/spring-framework/wiki/Build-from-Source 1.2、(可略) gradle环境:https://gradle.org/releases/ (我现在选的是v6.6.1),下载并配置运行环境 二、fork 一份 spring 源码到自己的仓库:https://github.com/spring-projects/spring-framework/tree/5.2.x ...
--- title: SCCP Configuration --- ## Provisioning To be able to provision SCCP phones you should : - activate the [DHCP Server](/uc-doc/system/dhcp), - activate the [DHCP Integration](/uc-doc/administration/provisioning/adv_configuration#dhcp-integration), Then install a plugin for SCCP Phone At this point you s...
module Rmega module Nodes class Root < Node include Expandable include Traversable def download(path) children.each do |node| node.download(path) end end end end end
#pragma once #ifndef VGP_API_HPP #define VGP_API_HPP #include <string> #include <vgp/export.hpp> namespace vgp { struct NewVideoParam { NewVideoParam() {} NewVideoParam(std::string& filePath) : VideoFilePath(filePath) {} std::string VideoFilePath; std::string SubtitleFilePath; }; ...
namespace R3.Geometry { using R3.Math; using System.Numerics; using Math = System.Math; public class Surface { // Maps unit disk to Boy's surface. public static Vector3D MapToBoys( Vector3D v ) { // https://en.wikipedia.org/wiki/Boy%27s_surface#Parametrization_of_Boy.27s_surface Complex w = v.ToComp...
import React from "react"; import { useAuth } from "hooks"; import LoadingIndicator from "./LoadingIndicator"; import UnauthorizedAccess from "./UnauthorizedAccess"; const AuthorizeComponent: React.FC = ({ children }) => { const auth = useAuth(); const getComponentBody = () => (auth.isAuthenticated ? <>{childre...
import * as fs from 'fs-extra'; import walkSync from 'klaw-sync'; import * as path from 'path'; import { ModuleConfiguration } from './ModuleConfiguration'; type PreparedPrefixes = [nameWithExpoPrefix: string, nameWithoutExpoPrefix: string]; /** * prepares _Expo_ prefixes for specified name * @param name module na...
<?php namespace RaphaGodoi\ScaffoldVel\Makes; use stdClass; use Illuminate\Filesystem\Filesystem; use RaphaGodoi\ScaffoldVel\Commands\ScaffoldMakeCommand; use RaphaGodoi\ScaffoldVel\Makes\MakeMigration; use RaphaGodoi\ScaffoldVel\Makes\MakeModel; use RaphaGodoi\ScaffoldVel\Makes\MakeView; trait MakerTrait { /**...
import { Rotation } from './rotation'; import { Vector } from '../../utils'; describe('Rotation Component', () => { describe('constructor', () => { it('should set default values when used with empty parameters', () => { const rot = new Rotation(); expect(rot.x).toBe(0); expect(rot.y).toBe(0); ...
<?php namespace app\backend\controller; use app\backend\model\Member; use think\Controller; use think\Db; use think\Request; use think\Session; class MemberController extends BaseController { /* * 目标客户 */ public function target() { $keyword = \request()->get("keyword") ?? ""; $q...
define(function(require, exports, module) { 'use strict'; var Surface = require('famous/core/Surface'); var RenderNode = require('famous/core/RenderNode'); var StateModifier = require('famous/modifiers/StateModifier'); var InputSurface = require('famous/surfaces/InputSur...
# 6. Constraint Satisfaction Problems **6.1** How many solutions are there for the map-coloring problem in Figure [australia-figure](#/)? How many solutions if four colors are allowed? Two colors? **6.2** Consider the problem of placing $k$ knights on an $n\times n$ chessboard such that no two knights are attacking ...
// data table $(document).ready(function() { $('#datatable').DataTable(); } ); // mobile view $(window).bind("load resize", function() { if($(this).width() < 768) { $('div.sidebar-collapse').addClass('collapse') } else { $('div.sidebar-collapse').removeClass('collapse') } }...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * All available acceptable conditions for filters */ export enum ACCEPTABLE_CONDITIONS { /** * Number filed */ BETWEEN = 'BETWEEN', /** * Calendar field with two date inputs */ BETWEEN_DATE = 'BETWEEN_...
using System; using PresentationLayer; namespace App { class Program { static void Main(string[] args) { var peopleViewModel = new PeopleViewModel(); var people = peopleViewModel.GetAll(); Console.WriteLine("Some famous tennis players"); Console...
import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:nativemoon/components/popUpAlert.dart'; import 'package:nativemoon/components/myTextField.dart'; import 'package:nativemoon/components/roundedButton.dart'; import 'package:nativemoon/services/authentication.dart'; import 'p...
require_relative '../../spec_helper' require_relative 'fixtures/classes' require_relative '../../shared/process/exit' describe "Kernel#exit" do it "is a private method" do Kernel.should have_private_instance_method(:exit) end it_behaves_like :process_exit, :exit, KernelSpecs::Method.new end describe "Kerne...
require 'openssl' module OpenSSLPKeyED def self.to_der(key) case key when OpenSSL::PKey::EC::Point # EC public key asn1(key).to_der when OpenSSL::PKey::EC, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA, OpenSSL::PKey::DH key.to_der end end def self.to_pem(key) case key when OpenSSL:...
create table alunx( cpf varchar(15) primary key, identidade varchar(30) not null unique, nome varchar(40) not null, numeroDocumentoMilitar varchar(30), dtNasc date not null, nacionalidade varchar(30) not null, sexo varchar(30) not null );
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/eventarc/v1/discovery.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/eventarc/v1/discovery.proto...
class UserPriceGroupMember < PriceGroupMember belongs_to :user validates_presence_of :user_id validates_uniqueness_of :user_id, :scope => [:price_group_id] end
use crate::entrypoints::query; use cosmwasm_std::testing::mock_env; use cosmwasm_std::{from_binary, to_binary, Uint128}; use cw20::{Cw20QueryMsg, TokenInfoResponse}; use pylon_gateway::pool_msg::{QueryMsg as PoolQueryMsg, QueryMsg}; use pylon_gateway::pool_resp::RewardResponse; use crate::testing::{instantiate, mock_d...
package main import ( "fmt" "runtime" ) func producer(c chan int, N int, s chan bool) { for i := 0; i < N; i++ { fmt.Printf("producer: %d\n", i) c <- i } s <- true } func consumer(c chan int, N int, s chan bool) { for i := 0; i < N; i++ { fmt.Printf("consumer got: %d\n", <- c) } s <- true...
require File.expand_path('../../spec_helper', __FILE__) describe BoolENV do ["True","true","Yes","yes","1"].each do |truthy_value| it "should return true for variable with value #{truthy_value}" do allow(ENV).to receive(:[]).with("test_var").and_return(truthy_value) expect(BoolENV["test_var"]).to be ...
package cmd import ( "context" "github.com/103cuong/go_grpc_postgres_kit/configs" "github.com/103cuong/go_grpc_postgres_kit/internal/migration" "github.com/103cuong/go_grpc_postgres_kit/pkg/protocol" "gorm.io/driver/postgres" "gorm.io/gorm" "log" ) func RunServer() error { ctx := context.Background() var er...
import Data.Bifunctor -- read input and print solution main :: IO () main = do let file = "input/day9.txt" stream <- readFile file let (simplified, garbageCount) = process stream print $ score simplified print garbageCount -- simplify string to nested parantheses, counting removed characters minus escapes...
/* * Copyright (c) 2015-2018, David A. Bauer. All rights reserved. * * 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 requir...
$(function () { // EXIBIR MODAIS $("#btn_add_clientes").click(function () //Js para abrir o modal de cadastros dos Clientes { clearErrors(); $("#form_clientes")[0].reset(); $("#modal_clientes").modal(); }); $("#btn_add_produtos").click(function () //Js para abrir o modal de cadastros dos Produtos { clea...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { ToolboxComponent } from './toolbox.component'; describe('SearchFormComponent', () => { let component: ToolboxComponent; let fixture: Comp...
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text.RegularExpressions; using Calibrus.SparkPortal.DataAccess.Infrastructure; using Calibrus.SparkPortal.Business; namespace Calibrus.SparkPortal.ViewModel { publ...
package com.androidkotlincore.sample.core.di import android.content.Context import com.androidkotlincore.sample.app.App import com.androidkotlincore.sample.core.di.module.* import dagger.BindsInstance import dagger.Component import javax.inject.Singleton /** * Created by Peter on 04.02.2018. */ @Singleton @Componen...
# Œ 238 ‰ --- jo iesu mwry iqs kau Bau nwih ] jo iesu mwry su nwim smwih ] jo iesu mwry iqs kI iqRsnw buJY ] jo iesu mwry su drgh isJY ]2] jo iesu mwry so DnvMqw ] jo iesu mwry so piqvMqw ] jo iesu mwry soeI jqI ] jo iesu mwry iqsu hovY gqI ]3] jo iesu mwry iqs kw AwieAw gnI ] jo iesu mwry su inhclu DnI ] jo iesu mwry ...
import { SiteContextConfig } from './site-context-config'; import { BASE_SITE_CONTEXT_ID } from '../providers/context-service-map'; import { getContextParameterDefault } from './context-config-utils'; export function baseSiteConfigValidator(config: SiteContextConfig) { if (getContextParameterDefault(config, BASE_SIT...
package weatherpony.pml.implementorapi; import java.util.List; import java.util.concurrent.Callable; public interface IPMLPluginManagement{ public List<? extends Callable<String>> getMods(); public boolean isModActive(Callable<String> mod); public void enableMod(Callable<String> mod); public void disableMod(Calla...
--- layout: post title: "자바 자습 - 컴파일 에러 내용 작성 공간" #subtitle: "안녕하세요 반갑습니다. 첫 번째 글입니다." date: 2021-07-07 11:59:00 +0900 #background: '/img/posts/01.jpg' categories: ['JAVA'] --- ___ ## 컴파일 에러에 대한 내용과 해결 작성 공간 #### 1. Exception in thread "main" java.lang.Error: Unresolved compilation problems: Cannot make a static r...
package dev.capybaralabs.d4j.store.common.repository import discord4j.discordjson.json.EmojiData import reactor.core.publisher.Flux import reactor.core.publisher.Mono interface EmojiRepository { fun save(guildId: Long, emoji: EmojiData, shardId: Int): Mono<Void> fun saveAll(emojisByGuild: Map<Long, List<EmojiData>>...
const httpStatus = require('http-status'); const { omit } = require('lodash'); const Country = require('../../models/common/country.model'); const States = require('../../models/common/state.model'); const City = require('../../models/common/city.model'); /** * Create new Industry * @public */ // exports.create = ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace Training.Entity.Paging { public class PagingRequestDto { [DefaultValue(1)] public int PageIndex { get; set; } [DefaultValue(9)] public int PageSize { get; set; } } }
module Sunstone module Objects class PolicyRule < BaseObject property :api_groups, Array, String property :non_resource_urls, Array, String, serialized_name: :nonResourceURLs property :resource_names, Array, String property :resources, Array, String property :verbs, Array, String ...
require 'spec_helper' require 'rspec-puppet' require 'hiera' require 'facter' configdir = '/etc/one' oned_config = "#{configdir}/oned.conf" hiera_config = 'spec/fixtures/hiera/hiera.yaml' describe 'one::oned' do context "with hiera config on RedHat" do let(:hiera_config) { hiera_config } let (:fac...
# Example of Pact Broker configuration on heroku with basic authentication ## Create your Pact Broker project ``` $ mkdir my-pact-broker $ cd my-pact-broker $ git init ``` Then copy the files `Gemfile`, `Procfile` and `config.ru` into your project and run bundle ``` $ bundle $ gid add . $ git commit -m "Initial comm...
import { Injectable, Inject } from '@nestjs/common'; import { sign } from 'jsonwebtoken'; import { IConfig } from '../config.interface'; import { EmployeeEntity } from '../entity'; import { Token } from '../token'; @Injectable() export class AuthenticationService { constructor( @Inject(Token.Config) priva...
USE MinionsDB; CREATE TABLE Countries ( Id INT IDENTITY, Name NVARCHAR(50) NOT NULL, CONSTRAINT PK_Countries PRIMARY KEY(Id) ); CREATE TABLE Towns ( Id INT IDENTITY, Name NVARCHAR(50) UNIQUE NOT NULL, CountryId I...
#include "stdafx.h" #include "OpcClient.h" #include "Mutex.h" #include <fstream> typedef std::basic_ofstream<TCHAR, std::char_traits<TCHAR> > tofstream; using namespace std; BOOL g_simulationEnd = FALSE; Mutex g_simulationEndMutex; //----------------------------------------------------------------------------- //...
{-# LANGUAGE FlexibleInstances #-} module Linear.Persist where import Linear.V3 import Database.Persist import Database.Persist.Postgresql import Database.Persist.TH import qualified Data.Text as T instance PersistFieldSql (V3 Double) where sqlType _ = SqlString instance Persist...