text
stringlengths
27
775k
# frozen_string_literal: true RSpec.describe RatingChgkV2::Rest::Players do let(:player_id) { 1110 } specify '#player' do player = VCR.use_cassette('players/player') do test_client.player(player_id) end expect(player.id).to eq(player_id) expect(player.name).to eq('Александр') expect(pla...
package org.isdp.vertx.gateway.circuit; import io.vertx.circuitbreaker.CircuitBreaker; import io.vertx.circuitbreaker.CircuitBreakerOptions; import io.vertx.core.Promise; import io.vertx.core.Vertx; /** * 使用断路器 * 使用断路器需要按以下步骤进行: * * 创建一个断路器,并配置成你所需要的超时,最大故障次数等参数 * * 使用断路器执行代码 * * 重要!!! 断路器应该是稳定的单例,而不是每次使用就重新创...
-- Copyright 2021 The Nomulus Authors. 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.apache.org/licenses/LICENSE-2.0 -- -- Unless required by a...
# customize pixels through numpy simple script to work on numpy 3d-array by modify it's values by color values you can get drawable image 🎴 .. read and show using opencv modules let creativity go on 👌♥️ | colorful pixels ;D | :---: | ![gif](g1.gif) | ![gif](g2.gif)
/* * Copyright 2017-2022 Avery Carroll and Logan Devecka * * 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 app...
package org.vitrivr.adampro.data.datatypes.vector import org.apache.spark.sql.types.{ArrayType, DataType} import org.vitrivr.adampro.data.datatypes.Wrapper import org.vitrivr.adampro.data.datatypes.vector.Vector.VectorBaseSparkType /** * ADAMpro * * Ivan Giangreco * January 2017 */ object DenseVectorWrapper...
# pyzorsocket pyzorsocket exposes [pyzor](https://github.com/SpamExperts/pyzor) on a socket. ## Protocol The protocol is very simple. The client sends a command in all-caps followed by a newline (`\n`). The command corresponds to a pyzor command such as `check`. The client then sends the entire e-mail to be checked, ...
--- layout: post title: "[LeetCode] 171. Excel Sheet Column Number" date: 2019-09-05 comments: true --- ### Excel Sheet Column Number [Link to original Problem on LeetCode](https://leetcode.com/problems/excel-sheet-column-number) Given a column title as appear in an Excel sheet, return its correspondi...
create table achievements_hunt.queue_achievements_update ( id serial primary key, achievement_id integer not null, game_id integer not null, platform_id integer not null, dt_insert timestamp with time zone default current_timestamp not null, operation varchar(32) ); alter table ach...
use std::collections::HashMap; use usiagent::shogi::*; use usiagent::rule::Rule; use usiagent::rule::State; use super::*; #[test] fn test_responded_oute_sente() { let blank_banmen = Banmen([[Blank; 9]; 9]); let mvs:Vec<Move> = vec![ Move::To(KomaSrcPosition(9-5,8+1),KomaDstToPosition(9-4,7+1,false)...
export HADOOP_BASE_IMAGE="prestodev/cdh5.15-hive" export TESTS_HIVE_VERSION_MAJOR="1" export TESTS_HIVE_VERSION_MINOR="1" export DISTRO_SKIP_GROUP=skip_on_cdh
// { dg-do compile } // { dg-additional-options "-ftrapv" } void doSomething(int dim, double *Y, double *A) { for (int k=0; k<dim; k++) Y[k] += __builtin_fabs (A[k]); }
require 'spec_helper' describe Geo::RepositoryDeletedEventStore do let(:project) { create(:project, path: 'bar') } let!(:project_id) { project.id } let!(:project_name) { project.name } let!(:repo_path) { project.full_path } let!(:wiki_path) { "#{project.full_path}.wiki" } let!(:storage_name) { project.repo...
require_relative 'base' class GdsApi::NeedApi < GdsApi::Base def needs(options = {}) query = query_string(options) get_list!("#{endpoint}/needs#{query}") end def need(need_id) get_json("#{endpoint}/needs/#{CGI.escape(need_id.to_s)}") end def create_need(need) post_json!("#{endpoint}/needs...
# Airship iOS SDK Migration Guides * [SDK 14.x to 14.5](migration-guide-14.5.md) * [SDK 13.2 to 14.x](migration-guide-13-14.md) * [SDK 13.0/13.1 to 13.2](migration-guide-13.2.md) * [SDK 12.x to 13.x](migration-guide-12-13.md) * [SDK 11.x to 12.x](migration-guide-11-12.md) * [SDK 10.x to 11.x](migration-guide-10-11.md)...
/* * Copyright (c) 2013 Akexorcist * * 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 * to use, copy, modify, merge, publish,...
package spbu_coding.graph_analyzer.model.impl.algorithm.layout.forceatlas2 import javafx.concurrent.Task import spbu_coding.graph_analyzer.model.Graph import spbu_coding.graph_analyzer.model.GraphAlgorithm import spbu_coding.graph_analyzer.model.Vertex import spbu_coding.graph_analyzer.model.impl.algorithm.layout.Abst...
module PryCommandSetRegistry::Commands # Pry command providing a means to import a command set into the current Pry # session. class ImportSetCommand < Pry::ClassCommand match "import-set" description "Import a Pry command set." banner <<-BANNER Usage: import-set <command_set_name> Import...
using NUnit.Framework; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using System; using Dexter.Analyzer.Tests.Helpers; using Dexter.Analyzer; namespace Dexter.Analyzer.Tests { [TestFixture] public class NoFileCommentAnalyzerTest : CodeFixVerif...
BEGIN; ALTER TABLE `sicherungen` ADD `active` BOOLEAN NOT NULL DEFAULT FALSE COMMENT 'Ist die Sicherung aktiv?'; ALTER TABLE `sicherungsinhalte` ADD `active` BOOLEAN NOT NULL DEFAULT FALSE COMMENT 'Ist die Sicherung aktiv?'; COMMIT;
# Generated with SMOP 0.41-beta try: from smop.libsmop import * except ImportError: raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None # Script_SwingOptions.m ################################################################## ### SWING OPTION PRICER (RUN S...
module Notification where import DBus.Notify import System.Info (os) notifySend :: Text -> IO () notifySend msg = case os of "linux" -> do client <- connectSession let startNote = appNote { summary="Next buses" , body=Just $ Text (toString ms...
""" cf_hidden_feature.py ~~~ This module contains collaborative filtering algorithm, based on matrix factorization to find hidden features in user rating. It includes SVD and Gradient Descent methods. :auther: Alexander Z Wang """ import numpy import json def full_rating_matrix...
import shutil import tempfile from django import forms from django.conf import settings from django.contrib.auth import get_user_model from django.core.files.uploadedfile import SimpleUploadedFile from django.test import Client, TestCase from django.urls import reverse from posts.models import Group, Post User = get...
# Ansible ```yaml # Underlying process still updating # src : https://github.com/ansible/ansible/issues/25414#issuecomment-477260545 - name: Wait for any possibly running unattended upgrade to finish raw: systemd-run --property="After=apt-daily.service apt-daily-upgrade.service" --wait /bin/true ```
package io.tempo.internal.domain.useCases import io.tempo.AutoSyncConfig import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.collect import kotlinx.coroutines.flow.mapLatest import kotlinx.coroutines.flow.onStart internal class PeriodicallySyncUC( private val autoSyn...
class Terraspace::CLI::New class Module < Sequence component_options.each { |args| class_option(*args) } argument :name def create_module puts "=> Creating new module called #{name}" plugin_template_source(@options[:lang], "module") # IE: plugin_template_source("hcl", "module") dest = ...
from django.utils.timezone import now class DateFunctions: def get_functions(self): return { "now": lambda **kwargs: now(), "date": lambda year, month, day, **kwargs: datetime(year, month, day), }
##Cómo replicar el problema? Por favor explique con detalles de que forma puedo replicar el problema. ## En cu'al versión se manisfestó dicho problema? En caso de que sean varias díganos cuales versiones.
const createNodeHelpers = require('gatsby-node-helpers').default const { createNodeFactory } = createNodeHelpers({ typePrefix: 'Strapi', }) exports.Node = (type, node) => createNodeFactory(type, node => { node.id = `${type}_${node.strapiId}` return node })(node)
package com.revolut.recyclerkit.animations.holder import androidx.recyclerview.widget.RecyclerView /* * Copyright (C) 2019 Revolut * * 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 * *...
#!/usr/bin/env zsh # 16.2.1 Changing Directories {{{2 setopt AUTO_CD # Change to a directory just by typing its name setopt AUTO_PUSHD # Make cd push each old directory onto the stack setopt CDABLE_VARS # Like AUTO_CD, but for named directories setopt PUSHD_IGNORE_DUPS # Don't push duplicat...
<?php namespace core\tools\test; /** * Contains the test action methods. * @package core\control\tools */ abstract class UnitTest{ /** * @var string $method */ private static $method; /** * Set the last called method * @param $method * @ignore */ private function setM...
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using DB1_Project_WEBPORTAL.Models.ModelControllers; namespace DB1_Project_WEBPORTAL.Models.ModelControllers { public class PropertyModelController { private SqlConnection connection; private SqlCom...
class Barbeque::RetryConfig < Barbeque::ApplicationRecord belongs_to :job_definition validates :retry_limit, numericality: { only_integer: true, greater_than: 0 }, allow_nil: true validates :base_delay, numericality: { greater_than: 0.0 }, allow_nil: true validates :max_delay, numericality: { greater_than: 0 }...
require 'simplecov' SimpleCov.start require 'rspec' require 'hero' include Hero # simple proc-based components Paragraph = ->(*children, **props) { body = props.delete(:text) { raise 'paragraph must have text prop' } [ :paragraph, *children, **(props.merge(body: body)) ] } Container = ->(*children, **props) { [...
package com.aspose.slides.examples.Slides.Charts; import com.aspose.slides.ChartDataSourceType; import com.aspose.slides.ChartType; import com.aspose.slides.DataSourceType; import com.aspose.slides.ErrorBarValueType; import com.aspose.slides.IChart; import com.aspose.slides.IChartDataPointCollection; import com.aspose...
// obje tanımlama çeşitleri /* let user = {}; let user = Object.create({}); let user = new Object({}); */ /* let isim = "isim"; let user = { name: "yahya", ["email"]: "yahya@yahya.com", [isim]: "kerem", //dinamik property isim, //yukarıda tanımlayıp değişkene virgül ekleyerek çağırabiliriz. }; console.log(user...
package org.mydaily.ui.view.custom import android.app.Dialog import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.WindowManager import org.mydaily.databinding.LayoutGoalAchieveDialogBinding class GoalAchieveDialog(context: Context) : Dialog(context) { pri...
use crate::ast::Type; use crate::lexer::lex::Token; use crate::parser::util::{expect_and_consume, ParseError}; use im::Vector; pub fn parse_type( tokens: &mut Vec<(Token, std::ops::Range<usize>)>, ) -> Result<(Type, std::ops::Range<usize>), ParseError> { match tokens.pop() { Some((Token::Identifier(id)...
import vec3 from "./lib/tsm/vec3"; import { mix, flatten } from "./helpers"; /** helper function for generating vertices of a cube */ const quad = (a: number, b: number, c: number, d: number): vec3[] => { const vertices = [ new vec3([-0.5, -0.5, 0.5]), new vec3([-0.5, 0.5, 0.5]), new vec3([0.5, 0.5, 0.5]...
#!perl -T use strict; use warnings; =head1 TEST PURPOSE These tests make sure that invalid configurations passed to setup/build_exporter throw exceptions. =cut use Test::More tests => 6; BEGIN { use_ok('Sub::Exporter'); } eval { Sub::Exporter::build_exporter({ exports => [ qw(foo) ], collectors => [ ...
import Grid from '@material-ui/core/Grid'; import React from 'react'; import { GradientPath, GradientPolygon, StopColor } from 'SharedComponents/SvgElements'; import { ColorToken } from 'styles/colorThemes/colorThemeTypes'; import { DesignContainerDiv } from 'SharedComponents/DesignDetailsElements'; enum SparkGradien...
<?php /** * Events App Custom Event * Webino Example */ use WebinoAppLib\Event\AppEvent; use WebinoAppLib\Event\RouteEvent; use WebinoAppLib\Response\Content\SourcePreview; use WebinoAppLib\Router\DefaultRoute; require __DIR__ . '/../../vendor/autoload.php'; $app = Webino::application()->bootstrap(); /** * Bind...
import io import json import re import shutil import zipfile from datetime import datetime from os import path import chardet from django.conf import settings from django.contrib import messages from django.core.files.base import ContentFile, File from django.db import transaction from django.http import Http404 from ...
import * as Test from "../src/types/Test"; import { identity, pipe, sortBy, toAsync } from "../src"; const { checks, check } = Test; const res0 = sortBy(identity, []); const res1 = sortBy(identity, [1, 2, 3]); const res2 = sortBy(identity, "abc"); const res3 = sortBy(identity, toAsync([1, 2, 3])); const res4 = sortBy...
# Digital signal plots function PlotDigital(x::AbstractArray{T}, y::AbstractArray{T}; label_id::String="", count::Integer=min(length(x), length(y)), offset::Integer=0, stride::Integer=1) where {T<:ImPlotData} return PlotDigital(label_id, x, y, count, offset, stride * sizeof...
# LANGUAGES - SQL | Subdomain | Challenges Completed | | :--- | :---: | | [Basic Select](basic-select/README.md) | 20/20 | | [Aggregation](aggregation/README.md) | 7/17 | | [Basic Join](basic-join/README.md) | 3/8 |
#include "drake/manipulation/planner/differential_inverse_kinematics.h" #include <memory> #include <optional> #include <random> #include <string> #include <gtest/gtest.h> #include "drake/common/eigen_types.h" #include "drake/common/find_resource.h" #include "drake/common/test_utilities/eigen_matrix_compare.h" #inclu...
import { browser, by, element } from 'protractor'; export class AppPage { static navigateTo() { return browser.get('/'); } } export class AppHeader { static getTitleText() { return element(by.css('app-root .app-title')).getText(); } } export class AppEditor { static edit(text: string) { return ...
import { PolicyQuery, UMAPolicyService } from '../../uma2'; import { EnvironmentContext } from '../../workflow/get-namespaces'; import { ReportOfNamespaces } from './namespaces'; interface ReportOfNamespaceAccess { namespace: string; subject: string; scope: string; } /* */ export async function getNamespaceAcc...
<?php namespace App\Http\Controllers; use App\Follower; use Illuminate\Http\Request; use App\User; use Auth; use Illuminate\Support\Facades\Storage; use Illuminate\Http\Response; class ProfileController extends Controller { public function showProfile(Request $request,$slug){ $user = User::where("slug...
CREATE TABLE token ( id TEXT NOT NULL, value TEXT NOT NULL, expiry_date TIMESTAMP NOT NULL, CONSTRAINT pk_token PRIMARY KEY (id) ); GRANT SELECT, INSERT, DELETE ON token TO ${spring.datasource.username};
#!/bin/sh set -e # This script created the *_ilp64.f files. Although they're derived files, I've # committed them to version control anyway to simplify things for end users. # The rest of this comment explains the need for these files. # # Some builds of BLAS/LAPACK use 64-bit integer indexes (originally not the # ca...
package org.elm.ide.formatter.settings import com.intellij.application.options.CodeStyleAbstractConfigurable import com.intellij.application.options.CodeStyleAbstractPanel import com.intellij.application.options.IndentOptionsEditor import com.intellij.application.options.TabbedLanguageCodeStylePanel import com.intelli...
var structIogn_1_1SharedNode = [ [ "SharedNode", "structIogn_1_1SharedNode.html#a6053bf8e8e66caf32002396608b1d14b", null ], [ "nodeId", "structIogn_1_1SharedNode.html#aa33ba7c5eee6d8890b72f6dd7843dbfb", null ], [ "procId", "structIogn_1_1SharedNode.html#a2bf3316e901fb310e2fc631b89ad595b", null ] ];
package uinput import ( "fmt" "io" "os" "syscall" ) // A Dial is a device that will trigger rotation events. // For details see: https://www.kernel.org/doc/Documentation/input/event-codes.txt type Dial interface { // Turn will simulate a dial movement. Turn(delta int32) error io.Closer } type vDial struct { ...
require "ruby_event_store" require "ruby_event_store/browser/app" require "support/test_client" require_relative '../../support/helpers/rspec_defaults' require_relative '../../support/helpers/mutant_timeout' ENV['RACK_ENV'] = 'test' require "capybara/rspec" require "selenium-webdriver" Capybara.register_driver :chro...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace TouchBridge.Forwarders.Mouse { /// <summary> /// Singleton mouse controller. /// </summary> public class Mouse { [DllImport("user32.dll", SetLastError = tru...
<?php use Lit\Kernel\LitConfig; use Lit\Kernel\TestingConfig; /** * @var TestingConfig $config * @var LitConfig $litConfig */ $config->setName('test-data'); $config->setSuffixes(['ini']); include dirname(__FILE__).DIRECTORY_SEPARATOR.'dummy_format.php'; $config->setTestFormat(new \XuintOutput\DummyFormat($litConfig)...
package easy; import java.util.Arrays; public class AssignCookies { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int i = 0; for(int j=0;i<g.length && j<s.length;j++) { if(g[i]<=s[j]) i++; } return i; } }
import Service from '@ember/service'; import lax from 'lax.js'; import { debug } from '@ember/debug'; export default class LaxService extends Service { userCount = 0 constructor() { super(); lax.setup(); } addWatchedElement( domNode, name ) { debug(`Adding watched element ${name}`); this.user...
use super::*; #[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] #[repr(transparent)] pub struct ResetFlags(pub(crate) u8); impl ResetFlags { const_new!(); //bitfield_bool!(u8; 0, ewram, with_ewram, set_ewram); //bitfield_bool!(u8; 1, iwram, with_iwram, set_iwram); bitfield_bool!(u8; 2, palram, with_palram,...
using UnityEngine; using System.Collections; public class GUITextureMgr : MonoBehaviour { /*-----------------------------------Public Variables------------------------------------*/ /*-----------------------------------Private Variables-----------------------------------*/ private GUIManager ptrGUIMgr; private ...
package com.lykke.matching.engine.database import com.lykke.matching.engine.daos.TypePerformanceStats import com.lykke.matching.engine.daos.monitoring.MonitoringResult interface MonitoringDatabaseAccessor { fun saveMonitoringResult(monitoringResult: MonitoringResult) fun savePerformanceStats(stats: TypePerfor...
nacos 注册服务目前只支持到dubbo 2.6.5 nacos-group/dubbo-registry-nacos http://dubbo.apache.org/zh-cn/docs/user/references/registry/nacos.html
package com.twitter.zk import com.twitter.common.zookeeper.{ServerSet => CommonServerSet} /*class ServerSetTest extends WordSpec with Matchers with JMocker with ClassMocker { "ServerSet" should { val pool = FuturePool.immediatePool val port = RandomSocket.nextPort() val address = new InetSocketAddress("...
package types import "time" // for mongo // orderid: 订单id // pair: 交易对 // type: 买卖类型 // rate: 买卖价格 // amount: 订单买卖币种数量 // time: 订单时间 // time_unix: 订单unix时间戳 type Trade struct { TradeId uint64 `bson:"_id" gorm:"primary_key"` OrderId uint64 `bson:"orderId"` Symbol string Type string Price string Amount str...
// // Created by Martin Blicha on 15.07.20. // #include "ChcInterpreter.h" #include "Options.h" #include "osmt_terms.h" #include "osmt_parser.h" #include <memory> int main( int argc, char * argv[] ) { SMTConfig c; CommandLineParser parser; auto options = parser.parse(argc, argv); auto inputFile = o...
#ifndef TCreator_h #define TCreator_h // ------------------------------------------------------------------------------------- // Generic factory object. Contains a map of type names to archetype objects. // Class T must implement: // Duplicate() // operator<<() // operator>>() // GetType() #include <string> #includ...
class MockConnection attr_accessor :sequences def initialize(sequences = []) @sequences = sequences end end class MockStream attr_accessor :output def initialize; @output = []; end def puts(str = ""); @output << str; end def to_s; @output.join("\n"); end end class MockSchemaDumper def initialize(...
# SPDX-License-Identifier: MIT """ abstract type ExponentialFamilyDistribution end Abstract base type for distributions member of the exponential family. | Methods | Brief description | |:-------------------|:------------------| | `η(p)` | Returns the natural parameters of the distribution | ...
$:.unshift(File.dirname(__FILE__)) require "vimeo_me2/base" require "vimeo_me2/user" require "vimeo_me2/video" require "vimeo_me2/version" module VimeoMe2 end #require all?
using System; using System.Collections.Generic; namespace Entities { public class Reserva { public int IdReserva { get; set; } public int IdCliente { get; set; } public int IdFuncionarioDecide { get; set; } public int IdFuncionarioEntrega { get; set; } public IList<Item...
@profile def get_new_qres_filter_scores(qres_vsone, qres_vsmany, top_aids, filtkey): """ applies verified scores of type ``filtkey`` from qaid2_qres_vsmany to qaid2_qres_vsone Args: qres_vsone (QueryResult): object of feature correspondences and scores qres_vsmany (QueryResult): object of...
require("bundler/setup") require("pry") Bundler.require(:default) Dir[File.dirname(__FILE__) + '/lib/*.rb'].each { |file| require file } get('/') do erb(:index) end get('/store') do @stores = Store.order(:id) erb(:store) end get('/brand') do @brands = Brand.order(:id) erb(:brand) end post('/brand') do b...
using VRage.Game.ObjectBuilders.ComponentSystem; using System; using VRage.ObjectBuilders; using VRage.Plugins; using VRage.Game.Common; using System.Reflection; #if XB1 // XB1_ALLINONEASSEMBLY using VRage.Utils; #endif // XB1 namespace VRage.Game.Components { public class MyComponentBuilderAttribute : MyFactoryT...
import io.javalin.http.Context import io.javalin.http.UnauthorizedResponse import no.nav.security.token.support.core.configuration.IssuerProperties import no.nav.security.token.support.core.configuration.MultiIssuerConfiguration import no.nav.security.token.support.core.context.TokenValidationContext import no.nav.secu...
require 'league' require 'league/game' describe League::Game do before do @game = League::Game.new('Tarantulas 3, Snakes 1') end it 'should able to parse to 2 teams' do @game.parse expect(@game.team_a).not_to be_nil expect(@game.team_b).not_to be_nil end it 'should be a valid team a' do ...
--- layout: default title: Vertical Bar Graph parent: Vue.js --- # Vertical Bar Graph - Vue.js
using System.Collections.Generic; using BlogAppCore.Application.Posts.Models; using MediatR; namespace BlogAppCore.Application.Posts.Queries.GetPostsByTag { public class GetPostsByTagQuery : IRequest<List<PostPreviewDto>> { public string TagSlug { get; set; } } }
#!/bin/bash DATE=$(date +"%Y-%b-%d-%H-%M-%S") mkdir -p ~/old tar -hzcf ~/old/nbgrader-$DATE.tgz ~/nbgrader
--- uid: System.Media.SystemSound --- --- uid: System.Media.SystemSound.Play ---
class TaxonScheme < ActiveRecord::Base belongs_to :source has_many :taxon_scheme_taxa has_many :taxa, :through => :taxon_scheme_taxa, :source => :taxon validates_presence_of :source_id end
# Script to check that all mmCIF dictionary entries are the same as those from Biopython # Requires a Python installation with Biopython and NumPy installed using BioStructures using PyCall version = pyimport("Bio").__version__ @info "Biopython version is $version" MMCIF2Dict_python = pyimport("Bio.PDB.MMCIF2Dict")....
#!/usr/bin/perl while (<>) { if (/^\@c\{\$(.*)\$\}\s*$/) { $expected = "\@math{$1}" ; $n = length($expected) ; $next_line = <> ; print $_ if (substr($next_line, 0, $n) ne $expected) ; print $next_line ; next ; } $in_example = 1 if /^\@example/ ; $in_example = 0 if /^\@end example/ ; s/ \\ove...
import { CommonOptions, DeleteWriteOpResultObject } from 'mongodb'; import { debug } from './index'; /** * @instance Removes the current Model's document from the database. * @param options MongoDB CommonOptions * @returns {Promise<DeleteWriteOpResultObject>} */ export function remove(options?: CommonOptions):...
<?php class Cliente{ private $id; private $persona_id; private $persona_nombres; private $direccion; private $telefono; private $correo; private $estado_id; private $estado_det; public function __GET($k){ return $this->$k; } public function __SET($k, $v){ return $this->$k = $v; } } ?>
package common type Jwt struct { SecretKey string `json:"secretKey"` }
import { ALL, Body, Controller, Get, Inject, Post, Provide, Validate, } from '@midwayjs/decorator'; import { CreateApiDoc } from '@midwayjs/swagger'; import { res } from '../../../common/utils'; import { UpdatePasswordDto, UpdatePersonInfoDto, } from '../../../dto/admin/verify'; import { ResOp } fro...
package uk.dangrew.kode.javafx.table.controls; import java.util.LinkedHashSet; import java.util.Set; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.control.Button; import javafx.scene.layout.VBox; /** * Basic implementation of a container for a {@link TableControlSet}. */ public cla...
# 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 # distributed under th...
import { useThemeContext } from '@pret/pret-ui-kit'; import ConnectButton from '../ConnectButton'; import staticStyles from './style'; function LoginModal() { const { sm, isCurrentThemeDark, currentTheme } = useThemeContext(); return ( <section className="LoginModal"> <div className="LoginModal__containe...
package com.ripple.ui.cutslideview import android.content.Context import android.util.AttributeSet import android.util.Log import android.view.MotionEvent import androidx.recyclerview.widget.RecyclerView /** * Author: fanyafeng * Date: 2019/4/11 10:16 AM * Email: fanyafeng@live.cn */ class CutRecyclerView @JvmOve...
<?php namespace app\common\model; use think\Model; class Flink extends Model { public function moduleClass() { return $this->hasOne('ModuleClass', 'id', 'mid')->field('id, title'); } /** * @Title: flinks * @Description: todo(友情链接) * @param int $mid 分类ID * @param int $l...
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'ernie' state = 0 # Just about the easiest example I could thing of. mod(:test) do fun(:zeronary) do :foo end fun(:unary) do |a| a end fun(:binary) do |a, b| a + b end fun(:ternary) do |a, b, c| a + b + c end...
package nano.worker.consumer; import nano.support.Json; import nano.support.mail.MailService; import nano.support.mail.TextMail; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.amqp.rabbit.annotation.Queue; import org.springframework.amqp.ra...
import { Knex } from 'knex'; import { Logger, LogProvider } from '../logger'; import NotFoundError from '../error/notfound-error'; import { IEditableStrategy, IMinimalStrategyRow, IStrategy, IStrategyStore, } from '../types/stores/strategy-store'; const STRATEGY_COLUMNS = [ 'name', 'descriptio...
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyRay(PythonPackage): """A system for parallel and distributed Python that unifie...
#pragma once #include "glm/glm.hpp" #include "RenderResource.h" #include <map> class Renderer; // Shader wrapper for OpenGL class ShaderProgram { public: // Empty shader program (call Init) ShaderProgram(); // Loads and links a shader program with the given shaders ShaderProgram(const Renderer& renderer, GLRes...