text
stringlengths
27
775k
import asyncio import sys from os import path from arsenic import get_session, browsers, services, keys class AsyncTigerAlgebra: def __init__(self, loop=asyncio.get_event_loop()): apath = path.dirname(path.dirname(__file__)) sys.path.append(path.abspath(apath)) self.bin = apa...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BounceEase.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // ---------------------------------------------------------------------------------...
<?php session_start(); //bersihkan variabel SES_USER dari variabel session_unregister("SES_USER"); echo "<meta http-equiv='refresh' content='0; url=index.php'>"; ?>
# frozen_string_literal: true module AnnualBillingHelper include AnnualBillingDataFileFormat def annual_billing_csv_column_descriptions_for(regime) items = ["<dl class='row'>"] send("#{regime.to_param}_columns").each do |c| items << "<dt class='col-sm-4 col-md-3'>#{c[:header].to_s.humanize.titlecase...
gcc -Wall -fPIC -I.. -c prova.c gcc -shared -Wl,-soname,prova.so -o prova.so prova.o -lSDL -lpthread gcc -Wall -fPIC -I.. -c console.c gcc -shared -Wl,-soname,console.so -o console.so console.o
package tomasvolker.numeriko.core.probability.continuous import tomasvolker.numeriko.core.interfaces.array1d.double.DoubleArray1D import tomasvolker.numeriko.core.interfaces.factory.doubleArray1D import kotlin.random.Random interface ContinuousProbabilityDistribution { val mean: Double val variance: Double ...
import unittest import re from sqlalchemy.exc import IntegrityError from base import TestCase from factories import build_user from therminator import db from therminator.models import User class TestUser(TestCase): def test_password_verification(self): user = build_user(password='secret') assert u...
# Infeasible methods function InfeasibleProblem(prob::Problem, Z0::SampledTrajectory, R_inf::Real) @assert !isnan(sum(sum.(states(Z0)))) nx,nu = dims(prob) # original sizes N = TO.horizonlength(prob) # Create model with augmented controls model_inf = InfeasibleModel.(prob.model) # Get a tra...
#using Infiltrator function fold(dict::Dict) io = IOBuffer() TOML.print(io, dict) return take!(io) end unfold(bytes::Vector{UInt8}) = TOML.parse(String(copy(bytes))) struct Contract signatures::Vector end Contract(signatures::Vector{Vector{UInt8}}) = Dict[unfold(s) for s in signatures] PeaceCyphe...
package gaussian import ( "math" "github.com/mafredri/go-mathextra" ) // NormCdf returns the cumulative gaussian distribution (cdf) at the point of interest. func NormCdf(t float64) float64 { return mathextra.Erfc(-t/math.Sqrt2) / 2.0 } // NormPdf returns the probability density function (pdf) at the point of in...
CREATE PROCEDURE [dbo].[GetRandomMessages] @TemplateId VARCHAR(20), @Level INT AS BEGIN --DECLARE @Messages TABLE ( -- [Text] VARCHAR(100) NOT NULL --); SELECT TOP 5 [MessageId], [Text] --INTO @Messages FROM [dbo].[Messages] WHERE [TemplateId] = @TemplateId --AND (ABS(CAST((BINARY_CHECKSUM(*) * RAND())...
package com.hms.command; import com.hms.main.Route; import com.hms.main.Util; public class DistanceRequestHandler implements Receiver { @Override public void action() { float distance = Util.distanceCalculator(Route.getInstance().getPoints()); System.out.println("Distance covered is: "+ distan...
package com.wasu.demo19.controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @ClassName:UserController * @Description: TODO * @Author: Syl * @Date: 2021/7/27 14:3...
package justcompany.noughtsandcrosses; public enum Status { CLEAR(0), CROSS(1), NOUGHT(2); public Integer value; Status(Integer value) { this.value = value; } }
package io.koalaql.sql import io.koalaql.Assignment import io.koalaql.ddl.TableColumn import io.koalaql.dsl.value import io.koalaql.expr.* import io.koalaql.identifier.Named import io.koalaql.query.* import io.koalaql.query.built.* import io.koalaql.values.ValuesRow import io.koalaql.window.* import io.koalaql.window....
##Common API Action: get() ###Applies to All IWC APIs ###Retrieves a Given Node To retrieve a node stored in an API the `get` action is used on **a reference to the node**. The retrieval is asynchronous, and the response is passed through the resolution of the action's promise. ``` var ballRef = new iwc.data.Refer...
package ru.romashov.blogapp.utils; import org.jsoup.Jsoup; public class StringUtils { /** * Ref: https://core.telegram.org/bots/api#markdownv2-style * Characters '_‘, ’*‘, ’[‘, ’]‘, ’(‘, ’)‘, ’~‘, ’`‘, ’>‘, ’#‘, ’+‘, ’-‘, ’=‘, ’|‘, ’{‘, ’}‘, ’.‘, ’!‘ * must be escaped with the preceding character ’...
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(AudioSource))] public class Sfx : MonoBehaviour { public AudioClip[] Clips; private AudioSource Source; private int Index = -1; private bool InitializedIndex = false; // This is mostly just a way to let some...
package com.rc_long.Entity; import com.rc_long.anotation.RcLongTable; import com.rc_long.Anrequest.TableName; /** * 栏目实体类 * @author longge * */ @RcLongTable(name=TableName.ProgramaBean) public class ProgramaBean extends EntitiBaseBean<ProgramaBean> { /** * */ private static final long serial...
require "sanitize" require "htmlentities" require "yaml" class Blinkbox::Onix2Processor::Processor def normalize_tags(array) array.collect do |tag| (SHORT_TAGS[tag.downcase] || tag).downcase end end def sanitize_html(html) Sanitize.clean(html, @@valid_html) end def product_failure(state, ...
# Defining config file We want to move the config options into a config file: **webpack.config.js** ```js module.exports = { entry: './entry.js', output: { path: __dirname, filename: 'bundle.js' }, module: { loaders: [ { test: /\.css$/, loader: 'style!css' } ...
const REGEX_HAS_PARAMS = /\?\w+=/ const REGEX_URL_VALUE = /:([\w_]+)/gi const REGEX_URL_QUERY = /([?&])([\w_-]+)=:([\w_-]+)/gi const addURLParam = (url, param, value) => `${url}${REGEX_HAS_PARAMS.test(url) ? '&' : '?'}${param}=${value}` export const expandURL = (url, data = {}, method = 'get') => { const usedK...
if [[ $1 -eq 1 ]]; then > echo "1 was passed in first argument" > elif [[ $1 -gt 2 ]]; then > echo "2 was not passed in the first parameter" > else > echo "the first argument was passed was not 1 nor greater than 2" > fi
#pragma once // table.hpp: generate a posit table // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <iostream> #include <iomanip> #include <cmath> // for frexp/frexpf #include <typeinfo> ...
using System; namespace Bellight.Core.Misc { public interface IStaticLogProvider { void Error(string message); void Error(Exception ex, string messageTemplate); void Warning(string message); void Information(string message); } }
var pages = pages || {}; pages.agendamento = pages.agendamento || {}; pages.agendamento.model = pages.agendamento.model || {}; pages.agendamento.services = pages.agendamento.services || {}; pages.metadata = pages.metadata || {}; pages.dataServices = pages.dataServices || {}; pages.utils = pages.utils || {}; pages.ag...
require 'rails_helper' RSpec.describe Product, type: :model do it {should validate_presence_of :title} it {should validate_presence_of :price} it {should have_many(name :galleries)} it {should belong_to(:category)} it {should have_many(name :related_products)} it {should have_many(name :related)} end
import _pipe from './utils/_pipe'; import _arity from './utils/_arity'; import _tail from './utils/_tail'; import reduce from './reduce'; /** * 管道方法 从左到右执行函数 * @func * @member {Function} * @param {...Function} functions * @returns {*} * @tutorial compose * @example * * pipe(f1, f2, f3)({x:1,y:2}); * ...
namespace ECS.Config { using ECS.Common; using UnityEngine; using System.Collections.Generic; using System; public sealed class ConfigManager { Dictionary<string, ScriptableObject> _configDict = new Dictionary<string, ScriptableObject>(); public T Get<T>(string name = null) wh...
use strict; use warnings; use Test::More; use DNS::Resolver; my $resolver = DNS::Resolver->new; my $domain = "www.google.com"; my @ip = $resolver->resolve($domain); ok @ip; note "$domain -> $_" for @ip; my $ok; for my $ip (@ip) { my $domain = $resolver->reverse_resolve($ip); if ($domain) { note "$ip...
import React, { Fragment } from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Box from './Box'; storiesOf('Box').add('with text inside', () => ( <Fragment> <Box m={1} p={1} color="white" backgroundColor="tomato"> <p>paragraph inside a box m 1 p 1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using J = Newtonsoft.Json.JsonPropertyAttribute; namespace NugetAuditor.Core { public partial class CatalogEntryResponse { [J("@id")] public string Id { get; set; } [J("isPrerele...
%%------------------------------------------------------------------- %% @author %% ChicagoBoss Team and contributors, see AUTHORS file in root directory %% @end %% @copyright %% This file is part of ChicagoBoss project. %% See AUTHORS file in root directory %% for license information, see LICENSE file ...
package compose.tablature trait StringHelpers { object StartsWithChar { def unapply(str: String) = if(str.length == 0) { None } else { Some((str.charAt(0), str.substring(1))) } } object StartsWithFret { def unapply(str: String) = { if(str.length == 0) { No...
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel...
import { Engine } from './engine'; import { Dictionary, ListDefinition, TypeDefinition } from './types'; import { Expression } from './expression'; import { BehaviorSubject, concat, Observable, throwError, TimeoutError, } from 'rxjs'; import { LinkError } from './errors'; import { catchError, ...
import React from "react"; import { View, StyleSheet } from "react-native"; import AppConfiguration from "../config/AppConfiguration"; import ColorPallete from "../config/ColorPallete"; import AppText from "./AppText"; import AudioPlayer from "./AudioPlayer"; import ImageMessage from "./ImageMessage"; import TextMessa...
#!/usr/bin/env python3.6 import uuid from unittest.mock import patch from ... import UploadTestCaseUsingMockAWS, EnvironmentSetup from . import client_for_test_api_server from upload.common.uploaded_file import UploadedFile from upload.common.upload_area import UploadArea from upload.common.validation_event import V...
```{include} ../../src/elchempy/README.md ```
import * as reducer from "../reducer"; import * as sagas from "../sagas"; import * as selectors from "../selectors"; import { createJWT } from "../index"; describe("createJWT", () => { it("should create object correctly", () => { const mockCreateReducer = jest.spyOn(reducer, "createReducer").mockReturnVal...
// Copyright 2017 HP Development Company, L.P. // SPDX-License-Identifier: MIT package com.hp.jipp.encoding /** * An [AttributeType] for values bitwise OR'd together. Only used by CUPS. * Values are expressed as Long to allow for values of 0x80000000 and above, but are * transmitted as 4-byte integers. */ class B...
<?php declare(strict_types = 1); namespace Com\Incoders\SampleMS\Domain\Query\File; use Com\Incoders\Cqrs\Application\Cqs\QueryInterface; class ListFilesQuery implements QueryInterface { }
import checksum = require('check-sum'); import * as fs from 'fs'; const stream = fs.createReadStream('package.json'); checksum(stream, { md5: 'asdfasdfasdf', sha1: 'asdfasdfasdf' }, err => { err; // $ExpectType any }); checksum('package.json', { md5: 'asdfasdfasdf', sha1: 'asdfasdfasdf' }, err =>...
import i18next from 'i18next'; import resources from '../translations.json'; import { initReactI18next } from 'react-i18next'; import config_constants from '../constants'; import { createContext } from 'react'; i18next.use(initReactI18next).init({ lng: 'en', resources }); const defaultT = i18next.getFixedT(co...
#!/bin/bash http_port=$1; game_mode=$2 stack build asteroids && stack exec server $http_port $game_mode;
package org.jetbrains.plugins.scala.codeInspection.scaladoc import org.jetbrains.plugins.scala.codeInspection.ScalaQuickFixTestBase class ScalaDocUnbalancedHeaderInspection2Test extends ScalaQuickFixTestBase { override protected val classOfInspection = classOf[ScalaDocUnbalancedHeaderInspection] override protect...
#!/bin/bash root -l $@ ${ARTUSPATH}/Utility/scripts/tBrowser.C
frappe.ui.form.on("Stock Entry", { stock_entry_type: function (frm) { frm.toggle_reqd( "customer_cf", ["Material Receipt", "Material Issue"].includes(frm.doc.stock_entry_type) ); frm.toggle_reqd( "received_as_cf", ["Material Receipt"].includes(frm.doc.stock_entry_type) ); f...
composer install yarn install yarn build & php bin/console doctrine:schema:create php bin/console server:run 0.0.0.0:80
@extends('layouts.app', ['page' => __('Icons'), 'pageSlug' => 'icons']) @section('content') <subjects/> @endsection @push('js') <script src="{{ mix('js/app.js') }}"></script> @endpush
;;;; priority-queue-benchmark.asd (asdf:defsystem #:priority-queue-benchmark :description "Figure out the fastest priority queue implementation yourself." :author "Michał \"phoe\" Herda <phoe@disroot.org>" :license "MIT" :version "0.0.1" :serial t :depends-on (;; Benchmark dependencies #:alexandria #...
<?php namespace Intervention\Gif; class GraphicControlExtension extends AbstractExtension { public const LABEL = "\xF9"; public const BLOCKSIZE = "\x04"; /** * Delay time of instance * * @var integer */ protected $delay = 0; /** * Disposal method of instance * ...
(ns com.yetanalytics.pan.graph (:require [clojure.spec.alpha :as s] [loom.graph] [loom.attr] [loom.alg])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Graph functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
#!/usr/bin/env bash cd ../DIS-java-core && mvn clean install -DskipTests cd - mvn clean package EXAMPLE_TAR=DIS-java-example-1.9.0-deploy.tar.gz ROOT_DIR=./env mkdir -p $ROOT_DIR cd $ROOT_DIR serverID = 1 for((folderNum=$serverID;folderNum<=128;folderNum = folderNum+23) do mkdir node$folderNum cd node$folderNum ...
#pragma once #include <stdio.h> #include <string.h> #include <stdlib.h> #include <string> #include <iostream> #ifdef _WIN32 #include <cstdint> //define something for Windows (32-bit and 64-bit, this part is common) #ifdef _WIN64 //define something for Windows (64-bit only) #endif #endif #define FIN...
package com.technocreatives.beckon.mesh.data.serializer import com.technocreatives.beckon.mesh.data.Model import com.technocreatives.beckon.mesh.data.ModelData import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.KSerializer import kotlinx.serialization.Serializer import kotlinx.seri...
#/usr/bin/env bash for i in {1..10000} do echo "#### $i ####" curl -X POST -F image_file=@$1 http://localhost:1234/post > /dev/null done
/* * 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 ...
package org.codehaus.xfire.client; import java.util.List; import javax.xml.stream.XMLStreamReader; import org.codehaus.xfire.MessageContext; import org.codehaus.xfire.XFireRuntimeException; import org.codehaus.xfire.exchange.MessageExchange; import org.codehaus.xfire.exchange.OutMessage; import org.codehau...
/* Copyright 2013 Twitter, 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, software distr...
export opt_gauss_newton! """ (iter,resnorm)=opt_gauss_newton!( graph, objfun, discr; maxit = 100, logger = 0, errtype = :abserr, stoptol = 1e-6, cref = get_all_cref(graph), input = :A, γ0 = 1.0, linlsqr = :backslash, dr...
<?php if ( ! defined('YPATH')) exit('Access Denied !'); /** * Yalamo framework * * A fast,light, and constraint-free Php framework. * * @package Yalamo * @author Evance Soumaoro * @copyright Copyright (c) 2009 - 2011, Evansofts. * @license http://projects.evansofts.com/yalamof/license.html * @link...
use ast::*; use namespace::Namespace; use line_info::LineInfo; use std::rc::Rc; #[derive(Clone, Debug, PartialEq, Eq)] pub struct DebugInfo { pub kind: DebugKind, pub segment_span: LineInfo, pub common: CommonInfo, } #[derive(Clone, Debug, PartialEq, Eq)] pub enum DebugKind { VarSub(Namespace, Path), ...
package app.allever.android.lib.core.base import android.app.Dialog import android.content.Context import android.graphics.Color import android.os.Bundle import android.view.Gravity import android.view.WindowManager abstract class AbstractDialog : Dialog { constructor( context: Context, styleRes:...
TODO: * What are filters? * List+explain all existing filters (pongo2 + pongo2-addons) Implemented filters so far which needs documentation: * escape * e (alias of `escape`) * safe * escapejs * add * addslashes * capfirst * center * cut * date * default * default_if_none * divisibleby * first * floatformat * get_dig...
#!/usr/bin/bash pushd traditional/minecraft # molecule destroy --all sed -i -e 's/server.jar/spigot.jar/' templates/minecraft.service.j2 git add templates/minecraft.service.j2 git commit -m "Breaking the role for my demo" git push origin master molecule converge && WAIT_SECONDS=5 molecule verify molecule converge -s ...
class BookRoutePath { BookRoutePath(this.id, this.isUnknown); BookRoutePath.home() : this.id = null, this.isUnknown = false; BookRoutePath.details(this.id) : isUnknown = false; BookRoutePath.unknown() : this.id = null, this.isUnknown = true; final int? id; final bool isUnknow...
using System; using RiskAnalysisTool.Instruments; namespace RiskAnalysisTool.MobileApp.ViewModels { internal class BondDetailViewModel : InstrumentDetailViewModel<Bond> { private DateTime _maturity; private double _price; public DateTime Maturity { get { return _ma...
# eGov-Base 전자정보프레임워크 초기 설정 |<center>No<center>|<center>적용기술<center>|<center>Version<center>| |:------:|:------:|:------:| |<center>1<center>|<center>Java-OpenJDK<center> |<center>1.8<center>| |<center>2<center>|<center>eGovFramework<center> |<center>3.8<center>| |<center>3<center>|<center>Tomcat<center> |<center>8...
if __name__ == "__main__": import sys sys.path.insert(0, "..") sys.path.insert(0, "../..") import unittest from hamcrest.core.core.isanything import * from hamcrest_unit_test.matcher_test import MatcherTest __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see Lic...
#!/usr/bin/env bash SRC="/apc/RecSys-MPD" # source code directory META="/apc/metadata" # metadata directory CID="" # spotify developer client ID CSEC="" # spotify developer client secret # go to source code directory and update project cd $SRC git pull # run audio feature extraction application python3 $SRC"/pytho...
import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:flutter/material.dart'; import 'package:molarity/widgets/chemoinfomatics/data.dart'; class PreferencedCompoundsProvider extends ChangeNotifier { final List<CompoundData> savedCompounds = []; void removeSavedCompountAt(int index) { savedCompo...
package api import ( "github.com/cmatrixprobe/proxygool/store" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "github.com/spf13/viper" "net/http" ) // Run HTTP server. func Run() { gin.SetMode(gin.ReleaseMode) r := gin.New() r.Use(gin.Recovery()) r.GET("/", RandomProxyHandler) r.GET("/https", HTTP...
#pragma once #ifndef TTCPIP_H #define TTCPIP_H #include <memory> #include "tcommon.h" #include <QString> #include <QThread> //--------------------------------------------------------------------- #ifdef TFARMAPI #undef TFARMAPI #endif #ifdef WIN32 #ifdef TFARM_EXPORTS #define TFARMAPI __declspec(dllexport) #else...
# oop.py """Introductory Labs: Object Oriented Programming. <Name> <Class> <Date> """ class Backpack(object): """A Backpack object class. Has a name and a list of contents. Attributes: name (str): the name of the backpack's owner. contents (list): the contents of the backpack. """ # P...
# frozen_string_literal: true FactoryBot.define do factory :offender_category, class: HmppsApi::OffenderCategory do initialize_with { HmppsApi::OffenderCategory.new(attributes.reject { |_k, v| v.nil? }.stringify_keys) } classificationCode { 'A' } classification { 'Cat A' } approvalDate { 3.days.ago ...
/* * Copyright 2018 Analytics Zoo 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 law or...
package manifold_test import ( "context" "fmt" "testing" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/terraform" "github.com/manifoldco/go-manifold/integrations" "github.com/manifoldco/go-manifold/integrations/primitives" ) f...
# GridArrays.jl Documentation For a full description of the functionality use the manual: ```@contents Pages = ["man/GridArrays.md"] ```
import 'instruction.dart'; /// The base class to derive from when implementing assembler syntax helpers abstract class AsmBuilderBase { List<String> _instructions = []; AsmBuilderBase(); /// Builds the string to be assembled by the Keystone engine String build() { return _instructions.join(';'); } /...
package Parse::Template::Directives::JS; use strict; our $VERSION = 0; use Perl::Module; use Error::Logical; use Data::Format::XFR; use Data::Hub::Util qw(:all); our $Xfr = Data::Format::XFR->new('base64'); # # XXX Changes made to the /sys/response/head need to be reflected # in js.lsn.includeHeadJS # sub new { m...
package org.vaadin.addons.vaactor import Forwarder._ import TestComponent._ import TestServlet._ import TestUI._ import akka.actor.{ ActorIdentity, ActorRef, Identify } class VaactorSpec extends WebBrowserSpec { var forwarder: ActorRef = _ "remote ActorSystem should be found" in { VaactorServlet.system.act...
# markdown-extensions [![Build Status](https://travis-ci.org/sindresorhus/markdown-extensions.svg?branch=master)](https://travis-ci.org/sindresorhus/markdown-extensions) > List of Markdown file extensions The list is just a [JSON file](markdown-extensions.json) and can be used wherever. ## Install ``` $ npm instal...
source cleanup.sh vivado -mode batch -source create_proj.tcl -source sim_proj.tcl source test_dpi.sh
/* Copyright (C) 2016 -2017 Jerry Jin */ #ifndef capfloor_h #define capfloor_h #include <nan.h> #include <string> #include <queue> #include <utility> #include "../quantlibnode.hpp" #include <oh/objecthandler.hpp> using namespace node; using namespace v8; using namespace std; class CapFloorWorker : public Nan::...
var _a_a_b_b_8h = [ [ "AABB", "class_a_a_b_b.html", "class_a_a_b_b" ], [ "ShortestDistance_AABB_Point", "_a_a_b_b_8h.html#acdd878bc13924b0296de2eedd3c67a5a", null ], [ "ShortestDistanceSquareAABB_Segment1D_Point", "_a_a_b_b_8h.html#abe938b9bf761a88c071bfaa6f6bb0415", null ] ];
import { useQuery } from "@apollo/client"; import { Spin } from "antd"; import { USER_DETAIL_HOME_QUERY } from "../gqlQueries"; import { UserDetail } from "../components/UserDetail"; import type { UserDetailHomeResponseType } from "../types"; const UserHomePage: React.FC = () => { const { error, data, loading } = ...
module GithubBackup class Backup attr_reader :debug, :username, :client, :gists, :starred_gists, :wikis, :config def initialize(username, options = {}) @username = username @debug = false @gists = options.delete(:gists) @starred_gists = options.delete(:starred_gis...
$$( document ).ready(function() { console.log( "ready!" ); }); const form = document.querySelector(".top-banner form"); const msg = document.querySelector(".top-banner .msg"); const list = document.querySelector(".ajax-section .cities"); var submitBtn = document.querySelector("#searchweather"); var outputArea = docum...
import { style, styleMap } from 'sku/treat'; import { Properties } from 'csstype'; import { darken, lighten } from 'polished'; import { getLightVariant, isLight, mapToStyleProperty } from '../../utils'; import { Theme } from 'treat/theme'; const spaceMapToCss = ( theme: Theme, cssPropertyName: keyof Properties, ...
* 使用img.member-logo无效,用注释掉的css有效,为什么? ``` <div class="rightwarp"> <img class="menber-logo" src="../03/img/icon01.png" alt="" > ``` ``` .rightwarp{float: right;padding: 20px;background-color: #fff;} .member-logo{display: block;width:80px;height: 80px;} /*.rightwarp img{display: block;width:80px;height: 80px;}*/ ``` ...
<?php namespace App\Http\Controllers\Alipay; use App\Models\Device; use \App\Utils\IdGenerator; use App\Utils\IotDevice; use App\Models\Trade; use App\Models\UserVipCard; use Carbon\Carbon; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; use Illuminate\Support\Faca...
<?php namespace App\Admin\Repositories; use App\Models\AssetsLog as Model; use Dcat\Admin\Repositories\EloquentRepository; class AssetsLog extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; /** * 类型. */ const OPERATE_TY...
import { getAnimation, registerAnimation } from '../../../src/animate/animation'; describe('Animation', () => { it('registerAnimation && getAnimation', () => { registerAnimation('test', () => {}); expect(getAnimation('text')).toBeUndefined(); expect(getAnimation('whatever')).toBeUndefined(); }); });
package edgedb.internal.protocol; import lombok.Data; @Data public class DataElement implements ServerProtocolBehaviour { int dataLength; byte[] dataElement; byte[] dataElementInBinary; String dataElementInString; String[] dataElementInStringArray; }
package javathreads.examples.ch02; import java.util.Vector; /** * 字母事件处理器 */ public class CharacterEventHandler { private Vector listeners = new Vector(); public void addCharacterListener(CharacterListener cl) { listeners.add(cl); } public void removeCharacterListener(CharacterListener cl...
<?php use Illuminate\Database\Seeder; use database\seeds\SeederHelper; use App\Models\Bible\BibleEquivalent; use App\Models\Bible\BibleBook; use App\Models\Bible\Book; use App\Models\Bible\Bible; use Illuminate\Support\Facades\DB; class bible_books_pivot_seeder extends Seeder { /** * Run the database seeds. ...
namespace EventHorizon.Game.Server.Asset.Common.Import.Model; using EventHorizon.Game.Server.Asset.Common.Model; public class ImportArtifact : ExportArtifactBase { }
#!/bin/bash source setenv.sh echo "Gemfire Shell (gfsh) is command-line interface to launch, manage and monitor Gemfire processes" echo "Type connect to connect to the grid if its running" gfsh
package mnemonic import ( "bytes" "testing" ) func TestMnemonic(t *testing.T) { // new phrase, err := New() if err != nil { t.Fatal(err) } // t.Logf("Phrase: %v", phrase) // get private key from phrase pk, err := Recover(phrase, "password") if err != nil { t.Fatal(err) } // t.Logf("Private Key: %v",...