text
stringlengths
27
775k
#nullable enable using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; namespace DocumentStores { /// <InheritDoc/> public readonly struct DocumentRoute : IEquatable<DocumentRoute> { private readonly ImmutableArray<string>...
package creational_patterns.singleton class ChiefExecutiveOfficer { companion object { private var name: String = "" private var age: Int = 0 } fun getName(): String { return name } fun setName(name: String) { ChiefExecutiveOfficer.name = name } fun getAge...
--- title: Q3-6 マイナンバーカードに旧姓併記がある場合、アプリで接種証明書は発行できますか。 question_no: Q3-6 draft: false weight: 306 categories: 03_このような場合は発行できますか lastmod: 2021-12-20 --- {{< vaccinefaq>}} 近日中に対応予定です。 現時点では、マイナンバーカードに旧姓併記がある場合は接種証明書の発行はできません。「マイナンバーカードに旧姓併記がある」とは、次を指します。 ・氏名欄に「田中[佐藤] 花子」などと括弧書きで旧姓が記載されている。 ・券面右下の追記欄に「旧氏 佐藤」や「旧氏記載 田中[佐...
class Rules::ImportsController < ApplicationController before_action :authorize, :not_guest, :not_security before_action :set_title, only: [:new] def new end def create file = params[:file] if file.present? Rule.import file.tempfile.path redirect_to rules_url, notice: t('.imported') ...
class Stlsplit < Formula homepage "https://github.com/stlsplit/stlsplit" url "https://github.com/hroncok/stlsplit/archive/v1.1.tar.gz" sha256 "0ff8a206845e911302e26b7916fa5fac175cbc752bb29c683ad59ecbd69eae52" depends_on "premake" => :build depends_on "admesh" def install system "premake4", "gmake" ...
Set-StrictMode -Version Latest function Get-VideosFromGame { param( [Parameter(Mandatory = $true)] [string]$GameUrl ) if ($GameUrl -notmatch '^https?:\/\/www\.giantbomb\.com\/([a-z0-9-]+)\/3030-([0-9]+)\/$') { return $false } <# else { Write-Host "Game ID # '$($Matches[...
symbol_size_data <- function(a,symsize=0.2,colour=4) { if(dim(a)[1]>0) { a <- aggregate(a$setwt,list(a$centlat,a$centlong),sum) # a <- a[a$x>0,] symbols(a[,2],a[,1],circles=sqrt(a[,3]),add=T,inches=symsize,bg=colour) } } clean_logbook_data <- function(dat) { dat <- dat[,c("trip_id","set_id","flag_id...
package io.stud.forest.springsamples.todo_rest_client.data_source import io.reactivex.rxjava3.core.Observable import io.reactivex.rxjava3.core.Single import io.reactivex.rxjava3.functions.Consumer import io.stud.forest.springsamples.todo_rest_client.Printer import io.stud.forest.springsamples.todo_rest_client.model.Us...
package me.hufman.androidautoidrive.phoneui import android.content.Context import android.util.AttributeSet import android.view.View import android.widget.GridView class NestedGridView(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0): GridView(context, attrs, defStyleAttr) { constructor(context:...
// Copied with some modifications from: https://github.com/harc/ohm/blob/master/examples/ecmascript/es5.js /* eslint-env node */ "use strict" // -------------------------------------------------------------------- // Imports // -------------------------------------------------------------------- var fs = require("f...
package org.odk.collect.android.formmanagement import android.app.Activity import android.content.Intent import org.odk.collect.android.activities.FormEntryActivity import org.odk.collect.android.external.FormsContract import org.odk.collect.android.external.InstancesContract import org.odk.collect.android.utilities.A...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Course; use App\Student; class CourseController extends Controller { /** * Retrieve the course for the given ID. * * @param int $id * @return Response */ public function show($id) { $course = Cou...
using System; namespace CommonUtils.MathLib.Wavelets.Compress { /// Author: Linzhi Qi /// Converted from C++ by perivar@nerseth.com /// https://github.com/linzhi/wavelet-compress public static class VerificationResult { public static double MeanSquaredError(double[] file_in, double[] file_out, ref int file_size...
#ifndef _F13_H #define _F13_H #include "Benchmarks.h" class F13:public Benchmarks{ protected: public: F13(); double compute(double* x) ; ~F13(); }; #endif
--- layout: post title: "采用cdn路径获取资源" description: "使用又拍云资源管理器,采用cdn路径获取资源" date: 2016-02-28 18:00:00 categories: share tags: [前端分享,王兆丹] comments: true --- #分享采用cdn的方式获取资源 >1.项目正式完成之后; >2.生成dist文件,将dist文件中的压缩过的除了html/php文件之外的资源上传到cdn中; 2.1 使用又拍云资源管理器,进入相应的空间,建立目录; 2.2 按照项目的目录格式建立云存储,将js/css等资源以压缩的形式存储; >3.修改gul...
#!/usr/bin/perl use strict; use warnings; use Test::Most; plan qw/no_plan/; our @did; package My::Command; use Getopt::Chain::Declare; start [qw/ verbose|v /]; # These are "global" # my-command --verbose initialize ... # my-command ? initialize ... --> my-command help in...
var currentUser = null; var userEmail = null; var userName = null; var currentUserProf = null; var currentLong = ''; var currentLat = ''; var currentAddress = ''; var config = { apiKey: "AIzaSyAl_ivk9jeCwqIPtiD0bbTBPrgiSQDa0R4", authDomain: "plan-it-project.firebaseapp.com", databaseURL: "https://plan-it-project...
package com.book.recipe.config import com.book.recipe.data.* import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.SchemaUtils import org.jetbrains.exposed.sql.StdOutSqlLogger import org.jetbrains.exposed.sql.addLogger import org.jetbrains.exposed.sql.transactions.transaction fun initDB() { D...
<?php namespace WovoSchool\Modules\Contracts; interface PublisherInterface { /** * Publish something. * * @return mixed */ public function publish(); }
# frozen_string_literal: true require 'rake_helper' describe 'gitlab:uploads:migrate and migrate_to_local rake tasks' do let(:batch_size) { 3 } before do stub_env('MIGRATION_BATCH_SIZE', batch_size.to_s) stub_uploads_object_storage(uploader_class) Rake.application.rake_require 'tasks/gitlab/uploads/m...
/* * Copyright © 2021 RongCloud. All rights reserved. */ package com.rongcloud.common.net.bean /** * @author gusd * @Date 2021/06/07 */ data class SimpleRespondBean( val code: Int, val msg: String?, )
// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME // FULL_JDK // WITH_COROUTINES // IGNORE_BACKEND: package test // NB This test depends on line numbers import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* suspend fun foo() { /* A LOT OF EMPTY LI...
const errorCodes = require('./errorCodes'); module.exports = class JwtExpressError extends Error { constructor(errorCode, extra = {}) { super(); if (errorCodes[errorCode]) { this._errorCode = errorCode; } else { this._errorCode = errorCodes.UNKNOWN_ERROR; } ...
#[cfg(not(feature = "library"))] use crate::error::ContractError; use crate::staking::{ apply_pending_slope_changes_to_state, apply_pending_slope_changes_to_state_and_save_updates, send_tokens, update_user_lock, }; use crate::state::{ Config, State, UserLockedBalance, CONFIG, MAX_SECONDS, MAX_WEEKS, SECOND...
<?php class Exam extends CI_Controller { public function index() { $data['title'] = "Your Exams"; $this->load->view('Exam/header'); $this->load->view('Exam/index', $data); $this->load->view('Exam/footer'); } public function free() { $data['title'] = "Your ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using OneEchan.Core.Models; using OneEchan.Server.Models.Interfaces; using OneEchan.Core.Common.Extensions; namespace OneEchan.Server.Models.HomeViewModels { public class HomeListModel : ListResult, ICardItemModel ...
<?php namespace App\Dao\Dataport; use DB; /** * Description of InterfacesDao * * @author Administrator */ class DataportDao { public function brokers($id,$data){ $datas = array( 'id' => $data['id'], 'realName'=>$data['realName'], 'photo'=>$datas['photo'], ...
<?php namespace Buggl\MainBundle\Service; use Buggl\PhotoBundle\Component\PhotoUploader; /** * BugglPhotoUploaderService * * @author Vincent Farly G. Taboada <farly.taboada@goabroad.com> * * @copyright 2013 (c) Buggl.com */ class BugglPhotoUploaderService { /** * @var Boolean */ private $i...
package de.metas.invoicecandidate.api.impl; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of t...
package org.jetbrains.bio.span.statistics.mixture import org.jetbrains.bio.dataframe.DataFrame import org.jetbrains.bio.span.fit.flipStatesIfNecessary import org.jetbrains.bio.span.statistics.regression.PoissonRegressionEmissionScheme import org.jetbrains.bio.statistics.Preprocessed import org.jetbrains.bio.statistics...
You can **get** a single value out of an array using **bracket notation**. ```sh $ node > var ingredients = ["Flour", "Water", "Salt"]; undefined > ingredients[0] Flour > ingredients[1] Water > ingredients.length 3 ``` Did you notice how we use `[0]` to get the first value? In programming we count starting at zero. ...
//! "Dummy" implementations of `ModuleEnvironment` and `FuncEnvironment` for testing //! wasm translation. For complete implementations of `ModuleEnvironment` and //! `FuncEnvironment`, see [wasmtime-environ] in [Wasmtime]. //! //! [wasmtime-environ]: https://crates.io/crates/wasmtime-environ //! [Wasmtime]: https://gi...
package com.twitter.concurrent import com.twitter.util.{Future, StdBenchAnnotations} import org.openjdk.jmh.annotations.{Benchmark, Scope, State} @State(Scope.Benchmark) class AsyncQueueBenchmark extends StdBenchAnnotations { private[this] val q = new AsyncQueue[String] @Benchmark def offerThenPoll: Future[St...
Basic retro effect for Unity's Post Processing Stack v2 ![Alt Tag](https://user-images.githubusercontent.com/10098032/58493196-12548400-817b-11e9-8e75-a96cd5c105ef.PNG)
// Copyright (C) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in project root for information. package com.microsoft.ml.spark.explainers.split1 import com.microsoft.ml.spark.core.test.base.TestBase import com.microsoft.ml.spark.explainers.LocalExplainer import org.apache....
# Payment service It consist of three components Order, Payment and Refund A order can have mulitple payments and multiple refunds ##### Order -* Payments ##### Order -* Refunds Right now we only have payments associated with order , refund will come later Payment consist of paypal implementation as of now. ...
class ErrorsController < ApplicationController def not_found error = CloudController::Errors::NotFound.new_from_details('NotFound') presenter = ErrorPresenter.new(error, Rails.env.test?, V3ErrorHasher.new(error)) render status: :not_found, json: presenter end def internal_error error = request.en...
using UnityEngine; using System.Collections; using UnityEngine.UI; public class VolumeSlider : MonoBehaviour { public Text volumeText; void OnEnable () { float volume = PlayerPrefs.GetFloat("VolumeLevel", 0.8f); gameObject.GetComponent<Slider>().normalizedValue = volume; ...
#!/bin/bash # # status.sh # Created: 1/02/2016 # Author: jju / VTT Technical Research Centre of Finland Ltd., 2016 # # Description: # Script that returns the current status of the Bro PSA. # # This script is called by the PSA API when the PSA's runtime status is # requested. # # Return value: # 1: al...
package blackbox; /** * The mysterious BlackBox */ public class BlackBox { /** * Fizzbuzz returns: * "fizzbuzz" when the number is a multiple of 3 and 5: 15, 30, etc... * "fizz" when the number is a multiple of 3: 3,6,9,12,15, etc... * "buzz" when the number is a multiple of 5: 5,10,15,20,...
#!/bin/bash ../.port_include.sh port=sqlite version=3310100 files="https://sqlite.org/2020/sqlite-autoconf-${version}.tar.gz sqlite-autoconf-${version}.tar.gz" auth_type="sha1" # sha1: 0c30f5b22152a8166aa3bebb0f4bc1f3e9cc508b workdir="sqlite-autoconf-${version}" export CFLAGS="-Os -DSQLITE_THREADSAFE=0 -DHAVE_UTIME...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="assets/css/bootstrap/bootstrap.min.css" rel="stylesheet"> <link href="assets/css/style.css" rel="stylesheet"> <link href="assets/css/font-awesome.min.css" rel="stylesheet"> <link href="assets/css/magnific-popup.css" rel="styl...
# Dice Research This is a project for dice game research and simulator. require python3.x and jupyter notebook.
%%% @doc %%% @private %%% Private functions taken from merl.erl and tweaked to return an iolist %%% rather then print to stdout. %%% @end -module(merlin_merl). -export([ format/1, show/1 ]). %% @doc Pretty-print a syntax tree or template to the standard output. This %% is a utility function for development a...
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require 'ruminate' include Ruminate $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'test')) require 'fixture_injector' include FixtureInjector require 'test/unit/assertions' World(Test::Unit::Assertions) require 'mocha'
<?php declare(strict_types=1); namespace Beblife\SpecCurator\Curators; use Beblife\SpecCurator\Spec; interface Curator { public function curate(Spec $spec): Spec; }
/** * Copyright 2020 - Offen Authors <hioffen@posteo.de> * SPDX-License-Identifier: Apache-2.0 */ const { route } = require('preact-router') module.exports = (store) => (next) => (action) => { switch (action.type) { case 'EXPRESS_CONSENT_SUCCESS': route(window.location.pathname) next(action) ...
# Loyalty engine specific rake tasks class LoyaltyDatabase MIGRATION_FILES_PATH = '../../db/migrate'.freeze SCHEMA_FILE = 'loyalty_schema.rb'.freeze class << self def create config = LOYALTY_DATABASE[Rails.env] # Database is null because it hasn't been created yet. ActiveRecord::Base.estab...
#!/bin/bash set -euo pipefail FILE_ARG=${1:-""} if [ -z ${FILE_ARG} ] then PROJECT_DIR=${PWD} DATABASE_FILE=prod_dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql ssh ${DATABASE_USER}@${DATABASE_HOST} "bash -s" -- \ < ./scripts/dump_prod_db.sh ${DATABASE_NAME} ${DATABASE_FILE} ${DATABASE_PASSWORD} scp ${DATABASE_USE...
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} ----------------------------------------------------------------------------- -- | -- Module ...
<?php class SubPatternTest extends PHPUnit_Framework_TestCase { public function testSimpleSubpattern () { $regex = REBuilder\REBuilder::parse("/(a)*/"); $this->assertInstanceOf("REBuilder\Pattern\Regex", $regex); $children = $regex->getChildren(); $this->assertSame(1, count($chil...
import React from 'react'; import './App.css'; import {personas} from "./modelo/personas"; import {quienEsMayor} from "./utiles/utiles"; function App() { const edades: number[] = [15, 16, 23, 16] return ( <div className="App"> <div> <h3>Personas</h3> {personas.map((persona: st...
// Test code after return in main() char* const SCREEN = (char*)0x0400; char b = 0; void main() { SCREEN[0] = b; return; bb(); SCREEN[1] = b; } void bb(){ b++; }
#------------------------------------------------------------------------------ # # WARNING ! # # This is a generated file. DO NOT EDIT THIS FILE! Your changes will # be lost the next time this file is regenerated. # # This file was generated using asterisk-ari-client ruby gem. # #----------------------------------...
<?php namespace App\Http\Controllers\Api; use App\Http\Requests\Telegram\SendOrderRequest; use App\Http\Controllers\Controller; use App\Http\Requests\Telegram\SendFeedbackRequest; use App\Jobs\SendFeedback; use App\Jobs\SendOrder; use App\Jobs\SendProduct; use App\Models\Product; use Telegram\Bot\Laravel\Facades\Tele...
// Package wraperr packages an error with another wrapped error // This allows errors.Is to work without directly injecting the string of the wrapped error package wraperr // WrapErr wraps an underlying error with another error // // Example usage: // var ErrLimit = errors.New("Limit reached") // ... // func som...
{-# LANGUAGE QualifiedDo #-} import Prelude as P hiding (fail) -- Tests that fail is not required with irrefutable patterns main = print $ P.do x <- [1, 2] (_, y) <- [(1, "a"), (2, "b")] P.return (x, y)
[Environment]::SetEnvironmentVariable("BABEL_BROKER", "amqp://guest:guest@localhost:5672/", "User")
CREATE TRIGGER tr_UpdateOrdersDelivery ON Orders FOR UPDATE AS BEGIN DECLARE @oldStatus BIT = ( SELECT Delivered FROM deleted ) DECLARE @newStatus BIT = ( SELECT Delivered FROM inserted ) IF (@oldStatus = 0 AND @newStatus = 1) BEGIN UPDATE Parts SET StockQty += op.Quantity FROM Parts AS p ...
/* * Copyright © 2008-2015 Intel Corporation * * 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...
module Lijab module HooksHandler module_function @on_connect = [] @on_disconnect = [] @on_incoming_message = [] @on_presence = [] @on_pre_send_message = [] @on_post_send_message = [] def init @on_connect, @on_disconnect, @on_incoming_message, @on_presence = [], [], [], [] @on_pre...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
require 'test_helper' class PathSetterTest < TestBase class Testing include Wardrobe plugin :path_setter attribute :bar, String, path: 'this/is/a/0/nested' attribute :foo, String, path: 'foo/bar' attribute :boolean, Wardrobe::Boolean, path: 'a/nested/boolean' attribute :array, String, path: %...
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com using System; using System.Net; using System.Runtime.Serialization; namespace NetExtender.AspNet.Core.Exceptions { [Serializable] p...
<?php /** * Created by PhpStorm. * User: HGN * Date: 2018/7/16 * Time: 23:25 */ namespace app\teacher\controller; use think\Controller; class Cig extends Controller { public function index(){ $week = db('config')->where('config_key', '=', 'week')->value('config_val'); $week = date("Y-m-d ...
import { noop } from '../helper'; import { Howl } from 'howler'; type HowlerInstance = Howl | null; export default function getAPI(howler: HowlerInstance) { if (!howler) return (): Record<string, typeof noop> => new Proxy( {}, { get: (_, prop) => { if (prop === '_howl...
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.client.features.logging import io.ktor.client.request.* import io.ktor.client.response.* import io.ktor.client.tests.utils.* import kotlinx.io.core.* import kotlin.test.* cla...
<?php /** * Created by PhpStorm. * User: Harry * Date: 15-5-2018 * Time: 16:21 */ namespace NIOLAB\oauth2\components\repositories; use League\OAuth2\Server\Entities\AccessTokenEntityInterface; use League\OAuth2\Server\Entities\ClientEntityInterface; use League\OAuth2\Server\Entities\ScopeEntityInterface; use Lea...
#!/bin/bash #mkdir data #mkdir output # download bert.ckpt, move to pretrained_model #python data_processor.py python run_classifier.py \ --task_name baidu_95 \ --do_train False \ --do_eval true \ --do_predict true \ --data_dir data/all_labels \ --vocab_file pretrained_model/chinese_L-12_H-768_A-12/voca...
<?php // Composer: "fzaninotto/faker": "v1.3.0" use Faker\Factory as Faker; class SettingsTableSeeder extends Seeder { public function run() { DB::table('settings')->delete(); $record = [ [ 'id' => '1', 'website_title' => 'HeavenTech', 'website_description' => '', 'website_metakeyword' =>''...
package utils import ( "testing" ) var ( // to verify whether the service is able to respond and request to multiple website urls urlsDiff = []string{ "https://www.google.co.in/", "https://www.google.co.in/search?q=hello", "https://www.facebook.com/", "https://www.yahoo.com/", } // to verify whether the ...
# DesignNXT-Dashboards The sample repository for DesignNXT 2019 .Net Integrations workshops Presentation - https://docs.google.com/presentation/d/1FNgMnPYlj33wi4JoHRaWFEO5YfqBXpZddswW5ezSZoo/edit?usp=sharing Workshop Downloads - https://visualstudio.microsoft.com/vs/community/ - https://marketplace.visualstudio....
[CopyrightLicense]:./license.md # oscicen | Lusca Andrei Hi and welcome to my online hideout.
<?php declare(strict_types = 1); namespace Innmind\SilentCartographer\SendActivity; use Innmind\SilentCartographer\{ SendActivity, Room, Room\Program, Room\Program\Activity, Room\Program\Type, Protocol, RoomActivity, IPC\Process\NullProcess, }; use Innmind\OperatingSystem\CurrentProces...
<md-dialog aria-label="Add New Class"> <form ng-cloak name="addClassForm" novalidate=""> <md-toolbar> <div class="md-toolbar-tools"> <h2>Add New Class</h2> <span flex></span> <md-button class="md-icon-button" ng-click="cancel()"> <md-icon md-svg-src="assets/img/cd-icon-clos...
# frozen_string_literal: true require "rails_helper" describe DegreesHelper do include DegreesHelper describe "#hesa_degree_types_options" do let(:degree_type) { "Bachelor of Arts" } let(:degree_abbreviation) { "BA" } let(:non_uk_degree_type) { "Unknown" } let(:non_uk_degree_types) { %w[Unknown] ...
/* * Copyright 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
<?php namespace App\Parasut\Enums; use BenSampo\Enum\Enum; /** * @method static static NotBilled() * @method static static NotFormalized() * @method static static Formalized() */ final class ParasutInvoiceStatus extends Enum { const NotBilled = "0"; const NotFormalized = "1"; const Formalized = "2"; ...
package leetcode; /** * 前序遍历:根结点 ---> 左子树 ---> 右子树 * * 中序遍历:左子树---> 根结点 ---> 右子树 * * 后序遍历:左子树 ---> 右子树 ---> 根结点 * * 层次遍历:只需按层次遍历即可 * * 二叉树遍历 * */ public class BinaryTree { static class TreeNode { int val; TreeNode left, right; } void traverse(TreeNode root) { if (root =...
class Admin::BagLabelsController < ApplicationController before_action :authenticate_user! before_action :authorize_access def index; end def create @registrants = Registrant.includes(:contact_detail).reorder(:sorted_last_name, :first_name).active.all if params[:display_expenses] @registrants = @...
import Operation from "../generated/artifacts/operation"; import { TableSASPermission } from "./TableSASPermissions"; export class OperationTableSASPermission { constructor(public readonly permission: string = "") {} public validate(permissions: string): boolean { return this.validatePermissions(permissions);...
<?php namespace App\Presenters; use Illuminate\Database\Eloquent\Model; class ItemPresenter implements PresenterInterface { public static function present(Model $model) { $category = $model->category; return [ 'id' => $model->id, 'title' => $model->title, ...
-- Actual parameter values may differ, what you see is a default string representation of values UPDATE cedna.dbo.Pregunta SET Funcion='getEmpresas' WHERE IdPregunta=3 ; UPDATE cedna.dbo.Pregunta SET Funcion='getLugarObra' WHERE IdPregunta=5 ; UPDATE cedna.dbo.Pregunta SET Funcion='getEtapasObra' WHERE IdPregunta=6 ; U...
class Review < ApplicationRecord belongs_to :user belongs_to :cigar validates :stars, :summary, presence: true scope :top, -> {where(stars: 5)} def self.top where(stars: 5) end end
-- +goose Up -- +goose StatementBegin ALTER TABLE device_devices RENAME TO device_devices_tmp; CREATE TABLE device_devices ( access_token TEXT PRIMARY KEY, session_id INTEGER, device_id TEXT , localpart TEXT , created_ts BIGINT, display_name TEXT, last_seen_ts BIGINT, ip TEXT, user_a...
{-# Language FlexibleContexts, TypeFamilies #-} -- Tasty makes it easy to test your code. It is a test framework that can -- combine many different types of tests into one suite. See its website for -- help: <http://documentup.com/feuerbach/tasty>. import qualified Test.Tasty -- Hspec is one of the providers for Tasty...
class AddIndexes < ActiveRecord::Migration[4.2] def change add_index :audio_recordings, [:created_at , :updated_at], name: 'audio_recordings_created_updated_at' add_index :audio_recordings, :site_id end end
package com.liziczh.app.rbac.service.kafka.config; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.PostConstruct; import org.apache.commons.lang3.StringUtils; import org.apache.kafka.clients.admin.AdminClient; import org.apache.kafka.clients....
import React, { useCallback, useEffect, useState } from "react"; import { useDispatch } from "react-redux"; import styled from "styled-components"; import l10n from "lib/helpers/l10n"; import { SceneParallaxLayer } from "store/features/entities/entitiesTypes"; import { CoordinateInput } from "ui/form/CoordinateInput"; ...
package kafka import ( "context" "fmt" "net" "time" "github.com/segmentio/kafka-go/protocol/describeconfigs" ) // DescribeConfigsRequest represents a request sent to a kafka broker to describe configs type DescribeConfigsRequest struct { // Address of the kafka broker to send the request to. Addr net.Addr /...
""" pygame-menu https://github.com/ppizarror/pygame-menu TEST EXAMPLES Test example files. """ __all__ = ['ExamplesTest'] from test._utils import BaseRSTest, MenuUtils, PygameEventUtils, \ test_reset_surface import pygame import pygame_menu import pygame_menu.examples.game_selector as game_selector import pyga...
package net.ndrei.teslacorelib.utils import net.minecraft.util.EnumFacing import net.minecraft.util.math.BlockPos /** * Created by CF on 2017-07-06. */ object BlockPosUtils { fun getCube(entityPos: BlockPos, facing: EnumFacing?, radius: Int, height: Int): BlockCube { val pos1: BlockPos var pos2:...
<div class="sub-bar"> <div class="sub-title"> <h4>{{$name}}:</h4> <span>Welcome To web Admin Panel!</span> </div> </div>
#!/bin/bash #-------------1. DATA DOWNLOAD ------------------------- # WE WILL KEEP IT CLEAN AND MAKE A NEW FOLDER mkdir sars cd sars/ #download for Mac (If you are a MacOS user comment out the below command) #curl -o datasets 'https://ftp.ncbi.nlm.nih.gov/pub/datasets/command-line/LATEST/mac/datasets' #download for...
import { Component, OnInit } from '@angular/core'; import { BreakpointObserver } from '@angular/cdk/layout'; import { map } from 'rxjs/operators'; import { Observable } from 'rxjs'; import { UserService } from '@services/user.service' import { PostService } from '@services/post.service' @Component({ selector: 'app-...
#[doc = "MSGBOX_RD_IRQ_EN_REG register accessor: an alias for `Reg<MSGBOX_RD_IRQ_EN_REG_SPEC>`"] pub type MSGBOX_RD_IRQ_EN_REG = crate::Reg<msgbox_rd_irq_en_reg::MSGBOX_RD_IRQ_EN_REG_SPEC>; #[doc = "Message Box Read Interrupt Enable Register"] pub mod msgbox_rd_irq_en_reg; #[doc = "MSGBOX_RD_IRQ_STATUS_REG register acc...
C %W% %G% subroutine ruint C C THIS SUBROUTINE CONVERTS THE BUS NUMBERS TO THE SWING C INTERNAL ORDER FOR THE LINE CONTAINING THE UNDERFREQUENCY LI C TRIPPING RELAY AND INITIALIZES THE VOLTAGE TABLES. C IT ALSO SEARCHES THE REMOTE RELAY TABLES TO FIND THE INDICES C OF THE REMOTE RELAYS...
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import times from 'async/times'; import Web3 from "web3"; import abi from "../abi"; import * as cardbaseInstance from "../cardbaseInstance"; import * as myDeckService from "./myDeckService"; import Card from ".....
#[macro_use] mod grass_macros; grass_test!( calc_whitespace, "a {\n color: calc( 1 );\n}\n", "a {\n color: calc( 1 );\n}\n" ); grass_test!( calc_newline, "a {\n color: calc(\n);\n}\n", "a {\n color: calc( );\n}\n" ); grass_test!( calc_multiple_args, "a {\n color: calc(1,...
(ns slates-in-a-pile.styles.slates.slate-2 (:require [garden.def :refer [defstyles]] [slates-in-a-pile.styles.utils.variables :refer :all] [slates-in-a-pile.styles.utils.helpers :refer :all])) (defstyles slate-2 [:#slate-2 {:color (:hard-blue colours)} [:.backdrop {:background-color (:so...