text
stringlengths
27
775k
using Auk.CsharpBootstrapper.Extensions; using WcfWsdlExample.Base.Interface.DataLayer; using WcfWsdlExample.DataLayer.NorthwindDataSet; namespace WcfWsdlExample.DataLayer.DataModel { public class NorthwindCustomerModel : ISqlDataModel { public NorthwindCustomerModel(northwind.CustomerRow customerRow)...
using System.Threading.Tasks; namespace Lykke.Service.LiquidityEngine.Domain.Services { public interface IB2C2OrderBookService { Task SetAsync(OrderBook orderBook); Quote[] GetQuotes(string assetPairId); } }
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace DomainCQRS { /// <summary> /// Provides a proxy for Aggregate Root types. The proxy is used to cache delegate calls to methods. /// </summary> public interface IAggregateRootProxy { /// <summary>...
using System.Threading.Tasks; namespace Cumulocity.SDK.Client.Rest.Model.Buffering { public interface IBufferRequestService { Task<object> Create(BufferedRequest request); void addResponse(long requestId, object result); } }
part of '../../../main.dart'; class ModeSelectorWidget extends StatelessWidget { final String caption; final List<String> options; final String value; final double captionFontSize; final double valueFontSize; final onChange; final EdgeInsets padding; ModeSelectorWidget({ Key key, @required th...
IF OBJECT_ID('zutil.DateDay') IS NOT NULL DROP FUNCTION zutil.DateDay GO CREATE FUNCTION zutil.DateDay(@dt datetime2(0)) RETURNS date BEGIN RETURN CONVERT(date, @dt) END GO GRANT EXEC ON zutil.DateDay TO zzp_server GO
<?php namespace AlibabaCloud\Iot; /** * @method string getVoice() * @method string getProjectCode() * @method string getIotInstanceId() * @method string getText() * @method string getSpeechType() * @method string getVolume() * @method string getBizCode() * @method string getApiProduct() * @method string getA...
package com.example.hakatonapplication.socket class ResponseMessage( val data: ResponseData? ) data class ResponseData(val first: Int?, val second: Int?, val third: Int?, val fourth: Int?)
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Snowdrift.CI.Parser where import Control.Applicative import Control.Monad import Data.Aeson import Data.Maybe import Data.Text (Text) import qualified Data.Text as T import Snow...
<?php /** * Created by IntelliJ IDEA. * User: tcook * Date: 7/22/19 * Time: 8:02 PM */ namespace User\Model\User; interface CommandInterface { public function addUser(User $user); public function updateUser(User $user); public function deleteUser(User $user); }
2 14 0 0 0 0 12 7 0 0 0 1 10 1 0 0 0 12 0 10 0 0 0 7 1 12 0 0 0 7 10 1 0 0 1 0 0 9 0 0 1 1 5 12 0 0 1 7 5 12 0 0 10 1 0 9 0 0 10 12 0 5 0 0 12 1 1 1 0 0 12 12 1 1 0 0 4 0 9 12 0 0 7 0 1 12 0 0 7 7 1 1 0 0 9 4 12 1 0 1 0 0 3 4 0 1 1 0 1 0 0 1 1 3 1 2 0 1 1 9 0 5 0 1 12 3 0 9 0 1 12 4 1 1 0 1 3 0 0 9 0 1 3 2 1 2 0 1 3 3 ...
import React from "react"; import { FormFields } from "@clutch-sh/experimentation"; import { shallow } from "enzyme"; import { ExperimentDetails } from "../start-experiment"; jest.mock("@clutch-sh/core", () => { return { ...(jest.requireActual("@clutch-sh/core") as any), useNavigate: jest.fn(), }; }); de...
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Eventstore.PostgreSQL.Internal.Watch where import Control.Monad import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.RWS.Strict (ask, get, gets, put) import Data....
/** * @file src/config/storage.cpp * @brief Decompilation configuration manipulation: storage. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <algorithm> #include <cassert> #include <vector> #include "retdec/config/storage.h" namespace { const std::string JSON_type = "type...
class ApplicationController < ActionController::Base def test not_used_variable = "" end end
module Frodo # Authentication middleware used if client_id, client_secret, and client_credentials: true are set class Middleware::Authentication::Password < Frodo::Middleware::Authentication def params { grant_type: 'password', client_id: @options[:client_id], username: @options[:username]...
## monte-carlo、cesaro-test 简述 书中 [3.1.2](./monte_carlo.scm) 使用了两个函数,一个是 monte-carlo,一个是 cesaro-test。 ### 蒙特卡罗方法 蒙特卡罗(Monte Carlo)是摩纳哥的一座城市,有很多赌场。 蒙特卡罗方法也称统计模拟方法,生成大量随机数去测试系统,通过概率统计得到问题的解。 此方法诞生于上个世纪40年代美国的"曼哈顿计划",主要由斯塔尼斯拉夫·乌拉姆(Stanislaw Marcin Ulam) 和 冯·诺伊曼(John von Neumann) 提出。 乌拉姆的叔叔,经常在摩纳哥的蒙特卡洛的赌场输钱。这种方法基于概率,于...
namespace Micser.Plugins.Main.Widgets { public partial class DeviceInputWidget { public DeviceInputWidget() { InitializeComponent(); } } }
class simple_class_2_MyClass(val b: Int, var c: Int) fun simple_class_2_genMyClass(i: Int): simple_class_2_MyClass { return simple_class_2_MyClass(i, i) } fun simple_class_2_change(x: Int): Int { val y = simple_class_2_MyClass(x, x) y.c = x y.c = x y.c = 1 y.c = x + 1 return y.c } fun si...
import { run } from '..' import { github } from '../plugins/plugin-github' import { typescript } from '../plugins/plugin-typescript' jest.mock('../core/api') describe('runner', () => { beforeEach(() => { console.log = () => {} }) it('can generate report without goals specified', async () => { const out...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.inference.aggs; import org.elasticsearch....
#![cfg(feature = "url-impl")] #![allow(unused)] use ts_rs::TS; use url::Url; #[test] fn contains_url() { #[derive(TS)] pub struct StructWithUrl { some_url: Url, } assert_eq!( StructWithUrl::decl(), "interface StructWithUrl { some_url: string, }" ) } #[test] fn newtype_u...
using Aquality.Selenium.Elements.Interfaces; using Aquality.Selenium.Forms; using OpenQA.Selenium; namespace Aquality.Selenium.Tests.Integration.TestApp.AutomationPractice.Forms { internal class AuthenticationForm : Form { public AuthenticationForm() : base(By.Id("email_create"), "Authentication") ...
package org.webpieces.http2client.api.dto; import org.webpieces.data.api.DataWrapper; import com.webpieces.http2.api.dto.highlevel.Http2Request; import com.webpieces.http2.api.dto.highlevel.Http2Trailers; public class FullRequest extends Http2Message { protected Http2Request headers; public FullRequest() { } ...
package Graph; import java.util.*; /** * Given a source word, target word and an English dictionary, transform the source word to target * by changing/adding/removing 1 character at a time, while all intermediate words being valid * English words. Return the transformation chain which has the smallest number of in...
import {Component, OnInit} from '@angular/core'; import {NgxSmartModalComponent, NgxSmartModalService} from 'ngx-smart-modal'; import {Subject} from 'rxjs'; import {FormControl, FormGroup} from '@angular/forms'; import {VideoControlService} from '../../../service/video-control.service'; import {InterpolationService} fr...
import * as path from "path"; import * as punycode from "punycode"; import { RepositoryError } from "../errors"; import { IBaseJson, ITypeJson } from "../lib/interfaces"; import { createDirectory, readFile, walk, writeFile } from "../lib/platform"; import { Post, Type} from "../models"; type Constructor<T = {}> = new ...
 using FluentAssertions; using Highway.Data.Contexts; using Highway.Data.Tests.InMemory.Domain; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Highway.Data.Tests.InMemory { [TestClass] public class IntegerIdentityStrategyTests { private readonly int seedNumber = 500; privat...
namespace RedditVideoRotationBot.Interfaces { public interface IFfmpegExecutor { void ExecuteFfmpegCommandWithArgString(string argString); } }
package me.oriharel.seriesmanager.config import me.oriharel.seriesmanager.interceptor.SameUserCheckInterceptor import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.annotation.Configuration import org.springframework.web.servlet.config.annotation.InterceptorRegistry import or...
; ============================================================================= ; Pure64 -- a 64-bit OS/software loader written in Assembly for x86-64 systems ; Copyright (C) 2008-2017 Return Infinity -- see LICENSE.TXT ; ; INIT ACPI ; ============================================================================= init...
import * as React from 'react'; import { baseLayers, overlayLayers, IAttributionDef } from 'fm3/mapDefinitions'; import { Translator } from 'fm3/l10nInjector'; interface IProps { t: Translator; imhd: boolean; mapType: string; // TODO enum overlays: string[]; // TODO enum } const Attribution: React.FC<IProps> ...
import {Page, ViewController, Events} from 'ionic-framework/ionic' @Page({ templateUrl: 'build/pages/home/language.html' }) export class LanguagePage { constructor(viewCtrl: ViewController, events: Events) { this.viewCtrl = viewCtrl; this.events = events; this.language...
/* Ceated by Ya Lin. 2019/8/6 15:16:11 */ using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; using Thunder.Blazor.Libs; namespace ThunderBlazorTest.Libs { class Cssbuildtest { [Test] public void cssbuildtest() { var s1 = "alert alert-...
<?php declare(strict_types=1); namespace GreenLinks\Psr16Adapter\Exception; use Psr\SimpleCache\CacheException; use Exception; class GeneralException extends Exception implements CacheException { }
#include "Schema.h" #include <IPC/Managed/detail/Interop/TransportImpl.h> namespace IPC { namespace Managed { namespace detail { namespace Interop { template Transport<Calc::Request, Calc::Response>; } // Interop } // detail } // Managed } // IPC
#!/bin/sh python /home/pi/oled/luma.examples/examples/moode.py -f /home/pi/oled/luma.examples/examples/ws15old.cfg
#!/bin/bash rm -r dist ; python3 setup.py sdist pip3 uninstall dimred pip3 install dist/dimred-*.gz
package com.netcai.admin.service; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; import com.netcai.admin.entity.OrderInfo; import com.netcai.admin.utils.PageUtil; import com.netcai.admin.vo.Order...
def attack(iv, c, pos, p, p_): """ Replaces the original plaintext with a new plaintext at a position in the ciphertext. :param iv: the initialization vector :param c: the ciphertext :param pos: the position to modify at :param p: the original plaintext :param p_: the new plaintext :retu...
import { prepareTheme, Theme, ThemeMode } from "./themes" import { createReducer } from "@reduxjs/toolkit" import { changeTheme } from "./action" export interface ThemeStore extends Theme { name: ThemeMode } export const theme = createReducer(prepareTheme(), builder => builder.addCase(changeTheme, (state, { payload...
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace SprykerTest\Zed\Install\Business\Stage\Section; use Codeception\Test\Unit; use Spryker\Zed\Install\Business\Stage\Section\Command\Command; use Spryker\Zed\Install\Business\...
program Project1; uses Vcl.Forms, MainAlfa in 'MainAlfa.pas' {Falfa}, bsdialog in 'bsdialog.pas' {Fbsdialog}, bsNone in 'bsNone.pas' {FbsNone}, bsSigle in 'bsSigle.pas' {FbsSigle}, bsSizeble in 'bsSizeble.pas' {FbsSizeble}, bsSizeToolWin in 'bsSizeToolWin.pas' {FbsSizeToolWin}, bsToolWindow in 'bsToolW...
FactoryBot.define do factory :address do phone_number { Faker::PhoneNumber.cell_phone.gsub(/-/, '') } prefecture_id { rand(1..47) } postal_code { Faker::Address.postcode } city { Faker::Address.city } house_number { Faker::Address.building_number } building_name { Faker::Address.street_name } ...
package ch.epfl.bluebrain.nexus.delta.sdk import ch.epfl.bluebrain.nexus.delta.kernel.syntax.{ClassTagSyntax, InstantSyntax, KamonSyntax, TaskSyntax} import ch.epfl.bluebrain.nexus.delta.rdf.instances.{SecretInstances, TripleInstances, UriInstances} import ch.epfl.bluebrain.nexus.delta.rdf.syntax.{IriSyntax, IterableS...
using Core.Data.Dtos; using Core.Data.Interfaces.Audit; using Core.Data.Interfaces.Entitys; namespace Core.Data.Entitys { public abstract class BaseDocument : BaseEntity, IBaseDocument, IAuditable { private string code; public string Code { get { return code; } set ...
#!/bin/bash sudo docker exec -t -i "$1" /bin/bash
import styled, { css } from "styled-components"; export default styled.img` width: 500px; height: 285px; border-radius: 10px; object-fit: cover; margin-top: 0.5rem; ${(props) => props.newtweet && css` margin-bottom: 1.5rem; `} @media screen and (max-width: 530px) { width: 350px; ...
#tool nuget:?package=GitVersion.CommandLine #tool nuget:?package=vswhere var sln = new FilePath("SGTabbedPager.sln"); var project = new FilePath("SGTabbedPager/SGTabbedPager.csproj"); var projectMvx = new FilePath("SGTabbedPagerMvx/SGTabbedPagerMvx.csproj"); var binDir = new DirectoryPath("SGTabbedPager/bin/Release");...
<?php declare(strict_types=1); namespace Respector\Test\Conceptions; use Respector\Analyze; abstract class RespectDDDTest extends BaseConceptionTest { public function testNotInfrastructureReferencesInDomain(): void { $analyzer = Analyze::create('composer.json')->inNamespace('Domain\\'); fore...
var http = require('../../utils/http.js'); Page({ /** * 页面的初始数据 */ data: { sts: 0, prodList: [], title: "", current: 1, size: 10, pages: 0, tagid: 0 }, /** * 生命周期函数--监听页面加载 */ onLoad: function(options) { this.setData({ current: 1, pages: 0, sts: ...
create or replace PROCEDURE SAPC_MXP_ATTR_DELETE (Pattrid number) IS rc number; BEGIN /****** This stored procedure enables RT to call MC_REPOSITORY_DELETE ******/ MXP_ATTR_DELETE (Pattrid, 0, rc); END; create or replace synonym MXMC_RT.SAPC_MXP_ATTR_DELETE for MXMC_OPER.SAPC_MXP_ATTR_DELETE; grant execu...
import java.io.IOException; import java.util.Set; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import redis.clients.jedis.Jedis; import com.cedarsoftware.util.io.JsonWriter; /** * Save data to redis */ public class DataImporter { public static void saveMovieToRedis(JSONObject movie, Jedi...
# k3d - [rancher/k3d](https://github.com/rancher/k3d) ```bash brew install k3d # 创建集群 k3d cluster create k3d #删除集群 k3d cluster delete k3d ```
package org.exthmui.updater.model; import android.util.Base64; public class Notice implements NoticeInfo { private String mBase64Title; private String mBase64Texts; private String mTitle; private String mTexts; private String mImageUrl; private String mId; public Notice() { } pu...
var EventEmitter = require('events').EventEmitter; var async = require('async'); var defaultData = require('./default'); var secret = require('./secret'); var defaults = require('defaults'); var httpify = require('httpify'); var assign = require('object-assign'); function DataStore () { EventEmitter.call(this); //...
#!/bin/bash # Autoformat the code. dub run --verror autoformat --skip-registry=all -- `find source -name '*.d'` # Check we have no typos. which misspell 2>/dev/null >/dev/null if [[ $? -eq 0 ]]; then misspell -error `find source -name '*.d'` fi # Nuke .orig files from modification find . -name '*.d.orig' | xarg...
# # Generate a file of filtered messages base on the the "creativeNumber" attribute of the message and the array of IDs. # Clear # Replace the file root (example file job.JSON.txt - "job" is the root) $fileRoot = "job" # Replace the array contents below with the missing job IDs to be extracted. (no commas needed) ...
import pyspark.sql.functions as fn from pyspark.sql import DataFrame from pyspark.ml import Transformer class RemoveDuplicates(Transformer): """Drops duplicate records""" def __init__(self, id_col: str = None): super(RemoveDuplicates, self).__init__() self._id_col = id_col def _transform...
export default class { constructor() { document.body.classList.add('js'); } }
fn letter_combinations(digits: &str) -> Vec<String> { let numbers: Vec<_> = digits.chars().collect(); match letter_combinations_rec(&numbers) { Some(combinations) => combinations.iter().map(|a| a.iter().collect()).collect(), None => vec![], } } fn letter_combinations_rec(numbers: &[char]) ...
# MAT.2017 Data analysis scripts for 1989 Toolik MAT Warming and Fertilization experiment, sampled in Summer 2017 Master version includes only analyses in manuscript
/* * Copyright 2000-2004 The Apache Software Foundation. * * 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...
# python3 # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
package org.cuieney.videolife.kotlin.presenter.contract import org.cuieney.videolife.entity.VeerListBean /** * Created by cuieney on 2017/6/8. */ interface VeerCategoryContract{ interface View{ fun showContent(veerListBean: VeerListBean) fun error(throwable: Throwable) } interface Presen...
var userdict = {}; // dict.key1 = "value1"; // dict.key2 = "value2"; var time_stamp = function(author){ var time_stamp = Date.now() / 1000 | 0; userdict[author]=time_stamp; } var show_all_stamps = function(author){ var ts_string = ""; for (var key in userdict) { var value = userdict[key]; var ts = new...
import { mount, Wrapper } from '@vue/test-utils'; import Vue from 'vue'; import { addMessages } from '../../../tests/helpers/lang'; import I18nPlugin from '../../components/i18n/i18n'; import FileSizeFilterPlugin from './filesize'; describe(`f-m-filesize`, () => { beforeEach(() => { Vue.use(I18nPlugin); ...
package cat.pantsu.nyaapantsu.ui.fragment import android.Manifest import android.app.Activity import android.app.ProgressDialog import android.content.* import android.content.pm.PackageManager import android.graphics.Bitmap import android.graphics.Point import android.graphics.drawable.BitmapDrawable import android.g...
package console_calculator.calculator.exception; public class DivisionByZeroException extends Exception { public DivisionByZeroException(double a, double b) { super(a + "/" + b + " Incorrect! Division by zero!"); } }
-- left outer join -- COALESCE on a join columns: both sides select test.c_integer, test.c_bigint, test.c_float, test.c_double, test.d9, test.d18, test.d28, test.d38, test.c_date, test.c_time, test.c_timestamp, test.c_bool...
package org.burningokr.mapper.structure; import java.util.ArrayList; import java.util.Collection; import org.burningokr.dto.structure.CompanyDto; import org.burningokr.mapper.interfaces.DataMapper; import org.burningokr.model.cycles.CompanyHistory; import org.burningokr.model.cycles.Cycle; import org.burningokr.model....
import { getAPIData } from '../../ApiHttp'; export default async function getEvents(req, params) { const message = await getAPIData('events',params); return { message : message, time: Date.now() }; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.data.tables.models; import com.azure.core.annotation.Fluent; import com.azure.data.tables.implementation.models.RetentionPolicy; /** * A model representing configurable Azure Analytics Logging settings ...
package de.lv1871.oss.tester.test.dmnassert.model; import java.util.List; import java.util.Map; public class DecisionSimulationResponse { private final String message; private final List<Map<String, Object>> result; private final List<String> resultRuleIds; private final Map<String, List<String>> resul...
# References a notes.md class Note < ApplicationRecord belongs_to :user validates :content, :project_name, presence: true validates :project_name, uniqueness: { scope: :user } end
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using Microsoft.Msagl.Core.Geometry; using Microsoft.Msagl.Core.Geometry.Curves; using Microsoft.Msagl.Core.Layout; using Microsoft.Msagl.DebugHelpers.Persistence; using Microsoft.Msagl.Drawing; using Microsoft.Msagl....
trait Type[T]: type Out type varchar given Type[varchar] with type Out = String class Placeholder[T, U] object Placeholder: def apply[T](using t: Type[T]): Placeholder[T, t.Out] = new Placeholder trait Encoder[P, X]: def encode(x: X): String object Encoder: def apply[P, X](placeholder: P)(using e: Encod...
page 20035 "APIV1 - Income Statement" { APIVersion = 'v1.0'; Caption = 'incomeStatement', Locked = true; DelayedInsert = true; DeleteAllowed = false; Editable = false; EntityName = 'incomeStatement'; EntitySetName = 'incomeStatement'; InsertAllowed = false; ModifyAllowed = false; ...
export function displayDuration(sec: number, type = 1) { const format = (val: number) => `0${Math.floor(val)}`.slice(-2) const hours = sec / 3600 const minutes = (sec % 3600) / 60 const seconds = sec % 60 if (type === 1) { if (format(hours) !== '00') { return `${format(hours)} gi...
module Lib ( someFunc ) where import Prelude () import Prelude.Compat import Control.Monad.Except import Control.Monad.Reader import Data.Aeson import Data.Aeson.Types import Data.Attoparsec.ByteString import Data.ByteString (ByteString) import Data.List import Data.Maybe import Data.String.Conversions import...
"use strict"; const MINTEMP = 10; function Thermostat() { this.temp = 20; this.minTemp = MINTEMP; this.maxTemp; this.powerSavingMode("On"); } Thermostat.prototype.getCurrentTemp = function() { return this.temp; }; Thermostat.prototype.up = function() { if (this.isMaxTemp()) { throw n...
package de.codeshelf.consoleui.prompt.builder; import de.codeshelf.consoleui.elements.items.impl.ChoiceItem; /** * Created by andy on 22.01.16. */ public class ExpandableChoiceItemBuilder { private final ExpandableChoicePromptBuilder choicePromptBuilder; private String name; private String message; private ...
import React from 'react'; import { storiesOf } from '@kadira/storybook'; // eslint-disable-line import HotelCard from 'components/HotelSearchResult/HotelCard'; import { fromJS } from 'immutable'; const fiveStarHotel = fromJS({ address: '44B LY THUONG KIET St', cheapestRate: { price: { amount: 574, ...
# Normative references ```{bibliography} :filter: keywords % "nr" :labelprefix: NR_MIS_ :keyprefix: mis- ```
Status: Tags: Links: [[Obsidian Community Plugins]] ___ # Obsidian Checklist Plugin - Can be used with Kanban Boards ## Possible Uses - Daily tasks - Use the hashtag on the 1 3 5 daily note for a quick reference - Use it to call tasks from specific, chosen tq - Use it to switch between projects to see all that need...
using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using TerrariaOverhaul.Core.Systems.Debugging; using TerrariaOverhaul.Utilities; using TerrariaOverhaul.Utilities.DataStructures; using TerrariaOverhaul.Utilities.Extensions; namespace TerrariaOverhaul.Common.ModEntities.Players { public sealed...
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # 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...
--- title: Filters API | ldapjs markdown2extras: wiki-tables logo-color: green logo-font-family: google:Aldrich, Verdana, sans-serif header-font-family: google:Aldrich, Verdana, sans-serif --- # ldapjs Filters API This document covers the ldapjs filters API and assumes that you are familiar with LDAP. If you're not, ...
# frozen_string_literal: true $LOAD_PATH.push File.expand_path('lib', __dir__) # Maintain your gem's version: require 'open_invoice/version' # Describe your gem and declare its dependencies: Gem::Specification.new do |spec| spec.name = 'open_invoice' spec.version = OpenInvoice::VERSION spec.authors ...
--- title: Release Inferno v5.0.0 · infernojs/inferno author: azu layout: post itemUrl: 'https://github.com/infernojs/inferno/releases/tag/v5.0.0' editJSONPath: 'https://github.com/jser/jser.info/edit/gh-pages/data/2018/03/index.json' date: '2018-03-18T05:00:56Z' tags: - JavaScript - React - ReleaseNote - libra...
<?php class M_sale extends CI_Model { function get_product( $barcode ) { $result = $this->db->get_where('product', array('barcode' => $barcode))->row_array(); return $result; } }
create or replace function static.quest_upsert ( p_internal_name static.quest.internal_name%TYPE , p_name static.localized_text_detail.value%TYPE , p_start_text static.localized_text_detail.value%TYPE , p_success_text static.localized_text_detail.value%TYPE , p_fail_text static.localized_text...
fun main() { println( (2+3) * 4) // expect: 20 println( 100 / ((4+1) * 2)) // expect: 10 }
#!/bin/bash # # Build Figicons # # Optimize and build icons: # ./build.sh publish # # Optimize, build icons and create Figicons: # ./build.sh function DELETE_TEMP { rm -rf ./dist mkdir dist } function BUILD { yarn build } function PUBLISH { yarn package } function COPY { cd dist/src mv * .....
# pylint: disable=no-self-use,invalid-name from __future__ import division from __future__ import absolute_import import pytest from allennlp.data.dataset_readers import Seq2SeqDatasetReader from allennlp.common.util import ensure_list from allennlp.common.testing import AllenNlpTestCase class TestSeq2SeqDatasetRea...
# frozen_string_literal: true module ClaimsApi module PoaPdfConstructor class Signature attr_reader :data, :x, :y, :height def initialize(data:, x:, y:, height: 20) @data = data @x = x @y = y @height = height end def path return @path if @path.pre...
titulo = '\033[01;32m' txt = '\033[32m' nada = '\033[m' lista = list() print(f'\n{titulo:-<11} Validação de Expressões Matemática {nada:->6}') expressão = str(input(f'\n{txt}Digite uma expressão: {nada}')) for c in expressão: lista.append(c) if (lista.count(')') + lista.count('(')) % 2 == 0: print(f'\n{titulo...
def parse_string(input, vars={}): for var in vars: input = input.replace(f"${var}$", vars[var]) return input
CREATE VIEW [AppDbo].[QueueManagement_View] AS SELECT x.[QueueId] ,x.[QueueName] ,x.[CurrentSizeLimit] ,x.[CurrentRetryLimit] ,x.[LockValidForSec] ,x.[Disable] FROM [AppDbo].[QueueManagement] x WHERE x.[_deletedDate] is null;
const assert = require('assert') const fs = require('fs') assert.equal(1+2, 3) const countLines = (cb) => { fs.readFile('file.txt', 'utf8', (err, src) => { if (err) cb(err) else cb(null, src.split('\n').length) }) } countLines((err, n) => { assert.ifError(err) assert.equal(n, 3) })