text
stringlengths
27
775k
<?php namespace Mdaliyan\FarsiRequest\Middleware; use Closure; use Illuminate\Http\Request; class ReplaceArabicCharacters { private $ignoreParameters = ['q', '_method', '_token']; /** * Handle an incoming request. * @param \Illuminate\Http\Request $request * @param \Closure $next * @retu...
package elem import "bytes" type NodeIDType byte const ( NodeIDTypeIPv4Addr NodeIDType = 0 NodeIDTypeIPv6Addr NodeIDType = 1 NodeIDTypeFQDN NodeIDType = 2 ) type NodeID struct { EType IEType ELength uint16 NodeIDType NodeID []byte } func NewIPv4NodeID(ipv4 []byte) *NodeID { return &NodeID{ EType: ...
package helpers import ( "fmt" "github.com/spf13/viper" ) // DatabaseConfig is a struct to manage database configuration. type DatabaseConfig struct { Host string Port string User string Password string DBName string SSLMode string Schema string } // InitWithViper simply takes a configured...
package typingsSlinky.tensorflowTfjsConverter import typingsSlinky.tensorflowTfjsConverter.operationsTypesMod.OpExecutor import typingsSlinky.tensorflowTfjsConverter.operationsTypesMod.OpMapper import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotat...
//original license: MIT // //See the file license.txt for copying permission. using System; using System.ComponentModel; using System.Xml; using System.Xml.Serialization; namespace screenium.Reports { /// <summary> /// horrible code to be able to serialize TimeSpan to XML via XmlSerializer /...
package natsclient import ( "encoding/json" "fmt" "time" nats "github.com/nats-io/nats.go" ) //NatsClient is the state of the client type NatsClient struct { client *nats.Conn subscriptions map[string]*nats.Subscription } //NewNatsClient creates a new NATS client and attempts to connect to the specifie...
package ru.nikstep.alarm.util import android.view.View import com.google.android.material.snackbar.Snackbar fun showSnackbar( view: View, message: String, duration: Int = Snackbar.LENGTH_LONG, actionName: String = "OK", action: () -> Unit = {} ) { Snackbar.make(view, message, duration) ...
# PHP/Goutte版 Y!mobile通信速度回復スクリプト ### これは何? Y!mobileで通信速度を低速化された時、通信速度を通常に戻す申し込みを実行するスクリプトです。 スクレイピングライブラリとして[Goutte](https://github.com/FriendsOfPHP/Goutte)を使用しています。composerでダウンロードして使って下さい。 ### 作成の目的と公開の目的 当スクリプトは私が個人的に使用することを目的として作成し、Goutteの使用例として参考になればと思って公開しています。 **スクリプトを実行する際は必ずソースコードを確認の上、自己責任でお願いします。** ##...
(ns oubiwann.blog.web.content.page (:require [dragon.selmer.core :as template] [dragon.util :as util] [oubiwann.blog.web.content.data :as data])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Static Pages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;...
import * as path from 'path'; import * as sass from 'gulp-sass'; export function generate(gulp, config, gulptraum): void { const outputFolderPath = path.resolve(config.paths.root, config.paths.output); gulptraum.task('build-sass', { help: 'Builds your sass files into css' }, (callback) => { return gul...
namespace FootballPredictions.Models { public class Prediction { public int Id { get; set; } public Game Game { get; set; } public GameResult Result { get; set; } // TODO: prediction should have user } }
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50715 Source Host : localhost Source Database : quartz Target Server Type : MySQL Target Server Version : 50715 File Encoding : utf-8 Date: 03/19/2019 17:35:03...
import Vuex from "vuex"; const createStore = () => { return new Vuex.Store({ state: { headlines: [] }, mutations: { setHeadlines(state, headlines) { state.headlines = headlines; } }, actions: { async loadHeadlines({ commit }, apiUrl) { const { articles } = ...
package com.fzm.chat33.core.di import com.fzm.chat33.core.global.EncryptInterceptor import com.fzm.chat33.core.logic.MessageDispatcher import com.fzm.chat33.core.logic.MessageHandler import com.fzm.chat33.core.manager.MessageManager import com.fzm.chat33.core.net.RequestManager import com.fzm.chat33.core.net.socket.Ch...
use crate::{Canvas, Point}; pub struct StickMan{ pub points: [Point; 10] } impl StickMan{ pub fn new() -> StickMan{ let left_hand = Point::new(-10, 0); let right_hand = Point::new(40, 0); let neck = Point::new(10, 0); let hip = Point::new(10, 10); let left_foot = Point:...
=begin = How to play. == with timeridconv: % ruby -d holders.rb druby://yourhost:1234 % ruby holderc.rb druby://yourhost:1234 == without timeridconv: % ruby holders.rb druby://yourhost:1234 % ruby holderc.rb druby://yourhost:1234 =end require 'drb/drb' class DRbEx3 include DRbUndumped def ini...
""" Main file for running pcapmap program """ import argparse import logging import os from pathlib import Path from pcap2map.pcap2ip import Pcap2IP from pcap2map.ip2map import IP2Map class Pcap2Map(): def __init__(self): self.file = None self.png_path = None def run(self, file, png_path)...
{-# LANGUAGE KindSignatures, GADTs #-} module Assert ( Assertion(..), checkAssertions ) where data Assertion :: * -> * where Assertion :: Eq a => { actualValue :: a, expectedValue :: a, valuesRelationFunction :: a -> a -> Bool } -> Assertion a checkAssertions :: Eq a => ...
#!/usr/bin/env python ''' Modbus Message Generator -------------------------------------------------------------------------- The following is an example of how to generate example encoded messages for the supplied modbus format: * tcp - `./generate-messages.py -f tcp -m rx -b` * ascii - `./generate-messages.py -...
use crate::SpanTrace; use std::error::Error; use std::fmt::{self, Debug, Display}; struct Erased; /// A wrapper type for `Error`s that bundles a `SpanTrace` with an inner `Error` /// type. /// /// This type is a good match for the error-kind pattern where you have an error /// type with an inner enum of error variant...
<?php #verifie que le titre et le contenu existent et ne sont pas trop long if (isset($_POST['titre']) AND isset($_POST['contenu'])) { if (is_string($_POST['titre']) AND strlen($_POST['titre']) < 40) $titre = $_POST['titre']; else echo ' Votre nom est trop long, veuillez rentrer un nom moins lon...
--- title: "首届Dubbo开发者沙龙在北京成功举办" linkTitle: "首届Dubbo开发者沙龙在北京成功举办" date: 2018-05-12 description: 首届Dubbo开发者沙龙在北京成功举办 --- 首届Dubbo开发者沙龙在北京成功举办, 超过400位开发者参加。这是一个很好的开始! 分享嘉宾及主体如下: * 罗毅: Dubbo 的现状现状与未来规划 [PDF](https://github.com/dubbo/awesome-dubbo/raw/master/slides/meetup/201805%40Beijing/dubbo-present-and-future.pdf)...
// // diffuse_object.cpp // vulkan-demos // // Created by Rafael Sabino on 6/5/20. // Copyright © 2020 Rafael Sabino. All rights reserved. // #pragma once #include <filesystem> #include "assimp_obj.h" #include "device.h" #include "node.h" namespace vk { template<uint32_t NUM_CHILDREN> class assimp_nod...
require 'rails_helper' require 'rspec_api_documentation' require 'rspec_api_documentation/dsl' RspecApiDocumentation.configure do |config| config.format = [:json, :combined_text, :html] config.curl_host = 'http://localhost:3000' config.api_name = "Example App API" config.api_explanation = "API Example Descript...
#!/bin/sh # vim: filetype=sh noexpandtab ts=8 sw=8 # $FreeBSD: head/tools/regression/pjdfstest/tests/granular/02.t 211352 2010-08-15 21:24:17Z pjd $ desc="NFSv4 granular permissions checking - ACL_READ_ACL and ACL_WRITE_ACL" dir=`dirname $0` . ${dir}/../misc.sh [ "${os}:${fs}" = "FreeBSD:ZFS" ] || quick_exit echo "...
# Added Soccer Balls After completing the steps below, you see soccer balls added to the game when you have 2 or more players! {% include blocks/stop.md %} {% doublecheck %} {% checkoff %}
prototype Clif { void @add_text_lc_and_individuate_it(str lc); void @add_text_lc_on_current_line(str lc); int @anatomize_clif(int desired_action, str &fp); void @edit_file_remotely(); void @edit_file_under_cursor(); void @process_batx_clif_block(str clif_block); void @find_backwards(str args); int @fo...
**Describe what your pull request will improve for the bot** A clear and concise description of what the pull request will fix/add/remove ect. **Is your pull request related to a problem? Please describe it.** A clear and concise description of what the problem is. **Describe the way your pull request fix that proble...
interface SepFunc<Item> { (item: Item): boolean } export function* splitIterable<Item>(iterable: Iterable<Item>, sep: SepFunc<Item>) { let store = Array<Item>() for (const item of iterable) { if (sep(item)) { yield store store = [] } else { store.push(item) } } yield store } ...
# frozen_string_literal: true require 'spec_helper' describe Clusters::Applications::ElasticStack do include KubernetesHelpers include_examples 'cluster application core specs', :clusters_applications_elastic_stack include_examples 'cluster application status specs', :clusters_applications_elastic_stack incl...
PAGE ,132 TITLE IOCTL - IOCTL system call NAME IOCTL ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ;** IOCTL system call. ; ; $IOCTL ; ; Revision history: ; ; Created: ARR 4 April 1983 ; ; GenericIOCTL added: KGS 22 April 1985 ; ; A000 version 4.00 Jan. 1988 ...
import React, { createContext, useContext, useReducer, Dispatch } from "react"; import { Action, initialState, reducer, Store } from "./Store"; interface Props { children: JSX.Element | JSX.Element[]; } export const StoreContext = createContext({} as [Store, Dispatch<Action>]); export const StoreProvider = (props: P...
package io.provenance.scope.sdk import io.provenance.scope.contract.annotations.Record as AnnotationRecord import io.provenance.metadata.v1.* import io.provenance.scope.contract.annotations.* import io.provenance.scope.contract.proto.Commons import io.provenance.scope.contract.proto.HelloWorldExample import io.provena...
<?php namespace Modules\Notification\Providers; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; use Modules\Notification\Events\Handlers\NotificationHandler; use Modules\Notification\Repositories\RuleRepository; use Illuminate\Support\Arr; class EventServiceProvider extends Servi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataError = void 0; const error_utils_1 = require("./error.utils"); class DataError extends error_utils_1.ErrorSystem { constructor(message) { super(message, DataError.name); } } exports.DataError = DataError;
using HexCS.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HexUN.Utilities { /// <summary> /// Invokes on update whenenver the list is modified. i.e. Add, remove, set, etc. /// Provides the List as argument /// </su...
<?php /** * This file is part of Moltin PHP-SDK, a PHP package which * provides convinient and rapid access to the API. * * Copyright (c) 2013-2014 Moltin Ltd. * http://github.com/moltin/php-sdk * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source cod...
using UnityEngine; using System.Collections; public class RNG : MonoBehaviour { public static float Floats(float min, float max) { float r; r = Random.Range(min, max); return r; } public static int Ints(int min, int max) { int i; i = Random.Range(min, max)...
# frozen-string-literal: true require "test_helper" class EncryptedParametersTest < MiniTest::Unit::TestCase def test_missing_encrypted_params controller = MockController.new({}) assert_equal({}, controller.encrypted_params) end def test_invalid_encrypted_params controller = MockController.new("_enc...
SUBROUTINE WRITCA(LUNXX,MSGT,MSGL) C$$$ SUBPROGRAM DOCUMENTATION BLOCK C C SUBPROGRAM: WRITCA C PRGMMR: J. ATOR ORG: NP12 DATE: 2004-08-18 C C ABSTRACT: THIS SUBROUTINE IS CONSIDERED OBSOLETE AND MAY BE REMOVED C FROM THE BUFR ARCHIVE LIBRARY IN A FUTURE VERSION. IT NOW SIMPLY C CALLS B...
# php-signaler [中文文档](README_CN.md "中文文档") ## Introduction This is a project build with [Workerman](https://github.com/walkor/Workerman "Workerman"). Cloud support [hlsjs-p2p-engine](https://github.com/cdnbye/hlsjs-p2p-engine "hlsjs-p2p-engine") signaler service. Technically support all WebRTC signaler service. Wr...
package nl.entreco.giddyapp.viewer.ui.details import android.view.View import androidx.databinding.ObservableField import androidx.databinding.ObservableInt import nl.entreco.giddyapp.libhorses.* class DetailModel(horse: Horse) { val horseId = ObservableField(horse.id) val name = ObservableField(horse.name) ...
[![Build Status](https://ci.consulo.io/job/consulo-aspnet/badge/icon)](https://ci.consulo.io/job/consulo-aspnet)
/* * @(#)RotatedIcon.java * * $Date: 2014-03-13 09:15:48 +0100 (Do, 13 Mär 2014) $ * * Copyright (c) 2014 by Jeremy Wood. * All rights reserved. * * The copyright of this software is owned by Jeremy Wood. * You may not use, copy or modify this software, except in * accordance with the license agreement you...
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::{Deserialize, Serialize}; fn validate_scale_factor(scale_factor: f64) -> bool { scale_factor.is_sign_positive() && scale_factor.is_normal() } /// A pixel definitio...
/*========================================================================= Image-based Vascular Analysis Toolkit (IVAN) Copyright (c) 2012, Iván Macía Oliver Vicomtech Foundation, San Sebastián - Donostia (Spain) University of the Basque Country, San Sebastián - Donostia (Spain) All rights reserved See LICENSE fil...
package main import ( "fmt" "qqlt" ) func main() { bot := qqlt.NewBotApiClient() //发送消息 bot.SendMsg(qqlt.MT_Friend, "", "qq号", "") // 私聊消息 bot.SendMsg(qqlt.MT_Friend, "", "somebody qq", "发送的内容") bot.SendPrivateMsg("somebody qq", "发送的内容") qqlt.NewMessage(). QQ("qq"). Text("aasdasd"). Send(bot) qqlt.N...
package lt.markmerkk.widgets.main import com.nhaarman.mockitokotlin2.doReturn import com.nhaarman.mockitokotlin2.verify import com.nhaarman.mockitokotlin2.whenever import org.assertj.core.api.Assertions.assertThat import org.junit.Before import org.junit.Test import org.mockito.Mock import org.mockito.MockitoAnnotatio...
to_euro= lambda {|dollars| dollars*0.95} to_pesos= lambda {|dollars| dollars*20.67} to_rupees= lambda {|dollars| dollars*68.13} def convert(dollars,currency_lambda) currency_lambda.call(dollars) if dollars.is_a?(Numeric) end # def convert_to_euro(dollars) # dollars *0.95 if dollars.is_a?(Numeric) # end # # def ...
const Maybe = require('folktale/maybe'); const { stateToResult, prepareForCaching } = require('../create/mgetUtils'); const pair = require('./mocks/pair'); // request state in different cases const request = [pair('ETH', 'BTC'), pair('AMUR', 'BTC'), pair('BTC', 'USD')]; const getPairResp = index => Maybe.of({ pair: r...
 @{ ViewData["Title"] = "Index"; } <div class="jumbotron"> <h5>Welcome : <b>@User.Identity.Name</b></h5><hr /> <br /> <div class="text-center"> <a asp-action="Index" asp-controller="Categories" class="btn btn-success btn-lg text-white">View Categories</a> &nbsp; &nbsp; &nbsp; ...
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. * 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 applic...
-- ============================================= -- Author: Ken Taylor -- Create date: February 3, 2021 -- Description: Update the data for the cross-listed courses. -- Prerequsites: The Courses table must have already been loaded with -- the base course data. -- Notes: /* Logic for populating the data for cross list...
<?php namespace MadWizard\WebAuthn\Tests\Dom; use MadWizard\WebAuthn\Dom\AuthenticatorAttachment; use MadWizard\WebAuthn\Dom\AuthenticatorSelectionCriteria; use MadWizard\WebAuthn\Dom\UserVerificationRequirement; use PHPUnit\Framework\TestCase; class AuthenticatorSelectionCriteriaTest extends TestCase { public f...
/** * @jest-environment node */ // test that import does not crash import * as ReactTransitionGroup from '../src'; // eslint-disable-line no-unused-vars describe('SSR', () => { it('should import react-transition-group in node env', () => {}); });
require 'httpclient' require 'json' module Openbd # Raised for request error. class RequestError < StandardError; end # Raised for response error. class ResponseError < StandardError; end END_POINT = 'https://api.openbd.jp/v1' # The Client class provides a wrapper to the openBD service # # @see htt...
module ForumTopicsHelper def forum_topic_category_select(object, field, options = {}) select(object, field, ForumCategory.visible.reverse_mapping, options) end def available_min_user_levels ForumTopic::MIN_LEVELS.select { |name, level| level <= CurrentUser.level }.to_a end def tag_request_message(ob...
#!/bin/bash set -e npm pack TARBALL=$(ls *.tgz) trap "rm ${TARBALL}" EXIT tar tfz ${TARBALL} | grep '^package/lib/.*\.js$' || (echo "tarball contained no .js files"; exit 1) tar tfz ${TARBALL} | grep '^package/lib/.*\.d\.ts$' || (echo "tarball contained no .d.ts files"; exit 1) echo "tarball contained .js and .d.ts...
module Spree module Admin class CategoriesController < ResourceController private def location_after_save if @category.created_at == @category.updated_at edit_admin_category_url(@category) else admin_categories_url end end end end end
# Gop ## What is gop? Gop is a package manager for godot. ## Installating Gop ```bash pip3 install git+https://github.com/felix-hellman/gop.git --user ``` ## Installing Public Packages Installing packages with gop is pretty simple and requires no log in. ```bash gop init gop add --dependency=feli...
Sequel.migration do up do run 'ALTER TABLE storage_apps CONVERT TO CHARACTER SET utf8mb4;' end down do run 'ALTER TABLE storage_apps CONVERT TO CHARACTER SET utf8;' end end
container_prefix=${CONTAINER_PREFIX:-docker.io/alukiano} container_tag=${CONTAINER_TAG:-latest} namespace=openshift-machine-api image_pull_policy=${IMAGE_PULL_POLICY:-IfNotPresent} verbosity=${VERBOSITY:-2} kubevirtci_git_hash="45cdf80da619866cdab36295de25a8aeea7eccbc"
class ProfileDecorator < ApplicationDecorator delegate_all def birthday I18n.l(profile.birthday) if profile.birthday end end
-module(es_store_ets). -behaviour(es_store). -export([ init/0, store/1, stream/0 ]). init() -> ets:new(event_store, [set, named_table, private]). store(#{aggregate_id := AggregateId} = Event) -> case ets:lookup(event_store, AggregateId) of [] -> ets:ins...
/* * Copyright (C) 2019 The Winc Authors. All Rights Reserved. * Copyright (C) 2010-2013 Allen Dang. All Rights Reserved. */ package winc import ( "fmt" "syscall" "unsafe" "github.com/tadvi/winc/w32" ) func internalTrackMouseEvent(hwnd w32.HWND) { var tme w32.TRACKMOUSEEVENT tme.CbSize = uint32(unsafe.Size...
import * as React from 'react'; import IconDone from '../../../../public/images/mission/mission-done.svg'; import IconTodo from '../../../../public/images/mission/mission-todo.svg'; import IconUnknown from '../../../../public/images/mission/mission-todo.svg'; import styles from './timeline.module.scss'; interface Ti...
using System; using System.Reflection; using ObjectSql.Core.SchemaManager.EntitySchema; namespace ObjectSql.Core.SchemaManager { public interface IEntitySchemaManager { EntitySchema.EntitySchema GetSchema(Type entityType); FuncSchema GetFuncSchema(MethodInfo method); IStorageFieldType ParseDbType(string value...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use \App\Node; use \App\LayoutSlot; use Log; class SlotController extends Controller { // This receives (via post) an array of node ids to sort into itself // The array may be dirtied with non-existent ids public function sort(Request $request, L...
//! Parsing utilities for TripAdvisor XML feed. use futures::stream::Stream; use tokio::io::{AsyncBufRead, AsyncBufReadExt}; use tracing::debug; /// Expected string at start of a <Property /> item. const START_TOKEN: &[u8] = b"<Property "; /// Expected string at the end of a <Property /> item. const END_TOKEN: &[u8]...
import * as core from '@actions/core' import { getNpmrcContent } from './npmrc' import { INpmRcConfig } from './inteface' import { createFile } from './file' // import { getYarnrcContent } from './yarnrc' import { setGlobalConfig } from './global' const run = async () => { try { const registry = core.getInput('r...
// 🎯 Dart imports: import 'dart:io'; // 📦 Package imports: import 'package:console/console.dart'; /// Output for an error void error(String message, {int indentation = 0}) { final pen = TextPen(); pen.red(); pen('${_generateIndentation(indentation)}${Platform.isWindows ? '' : '❌'} $message'); pen(); exit(...
namespace KerioConnect.Entities { /// <summary> /// Extension of Apple Address Book /// </summary> public class ABExtension { public string groupId { get; set; } public string label { get; set; } } }
#include "common.h" #include "math.h" #include "string.h" int strcmp(const char *s1, const char *s2) { while(*s1 && (*s1 == *s2)) { s1++; s2++; } return *(const unsigned char*)s1 - *(const unsigned char*)s2; } void * memcpy (void *dest, const void *src, size_t len) { char *d = dest; ...
namespace AzureFunctionWithDependencyInjectionAndConfigInKeyvault { public interface IMyService { string GetValuesFromConfiguration(); } }
require 'qb/docker' describe_spec_file( spec_path: __FILE__, class: QB::Docker::Image::Name, ) do describe_section "loading" do # ======================================================================== describe_method :from_s do describe_group "accepts" do shared_examples de...
<?php namespace Reusables; class Template { public static function make( $file, $identifier ) { Page::addAssetFile( "template", $file ); $View = View::factory( 'reusables/views/template/' . $file ); $data = Data::get( $identifier ); $View->set( 'templatedict', $data ); $View->set( 'identifier', $identif...
part of smalltalk; /** * Smalltalk grammar definition. */ class SmalltalkGrammar extends CompositeParser { @override void initialize() { _whitespace(); _number(); _smalltalk(); } void _whitespace() { // the original implementation uses a handwritten parser to // efficiently consume whit...
import 'package:flutter/material.dart'; import 'package:splttr/widgets/empty_list_message.dart'; import 'package:splttr/widgets/two_button_row.dart'; class AppScreenTitleWithImageWidget extends StatelessWidget { final String imagePath; final String title; final TwoButtonRow buttonRow; final bool showEmptyListM...
package main.basicprogramming.implementation.kotlin fun main(args: Array<String>) { val input = readLine()!! val goodLuck = fortuneCounter(input) if(goodLuck) println("Good luck!") else println("Sorry, sorry!") } private fun fortuneCounter(input: String) : Boolean{ /** * To count the consecutive...
namespace iayos.flashcardapi.Domain.Infrastructure { public interface ITransactionalGateway { void BeginTransaction(); void CommitTransaction(); void RollbackTransaction(); } }
#!/bin/bash source envs_local.sh function setup_db() { echo "Setting up DB for user ${1}" cd src/btwa_api \ && alembic upgrade head \ && python scripts.py add-user $1 } if [ $# -ne 1 ]; then echo "Usage: ./setup_local.sh username" exit 1 fi pip install -e .\ && setup_db $1
<?php namespace NFePHP\NFSe\Models\ETransparencia\Factories; class CancelaNotaEletronicaV3 extends Factory { }
<div class="panel panel-default" id="system-menu"> <div class="panel-heading text-center">Sistem</div> <div class="panel list-group"> <a class="list-group-item" data-toggle="collapse" href="#system" data-parent="#system-menu"> <span class="hidden-xs hidden-sm"><i class="fa fa-cog"></i> Sistem </span> ...
from collections import deque stack = deque() stack.append(1) stack.append(3) stack.append(5) stack.append(7) stack.append(9) print("Initial stack : ", stack) print("Removing the element from the stack : ") print(stack.pop()) print(stack.pop()) print(stack.popleft()) print("Stack : ", stack )
/* * Copyright (c) 2018. paascloud.net All Rights Reserved. * 项目名称:paascloud快速搭建企业级分布式微服务平台 * 类名称:MqConsumerStore.java * 创建人:刘兆明 * 联系方式:paascloud.net@gmail.com * 开源地址: https://github.com/paascloud * 博客地址: http://blog.paascloud.net * 项目官网: http://paascloud.net */ package com.paascloud.provider.annotation; imp...
<?php namespace Modules\Trade\Sidebar; use Maatwebsite\Sidebar\Group; use Maatwebsite\Sidebar\Item; use Maatwebsite\Sidebar\Menu; //use Modules\Auth\Contracts\Authentication; class SidebarExtender implements \Maatwebsite\Sidebar\SidebarExtender { /** * @var Authentication */ protected $auth; /...
use Test; use DateTime::Julian :ALL; plan 60; my %jpl = # using test data from the JPL website: # https://ssd.jpl.nasa.gov/tc.cgi '-4000-01-01T11:59:59.99Z' => [260423.9999999, 'Thursday'], '-4000-01-01T12:00:00.00Z' => [260424, 'Thursday'], '-4000-01-01T13:00:00.01Z' => [260424.0416668, 'Thu...
; (function ($) { function Table(elem) { var table = this; var $elem = $(elem); elem = $elem.get(0); var o = { cellTag: 'span', cellClass: 'Table-cell', thAttr: 'data-th', formatHeader: function(text) { return text+':'; } }; table.init = function (options) { setProperties(options...
import 'package:brasil_fields/brasil_fields.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; import 'package:xlomobx/stores/cep_store.dart'; import 'package:xlomobx/stores/create_store.dart'; class CepField extends StatelessWidget {...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Week1 : MonoBehaviour { // Start is called before the first frame update public string Win; public GameObject input; public GameObject output; public void tao() { ...
module TestScikitLearn using MLJBase using Test import MLJModels import ScikitLearn using MLJModels.ScikitLearn_ using CategoricalArrays task = load_iris(); X, y = X_and_y(task) train, test = partition(eachindex(y), 0.6) # levels of y are split across split plain_classifier = SVMClassifier() nu_classifier = SVMNuCl...
// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Logging { /// <summary> /// A structure representing a log message /// </summary> public class LogMessage : ISettable { /// <summary> /// A string ...
#!/bin/ash set -e sed -i "s|{{REST_ENDPOINT}}|$REST_ENDPOINT|g" /usr/share/nginx/html/main.js sed -i "s|{{TITANIUM_REPORT_GENERATION_URL}}|$TITANIUM_REPORT_GENERATION_URL|g" /usr/share/nginx/html/main.js exec "$@"
using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace Sre { class HostedService : IHostedService { #region constructor private readonly ILogger<HostedService> logger; private rea...
package ro.pub.cs.aipi.lab02.entities; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @StaticMetamodel(User.class) public class User_ { public static volatile SingularAttribute<User, Long> id; public static volatile SingularAttribute<User, Long> pers...
module ConfigHelpers # SOCCER def self.set_api_football_com Sports::Butler::Configuration.configure do |config| config.api_token = { soccer: {}, basketball: {} } config.api_token[:soccer][:api_football_com] = 'my_dummy_token' config.api_base_url = { soccer: {}, basketball: {} } config....
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using ReactiveMachine; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Counter.Service { [DataContract...
'use strict'; import { window } from 'vscode'; import { isMarkdownFileCheck, noActiveEditorMessage } from '../helper/common'; import { addNewColumn, addNewColumnWithSpan, createRow } from '../helper/rows-columns'; import { sendTelemetryData } from '../helper/telemetry'; const rowWithColumns = 'Two-column structure'; ...
alter table ACT_RU_TASK add column SUB_TASK_COUNT_ integer; update ACT_RU_TASK t set t.SUB_TASK_COUNT_ = (select count(*) from (select * from ACT_RU_TASK where IS_COUNT_ENABLED_ = true) as count_table where PARENT_TASK_ID_ = t.ID_) where t.IS_COUNT_ENABLED_ = true; update ACT_GE_PROPERTY set VALUE_ = '6.3.0.0' where N...
package com.wix.hoopoe.koboshi.scheduler import java.util.concurrent.{Executors, ScheduledExecutorService} class JavaUtilExecutorsSchedulers extends Schedulers { override def aScheduler(namespace: String): ScheduledExecutorService = Executors.newScheduledThreadPool(1) }