text
stringlengths
27
775k
package WebService::Toggl; use Module::Runtime qw(use_package_optimistically); use Moo; with 'WebService::Toggl::Role::Base'; use namespace::clean; our $VERSION = "0.11"; has 'me' => (is =>'ro', lazy => 1, builder => 1); sub _build_me { shift->_new_thing('::API::Me') } sub workspace { shift->_new_thing_by_i...
using System.Net.Http; namespace TfsDeploymentChecker.BusinessLogic.Abstractions { public interface ITfsClient { HttpClient GetClient(); } }
package testutils // TestLogger a logger that logs to a generic format function, used with testing.T.Logf type TestLogger struct { F func(format string, args ...interface{}) } // Debugf debug format func (l *TestLogger) Debugf(format string, args ...interface{}) { l.F("DEBUG: "+format, args...) } // Infof info for...
#!/bin/bash SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" cd "$SCRIPT_DIR/.." # TODO: This should be rewritten in rust, a Makefile, or some platform-independent language fuzzers=$(find ./fuzzers -maxdepth 1 -type d) backtrace_fuzzers=$(find ./fuzzers/backtrace_baby_fuzzers -maxdepth 1 -...
#include <stdio.h> int main() { float i = 1; float n; printf("Watch out! Here come a bunch of fractions! \n"); while (i<30) { i = i+1; n = 1/i; printf("%f", n);} printf(" That's all, folks!\n"); return 0; }
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
import { Document } from 'mongoose'; export interface Test extends Document { id: string; title: string; date: number; coefficient: number; shown: boolean; lessonId: string; gradesId: string[]; }
<?php namespace Oro\Bundle\MarketingListBundle\Tests\Unit\Datagrid; use Oro\Bundle\MarketingListBundle\Datagrid\ConfigurationProvider; use Oro\Bundle\SegmentBundle\Entity\Segment; class ConfigurationProviderTest extends \PHPUnit\Framework\TestCase { /** * @var \PHPUnit\Framework\MockObject\MockObject *...
require 'monitor.rb' buf = [] buf.extend(MonitorMixin) empty_cond = buf.new_cond # consumer Thread.start do loop do buf.synchronize do empty_cond.wait_while { buf.empty? } print buf.shift end end end # producer while line = ARGF.gets buf.synchronize do buf.push(line) empty_cond.sign...
// run-pass // ignore-pretty pretty-printing is unhygienic #![feature(decl_macro)] #![allow(unused)] mod foo { pub macro m($s:tt, $i:tt) { $s.$i } } mod bar { struct S(i32); fn f() { let s = S(0); ::foo::m!(s, 0); } } fn main() {}
const isProduction = require('./is-production') const sdk = require('stellar-sdk') let host = 'https://horizon-testnet.stellar.org' if(isProduction) { host = 'https://horizon.stellar.org' } const server = new sdk.Server(host) if(isProduction) { sdk.Network.usePublicNetwork() } else { sdk.Network.useTestNetwor...
// Copyright (c) The Libra Core Contributors // SPDX-License-Identifier: Apache-2.0 use crate::{ operational_tooling::launch_swarm_with_op_tool_and_backend, test_utils::libra_swarm_utils::load_node_config, }; use libra_config::config::SecureBackend; use libra_network_address::NetworkAddress; use libra_secure_j...
<?php namespace Fast\Gallery\Listeners; use SiteMapManager; use Fast\Gallery\Repositories\Interfaces\GalleryInterface; class RenderingSiteMapListener { /** * @var GalleryInterface */ protected $galleryRepository; /** * RenderingSiteMapListener constructor. * @param GalleryInterface $...
package com.codekoan.shellcap class Ledger { var transactions = List[Transaction]() def add(transaction: Transaction): Ledger = { transactions = transaction :: transactions this } def totals: TraversableOnce[(Address, Long)] = { transactions.flatMap(x => List((x.source, -x.amount), (x.destinatio...
ALTER TABLE `address` ADD COLUMN `postal_code` VARCHAR(45) NULL AFTER `flat`; ALTER TABLE `person` ADD COLUMN `alternative_phone` VARCHAR(255) NULL AFTER `phone`; ALTER TABLE `student` ADD COLUMN `photos_authorization` TINYINT(4) NULL DEFAULT NULL AFTER `judicial_restriction`, ADD COLUMN `withdrawal_authorization` ...
package utils import ( "context" "errors" bolt "github.com/coreos/bbolt" ) // CheckUserNameExists Checks if the given username exists in database. // The calling function is responsible to close the DB connection! func CheckUserNameExists(userName string, db *bolt.DB) bool { userNameFound := false db.View(func(...
$INCLUDE(port_cpu.inc) ;.NAME ?bsp_vect .EXTERN _int_dummy .EXTERN _krhino_tick_proc .PUBLIC _SOC_WDTI .PUBLIC _SOC_LVI .PUBLIC _SOC_P0 .PUBLIC _SOC_P1 .PUBLIC _SOC_P2 .PUBLIC _SOC_P3 .PUBLIC _SOC_P4 .PUBLIC _SOC_P5 .PUBLIC _SOC_ST2_CSI20_IIC20 .PUBLI...
import 'dart:convert'; import 'package:collection/collection.dart'; import 'package:http_parser/http_parser.dart'; import '../../extensions/helpers_extension.dart'; import 'stream_info_provider.dart'; /// class PlayerResponse { // Json parsed map Map<String, dynamic> root; /// late final String playabilityS...
package org.covidwatch.android.ui.reporting import android.view.View import com.xwray.groupie.viewbinding.BindableItem import org.covidwatch.android.R import org.covidwatch.android.data.model.PositiveDiagnosisReport import org.covidwatch.android.databinding.ItemPositiveDiagnosisChildBinding import org.covidwatch.andro...
package dog.snow.androidrecruittest.repository.repos import dog.snow.androidrecruittest.repository.daos.PhotoDao import dog.snow.androidrecruittest.repository.database.AppDatabase import dog.snow.androidrecruittest.repository.model.RawPhoto import dog.snow.androidrecruittest.repository.model.RawPhotoEntity import dog....
using System; using System.Threading.Tasks; namespace Qmmands { internal interface ITypeParser { Task<TypeParserResult<object>> ParseAsync(string value, ICommandContext context, IServiceProvider provider); } }
package jp.co.yuji.mydebugapplication.presentation.view.fragment.hard import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import jp.co.yuji.mydebugapplication.R import jp.co.yuji.mydebugapplication.presentation.view.fr...
<style> p.combinado:first-letter { color: #00587A; font-size:xx-large; } </style> ![Legenda](imagens/capitulo.svg) # **Apresentação** ??? "➡️ Ferramentas de acessibilidade" :material-cursor-default-click-outline: Clique no botão abaixo para alternar visualização: <div class="tx-switch"> <butto...
<?php namespace Drupal\Tests\migrate_source_csv\Kernel\Plugin\migrate\source; use Drupal\node\Entity\Node; use Drupal\Tests\migrate\Kernel\MigrateTestBase; /** * @coversDefaultClass \Drupal\migrate_source_csv\Plugin\migrate\source\CSV * * @group migrate_source_csv */ class CSVTest extends MigrateTestBase { /*...
from haystack import indexes from haystack import site from jazzpos.models import Customer, Patient class CustomerIndex(indexes.RealTimeSearchIndex): text = indexes.CharField(document=True, use_template=True) class PatientIndex(indexes.RealTimeSearchIndex): text = indexes.CharField(document=True, use_templat...
// // SwordInstallSource.h // Eloquent // // Created by Manfred Bergmann on 13.08.07. // Copyright 2007 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "SwordModule.h" #ifdef __cplusplus #include <swmgr.h> #include <installmgr.h> #endif @class SwordManager; @class SwordInstal...
class LocationFacade class << self def coordinates(location) data = MapquestService.coordinates(location) data[:results].map do |location| Coordinate.new(location) end end end end
use App::KADR::Path -all; use common::sense; use FindBin; use Test::More; my $file = dir($FindBin::Bin)->file('file.t'); subtest 'abs_cmp' => sub { ok $file == dir($FindBin::Bin)->file('file.t'); ok $file != dir($FindBin::Bin)->file('dir.t'); ok $file != dir($FindBin::Bin, 'file.t'); }; done_testing;
import { browser } from "webextension-polyfill-ts"; import { utils } from "../browser"; import { handleSelection } from "./selection"; const CONTEXT_MENU_CONTENTS = { forSelection: ["Add endpoint"], }; export const setupContextMenus = () => { CONTEXT_MENU_CONTENTS.forSelection.forEach(commandId => { browser.c...
/* * Copyright 2019 PingCAP, Inc. * * 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 ...
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* Copyright 2017 Gravitational, Inc. 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 writing, soft...
import { GetStaticProps } from "next"; import Head from "next/head"; import Link from "next/link"; import { api } from "../../services/api"; import { Table, Space, Popconfirm } from "antd"; import "antd/dist/antd.css"; import styles from "./users.module.scss"; type User = { id: number; email: string; name: st...
package io.idml.functions import io.idml.datanodes.IDouble import io.idml.{IdmlArray, IdmlNothing, IdmlValue, InvalidCaller} /** Calculate an average value */ case object AverageFunction extends IdmlFunction0 { def name: String = "average" protected def apply(cursor: IdmlValue): IdmlValue = { cursor match {...
package com.mytest.composetest.coroutinetest import androidx.lifecycle.asLiveData import com.mytest.composetest.util.LogDebug import com.mytest.composetest.util.LogError import kotlinx.coroutines.* import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.flow.* import kotlin.coroutines.CoroutineContext ...
; uninterpreted functions ; expect: SAT (decl-ty u) (decl a u) (decl b u) (decl f (-> u prop)) (assert (not (= (f a) (f b)))) ; u = {a,b} (assert (forall (x u) (or (= x a) (= x b)))) (goal ((x u)) (not (= (f x) (f b))))
module Listen module Adapters DEFAULT_POLLING_LATENCY = 1.0 # Polling Adapter that works cross-platform and # has no dependencies. This is the adapter that # uses the most CPU processing power and has higher # file IO than the other implementations. # class Polling < Adapter privat...
import React from 'react'; import currencyFormatter from 'currency-formatter'; const CurrencyFormatter = (props) => { return ( <span> {currencyFormatter.format(props.amount, {locale: 'en-GB'})} </span> ); } export default CurrencyFormatter;
require 'unit_helper' class EndOfDayTest < Test::Unit::TestCase context "Initializing" do setup do @request = end_of_day_request end [ :options ].each do |attr| should "set @#{attr} instance variable" do assert_not_nil @request.send(attr) end end end context "A base re...
const constExistsIn = ({ name, constants, prefix, value }) => { const constant = constants[name] const expectation = `${name} is defined` const actual = `(actual value '${constant}')` expect(constant).to.not.equal(undefined, expectation + ' ' + actual) if (value !== undefined) { expect(constant === valu...
import React from 'react'; import '../styles/components/no-post-found.css'; const NoPostFound = () => { return ( <> <div className='no-post-found__img-container'> <img src='https://static.platzi.com/static/images/error/img404.png' alt='No post found' /> </div> ...
# Imitation Learning In this repository we implement, test, and examine some of the well-known IL algorithms. - [x] DAGGER - [x] Confidence-Based Autonomy (CBA) - [ ] BCO - [ ] GAIL
package Catmandu::Store::File::Multi::Bag; use Catmandu::Sane; our $VERSION = '1.16'; use Moo; use Catmandu::Util qw(:is); use Catmandu::Logger; use namespace::clean; extends 'Catmandu::Store::Multi::Bag'; with 'Catmandu::FileBag'; sub add { my ($self, $data) = @_; # Overwrite the Multi::Bag add an store...
<div class="header"> <div class="left"> <href href="#" data-href="/"><h1><span>DUO</span>SCAN</h1></href> </div> </div> <div id="install"> <h1>Instalando DUOSCAN</h1> <form action=""> <span>É para criar uma conta admin</span> <input type="text" placeholder="E-mail" id="email"> <input type="text" placeholder="Senha...
class ClassName < ActiveRecord::Base belongs_to :teacher has_many :student_teacher_classes has_many :students, through: :student_teacher_classes has_many :curriculums, dependent: :destroy has_many :assignments, through: :curriculums, dependent: :destroy include Sluggable::InstanceMethods extend Sluggable::...
Det er mange ulike måter en kan vurdere et programmeringsprosjekt, og her må en selv vurdere hva som er den beste måten ut ifra hvilket fag man jobber i, hvilken aldergruppe og hvilket nivå elevene er på, hva man ønsker å teste og hvor mye tid man har til rådighet til å jobbe med prosjektet. I vårt [lærerdokument](../....
# Логические функции Логические функции принимают любые числовые типы, а возвращают число типа UInt8, равное 0 или 1. Ноль в качестве аргумента считается "ложью", а любое ненулевое значение - "истиной". ## and, оператор AND ## or, оператор OR ## not, оператор NOT ## xor
#!/usr/bin/env bash # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ###################################### # install_container_management # # installs moby-engine docker container management if needed. # ARGUMENTS: # # OUTPUTS: # Write output to stdout # RETURN: # updates the global ...
<?php namespace App\Http\Controllers; use App\Category, App\Post; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class PostsByCategoryController extends Controller { public function __invoke($key) { $posts = Category::where('key', '=', $key)->first()->post(); return view('po...
public class Produto { String descricao; String fornecedor; double valorCusto; int quantidade; public double calcularValorEmEstoque() { return this.valorCusto * this.quantidade; } public double adicionarAoValorCusto() { return this.valorCusto * 1.65; } public dou...
require 'test_helper' class FindingReviewAssignmentTest < ActiveSupport::TestCase setup do @finding_review_assignment = finding_review_assignments :review_without_conclusion_being_implemented_weakness end test 'create' do assert_difference 'FindingReviewAssignment.count' do @finding_review_a...
class Chef < ActiveRecord::Base belongs_to :employable, polymorphic: true end class ChefList < Chef belongs_to :employable_list, polymorphic: true end
'use strict'; const express = require('express'); const categories = require('../lib/models/categories/categories.collection') const router = express.Router(); router.post('/categories', postCategory); router.get('/categories', getCategory); router.get('/categories/:id', getCategory); router.put('/categories/:id', up...
# scikit-vm # Usage ## Start VM <code> vagrant up </code> ## Login as Root <code> vagrant ssh ... sudo su </code> Let's play scikit!
import 'package:pkgraph/src/models/package_version.dart'; import 'package:test/test.dart'; void main() { group('PackageVersion', () { Map<String, dynamic> json; setUp(() { json = { 'author': 'krieger', 'authors': ['archer', 'lana'], 'dependencies': { 'package_a': '^1....
package trwmutex import "sync" // TRWMutex is extended RWMutex which have TryLock() and TryRLock(). type TRWMutex struct { mu sync.Mutex rwmu sync.RWMutex w int r int } // Lock locks m and wait until all other Lock or RLock is unlocked. func (m *TRWMutex) Lock() { m.mu.Lock() m.w++ if m.r > 0 || m.w >...
package com.andyanika.translator.repository.remote.di.koin import core.interfaces.RemoteRepository import com.andyanika.translator.repository.remote.ApiVariants import com.andyanika.translator.repository.remote.BuildConfig import com.andyanika.translator.repository.remote.stub.StubRemoteRepository import com.andyanika...
@extends('layouts.master') @section('answer') <div class=""> <span>réponse : </span><h2>{{$question->answer}}</h2> <p class="wiki">{{$question->wiki}}</p> <p>catégorie : {{$question->category->title}}</p> </div> @stop
namespace DesignMode.AdapterPattern { public class Mp4Player:IAdvancedMediaPlayer { public string playVlc(string fileName) { return ""; } public string playMp4(string fileName) { return "Playing mp4 file. Name: " + fileName; } } }
import { flow } from "lodash"; import { onGet, string, fields, withFields, withProps } from "@webiny/commodo"; import { validation } from "@webiny/validation"; import { Context as CommodoContext } from "@webiny/api-plugin-commodo-db-proxy/types"; import { Context as I18NContext } from "@webiny/api-i18n/types"; import o...
import { ICanComponentProps } from '../CanComponent/ICanComponentProps'; export interface IIconProps extends ICanComponentProps { height: number; image: any; name: string; refreshRate: number; width: number; };
package example; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext; import scala.Tuple2; import java.util.Arrays; public final class Top10WordAnalyzer { public static void main(String[] args) { JavaSparkContext sc = new JavaSparkContext(new SparkConf().setAppName("Top...
INSERT INTO Quiz.USER (id, email, score) VALUES (7, 'dsa', 0); INSERT INTO Quiz.USER (id, email, score) VALUES (8, 'Manuel', 10); INSERT INTO Quiz.USER (id, email, score) VALUES (9, 'Denis', 15); INSERT INTO Quiz.USER (id, email, score) VALUES (10, 'Grig', 20); INSERT INTO Quiz.USER (id, email, score) VALUES (11, 'dsa'...
package com.mentatlabs.nsa package javac trait JavacVersions { val `1.4` = JavacVersion(1, 4) val `1.5` = JavacVersion(1, 5) val `1.6` = JavacVersion(1, 6) val `1.7` = JavacVersion(1, 7) val `1.8` = JavacVersion(1, 8) val `1.9` = JavacVersion(1, 9) }
CREATE Procedure [dbo].[usp_deleteEmptyRole] -- Add the parameters for the stored procedure here @RoleName nvarchar(50) AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; SELECT LoginID FROM Users INNER JOIN ...
# encoding: utf-8 class Train::Transports::SSH class CiscoIOSConnection < BaseConnection class BadEnablePassword < Train::TransportError; end def initialize(options) super(options) logger.level = Logger::INFO # Extract options to avoid passing them in to `Net::SSH.start` later @hos...
/** * */ package hudson.plugins.starteam; import hudson.model.AbstractBuild; import hudson.scm.ChangeLogParser; import hudson.scm.ChangeLogSet; import hudson.scm.ChangeLogSet.Entry; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.text.SimpleD...
package main import "fmt" func main() { fmt.Println(monkeyTrouble(true, false)); } /** *if both monkeys are smiling then we are in trouble *if both are not smiling then we are also in trouble **/ func monkeyTrouble(aSmile, bSmile bool) bool { if ((aSmile && bSmile) || (!aSmile && !bSmile)) { ...
// // Created by zhougang on 2019/6/6. // #ifndef ANDROID_DRAW_H #define ANDROID_DRAW_H #include <stdint.h> typedef struct SpiceRect { int32_t left; int32_t top; int32_t right; int32_t bottom; } SpiceRect; #endif //ANDROID_DRAW_H
// notice.dart // see_app // // Created by JohnnyB0Y on 2020/5/16. // Copyright © 2020 JohnnyB0Y. All rights reserved. // import 'model.dart'; abstract class NoticeObservable { observedNotice(Notice notice, NoticeCenter noticeCenter); } /// 通告 class Notice { final String name; final dynamic context; ...
require "test_helper" require "set" class QueryTest < UnitTestCase def assert_query(expect, *args) test_ids = expect.first.is_a?(Integer) expect = expect.to_a unless expect.respond_to?(:map!) query = Query.lookup(*args) actual = test_ids ? query.result_ids : query.results msg = "Query results are...
unit About; {$MODE Delphi} { Disk Image Manager - About window Copyright (c) Damien Guard. 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.apac...
using System; using System.IO; using AsmResolver.IO; using Xunit; namespace AsmResolver.Tests.IO { public class BinaryStreamReaderTest { [Fact] public void EmptyArray() { var reader = ByteArrayDataSource.CreateReader(new byte[0]); Assert.Equal(0u, reader.Length);...
package typingsSlinky.dineroJs import typingsSlinky.dineroJs.mod.Currency import typingsSlinky.dineroJs.mod.RoundingMode import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object ...
require "spec_helper" describe GraphsController do describe "routing" do it "routes to #tree_graph" do expect(get("/tree_graph")).to route_to("graphs#tree_graph") end it "routes to #view_graph" do expect(get("/view_graph/path")).to route_to("graphs#view_graph", :path => "path") end ...
import "./index.scss"; import * as React from "react"; import Informations from "./informations"; export enum SavingThrows { Strength = "Strength", Dexterity = "Dexterity", Constitution = "Constitution", Intelligence = "Intelligence", Wisdom = "Wisdom", Charisma = "Charisma", } export enum Skills { Acro...
module Cranium::FileUtils def self.line_count(file_path) File.read(file_path).each_line.count end end
--- title: Sofás a conjunto con un reposapiés subtitle: Sofás layout: default modal-id: 3 img: sofas_2.jpg thumbnail: sofas_2.jpg alt: sofas_2 category: sofas description: Dos sofás que, junto a su reposapiés, quedaron estupendos al lado de su mesita. ---
package io.exponential.androidactivityandfragmentlifecycle; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; impo...
# java_gitignore Java项目中不进行版本管理文件的配置 ## idea gitignore [idea gitignore](https://github.com/CavaliersFor/java_gitignore/blob/master/IDEA_gitignore)
CREATE TABLE IF NOT EXISTS "proxy_endpoint_schemas" ( "id" SERIAL PRIMARY KEY, "endpoint_id" INTEGER NOT NULL, "name" TEXT NOT NULL, "request_schema_id" INTEGER, "request_type" TEXT NOT NULL, "request_schema" TEXT, "response_same_as_request" BOOLEAN NOT NULL DEFAULT TRUE, "response_schema_id" INTEGER, ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; namespace MirthDotNet.Model { [Serializable] public class Connector { [XmlAttribute("version")] public string Version { get; set; } [XmlElement("metaDa...
is_question(elem::HTMLElement) = any(is_question, elem.children) is_question(elem::HTMLText) = occursin(r"^[0-9]+\. ", elem.text) struct Question content responses::Vector{Response} label id end function question(contents, responses, label; detect_label=false) matched = 0 for elem in contents ...
use std::collections::HashMap; use std::sync::{Arc, RwLock}; use super::{Editor, Result}; use completion::Completer; use config::{Config, EditMode}; use edit::init_state; use keymap::{Cmd, InputState}; use keys::KeyPress; use tty::Sink; mod common; mod emacs; mod history; mod vi_cmd; mod vi_insert; fn init_editor(mo...
update c_taxcategory_trl set name = 'Regular Tax Rate 19% (Germany)', istranslated='Y', updatedby=99, /*user-id used to indicate "manual migration"*/ updated='2019-06-25 08:58:32.935051+03' /*select now();*/ where c_taxcategory_id=1000009 and ad_language='en_US';
###Pages * [services](https://boxing199.github.io/miid-front/services.html) * [about company](https://boxing199.github.io/miid-front/about.html) * [for developers](https://boxing199.github.io/miid-front/for_developers.html) * [main sliders](https://boxing199.github.io/miid-front/main.html) * [catalog](https://boxing199...
<?php namespace PaymentAssist\Type; class Economic { /** * @var float */ private $unem_prob; /** * @var int */ private $unem_index; /** * @var float */ private $econscore; /** * @var int */ private $econband; /** * @return float ...
export type Align = 'left' | 'right' | undefined; export type DateType = 'picker' | 'range' | undefined;
//! Test that the GC is not confused by an object that contains pointers to //! itself. extern crate cell_gc; #[macro_use] extern crate cell_gc_derive; mod aux; use aux::pairs::*; #[test] fn root_self_references() { cell_gc::with_heap(|hs| { // Create a root object that contains pointers to itself. ...
<?php /** * Created by PhpStorm. * User: mac * Date: 2017/10/12 * Time: 下午5:49 */ namespace app\modules\admin\controllers; use app\models\Conf; use app\models\Coupon; use app\models\CouponItem; use app\models\Dish; use app\models\WechatPromotion; use Yii; use yii\base\Exception; use yii\data\ActiveDataProvider; ...
--- id: getPrototypeOf title: Object.getPrototypeOf() --- ## 语法 ```ts getPrototypeOf(o: any): any; ``` ## 描述 该方法返回指定对象的原型(内部[[Prototype]]属性的值),即 `Object.getPrototypeOf(obj) === obj.__proto__` 返回 true. > TIP > > \_\_proto\_\_ 并不是语言本身的特性,这是各大厂商具体实现时添加的私有属性,虽然目前很多现代浏览器的 JS 引擎中都提供了这个私有属性,但依旧不建议在生产中使用该属性,避免对环境产生依赖。生产环境...
/* Controls the verbosity of the status log Default verbosity is zero, which is the least verbose messages. As the value increases, the amount of messages also increases. 0 - Normal logs 1 - More information on connections and error connections. 2 - Verbose Error messages 3 - Error messages about connec...
# frozen_string_literal: true module Algebra class Monomial # Class of parsers, which take input string symbol by symbol, `nil` as EOF, # and return parsed monomial. Basic usage of the parsers is as the # following: # ``` # parser = Parser.new # string = " \t -123.4\t xy^2z^3\t t^6 " ...
package Tuba::DB::Object::ModelRun; # Tuba::DB::Mixin::Object::ModelRun; use Tuba::Util qw[new_uuid]; __PACKAGE__->meta->primary_key_generator(sub { return new_uuid(); }); 1;
#!/bin/bash # aliases.sh # Caleb Evans # Enable aliases to be run as root alias sudo='sudo ' mkcd() { mkdir -p "$1" && cd "$1" } # Colorize directory listings alias ls='ls --color=auto' alias l='ls -la --color=auto' # Colorize grep matches (but not for piped output) alias grep='grep --color=auto' alias egrep='egrep -...
# mudstring A C/C++ library for working with MUD/MUSH/MU* ANSI strings.
from . import Bench201 from . import BenchNatsss from .Networks import get_network, get_num_networks, get_search_space_names from .Metrics import get_metrics, get_metric_names
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#[cfg(not(feature = "std"))] use crate::simulate_std::prelude::*; use bytes::Bytes; use core::fmt; use crate::{command::common::PbToBytes, pb::msg}; #[derive(Default, Debug, Clone)] pub struct FriendImage { pub image_id: String, pub md5: Bytes, pub size: i32, pub url: String, pub flash: bool, } i...
create table S3ContentRepository( uuid char(36) not null primary key, accessKeyId varchar(32) not null, secretAccessKey varchar(64) not null, bucketName varchar(1024) not null, prefix varchar(1014) );