text
stringlengths
27
775k
/* * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.fir.analysis.diagnostics import com.intellij.lang.LighterASTNode import com.inte...
from basinmaker.func.grassgis import * from basinmaker.func.qgis import * from basinmaker.func.pdtable import * from basinmaker.func.rarray import * from basinmaker.utilities.utilities import * import sqlite3 def add_gauge_attributes( grassdb, grass_location, qgis_prefix_path, catinfo, input_geo_n...
// // AVCaptireVideoPicController.h // myCameraFaceDetectorDemoOC // // Created by NowOrNever on 19/07/2017. // Copyright © 2017 Focus. All rights reserved. // #import <UIKit/UIKit.h> @interface AVCaptireVideoPicController : UIViewController @end
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
package com.chahine.showhive.home.calendar import androidx.paging.PagingSource import androidx.paging.PagingState import com.chahine.trakt.api.TraktApi import com.chahine.trakt.api.entities.CalendarShowEntry import com.chahine.trakt.api.entities.Extended import okio.IOException import retrofit2.HttpException import ja...
using System; using System.Collections.Generic; using System.Text; using SimpleStorageEngine.Persistance; using System.Reflection; namespace SimpleStorageEngine.ActiveRecord { class RowSerializer<T> where T : new() { private static PropertyInfo[] properties; internal static PropertyInfo[] Proper...
package item // InkSac is an item dropped by a squid upon death used to create black dye, dark prismarine and book and quill. type InkSac struct{} // EncodeItem ... func (InkSac) EncodeItem() (name string, meta int16) { return "minecraft:ink_sac", 0 }
export const sleep = wait => new Promise(resolve => setTimeout(resolve, wait)) export const debounce = function(wait, func) { let timeout return function() { clearTimeout(timeout) timeout = setTimeout(() => func.apply(this, arguments), wait) } }
namespace MedEasy.CQRS.Core.Commands.Results { /// <summary> /// Possible failure outcome when a command to create a new resource fails /// </summary> public enum CreateCommandFailure { /// <summary> /// Command failed because of a (potential) conflict /// </summary> ...
/* * This source file is part of InAppDevTools, which is available under * Apache License, Version 2.0 at https://github.com/rafaco/InAppDevTools * * Copyright 2018-2020 Rafael Acosta Alvarez * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
# BungeePerms a permissions plugin for BungeeCord and Spigot/PaperSpigot BungeePerms is a permissions plugin for BungeeCord and Spigot. It overrides the built-in permissions systems so you don't need BungeeCord/Spigot permissions (anymore). BungeePerms can form a network so that it's a single system managing all permi...
(ns tile-soup.core (:require [clojure.data.xml :as xml] [clojure.spec.alpha :as s] [clojure.walk :as walk] [tile-soup.map :as map] [tile-soup.utils :as u])) (defn- record->map [r] (walk/postwalk (fn [x] (if (record? x) (into {} x) x)) r)...
package com.gabomendez.yourfoods.ui.food import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.Toast import androidx.fragment.app.Fragment import androidx.fragment.app.Fragment...
 namespace Patch_Master.Forms { partial class Register { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
package app.cash.sqldelight.driver.sqljs.worker class JsWorkerException(message: String) : Throwable(message)
const restful = require('node-restful'); const mongoose = restful.mongoose; //schema // const ListHeaderSchema= new mongoose.Schema({ type :{ type:String,required:true }, headerId :{ type:String,required:true }, value :{ type:String,default : "" }, dogruPuani :{ type:Number,default : 0,required:true ...
/** * Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com> */ package akka.remote.serialization import akka.actor._ import akka.remote.MessageSerializer import akka.serialization.SerializationExtension import akka.testkit.AkkaSpec import com.typesafe.config.ConfigFactory object MiscMessageSerializerSp...
import Controller from '@ember/controller'; import { action } from '@ember/object'; export default class ReportsAlphaShirtsController extends Controller { @action exportPeople() { const CSV_COLUMNS = [ { title: `${this.year} Callsign`, key: 'callsign' }, { title: 'Status', key: 'status' }, { ...
namespace CertificateManager.Entities { public enum CertificateStorageFormat { Cer, Pkcs7, Pfx } }
package com.github.raedev.swift.utils; import java.util.List; /** * 数组、集合处理工具类 * @author RAE * @since 2020/12/30 */ public final class ArrayUtils { /** * 判断集合是否为空 * @param list 集合 * @param <T> 类型 * @return 是否为空 */ public static <T> boolean isEmpty(List<T> list) { return l...
XenVusb - The Xen Paravitual VUSB Class Driver for Windows ============================================================ The XenVusb package consists of a single device driver: * xenvusb.sys is a bus driver which attaches to a virtual device created by XenBus and creates a child device for each VUSB devi...
import React from "react"; import moment from "moment"; // This component is where the user can type their message and send it // to the chat room. It shouldn't communicate with the server here though. class ChatInput extends React.Component { constructor(props) { super(props); // Set initial state of the ch...
ALTER TABLE client ADD COLUMN backends jsonb; ALTER TABLE client DROP COLUMN webservicesusername; ALTER TABLE client DROP COLUMN webservicespassword; ALTER TABLE client DROP COLUMN productOffersConfigurations;
//! Logging // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; use cast::transmute; #[nolink] extern mod rustrt { fn rust_log_console_on(); fn rust_log_console_off(); fn rust_log_str(level: u32, string: *libc::c_char, size: libc::size_t); } /// Turns on logging...
(set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (ns ^{:author "John Alan McDonald" :date "2016-08-31" :doc "Filesystem stuff." } zana.io.paths (:require [clojure.pprint :as pp] [clojure.string :as s] [zana.collections.generic :as g])) ;;---------------...
/******************************************************************************** ** Form generated from reading UI file 'optionbutton.ui' ** ** Created by: Qt User Interface Compiler version 5.5.1 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! **************************************...
<?php namespace app\common\model; use app\common\model\Base; class Conf extends Base { //一对一关联配置分类表 public function confCate(){ return $this->belongsTo('ConfCate'); } /** * 获取列表 * @return [type] [description] */ public function getConfList(){ return $this->with('confCate')->paginate('',false,['query'...
-module(pg_int4). -behaviour(pg_types). -export([init/1, encode/2, decode/2]). -include("pg_protocol.hrl"). init(_Opts) -> {[<<"int4send">>], []}. encode(N, _) -> <<4:?int32, N:?int32>>. decode(<<N:?int32>>, _) -> N.
# This file contains helpers that are specific to this module def expect_commands(patterns) command_suite = sequence('pcs commands') Array(patterns).each do |pattern| Puppet::Util::Execution.expects(:execute).once.with do |*args| cmdline = args[0].join(' ') pattern.match(cmdline) end.in_sequenc...
<?php namespace Test\Hal\Search; use Hal\Metric\ClassMetric; use Hal\Metric\InterfaceMetric; use Hal\Metric\Metric; use Hal\Search\Search; use PHPUnit\Framework\TestCase; /** * @group search */ class SearchTest extends TestCase { public function testSearchCanReduceSearchByName() { $config = [ ...
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\SalesRule\Observer; class CheckSalesRulesAvailability { /** * @var \Magento\SalesRule\Model\ResourceModel\Rule\CollectionFactory */ protected $_collectionFactory; /** * ...
--- uid: crmscript_ref_NSAAATestClassForModeling_SetStandardBool_Bool_p_0 title: NSAAATestClassForModeling.SetStandardBool(Bool p_0) intellisense: NSAAATestClassForModeling.SetStandardBool sortOrder: 8945 keywords: SetStandardBool(Bool) so.topic: reference --- # NSAAATestClassForModeling.SetStandardBool(Bool p_0) boo...
--- uid: collections --- Provides a number of common collection classes from the following packages: - @"collections-sortedmap" - @"collections-sortedset" - @"collections-hashmap" - @"collections-hashset" - @"collections-linkedlist" # Installation ```sh npm i @esfx/collections ```
class CrossHatchHeuristic def initialize(puzzle_cell_intelligence) @candidates = puzzle_cell_intelligence end def execute(puzzle, cell) find_naked_singles(cell, puzzle) find_hidden_singles(cell, puzzle) end private def find_naked_singles(cell, puzzle) candidates = @candidates.cell(puzzle,...
--- layout: default title: Encoder-Decoder Models - BART parent: Pretrained Language Models nav_order: 5-03-07 --- # Encoder-Decoder Models - BART
#include<bits/stdc++.h> using namespace std; int main(){ int n,d,m; std::cin>>n>>d; std::vector<int>v; for(int i=0;i<n;i++){ std::cin>>m; v.push_back(m); } std::rotate(v.begin(),v.begin()+d,v.end()); for(std::vector<int>::iterator it=v.begin(); it!=v.end();it++...
using System; using System.Collections.Generic; using System.Text; namespace MiCake.Uow.Easy { public interface ITransactionFeatureContainer { void RegisteTranasctionFeature(string key, ITransactionFeature TransactionFeature); ITransactionFeature GetOrAddTransactionFeature(string key, ITransa...
#!/bin/sh set -e set -x CORE_RELEASE_FILE="heron-core.tar.gz" CORE_RELEASE_DIR="heron-core" TOPOLOGY_PACKAGE_FILE="topology.tar.gz" # remove directory if already exists if [ -d "$HERON_NOMAD_WORKING_DIR" ]; then rm -rf $HERON_NOMAD_WORKING_DIR fi # Create working directory if it does not exist mkdir -p ${HERON_NO...
/* * 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 may ...
package org.apache.flink.ml.parameter.server.passive.aggressive.entities import org.scalatest.{FlatSpec, Matchers} import scala.collection.immutable.HashMap class SparseVectorTest extends FlatSpec with Matchers { "SparseVectorBuilder and equal methode" should "be work" in { val SVortodox = new SparseVector(Ha...
namespace InstagramFollowerAnalyzerApp.FollowerInput { using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Runtime.CompilerServices; public class FollowerInputViewModel : INotifyPropertyChanged { public e...
using System; namespace UnrealEngine { public partial class UParticleModuleLocationEmitterDirect:UParticleModuleLocationBase { /// <summary>The name of the emitter to use as a source for the location of the particles.</summary> public FName EmitterName; } }
use pcre2::bytes::Regex; use shared::utils::{self, *}; lazy_static! { static ref INPUT: Vec<String> = utils::read_input_lines("day04"); } fn read_passports() -> Vec<HashMap<&'static str, &'static str>> { let mut passports = Vec::with_capacity(INPUT.len()); passports.push(HashMap::with_capacity(8)); l...
unit MainWin; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls, LCLType, lclintf, screenwin; type { TForm1 } TForm1 = class(TForm) Button2: TButton; Button3: TButton; FScreenFrm: TScreenForm; Button1: TButton; ...
class MergeSort { public static void init() { } public static void sort(int[] array) { // System.out.println("merge sorting"); int[] helper = new int[array.length]; mergesort(array, helper, 0, array.length - 1); } public static void mergesort(int[] array, int[] helper, int low, int high) { i...
package com.raul.macias.wikiheroes.room import androidx.lifecycle.LiveData import androidx.room.* import com.raul.macias.wikiheroes.models.Detail import com.raul.macias.wikiheroes.utils.Utils @Dao interface ComicsDao { @Insert(onConflict = OnConflictStrategy.REPLACE) fun insertComic( comic : Detail) @I...
{-# LANGUAGE OverloadedStrings #-} module Main where import System.Environment import SpotifyCommand import Data.Maybe main :: IO () main = do flags <- getArgs command flags command :: [String] -> IO () command ["-h"] = help command ["help"] = help command ("setup":client_id:client_secret:_) = setu...
#!/usr/bin/env bash set -e cd elk export DOCKER_HOST=$1 if docker stack ls | grep -q elk then docker stack rm elk fi ESDATA1_HOST=cluster03 \ ESDATA1_IP=172.16.200.118 \ ESDATA2_HOST=cluster06 \ ESDATA2_IP=172.16.200.117 \ ESDATA3_HOST=cluster02 \ ESDATA3_IP=172.16.200.114 \ ESROUTER_HOST=cluster04 \ ESROUTER_I...
# database Design - Sản phẩm: + Thông tin sản phẩm: product. + Danh mục sản phẩm: category. + Hình ảnh của sản phẩm: product_image. + Kết quả review của sản phẩm: product_review. + Một product có nhiều cate: product_category.
/* * Copyright 2019 Ravikiran Bukkasagara <contact@ravikiranb.com> * * 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 * * U...
module OandaApiV20Backtest class Error < RuntimeError; end class NotFound < RuntimeError; end class OrderNotClosed < RuntimeError; end class NoActionSet < RuntimeError; end class TakeProfitOrStopLossNeverSet < RuntimeError; end end module OandaApiV20 class ApiError < RuntimeError; end class RequestError ...
<?php namespace USC\CodeChallenge\Shape; class Square extends AbstractShape { /** * @var int */ protected $width; /** * @var int */ protected $height; /** * @param string $color * @param int $borderSize * @param int $width * @param int $height */ ...
package reader import ( "time" "github.com/elastic/beats/libbeat/common" ) // Message represents a reader event with timestamp, content and actual number // of bytes read from input before decoding. type Message struct { Ts time.Time // timestamp the content was read Content []byte //...
% Notifications Notification plugins send Job event messages via external tools and services. ## Jobs To learn how to enable notifications for a job see the [Job Notifications](../manual/jobs.html#job-notifications). ## Develop your own To learn how to develop your own notification plugin see [Notification Plugin...
class Login::Admin::Piece::UsersController < Cms::Admin::Piece::BaseController end
<?php namespace App\Repositories; use App\Models\Area; class AreaRepository { public function allArea() { return Area::orderBy('name', 'asc')->where('sname','<>','sistem')->get(); } public function listArea() { return Area::orderBy('name', 'asc')->where('sname','<>','sistem')->pa...
package sample.model import net.liftweb.record.{MetaRecord, Record} import net.liftweb.record.field.{LongField, OptionalEmailField, StringField} class Example extends Record[Example] { def meta = Example val name = new StringField(this, ""){ override def validations = valMinLen(5, "Must be more than 5 ...
(ns day8.re-frame-10x.inlined-deps.reagent.v0v10v0.reagent.interop (:require-macros [reagent.interop]))
package com.zm.common.base /** * Created by zm on 2019/2/25. */ interface IBaseActivity { /** * 初始化界面参数 */ fun initParam() /** * 初始化数据 */ fun initData() /** * 初始化界面观察者的监听 */ fun initViewObservable() }
# Spritely Spritely is a simple, lightweight jQuery plugin for animating sprites and dynamic scrolling backgrounds. For more information about Spritely, see [the website](http://spritely.net). ## Get Spritely You can download the lastest releases as ZIP files or tarballs from the [releases](https://github.com/artl...
using SharpPad.Notepad; using SharpPad.Utilities; using System; namespace SharpPad.Finding.NotepadItemFinding { public class FoundNotepadItemViewModel : BaseViewModel { private NotepadItemViewModel _notepad; public NotepadItemViewModel Notepad { get => _notepad; ...
<?php declare(strict_types=1); namespace WyriHaximus\React\Parallel\Message; interface MessageInterface { }
import 'package:flutter/material.dart'; import 'package:newpipeextractor_dart/models/infoItems/video.dart'; import 'package:newpipeextractor_dart/models/playlist.dart'; import 'package:newpipeextractor_dart/models/video.dart'; class TagsControllers { TextEditingController urlController = TextEditingController(); T...
#!/usr/bin/env bash set -e LIBSVM_PATH="" POS_PATH="" NEG_PATH="" OUTPUT_PATH="" MODEL_NAME="" WIDTH="64" HEIGHT="64" TRAINER_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export PYTHONPATH="$PYTHONPATH:$LIBSVM_PATH/python" # Build data from pos/neg path python "$TRAINER_PATH/extract_trainset.py" \ -o "$...
require "rails_helper" RSpec.describe Integrated::TellUsIncomeChangedController do describe "#skip?" do context "there is no recent income change" do it "returns true" do application = create(:common_application, income_changed: "no") skip_step = Integrated::TellUsIncomeChangedController.s...
--- layout: policies-guidance-landing date: 2016-10-13 author: CFO Council title: "CONTROLLER ALERT&#58; Reduce the Footprint Policy" subtitle: "Reduce the Footprint Policy" doc-link: ../assets/files/Controller-Alert-Reduce-the-Footprint-Calculations.pdf filters: controller-alerts type: Controller Alert ---
module Admin module Reports class SchoolTargetsController < AdminController def index @currently_active = SchoolTarget.currently_active.count @school_targets = SchoolTarget.joins(:school).currently_active.order(name: :asc) end end end end
//===---------------------------------------------------------------------===// // // The ONNC Project // // Copyright(c) 2018, The ONNC Team // // This file is part of the ONNC Project and is distributed under // 3-clause BSD license (https://opensource.org/licenses/BSD-3-Clause) // // See ...
import utils import librosa as lr import pandas as pd import numpy as np import json import os """ """ # Path for source activations SOURCEID_PATH = os.environ["MEDLEYDB_PATH"]+\ "Annotations/Instrument_Activations/SOURCEID/" AUDIO_PATH = os.environ["MEDLEYDB_PATH"]+"Audio/" LABEL_PATH = os.environ["CODE_PATH"]+"...
import Rest from './rest.ts' import { toQueryString } from '../helpers/mod.ts' import type { Time } from '../types.d.ts' export default class Sql extends Rest { search({ body, queryParams = { format: 'json' } }: SqlSearchRequest): Promise<SqlSearchResponse> { return this.request.send(`/_sql?${toQueryS...
import { Sound } from "expo-av/build/Audio/Sound"; import { sleep } from "./utils"; import { Meditation } from "../types"; export async function meditate( { duration, breathIn: { duration: inhaleDuration }, breathOut: { duration: exhaleDuration }, }: Meditation, inhaleSound: Sound, exhaleSound: Sou...
module.exports = class ProdOnly { constructor(xporter, functions, projectId, firestoredb, cron){ this.functions = functions this.projectId = projectId this.firestoredb = firestoredb this.cron = cron this.exports = xporter this.projectIdProd = 'coronaquit' } deployLastCronOfTheDay(){ i...
import 'dart:core' as core; @core.override void print(core.String message) { core.print(core.DateTime.now().toString() + " - " + message); }
/* * The dispatcher is responsible for translating a message (its binary body * and headers) and placing it onto the underlying transport technology. */ namespace NServiceBus.Transport.Amqp.Sending { using System.Threading.Tasks; using Apache.NMS; using NServiceBus.Extensibility; sealed class Dispa...
package kube import ( "fmt" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" "github.com/pkg/errors" "github.com/shohi/cube/pkg/base" ) var ( ErrEmptyNameSuffix = errors.New("cube: empty name-suffix for merge") ErrConfigAlreadyMerged = errors.New("cube: kubeconfig already merged") ErrClusterAlreadyE...
package example import acyclic.file import upickle.{Js, TestUtil} import utest._ import example.Simple.Thing case class Opt(a: Option[String], b: Option[Int]) object OptionPickler extends upickle.AttributeTagged { override implicit def OptionW[T: Writer]: Writer[Option[T]] = Writer { case None => Js.Null ...
/** @file simplesearch.cc * @brief Simple command-line search utility. * * See "quest" for a more sophisticated example. */ /* Copyright (C) 2007,2010 Olly Betts * * 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 ...
package com.CTF011064.JavaPart1; public class Exercise_3 { public static void main(String[] args) { int i = 20; System.out.println(i++); System.out.println(i++); System.out.println(i++); System.out.println(i++); System.out.println(i++); System.out.println("Final result of increment = " + i); System.o...
# EjE from the Basic Template connect to postgres DB This required database setup. See: - Ray Wenderlich: https://videos.raywenderlich.com/screencasts/server-side-swift-with-vapor-configuring-a-database - Additional steps ○ brew install postgres ○ (Start DB, In separate terminal) postgres -D /usr/local/var/postgres ○...
use color_eyre::eyre::Result; use field_offset::offset_of; use object::read::{File as ElfFile, Object, ObjectSymbol}; use probe_rs::{ flashing::{download_file, Format}, MemoryInterface, Session, }; use probe_rs_rtt::{Rtt, ScanRegion}; use std::{ fs, path::Path, sync::{Arc, Mutex}, time::Duration...
# First Half filter_lf(s) = filter(c -> c ≠ '\n', collect(s)) sumcounts1(strs) = map(length ∘ unique ∘ sort ∘ filter_lf, strs) |> sum # For each group, count the number of questions ANYONE answered "yes" # and then sum those counts puzzleinput = open("inputs/day06.txt") do f split(read(f, String), "\n\n") end s...
angular.module('test1', ['a', 'b', 'c']); angular.module('test2', ['d', 'e', 'f']); angular.module('test3', ['g', 'h', 'i']);
namespace IntroductionToEventSourcing.BusinessLogic.Mutable.Solution2; public interface IAggregate { public Guid Id { get; } public virtual void When(object @event) { } } public class ShoppingCart: IAggregate { public Guid Id { get; private set; } public Guid ClientId { get; private set; } publi...
package controller; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.Ht...
use crate::{PollToken, RawDescriptor}; use serde::{Deserialize, Serialize}; use std::{ fs::File, mem::{self, ManuallyDrop}, }; /// Wraps a RawDescriptor and safely closes it when self falls out of scope. #[derive(Serialize, Deserialize, Debug, Eq)] #[serde(transparent)] pub struct SafeDescriptor { #[serde(...
from __future__ import absolute_import, unicode_literals from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.http import HttpResponse from .forms import UserQueryForm, ScraperForm from .models import ScraperParams from .text_proc import get_word_count, db_text_sear...
package de.sorted.chaos.wavefront.reader import org.joml.Vector2f object UVCoordinate extends FloatExtractor { implicit class ExtractUVCoordinateFrom(val line: String) { def getUVCoordinate: Vector2f = { val tuple = extract(line) validateInput(line, tuple.lineParts, tuple.numbers) new Vector2...
import { combineReducers } from 'redux-immutable'; import router from 'modules/router'; import exercise from 'modules/exercise'; const rootReducer = combineReducers({ router, exercise }); export default rootReducer;
export { VimeoBus } from '../node.Bus'; export { VimeoHttp } from '../node.Http';
require 'rake-terraform/basetask' require 'rake-terraform/terraformcmd' module RakeTerraform module InitTask # Custom rake task to run `terraform plan` class Task < BaseTask include RakeTerraform::TerraformCmd def initialize(opts) @opts = opts end def execute pre_exec...
#include "dotMarker.h" // capture next image void DotMarkerGUI::nextImg(){ // usb camera static cv::VideoCapture cap; cvCaptureImg(m_crntImg, cap); } // estimate marker pose void DotMarkerGUI::calcOne(){ m_dotMarker.execute(m_crntImg); if (m_ui.useDiminish && m_dotMarker.getHom()){ dimi...
use std::cmp; fn candy(ratings: &[i32]) -> i32 { let len = ratings.len(); let mut counts = vec![1; len]; for i in 1..len { if ratings[i] > ratings[i - 1] { counts[i] = counts[i - 1] + 1; } } let mut sum: i32 = counts[len - 1]; for i in (0..len - 1).rev() { ...
with all_data as ( SELECT user_id, conversionVisitExternalClickId FROM `${saSource1}` UNION ALL (SELECT user_id, conversionVisitExternalClickId FROM `${saSource2}`) UNION ALL (SELECT user_id, conversionVisitExternalClickId FROM `${saSource3}`) UNION ALL (SELECT user_id, conversionVisitExternalClickId FR...
# PostCSS Color Rgb [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [PostCSS] plugin to transform [W3C CSS Color Module Level 4 rgb()](https://drafts.csswg.org/css-color/#funcdef-rgb) new syntax to more compatible CSS (comma-separated rgb() or rgba()). [PostCSS]: https://github.com/postcss/postcss [c...
--- layout: base title: 'Statistics of obl:agent in UD_Lithuanian' udver: '2' --- ## Treebank Statistics: UD_Lithuanian: Relations: `obl:agent` This relation is a language-specific subtype of <tt><a href="lt-dep-obl.html">obl</a></tt>. 7 nodes (0%) are attached to their parents as `obl:agent`. 4 instances of `obl:...
import { from } from 'rxjs'; /* * Public API Surface of ngx-math-function-plotter */ export * from './lib/services/ngx-single-variable-function-parser.service'; export * from './lib/ngx-math-function-plotter.service'; export * from './lib/ngx-math-function-plotter.component'; export * from './lib/ngx-math-function-...
import 'package:shared_preferences/shared_preferences.dart'; import '../logic/bloc.dart'; //Function to load Theme Color from SharedPreferences loadColor() async { SharedPreferences prefs = await SharedPreferences.getInstance(); bloc.sinkColorName(prefs.getString('themeColor') ?? 'Yellow'); } //Function to load ...
#!/usr/bin/env bash echo installing root packages yarn install anchor build yarn cp-idl echo installing sdk packages cd sdk yarn install yarn build echo running program tests cd .. anchor test echo installing cli packages cd ../cli yarn install echo installed all packages ✅
import express from 'express'; import logger from 'morgan'; import cors from 'cors'; import passport from 'passport'; import { configureJWTStratergy } from './passport-jwt'; export const setGlobalMiddleware = app => { app.use(express.json()); app.use(express.urlencoded()); app.use(cors()); app.use(logger('de...
@extends('layout.app') @section('title') Contact @stop <?php //comment ?> @section('content') <div class="container"> <div class="subject"> <div class="title">get array from controller</div> <div class="content"> <span>this id from url : {{$id ?? ''}}</span> <h2>People Arrary:</h2> <ul> @if(...