text
stringlengths
27
775k
export default { getheaderdata (state) { return state.headers }, getInfosData (state) { return state.infos }, getId (state) { return state.Id }, getRelatedData (state) { return state.relatedData }, getMostPopularData (state) { return state.mostpopularData }, getAudioPlayerUrl (...
# 数据结构实验-图形化的gff文件浏览器 ## 这个项目是我的数据结构寒假作业,运行结果大概长这样👇。MFC项目。 ![第1页](_/1.png) ![第1页](_/2.png)
//import styles from "@src/styles/components/articles/ArticleBody.module.scss"; import parse from "html-react-parser"; //import "@src/styles/codetheme.scss"; import { ArticleBodyItems } from "@src/types"; interface Props { markdown: string | undefined; language: string; code: string; } //export const ArticleBody:...
require "termquickrpg/loading/map_loader" module TermQuickRPG module Script module MapCommands attr_reader :game_dir def open_map(filename) raise "Required #{self.class.name}#game_dir to be set to load maps" unless game_dir filename << ".map.rb" unless filename.end_with?(".map.rb") ...
## ---------- ObjectId # """ # SingleId # Id for one object or object vector. # Does not keep track of location in model. # Keeps track of `name` (Symbol identifier), `index`, and `description` (for display purposes). # `index` is used when there is a vector or matrix of objects of the same type # `index` is t...
--- layout: post title: "(Modern C++) forwarding reference" summary: "" author: C++ date: '2021-08-11 0:00:00 +0000' category: ['Cpp'] #tags: ['C++', 'tag-test1'] thumbnail: /assets/img/posts/cpp-thumnail.png #keywords: ['unique_ptr'] usemathjax: true permalink: /blog/cpp/modern/forwarding-reference/ --- ```cpp class...
# What did Peter say was the only way by which we may be saved? Peter said that there is no other name except Jesus by which we may be saved.
angular.module('logApp') .factory('authFactory', ['$http', '$log', 'localStorage', function ($http, $log, localStorage) { return { // API access login: function (data) { return $http.post('api/v1/auth/login', data); }, logout: function () { return $http.get('api/v1/auth/log...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace Chat { ...
 namespace HomeAssistantTaskbarWidget.Model.HA { public class Context { public string id { get; set; } public object parent_id { get; set; } public object user_id { get; set; } } }
# Contributing to Zulip Welcome to the Zulip community! ## Community The [Zulip community server](https://zulip.readthedocs.io/en/latest/contributing/chat-zulip-org.html) is the primary communication forum for the Zulip community. It is a good place to start whether you have a question, are a new contributor, are a ...
module Main where import GHC.Generics import Control.Monad.Except import Control.Concurrent.STM import Control.Monad.IO.Class import Data.List import qualified Data.Map as M import Data.Aeson import Data.Aeson.Types import Data.Time.Calendar import Network.Wai.Handler.Warp import Network.Wai.Middleware.RequestLogger i...
import React, { useEffect, useRef } from "react"; export default props => { const buttonRef = useRef(null); useEffect(() => { if (buttonRef.current) { buttonRef.current.parentElement.parentElement.scrollLeft = 100000; props.input.current.input.current.focus(); } }); return ( <button ...
#!/usr/bin/env python3 import os import typing import cv2 import numpy as np import rospy from cv_bridge import CvBridge from neural_networks.msg import BoundingBox, BoundingBoxes from sensor_msgs.msg import Image import pyzbar.pyzbar import torch from model import Model device = "cuda" if torch.cuda.is_available...
(ns dev.core (:require [cljsjs.react] [clojure.core.async :as a :refer [<! >! chan close! put!]] [cognitect.transit :as t] [metosin.transit.dates :as d] [dev.render :as render] [samak.runtime :as run] [samak.helpers :as helpers] [sama...
featureFlag("Remove timeline events", () => { document.addEventListener("DOMContentLoaded", removeTimelineEvents); document.addEventListener("pjax:end", removeTimelineEvents); setInterval(removeTimelineEvents, 500); }); function clearSelector(selector) { const events = Array.from(document.querySelectorAll(sel...
----------------------------------------------------------------------------- -- | -- Module : Geometry.Math -- Copyright : Copyright (C) 2015 Artem M. Chirkin <chirkin@arch.ethz.ch> -- License : BSD3 -- -- Maintainer : Artem M. Chirkin <chirkin@arch.ethz.ch> -- Stability : Experimental -- -- Supplem...
const DeviceDriverBase = require('detox/src/devices/runtime/drivers/DeviceDriverBase'); const Client = require('detox/src/client/Client'); // // The following is needed in order to make the various expect() API's work (e.g. element(), waitFor()). class PluginExpect { constructor({ invocationManager }) { this._i...
#!/usr/bin/perl # tests for: # - IsUnsolvable::islands() and related functions use strict; use warnings; BEGIN {-t and eval "use lib '..'"} use Test::More tests => 6; use IsUnsolvable; use Board; use Move; use Islands; use Data::Dumper; my $board_2islands = Board::new_from...
package com.xialan.beautymall.presenter; import com.xialan.beautymall.base.BasePresenter; import com.xialan.beautymall.contract.MainContract; /** * Created by Administrator on 2017/11/14. */ public class MainPresenter extends BasePresenter implements MainContract.Presenter { private final MainContract.View mVi...
import { object, optional, Schema, string } from '../schema'; /** * Represents the tax ID associated with a customer profile. The corresponding `tax_ids` field is available only for customers of sellers in France, Ireland, or the United Kingdom. * For more information, see [Customer tax IDs](https://developer.square...
namespace HallOfBeorn.Models { public class Note { public Note(NoteType noteType, string version, string text) { NoteType = noteType; Version = version; Text = text; } public NoteType NoteType { get; } public string Version { get; } ...
# Django Example d'utilisation de django pour créer une API Rest avec prédiction de prix de maison sur le boston dataset. Un fichier ipynb est utilisé pour générer le modèle (dans le dossier ipynb).
#!/usr/bin/env bash ID=$1 AUTH=$2 EXIT_CODE_RESPONSE_SNAPSHOT_MISSING=1 EXIT_CODE_SNAPSHOT_ID_MISSING=2 EXIT_CODE_SNAPSHOT_ID_INCORRECT=3 AUTH_HEADER="Authorization: Bearer ${AUTH}" URL="https://api.digitalocean.com/v2/snapshots/${ID}" curl -s -X DELETE -H 'Content-Type: application/json' -H "${AUTH_HEADER}" "${URL}...
using DSInternals.Common.Interop; using System; using System.Runtime.InteropServices; namespace DSInternals.SAM.Interop { /// <summary> /// The SAMPR_RID_ENUMERATION structure holds the name and RID information about an account. /// </summary> [StructLayout(LayoutKind.Sequential)] public struct Sa...
import React from 'react'; import PreviewAtom from './preview'; import { IComponentRender, LayerType, Action, INode, DropOptions, SizeContext, DragDirection, ISizeOptions, } from '@czwcode/dnd-layout-renderer'; import ActiveFrame from '../../nest/SizePanel/ActiveFrame'; import { toReal } from '../../../...
module Kramdown module Converter # Returns a list of question paragraphs that are not perfectly aligned with the # contained span. class ReportMisalignedQuestionParagraphs < Base # Instantiate converter # @param [Kramdown::Element] root # @param [Hash{Symbol => Object}] options de...
subroutine foo() ! Test case where the dimension statement is used to define the shape of an implecitly types array dimension array_A(4,5) end subroutine foo
#include <MEL/Mechatronics/ForceSensor.hpp> namespace mel { ForceSensor::ForceSensor() : forces_(3, 0.0) { } ForceSensor::~ForceSensor() { } } // namespace mel
--- layout: role_openings title: Postdoctoral Openings subtitle: "Current openings for postdoctoral researchers" intro: "Postdoctoral scholars are exceptional early career researchers who join the research group to pursue one or more ambitious projects suited to a future in a research-focused career. They should have...
# RunningCause A django project to provide runners an easy to use interface to gather money from sponsors when running for a good cause. # Development environment Setting up a development environment on a Ubuntu machine, you'll have to do the following. ## Python 2.7 and virtualenv Make sure you have both python 2....
package akkaquote import akka.actor.{ ActorSystem, Props, ActorRef } import akka.pattern.ask import akka.util.Timeout import scala.concurrent.Await import scala.concurrent.duration.DurationInt import scala.language.postfixOps import akkaquote.actor.{ QuotePrinterActor, QuotesHandlerActor } import akkaquote.message.{ Q...
import { AuthService } from './../auth/auth.service'; import { ValidationError } from 'class-validator'; import { CreateAgendaDto } from './dto/create-agenda.dto'; import { AgendaService } from './agenda.service'; import { Controller, Get, Post, Body, Put, Query, Param, UseGuards, Headers, Header, Delete } from "@nestj...
module ConPat where {-# RULES "infix" forall a. let x1:x2:xs = flipFirst a in f x2 x1 = let x1:x2:xs = a in f x1 x2 #-}
//! # RCC Module //! //! This module configures the Reset and Clock Control at 48Mhz //! //! ## Example : //! ``` //! extern crate stm32f0_hal; //! //! use stm32f0_hal::rcc; //! //! rcc::init(); //! ``` use stm32f0x2::{FLASH, RCC}; use cortex_m; use core::ptr; use cortex_m::peripheral::{SystClkSource, SYST}; static ...
--- title: February III materials: Watercolor, ink wash dimensions: 11 x 15 price: date_completed: image: url: 'february-iii.jpg' width: height: ---
#define _USE_MATH_DEFINES #include "Fixtures.h" #include "UsgsAstroPlugin.h" #include "Utilities.h" #include <gtest/gtest.h> #include <nlohmann/json.hpp> #include <math.h> #include <functional> #include <stdexcept> using json = nlohmann::json; TEST(UtilitiesTests, calculateRotationMatrixFromEuler) { double euler...
package com.mqttsnet.thinglinks.link.controller.device; import com.mqttsnet.thinglinks.common.core.utils.poi.ExcelUtil; import com.mqttsnet.thinglinks.common.core.web.controller.BaseController; import com.mqttsnet.thinglinks.common.core.web.domain.AjaxResult; import com.mqttsnet.thinglinks.common.core.web.page.TableDa...
## Enhancement Add support to disk buffers to allow for versioning/schema evolution in the future, such that new versions of Vector can buffer items using different codecs or event schemas, while still potentially supporting previous versions during deprecation periods. This primarily changes disk buffer v2 code, whi...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "pack.h" #include <ctype.h> /* This must be updated with each new release. */ char *version="1.7"; /* Cognizant Programmer: Paul Bartholomew April 15, 1991 */ /* Revision History: ...
//! Pretend to run Ansible to set up some systems use async_trait::async_trait; use fake::faker::internet::en::*; use fake::Fake; use rand::prelude::*; use rand_distr::{Distribution, Normal}; use yansi::Paint; use crate::args::AppConfig; use crate::data::ANSIBLE_ROLES_LIST; use crate::data::ANSIBLE_TASKS_LIST; use cra...
import ClassNames from '../Config/ClassNames'; const arrow = (_, classNames: ClassNames) => `<div class="${classNames.arrow}" role="presentation"></div>`; export default arrow;
const path = require("path") exports.createPages = async ({ graphql, actions }) => { const { createPage } = actions const result = await graphql( ` { allContentfulArticles { distinct(field: category) nodes { article: slug } } allContentful...
<?php namespace admin\UserBundle\Entity; use Doctrine\ORM\EntityRepository; use \admin\UserBundle\Types\TypeEtat; use \admin\UserBundle\Types\TypeCodeProfil; use \admin\UserBundle\Types\TypeProfil; /** * ProfilRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods ...
namespace CleanKludge.Api.Responses.Articles { public class ArticleResponse { public SummaryResponse Summary { get; set; } public string Content { get; set; } } }
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE RankNTypes #-} module Text.Delimited.CSV.Parser where import Control.Applicative import Control.Lens import Data.Functor import Data.List.NonEmpty import D...
class RubyAlign::CLI def initialize params @config = RubyAlign::Config.new @logger = gen_logger(params) @raw_text = RubyAlign::RawText.new(file: params['file']) @parser = RubyAlign::Parser.new(config: @config, logger: @logger) end def self.parse_args args params = {} OptionParser.n...
// // Copyright (c) 2010-2018 Antmicro // Copyright (c) 2011-2015 Realtime Embedded // // This file is licensed under the MIT License. // Full license text is available in 'licenses/MIT.txt'. // using System; using Antmicro.Renode.Core; namespace Antmicro.Renode.Peripherals.Input { public interface IAbsolutePosit...
#include "breakdown.h" #include <assert.h> #include "field.h" bool SDK_Check_Breakdown(int32_t mtx[SIZE][SIZE]) { assert(mtx != NULL); for (int32_t a = 0; a < SIZE; ++a) { for (int32_t b = 0; b < SIZE; ++b) { int32_t field = mtx[a][b]; if (!is_field_literal(field)) { return false; ...
<?php namespace InstagramAPI\Response\Model; use InstagramAPI\AutoPropertyHandler; /** * @method Broadcast[] getBroadcasts() * @method mixed getCanReply() * @method mixed getCanReshare() * @method mixed getLastSeenBroadcastTs() * @method mixed getMuted() * @method string getPk() * @method mixed getRankedPosit...
import firebase, { firestore } from "firebase"; import "firebase/auth"; import "firebase/storage"; import "firebase/firestore"; import { useState, useEffect } from "react"; import { collectionData, docData } from "rxfire/firestore"; const firebaseConfig = { apiKey: "AIzaSyA8Ww4oxjQ35wfRlNi8RLts-7v-elU1N9M", authDo...
// Author(s): Wieger Wesselink // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // /// \file m...
export interface Route { path: string; route: RouteElement; } export type Routes = Record<string, RouteElement>; export type RouteElement<K extends string = string> = | JSX.Element | ((params: Record<K, string>, query: URLSearchParams) => JSX.Element); export function withRoute<K extends string>( path: str...
'use strict'; ideaPlanner.controller("magicCtrl", ['$scope', 'Idea', '$location', function($scope, Idea, $location) { $scope.toBeAddedToProgress = { bool: true }; // NYTT STUFF HÄR var session = Idea.getSessionID(); // DETTA SKA LÄSA IN värdena på scope från db session.once('value', function(snapsho...
#!/bin/bash # Script to create a playlist from a directory containing songs and # converting, if found, flac files to ogg for easier use on music players # Directory where to put ogg from flac files DIR='/media/private/canzoni_cellulare/' function usage () { echo "Usage:" echo "script_playlist_make.sh DIRECTORY" ...
package net.ssehub.easy.instantiation.core.model.templateModel; import net.ssehub.easy.instantiation.core.model.common.RuntimeEnvironment; import net.ssehub.easy.instantiation.core.model.common.VariableDeclaration; /** * A simple tracer interface providing test support to the execution part. * * @author Holger Ei...
using KozmoTech.ZenUtility.ChecksumHasher.Core; using Microsoft.UI.Xaml.Media.Imaging; namespace KozmoTech.ZenUtility.ChecksumHasher.UI; internal sealed class BitmapPicture : IPicture { public BitmapPicture(BitmapImage image) => Image = image; public BitmapImage Image { get; } public int Width => Image....
// flow-typed signature: 3b24891d678da15fb096c08d951c7ebf // flow-typed version: <<STUB>>/react-notification-system_v0.2.16/flow_v0.58.0 /** * This is an autogenerated libdef stub for: * * 'react-notification-system' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage yo...
require 'coveralls' Coveralls.wear! require 'scoped_serializer' require 'with_model' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => File.dirname(__FILE__) + '/leaser.sqlite3') Dir['spec/support/**/*.rb'].each { |f| load f } Dir['spec/fixtures/**/*....
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Win { public partial class Main_Window : Form { public Main_Wind...
import * as types from '@babel/types' import * as htmlUtils from '../../shared/utils/html-utils' import { objectToObjectExpression, convertValueToLiteral } from '../../shared/utils/ast-js-utils' import { isDynamicPrefixedValue, removeDynamicPrefix } from '../../shared/utils/uidl-utils' import { capitalize, stringToUpp...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/1/16 * Time: 10:52 */ namespace app\admin\model; use app\common\model\Model; class AgentNoticeInfoModel extends Model { public $table = 'dc_agent_notice'; /** * @param $condition * @throws \think\db\except...
/* Copyright © 2021 ConsenSys Software 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 in writing...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/RichTextBlockImageDecorator.h" #include "Fonts/SlateFontInfo.h" #include "RichTextIconItemDecorator.generated.h" /** * */ UCLASS() class RICHTEXTICONITEM_API URichTextIconItemD...
#!/usr/bin/env bash remote_ansible_checks () { local environment="$1" local inventory_path="${ROOT_PATH}/ansible/inventories/${environment}" if [[ ! -f "${inventory_path}" ]]; then echo_red "Unknown ENVIRONMENT: ${environment}" echo_red "If it's a Terraform environment, please run: ./tads ...
package com.leo.searchablespinner.utils import android.content.Context import android.graphics.drawable.ColorDrawable import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.core.content.ContextCompat import androidx.recyclerview.widget.R...
require "helper" require "fluent/plugin/out_zookeeper.rb" class ZookeeperOutputTest < Test::Unit::TestCase setup do Fluent::Test.setup end CONFIG = %[ servers localhost:2181 path /fluent_test type wrongtype ] def create_driver(conf = CONFIG) Fluent::Test::Driver::Output.new(Fluent::Plug...
package com.xing.qa.selenium.grid.hub; import org.testng.Assert; import org.testng.annotations.Test; import java.util.HashMap; import java.util.Map; /** * PrioritizerTest * * @author Jens Hausherr (jens.hausherr@xing.com) */ public class PrioritizerTest { private Prioritizer sut = new Prioritizer(); @T...
namespace HareDu.IntegrationTests { using System; using System.Threading.Tasks; using Autofac; using AutofacIntegration; using Core.Extensions; using Extensions; using NUnit.Framework; using Serialization; [TestFixture] public class TopicPermissionsTest { IContainer ...
require 'spec_helper' describe MultitenancyTools::Dump::DataOnly do describe '#dump' do it 'calls pg_dump' do allow(Open3).to receive(:capture3) described_class.new(schema: 'shima', database: 'db', host: 'db.com', username...
#!/bin/sh # File Containing Target IP Address IP_FILE=$1 # path to local experiment direcory to rsync EXPERIMENT_DIRECTORY= SLICE_NAME= # path to home directory on planet lab: eg. /home/slice_name SLICE_HOME=/home/$SLICE_NAME # Packages to install on remote machine PACKAGES="MySQL-python python mysql python-json pyt...
// Copyright 2016-2019 DutchSec (https://dutchsec.com/) // // 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 applicabl...
using System.Collections.Generic; namespace GraphQL.Tools.Generator.Base { public interface IGeneratableType { string Name { get; } HashSet<IMember> Properties { get; } } }
module Gem List = Struct.new(:value, :tail) class List def each n = self while n yield n.value n = n.tail end end def to_a ary = [] n = self while n ary.unshift n.value n = n.tail end ary end def find n = s...
package com.yiqiniu.easytrans.demos.order.impl; public class Constant { }
module Waltz.Ast.Type where import Waltz.Prelude import qualified Waltz.Data.Map data Type = Union [ Expression , LambdaExpression , Array , Number , Object , String , Invalud , Unknown ] newtype Expression = Expression [Type] newtype Lambd...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <linux/input.h> #include <linux/types.h> #include <xf86_OSproc.h> #include <unistd.h> #include <xf86.h> #include <xf86Xinput.h> #include <exevents.h> #include <xorgVersion.h> #include <xkbsrv.h> #include <windowstr.h> #ifdef HAVE_PROPER...
using System; using PlasticLang; namespace PlasticRepl { class Program { static void Main(string[] args) { PlasticContext context = Plastic.SetupCoreSymbols().Result; var userContext = new PlasticContextImpl(context); while (true) { ...
use mathbox::app::signal::change_points::e_divisive; use rand::Rng; fn main() { let mut rng = rand::thread_rng(); let mut data_1 = vec![]; let section_1 = [100.0; 100]; let section_2 = [3000.0; 100]; let section_3 = [200.0; 100]; let section_4 = [3000.0; 100]; let section_5 = [4000.0; 100];...
/* * © Copyright 2020 HP Development Company, L.P. * SPDX-License-Identifier: MIT */ import { SchemaTypeOpts } from 'mongoose'; import { TypeValueFactory, TypeValue, Maybe } from '@davinci/reflector'; export interface IPropDecoratorOptions extends SchemaTypeOpts<any> { typeFactory?: TypeValueFactory; type?: Type...
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Microsoft Corporation. All rights reserved. /////////////////////////////////////////////////////////////////////////////// // // Type Library Importer utility // // This program imports all the types in the type libr...
pub mod interner; pub mod iter; pub mod matchers; pub mod manualbox;
package main import ( "fmt" "io/ioutil" "github.com/chai2010/gettext-go/gettext" "gopkg.in/yaml.v2" "github.com/lxc/lxd" "github.com/lxc/lxd/shared/gnuflag" ) type infoCmd struct { showLog bool } func (c *infoCmd) showByDefault() bool { return true } func (c *infoCmd) usage() string { return gettext.Gett...
using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; namespace Wonders.IntegrationTests { public static class HttpClientExtensions { public static async Task<IActionResult> PostAsJsonAsync<T>( ...
/* * PCSocket.cpp */ #include "PCSocket.h" #include <stdio.h> #define PUBLISHER_PORT 8484 #define SUBSCRIBER_PORT 8485 std::string servAddress = ""; //INSERT NODE SERVER ADDRESS HERE using boost::asio::ip::tcp; const char kByeMessage[] = "BYE"; PC::PC(const std::string &name) : callback_(NULL), state_(NOT_C...
import { Schema } from 'mongoose' export const PlayerSchema = new Schema({ username: { type: String, unique: true }, password: String, steamName: String, steamID: { type: String, unique: true, }, slug: String, })
./tft r ./tft +1 ABCDEFG ./tft +2 abcdefg ./tft +3 1234567 ./tft +4 7654321 sudo ./tft s echo -n "push Enter" read input ./tft B0 BLACK ./tft F1 WHITE ./tft F2 WHITE ./tft F3 WHITE ./tft F4 WHITE sudo ./tft s echo -n "push Enter" read input ./tft F1 WHITE ./tft F2 YELLOW ./tft F3 CYAN ./tft F4 BLUE sudo ./tft s echo ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const feedbackSchema = new Schema({ source: { type: String, required: true }, // eg. play-store, discourse, twitter etc. channel: { type: String }, // eg. name of app, slack channel etc. content: { type: String, required: true }, // mai...
require 'spec_helper' class PersonTest include Sandthorn::AggregateRoot attr_reader :name attr_reader :age attr_reader :relationship_status attr_reader :my_array attr_reader :my_hash def initialize name, age, relationship_status @name = name @age = age @relationship_status = rela...
require 'spec_helper' class TestEmbeddedInProxy < MassiveRecord::ORM::Relations::Proxy::EmbeddedIn; end describe TestEmbeddedInProxy do include SetUpHbaseConnectionBeforeAll include SetTableNamesToTestTable let(:proxy_owner) { Address.new "address-1", :street => "Asker", :number => 1 } let(:proxy_target) { ...
package org.igniterealtime.openfire.plugins.skypeintegration; import org.jivesoftware.openfire.container.Plugin; import org.jivesoftware.openfire.container.PluginManager; import org.jivesoftware.openfire.user.UserNameManager; import org.jivesoftware.util.JiveGlobals; import org.slf4j.Logger; import org.slf4j.LoggerFac...
import PrettyError from 'pretty-error'; export const enablePrettyErrors = () => { const pe = new PrettyError(); pe.skipPackage('yargs'); pe.start(); };
using System; using System.Net.Sockets; namespace NLog { public class TcpSocketEventArgs : EventArgs { public Socket socket { get { return _socket; } } readonly Socket _socket; public TcpSocketEventArgs(Socket socket) { _socket = socket; } } }
package org.javers.core.diff.changetype; import org.javers.core.commit.CommitMetadata; import org.javers.core.diff.Change; import org.javers.core.metamodel.object.GlobalId; import java.util.Objects; import java.util.Optional; import static org.javers.common.string.ToStringBuilder.addField; import static org.javers.c...
/* * Copyright (C) 2011-2012 spray.cc * Based on code copyright (C) 2010-2011 by the BlueEyes Web Framework Team (http://github.com/jdegoes/blueeyes) * * 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 th...
<?php namespace Daemon\FilestorageBundle\Component\Helper; use Symfony\Component\Filesystem\Filesystem; class FileSystemHelper { public static function createPathIfNotExists($path) { $pathArray = explode('/', $path); $currentPath = ''; for ($i=0; $i < sizeof($pathArray); $i++) { ...
/* Copyright (c) 2021 - 2022 Buijs Software * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, ...
import { GetterTree } from 'vuex'; import { StateInterface } from '../index'; import { RolesStateInterface } from './state'; export type RolesGetterInterface = GetterTree< RolesStateInterface, StateInterface >; const getters: RolesGetterInterface = { GET_ROLES_FOR_SELECT: (state: RolesStateInterface) => state.r...
const DungeonsAndDragons = artifacts.require("DungeonsAndDragon"); // const { LinkToken } = require('@chainlink/contracts/truffle/v0.4/LinkToken') const RINKEBY_VRF_COORDINATOR = '0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B' const RINKEBY_LINK_TOKEN = '0x01BE23585060835E02B77ef475b0Cc51aA1e0709' const RINKEBY_KEYHASH = ...
using System; using System.Linq; using System.Reflection; namespace Elektronik.Settings.Bags { [Serializable] public class SettingsBag { [NotShow] public string ModificationTime; public virtual bool Validate() { return true; } public override s...