text
stringlengths
27
775k
module PipelineAggregator class Base @config_data = nil def data_directory @config_data["datadir"] end def api_directory @config_data["apidir"] end def jobs_directory File.expand_path("#{data_directory}/jobs") end def builds_directory File.expand_path("#{da...
include("poweriteration.jl") # This code generates a dictionnary where index -> page_name function get_index_to_page(filename) io = open(filename) lines = readlines(io) dictionnary = Dict() println("Construction index to page dictionnary") for line in ProgressBar(lines) if !startswith(...
# Code of Conduct This project is governed by [e-Rum2020 Code of Conduct](https://2020.erum.io/about/code-of-conduct). By participating, you are expected to uphold this code. This code of conduct is adapted from the ESO workshop & conference code of conduct, which was derived from original Creative Commons documents...
#!/usr/bin/env python3.5 from raspi_io import I2C import raspi_io.utility as utility if __name__ == '__main__': i2c = I2C(utility.scan_server()[0], '/dev/i2c-1', 0x56) # Write print("Write {} bytes".format(i2c.write(0x0, list(range(256))))) # Read data = i2c.read(0x0, 256) print("Read {} byte...
package pl.umk.mat.fastSDA.image; public enum BitScale { GRAY_8, GRAY_16 }
class Fate module Output class Handlers def initialize(service, handlers) @service = service @handlers = handlers end def [](name) if handler = @handlers[name] handler elsif @handlers["default"] @handlers[name] = @handlers["default"][name] ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class UsuarioModel extends CI_Model { function __construct(){ parent::__construct(); } public function salvar() { $this->nome = $_POST['nome']; $this->email = $_POST['email']; ...
'use strict'; const circular = '<<circular reference>>', maxDepthMsg = '<<max depth reached>>', _ = require('lodash'), fixCircular = function (obj, maxDepth) { let references = new Set(); const visitor = (x, depth) => { if (depth >= maxDepth) { return maxDepthMsg...
## 100DaysCodeChallenge The repository is dedicated to my 100 days of code starting from Saturday 26/06/2021 **Pacheko** ## Timeline |**Day:pushpin:**|**Date &nbsp;:calendar:**|**Lessons/Tasks Done :alarm_clock:**| **Reference Links :link:**| |------|-----------------|--------------------|---------------------| |...
## Creative Commons CC0 This book is released under the terms of the [CC0 License][0], and therefore dedicated to the Public Domain. [0]: http://creativecommons.org/publicdomain/zero/1.0/
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PropertyHook; using UnityEngine; public class DS2GXPointLight : DS2GXLightBase { public DS2GXPointLight(PHook hook, PHPointer b, int index) { Hook = hook; BasePointer = b; ...
import { useRouter } from 'next/router'; import React, { ReactNode, useEffect, useState } from 'react'; import { useKeyboard } from '../../lib/useKeyboard'; import { ConfirmCondition, ConfirmScreen } from './ConfirmScreen'; type ConfirmContext = { confirmScreen: { render: boolean; setRender: (visible: boolea...
require Rails.root.join('spec/support/probate_fees_switchover_helper.rb') def probate_disabled disable_address_lookup travel_to probate_fees_release_date + 1.day log "probate is disabled: #{ProbateFeesSwitch.disable_probate_fees?}" end def probate_enabled disable_address_lookup travel_to a_day_before_disabl...
<?hh // strict namespace Zynga\Framework\Service\V2\Test; use Zynga\Framework\Service\V2\Response\Base; class Response extends Base {}
### CollectionSchema | Methods | Descriptions | 参数描述 | 返回值 | | -------------------- | -------------------------------------- | -------------------- | -------------------- | | CollectionSchema(fields, description="", **kwargs) | 构造一个CollectionSchema对象 | 参数fields是一个 list-like的对象,每个...
# ida-xtensa This is a processor plugin for IDA 7.x, to support the Xtensa core found in Espressif ESP8266 and ESP32. It does not support other configurations of the Xtensa architecture, but that is probably (hopefully) easy to implement. This is a beta release, for your hacking pleasure. ## Usage Copy the file to th...
<h1 align="center"> <img src="./doc/lilac.jpg" alt="Lilac-breated Roller, by David Clode" width="300px" /><br /> inline-c </h1> [![crates.io](https://img.shields.io/crates/v/inline-c)](https://crates.io/crates/inline-c) [![documentation](https://img.shields.io/badge/doc-inline--c-green)](https://docs.rs/inline-c) ...
class PeopleController < ApplicationController def index @people = Person.includes( :person_positions => :position ).all end end
<!-- Three --> <section id="three" class="wrapper style2 special"> <header class="major"> <h2>Magna leo sapien gravida</h2> <p>Gravida at leo elementum elit fusce accumsan dui libero, quis vehicula<br /> lectus ultricies eu. In convallis amet leo sapien iaculis efficitur.</p> </header> <...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\User; use App\Models\Schedule; use Illuminate\Support\Facades\Hash; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // \App...
#!/bin/bash cwd=`pwd` cd ../../.. echo "make pese-nlev60" make -j4 pese-nlev60 cd $cwd
<?php namespace Application\Model; use Zend\Db\TableGateway\Feature\GlobalAdapterFeature; class AuthModel extends AuthBasic { public $staffEmail; public $password; public $staffModel; public $passwordModel; public $branchModel; public $shopModel; public $vcModel; pu...
/* analyze_immed_sess_p.sql ** ** Disable/enable immediate analyze of user tables from within a session. ** ** This is useful from within a PLpgSQL function or SQL script. ** If you are running batch jobs from outside the database, it ** is probably more useful to use analyze_immed_sess_p which ** enables/disables t...
SUBROUTINE BR3COL(IMETHD) C C ------------------------------------------------ C ROUTINE NO. ( 42) VERSION (A8.1) 02:JUL:86 C ------------------------------------------------ C C THIS ROUTINE SETS UP THE METHOD OF COLOURING USED C BY THE THREE DIMENSIONAL BARCHAR...
package com.acornui.component import com.acornui.assertionsEnabled import com.acornui.string.toRadix import org.junit.Before import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith import kotlin.test.assertFalse class ValidationGraphTest { private val ONE: Int = 1 shl 0 private val...
package send import ( "bytes" "context" "errors" "fmt" "io/ioutil" "math/rand" "os" "path/filepath" "runtime" "strings" "testing" "time" "cdr.dev/grip/level" "cdr.dev/grip/message" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) type SenderSuite struct { senders map[string...
# frozen_string_literal: true require "rails_helper" RSpec.describe "Instrument Relay Tab" do let(:facility) { FactoryBot.create(:setup_facility) } let(:user) { FactoryBot.create(:user, :administrator) } before do login_as user visit facility_instrument_relays_path(facility, instrument) end contex...
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import TetherContent from '../../addons/BootTether' import { getTetherAttachments, mapToCssModules, omit } from '../../lib/' export const tetherAttachements = [ 'top', 'bottom', 'left', 'right', 'top left', 'top center...
##获取验证码的button计时器 --- #LYButtonTimer ----------- > Sunshine_ly ### 简单用法 ``` xml - (void)buttonAction:(UIButton *)button { button.time = 10; button.format = @"%ld秒后重试"; [button startTimer]; } ```
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Implements the interface of the results_processor module. Provides functions to parse command line arguments and process options. """ import argparse im...
var express = require('express'); var router = express.Router(); const FoodModel = require('../models/food_items') var users = require('../controllers/users') var crud = require('../middlewares/crud') router.get('/test', function(req, res) { res.send('Food Route is Up and Running.'); }); router.get('/allFoods'...
import request from "@/utils/request"; /** * * @param {number} pageSize * @param {number} currentPage * @param {string} currentPage */ export function getList(ownMaterial = 1, parentId = null) { var url = `/material?ownMaterial=${ownMaterial}`; if (parentId) url += `&parentId=${parentId}`; return request(...
%%%============================================================================= %% Copyright 2013 Klarna AB %% %% 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.or...
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
from typing import Optional, Set, Union import logging from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from contexteval.contextualizers import Contextualizer from contexteval.data.dataset_readers import TaggingDa...
package cn.woyeshi.client.activity import android.os.Bundle import android.os.Handler import cn.woyeshi.base.activities.BaseActivity import cn.woyeshi.client.R import cn.woyeshi.client.utils.Navigation class SplashActivity : BaseActivity() { override fun getContentLayoutID(): Int { return R.layout.activit...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
package com.klex.extensions.network import com.klex.extensions.KlexException class NetworkKlexException( val serverMessage: String? = null, val errorCode: String? = null ) : KlexException()
module RubyDesignPatternsInPractice module Composite class MonsterTask attr_reader :reward def initialize @reward = 100 end end end end
<?php declare(strict_types=1); namespace Omexon\Filesystem; class Path { /** * Get path to root of site. * * @param string|string[] $segments Dot notation is supported in string. Default null. * @return string */ public static function root($segments = null): string { $pa...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace QuickSearch { public abstract class SearchIndexerBase { public void NotifyOnStartup () { OnStartup(); } public void NotifyOnOpen () { OnOpen(); } public void NotifyOnQuery (string query) { OnQuery(query); ...
-- Add an index to the students table CREATE UNIQUE INDEX email_UNIQUE ON students (email ASC); -- Check status of table CHECK TABLE students FOR UPGRADE;
! ! Date_Utility ! ! Module containing date conversion routines ! ! ! CREATION HISTORY: ! Written by: Paul van Delst, 03-Apr-2000 ! paul.vandelst@noaa.gov MODULE Date_Utility ! ----------------- ! Environment setup ! ----------------- IMPLICIT NONE ! ------------ ! Visib...
<?php namespace App\Models; use Illuminate\Support\Facades\DB; class Image extends AppModel { protected $table = 'images'; protected $fillable = [ 'image', 'object_id', 'object_type', 'status', 'deleted' ]; public $timestamps = false; public function image() ...
import createRequest from 'utils/createRequest' import { uploadProfilePicture } from 'graphql/mutations/profileMutations' import { RootState } from 'redux/store' import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit' import { Props as AlertProps } from 'components/Alerts/Alert' export type Ba...
package com.truelayer.java; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; public class SigningOptionsBuilderTests { p...
<?php $title = get_field('article_left_title'); $content = get_field('article_left_content'); $image_ID = get_field('article_left_img_ID'); ?> <section id="article"> <div class="container p0 article"> <div class="cell-6 pd-h-sm cell-m-12 article__txt"> <h2 class="article__txt--title article__txt--title-bor...
using Godot; using Drawing; namespace Examples.Chapter0 { /// <summary> /// Exercise 0.4 - Paint splatter. /// </summary> /// Mix of DrawCanvas and RandomNumberGenerator to simulate paint. public class C0Exercise4 : Node2D, IExample { public string GetSummary() { ret...
using System; using System.IO; namespace DataBoss.DataPackage { public sealed class CsvWriter : IDisposable { enum WriterState : byte { BeginRecord = 0, InRecord = 1 } static readonly char[] QuotableChars = new[] { '"', '\n', }; public const string DefaultDelimiter = ";"; const str...
module Juno.Types.Event ( Event(..) ) where import Juno.Types.Message data Event = ERPC RPC | AERs AlotOfAERs | ElectionTimeout String | HeartbeatTimeout String deriving (Show)
using UnityEngine; using UnityEngine.UI; public class GameoverMenu : MonoBehaviour { #region Fields private float timeScale; private Text winnerText; private string winnerTextEnding = "wins!"; public FighterType winner = FighterType.Player; #endregion #region Properties public Fig...
/* * Copyright (c) 2006-2011, AIOTrade Computing Co. and Contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copy...
'use babel'; import { BufferedNodeProcess } from 'atom' import { getExportsForFiles } from '../ast/AstProvider.js' const finder = require('findit'); const nodePath = require('path'); const _ = require('lodash'); export default class ExportIndex { constructor() { this.activeObserveChange = null; this.index...
## Helm deployment of Dex ### Preparation to installation You have to set all values specify in this chapter to properly run this chart ``` accessKey: <minio_access_key> secretKey: <minio_secret_key> ``` ### Installation To install this chart after preparation phase use: ```helm install .``` ### MANUAL STEPS...
#!/bin/bash if [ ${GITHUB_ACTIONS:-false} = true ]; then mysqladmin -h127.0.0.1 -P${MYSQL_PORT:-3306} -uroot -p${MYSQL_ROOT_PASSWORD} password ''; fi ## # MySQL cat <<EOF | mysql -h127.0.0.1 -P${MYSQL_PORT:-3306} -uroot SET SESSION SQL_MODE='ANSI'; CREATE DATABASE IF NOT EXISTS "egg-orm"; USE "egg-orm"; source test...
package main import ( "fmt" "github.com/fwhezfwhez/errorx" "github.com/fwhezfwhez/tcpx" //"tcpx" "time" ) func main() { srv := tcpx.NewTcpX(nil) // start server go func() { fmt.Println("tcp listen on :8080") srv.ListenAndServe("tcp", ":8080") }() // after 10 seconds and stop it go func() { time.Sle...
<?php // DataTable translations from: https://github.com/DataTables/Plugins/tree/master/i18n return [ 'sEmptyTable' => 'Žádná dostupná data v tabulce', 'sInfo' => 'Zobrazuji _START_ - _END_ z _TOTAL_ záznamů', 'sInfoEmpty' => 'Zobrazuji 0 - 0 z 0 záznamů', 'sInfoFiltered' => '(filt...
import torch import torch.nn as nn import torch.nn.functional as f import numpy as np from math import log def one_hot_encode(board): data = torch.zeros(1, 16, 4, 4) for i in range(4): for j in range(4): if board[i,j] == 0: data[0, 0, i, j] = 1 else: ...
<?php namespace Boekkooi\CS; interface ConfigInterface extends \Symfony\CS\ConfigInterface { /** * Returns the checkers to run. * * @return CheckerInterface[] */ public function getCheckers(); /** * Returns the path to the checker cache file. * * @return string */ ...
package service import ( "context" "github.com/ibuildthecloud/k3v/pkg/translate" v1 "github.com/rancher/wrangler-api/pkg/generated/controllers/core/v1" "github.com/rancher/wrangler/pkg/apply" corev1 "k8s.io/api/core/v1" ) const ( vServiceNames = "vServiceNames" ) type handler struct { targetNamespace string ...
# encoding: UTF-8 class DirectoryCategory < ActionWebService::Struct member :fullViewableName, :string member :specialEncoding, :string end class ResultElement < ActionWebService::Struct member :summary, :string member :URL, :string member :snippet, ...
/** * @Author: thomasvanhoutte * @Date: 2017-01-08T19:30:48+01:00 * @Last modified by: thomasvanhoutte * @Last modified time: 2017-01-08T19:47:13+01:00 */ import { Component, OnInit } from '@angular/core'; import { Waarneming } from '../models/waarneming.model'; import { WaarnemingService } from '../services/waa...
from unittest.mock import Mock import pytest from argo_workflows.model.pod_security_context import PodSecurityContext from argo_workflows.models import HostAlias as ArgoHostAlias from hera.host_alias import HostAlias from hera.operator import Operator from hera.resources import Resources from hera.security_context im...
import { Injectable } from '@nestjs/common'; import { GameServer } from '@/game-servers/models/game-server'; import { Rcon } from 'rcon-client'; @Injectable() export class RconFactoryService { async createRcon(gameServer: GameServer): Promise<Rcon> { return new Promise((resolve, reject) => { const rcon = n...
#!/usr/bin/env bash # Alternative to `make check` # Script for running all the executable scripts in the folder # Success/Failure is reported cd "${BASH_SOURCE[0]%/*}" echo "Working Directory:" $(pwd) #echo "Which bash" $(which bash) fails=0 for test in [^_]*.sh; do if [[ -x "$test" ]]; then echo "...
package bits type Slice struct { length int data uint64 } // Creates a new slice of Bits func NewSlice(length int, data uint64) (slice *Slice) { if length > 64 { panic("bits.Slice too big") } return &Slice{ length: length, data: data} } // Appends a bit slice func (slice *Slice) AppendSlice(rhs *Slice...
# BOOST_PP_DEDUCE_D `BOOST_PP_DEDUCE_D` マクロは `BOOST_PP_WHILE` の構築状態を手動で推論する。 ## Usage ```cpp BOOST_PP_DEDUCE_D() ``` ## Remarks このマクロは深い展開における*自動再帰*の使用を避けるためにある。 いくつかのプリプロセッサでは、そのような深さでの*自動再帰*は非効率的となり得る。 これは接尾辞 `_D` を持ったマクロの実行に直接使用されるためのものではない。例えば: ```cpp BOOST_PP_ADD_D(BOOST_PP_DEDUCE_D(), x, y) ``` もしこのような文脈でこ...
from math import factorial if __name__ == "__main__": print(factorial(2 * 20) // (factorial(20) ** 2))
# Validate CPF and CNPJ, remove and include mask. ## Installation / Configuration Navigate to your project folder, for example: ``` cd /etc/www/projeto ``` And then run: ``` composer require rcngo/cpfcnpj:1.0.* --no-scripts ``` Or add it to the composer.json file, add it to your "require" :, example: ```php { ...
package com.phicdy.mycuration.domain.util import timber.log.Timber import java.text.ParseException import java.text.SimpleDateFormat import java.util.Calendar import java.util.Date import java.util.Locale object DateParser { private fun parseDate(pubDate: String): Date? { val input = SimpleDateFormat("EE...
package com.yazan98.domain.models import androidx.lifecycle.viewModelScope import com.yazan98.data.ApplicationPrefs import com.yazan98.data.ReposComponentImpl import com.yazan98.data.models.internal.LoginInfo import com.yazan98.data.models.ProfileResponse import com.yazan98.data.repos.HomeRepository import com.yazan98...
<?php namespace Deliverist\Builder\Commands; use Deliverist\Builder\Builder; use Deliverist\Builder\InvalidArgumentException; use Deliverist\Builder\ICommand; use Nette\Utils\FileSystem; class Copy implements ICommand { /** * @param Builder * @param string|string[] * @param string|NULL */ ...
#!/bin/bash while (( $# > 0 )) do case $1 in *.png | *.jpg | *.jpeg) file_path=$(dirname "$1") old_name=$(basename "$1") new_name=shadow_"$old_name" cp "$1" "$new_name" convert "$new_name" \ \( +clone -background black -shadow 10x10+0+0 \) \ +swap -background none -layers merge +rep...
require 'spec_helper' describe OrderRequest do include WebMock::API it "has a valid factory" do expect(FactoryGirl.build(:order_request)).to be_valid end it "fails without order" do expect(FactoryGirl.build(:order_request, :order => nil)).not_to be_valid end it "fails without order_status" do ...
# need special handling for showing a string as a textmime # type, since in that case the string is assumed to be # raw data unless it is text/plain israwtext(::MIME, x::AbstractString) = true israwtext(::MIME"text/plain", x::AbstractString) = false israwtext(::MIME, x) = false InlineIOContext(io, KVs::Pair...) = IOCo...
use serde::{Deserialize, Serialize}; use yew::prelude::*; use yew_router::prelude::*; use crate::Route; const ELLIPSIS: &str = "\u{02026}"; #[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] pub struct PageQuery { pub page: u64, } #[derive(Clone, Debug, PartialEq, Properties)] pub struct Props { pub...
<?php declare(strict_types=1); namespace app\common\lib; /** * 记录和数字相关的类库方法啊 * Class Num * @package app\common\lib */ class Num { /** * @param int $length * @return int */ public static function getCode($length = 4) :int { switch ($length) { case 4: ...
ALTER TABLE [dbo].[Cap] ADD CONSTRAINT [CHK_Cap_CountryOfOrigin] CHECK ([CountryOfOrigin] like '[A-Z][A-Z]');
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OfficialPlugins.Compiler.Models { public class CompilerSettingsModel { public bool GenerateGlueControlManagerCode { get; set; } public int PortNumber { get; set; } = 80...
#!/bin/sh trap "trap - TERM && kill -- -$$" INT TERM EXIT CWD=`pwd` cd ${Carla_DIST} # Start Carla server without display echo "Start CARLA server (-opengl -quality-level=Low)." DISPLAY= ./CarlaUE4.sh -opengl -quality-level=Low & #./CarlaUE4.sh -opengl -quality-level=Epic& SERVER_PID=$! sleep 5s # Change the the ma...
<?php return [ 'bonus_setting' => 'การตั้งค่าโบนัส', 'festival_name' => 'ชื่อเทศกาล', 'percentage_of_bonus' => 'ร้อยละของโบนัส', 'add_new_bonus' => 'เพิ่มโบนัสใหม่', 'edit_bonus' => 'แก้ไขโบนัส', 'view_bonus' => 'ดูโบนัส', 'bonus_type' => 'ประเภทโบนัส', 'tax' => 'ภาษี', 'bonus_am...
Address(Rockwell Drive) is a residential street in the Wildhorse section of East Davis. Intersecting Streets Moore Boulevard Audubon Circle Audubon Circle again and Hartley Street Wyeth Court Sloan Street Wildhorse Golf Club Moore Boulevard again Duchamp Street
use serde::{Deserialize, Serialize}; use crate::{errors::*, http::client::SHClient}; const PATH: &str = "/v2/tags"; #[derive(Serialize, Deserialize, Debug)] pub struct TagsMeta { pub color: String, pub dimension: Option<String>, } #[derive(Serialize, Deserialize, Debug)] pub struct Tags { pub meta: TagsM...
# APEX-Advent-Calendar ![Screenshot](https://github.com/RonnyWeiss/APEX-Advent-Calendar/blob/master/screenshot.gif?raw=true) This project is a Region Plug-in for Oracle APEX that let's you easily use a nice advent calendar for christmas time. You can also use this code without APEX (index.html). The Images...
export type VecRecord = { date: Date; hour: number; consumption: number; };
package org.nypl.simplified.reader.bookmarks.api /** * The result of attempting to enable/disable syncing (assuming that the attempt didn't * outright fail with an exception). */ enum class ReaderBookmarkSyncEnableResult { SYNC_ENABLE_NOT_SUPPORTED, SYNC_ENABLED, SYNC_DISABLED }
using System; namespace test5.c { class Program { public struct Dress { public string Color; public double Size; public Dress(string color, double size) { Color = color; Size = size; } } ...
#include "mesh_qc_private.h" static void mesh_qc_hodge_p_values_d( double * m_hodge_p_values, const mesh * m, const double * m_inner_q, const double * m_coeff_q) { int d_exp, i, ind, j, j_loc, m_cn_d; jagged1 m_cf_d_0_i; jagged2 m_cf_d_0; d_exp = 1 << m->dim; m_cn_d = m->cn[m->dim]; mesh_cf_part2(&m...
Rails.application.routes.draw do resources :articles, only: %i[index show] root 'pages#home' get '/check/:slug', to: 'recipients#new', as: 'new_recipient' post '/check/:slug', to: 'recipients#create' get '/check/:slug/proposal/:hashid', to: 'proposals#new', as: 'new_proposal' post '/check/:slug/proposa...
using Csla; using System; using System.Linq; using System.Collections.Generic; using System.Threading.Tasks; namespace ProjectTracker.Library { [Serializable()] public class ResourceList : ReadOnlyListBase<ResourceList, ResourceInfo> { public void RemoveChild(int resourceId) { var iro = IsReadOnly;...
# Copyright (c) 2009-2012 VMware, Inc. module Bosh::Director module ProblemHandlers class OutOfSyncVm < Base register_as :out_of_sync_vm auto_resolution :ignore def initialize(vm_id, data) super @vm = Models::Vm[vm_id] @data = data if @vm.nil? handle...
## Checker Examples | Filename | Description | | :------- | :---------- | | duplicate_requests.py | 检查在某段时间内是否有重复的网络请求 | | img_size.py | 检查图片大小是否超出限制 | | add_request_param.py | 修改请求参数 | | add_response_header.py | 修改请求返回数据 | ## Debug Config 调试检查器的Vscode debug配置如下 ```json { "version": "0.2.0", "configurations":...
describe('dataSrc', function() { var table; dt.libs({ js: ['jquery', 'datatables', 'rowgroup'], css: ['datatables', 'rowgroup'] }); dt.html('basic'); it('Default is 0', function() { expect($.fn.dataTable.RowGroup.defaults.dataSrc).toBe(0); }); it('Is indeed 0 when run', function() { table = $('#exampl...
cask 'awscli-bundled' do version :latest sha256 :no_check url 'https://s3.amazonaws.com/aws-cli/awscli-bundle.zip' appcast 'https://github.com/aws/aws-cli/releases.atom' name 'AWS CLI (Bundled)' homepage 'https://aws.amazon.com/cli/' installer script: { executable: "#{staged_path}/...
#include "../tesis/glwidget.h" #include <QtGui> #include <QtOpenGL> #include <math.h> GLWidget::GLWidget(QWidget *parent) : QGLWidget(parent) { xRot = 0; yRot = 0; zRot = 0; xEsc = 0; medX = 0; medY = 0; medZ = 0; xTras = 0.0; yTras = 0.0; zTras = -7.0; rotar = fill = true; escalar = trasladar = zbuf = ...
from .errors import * end_hex = b"\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82" class PNG: """ Function for PNG. - ----- Parameter : - image_path: `str` | Set PNG file to modify ----- Methods : - hide_message - hide_program - reveal_message - reveal_program """ ...
import numpy as np import matplotlib.pyplot as plt # Source matrix a = ((np.arange(200)+1)-100)/100 a = np.concatenate((a,a,a,a,a), axis=0) b = np.sin((np.arange(1000)+1)/20) S_test= np.vstack((b,a)).T # Mixing matrix A = np.array([0.291, 0.6557, -0.5439, 0.5572]).reshape((2, 2)) # test data X_test = S_test @ A def...
#!/usr/bin/env bash echo "Uploading to pip" set -x test -e "./tests/test_mdvl.py" || exit 1 clean () { rm -rf ./dist rm -rf ./mdvl.egg-info rm -rf ./__pycache__ rm -rf ./build } clean pandoc ./README.md -o README.rst python setup.py clean sdist bdist_wheel twine upload ./dist/* clean
# wakeworddetection Models for wake word detection. This is the very first step in Virtual Assistant for wake word detection (or Triggered word detection) # TODO: * Add real sound augmentations * Convert models to ONNX * Convert models to TorchScript * Refactor serving code * Add bash script for training models
--- title: "Compatibilit&#233; et probl&#232;mes de conformit&#233; en Visual C++ | Microsoft Docs" ms.custom: "" ms.date: "11/03/2016" ms.prod: "visual-studio-dev14" ms.reviewer: "" ms.suite: "" ms.technology: - "devlang-csharp" ms.tgt_pltfrm: "" ms.topic: "article" dev_langs: - "C++" helpviewer_key...