text
stringlengths
27
775k
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <script src="{{ asset('assets/front/js/jquery.blockUI.js')}}"></script> <script src="{{ asset('assets/front/js/sweetalert/sweetalert.min.js')}}"></script> <sc...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; using Wind.Containers; using Parrot.Controls; namespace Parrot.Displays { public class pDocumentViewer : pControl { public DocumentViewer Element; ...
package com.ZupAceleracaoSenior.RestLojaHQs.Validators; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; public class CpfValidator implements ConstraintValidator<CpfConstraint, String> { @Override public boolean isValid(String value, ConstraintValidator...
# Build script with automatic bootstrapping The sample script *Project.build.ps1* shows how to use automatic bootstrapping. The script is designed as directly invokable by PowerShell and it does not require `Invoke-Build` installed. `Invoke-Build` is restored using `paket`. The `paket` tool is used as one possible wa...
export interface SocketEmitterModel { type: string; room: string; data?: any; }
metainfo = """<?xml version="1.0"?> <!-- 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, Ve...
drop table if exists dept_emp; drop table if exists dept_manager; drop table if exists departments; drop table if exists titles; drop table if exists employees; drop table if exists salaries; create table employees ( emp_no int not null, birth_date varchar(15), first_name varchar(20), last_name varchar(20), gende...
set "operator.kafka.brokers"="192.168.0.2:9092"; set "operator.kafka.zookeepers"="192.168.0.2:2181"; set "operator.kafka.zksessiontimeout"="20000"; set "operator.kafka.zksynctime"="20000"; set "operator.kafka.messageserializerclass"="kafka.serializer.StringEncoder"; set "serde.simpleserde.separator" = ","; create input...
import * as React from 'react'; import { Button } from '~/button'; import { Tooltip } from '~/tooltip'; function ControlledTooltips_() { const [open, setOpen] = React.useState(false); const handleClose = () => { setOpen(false); }; const handleOpen = () => { setOpen(true); }; return ( <Toolti...
(defpackage :davis.utilities (:use :cl) (:export :eval-muffling-warnings :find-entry-point :movef :print-conditions :string-case)) (defpackage :davis.parser (:use :binding-arrows :cl :esrap) (:import-from :alexandria :rcurry :removef :switch) (:import-from :cffi :f...
#!/bin/bash # # Runs robolectric tests. set -euo pipefail # Terminate with a fatal error. function fatal() { echo "Fatal: $*" exit 113 } # Ensures that the given variable is set. function validate_var() { local name="$1"; shift || fatal "Missing argument: name" test $# = 0 || fatal "Too many arguments" ev...
--- title: "Schneekristalle" date: "2022-01-09" categories: - "allgemein" tags: - "poesie" --- > Winzige Schneekristalle überstrahlen nur flüchtig das Immergrün Das Hier und das Jetzt das behalte ich
const { insertSorted } = require('../../../utils/array'); module.exports = async function insertReferenceKey(value) { if (this.isFull()) { await this.split(); } const index = insertSorted(this.keys, value); return index; };
// tslint:disable:no-any export interface IPolyfill { name: string; force: boolean; meta: {[key: string]: any}; }
// // Created by Sebastian on 21.05.2019. // #pragma once namespace pin { //------- [ PINS ] ------ template<typename mcu, auto N> struct Pin; template<typename T> concept bool isPin() { return requires(T t) { typename T::port_type; T::on(); T::off(); ...
# frozen_string_literal: true module Sms # Base class, all other SMS errors inherit from this class Error < StandardError end end
//@@author AJZ1995 package seedu.address.ui; import java.util.logging.Logger; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.FlowPane; import javafx.scene.layout.Region; import javafx.scene.layout.VBox; imp...
using Threadwork.Networking; using Unity.Netcode; using UnityEngine; using UnityEngine.UI; using Threadwork.Lobby.UI; namespace Threadwork.UI.Lobby { public class LobbyUI : NetworkBehaviour { [Header("References")] [SerializeField] private LobbyPlayerCard[] lobbyPlayerCards; [SerializeF...
<p align="center"> <a href="https://www.adampagels.com"> <img alt="adampagels.com icon" src="src/images/adam-pagels-icon.png" width="80" /> </a> </p> <h1 align="center"> adampagels.com </h1> <p align="center"> <img src="static/OG-Image.png" alt="adampagels.com homepage"> </p> ## 🚀 Quick start Make sure ...
--- title: Haxe --- Haxe is an open source language and toolkit that allows you to easily build cross-platform tools and applications. For more information about Haxe, head to the [official Haxe website](https://haxe.org). To contribute on Haxe, head to the [official Haxe repositories](https://github.com/HaxeFoundatio...
package app.lockbook.model import android.app.Application import androidx.lifecycle.* import app.lockbook.getRes import app.lockbook.util.* import com.afollestad.recyclical.datasource.emptyDataSourceTyped import com.github.michaelbull.result.Err import com.github.michaelbull.result.Ok import kotlinx.coroutines.* clas...
<?php declare(strict_types=1); /* * This file is part of Basket. * * (c) Brian Faust <hello@basecode.sh> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace BrianFaust\Basket\Transformers; use BrianFaust\Basket\Contracts\...
--- description: 'En savoir plus sur : informations de référence sur les opérateurs MASM' title: Informations de référence sur les opérateurs MASM ms.date: 07/15/2020 helpviewer_keywords: - MASM (Microsoft Macro Assembler), operators reference - operators [MASM] ms.assetid: c069cab7-d6b0-4f82-a6ce-0ca3fc7e6428 ms.openl...
# pcn-pbforwarder example: creating a service chain between network namespaces This examples shows how to create a service chain through different Linux namespaces, where the forwarding is handled a *single* instance of the `pcn-pbforwarder` service, which exports *six* ports and connect them properly. In a more comp...
#!/usr/bin/env sh PRG="$0" PRGDIR=`dirname "$PRG"` EXECUTABLE=collectorService.sh exec "$PRGDIR"/"$EXECUTABLE" start
{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE FlexibleInstances #-} module Data.Board ( emptyBoard , findPath , findTarget , neighbours , placePieces , movePiece , distance , manhattan , invert , Board , Node(..) ) where import qualified Data.Map as M...
import User from '../../model/user'; import { Response, Request } from 'express'; import hashPassword from '../../utils/hash_password'; import * as jwt from 'jsonwebtoken'; import config from '../../config'; const SignUp = async (req: Request, res: Response) => { const { username, email, age, password } = req.body; ...
using System; namespace MarkEmbling.PostcodesIO.Results { [Serializable] public class NearestResult : PostcodeResult { public double Distance { get; set; } } }
FactoryBot.define do factory :contact do association :site user { " Colin " } email {"colin@overpower.fr"} body {"test"} end end
/// When working with pixel data types may have odd bitdepths or not use the /// full range of the value. We can't assume every image with `u8` ranges from /// [0..255]. Additionally, floating point representations of pixels normally /// range from [0.0..1.0]. `PixelBound` is an attempt to solve this issue. /// /// Unf...
RSpec::Support.require_rspec_core "shell_escape" module RSpec module Core module Formatters # Formatters helpers. module Helpers # @private SUB_SECOND_PRECISION = 5 # @private DEFAULT_PRECISION = 2 # @api private # # Formats seconds into a hum...
## Commands ### ci:meta Usage: gitlab-ci-helper ci:meta [options] Dump meta information about ci into a ci.json file Options: -file Target file (default: ci.json) -verbose Add verbose information to the output ### ci:revision Usage: gitlab-ci-hel...
{///////////////////////////////////////////////////////////////////////// // // Dos Navigator Open Source 1.51.08 // Based on Dos Navigator (C) 1991-99 RIT Research Labs // // This programs is free for commercial and non-commercial use as long as // the following conditions are aheared to. // // Copyright...
package Tu::Action::FormMixin; use strict; use warnings; use parent 'Exporter'; our @EXPORT_OK = qw(validate_or_submit); sub validate_or_submit { my $self = shift; if ($self->req->method eq 'GET') { return $self->show if $self->can('show'); return; } my $params = $self->req->parame...
#pragma once /* transport_packet(){ sync_byte 8 bslbf transport_error_indicator 1 bslbf payload_unit_start_indicator 1 bslbf transport_priority 1 bslbf PID 13 uimsbf transport_scrambling_control 2 bslbf adaptation_field_control 2 bslbf continuity_counter 4 uimsbf if(adaptation...
package com.acs.wave.router; import com.acs.wave.router.constants.ProtocolVersion; import com.acs.wave.router.constants.RedirectStatus; import com.acs.wave.router.functional.BodyWriter; import com.acs.wave.router.constants.ResponseStatus; import com.acs.wave.utils.ExceptionUtils; import java.util.Optional; import st...
package matrix import ( "maunium.net/go/mautrix" ) // WriteCloser allows writing JSON data to a matrix room and closing the connection type WriteCloser interface { // Close the matrix connection Close() error // GetWriter instance to allow writing data to a matrix room GetWriter() Writer } type Writer interface...
## Details This function allows for sending data to the thread. The data must be serialisable via `JSON.stringify()`. ## Examples ```js var t = weaver.Thread(); t.pass( { foo: 1, bar: 2 } ).run(function( data ){ data.foo++; data.bar++; resolve(data); }).then(function( data ){ console.log( data ); t1.s...
-- Create an MQT table that replicates the DIMENSION table on all partitions containing the FACT tables CREATE SUMMARY TABLE ?SCHEMA?.MQT AS (SELECT * FROM ?SCHEMA?.DEDICATED_ACCOUNT_IND) DATA INITIALLY DEFERRED REFRESH DEFERRED DISTRIBUTE BY REPLICATION IN FACTSPACE ; -- Refresh the table to ensur...
#!/bin/sh BIN=$1 for f in ./tests/input*.txt; do ($1 $f && echo "Passed.") || exit 1 done
/*********************************************************************** * * * This software is part of the ast package * * Copyright (c) 1985-2010 AT&T Intellectual Property * * and i...
/* * Copyright 2018-2021 SIP3.IO, Corp. * * 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...
# Trying to get to the bottom of discrepancy between # characteristic-level Company Average and Your Scores # for User 501 and Company 40 (Morales/CareCloud) cc = Company.find(40) rm = User.find(501) puts 'Cleaning and recalculating' cc.destroy_all_scores Job::UpdatePersonalScores.perform(rm.id) Job::UpdateCompanySco...
Dear GitHub Copyright Agent, Seventh Request, March 18, 2015 Recently, I sent you a request to remove proprietary and copyrighted material belonging to Cambridge Mobile, Ltd. (“Cambridge”). I have found additional copies of the same material and request that it also be taken down. There has not been any response from ...
@extends('layouts.app') @section('head') @parent <title>{{ config('app.name', 'The Fittest Warrior') }} | Shop</title> @endsection @section('navigation') @parent @endsection @section('content') <div class="spacer-50"></div> <div id="shop"> <div class="row"> {{--@foreach($worko...
-- Tables to define emat scope DROP TABLE IF EXISTS ema_scope; DROP TABLE IF EXISTS ema_scope_parameter; DROP TABLE IF EXISTS ema_scope_measure; -- ema_scope CREATE TABLE ema_scope ( rowid INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE, sheet TEXT, content BLOB ); CREATE TABLE ema_scope_p...
#!/bin/bash -e sudo kubectl label nodes k8smaster ndName=master1 sudo kubectl create -f examples/busybox.yml
# LAMP 本文介绍如何在Ubuntu:16.04中搭建LAMP(Linux Apache MySQL PHP)开发环境 ## 整体流程 * 安装Apache2 * 安装php5 * 安装mysql-server * 安装php5-mysql * 安装php5-gd * 安装MySQL图形管理工具WorkBench ## 安装过程及详解 ### Apache2 * 运行命令: ```$ sudo apt-get update``` ```$ sudo apt-get install apache2``` * 验证是否成功: ```$ sudo apache2 -v``` ...
use crate::acme::ACMEIdentifier; use http::StatusCode; use serde::{Deserialize, Serialize}; use thiserror::Error; use self::db::LoadError; /// Mostly JWS-related errors pub mod acme; /// DB/model-related errors pub mod db; /// HandlerError is for encapsulating errors in HTTP handlers. #[derive(Clone, Debug, Error)] ...
using System.Threading.Tasks; using Autofac.Extras.Moq; using AutoFixture; using Microsoft.AspNetCore.Mvc; using SquareMetersValue.Api.Controllers; using SquareMetersValue.Domain.Commands; using Xunit; namespace SquareMetersValue.Api.Tests.Controllers { public class PropertyControllerTest { private r...
using AutoMapper; using VolleyM.Domain.Players.PlayerAggregate; namespace VolleyM.Domain.Players { public class DomainPlayersMappingProfile : Profile { public DomainPlayersMappingProfile() { CreateMap<PlayerId, string>() .ConvertUsing(t => t.ToString()); } } }
package de.volzo.miscreen.arbitraryBoundingBox; import android.support.annotation.NonNull; import org.ejml.simple.SimpleMatrix; /** * Created by Johannes on 11.07.2016. */ public class ArbitrarilyOrientedBoundingBox extends BoundingBox { private double rot; public MIPoint2D[] getRealWorldPoints() { ...
<?php // WARNING, this is a read only file created by import scripts // WARNING // WARNING, Changes made to this file will be clobbered // WARNING // WARNING, Please make changes on poeditor instead of here // // ?> subject: Stahování dokončeno {alternative:plain} Vážený uživateli, Stahování {if:files>1}souborů...
# setup custom hotkeys if ($host.Name -eq 'ConsoleHost') { Import-Module PSReadLine } # ctrl+shift+b = dotnet build Set-PSReadLineKeyHandler -Chord Ctrl+Shift+b ` -BriefDescription BuildCurrentDirectory ` -LongDescription "dotnet Build the current directory" ` ...
# ng2-runtime Angular2 JSON Schema Based Runtime. ### Quick start > Clone/Download the repo then edit `app.ts` inside [`/src/app/app.ts`](/src/app/app.ts) ```bash # clone our repo # --depth 1 removes all but one .git commit history git clone --depth 1 https://github.com/akserg/ng2-runtime.git # change directory to ...
{-# LANGUAGE TemplateHaskell #-} module Oak.Config.TH where import Language.Haskell.TH import System.Process (readProcess) getCommitHash :: ExpQ getCommitHash = do shorthash <- runIO $ readProcess "git" ["rev-parse", "--short", "HEAD"] "" litE $ stringL shorthash
--- date: 2014-06-18 round: Round 9 title: Motivation for learning Vim author: Yu-Ching Shih permalink: /2014/06/motivation-for-learning-vim/ tags: - Motivation --- <http://youtu.be/ZhDdbSkeFmc> &nbsp;
#!/bin/sh cmake ../Play- -G Xcode -DCMAKE_TOOLCHAIN_FILE=../Play-/deps/Dependencies/cmake-ios/ios.cmake -DTARGET_IOS=ON
package gov.healthit.chpl.scheduler.presenter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.List; import org.apache....
<?php $lang['menu_management']="إدارة القائمة"; $lang['menu_add_page']=" أضف صفحة جديدة"; $lang['menu_add_link']=" أضف رابط جديد"; $lang['menu_home']="القائمة الرئيسية"; $lang['menus']="القوائم"; $lang['menu_edit']=" تعديل القائمة"; $lang['menu_add']="إنشاء قائمة جديدة"; $lang['menu_create_link']="أضف رابط جديد"; $lan...
import 'package:quizpany/models/question.dart'; import 'dart:convert'; import 'package:flutter/services.dart'; class QuestionProvider { final assetPath = 'assets/data/questions.json'; Future<List<Map<String, dynamic>>> _loadFromAssetJson() async { return rootBundle.loadString(assetPath).then( (jsonS...
require_relative '../../lib/slimkeyfy/' describe "MFileUtils" do let ( :file_path ) { "app/views/application/_show.html.slim" } let ( :file_util ) { SlimKeyfy::Slimutils::MFileUtils } describe "file_extension" do subject { file_util.file_extension(file_path) } context "filename with .slim" do it...
# Usecase: Pass the parameters from Command Line <# .DESCRIPTION An example runbook to execute a PS Script by passing the parameters from Command Line .NOTES AUTHOR: Anupam. LASTEDIT: Sept 19, 2020 #> Param ( [parameter(Mandatory=$True)] [int] $FirstNum, [parameter(Mandatory=...
""" report(res::OperationModelResults) function make_report(res::OperationModelResults; kwargs...) This function uses weave to either generate a LaTeX or HTML file based on the report_design.jmd (julia markdown) file that it reads. Out_path in the weave function dictates where the created file gets expo...
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(gspencergoog): Remove this tag once this test's state leaks/test // dependency have been fixed. // https://github.com/flutter/flutter/issues/85160 ...
package neu.lab.conflict.util; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import neu.lab.conflict.Conf; import neu.lab.conflict.vo.ClassVO; import neu.lab.conflict.vo.DepJar; ...
#!/bin/bash # Build Chapel from a given Chapel release tarball or an existing CHPL_HOME directory, # using build_configs.py with a given setenv project script (both from the parent directory) # Then create a Cray RPM from the resulting CHPL_HOME, using chapel_package-cray.bash # from this directory. set -e yourcwd=$...
export { default as useAddItem } from "./use-add-item" export { default as useWishlist } from "./use-wishlist" export { default as useRemoveItem } from "./use-remove-item"
package com.wealthfront.magellan.compose import com.wealthfront.magellan.compose.lifecycle.LifecycleComponent import com.wealthfront.magellan.compose.transition.Displayable abstract class Screen : Displayable, LifecycleComponent()
using AlsRitter.GenerateMap.Interface.Do; using AlsRitter.Utilities; using UnityEngine; using UnityEngine.UI; namespace AlsRitter.GenerateMap { /** * 之所以单独抽离出来这个背景生成器是因为,以后可能要构建多层背景 * * TODO: 构建多层背景~ */ public class BuildBackground : MonoBehaviour { public Image bg; public...
class MigrateIntIdsToBigints < ActiveRecord::Migration[5.2] def up change_column :line_items, :sparc_request_id, :bigint change_column :line_items, :service_id, :bigint change_column :line_items, :sparc_id, :bigint change_column :services, :sparc_id, :bigint end end
package com.Da_Technomancer.crossroads.blocks.alchemy; import com.Da_Technomancer.crossroads.blocks.CRBlocks; import com.Da_Technomancer.crossroads.tileentities.alchemy.ReactiveSpotTileEntity; import net.minecraft.block.BlockState; import net.minecraft.block.ContainerBlock; import net.minecraft.block.material.Material...
--- title: 白皮书 keywords: datafor tags: sidebar: mydoc_sidebar permalink: white_paper.html --- [Datafor数据可视化与分析白皮书.pdf](../../../images/Datafor数据可视化与分析白皮书.pdf)
%%% -*-mode:erlang;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*- %%% ex: set ft=erlang fenc=utf-8 sts=4 ts=4 sw=4 et: %%% %%% Copyright 2015 Panagiotis Papadomitsos. All Rights Reserved. %%% Copyright 2021 Miniclip. All Rights Reserved. %%% %%% Common Test includes -include_lib("common_test/include/...
#include "Synthesis.h" void first(Synthesis* synthesis, float* input); void second(Synthesis* synthesis, float* input); void final(Synthesis* synthesis, float* input); Synthesis* newSynthesis(int stepSize, int windowSize, float* window) { Synthesis* newSynthesis = (Synthesis*)malloc(sizeof(Synthesis)); newSynthesi...
#include "marian.h" #include "translator/beam_search.h" #include "translator/translator.h" #include "common/timer.h" #include "common/utils.h" #include "3rd_party/simple-websocket-server/server_ws.hpp" typedef SimpleWeb::SocketServer<SimpleWeb::WS> WSServer; int main(int argc, char **argv) { using namespace marian...
(ns scalar-schema.dynamo (:require [clojure.tools.logging :as log] [scalar-schema.common :as common] [scalar-schema.dynamo.auto-scaling :as scaling] [scalar-schema.dynamo.continuous-backup :as backup] [scalar-schema.dynamo.common :as dynamo] [scalar-schema.p...
using System.Net.Mail; namespace Rock.Mail { /// <summary> /// Defines three methods for delivering mail: <see cref="Default"/>, <see cref="Network"/>, and /// <see cref="SpecifiedPickupDirectory"/>. /// </summary> public abstract partial class DeliveryMethod { /// <summary> /...
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
import { RouteComponentProps, withRouter } from 'react-router'; import { Link } from 'react-router-dom'; import { Button, IconName, NavbarGroup, NavbarHeading, Navbar as BpNavbar } from '@blueprintjs/core'; import * as React from 'react'; import { Username } from './Username'; import { createSelector } from 'reselect';...
@file:Suppress("unused") package com.vanpra.composematerialdialogs import androidx.compose.foundation.layout.* import androidx.compose.material.LocalContentColor import androidx.compose.material.MaterialTheme import androidx.compose.material.ProvideTextStyle import androidx.compose.runtime.Composable import androidx....
import Control.Concurrent.MVar import Control.Exception import Data.IORef import Foreign.C.Error (throwErrnoIfMinus1Retry_) import Foreign.Marshal.Alloc (alloca) import Foreign.Storable import System.Directory import System.Event import System.IO import System.Posix.IO import System.Posix.Internals (c_close, c_read, c_...
require "rails_helper" RSpec.describe RedirectionCreation do context "when the referrer is present" do it "creates a redirection with the full referrer" do referrer_hostname = "https://cool.example.com" full_referrer = "#{referrer_hostname}/something/else" slug = "cool-slug" RedirectionC...
# TitledLayout [![](https://jitpack.io/v/criske/TitledLayout.svg)](https://jitpack.io/#criske/TitledLayout) Rough implemetation of titled layout in android. ```xml <com.crskdev.lib.titledlayout.TitledLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_c...
package com.rivuchk.functionalkotlin.chapter3 fun main(args: Array<String>) { val immutableList = listOf(1,2,3,4,5,6,7)//(1) println("Immutable List $immutableList") val mutableList:MutableList<Int> = immutableList.toMutableList()//(2) println("Mutable List $mutableList") mutableList.add(8)//(3) ...
package hm.binkley.labs /** * A _simple_ implementation of [MagicBus] designed for extension. * * Limitations include: * * No thread safety outside the current thread * * Each receiver is called in sequence &mdash; there is no parallelism * * Messages are delivered in _causal_ order, supertype receivers * bef...
package relay import ( "fmt" "io" "log" "os" "time" ) const ( relayMinSize = 4 relayMaxSize = 256 relayExceptionSize = 5 ) // ClientHandler implements Packager and Transporter interface. type ClientHandler struct { relayPackager relaySerialTransporter } var DefaultLogger = log.New(os.Stdout, "", log.Ldat...
import mongoose from 'mongoose'; const Scheme = mongoose.Schema; const profileSchema = new Schema({ name: {type: 'String', required: true}, profileUri: {type: 'String', required: true}, baseValue: {type: 'Decimal', required: true}, streamLink: {type: 'String', required: false} }); export default mongo...
from .views import app from .models import graph def create_uniqueness_constraint(label, property): query = "CREATE CONSTRAINT ON (n:{label}) ASSERT n.{property} IS UNIQUE" query = query.format(label = label, property=property) graph.cypher.execute(query) create_uniqueness_constraint("User","username") cr...
package com.dg.watcher.base.extension import com.nhaarman.mockito_kotlin.mock import com.nhaarman.mockito_kotlin.verify import hudson.FilePath import org.junit.Assert.assertFalse import org.junit.Test class FilePathExtensionTest { @Test fun `A null file path doesn't exist per default`() { // GIVEN ...
--- layout: post title: Maal Biutiful 2018 date: 2019-12-17 description: Straightfoward Malbec with good structure img: /img/MaalBiutiful.JPG --- | *Region* | Mendoza, Argetina | | *Producer* | Matias Fragas (grapegrower) and Alfredo Merlo (winemaker), Maal Wines | | *Varietals* | Malbec | | *Rat...
var p = new Place[3]; p[0] = new Place(); p[0].Name = "電気街"; p[0].Station = "秋葉原駅"; p[1] = new Place(); p[1].Name = "有明コロシアム"; p[1].Station = "国際展示場駅"; p[2] = new Place(); p[2].Name = "目黒天空庭園"; p[2].Station = "池尻大橋駅"; foreach (var item in p) Console.WriteLine($"{item.Name}の最寄り駅は {item.Station}"); public class Place ...
package com.diegobezerra.core.cinemais.data import com.diegobezerra.core.cinemais.domain.model.Movie import com.diegobezerra.core.cinemais.domain.model.Posters import java.text.SimpleDateFormat val movie = Movie( id = 7128, title = "Capitã Marvel", originalTitle = "Captain Marvel", posters = Posters( ...
import classNames from 'classnames'; import React from 'react'; import {Tooltip} from 'reactjs-components'; import HealthBarStates from '../constants/HealthBarStates'; import StatusBar from './StatusBar'; class HealthBar extends React.Component { getMappedTasksSummary(tasksSummary) { return Object.keys(tasksSu...
#!/bin/bash # # This script is slightly trickier than rest because it involves building stuff specific for # sdk-ui-tests package & then running dockerized backstop # # - The dockerized `rushx` is used to run package-specific scripts needed to prepare artifacts for backstopjs testing # - Then the backstop script is st...
# frozen_string_literal: true Capybara.register_driver :apparition_without_js_errors do |app| Capybara::Apparition::Driver.new(app, js_errors: true) end Capybara.save_path = '/tmp/capybara-screenshots'
package de.hpi.cloud.common.utils import java.net.URI import java.net.URISyntaxException import java.net.URL fun String.parseUri(): URI = URI(this) fun String.tryParseUri(): URI? { return try { parseUri() } catch (e: URISyntaxException) { null } } fun String.parseUrl(): URL = URL(this) fu...
#ifndef HDR_BSG_KSCrashIdentifier_h #define HDR_BSG_KSCrashIdentifier_h #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif void bsg_kscrash_generate_report_initialize(const char *directory); /** * Generates a new UUID. Not async signal safe. Caller responsible for * freeing allocated string. */ char *bsg...
#include "MengeVis/Runtime/VCContext/VecFieldVCContext.h" #include "MengeCore/Agents/BaseAgent.h" #include "MengeCore/BFSM/Goals/Goal.h" #include "MengeCore/BFSM/VelocityComponents/VelCompVF.h" #include "MengeCore/resources/VectorField.h" #include "MengeVis/Runtime/VisElementException.h" #include <iomanip> #include <...
class Array def columns x = map(&:length).max Array.new(x) do |row| Array.new(length) { |column| self[column][row] }.compact end end end def bead_sort(array) array .map { |element| [1] * element } .columns .columns .map(&:length) .reverse end if $0 == __FILE__ puts 'Enter...