text
stringlengths
27
775k
/* $Id: timeTrials.h,v 1.1.1.1 2004/09/13 21:07:48 mstrout Exp $ */ #ifndef Already_Included_TimeTrials #define Already_Included_TimeTrials #include <basic/bool.h> #include <petit/lang-interf.h> namespace omega { #if defined miniTimeTrials #define timePeriod 100000 #define timeMinReps 5 #define timeMaxReps 500 #else...
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :mno_enterprise_tenant_invoice, :class => 'TenantInvoice' do factory :tenant_invoice, class: MnoEnterprise::TenantInvoice do sequence(:id) sequence(:slug) { |n| "201504-NU#{n}" } organiz...
(ns space-age) (def ^:private seconds-in-year (* 365.25 24 60 60)) (def ^:private factors { :mercury 0.2408467 :venus 0.61519726 :earth 1.0 :mars 1.8808158 :jupiter 11.862615 :saturn 29.447498 :uranus 84.016846 :neptune 164.79132 }) (doseq [[planet factor] factors] (let [fn-name (symbol (s...
package top import ( "fmt" "github.com/hailongz/golang/db" "github.com/hailongz/golang/micro" ) func (S *Service) RankSort(app micro.IContext, task *RankSortTask) (interface{}, error) { conn, prefix, err := app.GetDB("wd") if err != nil { return nil, err } prefix = fmt.Sprintf("%s%s_", prefix, task.Name)...
package com.jakting.rn6pan.utils import com.github.simonpercic.oklog3.OkLogInterceptor import com.jakting.rn6pan.BuildConfig import com.jakting.rn6pan.api.ApiParse import okhttp3.OkHttpClient import retrofit2.Retrofit import retrofit2.adapter.rxjava3.RxJava3CallAdapterFactory import retrofit2.converter.gson.GsonConver...
namespace EA.Iws.Web.Areas.AdminExportAssessment.Controllers { using System; using System.Threading.Tasks; using System.Web.Mvc; using Core.FinancialGuarantee; using Infrastructure.Authorization; using Prsd.Core.Mediator; using Requests.Admin.FinancialGuarantee; using ViewModels.Financi...
module AwesomeSpawn class CommandResultError < StandardError def self.default_message(command, exit_status) "#{command} exit code: #{exit_status}" end # @return [CommandResult] The command that caused the error attr_reader :result def initialize(message, result) super(message) ...
package blanco.apex.formatter.cli; /** * Constants of blancoApexFormatterCli. * * @author Toshiki Iga */ public class BlancoApexFormatterCliConstants { /** * Version String of blancoApexFormatterCli. ex. v1.0. */ public static final String VERSION = "v1.0"; /** * Get version String of ...
from os import system import random class card: def __init__(self, suit, rank): self.suit = suit self.rank = rank if rank == "K" or rank == "Q" or rank =="J": self.score = 10 elif rank == "A": self.score = 1 else: self.score = int(rank) ...
#!/bin/bash # # See https://github.com/radiasoft/download # set -e -o pipefail index_main() { local -a a=() if [[ -n $install_server && $install_server != github ]]; then a=( -L "$install_server/radiasoft/download/bin/install.sh" ) else a=( -H 'Accept: application/vnd.github.raw...
namespace Pantry.Mediator { /// <summary> /// Marker interface for domain requests. /// </summary> public interface IDomainRequest { } }
#region Copyright Syncfusion Inc. 2001-2021. // Copyright Syncfusion Inc. 2001-2021. All rights reserved. // Use of this code is subject to the terms of our license. // A copy of the current license can be obtained at any time by e-mailing // licensing@syncfusion.com. Any infringement will be prosecuted under // applic...
import React, {useState, useEffect, useContext} from "react"; import { GlobalAppContext } from "../components/GlobalContext"; const Sliders = () => { const [slider, setSlider] = useState(0); const {state} = useContext(GlobalAppContext); const [slidersCollection, setSlidersCollection] = useState(state); ...
//! Code for retrieving transaction receipts from the database. //! //! This module exposes: //! 1. the [`find_transaction_receipts_in_block`] function, that queries the database and returns //! transaction receipts present in a given block. //! 2. the [`LightTransactionReceipt`] type, which holds basic information ...
<!-- /.content-wrapper --> <footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Version</b> 1.0.0 </div> <strong>Equipe CeAprende &copy; 2019</strong> Todos os direitos reservados. </footer> <?php $this->load->view("template/includes/scripts"); ?>
# Reference Documentation ## Structs - [ApolloCLI](structs/ApolloCLI/) - [ApolloCodegenOptions](structs/ApolloCodegenOptions/) - [ApolloSchemaDownloader](structs/ApolloSchemaDownloader/) - [ApolloSchemaOptions](structs/ApolloSchemaOptions/) - [Basher](structs/Basher/) - [CodegenLogger](structs/CodegenLogg...
# sendmall 发送邮件 安装: composer require shuangfeilee/sendmail 使用: 见demo文件
import 'package:auto_route/auto_route.dart'; import 'package:eva_icons_flutter/eva_icons_flutter.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:image_cropper/image_cropper.dart'; import 'package:image_picker/image...
# Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? **Solution:** ```java /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ ...
package main import ( "bytes" "encoding/json" "github.com/ajg/form" log "github.com/sirupsen/logrus" "io" ) // AllNFTypes all the NFType defines in the 5G network var AllNFTypes map[string]bool = map[string]bool{"NRF": true, "UDM": true, "AMF": true, "SMF": true, "AUSF": true, "NEF": true, "P...
My me/redovisa page ==================== This is the README file for the course repo me/redovisa
'use strict'; const validator = require('./lib/validator'); // Vinicio - add some code here to be able to use the module using console.log console.log('I am going to test if a value is a number'); console.log(validator.isValid(123123, 'number')); console.log(validator.isValid('I am a number', 'number')); console.lo...
<?php // +---------------------------------------------------------------------- // | Author: jachin <jachin@qq.com> <https://github.com/JustinJachin/rbac> // +---------------------------------------------------------------------- namespace app\admin\controller; use app\admin\controller\Base; use app\admin\model\Cate;...
#!/bin/bash set -eu export TMPDIR=/var/tmp WORKPATH=`mktemp -d` INSTALL_PREFIX="/root/opt-dev" if [[ $# -gt 0 ]]; then INSTALL_PREFIX=$1 fi echo "Using INSTALL_PREFIX=${INSTALL_PREFIX}" cd ${WORKPATH} git clone https://github.com/rpclib/rpclib.git cd rpclib git checkout tags/v2.3.0 mkdir build cd build cmake .. m...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TensorFlow; using UnityEngine; namespace TFClassify { public class BoxOutline { public float YMin { get; set; } = 0; public float XMin { get; set; } = 0; public float YMax { get; set;...
pub type Degree = u8; // 1..7 typically type Step = u8; // 1..2 typically #[derive(Copy, Clone)] pub struct Octaved<T: Copy> { pub value: T, pub octave: u8, } #[derive(Debug)] pub struct Scale { root: Semitone, mode: u8, } const MODE_PATTERN: [Step; 7] = [2, 2, 1, 2, 2, 2, 1]; impl Scale { pub ...
# frozen_string_literal: true class Analysis::QueryBase SUM_COLUMNS = [%i[code_added code_removed code_total], %i[comments_added comments_removed comments_total], %i[blanks_added blanks_removed blanks_total]].freeze delegate :oldest_code_set_time, :updated_on, :empty?, to: :@anal...
export const currency = (state = { currency: 'EUR', value: null, time: new Date() }, action) => { switch (action.type) { case 'SET_CURRENCY': console.log(`Currency ${action.currency} dispatched by ${action.value}`); return { ...state, currency: action.currency, value: action.value, ...
module.exports = function (grunt) { var path = require('path'), HANDLEBARS_LIB = path.join(process.cwd(), '../../../', 'handlebars.js'), HANDLEBARS_BUILD_PATH = 'dist/cjs', PREPENDED_COMMENT = '/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */\n', REMOVE_EXPO...
docker run -t -i --privileged -v /dev/bus/usb:/dev/bus/usb uhd
using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Geofence.Plugin.Abstractions; using Geofence.Plugin; using System.Collections.ObjectModel; using Xamarin.Forms; using Acr.UserDialogs; using System; namespace CrossGeofenceSample.Helpers { //Class to handle geofence ...
#[doc = "Reader of register APB1_FZ"] pub type R = crate::R<u32, super::APB1_FZ>; #[doc = "Writer for register APB1_FZ"] pub type W = crate::W<u32, super::APB1_FZ>; #[doc = "Register APB1_FZ `reset()`'s with value 0"] impl crate::ResetValue for super::APB1_FZ { type Type = u32; #[inline(always)] fn reset_va...
using S1xxViewer.Base; using S1xxViewer.Model.Interfaces; using System; using System.Linq; using System.Xml; namespace S1xxViewer.Model.Geometry { public class GeometryBuilderFactory : IGeometryBuilderFactory { public IGeometryBuilder[] Builders { get; set; } public Esri.ArcGISRuntime.Geometr...
<?php namespace YOOtheme\Builder; use YOOtheme\Builder; use YOOtheme\Http\Request; use YOOtheme\Http\Response; use YOOtheme\Storage; class BuilderController { public function encodeLayout(Request $request, Response $response, Builder $builder) { return $response->withJson($builder->load(json_encode($...
# Instructions for running unit tests You can run the unit tests by entering ``` pytest ``` in the command line.
/** *Copyright: Copyright (c) 2020 *Author:JakHuang *Version 1.0 *Title: form-generator/Element UI表单设计及代码生成器 *GitHub: https://github.com/JakHuang/form-generator */ const defaultCss = ` .showDivider.form-container { margin-bottom: 2rem; } ` const styles = { 'el-rate': '.el-rate{ display: inline-block; vertical...
QML Creator - advanced IDE for QML & JavaScript programming ========= ![QML](http://i.imgur.com/olMru1v.png) QML Creator makes developing QML projects on mobile devices convenient. It includes all the available Qt Quick modules and many original demo projects. ## Download * [Android](https://play.google.com/store/...
module PuzzleInput where import System.Environment import Data.List import Data.Char import FunParser import Control.Applicative puzzle :: String -> IO Int puzzle fileName = do input <- readFile fileName let grps = parseAll groupsComm input return (sum grps) -- part 1 noDups :: Eq a => [a] -> [a] noDups = fo...
// // Created by jemy on 27/09/2017. // #include "examples.h" void ex2_play_video() { const char *video_file = "/Users/jemy/Documents/qiniu.mp4"; cvNamedWindow("Example2", CV_WINDOW_AUTOSIZE); CvCapture *capture = cvCreateFileCapture(video_file); IplImage *frame; while (1) { frame = cvQuer...
# # This provides an easy way to locally spin up a cluster of `nsqd` and # `nsqlookupd` processes. # # Usage: # # require 'nsq-cluster' # cluster = NsqCluster.new(nsqd_count: 2, nsqlookupd_count: 2) # cluster.nsqd[0].stop # cluster.nsqd[0].start # cluster.destroy # require 'net/http' require 'timeo...
<br> <div class="container register-form"> <div class="form-create"> <?php echo form_open_multipart(site_url('user/register_action')); ?> <h3 align="center">New User Register</h3><br> <hr><br> <div class="form-group"> <label for="title">Nama</label> <input...
import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:linkso/helpers/regex.dart'; import 'package:linkso/widgets/custom_text_field.dart'; import '../../../controller_instances.dart'; class PasswordTextField extends StatelessWidget { const PasswordTextF...
const BaseSearch = require('./base') const { removeProtectionBracket } = require('../../utils/utils') class PornstarSearch extends BaseSearch { constructor (engine, keyword, options) { super(engine) this.setQuery(keyword, options) } get url () { return this.engine.API.pornstars.se...
package io.novafoundation.nova.feature_onboarding_impl.di import io.novafoundation.nova.common.data.network.AppLinksProvider import io.novafoundation.nova.common.resources.ResourceManager import io.novafoundation.nova.feature_account_api.domain.interfaces.AccountRepository import io.novafoundation.nova.feature_account...
package jsortie.testing; import org.junit.Test; import jsortie.RangeSorter; import jsortie.heapsort.topdown.HeapsortStandard; import jsortie.janitors.insertion.InsertionSort; import jsortie.quicksort.governor.introsort.EnteroSort; import jsortie.quicksort.governor.introsort.ExtroSort; import jsortie.quicksort.governo...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
<?php namespace app\api\controller\v1; use app\api\controller\BaseController; use app\api\service\SendSMSService; use app\lib\exception\SuccessMessage; use think\Cache; use think\facade\Session; class SendSMS extends BaseController { /** * @api {POST} /api/v1/sms/register MINI小程序端-发送验证手机验证码 * @apiGr...
package com.rk.mykotlingameengine.core class GameTime { fun onTick() { deltaTime = (currentTimeMillis - previousFrameTimeMillis) / 1000.0f previousFrameTimeMillis = currentTimeMillis } companion object { /** * Timestamp at the start of the game in milliseconds. *...
#pragma once #include "cgss_jni.h" struct jni { static intptr_t get_ptr_field(JNIEnv *env, jobject object) { const jclass nativeObjectClass = env->GetObjectClass(object); if (!nativeObjectClass) { return static_cast<intptr_t>(NULL); } const jfieldID nativePtrFieldID = ...
#pragma once // std/stl #include <stdint.h> #include <map> #include <variant> #include <vector> namespace parquetwriter { namespace types { // clang-format off typedef std::variant< bool, uint8_t, uint16_t, uint32_t, uint64_t, int8_t, int16_t, int32_t, int64_t, float, doub...
@extends('admin.shared.master') @section('title', 'Lesson List') @section('content_header') <h1> Speaking <small>Management</small> </h1> <ol class="breadcrumb"> <li><a href="{{route('admin.home')}}"><i class="fa fa-dashboard"></i> Home</a></li> <li>Course</li> <li class="active">Speaking</li> </ol...
This Project must be well documented , hehe Muantap kali Om Insya Allah berkah # MoodyFood Ecommerce
using System; using System.IO; using XElement.CloudSyncHelper.DataTypes; namespace XElement.CloudSyncHelper.Logic.Execution.Link { #region not unit-tested internal abstract class LinkBase : ILinkInt { public LinkBase( LinkParametersDTO parametersDTO, DependenciesDTO dependenc...
package main import ( "bytes" "encoding/json" "fmt" "net/http" "os" "github.com/vladimirvivien/learning-go/ch12/vector" ) type vecClient struct { svcAddr string client *http.Client } func newVecClient(addr string) *vecClient { return &vecClient{ svcAddr: addr, client: &http.Client{}, } } func (c *v...
#include <gtest/gtest.h> #include "converter/fixml2fix_converter.hxx" #include "converter/xml_element_helper.hxx" #include "converter/fix_helper.hxx" #include "util/fix_env.hxx" #include "tools/test_util.hxx" #include <boost/log/trivial.hpp> #include <quickfix/fix50sp2/BidResponse.h> #include <list> #include <set> ...
<?php namespace Fhm\CardBundle\Document; use Fhm\FhmBundle\Document\Fhm as FhmFhm; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use Doctrine\Common\Collections\ArrayCollection; use Fhm\MediaBundle\Document\Media; use Symfony\Component\Validator\Constraints as Assert; /** * CardIngredient * @MongoDB\Doc...
# frozen_string_literal: true module BSON::ObjectId::UUIDConvertable UUID_PREFIX = '0bdaea' UUID_REGEX = /\A0bdaea[0-9a-f]{2}-[0-9a-f]{4}-4[0-9a-f]{3}-[ab][0-9a-f]{3}-[0-9a-f]{12}\z/i UUID_VERSION = '4' UUID_VARIANT = 'a' def to_uuid [ UUID_PREFIX + to_s[0..1], # 6 digit prefix + first 2 oid dig...
package de.fhdo.lemma.analyzer.lib.impl.service.basic import de.fhdo.lemma.analyzer.lib.analyzers.ServiceBasicAnalyzerI import de.fhdo.lemma.analyzer.lib.impl.AbstractSingleModelTypeAnalyzer import de.fhdo.lemma.analyzer.lib.impl.Cache import de.fhdo.lemma.analyzer.lib.toCommunicationTypeLiteral import de.fhdo.lemma.s...
<?php namespace App\Http\Controllers\AdminController; use App\Http\Controllers\Controller; use App\Inquiry; use Illuminate\Http\Request; class InquiryController extends Controller { public function index(Request $request) { return Inquiry::orderBy('id','desc')->paginate($request->total); }...
# godawful GodAwful: a multi-platform theme that makes you feel deep regrets. Do you have media here that you want removed? Make a removal request! ## Credits
#pragma once #include "ui_pregui1.h" #include <opencv2/opencv.hpp> #include <opencv2/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <time.h> #include <QMainWindow> #include <QFileDialog> #include <QImage> #include <QLabel> #include <QTextCodec> #include ...
--- date: 2008-07-29 13:53:55 +0100 url: /e/13021 title: Listing directory size --- du -sh /var/cache/*/
#!/bin/bash set -x DOTFILES_DIR="$(dirname $0)" # dirname resolves to '.' instead of the full path # if the script is run from the CWD. if [[ "${DOTFILES_DIR}" = "." ]]; then DOTFILES_DIR="${PWD}" fi echo "DOTFILES_DIR: $DOTFILES_DIR" export DOTFILES_DIR lh() { ln -svf $DOTFILES_DIR/$1 ~ } $DOTFILES_DIR/install/...
--- layout: post comments: true title: "如何创建自己的情绪板" date: 2019-12-21 09:15:18 image: '/assets/img/' description: UI工作技巧 main-class: 'UX' color: ux tags: - 情绪板 categories: twitter_text: introduction: 在面对一个未知的业务时,情绪板的创建会是最快的业务积累 --- ## 何为情绪板 引用我在网络上看到的一句话: > 情绪板由能代表用户情绪的文本、元素、图片拼贴而成,能够很好地帮助我们定义设计的方向. 说白了就是在这个见仁见智的职...
import React from 'react' import PropertyJSON from '../../../../backend/decorators/property-json.interface' import SortLink from '../sort-link' import { TableCell } from '../../design-system' type Props = { property: PropertyJSON; /** * Property which should be treated as main property. */ titleProperty: ...
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from django_extensions.db.fields import json from ..utils import UnixDateTimeField from .charge import CURRENCY_CHOICES COUPON_DURATION_CHOICES = ( ('FOREVER', 'forever'), ('ONCE', 'once'), ('REPR...
{-| Module : Language.Vigil.SimplifyTraversal Description : Convert a typechecked GoLite program to a Vigil program Copyright : (c) Jacob Errington and Frederic Lafrance, 2016 License : MIT Maintainer : goto@mail.jerrington.me Stability : experimental Contains the transformation functions from a typechec...
package org.stepic.droid.di.storage import android.content.Context import dagger.BindsInstance import dagger.Component import org.stepic.droid.features.deadlines.storage.dao.DeadlinesBannerDao import org.stepic.droid.features.deadlines.storage.operations.DeadlinesRecordOperations import org.stepic.droid.storage.operat...
package writer import ( "github.com/surmus/iso-country-parser/internal" ) // ResultWriter converts countries into textual form type ResultWriter interface { Write(countries []*internal.Country) error }
// Copyright (c) zhenlei520 All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using EInfrastructure.Core.Config.Entities.Data; using EInfrastructure.Core.Config.Entities.Ioc; using Micr...
const get = require('lodash/get'); const { ObjectId } = require('mongodb'); const moment = require('../extensions/moment'); const EventRepository = require('../repositories/EventRepository'); const BillingItem = require('../models/BillingItem'); const Surcharge = require('../models/Surcharge'); const ThirdPartyPayer = ...
import { document } from "../var/tdocument"; const cssPrefixes = ["Webkit", "Moz", "ms"], emptyStyle = document.createElement( "div" ).style, vendorProps = {}; // Return a vendor-prefixed property or undefined function vendorPropName( name ) { // Check for vendor prefixed names let capName = name[ 0 ].toUpperCas...
class Spork::RunStrategy attr_reader :test_framework @@run_strategies = [] def initialize(test_framework) @test_framework = test_framework end def preload raise NotImplementedError end def run(argv, input, output) raise NotImplementedError end def cleanup raise NotImplementedError ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var knownExamples = {}; exports.registerExamples = function (examples) { examples.forEach(function (example) { return (knownExamples[example.name] = example); }); }; exports.getExamples = function () { return Object.keys(knownExamples)...
module AOC.Day2 ( day2Part1, day2Part2, addPositions, calculateResult ) where import Data.Foldable (toList) import Data.Sequence (Seq, index, fromList, update, lookup) day2Part1 :: [Int] -> Int day2Part1 list = do let modifiedValue1 = update 1 12 (fromList list) let modifiedValue2 = update 2 2 modifie...
import React from "react"; import Link from "@times-components-native/link"; import RelatedArticleItemBase from "./related-article-item.base"; import relatedArticlesItemTrackingEvents from "./related-articles-item-tracking-events"; const RelatedArticleItem = (props) => ( <RelatedArticleItemBase {...props}> {({ a...
using System.Windows.Forms; using SystemConfig.Editor.Search; using System; using Model; using System.Collections.Generic; using System.Linq; namespace SystemConfig.Editor { public partial class ucTWindowUserEditor : UserControl, ICheckData { public ucTWindowUserEditor() { Initiali...
/*************************************************************************** * (C) Copyright 2003-2018 - Faiumoni e.V. * *************************************************************************** *************************************************************************** * ...
from bottle import route from models import Wiki, Author from .decorators import wiki_env def default(obj): return str(obj) def export(wiki: Wiki) -> dict: import json from playhouse import shortcuts tags = [] for _ in wiki.tags: tags.append( { "id": _.id, ...
RSpec.describe Budget::Export do let(:fund) { Fund.by_short_name("NF") } let(:activity_stub) { double("ActiveRecord::Relation") } let(:activities) { build_list(:project_activity, 5, budgets: budgets) } let(:budgets) do [ build(:budget, financial_year: 2018, value: 100), build(:budget, financial...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
from dataclasses import dataclass, field from outlier_benchmark.datasets.base.dataset import BaseDataset @dataclass class KDDCup99(BaseDataset): """ The KDDCup99 dataset has the following properties: +-----------------------+--------+ |number of samples: | 60839 | +-----------------------+-...
/* (Decomposition of) global constraint sequence in B-Prolog. From the MiniZinc definition: """ Requires that in each subsequence 'x[i], ..., x[i + l - 1]' the sum of the variables is between 'mn' and 'mx'. sequence(array[int] of var int: x, int: l, int: mn, int: mx) """ Model created by Hakan Kj...
use crate::BoxedFuture; mod non_tls; pub use non_tls::*; #[cfg(all(feature = "tokio-native-tls", feature = "native-tls"))] mod native_tls; #[cfg(all(feature = "tokio-native-tls", feature = "native-tls"))] pub use self::native_tls::*; #[cfg(all(feature = "tokio-rustls", feature = "webpki-roots"))] mod rustls; #[cfg...
--- Title: Node Lock directive Added: v2.2.0 Status: Active Last reviewed: 2019-01-17 --- # [Node Lock directive](../../../lib/content-services/src/lib/directives/node-lock.directive.ts "Defined in node-lock.directive.ts") Locks or unlocks a node. ## Basic Usage ```html <button mat-icon-button [adf-node-lock]="node...
<?php function copy_pixel($src, $dst, $x, $y, $weight = 1) { $src_index = imagecolorat($src, $x, $y); $new_color = imagecolorsforindex($src, $src_index); if ($weight < 1) { $dst_color = imagecolorsforindex($dst, imagecolorat($dst, $x, $y)); $new_color = [ 'red' => $dst_color['red'] + ...
using Huatek.Torch.Promotions.Domain.PromotionAggregate; using Huatek.Torch.Promotions.Infrastructure; using Huatek.Torch.Promotions.Infrastructure.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Huatek.Torch.Promotions.Service { public clas...
--- title: "[MySQL] VARCHAR, CHAR / DECIMAL / BLOB, TEXT / 날짜 관련 함수들" author: Jinsol categories: MySQL tags: MySQL date: '2021-11-19' image: /assets/img/mysql.png --- <br> ## <span style="color:#D4AC2B">VARCHAR vs CHAR</span> <hr> - 공통점 : 문자열 자료형, 길이를 명시해주어야 함 - varchar - 가변형 문자열 - VARCHAR(20)이라 적었어도 ...
# Decision Tree ![](images/2020-03-29-23-01-28.png) ## Entropy ![](images/2020-03-29-23-02-43.png) Entropy measures number of possibilities to organize balls? ![](images/2020-03-29-23-03-53.png) Entropy measures the knowledge of the color of the ball? ![](images/2020-03-29-23-07-52.png) ### Entropy Formula Let'...
export interface IDependencies { dependencies?: (string | [ string, string ])[], devDependencies?: (string | [ string, string ])[] } export interface IPresetDependencies { [preset: string]: IDependencies; } export const npmDependencies: IDependencies = { dependencies: [ [ '@pnp/pnpjs', '^1.3.11...
package com.github.rochedo.planetsandstars.config.customplanets class CustomPlanetsController ( val files: Array<String> )
module Refinery module Videos module Validators autoload :FileSizeValidator, 'refinery/videos/validators/file_size_validator' end end end
// // Class AliPIDResponseInputHandler // // AliPIDResponseInputHandler // TODO example // authors: // Jens Wiechula (jens.wiechula@cern.ch) // Martin Vala (martin.vala@cern.ch) // #ifndef ALIPIDRESPONSEINPUTHANDLER_H #define ALIPIDRESPONSEINPUTHANDLER_H #include "AliInputEventHandler.h" class AliPIDRes...
#! /usr/bin/bash #cp -Rf /data/phenotipsdb /slms/UGI/vm_exports/vyp/phenotips/ tar czvf /slms/UGI/vm_exports/vyp/phenotips/phenotipsdb.tar.gz /data/phenotipsdb/
module LOTC module Builder # Deploy class # class Deploy include Builder def build LOTC::Deploy.new end end end end
require 'rails_helper' require 'core_ext/array' describe Array do Array.include(Array::Weather) let(:value_array1) do [{"value"=>1.78, "source"=>"sg"}, {"value"=>2.0, "source"=>"icon"}] end let(:value_array2) do [{"value"=>0.78, "source"=>"sg"}, {"value"=>2.0, "source"=>"icon"}] end # let(:wave...
<?php namespace App\Http\Resources; use App\Models\Book; class BookXMLResource { protected $book; public function __construct(Book $book){ $this->book = $book; } /** * Transform the resource into an xml. * * @param \Illuminate\Http\Request $request * @return xml */ ...
using MedicalAppointment.Core.Interfaces; using MedicalAppointment.Core.Models; using System; using System.Collections.Generic; using System.Text; namespace MedicalAppointment.Infrastructure.Data.Repositories { public class UserRepository: GenericRepository<User>,IUserRepository { public UserRepositor...
// pointers package main import ( "fmt" ) // pass by copy func addTax(t float64) { t = t * 1.1 fmt.Println("memory address of t:", &t) fmt.Printf("total with tax: $%.2f\n", t) } func main() { /* var total float64 = 5 fmt.Println("memory address of total:", &total) addTax(total) fmt.Pr...
require "rails_helper" RSpec.describe ListingsController do describe "POST create" do context "the game is already in the playlist" do it "changes nothing" end context "the game is not in the playlist" do it "adds the game" end end end