text
stringlengths
27
775k
namespace Negri.Twitch.Commands { public enum ReturnCode { NotImplemented = 1, DataDirectoryDoesNotExists = 2, DataDirectoryNotWritable = 3, GameNotFound = 4, ThreeDateParameters = 5, MissingDateParameters = 6, InvalidDateParameters = 7, NoObserva...
package ru.touchin.roboswag.navigation_base.keyboard_resizeable import android.os.Build import android.os.Bundle import android.os.Parcelable import android.view.View import androidx.annotation.LayoutRes import androidx.lifecycle.LifecycleObserver import ru.touchin.roboswag.components.utils.hideSoftInput import ru.tou...
# frozen_string_literal: true module Oban # Public: The Job model. class Job < ApplicationRecord self.table_name = 'oban_jobs' validates :worker, presence: true end end
cloud ===== 크라우드 관련 정보 정리 및 툴 개발
from django.urls import reverse_lazy from django.views.generic import ListView from django.views.generic.edit import DeleteView from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import redirect from catalogue.models import Exhibition from catalogue.forms import ExhibitionDetailForm f...
package ru.spbau.jvm.scala.lecture05 object Main { def main(args: Array[String]): Unit = { val number = ComplexNumber() println(number) // number.toString println(s"ComplexNumber(${number.x} ${number.y})") number.x += 1 // number.x.+=(1) number.y += 1 // number.y.+=(1) println(number) ...
# SVG No Breakpoints It simply disables pointer events for svg tag in html since they are disturbing when catching click away events ## Installation Install the plugin from npm: ```shell # Using npm npm install @gelbehexe/svg-no-pointer-events # Using Yarn yarn add @gelbehexe/svg-no-pointer-events ``` Then add t...
<?php /** * Load all tests * * PHP 5 * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) 2012-2014, Hurad (http://hurad.org) * @link http://hurad.org Hurad P...
import sys from pathlib import Path __dir__ = Path(__file__).absolute().parent # Remove current dir from sys.path, otherwise setuptools will peek up our # module instead of system's. sys.path.pop(0) from setuptools import setup sys.path.append(".") import sdist_upip setup( name='micropython-socks', py_module...
import * as path from 'path'; import * as fs from 'fs'; import test from 'ava'; import { CommandAcceptanceTest } from '@denali-js/cli'; test('prints eslint errors', async (t) => { let server = new CommandAcceptanceTest('build'); // Insert eslint violation - we can't bake this into the actual dummy app // source...
// ReSharper disable All namespace TomsToolbox.Wpf.Tests { using System.Windows.Threading; class NullabilityValidations { void Test() { var x = ((Dispatcher)null!).Invoke(MethodWithNullableReturn); var x1 = x?.ToString(); var y = ((Dispatcher)null!).Inv...
// Copyright (c) 2013, the project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed // by a Apache license that can be found in the LICENSE file. part of log4dart; /** * A log record formatter for the given log format */ class LogRecordFormatter { LogRe...
// Copyright 2008-2009 Louis DeJardin - http://whereslou.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 r...
<?php if(!defined('ROOT')) exit('Direct Access Is Not Allowed'); $cfgSchema["DOMAIN_CONTROLS_FLOWTYPE"]=array( "type"=>"list", "function"=>"getDomainControlFlowtype", ); $cfgSchema["ADMIN_APPSITES"]=array( "attrs"=>"readonly", "class"=>"readonly", ); $cfgSchema["HASH_SALT"]=array( "attrs"=>"readonly", "c...
use Test::More 'no_plan';; use Test::Script; $rabbit_hostname = $ENV{'RABBIT_HOSTNAME'}; $rabbit_username = $ENV{'RABBIT_USERNAME'}; $rabbit_password = $ENV{'RABBIT_PASSWORD'}; $rabbit_servername = $ENV{'RABBIT_SERVERNAME'}; # Base arguments $args = sprintf("--hostname=%s --username=%s --pa...
/* This file is part of Motion. * * Motion is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * Motion is distributed...
# To see the default Spark configurations or edit them cd /etc/spark/conf vi spark-env.sh
<?php /** * Created by PhpStorm. * User: xcg * Date: 2019/12/9 * Time: 18:37 */ namespace EasySwoole\ElasticSearch\RequestBean; class Get extends AbstractBean { protected $id; protected $index; protected $type; protected $stored_fields; protected $preference; protected ...
import { Camera, Entity, RenderColorTexture, RenderTarget, Script } from "oasis-engine"; import { ColorRenderPass } from "./ColorRenderPass"; /** * Framebuffer picker. * @remarks Can pick up renderer at pixel level. */ export class FramebufferPicker extends Script { public colorRenderTarget: RenderTarget; publi...
var testBed = ng.core.testing.TestBed; var browser = ng.platformBrowserDynamic.testing; testBed.initTestEnvironment(browser.BrowserDynamicTestingModule, browser.platformBrowserDynamicTesting()); describe('#Injection Test', function () { it('Get instance for first time', function(done){ testBed.configureTestingModu...
from typing import Callable, Generator, Tuple, List, Dict, Set, Optional, Hashable # from collections import defaultdict from convokit.politeness_api.features.politeness_strategies import get_politeness_strategy_features # from convokit.politeness_api.features.vectorizer import get_unigrams_and_bigrams from convo...
class HomeController < ApplicationController def skip_setup_checks action_name == 'setting_up' || action_name == 'setup_status' end def index end def fetch_daily Nexus.config.schedule_daily_update! redirect_to action: :index end def fetch_full Nexus.config.schedule_full_update! red...
package test import kotlin.properties.Delegates import kotlin.properties.ReadWriteProperty var result = "fail" inline fun <reified T : Any> crashMe(): ReadWriteProperty<Any?, Unit> { return Delegates.observable(Unit, {a, b, c -> result = (T)?::class.java.simpleName}) }
package org.xpathqs.driver.navigation import org.jgrapht.GraphPath import org.jgrapht.alg.shortestpath.DijkstraShortestPath import org.jgrapht.graph.SimpleDirectedWeightedGraph import org.xpathqs.core.selector.base.ISelector import org.xpathqs.core.selector.block.Block import org.xpathqs.core.selector.extensions.rootP...
module TD::Types # A theme in the chat has been changed. # # @attr theme_name [TD::Types::String] If non-empty, name of a new theme, set for the chat. # Otherwise chat theme was reset to the default one. class MessageContent::ChatSetTheme < MessageContent attribute :theme_name, TD::Types::String end e...
namespace PofyTools { using UnityEngine; using System.Collections; public interface IIdentifiable { string Id { get; } } public interface IPoolableComponent<T> where T : Component { ComponentPool<T> Pool { get; s...
#!/bin/bash # broken! #echo "====================" #echo "MARWIL" #echo "====================" #time python ./trainImitate.py -f experiments/tests/MARWIL.yaml eval "$(conda shell.bash hook)" conda activate flatland-rl DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "===================="...
#! /usr/bin/env sh set -eu cat - << EOD #![allow(non_camel_case_types)] #![allow(non_snake_case)] #![allow(non_upper_case_globals)] EOD cd $(mktemp -d) echo '#include <menoh/menoh.h>' > wrapper.h bindgen wrapper.h \ --no-derive-copy \ --no-derive-debug \ --no-doc-comments \ --no-prepe...
#!/bin/bash docker --version &> /dev/null if [ $? -ne 0 ]; then echo "Docker is not installed. Please install Docker and try again." exit 1 fi docker start redis-test 2> /dev/null || docker run --name redis-test -p 6379:6379 -d redis dotnet test tests/StackExchange.Redis.DataTypes.Tests if [[ $? -eq 0 && "$...
<?php #endif /* browscap.c */ function get_browser(?string $user_agent = null, bool $return_array = false) : object|array|false { }
package com.acash.googlelensclone.barcode import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.net.Uri import android.util.Log import androidx.camera.core.ImageAnalysis import androidx.camera.core.ImageProxy import com.google.mlkit.vision.barcode.BarcodeSca...
/* * [The "BSD license"] * Copyright (c) 2011 Terence Parr * All rights reserved. * * Conversion to C#: * Copyright (c) 2011 Sam Harwell, Tunnel Vision Laboratories, LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
package fi.hollannikas.reactive.configuration import fi.hollannikas.reactive.MessageRepository import fi.hollannikas.reactive.MessageSocketHandler import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.web.reactive.HandlerMapping import...
from datetime import datetime from sqlalchemy import Column, DateTime, Float, Integer, String from sqlalchemy.ext.declarative import DeclarativeMeta from app import db class BTCPrice(db.Model): __tablename__ = 'btcprices' btcprice_id = Column(Integer, primary_key=True) timestamp = Column(DateTime, null...
namespace MarketingPageAcceptanceTests.Actions.Pages.Utils { using System; using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; public abstract class PageAction { protected readonly IWebDriver Driver; protected readonly WebDriverWait Wait; protected PageAction(IWebDriv...
import React from 'react' export default { Counter: React.lazy(() => import('./Counter')), TodoApp: React.lazy(() => import('./TodoApp')), 'Reducer-TodoApp': React.lazy(() => import('./Reducer-TodoApp')) }
const db = require('../data/dbConfig'); async function getTeam(eventId) { const team = await db('event_team as team') .join('users as u', 'u.id', 'team.user_id') .join('events as e', 'e.id', 'team.event_id') .select( 'team.user_id', 'team.event_id', 'team.role_type', 'u.email', ...
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2019-2021. 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 %% ...
## 0.3.0 - Removes r channel - Requires bioconda and conda-forge as manadatory channels - Template has been adjusted to pass linting ## 0.1.1: Hotfix - Fix failing PyPi deployment ## 0.1.0: First release
package com.vaadin.tests.components.splitpanel; import com.vaadin.server.Sizeable; import com.vaadin.tests.components.TestBase; import com.vaadin.ui.Button; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.HorizontalSplitPanel; import com.vaadin.ui.VerticalSplitPanel; import com.vaadin.v7.ui.TextArea; publ...
import org.scalatest._ import swsg._ import swsg.Model._ class RecursiveReferenceConsistencySpec extends FlatSpec with Matchers { "Model verification" should "fail if a component is referenced from in one of its descendants" in { val m = Model( Set.empty, Set( AtomicComponent("c1", Set.empty,...
/* * 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, Version 2.0 (the * "License"); you ...
class SetFolderToMenuItem < ActiveRecord::Migration[6.0] def up Menu.find_each do |menu| next if menu.folders.any? next menu.destroy if menu.game.nil? next menu.game.destroy if menu.game.master.nil? folder = menu.create_root_folder owner = menu.owner Menus::Item.find_by(menu_i...
import org.gradle.api.Project inline fun <reified T> Project.configureIfExists(fn: T.() -> Unit) { extensions.findByType(T::class.java)?.fn() }
var camera = undefined, scene = undefined, renderer = undefined, light = undefined, flashMesh = undefined, mouseX = undefined, mouseY = undefined, maze = undefined, mazeMesh = undefined, mazeDimension = 11, planeMesh = undefined, ballMesh = undefined, controllerAxis = [0,...
package com.oglowo import scala.concurrent.{ExecutionContext, Future} import spray.http.HttpResponse import spray.json.RootJsonFormat import spray.httpx.{UnsuccessfulResponseException, PipelineException} import spray.httpx.unmarshalling._ import scala.language.implicitConversions import spray.json._ import spray.httpx...
{-# LANGUAGE UnicodeSyntax, OverloadedStrings #-} module Web.TinySrv.ResponseCodes (lookupCode) where import qualified Data.Map.Strict as M import qualified Data.ByteString.Char8 as B (empty, ByteString) import Prelude.Unicode codes ∷ M.Map Int B.ByteString codes = M.fromList [ (100, " Continue") , (101, "...
<?php namespace App\Models; use CodeIgniter\Model; class Herarki extends Model { protected $DBGroup = 'default'; protected $table = 'tbl_herarki'; protected $primaryKey = 'id'; protected $useAutoIncrement = true; protected $protectFields = true; protected $allow...
--- uid: System.Diagnostics.SymbolStore.SymBinder author: "mairaw" ms.author: "mairaw" --- --- uid: System.Diagnostics.SymbolStore.SymBinder.Dispose author: "mairaw" ms.author: "mairaw" --- --- uid: System.Diagnostics.SymbolStore.SymBinder.Finalize author: "mairaw" ms.author: "mairaw" --- --- uid: System.Diagnostics...
package hub func Begin() { // // create an accessory // info := accessory.Info{Name: "Lamp"} // ac := accessory.NewSwitch(info) // // configure the ip transport // config := hc.Config{Pin: "00102003", StoragePath: ".erika"} // t, err := hc.NewIPTransport(config, ac.Accessory) // if err != nil { // log.Panic...
<?php if(Input::has('lang') && in_array(Input::get('lang'),['en','vi'])){ Session::put('lang',Input::get('lang')); }; if(Session::has('lang')){ Lang::setLocale(Session::get('lang')); } // Link trang chủ Route::get('/', array('as'=>'home','uses'=>'Pages@homepage')); // Route::get('/san-pham', array('as'=>'home'...
import { Tag } from '../lib/tag'; export interface CreateTransactionInterface { format: number; last_tx: string; owner: string; tags: Tag[]; target: string; quantity: string; data: string | Uint8Array | ArrayBuffer; data_size: string; data_root: string; reward: string; }
#!/bin/bash # # Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # port=4000 cc_name=task admin_gfe_token=$(cat ../token/admin_gfe.token) admin_deke_token=$(cat ../token/admin_deke.token) jim_gfe_token=$(cat ../token/jim_gfe.token) starttime=$(date +%s) echo "export port=$port;" ech...
from moda.dataprep.utils import raw_to_ts, ts_to_range from moda.dataprep.create_dataset import get_windowed_ts, split_history_and_current from moda.dataprep.data_reader import read_data __all__ = [ "raw_to_ts", "ts_to_range", "get_windowed_ts", "split_history_and_current", "read_data", ]
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class modelPangkalan extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function readPangkalan() { $query=$this->db->query("SELECT * FROM member_elpiji WHERE jenis = 'pangkalan' ")...
class Blob attr_reader :content # Array or String with data def initialize(content) @content = content end def size @content&.size || 0 end end class FileItem attr_reader :name, :metadata, :blob def initialize(name, metadata = {}) @name = name @metadata = metadata end def write_fi...
<?php namespace App\Http\Controllers\API; use App\Models\CEO; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class SearchController extends Controller { public function filter(Request $request, CEO $ceo) { $ceo = $ceo->newQuery(); if ($request->has('name')) { $ce...
#!/bin/bash usage() { echo "./updateversion.sh -p PREVIOUS_VERSION -v NEW_VERSION" echo echo "Example:" echo "./updateversion.sh -p 0.6.2 -v 0.6.3" echo exit 1; } # Accept the variables as command line arguments as well POSITIONAL=() while [[ $# -gt 0 ]] do key="$1" case $key in -p|--prev) ...
// Copyright 2021 Google LLC // // 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 ...
public byte[] scramblePassword(String password, String seed) throws NoSuchAlgorithmException { MessageDigest md = MessageDigest.getInstance("SHA-1"); byte[] stage1 = md.digest(password.getBytes()); md.reset(); byte[] stage2 = md.digest(stage1); md.reset(); md.update(s...
<?php declare(strict_types=1); namespace Parable\Console\Tests; use Parable\Console\Application; use Parable\Console\Command; use Parable\Console\Input; use Parable\Console\Output; use Parable\Console\Parameter; use Parable\Console\Parameters\ArgumentParameter; use Parable\Console\Parameters\OptionParameter; use Para...
package com.radixdlt.client.core.ledger import com.radixdlt.client.core.address.RadixAddress import io.reactivex.disposables.Disposable interface AtomPuller { fun pull(address: RadixAddress): Disposable }
/* * Copyright 2019 BLK Technologies Limited (web3labs.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 applic...
'use strict'; let { forEach } = require('bolzano'); let { n } = require('kabanery'); module.exports = () => { let dataMap = {}; let queueMap = {}; let scriptingMap = {}; window.jsData = (id, data) => { dataMap[id] = data; delete scriptingMap[id]; forEach(queueMap[i...
import time import struct class AmigaResident: match_word = 0x4afc RTF_AUTOINIT = 1<<7 NT_DEVICE = 3 NT_LIBRARY = 9 INIT_BYTE_B = 0xa0 INIT_BYTE_W = 0xe0 INIT_WORD_B = 0x90 INIT_WORD_W = 0xd0 INIT_LONG_B = 0x80 INIT_LONG_W = 0xc0 INIT_END = 0 def __init__(self, addr, size, mem): self....
<?php namespace Reliv\PipeRat2\Repository\Api; use Reliv\PipeRat2\Options\Options; /** * @author James Jervis - https://github.com/jerv13 */ class FindByIdNotConfigured implements FindById { const OPTION_MESSAGE = 'message'; const DEFAULT_MESSAGE = 'FindById repository has not be configured'; const DEF...
import 'dart:convert'; import 'dart:typed_data'; import '../io/bytes.dart'; import '../metadata/wellknown_mimetype.dart'; class CompositeMetadata extends Iterable<MetadataEntry> { RSocketByteBuffer buffer; CompositeMetadata(this.buffer); static CompositeMetadata fromEntries(List<MetadataEntry> entries) { ...
#ifndef RBX_HELPERS_HPP #define RBX_HELPERS_HPP namespace rubinius { struct CallFrame; class Module; class Class; class Symbol; class CompiledMethod; class State; class Object; class GlobalCacheEntry; class Tuple; namespace Helpers { Object* const_get_under(State*, Module* under, Symbol* name,...
package oop.nestedClasses.anonymousClass; public interface MathOperation { double calculate(double x, double y); }
--- date: 2016-10-26 6pm --- Minutes for the second meeting of Semester 1, 2016-17. **Present**: Viktorija Lukosiute, Erin Pigeon, Qais Patankar, Aw Qingzhuo, Martynas Grigonis, Josh Green **Agenda**: * GitHub * They may be lenient about us using [Octocat](https://octodex.github.com/) * GH is running an experimen...
package nafarr.peripherals.com.chip2chip import org.scalatest.funsuite.AnyFunSuite import scala.collection.mutable.ListBuffer import spinal.sim._ import spinal.core._ import spinal.core.sim._ import spinal.lib.bus.misc.SizeMapping import spinal.lib.bus.amba4.axi._ import spinal.lib.bus.amba4.axi.sim._ import nafarr.C...
package com.hellohasan.fragment_navigation_drawer.feature.home.view import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import com.bumptech.glide.Glide import com.hellohasan.fragment_navigat...
class ProcessImageVariantJob < ApplicationJob queue_as :default def perform(model:, variant:) model.image_file.variant(variant).processed end end
/* global describe, it */ // const cucumber = require('@cucumber/cucumber') // require('../src/steps') describe('steps', () => { it('does stuff', () => { }) })
module Upstat class Conditions class Condition < Struct.new(:condition, :range, :message) end class << self # NOTES: # 1. The coditions are not listed in correct sequence (emergency and normal, non-e and danger) # deliberately done since range.cover? is a kinda like an "overlap" - ...
package handlebars import ( "testing" ) func TestStack(t *testing.T) { stack := NewStack() if stack.Len() != 0 { t.Errorf("expected new stack to be empty") } one := stack.Pop() if one != nil { t.Errorf("expected Pop on empty stack to return nil") } stack.Push(NewBlockNode("aaa")) if stack.Len() != 1 {...
use std::io; const MAX: usize = 30; /// Reads a user input line. fn read_line() -> String { let mut input = String::new(); io::stdin().read_line(&mut input).expect("Error: Unable to read user input."); input } /// Calculates the greater sum of the price of the products by person capacity. fn solve(prices: Vec<...
@if(!isset($comment->reply_to)) <div class="media"> <a href="#" class="media-left" data-toggle="collapse" data-target="#comment_{{ $comment->id }}">+</a> <div class="media-body"> <h4 class="media-heading"><a href="#{{ $comment->user->id }}">{{ $comment->user->name }}</a> ...
package main.input.recommend import main.input.DataHolder import org.apache.spark.mllib.recommendation.Rating import org.apache.spark.rdd.RDD /** * Created by zhy on 2015/7/18 0018. */ /** * 推荐算法数据接口,可获取相应的Rating和ID2Name映射 */ trait RecDataHolder extends DataHolder with Serializable { protected val ratings: RD...
CREATE UNIQUE INDEX "PK_CONTAINER" ON "CONTAINER" ("CONTAINER_ID")
import { BindingTarget } from '@tweakpane/core'; export interface PresetObject { [key: string]: unknown; } /** * @hidden */ export declare function exportPresetJson(targets: BindingTarget[]): PresetObject; /** * @hidden */ export declare function importPresetJson(targets: BindingTarget[], preset: PresetObject):...
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #ifndef __FX_VER_H__ #define __FX_VER_H__ #include "../pal/pal.h" // Note: This is not SemVer (esp., in comparing pre-release part, fx_ver_t do...
using System; using System.Collections.Generic; using System.Text; using System.Xml.Linq; namespace Tiled { public class Tile { private XElement _xElement; public Tile(XElement xElement) { _xElement = xElement; } } }
function Get-CosmosDbAuthorizationHeadersFromContext { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [CosmosDB.Context] $Context, [Parameter(Mandatory = $true)] [Val...
#include "chainerx/dynamic_lib.h" #include <string> #include "chainerx/platform.h" namespace chainerx { void* DlOpen(const std::string& filename, int flags) { return platform::DlOpen(filename, flags); } void DlClose(void* handle) { platform::DlClose(handle); } } // namespace chainerx
Packages needed to run mkdocs and sub-packages used: ``` yay -S mkdocs mkdocs-material-pymdownx-extras mkdocs-material mkdocs-redirects mkdocs-minify-plugin mkdocs-mermaid2-plugin yay -S mermaid-cli ``` To serve the document (open local browser to see edits at localhost:8000) ``` mkdocs serve ```
package com.pandulapeter.beagle import com.pandulapeter.beagle.core.BeagleImplementation import com.pandulapeter.beagle.core.manager.UiManagerContract import com.pandulapeter.beagle.common.contracts.BeagleContract /** * View UI implementation to be used in internal builds. See [BeagleContract] for documentation. */...
Don’t forget to indicate when a scenario relies on JavaScript. ```ruby scenario "baking a cake", js: true do # ... end ``` [2014-01-29]
<?php namespace App\Http\Controllers; use App\Http\Requests\EntryStoreRequest; use App\Models\Adventure; use App\Models\Entry; use App\Models\Character; use App\Models\Item; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Inertia\Inertia; class DMEntryController extends Controller { /** ...
namespace :maintenance do desc 'rails tmp:clear log:clear # etc' task :purge, %(cache) => %i(environment) do |_task, args| rails_root = Rails.root Pry ColorPrinter.pp('clearing tmp/' => rails_root.join('tmp').to_s) Rake::Task('tmp:clear').invoke Pry ColorPrinter.pp('clearing log/' => rails_root.joi...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDictamenVehicularsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('dict...
using System; using System.Collections.Generic; using Case.NET.Parsing.Tokens; using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Case.NET.Test { [TestClass] public class CasedStringTest { public static IEnumerable<object[]> InvalidConstructorValues { ...
<!DOCTYPE html> <html> <head> </head> <body> @ViewData["TestData"] </body> </html>
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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 // // Unl...
import { Component, AfterViewInit } from "@angular/core"; import { BaseChart } from "./base-chart.component"; import { PieChart } from "@carbon/charts"; /** * Wrapper around `PieChart` in carbon charts library * * Most functions just call their equivalent from the chart library. */ @Component({ selector: "n-p...
import nltk from nltk.tag import DefaultTagger tag = DefaultTagger('NN') print(tag.tag(['Beautiful', 'morning']))
#!/usr/bin/env swipl :- initialization(main, main). main :- writeln("TPTP path ="), shell("echo $TPTP"), writeln("TESC path = "), shell("echo $TESC").
(ns landschaften.root-view (:require [reagent.core :as r] [re-frame.core :refer [subscribe, dispatch]] [landschaften.subs :as subs] [landschaften.events :as core-events] [clojure.spec.alpha :as s] [landschaften.view-specs :as ui-specs] [landschaf...
import { hooks as coreHooks } from '@kalisio/kdk/core.api' import { checkGroupsQuotas, updateEventTemplateResource } from '../../hooks' module.exports = { before: { all: [], find: [], get: [], create: [checkGroupsQuotas], update: [], patch: [], remove: [] }, after: { ...
# Need to create exploded war so we can reference the libraries (jar files) mvn -f ../pom.xml clean compile war:exploded