text
stringlengths
27
775k
<h4>Wybierz wzór</h4> <div class="business-cards"> <div class="row bc-patterns"> <input type='radio' name='bc' value='bc1' id="bc1" ng-click="SelectDesign('bc1.png')" style="background: url('../web/static/img/bc1.png') no-repeat; background-size: 60%;"/> <label for="bc1...
# はじめに 指定フォルダ配下にある全部のエクセルファイルから特定の文字列を検索してくれるエクセルVBA。 # 使い方 1. セルB1に検索パスを入れる。<br />セルC1の参照から選んでもOK 1. セルB2に検索したい文字列を入れる。基本は部分一致。<br />セルC2を正規表現にすれば正規表現での検索も(たぶん)可能。 1. 検索開始ボタンを押せばフォルダ配下のエクセルファイルから文字列を検索。<br />かなり遅いので気長に。 # 最後に 標準であってもいい機能だと思うんだ。
use crate::frame_c::config::FrameConfig; use crate::frame_c::parser::*; use crate::frame_c::scanner::*; use crate::frame_c::symbol_table::*; use crate::frame_c::utils::{frame_exitcode, RunError}; use crate::frame_c::visitors::cpp_visitor::CppVisitor; use crate::frame_c::visitors::cs_visitor::CsVisitor; use crate::frame...
<div class="dropdown-menu"> @foreach($items->where('parent_id', $item->id) as $item) <a class="dropdown-item" href="{{ $item->url }}" target="{{ $item->target }}"> <span style="color:{{ $item->color }}"> @if($item->icon_class) <i class="nav-icon {{ $item->icon...
## zen6 4k ## ELO: 1151 Opponent | Rank | ELO | Black | White | Total | Win rate ---------|-----:|----:|-------|-------|-------|-------: [LZ LM 30BOZ02 0.1k](LZ%20LM%2030BOZ02%200.1k.md) | 2D | 2102 | 0 / 1 | - | 0 / 1 | 0.0% [zen7 1k](zen7%201k.md) | 1k | 1668 | - | 0 / 1 | 0 / 1 | 0.0% [pachi nodcnn 3k](pac...
import Errors from "../errors"; import { Logger } from "../../../domain/utilities"; import { MultiMessages } from "../helpers"; // **========================================================================== // ** Server Error Handler // **========================================================...
use std::fmt; use std::rc::Rc; use ::bits::{DNameBuf, DNameSlice, RecordData}; use ::iana::{Class, Rtype}; use ::rdata::MasterRecordData; use super::{ScanError, ScanResult, Scanner, SyntaxError}; #[derive(Clone, Debug)] pub struct MasterRecord { pub owner: Rc<DNameBuf>, pub class: Class, pub ttl: u32, ...
import { Payment } from "./payment"; export interface Penguin { id: string; price: Payment; timestamp: string; fromAddress: string; toAddresss: string; url: string; }
<?php /* 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 the Li...
import AbstractFibreListener = require('plugins/common/views/AbstractFibreListener'); import Backbone = require('backbone'); import AlertNotificationView = require('weaver/views/AlertNotificationView'); import ViewFibreOptions = require('plugins/interfaces/ViewFibreOptions'); import FibreBuilder = require('../layout/Fi...
package sq import "testing" func TestAppendAndReplace(t *testing.T) { tests := []struct { input string exp1 string // mysql exp2 string // postgres }{ { `sample`, `sample`, `sample`, }, { `foo = ? AND bar = ?`, `foo = ? AND bar = ?`, `foo = $1 AND bar = $2`, }, { `"foo" = ? AN...
# 今後やること - Effectクラスをつくる - すげー適当なカードを実装する ## 2020/5/28 やること - ダイスの面を買いたい - ダイス屋さんをつくる - [x] ダイスの面を自由に変えるコマンドを追加する - [x] 自分のダイスを見る - [x] まずダイスを保持し\ているのか? - [x] まずプレイヤーを保持しているのか? - -> [x] 今自分が何を操作してるのか確認
package xvals import ( "log" "os" "gopkg.in/yaml.v3" ) type ProfileFile struct { CurrentProfile string `yaml:"current_profile"` Profiles map[string]map[string]string `yaml:"profiles"` } // profileProvider is an xvals provider holding several profiles of values type profileProvider s...
using Microsoft.AspNetCore.Identity; using System; using System.ComponentModel.DataAnnotations; namespace ThingLing.Shared.Models.UserAccount { public class ApplicationUser : IdentityUser { [Display(Name = "Date created")] public DateTimeOffset DateCreated { get; set; } } }
<?php namespace App\Renderers; use App\Game; class BlinkstickRenderer implements Renderer { private $itemPositions = []; public function __construct() { $this->resetLeds(); } public function render($state) { //$this->renderWithPulses($state); //$this->renderWithSetLe...
import styled from 'styled-components'; export const HeaderWrapper = styled.header` width: 100%; max-width: 1200px; top: 0; position: fixed; box-shadow: 0 4px 10px var(--color-header-shadow); background: var(--color-header); margin: 0 auto; `; export const HeaderNav = styled.nav` display: flex; just...
using NAudio.CoreAudioApi; using NAudio.Wave; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows....
# Snowman Library This package contains shared code from app and wrapper. ## Development If you change any code in this package, please run `npm run build` and make sure to commit `./src` as well as `./lib`!
require 'test_helper' class ScheduledMessagesControllerTest < ActionController::TestCase test "current message should redirect" do m = scheduled_messages(:message_2) m.scheduled_at = Time.now - 10.minutes m.save! post :show, params: {id: m.id} assert_redirected_to %r(qualtrics.com) refute ass...
""" Extension Class """ from threading import Timer from ulauncher.api.client.Extension import Extension from ulauncher.api.shared.event import KeywordQueryEvent, ItemEnterEvent from ulauncher.api.shared.item.ExtensionResultItem import ExtensionResultItem from ulauncher.api.shared.item.ExtensionSmallResultItem import E...
import { ApiModelProperty } from '@nestjs/swagger'; import { DecisionDto } from './decision/decision.docs'; export class CaseDto { @ApiModelProperty({ required: false, description: 'case number' }) id: number; @ApiModelProperty({ required: false, description: 'case number' }) caseNumber: string; @ApiModelP...
package ratelimit import ( "testing" "time" ) func TestMonitor_RecommendedWaitForBackgroundOp(t *testing.T) { m := &Monitor{ known: true, limit: 5000, remaining: 1500, reset: time.Now().Add(30 * time.Minute), } durationsApproxEqual := func(a, b time.Duration) bool { d := a - b if d < 0 {...
#include "stringutil.h" uint32_t indentCount(const QString& data, const QChar indentKey) { uint32_t count = 0; if (0 >= data.count()) { return 0; } QString unIndentKeyData = data; unIndentKeyData = unIndentKeyData.replace(indentKey, ""); if (0 >= unIndentKeyData.count()) { return 0; } while (in...
/* * @Author: qiuz * @Github: <https://github.com/qiuziz> * @Date: 2020-12-09 14:14:02 * @Last Modified by: qiuz */ /** * 等额本息计算方式 * 每月还款额=贷款本金×[月利率×(1+月利率)^还款月数]÷[(1+月利率)^还款月数-1] * 总支付利息:总利息=还款月数×每月月供额-贷款本金 * 每月应还利息=贷款本金×月利率×〔(1+月利率)^还款月数-(1+月利率)^(还款月序号-1)〕÷〔(1+月利率)^还款月数-1〕 * 每月应还本金=贷款本金×月利率×(1+月利率)^(还款月序号...
class <%= identity_model_class %> < ActiveRecord::Base include TokenVerification PASSWORD_RESET_KEY = :password_reset EMAIL_CONFIRMATION_KEY = :email_confirmation has_secure_password belongs_to :<%= domain_model %>, inverse_of: :<%= identity_model %> validates_presence_of :email validates_uniqueness_...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace Livraria.GUI.ViewModel { public partial class ucUnidadeFederativa : ucUserControlBase { #region ucUnidadeFed...
require 'active_support/concern' require 'meta_search/method' require 'meta_search/builder' module MetaSearch module Searches module ActiveRecord def self.included(base) base.extend ClassMethods base.class_eval do class_attribute :_metasearch_include_attributes, :_metasearch_ex...
import data from "@site/policies.v2.json"; import CodeBlock from "@theme/CodeBlock"; import React from "react"; const PolicyConfig = ({ id }: { id: string }) => { const policy = data.policies.find((p) => p.id === id); if (!policy) { throw new Error(`Could not find policy '${id}'`); } const code = { na...
#!/bin/bash DATE=`date +"%Y/%m/%d %T"` PSSTATUS=`ps -ef | grep Make_ | grep -v grep | wc -l` if [ $PSSTATUS -ge 1 ]; then echo "$DATE run_make_image.sh is already running. Script is stopped." else echo "$DATE run_make_image.sh is started." ./Make_IC0_image.sh ./Make_SID_image.sh ./Make_PRMSL_image.sh ./Make...
AppModules.geo = function (root) { var minMax = root.minMax = function (value, min, max) { return value < min ? min : value > max ? max : value; }; var self = { a2ll: function (arr) { return self.p2ll(arr); }, ll2p: function (ll) { return root.map.project(ll, root.tile.maxZoom()); ...
export class TokenLocal { createdAt: number; name: string; ownerStrategyName: string; value: string; }
<?php require_once(APPPATH."qiniu/utils.php"); require_once(APPPATH."qiniu/conf.php"); // ---------------------------------------------------------- class Qiniu_Mac { public $AccessKey; public $SecretKey; public function __construct($accessKey, $secretKey) { $this->AccessKey = $accessKey; $this->SecretKey ...
--- title: "AWS CloudWatch" linkTitle: "AWS CloudWatch" date: 2022-05-25 description: > AWS SRE - CloudWatch使用经验. --- # AWS SRE - CloudWatch使用经验 日志、指标、告警等功能 ## 一、日志查询 ### A、全局日志搜索:Logs Insights 使用 CloudWatch 查询语法进行 日志组 维度的全局日志搜索。 #### 常用查询语法 ``` fields @timestamp, @message | sort @timestamp desc | limit 20 `...
#include "builtin.hh" #include <cassert> #include <cstdio> #include <unordered_map> #include <boost/optional.hpp> #include "echo.hh" #include "exit.hh" namespace exec { namespace builtins { namespace { enum class builtins : uint8_t { BUILTIN = 0, ECHO = 1, EXIT = 2, }; boost::optional<builtins> builtin_from_nam...
package com.kylecorry.trail_sense.shared.grouping.filter import com.kylecorry.trail_sense.shared.grouping.Groupable interface IGroupFilter<T : Groupable> { suspend fun filter( groupId: Long? = null, includeGroups: Boolean = false, maxDepth: Int? = null, predicate: (T) -> Boolean ...
#!/bin/sh #################################################################################### # If not stated otherwise in this file or this component's Licenses.txt file the # following copyright and licenses apply: # Copyright 2018 RDK Management # Licensed under the Apache License, Version 2.0 (the "License"); #...
<?php namespace Wearejust\SonataThemeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class TemplateController extends Controller { /** * @return \Symfony\Component\HttpFoundation\Response */ public function deleteDialogAction() { return $this->render('@Weare...
const Disassembler = require('./lib/disassembler'); const winston = require('winston'); const http = require('http'); const port = process.env.PORT || 3000; const env = process.env.NODE_ENV || 'dev'; const express = require('express'); const bodyParser = require('body-parser'); //...
// use std::iter::Iterator; // Symbol Tables pub trait ST<K, V> { /// create a symbol table fn new() -> Self; /// put key-value pair into the table /// (remove key from table if value is null) /// a[key] = val; fn put(&mut self, key: K, val: V); /// value paired with key /// (null if ke...
package com.moon.beautygirlkotlin.common.data.entity import android.os.Parcelable import com.moon.beautygirlkotlin.R import kotlinx.android.parcel.Parcelize /** * Created by Arthur on 2019-12-29. */ @Parcelize data class Source( val id: Int, val title: Int, val types: List<SourceType>? ) ...
import pytorch_lightning as pl import numpy as np import torch # noinspection PyProtectedMember from torch.utils.data import DataLoader from spanet.options import Options from spanet.dataset.jet_reconstruction_dataset import JetReconstructionDataset from spanet.network.learning_rate_schedules import get_linear_schedu...
// Copyright (c) 2021 Mantano. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:typed_data'; import 'package:flutter/services.dart'; import 'package:mno_lcp/lcp.dart'; abstract class LcpClient { bool get isAvailable; String...
# pwgen 英数字からランダムな文字列を作ります。
/* 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
import './posts'; import '../collections/posts/methods'; import { Meteor } from 'meteor/meteor'; import { Posts } from '../collections/posts/posts'; import { TimeLines } from '../collections/timelines/timelines'; Meteor.startup(() => { Posts.remove({}); TimeLines.remove({}); Meteor.users.remove({}); });
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Page; class PageController extends Controller { public function renderPage(Page $page) { $contents = collect([]); $ordered_sections = $page->sections->sortBy('order'); foreach($ordered_sections as $sect...
{-@ LIQUID "--short-names" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "--scrape-used-imports" @-} module DataTypes where {-@ die :: {v:String | false} -> a @-} die = error {-@ data IncList a = Emp | (:<) { hd :: a, tl :: IncList {v:a | hd <= v}} @-} data IncList a = Emp | (:<) ...
class Workflow module Cwl class StepParser include ActiveModel::Validations attr_reader :step_json, :title, :parser, :step_number delegate :context, to: :parser validates :id, :inputs, :outputs, :run, presence: true validates :run, 'cwl/step_run': true validates :app, 'workfl...
import React from "react"; import graphql from "babel-plugin-relay/macro"; import { createFragmentContainer } from "react-relay"; class Task extends React.Component { render() { const { task: { content } } = this.props; return <li>{content}</li>; } } export default createFragmentContainer(Tas...
package com.github.provider.providers import android.content.ContentProvider import android.content.ContentValues import android.content.Context import android.content.UriMatcher import android.database.Cursor import android.database.sqlite.SQLiteDatabase import android.net.Uri import android.text.TextUtils import com...
namespace Hexadecimal { internal class Lookup { /// <summary> /// Creates a lookup array which can be used to convert /// a byte array to a hexadecimal string. /// </summary> /// <param name="uppercase"> /// Whether the resulting hex should be uppercase. ...
require './test/test_helper' require './lib/gameboard' class GameBoardTest < Minitest::Test def setup @board = GameBoard.new end def test_it_is_a_gameboard assert_instance_of GameBoard, @board end def test_it_has_16_valid_placement_locations result = @board.valid_locations assert_equal 16, ...
import { Component, OnInit, Input, ViewChild, ElementRef } from '@angular/core'; import { User } from 'src/app/Interfaces/user.model'; import { RecipesService } from 'src/app/services/recipes.service'; import { DomSanitizer } from '@angular/platform-browser'; import { Router } from '@angular/router'; import { Authentic...
package alektas.telecomapp.domain.entities.converters import org.junit.Test import org.junit.Assert.* class ValueConverterTest { // 8-разрядный конвертер оперирует значениями от 0 до 255 private val bitDepth = 8 private val converter = ValueConverter(bitDepth) @Test fun convertToBitString_zeroVa...
require 'spec_helper' require 'htauth/algorithm' describe HTAuth::Algorithm do it "raises an error if it encouners an unknown algorithm" do _ { HTAuth::Algorithm.algorithm_from_name("unknown") }.must_raise(::HTAuth::InvalidAlgorithmError) end end
{-# LANGUAGE OverloadedStrings #-} module Main where import Network.Wai import Network.HTTP.Types import Network.HTTP.Client (RequestBody(RequestBodyBS)) import Network.Wai.Handler.Warp (run) import Data.Monoid ((<>)) import Data.ByteString.Char8 hiding (putStrLn) import qualified Data.ByteString.Lazy as LBS import L...
-- | Environments implemented as tree maps. module MapEnv where import Data.Map (Map) import qualified Data.Map as Map import qualified Data.Traversable as Trav type Env = Map -- | Query lookup :: (Ord k) => k -> Env k v -> Maybe v lookup = Map.lookup lookupSafe :: (Ord k, Show k) => k -> Env k v -> v lookupSafe k...
package com.fasterxml.jackson.jr.ob.impl; import java.io.IOException; import java.util.Map; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.jr.ob.JSON; import com.fasterxml.jackson.jr.ob.JSONObjectException; import com.fasterxml.jackson.jr.ob.TestBase; import com.fasterxml.jackson.jr.ob.api...
using Voltaic.Serialization; using System.Collections.Generic; using Voltaic; namespace Wumpus.Entities { /// <summary> xxx </summary> [IgnoreProperties("members")] public class RpcGuild { /// <summary> xxx </summary> [ModelProperty("id")] public Snowflake Id { get; set; } ...
package main type MimeTypes = map[string]string var mimes = MimeTypes{ ".css": "text/css; charset=utf-8", ".csv": "text/csv; charset=utf-8", ".md": "text/markdown; charset=utf-8", ".markdown": "text/markdown; charset=utf-8", ".htm": "text/html; charset=utf-8", ".html": ...
export enum IndicatorStatus { UNKNOWN = "UNKNOWN", UP = "UP", DOWN = "DOWN", } export interface IndicatorResponse { status: IndicatorStatus; lastCheck: number | null; response?: any; error?: any; } export interface IndicatorOptions { timeout?: number; } export type Indicator = () => P...
using System; using System.IO; using GDataDB.Impl; using Google.GData.Client; using Google.GData.Documents; using Google.GData.Spreadsheets; using SpreadsheetQuery=Google.GData.Documents.SpreadsheetQuery; namespace GDataDB { public class DatabaseClient : IDatabaseClient { private readonly IService documentSe...
<?php /* Support for Flash theme */ $flash = ' .page-template-builder-fullwidth-std #page #flash-breadcrumbs { display: none; } .page-template-builder-fullwidth-std .site-content .tg-container { max-width: 100%; } @media (max-width: 1200px) { .page-template-builder-fullwidth-std .site-content .tg-co...
# SCRIPT MENU # ############################################### # Chargement des classes Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing . .\hide_console.ps1 ############################################### ############# CREATION DE LA FENETRE ############### $objFormPanel = New-O...
package typingsSlinky.novncCore import typingsSlinky.novncCore.mod.NvConnectionState import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object novncCoreStrings { @js.native ...
<?php declare(strict_types=1); namespace AppBundle\Service\Pusher; use Exception; /** * Interface RealTimeServiceInterface * @package AppBundle\Service\Pusher */ interface RealTimeServiceInterface { /** * @param array $data * @return $this * @throws Exception */ public function dispatc...
//package com.dslplatform.storage; // //import java.io.ByteArrayInputStream; //import java.io.IOException; //import java.io.InputStream; //import java.util.HashMap; //import java.util.Map; //import java.util.UUID; //import java.util.concurrent.ExecutionException; // //import org.apache.commons.io.IOUtils; // //import c...
import { Card } from "../../heartstone.dto"; export class FilteringFunctionFactory { static getFilteringFunction(filterBy: Filter, value: string){ let func = (card: Card) => { return card[filterBy].includes(value); } return func; } static getFilteringString(filterBy: ...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; using System.Web.UI; using Helpy.Pages; namespace Helpy.Code { public static class Utils { public static void RunJS(Page page, string js, string key) { ...
require 'chefspec' describe 'step_into::default' do context 'without :step_into' do let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) } it 'does not execute the LWRPs action' do expect(chef_run).to_not write_log('message') end end context 'with :step_into' do let(:chef_run)...
C @(#)bestep.f 20.3 2/13/96 function bestep (kt, mt, nt, qk, q1, q2, dvdq) C C This function evaluates the BEst discrete C STEP (Q1 or Q2) such that BESTEP has C C 1. an estimated voltage which is within limits, and C 2. the selected Q is closest to QK. C c QK, Q1, Q2, DVDQ should be...
module Blobsterix module Storage class BucketEntry attr_accessor :key, :last_modified, :etag, :size, :storage_class, :mimetype, :fullpath def self.create(file, meta) BucketEntry.new(file.to_s.gsub("\\", "/")) do |entry| entry.last_modified = meta.last_modified.strftime("%Y-%m-%dT%H...
using Catalyst3D.XNA.Engine.EntityClasses.Sprites; using Catalyst3D.XNA.Engine.UtilityClasses; using Catalyst3D.XNA.Physics; using Catalyst3D.XNA.Physics.Interfaces; using Microsoft.Xna.Framework; namespace Catalyst3D.XNA.Testing.EntityClasses { public class Ground : Sprite, IPhysicsBody { public float Mass {...
# MacOS Some things specific to development under MacOS. ## Running app flutter pub get flutter devices flutter run The Google Play Services SDK. You can get this from the Android SDK Manager in Android Studio. ## Running Android emulator cd ~/Android/Sdk/tools && ./emulator -list-avds cd ~/Android/Sdk/tools/...
/** * Provides domain use cases. Each use case contains a single public method, and takes advantage of inversion of * control. * * @since 2.0.0 */ package org.siouan.frontendgradleplugin.domain.usecase;
const express = require('express'); const app = express(); const cors = require('cors'); const port = process.env.PORT || 3000; const bodyParser = require('body-parser'); const sha256 = require('sha256'); const fs = require('fs'); app.use(bodyParser.urlencoded({extended:true})); app.use(bodyParser.json()); app.use(exp...
use std::sync::mpsc::{sync_channel, SyncSender}; use std::thread; use timer::TimeOut; use state::State; use types::Cmd; pub fn time_start(state: &mut State, cmd_tx: SyncSender<Cmd>) { let c = state.search_state.as_ref() .expect("invalid search_state") .pos.side_to_move(); let...
// <copyright file="SharePointAuthSettings.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace Microsoft.Teams.Apps.NewHireOnboarding.Models.Configuration { /// <summary> /// A class which helps to provide SharePoint auth settings for application. //...
import { ValidationError as JoiValidationError } from 'joi' import { AppError } from './app-error' export class FieldError { constructor(public readonly field: string, public readonly message: string) {} static generate(error: JoiValidationError): FieldError[] { const errors = error?.details ?? [] return...
require 'tmpdir' module Stash module Repo describe FileBuilder do describe :file_name do it 'defaults to the value provided in the initializer' do file_name = 'qux.txt' builder = FileBuilder.new(file_name: file_name) expect(builder.file_name).to eq(file_name) e...
declare namespace IEventCardDescription { export interface IProps { styles?: React.CSSProperties; className?: string; children: string; } } export { IEventCardDescription };
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyri...
--- description: Dies ist Test für Scenario4 ms.openlocfilehash: a84def9e5d75fa570b955f137a40db2c16fed377 ms.sourcegitcommit: 7c59ea5effa40f2e634cdbaaff2516396a71829e ms.translationtype: HT ms.contentlocale: de-DE ms.lasthandoff: 07/15/2019 ms.locfileid: "67877479" --- # <a name="parent-file"></a>Übergeordnete Datei I...
SET NAMES utf8mb4; USE job_crontab; DROP PROCEDURE IF EXISTS job_schema_update; DELIMITER <JOB_UBF> CREATE PROCEDURE job_schema_update() BEGIN DECLARE db VARCHAR(100); SET AUTOCOMMIT = 0; SELECT DATABASE() INTO db; IF NOT EXISTS(SELECT 1 FROM information_schema.COLUMNS ...
package main import ( "os" "fmt" "strings" "os/exec" "io/ioutil" "crypto/rsa" "github.com/number571/gopeer" ) type Node struct { Address string Certificate string Public string } const ( TITLE_MESSAGE = "[TITLE-MESSAGE]" TITLE_ARCHIVE = "[TITLE-ARCHIVE]" ) var ( ...
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple aarch64-none-linux-gnu < %s | FileCheck %s declare <4 x i16> @llvm.aarch64.neon.uaddlp.v4i16.v8i8(<8 x i8>) nounwind readnone declare <8 x i16> @llvm.aarch64.neon.uaddlp.v8i16.v16i8(<16 x i8>) nounwind readnone declare ...
@extends("vendor.adminlte.layouts.app") @section('htmlheader_title') Registrar Producto @endsection @section('contentheader_title') <div class="text-center"> <b>Registrar Producto</b> </div> @endsection @section("main-content") <section class="content"> <!-- Your Page Content Here --> <...
import pytest def test_collection_show(run_line, load_api_fixtures, add_gcs_login): data = load_api_fixtures("collection_operations.yaml") cid = data["metadata"]["mapped_collection_id"] username = data["metadata"]["username"] epid = data["metadata"]["endpoint_id"] add_gcs_login(epid) _result,...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
# frozen_string_literal: true require "rails_helper" RSpec.describe "rake admin:create", type: :task do let(:name) { Faker::Name.name } let(:email) { Faker::Internet.email } it "calls create_admin" do url = "http://www.example.com/users/sign_in?utm_campaign=new-admin&utm_medium=email&utm_source=cpdservice"...
<?php session_start(); ob_start(); require_once "../conexao.php"; $dados_rc = filter_input_array(INPUT_POST, FILTER_DEFAULT); $erro = false; $dados_st = array_map('strip_tags', $dados_rc); $dados = array_map('trim', $dados_st); //CADASTRO INVÁLIDO if(in_array('',$dados)){ $erro = true; $_SESSION['msg'] = "<div cla...
import chrome from 'sinon-chrome'; import { assert } from 'chai'; import { loadInCurrentTab, loadInNewTab, } from '../utils'; describe('loadInCurrentTab', function () { const url = 'https://example.com/'; it('should open a new tab with the given url', function () { assert.isTrue(chrome.tabs.update.not...
/** * @file * * @date 04.10.2019 * @author Anastasia Nizharadze */ #ifndef IRQCTRL_RISCV_INTC_IMPL_H_ #define IRQCTRL_RISCV_INTC_IMPL_H_ #define __IRQCTRL_IRQS_TOTAL 70 #endif /* IRQCTRL_RISCV_INTC_IMPL_H_ */
package redux.form // each search request triggers rendering of the underlying autocomplete component; // default initial value for field is empty string, which must be replaced with [] // if this array reference changes, it causes full rerender of the component and it // leads to unusable inputText component val SENT...
package com.talanlabs.rtext.test.it; import com.talanlabs.rtext.Rtext; import com.talanlabs.rtext.configuration.RtextConfigurationBuilder; import org.assertj.core.api.Assertions; import org.junit.BeforeClass; import org.junit.Test; public class StandardRtextIT { private static Rtext rtext; @BeforeClass ...
<?php // This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2019 polarphp software foundation // Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for licens...
--- title: CROSMAN is_name: true --- CROSMAN (see also CROSSMAN)
#!/bin/bash VENV_HOME=$PWD/venv3 # Prepare local environment: python3 -m venv $VENV_HOME # Activate python3 environment: source $VENV_HOME/bin/activate # Update pip and install modules: pip install --upgrade pip pip install astropy # Could need tkinter on box (ex: dnf install python3-tkinter) pip install matplotlib ...
package dev.kodorebi.realmtypesafe.results import dev.kodorebi.realmtypesafe.KProperties import io.realm.RealmResults import java.util.* import kotlin.reflect.KProperty1 fun <E> RealmResults<E>.minDate(field: KProperty1<E, Date?>) : Date? { return this.minDate(field.name) } fun <E> RealmResults<E>.minDate(field:...
#!/usr/bin/env runhaskell {- | = Extract vacabulary of a file. From <https://www.manning.com/books/haskell-in-depth Haskell in Depth by Vitaly Bragilevsky> -} module Main (main) where import Data.Char import Data.List (group, sort) import qualified Data.Text as T import qua...