text
stringlengths
27
775k
package model import ( "github.com/SmallTianTian/dingtalk/model/taobao" "github.com/SmallTianTian/dingtalk/utils" ) func NewOapiV2UserListRequest() *OapiV2UserListRequest { return &OapiV2UserListRequest{} } type OapiV2UserListRequest struct { taobao.SimpleTaobaoRequest taobao.SimpleResponse Resp ...
--- layout: post title: tensorflow_Step3_1_crnn_baseoperations date: "2019-12-01 14:00:000" tags: [tensorflow, CRNN] --- ## 流程: ``` # -*- coding: utf-8 -*- """ @from:www.linerect.com @author: duimu @contact: duimu@qq.com @Created on: 2019/12/17 11:05 """ import tensorflow as tf import numpy as np from tensorf...
------------------------------------------------------------------------------- -- | -- module: Algo.Data.Heap -- -- Heap type constraints. {-# LANGUAGE DataKinds #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeFamilies #-} module Algo.Data.Heap where import Foundation im...
module Types where ------------------------------------------------------------------------------- -- CHATPER 3 START -- Thoughts: -- # Theres two "languages" to haskell, a function language and a type langauge -- # Polymorphism transcends OOP. The difference between OOP and FP is -- whether you use recursion or not...
module SiteSettingsMacros def site_email @site_email = begin site_setting = Optimadmin::SiteSetting.find_by(key: "Email") if site_setting site_setting.value else "support@optimised.today" end end end def site_name @site_name = begin site_setting = Optima...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package minersinstrument.ui; import java.awt.Frame; import javax.swing.JPanel; /** * * @author kopychenko */ public class AUniversalCloseDialog extends ADialog { public AUniversalCloseDialog(JPanel p, Frame par...
require 'carto/db/migration_helper' include Carto::Db::MigrationHelper migration( Proc.new do run "UPDATE users SET industry = 'Retail' WHERE industry = 'Apparel & Fashion'" run "UPDATE users SET industry = 'Banking and Financial Services' WHERE industry = 'Banking & Financial Services'" run "UPDATE use...
package ru.alexpanchenko.stater.plugin.visitors import org.objectweb.asm.AnnotationVisitor import org.objectweb.asm.FieldVisitor import ru.alexpanchenko.stater.plugin.StateFieldStorage import ru.alexpanchenko.stater.plugin.model.SaverField import ru.alexpanchenko.stater.plugin.model.StateType import ru.alexpanchenko.s...
require 'securerandom' require 'cardlet/cards/card' module Cardlet module Cards class FacetedQuestion < Card attr_accessor :prompt attr_reader :facets, :uuid, :tags def initialize(hash) @uuid = hash['uuid'] || SecureRandom.uuid @prompt = hash['prompt'] @facets = hash['facets'] @tags = hash...
class Permit < ActiveRecord::Base before_save :sanitize_agentphone, :create_contactphone @@disallowed_types = ['TableChair', 'Display'] def self.mass_create(permit_datas) permit_datas.each do |permit_data| unless @@disallowed_types.include?(permit_data[:permit_type]) num = Permit.where( ...
<?php namespace Rindow\NeuralNetworks\Model; use InvalidArgumentException; use UnexpectedValueException; use LogicException; use Rindow\NeuralNetworks\Support\GenericUtils; use Rindow\NeuralNetworks\Optimizer\Optimizer; use Rindow\NeuralNetworks\Layer\LayerBase; use Rindow\NeuralNetworks\Activation\Softmax; use Rindow...
2020年08月06日22时数据 Status: 200 1.吴亦凡背两米高玩偶走秀 微博热度:3570540 2.杭州杀妻案嫌疑人被批捕 微博热度:3458471 3.宋小女发文 微博热度:3367901 4.刘敏涛跳无价之姐的表情 微博热度:1889605 5.琉璃单方面与芒果TV解约 微博热度:1712906 6.2020第一场爱情电影 微博热度:1165274 7.家人回应吴春红获262万余元国家赔偿 微博热度:1010813 8.外交部回应美称将清除微信等中国APP 微博热度:996995 9.1万亿抗疫特别国债全部发行完毕 微博热度:994619 10.优酷爱奇艺因违法违规被处罚 ...
use machine::state::State; pub fn sflotu(_state: &mut State, _x: u8, _y: u8, _z: u8) { unimplemented!(); }
package it.unibo.oop.lab.mvcio2; /** * A very simple program using a graphical interface. * */ public final class SimpleGUIWithFileChooser { /* * TODO: Starting from the application in mvcio: * * 1) Add a JTextField and a button "Browse..." on the upper part of the * graphical interface. ...
#!/usr/bin/env bash BACKUP_FROM=$1 BACKUP_TO=$2 SLACK_WEBHOOK=$3 if [ -z "${BACKUP_FROM}" ] || [ ! -d "${BACKUP_FROM}" ]; then echo "Backup directory not found" exit 1 fi if [ -z "${BACKUP_TO}" ]; then echo "Backup to directory is required" exit 1 fi [[ "${BACKUP_FROM}" != */ ]] && BACKUP_FROM="${BA...
-- file: ch02/myDrop.hs myDrop :: Int -> [a] -> [a] myDrop n xs = if n <= 0 || null xs then xs else myDrop (n - 1) (tail xs) myDropGuard n xs | n <= 0 || null xs = xs | otherwise = myDropGuard (n - 1) (tail xs) niceDrop n xs | n <= 0 = xs niceDrop _ [] = [] niceDrop n (_:xs) ...
### Please refer to the [EditorConfig Code of Conduct](https://github.com/editorconfig/editorconfig/blob/master/CODE_OF_CONDUCT.md).
#!/bin/bash set -eu -o pipefail bare="${1:-}" mkdir repo ( cd repo git init -q git checkout -b main mkdir dir touch a b dir/c git add . git commit -q -m c1 echo hello >> a git commit -q -am c2 ) if [ "$bare" == "bare" ]; then git clone --bare --shared repo repo.git cd repo.git else cd repo f...
package Problem_17406; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static int[][] arr; static int[][] map; static int N; static int M; static int K; static int[][] rotate; static int answer = Integer.MAX_VALUE; static boolean...
class DirectPostsController < ApplicationController def new @post = Post.new end def create @post = Post.new(params.require(:post).permit(:title, :document, :image, :requires_document, documents_files: [])) if @post.save redirect_to [:normal, @post] else render :new e...
import React from 'react'; import {createMaterialBottomTabNavigator} from 'react-navigation-material-bottom-tabs'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import {MainQueueTab, MainSearchTab, MainGroupInfoTab} from '_scenes'; import {Colors, Spacing} from '_styles'; const MainNavigator = ...
$(document).ready(function () { if($('.error').length){ var $parent = $('.error').parent().parent().parent().parent().attr('id'); $('#'+$parent+' .data').addClass('hidden'); $('#'+$parent+' form').removeClass('hidden'); } $('body').on('click','a[data-action="update"]',function () { ...
<?php namespace App\Repositories; use App\Models\Comment; use Illuminate\Database\Eloquent\Model; class CommentRepository implements RepositoryInterface { public function find(int $id) { } public function findByTag(string $tag) { } public function query(array $filters) { } ...
n1 = int(input ('Digite um valor: ')) s1 = n1+1 a1 = n1-1 print(f'O antecessor de {n1} é {a1}, e seu sucessor é {s1}')
tag=1.2.0 go build -o ./build/kubeformat-darwin-amd64-${tag} github.com/zxcxyz/kubeformat env GOOS=linux GOARCH=amd64 go build -o ./build/kubeformat-linux-amd64-${tag} github.com/zxcxyz/kubeformat
#!/bin/sh # This script runs inside a job (create-test-root-job.yamlt), it sets up the top # level directory for this test that in turn is mounted as /shared by the # test's wl-pvc, wl-pv, wl-job, and wl-pod yamlt. # The 'acceptance_test_pv' directory it creates matches the directory # expected by the integration t...
<?php declare(strict_types=1); /** * Flextype (https://flextype.org) * Founded by Sergey Romanenko and maintained by Flextype Community. */ if (flextype('registry')->get('flextype.settings.entries.fields.registry.get.enabled')) { flextype('emitter')->addListener('onEntriesFetchSingleHasResult', static functio...
#pragma once #include <chrono> #include <iomanip> #include "../../helpers/include.cc" #include "../timespan/timespan.cc" namespace Index { struct TimePoint { protected: using StdChronoClock = std::chrono::high_resolution_clock; using StdChronoTimePoint = std::chrono::time_point<StdChronoC...
package noralba.tech.shopping.view import noralba.tech.shopping.domain.model.ShoppingList import noralba.tech.shopping.domain.usecase.CreateShoppingListUseCase import noralba.tech.shopping.domain.usecase.GetAllShoppingListUseCase import java.util.concurrent.Executor /** * TODO add description * * @author Santiago ...
package com.omega_r.libs.extensions.date import java.util.* fun Date.getAge(): Int { val birthday = Calendar.getInstance() birthday.time = this val today = Calendar.getInstance() var age = today.get(Calendar.YEAR) - birthday.get(Calendar.YEAR) if (today.get(Calendar.DAY_OF_YEAR) < birthday.get(Ca...
package app.userinterface.text.item; import java.util.List; import app.controller.ItemController; import app.todolist.item.Item; import app.userinterface.text.Menu; import app.userinterface.text.todolist.TodolistMenu; public class ItemMenu extends Menu { private ItemForm itemForm; private ItemController itemContro...
import React, { useRef, Suspense } from 'react'; import { Canvas as ThreeCanvas, useLoader, useFrame, ReactThreeFiber } from '@react-three/fiber'; import { Mesh, TextureLoader, RepeatWrapping } from 'three'; import { OrthographicCamera, Sphere } from '@react-three/drei'; import mapConfigs from '../../data/maps'; inte...
import 'dart:async'; import 'package:elementary/elementary.dart'; import 'package:profile/features/profile/screens/about_me_screen/about_me_screen.dart'; import 'package:profile/features/profile/service/profile_bloc/profile_bloc.dart'; import 'package:profile/features/profile/service/profile_bloc/profile_event.dart'; ...
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'version_py': '<(DEPTH)/build/util/version.py', 'version_path': '<(DEPTH)/chrome/VERSION', 'lastchange_path': '<(DEPTH)/bu...
# Jupyter Custom UI ## Requirements install jupyterthemes ``` python3 -m pip install --upgrade pip python3 -m pip install jupyter pip install --upgrade jupyterthemes ``` ## Steps - Change jupyter theme to grade3 ``` jt -t grade3 -T -N ``` - Replace its default css file open your jupyter configuration path, f...
// Problem : Greatest Common Factor // Author : timwilliam // Compiled : 07/09/2021 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> void print_array(int *array, int len){ int i; for(i = 0; i < len; i++) printf("%d ", array[i]); printf("\n"); ...
/* * Card_Test.cpp * * Created on: 02.02.2017 * Author: Stefan */ #include "Card_Test.h" void CardTest::Run_CreateCard_Face_DEATH() { EXPECT_DEATH(Card card("P","s"),""); // False face } void CardTest::Run_CreateCard_Suit_DEATH() { EXPECT_DEATH(Card card("A","l"),""); // False suit } void CardTest::Run_...
-- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2019-12-18 12:12:30.838 -- tables -- Table: Tokens CREATE TABLE Tokens ( ID integer NOT NULL CONSTRAINT Tokens_pk PRIMARY KEY, Token text NOT NULL, Response text NOT NULL, Hash text NOT NULL, HashVersion integer NOT NULL, ...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; extension ContextExtension on BuildContext { MediaQueryData get mediaQuery => MediaQuery.of(this); } extension MediaQueryExtension on BuildContext { double get getHeight => mediaQuery.size.height; double get getWidth => mediaQuery....
# layout ## dir - Type: `string` - Default: `src/layouts` 布局的目录设置 ## extensions - Type: `string[]` - Default: `['vue', 'js', 'ts', 'jsx', 'tsx']` 默认支持的文件类型. ## exclude - Type: `string[]` - Default: `[]` 默认会加载文件中需要排除的文件列表. 使用指南请[参考布局](/convue/guide/layouts)。
package roman // This is a port of the CPAN-package Roman, V1.23. // The original package was under the Artistic License. // Copyright (c) 2012 Stefan Schroeder. All rights reserved. // LICENSE is located here: http://golang.org/LICENSE import ( "errors" "strings" ) // IsRoman checks if the string is a valid Roma...
# frozen_string_literal: true class SpecialIssuesController < ApplicationController before_action :validate_access_to_appeal def create return record_not_found unless appeal if appeal.special_issue_list appeal.special_issue_list.update(special_issue_params) else appeal.special_issue_list ...
using Statsify.Aggregator.Http.Models; namespace Statsify.Aggregator.Http.Services { public interface IMetricService { /// <summary> /// Finde metrics by query string. /// </summary> /// <param name="query"></param> /// <returns>Metrics.</returns> Met...
package com.nguyen.polyglot.db.mapper import android.annotation.SuppressLint import com.nguyen.polyglot.db.entity.FeedCacheEntity import com.nguyen.polyglot.model.Feed import java.text.SimpleDateFormat import java.util.* object FeedMapper { @SuppressLint("SimpleDateFormat") fun mapToCacheEntity(feed: Feed): ...
package scalafix.docs import scala.meta.internal.semanticdb.Scala.Descriptor import scala.meta.internal.semanticdb.Scala.Symbols object SymbolInformationDocs { import scalafix.v1._ lazy val symbolInformationMethods: List[SymbolInformation] = { val info = PatchDocs.scalafixSymtab .info(Symbol("sc...
using Stepometer.Models; using Stepometer.Service.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Stepometer.Service.MockServices { public class FriendsMockService : IFriendsService { private List<FriendsModel> _friends; p...
WHICHGO_HOME=~/.whichgo mkdir -p $WHICHGO_HOME GOOGLE_GO_REPO=https://go.googlesource.com/go whichgo() { if [ -z "$1" ]; then echo "usage: whichgo list / install / use" return 0 fi subcommand=$1 shift case $subcommand in list) whichgo_list "$1" ;; install) whichgo_install...
--- title: "Monte Carlo Simulation of photon migration in 3D turbid media" collection: talks type: "Poster" permalink: /talks/2016-hpcposter-1 venue: "HPC Day 2016" date: 2012-03-01 location: "UMass Dartmouth, MA" --- [website](http://cscvr1.umassd.edu/news_hpcday2016.html)
import 'dart:io'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:path_provider/path_provider.dart'; import 'package:path/path.dart' as p; void main() => runApp(MyApp()); var defaultCacheManager = DefaultCacheManager(_getImagePath()); Future<Stri...
using CMS.UIControls; public partial class CMSModules_Integration_Controls_UI_Connectors_Edit : CMSAdminEditControl { /// <summary> /// Indicates if the control should perform the operations. /// </summary> public override bool StopProcessing { get { return base.StopPr...
@extends('backend.master') @section('title') Bike-List @endsection @section('content') <div class="row"> <div class="col-10 offset-1"> <h3 class="text-center mb-3 "> All of our authorized Bikes </h3> <a href="{{route('admin.bike.create')}}" class="btn btn-primary mb-3">Add sold Bike</a> @if(sess...
// 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 not...
<?php /** * Contains the Employee class. * * @copyright Copyright (c) 2018 Attila Fulop * @author Attila Fulop * @license MIT * @since 2018-11-17 * */ namespace Konekt\Krew\Models; use Illuminate\Database\Eloquent\Model; use Konekt\Krew\Contracts\Employee as EmployeeContract; class Employee ...
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:collection'; /// Creates a new [Option]. /// /// Since [Option] doesn't have a public con...
/* * (C) Copyright [2021-2022] Hewlett Packard Enterprise Development LP * * 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...
#https://linoxide.com/how-tos/change-linux-shell-prompt-with-different-colors/ # TODO Its probably not a good thing to defined this for none interactive shells #export PS1="[\\d \\t] \\u@\\h: \\w \\$ " export PS1="[\e[0;32m\d \t\e[m] \e[0;33m\u@\h\e[m: \w \$ "
@if (session('status')) <div class="alert alert-success"> {{ session('status')}} </div> @else <form data-toggle="validator" role="form" method="post" action="{{route("contact_save")}}"> {{ csrf_field() }} <div class="form-group"> <label for="inputName" class="control-label">Name</label> <input ...
// use winnow::winnowing::winnow; #[test] fn winnow_source_1() { assert!(true); // todo add winnow test }
unit DW.Biometric; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform Library } { ...
<?php namespace App\Http\Controllers\Dashboard; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class EmployeController extends Controller { public function liste() { return View('pages.dashboard.employe.liste'); } }
module CrashReporter module DSL module ClassMethods def capture_errors(*methods) methods.each do |method_name| unbound = self.instance_method(method_name) remove_method method_name # wrap given method in begin/rescue clause define_method method_name do ...
require "test_helper" class BusinessSubscriptionTest < ActiveSupport::TestCase include BusinessSubscription test "finding a plan by name" do assert_instance_of FullTime, BusinessSubscription.new("full_time") assert_instance_of Legacy, BusinessSubscription.new("legacy") assert_instance_of PartTime, Bus...
package com.example.instagramclone.activities import android.content.Intent import android.os.Bundle import android.util.Log import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import com.example.instagramclone.R import com.example.instagramclone.databindin...
import 'package:FlutterMind/utils/Log.dart'; import 'Operation.dart'; class History { List<Operation> undoList; List<Operation> redoList; History._privateConstructor() { _init(); } static History _instance = null; factory History() { if (_instance == null) { _instance = Hi...
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace app\v2\logic; use app\v1\logic\GroupLogic; /** * Description of SlienceLogic * * @author Sammy Guergachi <sguerg...
import * as moment from 'moment'; const absolute = (date: number): string => moment(date).format('MMM DD, YYYY, hh:mm a'); const relative = (date: number): string => moment(date).fromNow(); export default { absolute, relative }
const loginRedundant = ({ ctx }) => { if (!ctx) { throw new Error("Ctx is missing."); } ctx.reply("You are already logged in."); }; module.exports = loginRedundant;
{-# LANGUAGE OverloadedStrings #-} module Web.Scotty.Utils ( maybeNotFound , eitherNotFound , eitherBadRequest , err , ok , errNotFound , errBadRequest , okListResult , safeParam ) where import Network.HTTP.Types (Status, status400, status404) import Web.Scotty.Trans (ActionT...
--- title: Linux 下制作磁盘镜像 categories: [blog, linux] description: 记录的是随心所欲 keywords: linux, work, qemu --- # Linux 下制作虚拟软盘镜像 转载:http://wenix.blog.51cto.com/874806/364816 3.5寸1.44M软盘结构: - ​ 2面、80道/面、18扇区/道、512字节/扇区 - ​ 扇区总数=2面 X 80道/面 X 18扇区/道 = 2880扇区 - ​ 存储容量= 512字节/扇区X 2880扇区 = 1440 KB =1474560B 1. ...
import { GuildMember, Message, NewsChannel, TextBasedChannel, TextChannel } from "discord.js"; import { Hook } from "../lib/hook"; import Server from "../lib/server"; /** * Whenever a message is posted in a channel, it will open a thread for it. * Handles the draconian rules that power some channels where communicat...
namespace IntercityBusService.Data { public static class DemoDbInitializer { public static void Initialize(DatabaseContext context) { context.Database.EnsureDeleted(); context.Database.EnsureCreated(); context.Users.AddRange(DemoData.Users); ...
// Copyright 2019 The FlutterCandies author. All rights reserved. // Use of this source code is governed by an Apache license that can be found // in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter/painting.dart'; class C { // static const Color themeColor = Color(0xff00bc56); // W...
import * as find_language_from_key_pipe from "app/shared/language/find-language-from-key.pipe" // @ponicode describe("transform", () => { let inst: any beforeEach(() => { inst = new find_language_from_key_pipe.FindLanguageFromKeyPipe() }) test("0", () => { let result: any = inst.transf...
import { Currency } from 'moonwalkerswap-sdk-v2' import React from 'react' import styled from 'styled-components' import CurrencyLogo from '../CurrencyLogo' const Wrapper = styled.div<{ margin: boolean; sizeraw: number }>` position: relative; display: flex; flex-direction: row; margin-right: ${({ sizeraw, marg...
--- name: New Device Support about: New device that wants to be supported title: '' labels: enhancement, help wanted assignees: '' --- **Device info (please complete the following information, which can be found in [log](https://github.com/tuya/tuya-homebridge/wiki/How-To-Get-Logs)):** **request path = /v1.0/iot-01/...
# frozen_string_literal: true module Timekit class Project # Client class for the project resource class Client < Timekit::Client API_PATH = '/projects' def list get(API_PATH) end def show(id) get(API_PATH + '/' + id) end # TODO: skipped because not need...
#!/bin/bash if [ ! -f Eigen/Core ]; then echo "Only run this script from the root source of eigen!!! 3rdparty/eigen3/" exit 1 fi find . \( ! -regex '.*/\..*' \) -type f | xargs grep "\\defgroup" | cut -f 1 -d ':' | xargs perl -i -p -e "s/defgroup (.*)/defgroup \1 \n * \\\\ingroup eigen_grp/g" perl -i -p -e "s/d...
# Delinkcious A delicious-like link management platform implemented using Go microservices # Directory Structure ## pkg The core logic is implemented by libraries in this directory ## svc The microservices are in this directory. They use the excellent [gokit](https://gokit.io) microservice framework. ## cmd Va...
<?php namespace DOIWeb\Fields; /** * Class Filler * @author yourname */ class Filler extends FieldAbstract { protected $startPosition; protected $length; protected $value; protected $key = 'filler'; /** * @param $startPosition * @param $length */ public function __construct(...
#!/usr/bin/python # -*- coding: utf-8 -*- """ BLIF2GRAPH: Generates a graph from a BLIF file. """ import sys import argparse try: from ._version import __version__ # noqa: F401 import blif2graph.fsm2graph as fsm2graph import blif2graph.lgate2graph as lgate2graph except ImportError: from...
import { set } from 'lodash' import ReactDOM from 'react-dom' import React from 'react' import { StyleSheetManager } from 'styled-components' import { DIR, SC } from 'constantz' import { lastItem } from 'utils' import { EditorContainer } from 'containers' import copyNodeText from './copyNodeText' import postProcessFi...
import 'package:revolt/src/models/attachment.dart'; import 'package:revolt/src/models/channel.dart'; import 'package:revolt/src/models/server.dart'; import 'package:revolt/src/models/ulid.dart'; import 'package:revolt/src/utils/enum.dart'; /// Channel invite class ChannelInvite { /// Invite code final String code;...
package ch.leadrian.samp.kamp.core.api.command import ch.leadrian.samp.kamp.core.api.text.TextKey import ch.leadrian.samp.kamp.core.api.text.TextProvider import java.util.Locale data class CommandDescription internal constructor( private val text: String? = null, private val textKey: TextKey? = null, ...
package com.ruslan.hlushan.network.api import android.content.Context import com.ruslan.hlushan.core.config.app.InitAppConfig import com.ruslan.hlushan.core.logger.api.AppLogger import okhttp3.OkHttpClient import retrofit2.Retrofit interface NetworkBuildHelper { fun provideRetrofitBuilder(okHttpClient: OkHttpCli...
package com.charlesmuchene.kotlin // Pojo with getters, setters, equals(), hashCode(), // toString() and copy() in a single line: data class Student(val name: String, val age: Int, val address: String)
package typingsSlinky.fhir.fhir import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * A series of required setup operations before tests are executed */ @js.native trait Te...
package aula2 import ( "math" "testing" ) func Test32FahrenheitToCelsius_Expected0_success(t *testing.T) { conversion := math.Round(Ftoc(32)) if conversion != 0 { t.Errorf("calc of celsius was incorrect, got : %v, want: 0.", conversion) } else { t.Logf("calc was correct, got : %v, want: 0.", conversion) } }...
<div class="tab-pane" id="tabs-5" role="tabpanel"> <div class="row"> <div class="comments-form border-box"> <h3 class="title-normal">This content for Project photo </h3> </div> </div> </div>
pub use array_contains_properties::*; pub use array_get_by_index_properties::*; pub use array_length_properties::*; pub use array_pop_properties::*; pub use array_push_properties::*; pub use array_reverse_properties::*; pub use load_json_properties::*; pub use object_get_property_properties::*; pub use object_keys_prop...
/* SQLyog Professional v12.4.1 (64 bit) MySQL - 5.7.24 : Database - search_engine ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
class Images { Images._(); static const String logo = "asset/logo.png"; static const String discord = "https://cdn.jsdelivr.net/npm/simple-icons@3.12.2/icons/discord.svg"; static const String instagram = "https://cdn.jsdelivr.net/npm/simple-icons@3.12.2/icons/instagram.svg"; static const String...
using AutoMapper; using SHS.Domain.Core.Interfaces; using SHS.Domain.Core.Tags; namespace SHS.Application.TagAppService.Dtos { [AutoMap(typeof(Tag))] public class QueryTagFilter : QueryPageInput { public string name { get; set; } } }
import {Service} from "../../src/decorators/Service"; @Service() export class Wheel { count = 4; }
using Nelibur.ObjectMapper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Auth.Sample.Domain; using Auth.Sample.Domain.Dto; using System.ComponentModel; namespace Auth.Sample.Domain.Dto.Mapping { public class TinyMapperConfig { ...
<?php /** * Created by PhpStorm. * User: wangsl * Date: 2018/04/20 * Time: 10:41 */ namespace App\Helper; use Excel; class ExcelHelper { static public function excelToArray($file_url) { $filePath = iconv('UTF-8', 'GBK', $file_url); $a = Excel::load($filePath, function ($reader) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Niconicome.Models.Domain.Utils.Event; using NUnit.Framework; namespace NiconicomeTest.Utils.Events { class EventManagerUnitTest { private IEventManager? manager; [SetUp] ...
pens_pack_price = 5.80 markers_pack_price = 7.20 whiteboard_cleaner_per_liter_price = 1.20 amount_pen_packs = int(input("Enter the amount of pen packs: ")) amount_marker_packs = int(input("Enter the amount of marker packs: ")) whiteboard_cleaner_liters = int(input("Enter the ampunt of liters of whiteboard cleaner: "))...
import json from yarl import URL OPENAPI_20_V1_TEST_SCHEMA = { "parameters": [ {"in": "query", "name": "bool_field", "required": False, "type": "boolean"}, { "format": "int32", "in": "query", "name": "id", "required": False, "type": "inte...
/* DONALD + ROBERT = GERALD in SICStus Prolog. Classic alphametic problem. Compare with the following models: * Comet : http://www.hakank.org/comet/donald_gerald.co * ECLiPSe: http://www.hakank.org/eclipse/donald_gerald.ecl Model created by Hakan Kjellerstrand, hakank@bonetmail.com See also my SICStu...
<?php namespace Cvuorinen\RaspiPHPant; use Aura\Cli\Stdio; use Cvuorinen\Raspicam\Raspistill; use Twitter; use TwitterException; class RaspiPHPantCommand { /** * Twitter char limit when tweet includes image */ const CHAR_LIMIT = 116; /** * @var Stdio */ private $stdio; /** ...