text
stringlengths
27
775k
<?php namespace App\Http\Controllers; use App\Models\Price; use App\Models\Appointment; use Illuminate\Support\Facades\Auth; use Jenssegers\Date\Date; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; class BookController extends Controller { /** * Show calendar to select appointment date. ...
Style of list container, add button and remove buttons can be customized by providing custom styles. This example demonstrates a custom inspector with custom styles which are based upon the default styles. > > **Tip** - Another option is to subclass `ReorderableListControl` and initialise custom > styles there instea...
package main import ( "bq-pipeline/pkg/common/log" "bq-pipeline/pkg/email" "bq-pipeline/pkg/handle" signer "bq-pipeline/pkg/infrastructure/sign" "bq-pipeline/pkg/infrastructure/slack" "bq-pipeline/pkg/infrastructure/ssm" "context" "strconv" "time" "github.com/aws/aws-lambda-go/lambda" ) func handler(ctx co...
namespace ShoppingCartService.ShoppingCart { using System.Threading.Tasks; using ShoppingCartService.Models.Dto; public interface IShoppingCartStore { Task<ShoppingCart> Get(int userId); Task Save(ShoppingCart shoppingCart); } }
// +build !ignore_autogenerated /* Copyright The Kubernetes Authors. 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 l...
#!/usr/bin/env bash # Installs wild-truffle and its targets on Travis. # Hack: `chai-bignumber` is not recognizing `truffle` bignumbers # as instances unless we do this post install for Zeppelin. patchBigNumber(){ npm uninstall bignumber.js npm uninstall chai-bignumber npm install bignumber.js npm install cha...
from pathlib import Path import numpy as np import pandas as pd def plot_accuracy_comparison(): data_root = "results" input_file_names = [ "confusion_matrix_HoughTransform.csv", "confusion_matrix_MultiClassSynthetic400SyntheticValidation400Detections.csv", ] method_labels = ["Hough t...
# User Resource Use this data source to access information about existing Logz.io users. * Learn more about available [APIs for managing Logz.io users](https://docs.logz.io/api/#tag/Manage-users) ## Example Usage ```hcl resource "logzio_user" "my_user" { username = "test.user@this.test" fullname = "test user" ...
-- Crie uma coluna “em atividade” para os médicos, indicando se ele ainda está atuando no hospital ou não. alter table MEDICO add column em_atividade bool; -- Crie script para atualizar ao menos dois médicos como inativos e os demais em atividade. UPDATE medico SET em_atividade = 1 where id between 16 and 25; UPDATE ...
(ns clojupyter (:require [clojupyter.misc.mime-convertible :as mmc] [clojure.java.io :as io]) (:import javax.imageio.ImageIO)) (def license (->> (io/resource "clojupyter/assets/license.txt") slurp (mmc/render-mime :text/plain))) (def logo (->> (io/resource "clojupyter/assets/logo-350...
import { BaseModifier, registerModifier } from "../../../lib/dota_ts_adapter"; @registerModifier() export class modifier_reimagined_sven_great_cleave_epic_cleave_armor_reduction extends BaseModifier { // Modifier properties caster: CDOTA_BaseNPC = this.GetCaster()!; ability: CDOTABaseAbility = this.GetAbil...
-- file:alter_table.sql ln:240 expect:true ALTER TABLE constraint_rename_test ADD CONSTRAINT con2 CHECK (b > 0) NO INHERIT
using System; using Todo.Web.Entities; namespace Todo.Web.Extensions { public static class HumanizerExtensions { public static string Humanize(this DateTime dateTime) { var dayDifference = (dateTime.Date - DateTime.Today).Days; if (dayDifference < 0) ...
// // DryGoogleUser.h // DryGoogle // // Created by Ruiying Duan on 2019/6/4. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface DryGoogleUser : NSObject @property (nonatomic, readwrite, nonnull, copy) NSString *userID; @property (nonatomic, readwrite, nonnull, copy) NSString *email; @proper...
/// <reference types="node" /> /** * @type angle - An angle is measured in degrees, 0 <= angle < 360 */ export declare type angle = number; export interface TranslationError { message: string; } export interface WarResult { buffer: Buffer; errors?: TranslationError[]; } export interface JsonRe...
/* Refer to https://github.com/OleksiyRudenko/a-tiny-JS-world for the task details Complete the below for code reviewers' convenience: Code repository: _put repo URL here_ Web app: _put project's github pages URL here_ */ // ======== OBJECTS DEFINITIONS ======== // Define your objects here class Creature...
-- @testpoint:opengauss关键字login(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists login; create database login; drop database login; --关键字带双引号-成功 drop database if exists "login"; create database "login"; drop database "login"; --关键字带单引号-合理报错 drop database if exists 'login'; create database 'login'; --关键字带反引号-合理报错 d...
# encoding: utf-8 require 'puppetlabs_spec_helper/module_spec_helper' fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures')) RSpec.configure do |c| c.module_path = File.join(fixture_path, 'modules') c.manifest_dir = File.join(fixture_path, 'manifests') end # Helper function to expect a class to ...
import * as OPI from 'object-path-immutable' import React from 'react' import { animated, SpringValue } from 'react-spring' import utils from '../../../../../utils/utils' import { FlexRow, SquareButton, Icn, UtopiaTheme, InspectorSubsectionHeader, InspectorSectionIcons, } from '../../../../../uuiui' import ...
#!/bin/bash # Created by Robin Rowe 2019/7/15 # License open source MIT #/c/code/github/libunistd/build/win64/libuuid/Debug/libuuid.lib #/c/code/github/libunistd/build/win64/lmdb/Debug/liblmdb.lib #/c/code/github/libunistd/build/win64/portable/Debug/libportable.lib #/c/code/github/libunistd/build/win64/regex/Debug/lib...
// GROOVE: GRaphs for Object Oriented VErification // Copyright 2003--2007 University of Twente // 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...
Rails.application.routes.draw do # Routes - Devise (automatically created) devise_for :users # new_user_session GET /users/sign_in(.:format) devise/sessions#new # user_session POST /users/sign_in(.:format) devise/sessions#create # destroy_user_session DELETE /users/si...
class AddConstraintsToSectionExtras < ActiveRecord::Migration def up # make extra_id NOT NULL & add foreign key constraint add_index :section_extras, :extra_id execute <<-SQL WITH section_extras_to_delete AS ( SELECT * FROM section_extras EXCEPT SELECT section_extras.* ...
import { PageBase } from './page' export class RecordOutcomePage extends PageBase { get continueButton() { return cy.get('button[data-qa="wizard/continue-button"]') } get landingPageContinueButton() { return cy.get('[data-qa="wizard/continue"]') } get backLink() { return cy.get('.govuk-back-link...
const { Kafka } = require('kafkajs') const kafka = new Kafka({ clientId: 'my-app', brokers: ['kafka1:9092', 'kafka2:9092'] })
package topo_test import ( "testing" "github.com/plombardi89/topo" "github.com/stretchr/testify/assert" ) func TestGraph(t *testing.T) { g := topo.NewGraph() g.PutNode("a") g.PutNode("b") g.PutNodes("c", "d", "e", "f") if assert.Equal(t, []string{"a", "b", "c", "d", "e", "f"}, g.Nodes()) { assert.True(t,...
#!/usr/bin/env bash # Enable running script from any location cd "$( dirname "${BASH_SOURCE[0]}" )" PATH="$(pwd)/drivers:${PATH}" # Just run it now, adding properties to the classpath java "${@}" -classpath "properties/:lib/*" "uk.co.baconi.substeps.cli.SubstepsCommandLineRunner"
<?php /** * Rend * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.rendframework.com/license.html * If you did not receive a copy of the license and are unable to * obtai...
import { ConflictException } from '@nestjs/common'; import { EntityType } from '@dark-rush-photography/shared/types'; const entityTypeNewImagesFolderNameMap = new Map< EntityType, string | undefined >([ [EntityType.About, 'images'], [EntityType.BestOf, 'best-37'], [EntityType.Destination, 'images'], [Enti...
<?php /** * Created by PhpStorm. * User: 邹修辉 zouxiuhui@vchangyi.com * Date: 2019/1/3 * Time: 16:58 */ namespace App\Http\Controllers\User; use App\Http\Controllers\Controller; use App\User; use Illuminate\Http\Request; use Translate; class UserController extends Controller { public function index() { ...
import { Component, ViewChild } from '@angular/core'; import { WaiterService } from '../../services/waiter.service'; import { STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper'; import { ReceiptItem } from 'src/modules/app/models/ReceiptItem'; import { MdbModalRef, MdbModalService } from 'mdb-angular-ui-kit/modal'; i...
package net.binggl.mydms.features.upload.entity import java.time.LocalDateTime import javax.persistence.Column import javax.persistence.Entity import javax.persistence.Id import javax.persistence.Table @Entity @Table(name = "UPLOADS") data class UploadEntity( @Id @Column(name = "id") val id: ...
--- name: Bug report about: Create a report to help us improve title: bugfix labels: bug assignees: jeonsohyeon --- **발생 상황** **기대 결과** **발생 환경** [] PC - 발생 브라우저 [] MOBILE - 기기 이름 / 버전 - [] 안드로이드 - [] iOS **Screenshots** 스크린샷 존재할 경우 첨부
module SynthControl using Dates, DataFrames, Optim, LinearAlgebra, RecipesBase, Parameters import CSV export TreatmentPanel, SynthControlModel, fit!, isfitted, load_brexit, load_germany, load_basque, load_smoking include("treatmentpanel.jl") include("synthcontrolmodels.jl") include("plotrecipes.jl") include("load_da...
// tslint:disable:no-unused-expression import * as chai from 'chai'; import {KeycloakAdminClient} from '../src/client'; import {credentials} from './constants'; import faker from 'faker'; import ClientRepresentation from '../src/defs/clientRepresentation'; import ProtocolMapperRepresentation from '../src/defs/protocolM...
const Promise = require('bluebird') const bcrypt = Promise.promisifyAll(require('bcrypt-nodejs')) const mongoose = require('mongoose') const config = require('../config/config') const jwt = require('jsonwebtoken') const crypto = require('crypto') const mime = require('mime') const fs = require('fs') const sharp = requi...
package org.learning; import java.sql.*; /** * Created by Zdenca on 5/24/2017. */ public class JDBCUpdate { public static String title; public static void main(String[] argv) { try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch (ClassNotFoundException e) { System.ou...
package org.theeuropeanlibrary.hera.rest.administration; //TODO: move to HERA-COMMON /** * PathConstants * */ public interface ParamConstants { // resource paths static final String PROVIDERS = "data-providers"; static final String DATASETS = "data-sets"; // path parameter names static final ...
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Authors: Wei Chen <Wei.Chen@arm.com> * Jianyong Wu <Jianyong.Wu@arm.com> * * Copyright (c) 2018, Arm Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
import React from 'react'; import { cleanup, render, RenderResult } from '@testing-library/react'; import ProgressBar from './ProgressBar'; describe('Button', (): void => { afterEach(cleanup); const ProgressBarSteps = [ { id: 'a', label: 'Label A', }, { ...
package net.wrap_trap.goju import org.scalatest.Matchers import org.scalatest.FlatSpec /** * goju: HanoiDB(LSM-trees (Log-Structured Merge Trees) Indexed Storage) clone * Copyright (c) 2016 Masayuki Takahashi * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */...
import { Component, OnInit, ViewChild } from '@angular/core'; import { AssetState, NeonService, ChromeService, GlobalService, } from '@/app/core'; import { ActivatedRoute, Router } from '@angular/router'; import { NEO, Balance, GAS, Asset } from '@/models/models'; import { PopupTxPageComponent } from '@...
#!/bin/sh # install nauty + Traces from Brendan McKay and Adolfo Piperno's site set -ex cd /tmp wget --no-check-certificate http://pallini.di.uniroma1.it/nauty25r9.tar.gz -O /tmp/nauty25r9.tar.gz tar -xzvf nauty25r9.tar.gz cd nauty25r9 && ./configure && make sudo cp dreadnaut /usr/local/bin
namespace CarBatteries.Models.Battery { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; public enum BatteriesSorting { Brand = 0, Capacity = 1, Technology = 2 } }
<?php function isActivePage($name): string { return CURRENT_PAGE === $name ? 'class="active"' : ''; }
#!/usr/bin/env bash set -eo pipefail : ${VERS:=master} URL_PATH=archive/ if [[ VERS -ne master ]]; then URL_PATH=archive/refs/tags/v fi # Edit this line to clone your branch, if you are modifying protobuf files curl -qL "https://github.com/tendermint/spec/${URL_PATH}${VERS}.tar.gz" | tar -xjf - spec-"$VERS"/prot...
""" All the scikit learn pipeline functionality and classes used in the project are kept here. """ import os import pandas as pd import numpy as np from sklearn.pipeline import Pipeline from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import StandardScaler, Imputer from sklearn.neigh...
use std::rc::Rc; use crate::prelude::*; use async_trait::async_trait; use bounce::query::{Query, QueryResult}; use bounce::BounceStates; use futures::TryFutureExt; use super::QueryError; use messages::{Replies, Response}; use super::BASE_URL; // #[async_trait(?Send)] // pub trait Query: PartialEq { // type Inp...
// Copyright 2021 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/objects/swiss-name-dictionary-inl.h" #include "test/cctest/cctest.h" #include "test/cctest/test-swiss-name-dictionary-infra.h" #include "t...
module ViewTrackable extend ActiveSupport::Concern included do scope :viewed, -> { where.not viewed_at: nil } scope :unviewed, -> { where viewed_at: nil } end def viewed! if viewed_at.nil? update_column(:viewed_at, DateTime.now) end end def viewed? viewed_at.present? end end
# Portfolio 2016 ## My portfolio This is just a portfolio I'm building as I play with web development.
 using Google.Protobuf.WellKnownTypes; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace Octolamp.Contracts.Extensions { public static class PrimitiveTypeExtensions { public static Timestamp ToProtoDateTim...
import Data.List (sortBy) largestPalindrome :: Int -> Int largestPalindrome x = let l = [x,x-1..0] product = sortBy (flip compare) [i * j | i <- l, j <- l] fn (y:ys) | show y == (reverse . show) y = y | otherwise = fn ys in fn product -- largestPalindrome 99 == 9009 --...
import React from 'react'; import api from '../../api'; const { Provider, Consumer } = React.createContext(); export class UserProvider extends React.Component { state = { user: null, isLogged: !!getAccessToken() } async componentDidMount() { const currentToken = getAccessToken(); if (currentT...
# frozen_string_literal: true require 'rspec' require_relative '../cart' require_relative '../main' describe Cart do before do @cart = Cart.new end context 'when item A, B, C added to cart' do before do @cart.scan(ITEM_1) @cart.scan(ITEM_2) @cart.scan(ITEM_3) end it 'contains...
<?php /** * Base: wpdmpro * Developer: shahjada * Team: W3 Eden * Date: 2019-08-05 16:16 */ if(!defined("ABSPATH")) die(); ?> ok
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.Quantum.Simulation.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit.Abstractions; using Xunit.Sdk; namespace Microsoft.Q...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends CI_Controller{ function __construct() { parent::__construct(); $this->load->model('login_model'); $this->load->library('session'); } function index(){ $this->load->vie...
package io.isomarcte.sbt.version.scheme.enforcer.core import io.isomarcte.sbt.version.scheme.enforcer.core.OrphanInstances._ import io.isomarcte.sbt.version.scheme.enforcer.core.SafeEquals._ import org.scalacheck.Prop._ import org.scalacheck._ final class StrictVersionProperties extends Properties("StrictVersion Prop...
package config import ( "fmt" "os" "path/filepath" ) type config struct { General general Authentication authentication Database database Relay relay } type general struct { Version string Port int } type authentication struct { User string Password string } type database str...
;; when a call is made to a wur function, taint the result (defmethod bap:warn-unused-result/introduce (taint) (dict-add 'warn-unused-results/taints taint (incident-location))) ;; or used in an external function (defmethod bap:warn-unused-result/sanitize (taint) (dict-del 'warn-unused-resul...
class ItemList < ActiveRecord::Base belongs_to :group belongs_to :fix_group ,foreign_key: 'fix_group_id' has_many :item_list_sub_items, dependent: :destroy has_many :sub_items, :through => :item_list_sub_items accepts_nested_attributes_for :item_list_sub_items end
package proxyproto import "encoding/json" type ResponseDecoder interface { DecodeConnectResponse(data []byte) (*ConnectResponse, error) DecodeRefreshResponse(data []byte) (*RefreshResponse, error) DecodeRPCResponse(data []byte) (*RPCResponse, error) DecodeSubscribeResponse(data []byte) (*SubscribeResponse, error)...
class Assignment < ActiveRecord::Base include AttributeNormalizer belongs_to :visitor, required: true belongs_to :split, required: true belongs_to :bulk_assignment, required: false belongs_to :visitor_supersession, required: false has_many :previous_assignments has_many :variant_details, through: :split...
package com.example.powerincode.popularmovies.common.views; import android.content.Context; import android.content.res.TypedArray; import android.support.annotation.AttrRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.StyleableRes; import and...
package eventstore import "encoding/json" // Event an event store record type Event struct { ID string `json:"id"` Version int64 `json:"version"` Type string `json:"type"` Timestamp int64 `json:"timestamp"` Data *json.RawMessage `json:"data,omitempty"`...
python predict.py pre-trained/model_best.pth.tar data/QMOF --print-freq 1 > cgcnn_predict.out
// $DENO_STD_VERSION = 0.88.0 export { createHash } from 'https://deno.land/std@0.99.0/hash/mod.ts'
import { Request } from './_types' /** * Recursively merge requests */ const merge = <RequestEx extends Request>(request: RequestEx, modify: Partial<Request>) => { const result = { ...request, ...modify } for (const key in modify) { if ( modify[key] && request[key] && typeof modify[key] ==...
#!/usr/bin/env bash # oss.sonatype.org echo -n oss.sonatype.org Username: read -e username echo -n oss.sonatype.org Password: read -s password echo ./gradlew uploadArchives\ -PossrhUsername=${username}\ -PossrhPassword=${password}\ -PnexusUsername=${username}\ -PnexusPassword=${password...
package main.java.com.mquinn.wispassist.planning.networking.network; public interface IAdjacencyMatrixStrategy { /** * Interface for adjacency matrix calculator classes * * @param network * @param print * @return */ int[][] calcAdjacencyMatrix(Network network, boolean print); }
import Base from './base'; import Configuration from '../configuration'; const NAME = 'network interface'; export default class Interface extends Base { constructor() { super(NAME); } async check(configuration: Configuration): Promise<boolean> { return !!configuration.address; } }
import sys def is_exit_confirmed(): print('>>> Are you sure? y/n') response = input() return response == 'y' def execute_command(command): if command == 'list': print(">>> Nothing to list") # sys.exit() # return elif command == 'foo': print(">>> OOPS! Unknown command") elif command == 'exit': if is_e...
#ifndef SORBET_PARSER_PARSER_H #define SORBET_PARSER_PARSER_H #include "Node.h" namespace sorbet::parser { class Parser final { public: struct Settings { bool traceLexer : 1; bool traceParser : 1; bool indentationAware : 1; Settings() : traceLexer(false), traceParser(false), inde...
require 'fibonacci_heap/node' module FibonacciHeap RSpec.describe Node do describe '#next' do it 'is initialized to itself by default' do node = described_class.new('foo') expect(node.next).to eq(node) end end describe '#prev' do it 'is initialized to itself by default...
<?php namespace Everyday\CommonQuill\Block\Renderer; use Everyday\QuillDelta\DeltaOp; use InvalidArgumentException; use League\CommonMark\Extension\CommonMark\Node\Block\FencedCode; use League\CommonMark\Node\Node; use League\CommonMark\Renderer\ChildNodeRendererInterface; use League\CommonMark\Renderer\NodeRendererI...
package init import ( "fmt" "log" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/ethclient" ) func AlreadyInit(client ethclient.Client, instance interface { AlreadyInit(b *bind.CallOpts) (bool, error) }, name string) { alreadyInit, err := instance.AlreadyInit(&bind.CallOpt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Terraria.ModLoader; namespace GearonArsenalMod.Content.Item { public class PatchedHammer : ModItem { public override void SetStaticDefaults() { DisplayName.SetD...
# Future `To be released`\ \ Features: - formatDatePart() # v0.1.0 `2021-04-13`\ \ Initial public release. Features: - capitalizeFirstLetter() - compareBooleans() - compareDates() - compareNumbers() - compareNumbersAlike() - compareStrings() - compareStringsFactory() - formatDate() - formatDateToISO() - formatIban() ...
#!/bin/sh # ------------------------------------------------------------------ # [Author] Nafeu Nasir # Run chrome kiosk for rpi # ------------------------------------------------------------------ BASEDIR=$(dirname "$0") activate_kiosk(){ sleep 5 export DISPLAY=:0.0 chromium-browser --kiosk http://loc...
/* * Copyright 2016 Davide Maestroni * * 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 agree...
import CloudFormationsRight from "../utils/CloudFormationsRight"; import cloudOne from "../images/clouds/cloudOne.svg"; import cloudThree from "../images/clouds/cloudThree.svg"; import cloudFive from "../images/clouds/cloudFive.svg"; describe("CloudFormationsRight", () => { it("should return an array which contains ...
#!/bin/bash set -e cd $(dirname "${BASH_SOURCE[0]}") cd .. jazzy -g https://github.com/tidwall/Safe -o docsb --skip-undocumented -a "Josh Baker" -m "Safe" -u "http://github.com/tidwall" echo ".nav-group-name a[href=\"Extensions.html\"] { display: none; }" >> docsb/css/jazzy.css echo ".nav-group-name a[href=\"Extensi...
//! Methods for dumping serializable structs to a compressed binary format //! These are used to load and store the dumps used for fast startup times. //! //! Currently syntect serializes `SyntaxSet` structs with `dump_to_file` //! into `.packdump` files and likewise `ThemeSet` structs to `.themedump` files. //! //! Yo...
/** * @file 处理 swan时的key * @author zhoudan03 * @date 2018/9/17 */ module.exports = function (attrs, name, tplOpts) { let {logger, file} = tplOpts; logger.warn(`${file.path}, swan is not support with :key`); delete attrs[':key']; };
<?php namespace App\Http\Controllers; use App\Models\Books; use Illuminate\Http\Request; class Categories extends Controller { public function categoryView($id){ $categoryDetails = Books::where('category_id',$id)->get(); return view('categoryDetails',compact('categoryDetails')); } }
# Detailed query logging We want to provide a configurable feature that gives a detailed log of how the queries are treated by Heroic. * **Status** Implemented * **Author** John-John Tedro <udoprog@spotify.com>, Gabriel Gerhardsson <gabrielg@spotify.com>, Martin Parm <parmus@spotify.com> * **PR** htt...
// ========================================================================== // // File : hwlib-graphics-image.hpp // Part of : C++ hwlib library for close-to-the-hardware OO programming // Copyright : wouter@voti.nl 2017-2019 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying...
# frozen_string_literal: true require 'spec_helper' require Rails.root.join('db', 'migrate', '20190325080727_truncate_user_fullname.rb') RSpec.describe TruncateUserFullname do let(:users) { table(:users) } let(:user_short) { create_user(name: 'abc', email: 'test_short@example.com') } let(:user_long) { create_u...
package com.hjcrm.publics.exception; public class DaoException extends RuntimeException { protected Throwable e; public DaoException() { super(); } public DaoException(String message) { super(message); } public DaoException(Throwable e) { this.e = e; } public Throwable getE() { return e; } publi...
/* Copyright 2021, Milkdown by Mirone. */ import React from 'react'; export const Paragraph: React.FC = ({ children }) => <div className="react-renderer paragraph">{children}</div>;
# 使用 HBuildX、UniApp 和 TypeScript 的项目模板 项目转到 TS 以后,基本就没有使用过 Js 了。。 Our project convert to Typescript, so i use javascript seldom. 所以下面的所有代码都使用 TS 作为说明; (PS.,我的项目的 ts 和 vue 是分开的)。 Our project split the typescript file and the vue component file. 2019-08-27. **临时解决 2019-08-26 的问题** Cannot transfer get met...
// Given a string S, we can transform every letter individually to // be lowercase or uppercase to create another string. // Return a list of all possible strings we could create. // Examples: // Input: S = "a1b2" // Output: ["a1b2", "a1B2", "A1b2", "A1B2"] // Input: S = "3z4" // Output: ["3z4", "3Z4"] // Input: S =...
using System; using System.Collections.Generic; using System.Dynamic; using System.Reflection; using System.Threading; namespace PPnetwork { /// <summary> /// Base for Descriptors /// </summary> /// <typeparam name="OrderHandlerBase">Order Handler base type, e.g. IConnection</typeparam> /// <typeparam name="Orde...
FactoryBot.define do factory :student_staff_assignment do student staff start_date { Date.current } end end
/* * 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 may ...
const express = require('express'); const router = express.Router(); const request = require('request'); require('dotenv').config(); router.get('/stores', (req, res, next) => { // Send request to the lcboapi with an auth key. request({ uri: 'http://lcboapi.com/stores', headers: { Authorizat...
package tasks import ( "encoding/json" "github.com/merico-dev/lake/plugins/core" "github.com/merico-dev/lake/plugins/helper" "github.com/merico-dev/lake/plugins/jira/models" "github.com/merico-dev/lake/plugins/jira/tasks/apiv2models" ) var _ core.SubTaskEntryPoint = ExtractChangelogs func ExtractChangelogs(tas...
module Shoulda # :nodoc: module ActionController # :nodoc: module Matchers # Ensures that the controller assigned to the named instance variable. # # Options: # * <tt>with_kind_of</tt> - The expected class of the instance variable # being checked. # * <tt>with</tt> - The val...
<?php /** * Scabbia2 PHP Framework Code * https://github.com/eserozvataf/scabbia2 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @link https://github.com/eserozvataf/scabbia2-fw for the canonical source repository * @copy...