text
stringlengths
27
775k
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:meteor_ui/src/components/color/color.dart'; @immutable abstract class UIThemeDataInterface with Diagnosticable { String get fontFamily; double get baseFontSize; UIColorScheme get colors; const UIThemeDataInterface...
namespace ChampionsLeague { public class TeamScore { private string teamName; private int teamOnSoilGoals; private int teamAwaySoilGoals; public TeamScore(string teamName) { this.teamName = teamName; } public string TeamName { ...
import { Socket } from "socket.io" import ErrorHandler from "@uno-game/error-handler" import GameService from "@/Services/GameService" import ChatService from "@/Services/ChatService" import PlayerService from "@/Services/PlayerService" import ClientService from "@/Services/ClientService" import CryptUtil from "@/Uti...
#!/bin/bash # Run this script to auto-reload the documentation with changes to source files # Requirements: # The watchmedo utility must installed globally: # Run `pipx install watchdog[watchmedo]` to install. # The live-server utility must also be installed globally: # Run `npm install -g live-server` to install. # ...
require 'yaml' require 'json' require './constants' gsi_style = JSON.parse($stdin.read) style = <<-EOS version: 8 center: #{CENTER} zoom: #{ZOOM} sprite: #{gsi_style['sprite']} glyphs: #{gsi_style['glyphs']} layers: [] EOS style = YAML.load(style) style['sources'] = gsi_style['sources'] gsi_style['layers'].each {|l...
""" Quadrotor{R} A standard quadrotor model, with simple aerodynamic forces. The orientation is represent by a general rotation `R`. The body z-axis point is vertical, so positive controls cause acceleration in the positive z direction. # Constructor Quadrotor(; kwargs...) Quadrotor{R}(; kwargs...) wher...
import { Injectable } from '@angular/core'; import { from, Observable, iif, of } from 'rxjs'; import localforage from 'localforage'; import AES from "crypto-js/aes"; import Utf8 from 'crypto-js/enc-utf8'; import { environment } from 'src/environments/environment'; import { map, mergeMap, catchError } from 'rxjs/o...
# Peak Index in a Mountain Array @ [Description](https://leetcode.com/problems/peak-index-in-a-mountain-array/) @ Tags: Array, Binary Search @ Easy ------------------ ## Solution 改变二分法判断条件即可 ```java class Solution { public int peakIndexInMountainArray(int[] A) { int left = 0, right = A.length - 1; ...
package br.com.programadorthi.base.remote import android.content.Context import android.net.ConnectivityManager import androidx.core.content.ContextCompat class NetworkHandlerImpl(context: Context) : NetworkHandler { private val service = ContextCompat.getSystemService(context, ConnectivityManager::class.java) ...
import { Props as reactSelectProps } from 'react-select/lib/Select'; import React, { FC } from 'react'; import { FieldProps, Field } from 'formik'; import ReactSelect from 'react-select'; import { IFieldContainerProps, FieldContainer } from '../FieldContainer/FieldContainer'; type ISelectFieldProps = reactSelectProps<...
--- title: Create Folders --- In the code view, folders can be created with the "Create folder" button. !["Create folder" button](assets/create-button.png) To do so, a dialog will open where the new folder and a commit message have to be entered. It is possible, to create multiple nested folders in one step. ![Dial...
<?php if (!defined('FW')) die('Forbidden'); class FW_Shortcode_Column extends FW_Shortcode { private $restricted_types = array( 'column' ); /** * @internal */ public function _init() { add_action( 'fw_option_type_builder:page-builder:register_items', array($this, '_action_register_builder_item_types')...
fun JavaBaseClass.onJavaBaseClass() { } fun JavaBaseClass?.onJavaBaseClassNullable() { } fun JavaSubClass.onJavaSubClass() { } fun JavaBaseInterface.onJavaBaseInterface() { } fun JavaSubInterface.onJavaSubInterface() { } fun JavaSubSubClass.onJavaSubSubClass() { } fun JavaSubFromKotlin.onJavaSubFromKotlin() { } ...
extern crate test_generator; use test_generator::test_resources; use std::cell::RefCell; use std::collections::HashSet; use std::fs::{read_dir, File}; use std::io::prelude::*; use std::io::{self, Write}; use std::path::PathBuf; use std::process::Command; use preprocessor::PreprocessorOptions; use purkka::core::{get_...
'use strict'; const errors = { 200: 'Ok', 201: 'Created', 400: 'Bad request', 401: 'Unauthorised', 403: 'Forbidden', 404: 'Not found', 409: 'Conflict', 500: 'Server exception' }; function response(res, status, message, data) { message = message || (status in errors ? errors[status]...
<?php return [ 'UserUnique' => 5000, //用户名已存在 'EmailUnique' => 5001, //用户邮箱已注册 'CreateFailure' => 5002, //创建失败 'VerificationCode' => 5003, //验证码错误 'GetUserFail' => 5004, //获取用户信息失败 'PasswordError' => 5005, //密码错误 'FrequentOperation' => 5...
module Awspec::Helper module Finder module CloudwatchEvent def find_cloudwatch_event(id) cloudwatch_event_client.list_rules.rules.find do |rule| rule.name == id || rule.arn == id end end def select_all_cloudwatch_events cloudwatch_event_client.list_rules.rules ...
from .augmenter import Augmenter from .triplet_model import TripletModel from .datagenerator import DataGenerator from .triplet_loss import triplet_loss_metric from .triplet_loss import triplet_loss_function from .compute_fingerprint import compute_fingerprint
angular.module('mainMenuPrivacy').directive('mainMenuPrivacy', ['isyTranslateFactory', function (isyTranslateFactory) { return { templateUrl: 'components/transclusions/mainMenuPanel/mainMenuPrivacy/mainMenuPrivacy.html', restrict: 'A', link: function (scope) { s...
using NeuralNetwork.Visualizer.Contracts.Drawing.Core.Primitives; using System.Threading.Tasks; namespace NeuralNetwork.Visualizer.Winform.Drawing.Controls { public interface IControlDrawing { Task RedrawAsync(); void Redraw(); Task<Image> GetImage(); } }
import React, { createContext } from 'react'; export interface ConfirmData<T = string> { title?: string; body?: JSX.Element | string | false | null; label?: string; actionBody?: (close: () => void) => JSX.Element | false | null; buttonText?: string; buttonColor?: string; isCentered?: boolean; onlyAlert...
2020年11月08日01时数据 Status: 200 1.拜登 微博热度:3971975 2.特朗普 微博热度:2530942 3.胡杏儿辣目洋子OLAY S卡 微博热度:2344044 4.拜登率先获得270张选举人票 微博热度:1362828 5.马苏 这几年摊上一些乱七八糟的事 微博热度:821232 6.快乐大本营 微博热度:527021 7.郭敬明再给何昶希S卡 微博热度:504922 8.美国佛罗里达州发生枪击事件 微博热度:467731 9.微信视频号直播强行置顶朋友圈 微博热度:462577 10.王楚然好适合南湘 微博热度:460376 11.王俊凯易烊千玺卡点为王源庆...
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'accommodation_unit_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** AccommodationUnitDto _$AccommodationUnitDtoFromJson...
<?php //3dsfwefwef132131231sd.php define("DIR", __DIR__); $old_composer_md5 = ('composer.json'); exec("cd ../..",$out); exec("git pull",$out); if (!$out) { $composer_md5 = md5_file('composer.json'); if ($old_composer_md5 !=$composer_md5) { exec("composer update",$out); } }
![About Me](https://raw.githubusercontent.com/martins-rafael/martins-rafael/master/bio.gif) --- ⭐️ From [martins-rafael](https://github.com/martins-rafael)
package dev.prokop.crypto.bip32; import dev.prokop.utils.HashUtils; import dev.prokop.utils.HexUtils; import java.util.Arrays; public class Bip32MasterRawKey { private static final byte[] BITCOIN_SEED = "Bitcoin seed".getBytes(); private final byte[] secretKey; private final byte[] chainCode;...
// // BNJSUserDefaultsHelper.h // CompSDK // // Created by Fakai Zhao on 15/9/21. // Copyright (c) 2015年 Baidu. All rights reserved. // #import <Foundation/Foundation.h> typedef enum { // 预留值 BNJSUserDefaultsKeyNone = 100, /************************************************************ v5...
module React module Rails # A renderer class suitable for `ActionController::Renderers`. # It is associated to `:component` in the Railtie. # # It is prerendered by default with {React::ServerRendering}. # Set options[:prerender] to `false` to disable prerendering. # # @example Rendering a...
// Copyright 2014 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. #include "components/rappor/test_rappor_service.h" #include "components/rappor/byte_vector_utils.h" #include "components/rappor/proto/rappor_metric.pb.h"...
// Copyright (C) 2018 Fievus // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. using System; namespace Charites.Windows.Mvc.Bindings { /// <summary> /// Represents an edit content of an editable content. /// </summary> /// <ty...
package org.monospark.remix; /** * A {@code RecordRemixer} is a factory for a {@link RecordRemix} * that can be linked to a record class using either the {@link Remix} annotation or * {@link Records#remix(Class, RecordRemixer)}. * <p> * Any subclass must have a default constructor to instantiate it via reflection...
package gazette import java.sql.Date import scodec.{Attempt, Codec, Err} import scodec.codecs.{uint16, utf8, variableSizeBits} import scalaz.Disjunction object Util { def parseDate(s: String): Option[Date] = Disjunction.fromTryCatchNonFatal(Date.valueOf(s)).toOption def parseCsv(s: String): List[String] = ...
{-# LANGUAGE DeriveGeneric #-} module Tunebank.Model.NewUser where import GHC.Generics import Data.Text (Text) import Database.PostgreSQL.Simple -- import Database.PostgreSQL.Simple.FromField (FromField(..), fromField) import Database.PostgreSQL.Simple.ToField import Database.PostgreSQL.Simple.FromRow import Database...
use std::{fs, io, path::Path}; // stackoverflow.com/questions/26958489/how-to-copy-a-folder-recursively-in-rust pub(crate) fn copy_dir_all(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> io::Result<()> { fs::create_dir_all(&dst)?; for entry in fs::read_dir(src)? { let entry = entry?; let ty = ...
{-| This implements the 'basic conversion routine' given in Section 2 of Adams' original paper, without using lookup tables to speed up the loops. -} module Text.Format.Floating.Simple where import Text.Format.Floating.Constants import Text.Format.Floating.Decimal import Text.Format.Floating.Rounding import...
/* * Copyright (c) 2012, Thingsquare, http://www.thingsquare.com/. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
#include <parameter_assertions/assertions.h> #include <ros/ros.h> #include "differential_drive.h" DifferentialDrive::DifferentialDrive() { ros::NodeHandle nh; ros::NodeHandle pNh("~"); assertions::param(pNh, "axle_length", axle_length_, 0.48); assertions::param(pNh, "max_vel", max_vel_, 3.0); mbf_twist_ = ...
# XSL - FO (XSL Formatting Objects) * XML * Traditionally used with XSLT - XSL Templates (yay, more XML) # Pros * XML feels like enterprise # Cons * Limited tooling - you can get **Apache FOP** for free or pay 5000 dollars for commercial tools * Formatting and text setting is poor - on par with CSS1/CSS2 possibili...
//! Get Once //! ``` //! # use libsugar::once_get::*; //! let mut a = None; //! let b = a.get_or_init(|| 1); //! assert_eq!(*b, 1); //! ``` /// Get Once pub trait OnceGet<T> { /// Get ref, init it with f if was empty fn get_or_init<F: FnOnce() -> T>(&mut self, f: F) -> &T; /// Get mut ref, init it with f i...
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ export { AddressMatchService } from './AddressMa...
/* * Copyright 2018 Copenhagen Center for Health Technology (CACHET) at the * Technical University of Denmark (DTU). * Use of this source code is governed by a MIT-style license that can be * found in the LICENSE file. */ import 'package:flutter/material.dart'; import 'dart:async'; import 'package:weather/weather....
'use strict'; const mongoose = require('mongoose'); const Schema = mongoose.Schema; // 数据结构:阅读数 const Monitor = new Schema({ postId: { type: 'ObjectId', ref: 'Post' }, // 关联文章id updateAt: Date, // 更新时间 readNum: Number,// 阅读数 likeNum: Number,// 点赞数 }); Monitor.plugin(require('motime')); Monitor.inde...
using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace SerializerExample { /// <summary> /// Helps with serializing an object to binary and back again. /// </summary> public static class Serializer { /// <summary> /// Serializes an object to binary ...
// Copyright (c) 2012 Couchbase, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file // except in compliance with the License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in w...
# Funcionalidades ## Conexões - Rota para criar uma nova conexão; - Rota para listar total de conexões realizadas; ## Aulas -- Rota para criar Aulas; -- Rota para listar Aulas; -- Filtrar por matéria, dia da semana e horário;
require 'rubygems' require 'erb' require 'optparse' require 'yaml' require 'fileutils' require 'pathname' module LocalConfig #jobid from command line, for external overwrite attr_accessor :job_idx def parse_cmdline #config $options = {} option_parser = OptionParser.new do |opts| # Create a s...
<?php namespace CpChart\Behat\Context; use Behat\Mink\Mink; use Behat\Mink\Session; use Behat\MinkExtension\Context\MinkAwareContext; use SensioLabs\Behat\PageObjectExtension\Context\PageObjectContext; /** * @author Piotr Szymaszek */ abstract class MinkAwarePageContext extends PageObjectContext implements MinkAwa...
/* * Copyright 2017 Karlsruhe Institute of Technology. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
#include "Application.h" #include <glm/gtc/matrix_transform.hpp> #include "Draw.h" Application::Application( std::filesystem::path path, std::unique_ptr<frame::WindowInterface>&& window) : path_(path), window_(std::move(window)) {} void Application::Startup() { window_->SetDrawInterface( std::make_unique<Dra...
# Summary This directory contains examples of how to use the Chocolatey Package Creator module to dynamically create Chocolatey packages. * `7zip`: Packages the 64-bit version of the 7zip CLI tool * `dotnet-472`: Packages Microsoft .NET Framework 4.7.2 * `eps.extension`: Packages the Powershell EPS module as a Choco...
require 'spec_helper' describe DataMigrate::DataMigrator do let(:subject) { DataMigrate::DataMigrator } describe :schema_migrations_table_name do it "returns correct table name" do expect(subject.schema_migrations_table_name).to eq("data_migrations") end end describe :migrations_path do it "...
package libp2p_pubsub import ( "fmt" "github.com/sivo4kin/ea-starter/libp2p/pub_sub_bls/modelBLS" messageSigpb "github.com/sivo4kin/ea-starter/libp2p/pub_sub_bls/protobuf/messageWithSig" "github.com/sivo4kin/ea-starter/libp2p/pub_sub_bls/protobuf/messagepb" "github.com/sivo4kin/ea-starter/libp2p/pub_sub_bls/test_...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package io.github.jass2125.sistema.alocacao.core.actions.location; import io.github.jass2125.sistema.alocacao.core.util.Command; impo...
"""Disable headers and some other blocks for comment-like markdown peaces""" from django.utils.deconstruct import deconstructible from markdown.extensions import Extension @deconstructible class CommentExtension(Extension): """Disable headers and some other blocks for comment-like messages""" def extendMark...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
package ru.fizteh.fivt.students.Soshilov.junit; /** * Created with IntelliJ IDEA. * User: soshikan * Date: 23 October 2014 * Time: 1:08 */ public final class Exit implements Command { /** * Stop working with database. * @param args Commands that were entered. * @param db Our main table. */...
require 'oriented' class Model include Oriented::Vertex property :name has_n(:stylists) has_one(:drug_dealer).from(:clients) has_n(:requests).from(:target) end class DrugDealer include Oriented::Vertex property :name property :product has_n(:clients) end class Stylist include Oriented::Vertex ...
import React, { FC } from 'react'; import styled from 'styled-components'; import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import { useTranslation } from 'react-i18next'; import logo from '../static/logo.svg'; interface Props { onSelectFiles: () => void; onOpenSettings: () ...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: protob.proto require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_message "protob.Version" do optional :value, :string, 1 end add_message "protob.Void" do end add_message "protob.Title" do optional...
--- title: "How to Choose the Journal That's Right for Your Study" source: "New" date: "2021-07-27" categories: - Recommendation tags: - Writing research papers output: html_document --- An easy to read guide on picking the right journal to send your publication to. <!--more--> How to Choose the Journal That's Right...
package com.codingblocks; import java.util.ArrayList; public class Examples { public static void main(String[] args) { ArrayList list = new ArrayList(); System.out.println(list.size()); list.add(1); list.add(4); list.add(7); list.add(9); System.out.printl...
import {EntityPropertyType} from '@/erdiagram/parser/types/entity-relationship-model-types'; import { TableColumnDescriptor, TableReferenceDescriptor } from '@/erdiagram/converter/database/model/database-model-types'; import OracleColumnCodeGenerator from '@/erdiagram/converter/database/code-converter/sql/dialect/or...
# Goal: Simulate a dataset from the OLS model and obtain # obtain OLS estimates for it. x <- runif(100, 0, 10) # 100 draws from U(0,10) y <- 2 + 3*x + rnorm(100) # beta = [2, 3] and sigma = 1 # You want to just look at OLS results? summary(lm(y ~ x)) # Suppose x and ...
// Copyright (c) Liam Stanley <me@liamstanley.io>. All rights reserved. Use // of this source code is governed by the MIT license that can be found in // the LICENSE file. package main import ( "context" "os" "time" "github.com/flosch/pongo2" "github.com/google/safebrowsing" ) var safeBrowser *safebrowsing.Saf...
/* * 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 ...
<?php namespace Tests\Unit; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; use App\Models\Nave; use App\Models\Itinerario; use App\Models\Ruta; use Illuminate\Database\Eloquent\Collection; class NaveTest extends TestCase { use RefreshDatabase; public function test_una_nave_posee_...
app.controller('serviceCtrl', function($scope, demoService) { console.log(demoService.serviceFN()); $scope.dataFromService = demoService.serviceFN(); }); app.controller('factoryCtrl', function($scope, demoFactory) { console.log(demoFactory.factoryFN()); $scope.dataFromFactory = demoFactory.factory...
# ABC110 C. String Transformation ## @2020-04-26 わからなかった。 300点ではゲキムズだと思う。 ていうかなんで過去の自分は解けたのか?謎。 **1対1の写像が成立するかどうかを調べる問題。** 。。なんだけど、正直深く理解しきれていない。。 ### ポイント - PDFにある通り「1対1の置換表を作ることを目標にする」と考えるとわかりやすいかも - 順方向と逆方向の変換両方をケアして、両方に矛盾がないかをチェックしないといけない ### chokudaiさんの解説 [動画のこのあたり](https://youtu.be/gdQxKESnXKs?t=1923)が具体...
export 'post_details_reactions_list/index.dart'; export 'post_comments_list/index.dart'; export 'post_details_bottom_bar/index.dart';
SCRIPT_DIR=$(cd $(dirname $0); pwd) cd "$SCRIPT_DIR" # SQLファイルを作成する。 echo "create table T(C text); insert into T values('AAA'); .tables .headers on .mode column select * from T; " > create_dot.sql # `.read`してテーブルやレコードを確認する。 sqlite3 :memory: ".read create_dot.sql"
$(document).ready(function(){ alert("gola"); $("#comm").hide(); $("#comentar").on("click", function(){ $("#comm").show(); }) })
#!/bin/sh # set -e vms=( "myvm1" "myvm2" ) i=0 for vm in ${vms[@]:0:2} do docker-machine env ${vm} eval $(docker-machine env ${vm}) HOST_IP=$(docker-machine ip ${vm}) echo ${HOST_IP} # echo $PWD docker build -f Dockerfile -t haproxy-rabbitmq-cluster:latest . let "i++" done echo "Script...
Spree::Shipment.class_eval do has_many :notes, class_name: 'ShipmentNote', foreign_key: 'shipment_id' end
<?php declare(strict_types=1); /* * This file is part of Clivern Memcached Bundle * (c) Clivern <hello@clivern.com> */ namespace Tests; use Clivern\Memcached\MemcachedClient; use PHPUnit\Framework\TestCase; class MemcachedClientTest extends TestCase { private $memcachedClient; /** * Setup. */...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################## # import dependencies ############################## import pickle import argparse import numpy as np from pathlib import Path from collections import Counter from keras.preprocessing.text import text_to_word_sequence from keras.preprocessi...
# Copyright (c) 2019 Eric Steinberger import numpy as np import torch class ReservoirBufferBase: def __init__(self, owner, max_size, env_bldr, nn_type, iter_weighting_exponent): self._owner = owner self._env_bldr = env_bldr self.device = torch.device("cpu") self._owner = owner ...
bash -c "pacman-key --init" bash -c "pacman-key --populate msys2" bash -c "pacman-key --refresh-keys"
<?php namespace Packlink\BusinessLogic\Registration; class RegistrationInfo { /** * @var string */ private $email; /** * @var string */ private $phone; /** * @var string */ private $source; /** * RegistrationInfo constructor. * * @param string ...
#!/bin/bash SIGNAL_NAME=(ZERO $(kill -l `seq 1 64` 2>/dev/null)) function pretty_exit_status { local pretty_status; if (($1 == 0)); then pretty_status=OK; else local number; pretty_status="ERROR $1" if (($1 > 128)); then number=$(($1 - 128)); if (...
### Todos - [x] Write Integration Test (usecase, storages layer). - [x] Structure code by simple MVC Architecture. - [x] Limit Create Task per day can avoid race condition. - [x] Split `services` layer to `use case` and `transport` layer. - [x] Change from using `SQLite` to both `SQLite` and `Postgr...
const { createFilePath } = require('gatsby-source-filesystem') const isEmpty = require('lodash/isEmpty') const path = require('path') const PAGINATION_OFFSET = 7 function createPosts(createPage, createRedirect, edges) { edges.forEach(({ node }, i) => { const prev = i === 0 ? null : edges[i - 1].node const n...
$input = File.read "day-09.input" # --- Part One --- $groups = [] def parse_group idx, depth $groups << depth loop do idx = case $input[idx] when nil return when "{" parse_group (idx + 1), depth + 1 when "}" return idx + 1 when "<" parse_garbage (...
import { FullCwdGameView } from '../../../types/cwd.types' import { connectToDatabase } from '../../../util/mongodb' import { fromCwdGames } from '../cwd-game-store' export default async function setGuess(game: FullCwdGameView, guess: unknown) { const player = game.currentPlayer const isPlayerTurn = player?.team =...
package org.clulab.factuality import org.clulab.factuality.utils.Serializer import scala.collection.mutable.ArrayBuffer import scala.io.Source import scala.util.Try /** * Reads the CoNLL-like column format */ object ColumnReader { def readColumnsFromFile(fn: String): Array[Array[Row]] = Serializer.using(...
#pragma once #include ".\JointArray.hpp" #include ".\vec4.hpp" #include ".\mat4.hpp" #include ".\Component.hpp" namespace regenny::via { struct Transform; } namespace regenny::via { struct Scene; } namespace regenny::via { #pragma pack(push, 1) struct Transform : public Component { regenny::via::vec4 Position; // 0...
/* global describe, it */ /* jshint -W030 */ var chai = require('chai'), adhoc = require('../'), expect = chai.expect; chai.use(adhoc); // Code to test function Model (type) { this._type = type; this._attrs = {}; } Model.prototype.set = function (key, value) { this._attrs[key] = value; }; Model...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Rds\V20140815\Models; use AlibabaCloud\Tea\Model; class CreateDdrInstanceRequest extends Model { /** * @var int */ public $ownerId; /** * @var string */ public $resourceOwnerAccount; /**...
import {DateTime} from 'luxon'; import {Mapping} from '../model/mapping'; export const START_NAME = 'Starting Activities'; export const STOP_NAME = 'Stopping Activities'; export function normalizeColumnName(columnName: string): string { return columnName.replace('_', ' '); } export function encodeColumnName(colum...
# Entidades y controladores Una entidad en el motor es cualquier elemento que aparezca de manera independiente en la pantalla y tenga posición, rutina de dibujado y lógica de actualización. Las entidades son manejadas por un gestor de entidades, el cual es actualizado por la escena. El gestor de entidades a su vez ll...
# frozen_string_literal: true class CreateOrgUnits < ActiveRecord::Migration[6.0] include Partynest::Migration def change create_table :org_units do |t| t.timestamps null: false t.string :short_name, null: false, index: { unique: true } t.string :name, null: false, index: { unique: tr...
Make sure you have npm and node installed, then: Run `npm install` Run `npm start` Enjoy AnyTool!
import { PolicyDocument } from '@aws-cdk/aws-iam'; import { RemovalPolicy, Resource } from '@aws-cdk/core'; import { Construct } from 'constructs'; import { IBucket } from './bucket'; import { CfnBucketPolicy } from './s3.generated'; export interface BucketPolicyProps { /** * The Amazon S3 bucket that the policy ...
# Release 2020.8.1 ## Major feature: More Info Learn more about it in [%UbK6ZACB6uFJU0+JDHtnvPW1mV2c2QAq3dXYnKkmcFg=.sha256](ssb:message/sha256/UbK6ZACB6uFJU0%2BJDHtnvPW1mV2c2QAq3dXYnKkmcFg%3D). ## Fixes: * **Core Components:** * LAYOUT: hovering an `AvatarTile` now shows a pointer cursor. * MAYBE FEATURE: ...
#!/usr/bin/env bash # ============================================================================== # Open Peer Power Community Add-ons: Bashio # Bashio is an bash function library for use with Open Peer Power add-ons. # # It contains a set of commonly used operations and can be used # to be included in add-on scripts...
import React from "react" const inputStyles = { width: `100%`, border: 0, borderBottom: `1px solid gray`, margin: `10px 0`, } const submitStyles = { width: `100%`, border: 0, margin: `10px 0`, background: `black`, color: `white`, } const ContactForm = props => ( <form className="ContactForm" name...
package Baby.Com; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Date; import java.util.HashMap; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.view.View.OnClickListener; import android.widget.BaseAdapter; ...
import interfaces.Action; import java.util.List; //Implementation of methods in interfaces.LearningModule interface public class ActionImpl implements Action { private boolean toSwitch; public ActionImpl(boolean toSwitch) { this.toSwitch = toSwitch; } public ActionImpl() { this(fals...
<!DOCTYPE html> <html lang="ar" dir="rtl"> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" href="{{asset('assets/css/style.css')}}"/> <!-- bootstrab css files cdn -->...