text
stringlengths
27
775k
//! Custom enumerators not specifically based on OpenCL C-style enums. //! //! //! // // [TODO]: Evaluate usefulness of `Error` impls and potentially remove. // [TODO]: Possibly remove custom implementation of `Debug` and derive instead. // #![allow(dead_code)] use std; // use std::mem; // use std::error::Error; // u...
# html_table_webpage A basic webpage made out of html Download and save all 3 folders inside a one single folder. Run the 'unit test 3 table web page' inside 'unit test 3 table web page' folder.
package net.corda.node.internal.security import java.util.* class Password(valueRaw: CharArray) : AutoCloseable { constructor(value: String) : this(value.toCharArray()) private val internalValue = valueRaw.copyOf() val value: CharArray get() = internalValue.copyOf() val valueAsString: Stri...
package clear import ( "fmt" "github.com/cheneylew/projects/gitStat/git" "strings" ) func main() { clearBranches() } func clearBranches() { dir := "/Users/apple/Desktop/ehsy/opc" git.CheckoutLocalBranch(dir, "master") nodes := git.NodesAll(dir) git.CheckoutLocalBranch(dir, "master-eis") nodes = append(node...
package models case class Product( Id: String, Title: String, Price: BigDecimal, Cost: BigDecimal)
package mhfc.net.common.weapon.range.bow; import mhfc.net.common.weapon.stats.WeaponStats; public class BowWeaponStats extends WeaponStats { public static class BowWeaponStatsBuilder extends WeaponStatsBuilder<BowWeaponStatsBuilder> { public BowWeaponStatsBuilder() {} @Override protected BowWeaponSta...
part of flutter_lwp; /// HUB Transport interface /// /// {@category backend} abstract class IHubTransport { /// transmit places the message on the wire immediately Future<bool> transmit(Message msg); /// returns the name of the hub String get name; /// returns the id of the hub String get id; /// Init...
package SMART import Chisel._ class CreditReg extends Module { val io = new Bundle { val inc = Bool(dir = INPUT) val dec = Bool(dir = INPUT) // if dec == 1, inc val creditOut = UInt(dir = OUTPUT, width = CREDIT_WIDTH) } val credit = Reg(init = UInt(INPUT_BUFFER_DEPTH)...
"""The RoleUserManagerToFile class.""" from RoleUserManagerMixIn import RoleUserManagerMixIn from UserManagerToFile import UserManagerToFile class RoleUserManagerToFile(RoleUserManagerMixIn, UserManagerToFile): """See the base classes for more information.""" def __init__(self, userClass=None): User...
require 'pry' require 'bundler/setup' # for require sidekiq & puma from rails_com require 'mina/git' require 'mina/rails' require 'mina/rvm' require 'mina/whenever' require 'mina/sidekiq' require 'mina/puma' if ENV['on'].nil? if ENV['to'] set :branch, ENV['to'] else set :branch, 'staging' end requi...
#!/bin/sh set -e brew install zstd gmp mpfr libmpc wget unzip make ninja coreutils gnu-getopt mkdir gn_bin/ cd gn_bin wget -q https://chrome-infra-packages.appspot.com/dl/gn/gn/mac-amd64/+/latest -O gn.zip unzip gn.zip cd ..
1ere etape : git clone https://github.com/maxencelgy/Grenouillere.git 2eme etape : aller dans dossier -> grenouillere -> terminal et marquer composer install 3 eme etape : crée un fichier .env et mettre à l'interieur https://sharemycode.fr/li5 4 eme etape : créer la branch dev -> git branch dev 5 eme etape : php sp...
module EffectiveClassifiedsTestBuilder def create_user! build_user.tap { |user| user.save! } end def build_user @user_index ||= 0 @user_index += 1 User.new( email: "user#{@user_index}@example.com", password: 'rubicon2020', password_confirmation: 'rubicon2020', first_name...
#!/bin/sh -e runuser -u plex /plex-entrypoint.sh exec "$@"
package okreplay; import java.util.ArrayList; import java.util.Date; import java.util.List; import static okreplay.Util.VIA; /** * Represents a set of recorded HTTP interactions that can be played back or * appended to. */ abstract class MemoryTape implements Tape { private String name; private List<YamlRecor...
using System; using System.Collections.Concurrent; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; using Spectacles.NET.Rest.Bucket; using Spectacles.NET.Rest.View; using Spectacles.NET.Types; using Spectacles.NET.Util.Extensions; using Spectacles.NET.Util.Logging; namespace ...
--- city: Flora Vista state: new mexico stores: - name: Farmer's Market address: 816 Highway 516 ---
// Copyright 2010 Jonas mg // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. package user import ( "bufio" "bytes" "errors" "io" "os" "sync" "github.com/tr...
import feathers from 'feathers/client'; import socketio from 'feathers-socketio/client'; import io from 'socket.io-client'; import hooks from 'feathers-hooks'; import authentication from 'feathers-authentication-client'; import storage from '~helpers/ssr-storage'; const host = process.env.HOST || 'localhost'; const po...
import { html } from 'lit-html'; import '../src/my-button.js'; import { text, withKnobs, withWebComponentsKnobs } from '@open-wc/demoing-storybook'; export default { title: 'my-button', component: 'my-button', decorators: [withKnobs, withWebComponentsKnobs], parameters: { options: { selectedPanel: 'storybookjs...
(DARGP-OF-LOOKUP-EQUAL-WHEN-ALL-DARGP-OF-STRIP-CDRS (1175 74 (:REWRITE CONSP-FROM-LEN-CHEAP)) (519 99 (:REWRITE DEFAULT-CAR)) (435 20 (:REWRITE ALL-DARGP-WHEN-NOT-CONSP)) (378 62 (:REWRITE DEFAULT-CDR)) (322 161 (:TYPE-PRESCRIPTION SYMBOLP-OF-CAR-OF-CAR-WHEN-SYMBOL-TERM-ALISTP)) ...
package package1; import package2.*; public class B { private String privateMessage = "This is private"; }
; FILE *_fmemopen__callee(void **bufp, size_t *sizep, const char *mode) SECTION code_clib SECTION code_stdio PUBLIC __fmemopen__callee, l0__fmemopen__callee EXTERN asm__fmemopen __fmemopen__callee: pop af pop hl pop bc pop de push af l0__fmemopen__callee: ld a,$0c push ix call as...
#!/bin/bash set -eo pipefail CDIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" INPUT_DIR=/input OUTPUT_DIR=/output #TA1_RUNTIME=/user_opt/ta1-pipeline TA1_RUNTIME=$CDIR/ta1-pipeline #BBN_PIPELINE=$(find $CDIR/ | grep -e "pipeline.*json$" | head -1) if [ "x$BBN_PIPELINE" == "x" ]; then echo "No pipeline availa...
/** * Clone and Bind context to each object value * * @param {Object} obj * @param {Mixed} ctx * @return {Object} */ module.exports = function bindEach(src, ctx) { const obj = {}; Object.keys(src).forEach(key => { obj[key] = src[key].bind(ctx); }); return obj; };
#!/bin/bash # # BASH script to quickly split a YCB object directory tree into a train and validation # sets. # # Arguments: object_dir_YCB target_dir # # object_dir_ycb: directory where the YCB object lies. Assumes object directories # have names in the form xxx_object_name_directo...
(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = fact...
/* * Copyright 2007 Hilbrand Bouwkamp, hs@bouwkamp.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 ...
using System; using System.Text.Json; using MediatR; using Microsoft.AspNetCore.Mvc; namespace AspNetCoreWorkshop.Api.Jobs.UpdateJob { public class UpdateJobRequest : IRequest<Func<ControllerBase, IActionResult>> { public UpdateJobRequest(int id, JsonElement data) { Id = id; ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 10-Jun-2019 às 19:20 -- Versão do servidor: 10.3.15-MariaDB -- versão do PHP: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
val instructions: List<Instruction> by lazy { readFile("ALU").split("\n").map { l -> l.split(" ").let { if (it.size == 2) Instruction(it[0], it[1], "") else Instruction(it[0], it[1], it[2]) } } } val mapVarToInd = mapOf( "w" to 0, "x" to 1, "y" to 2, "z" to 3 ) val variables = IntArray...
# golang + Utilities = goutils goutils (Golang UTILitieS) is a Golang implementation of some functions and data types to help other libraries. You can see an extended doc in [godocs](https://godoc.org/github.com/fmorenovr/goutils). Install it writing in terminal: go get github.com/fmorenovr/goutils Example: ...
import chalk from "chalk"; import checks from "./checks"; import api from "../../../services/api/api"; import spinner from "../../../services/spinner"; async function apply(file: string, application: string, version: string) { const s = spinner.get(); await validate(file); s.start("Checking submission status..."...
import * as React from "react"; import { SyntheticNode, DependencyGraph, InspectorNode, PCVariant, PCVariable, ComputedStyleInfo } from "paperclip"; import { BaseElementStylerProps } from "./view.pc"; import { Dispatch } from "redux"; import { FontFamily, ProjectOptions } from "../../../../../../state"; ex...
using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Schema; namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Testing { /// <summary> /// Middleware that catch "SetTestOptions" event and save into "Conversation.TestOptions". /// </summary> public class SetTestOptionsMiddleware : I...
package koch; import fractal.*; public class Koch extends Fractal { private int length; /** Creates an object that handles Koch's fractal. * @param length the length of the triangle side */ public Koch(int length) { super(); this.length = length; } /** * Returns the title. * @return the title */...
module Util.AnalyzeSamples.ConfigSpecs where import Util.ParseStuff dss = DataSpecSheet $ M.fromList [ ("simple_a", [ ("soundFileDir", SomeDataTypeString) , ("soundFileName", SomeDataTypeString) , ("soundFileFundamental", SomeDataTypeFloat) , ("pvsDataDir", SomeDataTypeString) , ("samplingRate", So...
using System; using System.Reflection; [assembly: AssemblyTitle("CslaContrib.CustomFieldData.UnitTests")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("CslaContrib.CustomFieldData.UnitTests")] [assembly: AssemblyDescription("An assembly that tests code in CustomFieldData.")] // Mark the a...
ALTER TABLE WORKCAL_TYPE ADD COLUMN TENANT_ID VARCHAR(64); ALTER TABLE WORKCAL_RULE ADD COLUMN TENANT_ID VARCHAR(64); ALTER TABLE WORKCAL_PART ADD COLUMN TENANT_ID VARCHAR(64);
from typing import Optional, Callable from thinc.api import Model from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .stop_words import STOP_WORDS from .lex_attrs import LEX_ATTRS from .syntax_iterators import SYNTAX_ITERATORS from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES, TOKENIZER_INFIXES ...
package ru.srcblog.libs.imageviewwithprogress import android.content.Context import android.util.AttributeSet import android.view.Gravity import android.view.ViewGroup import android.widget.FrameLayout import android.widget.ImageView import android.widget.ProgressBar class ImageViewWithProgress @JvmOverloads construc...
RSpec.describe Tarona::TextAct do it 'is act type' do expect(described_class.superclass).to be(Tarona::Act) end it 'consists of text' do expect(described_class.act_type).to be(:text) end class TestTextAct < Tarona::TextAct subject 'mystring' end let(:io) { Tardvig::GameIO.new } let(:act) ...
#!/bin/bash [ -f path.sh ] && . ./path.sh path=/home/grtzsohalf/Audio2Vec #feat_dir=/home_local/grtzsohalf/yeeee/French feat_dir=/nfs/Mazu/grtzsohalf/yeeee/English feats_dir=/nfs/YueLao/grtzsohalf/yeeee/English/feats [ -f $feat_dir/cmvned_feats.ark ] || exit 1 [ -f $feat_dir/all_prons ] || exit 1 mkdir -p $feats_dir ...
/** * Set default style element and set corresponding * variable to the style. * * - attr: attribute name of element * - data: the data want to change for the attr * - variable: local variable need to update the value, leave NULL * if no variable need to be updated */ function setDefaultStyleData(...
import React from 'react'; import { render } from '@testing-library/react'; import Modal from './Modal'; test('Renders the Modal component', () => { const { container } = render(<Modal show text="Test" cancel={() => null} confirm={() => null} />); expect(container).toBeInTheDocument(); });
Twig Helper =========== thumbor Function ---------------- The thumbor twig function build a thumbor url with the different transformation configured in config.yml. ``` yml jb_phumbor: transformations: width_50: resize: { width: 50, height: 0 } ``` ``` twig {{ thumbor('test/logo.png', 'width_...
# angular-quickstart-skeleton-app - Sample code to help you get started with your next Angular App This is a bare minimum skeleton app for starting your next Angular application. It covers most of the key features of Angular that you would use in a typical Angular App. ## Demo Click [here][1] to view it in action ...
/** * 6436. Floppies * * 작성자: xCrypt0r * 언어: Go * 사용 메모리: 924 KB * 소요 시간: 4 ms * 해결 날짜: 2021년 10월 25일 */ package main import ( "bufio" "fmt" "os" ) const ( maxFileSize = 62 * 30000 ) func main(){ in := bufio.NewReader(os.Stdin) out := bufio.NewWriter(os.Stdout) defer out.Flush() var s int...
package shader import ( "bufio" "fmt" "os" "path/filepath" "regexp" "strings" ) func loadFileWithIncludesRecursive(filename string, loadedpaths *map[string]bool) string { // simplify filepath to consistently find duplicate includes cleanpath := filepath.Clean(filename) // early return since file had been lo...
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event log = logging.getLogger('priv_torrents') class FilterPrivateTorrents(object): """How to handle private torrents. private_torrents: yes|no Example:: privat...
from typing import Callable from .context import Context from .errors import CommandDoesNotExistError from core.ext import ExtensionHandlerFeature, ExtensionFeature def command(alias: str = None): def decorator(func: Callable): if alias is None: return Command(func, func.__name__) retu...
import React, { Component } from "react"; let number = null; class Coin extends Component { state = { number: null, class: "", animation: false, div: React.createRef(), }; randomNumber = () => { number = Math.round(Math.random()); console.log(number); }; handleClick = (e) => { i...
"""Define class for Page Number argument.""" from args import _ArgType from args.meta_arg import MetaArg from args.arg import Arg class PageNumber(Arg, metaclass=MetaArg, argtype=_ArgType._PAGE_NUMBER, mandatory=True): """Page Number argument.""" pass # Nothing to do
# KiCad 6 configuration checker This is a CLI Python3 program to check a user's configuration and emit diagnostics Requires Python3 module sexpdata. If you do not have it, install with ```sh pip3 install sexpdata ``` Takes an optional argument to specify the configuration directory which overrides the default for t...
import interedit.app __version__ = "0.1.0" main = interedit.app.main
package com.adlawson.json4s import org.json4s.{DefaultFormats, FieldSerializer, Serializer} import scala.language.existentials object ExtendedFormats extends ExtendedFormats trait ExtendedFormats extends DefaultFormats { override val strict: Boolean = true override val customSerializers: List[Serializer[_]] = L...
# whiptail log_info "Install whiptail" if [ "$(command -v whiptail)" ]; then log_success "command \"whiptail\" exists on system" elif [[ " ${pms[@]} " =~ " apt-get " ]]; then # whatever you want to do when array contains value log_info "use apt-get" $isu apt-get update -y $isu apt-get install -y ...
--- el: .tabs title: Tabs --- __Variables:__ * modifier_classes: [string] Classes to modify the default component styling. * heading: [string] Accessible heading of the tabs. * tabs: [array] Tab items. Each item is an object containing: * active: [boolean] Whether the item is active. * url: [string] URL of the ite...
// Copyright 2014 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 icmp import ( "encoding/binary" "github.com/sssvip/net/internal/iana" ) // A ParamProb represents an ICMP parameter problem message body. type Param...
# Infinitic ## Run Standalone Pulsar > Create those directories, if you don't have them yet: /engine/build/libs /engine/build/schemas In the same directory than `docker-compose.yaml`, do: ```bash docker-compose up ``` To enter the docker container: ```bash docker exec -it pulsar_pulsar_1 /bin/bash ``` To clean ev...
using System; using System.Threading.Tasks; using DSharpPlus; using DSharpPlus.Entities; namespace BotV2.Services.WarframeInfo { public interface IWarframeCycleStatus { string Id { get; } string Name { get; } DateTimeOffset Expiry { get; } Task<(string message, DiscordEmbed ...
package net.zhenglai.ml.lib /** * Created by Zhenglai on 7/21/16. */ private[zhenglai] object Category { def id[A]: A ⇒ A = a ⇒ a def compose[A, B, C](g: B ⇒ C, f: A ⇒ B): A ⇒ C = g compose f // Function.compose, f(g(x)) }
using WorkTimer.Domain.Models.Enums; namespace WorkTimer.SQLite.Entities { internal class WorkLog { public WorkTask Task { get; set; } public int TaskId { get; set; } public WorkType Type { get; set; } public string StartDate { get; set; } public string EndDate { ge...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Foundation\Auth\User; use App\Post; use Storage; use Illuminate\Support\Facades\Validator; class PostsController extends Controller { //画像およびコメントアップロード public function upload(Request $request){ //Validatorファサードのmakeメソッドの第1引数は、バリデーションを...
/// This file contains a floating point math implementation of the vector graphics rasterizer. use super::{clamp, Rasterizer}; #[inline(always)] fn fmax(x: f32, y: f32) -> f32 { if x > y { x } else { y } } #[inline(always)] fn fmin(x: f32, y: f32) -> f32 { if x < y { x } else { y } } #[inline(always)] fn floor(x: f32...
<!DOCTYPE html> <!-- This is a starter template page. Use this page to start your new project from scratch. This page gets rid of all links and provides the needed markup only. --> <html ng-app="inventory_system"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>{{h...
# Copyright (c) 2020 Adam Souzis # SPDX-License-Identifier: MIT """ TOSCA implementation """ from .tosca_plugins import TOSCA_VERSION from .util import UnfurlError, UnfurlValidationError, getBaseDir from .eval import Ref, RefContext, mapValue from .result import ResourceRef, ResultsList from .merge import patchDict fro...
#! /bin/bash for idx in {1..1} do filename='test' filename=$filename${idx} filename=$filename'.yaml' echo ${filename} k apply -f ${filename} done
using System.Collections.Generic; using MyE.Entity; namespace MyE.Service.implementation { public class MachineReviewService : IMachineReviewService { private IMachineReviewService machineReviewRepository; public MachineReviewService(IMachineReviewService machineReviewRepository) { ...
package models import java.util.UUID import com.datastax.driver.core.Row import com.websudos.phantom.dsl._ import helpers.ExtLong._ import helpers._ import models.cassandra._ import play.api.libs.iteratee.Enumerator import play.api.libs.json._ import scala.concurrent.Future /** * @author zepeng.li@gmail.com */ ca...
import scala.reflect.ClassTag package object scalan { /** Allows implicit resolution to find appropriate instance of ClassTag in * the scope where RType is implicitly available. */ implicit def rtypeToClassTag[A](implicit t: RType[A]): ClassTag[A] = t.classTag /** Immutable empty array of integers, should ...
Working with Docker and Google Cloud Container Registry ======================================================= #### Create the image First create the jar by running: ``` mvn package ``` Build the docker image: ``` docker build -t spring-boot-containerized . ``` Tag your image, to push it to [Google Cloud Containe...
using System.Collections.Generic; using JetBrains.Annotations; using Newtonsoft.Json; namespace VimeoDotNet.Models { /// <summary> /// Upload ticket /// </summary> public class TusResumableUploadTicket : Video { /// <summary> /// Upload status /// </summary> ...
/* * Copyright 2007 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by appl...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../util/logger.h" #define READ_SIZE 100 static char *work_dir = NULL; // Prototypes. static short file_exists(const char *file); static inline const char *set_path(const char *file_name); // Sets directory to work in. void set_dir(const char *dir)...
 <# .SYNOPSIS Get service list from HashTable .DESCRIPTION Extract the services from the list of entries in the HashTable .PARAMETER AllAxServices Instruct the cmdlet to return all services .PARAMETER Aos Instruct the cmdlet to return AOS ...
class analyser_crystal: def __init__(self,base_indicies): self.base_indicies = base_indicies def set_harmonic_list(self,harmonic_list): self.harmonic_list = harmonic_list def get_harmonic_list(self): return self.harmonic_list
rm -Rf build mkdir build cd build && cmake ../src/dsp_server_c -DCMAKE_BUILD_TYPE=Debug make cd ..
<?php namespace JTMcC\AtomicDeployments\Services; use JTMcC\AtomicDeployments\Exceptions\ExecuteFailedException; class Exec { /** * @param string $command * @param array $arguments * * @throws ExecuteFailedException * * @return string */ private static function run(string ...
package com.palmlang.palm.common interface Query<in Key, Value> { operator fun get(key: Key): Value } class ComputedQuery<Key, Value>(private val computeFn: ComputedQuery<Key, Value>.(Key) -> Value) : Query<Key, Value> { private val map = HashMap<Key, Value>() override fun get(key: Key): Value = map.compu...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SphereShield : MonoBehaviour { public float targetSize = 20f; public AnimationCurve animationCurve; private bool _isCasting = false; private float _timer = 0f; public void Cast() { _isCasting = true; } private vo...
/* * Copyright cp-ddd-framework Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package io.github.dddplus.ext; import io.github.dddplus.model.IDomainModel; import javax.validation.constraints.NotNull; import java.util.List; /** * 用于编排领域步骤的扩展...
# eslint-config-mg This package is inspired by Airbnb Eslint with customizations for what I need. ## Usage 1. Install the correct versions of each package, which are listed by the command: ```sh npx install-peerdeps --dev eslint-config-mg ``` Note: The peer dependency `babel-eslint` is just needed if you use `mg/b...
import React from 'react' import { Link, graphql } from 'gatsby' import Layout from '../components/layout' import Head from '../components/head' import Box from '../components/box' import ProposalBox from '../components/proposal/box' import Covid19SupportBox from '../components/covid-19-support/box' import styled from ...
DROP DATABASE IF EXISTS sampletest; CREATE DATABASE sampletest; \connect sampletest GRANT ALL PRIVILEGES ON DATABASE sampleTest TO sample_owner;
import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from "@angular/core"; import { User } from "./_models"; import { ActivatedRoute, Router } from "@angular/router"; import { AuthenticationService } from "./_services"; import { Subject, Subscription } from "rxjs"; import { animate, stagger, state...
/* * 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 ...
using Sitecore.Data.Items; using Sitecore.Data.Managers; using Sitecore.Data.Query; using Sitecore.Data.Templates; using Sitecore.Diagnostics; using Sitecore.Exceptions; using Sitecore.Rocks.Server.Extensibility.Composition; using Sitecore.Rocks.Server.Extensibility.Pipelines; using Sitecore.Rocks.Server.Exten...
using System.Diagnostics.CodeAnalysis; using EventDriven.CQRS.Abstractions.Events; namespace CustomerService.Domain.CustomerAggregate.Events { [ExcludeFromCodeCoverage] public record CustomerCreated(Customer Customer) : DomainEvent(Customer.Id); }
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.idea.actions.internal import com.intellij.openapi.actionSystem.AnActionEvent imp...
/** * @author George Foster * @file mix_phrasetables.cc * @brief Produce an interpolated combination of any kind of (text) * phrasetable, using given weights. * * COMMENTS: * * Technologies langagieres interactives / Interactive Language Technologies * Inst. de technologie de l'information / Institute for I...
package com.beyondar.android.view; import java.util.ArrayList; import com.beyondar.android.world.BeyondarObject; /** * On click listener to detect when a * {@link com.beyondar.android.world.BeyondarObject BeyondarObject} has been * clicked on the {@link com.beyondar.android.view.BeyondarGLSurfaceView * BeyondarG...
package edu.calpoly.flipted.businesslogic.tasks.data.blocks class ImageBlock( val imageUrl: String, title: String? = null ) : TaskBlock(title)
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import megengine as mge import megengine.module as M from models.yolo_fpn import YOLOFPN from models.yolo_head import YOLOXHead from models.yolo_pafpn import YOLOPAFPN from models.yolox import YOLOX def build_yolox(name="yolox-s"): num_classes = 80 # value mean...
# coding=utf-8 from django.core.urlresolvers import reverse from django.views.generic import DetailView, ListView, RedirectView, UpdateView, CreateView from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.http.response import HttpResponseRedirect from django.shortcu...
/** * This package is for testing MCR under RMMs * * @author Alan * @author Alan */ /** * @author Alan * */ package edu.tamu.aser.tests.examples.mix0; import edu.tamu.aser.reex.JUnit4MCRRunner; import edu.tamu.aser.tests.examples.mergesort.MergeSort; import org.junit.Test; import org.junit.runner.RunWith; imp...
using EIP.Common.DataAccess; using EIP.System.Models.Entities; namespace EIP.System.DataAccess.Log { public class SystemSqlLogRepository : DapperAsyncRepository<SystemSqlLog>, ISystemSqlLogRepository { } }
# Sycidium Portable and free live-poll webapp # Usage 1. Clone Repo 2. Install dependencies with `npm install` 3. Launch in debug mode with `npm start` 4. Go to `http://localhost:3030` 5. Enjoy
package it.unibo.scafi.simulation.frontend.model /** * Created by chiara on 14/11/16. */ trait Action { def name: String def action: Any }
<?php /* * IMServer.php - Simple instant messaging server - David Thorne / AIG / 14-01-2009 * * * This PHP script simply acts like a shared dictionary. A client can either set a * value with a 'set' command, read it back again using a 'get' command, or remove * a value using an 'unset' com...