text
stringlengths
27
775k
using HospitalLibrary.MedicalRecords.Repository.Repository.Interface; using HospitalAPI.DTO; using HospitalAPI.Validation; using HospitalLibrary.MedicalRecords.Model; using HospitalLibrary.MedicalRecords.Service; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; using AutoMapper; namespace HospitalAPI.Con...
$:.unshift File.expand_path("../../lib", __FILE__) require 'benchmark' require 'daru' df = Daru::DataFrame.new({ a: 100000.times.map { rand }, b: 100000.times.map { rand }, c: 100000.times.map { rand } }) Benchmark.bm do |x| x.report("Set a single row with Array") do df.row[5] = [55,22,65] end x.rep...
/* * Copyright (c) 2019. Designed & developed by Quabynah Codelabs(c). For the love of Android development. */ package dev.ugscheduler.shared.datasource.local import androidx.lifecycle.LiveData import androidx.room.Dao import androidx.room.Query import dev.ugscheduler.shared.data.Facilitator @Dao interface Facilit...
// Portions of this work are Copyright 2018 The Time Machine Authors. All rights reserved. // Portions of this work are Copyright 2018 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, as found in the LICENSE.txt file. import 'dart:async'; import 'package:ti...
module ActsAsActsAs; end require 'acts_as_acts_as/macros' require 'acts_as_acts_as/group_macros' # To be included from spec_helper.rb of another plugin... # Example: # require 'rubygems' # require 'acts_as_acts_as' if defined? Spec::Runner && Spec::Runner.respond_to?(:configure) Spec::Runner.configure do |config|...
package com.techjava.ticketbooking.services; import java.util.Optional; import com.techjava.ticketbooking.model.Ticket; public interface TicketBookingService { Ticket findTicketByEmail(String email); Iterable<Ticket> getAllTickets(); Ticket findTicketById(Integer ticketId); Ticket updateEmailById(Int...
import sys import time weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] monthname = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] def date_time_string(timestamp=None): if timestamp is None: timestamp = time.time() ...
part of geometry; class Gradient { double _gradient; Gradient(double gradient) { this._gradient = gradient; } double getGradient() { return this._gradient; } bool isParallel(Gradient m) { if (this._gradient == m._gradient) { return true; } else { return false; } } boo...
import { ValueObject } from 'domains/core/entity/value-object'; import type { PaymentsPackageType } from 'domains/entities/payments.packages/type'; class PaymentsPackageValueObject extends ValueObject<PaymentsPackageType> { static factory(props: PaymentsPackageType) { return new PaymentsPackageValueObject(...
package common import ( "bytes" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" ) /* m: http method u: http url req: request body res: response body [ptr] hdr: headers to add, content-type is already added ec: expected status code */ func HttpRequest(m, u string, req, res interface{}, hdr http.Head...
# dispatch-neovim Add support for neovim's terminal emulator and job control to [dispatch.vim][dispatch]. ## Usage _Note: This plugin depends on [dispatch.vim][dispatch] and you need to have that plugin installed for this plugin to work_ When you have installed dispatch-neovim and start up neovim, it will insert it...
<?php namespace App\Http\Controllers\Admin; use Carbon\Carbon; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Prerecord; class SustainerAdminController extends Controller { public function getIndex(Request $request) { $prerecords = Prerecord::where('scheduled_time', '>', time())->order...
import { Component, HostListener } from '@angular/core'; import { CharacterService } from './character.service'; import { RulesService } from './rules.service'; import { NavigationEnd, Router } from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.comp...
#!/usr/bin/env bash set -e set -o pipefail if [ $# -ne 1 ]; then echo "Usage: $0 <configuration>" exit 1 fi conf="$1" cd $(dirname $(readlink -f "$0"))/.. case "$conf" in amalgamation) ./amalgamation.sh clang -march=native -O3 -std=c11 -o amalgamation_demo amalgamation_demo.c ./amalgamation_demo ...
class AddTotalCarbohydratesToLists < ActiveRecord::Migration def change add_column :lists, :total_carbohydrates, :integer, :default => 0 add_column :lists, :total_fat, :integer, :default => 0 add_column :lists, :total_protein, :integer, :default => 0 add_column :lists, :total_sugar, :integer, :default...
package com.colobu.kafka import java.util.{Date, Properties} import org.apache.kafka.clients.producer.{KafkaProducer, ProducerRecord} import scala.util.Random object ScalaProducerExample extends App { val events = args(0).toInt val topic = args(1) val brokers = args(2) val rnd = new Random() val props = n...
import json, re, os, subprocess, uuid, sys from flask import Flask, redirect, url_for, request, render_template, jsonify, Response import pandas as pd import numpy as np from speakerDiarization import getSpk app = Flask(__name__) @app.route('/stt/spk', methods=['POST']) def transcribe(): filename = str(uuid.u...
# Ruby - Conditional Love 吾善度材,视栋宇之制,高深圆方短长之宜,吾指使而群工役焉。舍我,众莫能就一宇。故食于官府,吾受禄三倍;作于私家,吾收其宜大半焉。 ## 二级标题一 ## 二级标题二 ## 二级标题三
package foodapp.com.data.repository import app.cash.turbine.test import com.google.common.truth.Truth import foodapp.com.data.FoodDatabase import foodapp.com.data.FoodResult import foodapp.com.data.model.FoodItem import foodapp.com.data.network.RestApi import foodapp.com.data.repository.utils.CoroutineTest import food...
#ifndef _SWAYLOCK_H #define _SWAYLOCK_H #include <stdbool.h> #include <stdint.h> #include <wayland-client.h> #include "background-image.h" #include "cairo.h" #include "pool-buffer.h" #include "seat.h" #include "effects.h" #include "fade.h" #include "wlr-layer-shell-unstable-v1-client-protocol.h" enum auth_state { AUT...
# gengo-brute-force 常用漢字表(joyo_kanji.csv)から、2文字を組み合わせます。 こちらを利用しました。 https://github.com/cjkvi/cjkvi-tables/blob/master/joyo2010.txt
# -*- coding: utf-8 -*- """ Global configuration file for TG2-specific settings in JQPlotDemo. This file complements development/deployment.ini. Please note that **all the argument values are strings**. If you want to convert them into boolean, for example, you should use the :func:`paste.deploy.converters.asbool` fu...
// product.route.js const express = require('express'); const app = express(); const productRoutes = express.Router(); // Require Product model in our routes module let Product = require('../models/Product'); // Defined store route productRoutes.route('/add').post(function (req, res) { let product = new Product(re...
#include <cmath> // pow(-) #include <stdexcept> /* std::domain_error(-) */ #include <limits> // std::numeric_limits #include <vector> #include "igs_ifx_common.h" /* igs::image::rgba */ #include "igs_level_auto_in_camera.h" //------------------------------------------------------------ namespace { double level_va...
using System; using System.Threading.Tasks; using Administrator.Database; using Administrator.Extensions; using Disqord; using FluentScheduler; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace Administrator.Services { public sealed class CyclingStatusService : Service...
import { EventEmitter } from 'events'; import { Command } from 'commander'; import { KeyMapInterface } from './common'; import { HookInterface } from './hook'; import { LoggerInterface } from './logger'; import { ModuleInterface } from './module'; export interface EOInterface extends EventEmitter { /** * Config p...
import { MockProvider } from 'ethereum-waffle'; import { ActorFixture } from '../shared'; /** * HelperCommands is a utility that abstracts away lower-level ethereum details * so that we can focus on core business logic. * * Each helper function should be a `HelperTypes.CommandFunction` */ export class HelperComma...
<section class="hero is-primary is-bold is-fullheight"> <div class="hero-body"> <div class="container"> <p class="title">Home Page</p> <p class="subtitle">This is where it all begun.</p> </div><!-- container --> </div><!-- hero-body --> </section><!-- hero -->
//+build ignore package main // Test of interface calls. None of the concrete types are ever // instantiated or converted to interfaces. type I interface { f() } type J interface { f() g() } type C int // implements I func (*C) f() type D int // implements I and J func (*D) f() func (*D) g() func one(i I, ...
#include "TransitionsTest.h" #include "../testResource.h" #include "CCConfiguration.h" #define TRANSITION_DURATION (1.2f) class FadeWhiteTransition : public CCTransitionFade { public: static CCTransitionScene* create(float t, CCScene* s) { return CCTransitionFade::create(t, s, ccWHITE); } }; cl...
package com.kryptkode.farmz.app.data.auth import androidx.annotation.VisibleForTesting import com.kryptkode.farmz.app.data.keyvaluestore.KeyValueStore import com.kryptkode.farmz.app.data.state.DataState import com.kryptkode.farmz.app.dispatcher.AppDispatchers import com.kryptkode.farmz.app.domain.AuthRepository import...
<?php declare(strict_types=1); namespace Doctrine\DBAL\Platforms\Exception; use Doctrine\DBAL\DBALException; use function sprintf; /** * @psalm-immutable */ final class NoColumnsSpecifiedForTable extends DBALException implements PlatformException { public static function new(string $tableName) : self { ...
package service import ( "github.com/pilwon/go-lambda" "github.com/pilwon/go-lambda/example/service/test" ) func LambdaServices() []lambda.Service { return []lambda.Service{ {test.Desc(), new(test.Server)}, } }
package jp.mihailskuzmins.sugoinihongoapp.persistence.models.miscellaneous class SettingsLocalBackupListModel(val name: String, val size: Long, val timeCreated: Long)
import { APIResponse } from '../../apiClient/types/response'; type RegionalData = { id: string; nama: string; }; export type RegionalDataResponse = APIResponse<RegionalData[]>;
package com.ibm.spark.kernel.protocol.v5.magic import com.ibm.spark.interpreter.{ExecuteOutput, Interpreter} import com.ibm.spark.kernel.protocol.v5.{Data, MIMEType} import com.ibm.spark.magic.{CellMagicOutput, LineMagicOutput} import com.ibm.spark.utils.LogLike class PostProcessor(interpreter: Interpreter) extends L...
<?php namespace Logeecom\Tests\Infrastructure\Common\TestComponents\TaskExecution; class BarTask extends FooTask { }
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable 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...
# InverseSimpson # Language: Python # Input: CSV (abundances) # Output: none (screen only) # Tested with: PluMA 1.1, Python 3.6 # Dependency: numpy==1.16.0 PluMA plugin to compute the Inverse Simpson Diversity Index for each of a set of samples. The plugin accepts sample data in the form of a CSV file where rows repre...
// Copyright 2021 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 typeparams import "testing" func Test(*testing.T) { _ = Zero[int]() // It is fine to use generics within tests. } // Note: We format {Test,Benchmark...
import {ValidationError} from '../errors'; import {Restart} from './alias'; import {ServiceSpec} from './compose-spec'; import {ContainerName} from './container-name'; import {DeviceDefinition} from './device'; import {ImageName} from './image-name'; import {LoggingDefinition} from './logging'; import {NetworkName} fr...
#!/usr/bin/env bash export PIPENV_VENV_IN_PROJECT=1 alias pyc-remove='find . -name "*.pyc" -exec rm -f {} \;' alias pip='pip3' alias pythonr='pipenv run python' gpip(){ PIP_REQUIRE_VIRTUALENV="" pip "$@" } function check_and_activate_pipenv { if [ -f "Pipfile" ]; then pipenv shell return 0 fi return 1 }...
package filehandling import ( "bufio" "log" "math" "os" "strconv" "strings" ) func ParseDatFile(path string) ([][]float64, error) { var bucket [][]float64 if file, err := os.Open(path); err != nil { return nil, err } else { defer file.Close() scanner := bufio.NewScanner(file) for scanner.Scan() { ...
# Name: AdministerElements.pm # Description: Various routines which supply input forms for administrative # functions # # Author: Eric Vaandering (ewv@fnal.gov) # Copyright 2001-2018 Eric Vaandering, Lynn Garren, Adam Bryant # This file is part of DocDB. # DocDB is free software; you c...
DROP VIEW IF EXISTS view_daftar_pengadaan_awayan; CREATE VIEW view_daftar_pengadaan_awayan AS SELECT * FROM view_daftar_pengadaan_p_kabupaten WHERE 1 = 1 AND id_skpd = 34; GRANT ALL PRIVILEGES ON view_daftar_pengadaan_awayan TO lap_awayan; REVOKE INSERT, UPDATE, DELETE ON view_daftar_pengadaan_awayan FROM lap_awa...
import { supabase } from "../../_database/supabaseClient" import { PublicProfile } from "../types/types-public-profile" import { ProfileDB } from "../../profiles/types/types-profiles" import { transformPublicProfiles, transformPublicProfile, } from "../utils/transform-data" import { getAllSocialLinks, getSocial...
pkg_name=cpputest pkg_origin=core pkg_version="3.8" pkg_description="$(cat << EOF CppUTest is a C/C++ based unit xUnit test framework for unit testing and for test-driving your code. It is written in C++ but is used in C and C++ projects and frequently used in embedded systems but it works for any C/C++ project. ...
import sys from pathlib import Path from typing import Optional, Tuple import click @click.command() @click.option("--prefix", "-p", type=str, default=None) @click.option("--start-point", "-s", type=int, default=1) @click.option("--input-path", "-i", type=str, default="./") @click.option("--output-path", "-o", type=...
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::MediaServices::Mgmt::V2019_05_01_preview module Models # # Describes all the filtering operations, such as de-interlacing, rotation ...
# treeple The goal of this project is to help families easily answer the question, "so... what are they to me"? What's a second cousin twice removed? It's hard to keep track. This can help!
// // Created by Kylian Lee on 2021/09/23. // #include <iostream> using namespace std; int main(){ int word_num; cin >> word_num; int cnt = 0; for (int i = 0; i < word_num; ++i) { bool exist[26] = {false}; string word; cin >> word; int len = word.length(); bool flag = true; for (int j...
""" To find suspected ancient poems """ from util import read_tmp_file, write_to_tmp_file, iterate_poems, Poem import sys import os import re TEMP_FILE = 'ancient_whitelist' argv = sys.argv if len(argv) > 1: path = argv[1] if not os.path.exists(path): print('no directory') quit() strict = '-s' in ar...
namespace YKToolkit.Sample.Models { using YKToolkit.Bindings; public class AdornedSampleModel : NotificationObject { private string _name; public string Name { get { return this._name; } set { SetProperty(ref this._name, value); } } private ...
package com.example.demo.interceptor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Created by son on 2019-02-18. */ @Slf4j public class HttpSevletRequest...
package ftl.util import flank.common.isWindows import flank.common.logLn import ftl.run.exception.FlankGeneralError import java.lang.ProcessBuilder.Redirect.PIPE object Bash { fun execute( cmd: String, additionalPath: List<Pair<String, String>> = emptyList(), shellEnvironment: ShellEnviron...
# fusion ## Quick overview This project gathers different utility libraries and executables used in some projects at Parrot. The main design goals, shared by all these projects are: * robustness, by the mean of a large test code coverage * DRY, by providing easily reusable pieces of code * ***linux/glibc/gcc comp...
extern crate itertools; use itertools::Itertools; use std::collections::HashSet; use std::iter::FromIterator; const INPUT: &str = include_str!("input/day4.txt"); fn main() { let rows: Vec<Vec<_>> = INPUT .lines() .map(|s| s.split(' ').collect()) .collect(); let count1 = rows ...
<?php // // Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com> // Created by Grigore Stefan <g_stefan@yahoo.com> // // MIT License (MIT) <http://opensource.org/licenses/MIT> // defined("XYO_CLOUD") or die("Access is denied"); $this->set("application.title", "Profile"); $this->set("label.name", "...
module Main where import Lib import InterpreterBase import System.Environment main :: IO () main = do let fname = "./program.txt" runRun $ startInterpreter fname putStrLn "Exiting"
# Release notes ## 1.0.2 - 2019-11-01 - Small improvements: Improve various error messages and scenarios. - Add unit tests ## 1.0.1 - 2019-11-01 Small Bugfix: Missing `AssemblyDefaultWixExtension` attribute. ## 1.0.0 - 2019-11-01 Initial release
import { ModelIdEnum } from './models/ModelTypes'; export interface IIdTimeStamp{ id:number; timestamp:number; } export interface IUseTimestamp{ timestamp:number; } export interface IUseModelId { modelId:ModelIdEnum; invalidate?:number; } export interface IUseEvent{ eventId:any; ...
#!/bin/bash cd ~/repos/dotfiles printf "\nHomebrew-Cask\n" echo "------------------------------" echo "Installing homebrew casks" if [ ! "$(brew ls | grep 1password)" ]; then echo "Installing 1password" brew install homebrew/cask/1password fi if [ ! "$(brew ls | grep alfred)" ]; then echo "Installing alfred" ...
#include "fruit.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <SDL/SDL.h> #include "fps.h" int fruit_points(Fruit fruit) { switch (fruit) { case Cherry: return 100; case Strawberry: return 300; case Peach: return 500; case Apple: return 700; case Grapes: return 1...
# JavaScript Mod Player (JMP) ## [Info Page] (http://chenzeyu.github.io/JavaScript-Mod-Player/) ## [Demo](http://chenzeyu.github.io/JavaScript-Mod-Player/demo/demo.html) Done by: Chen Zeyu and Qing Cheng Mentored by: Dr. Martin Henz & Srikumar Subramanian Product of a project of National University of Singapore (NUS) C...
use strict; print "123\ 234\n"; print qq(123\ 234\n); print <<TEXT; 123\ 234 TEXT print '123\ 234' . "\n"; print q(123\ 234) . "\n"; print <<'TEXT'; 123\ 234 TEXT
package db import ( "fmt" "go.etcd.io/bbolt" "log" ) var Engine *bolt.DB type Bolt struct { } func (b Bolt) Init() *bolt.DB { Engine, err := SetupDB() if err != nil { log.Fatal(Engine, err) } return Engine } func SetupDB() (*bolt.DB, error) { db, err := bolt.Open("test.db", 0600, nil) if err != nil { ...
class Comment::CommentComponent < ApplicationComponent def initialize(comment:) @comment = comment end end
package org.jd.benoggl.mappers import org.jd.benoggl.entities.GameEntity import org.jd.benoggl.models.Game import org.jd.benoggl.models.Round import org.jd.benoggl.resources.dtos.GameDto fun GameDto.toModel(rounds: List<Round>) = Game( this.uid!!, this.state!!, this.type!!, rounds.toMutableList(), ...
class DefendantSubModelValidator < BaseSubModelValidator def has_many_association_names [:representation_orders] end end
package org.goblinframework.remote.server.dispatcher.response; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufAllocator; import io.netty.buffer.ByteBufOutputStream; import io.netty.buffer.ByteBufUtil; import io.netty.util.ReferenceCountUtil; import org.goblinframework.core.mapper.JsonMapper; import org....
# v2ex热议话题 `最后更新时间:2021-04-22 23:08:37 +0800` 1. [千万不要随便裸辞,真是血的教训!](https://www.v2ex.com/t/772311) 1. [🌁 一个类 Instagram 图片小程序,每周 7 天,每天都是不同的图片 UI [邀请码发送]](https://www.v2ex.com/t/772333) 1. [打算开车从深圳往兰州走,有啥建议或者劝告吗](https://www.v2ex.com/t/772419) 1. [有点入单反的念头顺便报个班,拍物品, 90d、80d、850d,有大腿可以指导下?](https://www.v2ex.com/t/7723...
package com.tapptitude.logger.di import com.tapptitude.logger.Logger import com.tapptitude.logger.timber.TimberLogger import org.koin.dsl.module val loggerModule = module { single<Logger> { TimberLogger() } }
unit vr_variant; {$IFDEF fpc}{$mode objfpc}{$ENDIF} {$H+} {$I vrode.inc} interface uses SysUtils, Classes, vr_types, vr_intfs; type IVariant = interface; TIVariantProc = procedure(const AVar: IVariant); TIVariantMethod = procedure(const AVar: IVariant) of object; TIVariantKind = (ivkEmpty, ...
--- udver: '2' layout: relation title: 'obl:sentcon' shortdef: 'sentence-initial discourse connective' --- The relation `obl:sentcon` denotes pronouns that are used as sentence-initial discourse connectives. ~~~ sdparse Upe rire ma kova'e mitã'i , cheremiarirõ'i oiko , ojau . \n Then after BDY this little-child , my-...
import { isEmpty } from 'lodash'; import type { FunctionComponent } from 'react'; import type { FilterWidget } from './types'; import FilterAddModal from './FilterAddModal'; import FilterCloneModal from './FilterCloneModal'; import FilterEditModal from './FilterEditModal'; import type { Filter, FilterUsage, FilterRule...
package com.yaerin.sqlite.util; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.Process; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer...
package protocol import ( "context" "encoding/binary" "fmt" "io" "reflect" ) type Request struct { Header *Header Message Message Context context.Context } func (r *Request) Write(w io.Writer) error { if r.Message == nil { return fmt.Errorf("message is nil") } buffer := newPageBuffer() defer buffer.u...
package edu.iltuitk275.assignment5.msanto2; import java.util.Random; /** * The Class Dueler. */ public class Dueler { /** The Name of the dueler. */ private String mName; /** The Prob to hit the target. */ private double mProb; /** If the dueler is alive. */ private boolean mIsAlive; ...
require "set" require "flipper/feature" require "flipper/adapters/sync/synchronizer" module Flipper # Adding a module include so we have some hooks for stuff down the road module Adapter def self.included(base) base.extend(ClassMethods) end module ClassMethods # Public: Default config for ...
// Generated automatically from org.apache.commons.collections4.OrderedIterator for testing purposes package org.apache.commons.collections4; import java.util.Iterator; public interface OrderedIterator<E> extends Iterator<E> { E previous(); boolean hasPrevious(); }
use crate::debug_util::is_finite; use crate::ray::Ray; #[cfg(test)] use crate::UNIT_VECTORS; use crate::*; use crate::{Aabb, Boundable, Container, Geometry, Intersectable, Intersection}; use serde::{Deserialize, Serialize}; use utility::math::solve_quadratic; /// A sphere consists of a center and a radius. #[derive(De...
module Days.DayFive ( parta , partb ) where import Data.List import Types getSeat :: [AirPlaneSeatType] -> Int -> Int -> Int -> Int -> Int getSeat [] r _ c _ = 8 * r + c getSeat (h:rest) bottom top left right = let midv = ((top - bottom) `div` 2) + bottom midh = ((right - left) `div` 2) + left in cas...
<?php function AddColumn($self, $table_name = "", $columnName = '', $columnType = '', $null = FALSE) { if (!$self->db->field_exists($columnName, $table_name)) { $fields = array( $columnName => array( 'type' => $columnType, 'null' => $null ) ); $self->dbforge->add_column($table...
package com.cobo.dt.model.lfdt; import org.simpleframework.xml.Root; @Root(strict = false, name="Symbol") public class Symbol extends AbstractValueBasedOnLanguage { public Symbol(String language, String value) { super(language, value); } public Symbol() { this(null,null); } }
/*config read to verify normal user*/ package main import ( "github.com/chenzhe07/goconfig" ) func get_config(conf string) (c *goconfig.ConfigFile, err error) { c, err = goconfig.ReadConfigFile(conf) if err != nil { return c, err } return c, nil } func get_backend_dsn(c *goconfig.ConfigFile) (d...
prettier --write "./src/**/*" prettier --write *.json
# E-commerceMallManagementSystem <p>群: 123300273(大佬群 2TB学习资料,讲解)(入群获取sql文件)</p> <p>QQ: 1095737364(加好友获取sql文件)</p> <p><h1 align="center">电子商务商城管理系统</h1></p> <p align="center"> <img src="https://img.shields.io/badge/jdk-1.8-orange.svg"/> <img src="https://img.shields.io/badge/spring-5.x-lightgrey.svg"/> <img s...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostScalarFieldEnum = void 0; const TypeGraphQL = require("type-graphql"); var PostScalarFieldEnum; (function (PostScalarFieldEnum) { PostScalarFieldEnum["id"] = "id"; PostScalarFieldEnum["title"] = "title"; PostScalarField...
require 'config' require 'rounding' class Generator attr_reader :toggl_entries, :trello_actions def initialize(toggl_entries, trello_actions, tz, tags = false) @toggl_entries = toggl_entries.sort_by do |entry| entry[:start] end @trello_actions = trello_actions @tz = tz @tags = tags end...
puts "Please enter a candidate name." get_results = gets.chomp puts "Please enter vote totals by precinct. When done, please type \"done\"." calculate_votes = [] def calculate_votes results.each do |vote| total_votes = (total_votes + vote) / vote * 100 while true vote = ...
import { ApolloClient, HttpLink, InMemoryCache, NormalizedCacheObject, split, } from '@apollo/client'; import { WebSocketLink } from '@apollo/client/link/ws'; import { GetServerSidePropsContext, NextPageContext } from 'next'; import fetch from 'node-fetch'; import { setContext } from '@apollo/client/link/cont...
require 'mysql2' require_relative '../models/database_connection_model' get '/' do connection_string_model = settings.connection_info connection = Mysql2::Client.new( host: connection_string_model.host_name, port: connection_string_model.port, username: connection_string_model.user_id, pas...
import _ from 'lodash'; import {FieldProps} from './field-props'; import {IModel} from './imodel'; import {FormGroup, ValidatorFn} from '@angular/forms'; export enum GridDataPropNames { id = 'id', itineraryDate = 'itineraryDate', artistId = 'artistId', artistName = 'artistName', showId = 'showId', itinerar...
// Suggestion API // // eg. /$suggest/v1?url=https://github.com/badges/shields // // This endpoint is called from frontend/components/suggestion-and-search.js. 'use strict' const { URL } = require('url') const request = require('request') function twitterPage(url) { if (url.protocol === null) { return null }...
"""Compare results from a library to reference values. This module provides the class :class:`~teospy.tests.tester.Tester` for evaluating the numerical results from this library to reference values. A :class:`~teospy.tests.tester.Tester` instance has as attributes the functions to be tested; the values of the argument...
use ret1007; select * from content_tag_disease_ytex_T047_unique_output order by blogId,sentence into outfile '/tmp/ret-final-1007.csv' fields terminated by ',' enclosed by '"' lines terminated by '\n'; select * from content_tag_ytex order by instance_id,sentence_text into outfile '/tmp/ret-basic-1007.csv' fields...
<p style="font-size: 24px; font-weight: bold; margin-top: -8%; margin-left: -0%">Potential applications:</p> - microfauna - macrofauna - geology - hydrothermal processes - geology - volcanology - machine learning! - more! <p style="font-size: 24px; font-weight: normal; margin-top: -4%; margin-left: -0%">Learn...
import React, { useState, useEffect } from 'react'; import { View, ScrollView } from 'react-native'; import { useRoute } from '@react-navigation/native'; import Sinopse from './Sinopse'; import ReviewForm from './ReviewForm'; import ListReview from './ListReview'; import { getAccessTokenDecoded, isAllowedByRole } from...
import {HORIZONTAL} from '../.././const'; import BasePolicy from './BasePolicy'; /** * Sets the user defined size * @memberof ST.SizePolicies * @extends ST.SizePolicies.BasePolicy * * @example * let widget = new ST.Widgets.Button(myApp.root, { * width: 100, * height: 30, * }); * * widget.hPolicy = new ST....
strip target/release/fly cp target/release/fly fly strip target/release/distributed-fly cp target/release/distributed-fly fly-dist tar czf $RELEASE_FILENAME fly fly-dist mkdir -p release mv $RELEASE_FILENAME release/