text
stringlengths
27
775k
# -*- coding: utf-8 -*- __author__ = 'bizhen' from page.pages import * from base.action import ElementActions import pytest class TestPersonInfo: @pytest.fixture def open_person_info(self, action: ElementActions): action.click(MyPage.我的) action.click(MyPage.已登录头像) action.click(UpOwne...
package com.badoo.automation.deviceserver.data import com.fasterxml.jackson.annotation.JsonProperty import java.nio.file.Path class DataPath( @JsonProperty("bundle_id") val bundleId: String, @JsonProperty("path") val path: Path)
<?php namespace App\Http\Controllers; use App\Ajax; use Illuminate\Http\Request; class AjaxController extends Controller { public function ajaxget() { $data = json_decode(Ajax::get()); return $data; } public function ajaxPost(Request $request) { $name = $request->input(...
from django.contrib import admin from .models import Signing class SigningAdmin(admin.ModelAdmin): list_display = ('employee', 'start_date', 'end_date') search_fields = ('employee', 'start_date', 'end_date') admin.site.register(Signing, SigningAdmin)
# MATLAB Crash Course Author: methylDragon Contains a syntax reference for MATLAB! I'll be adapting it from the ever amazing Derek Banas: https://www.youtube.com/watch?v=NSSTkkKRabI ------ ## Pre-Requisites ### Good to know - Systems ## 1. Introduction MATLAB stands for Matrix Laboratory. It's a very famou...
package org.silkframework.runtime.validation /** * Request exception. * This will lead to a JSON error response if thrown inside a REST endpoint. * * @param msg The detailed error description. * @param cause The optional cause of this exception. * */ abstract class RequestException(msg: String, cause: Op...
// SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> // // SPDX-License-Identifier: Apache-2.0 package mho import ( "context" subutils "github.com/onosproject/ran-simulator/pkg/utils/e2ap/subscription" ) func (m *Mho) processRrcUpdate(ctx context.Context, subscription *subut...
using System.Runtime.Serialization; namespace Checkout.Risk.PreAuthentication { public enum PreAuthenticationDecision { [EnumMember(Value = "try_exemptions")] TryExemptions, [EnumMember(Value = "try_frictionless")] TryFrictionless, [EnumMember(Value = "no_preference")] NoPrefe...
// WITH_RUNTIME inline fun <reified T : CharSequence, reified U, X> foo() { <selection>listOf(T::class, U::class)</selection> }
<?php foreach($fields as $f => $field) { ?> <label> <span><?php print ($view->escape($field)); ?></span> </label> <?php }
/* -------------------------------------------------------------------------- * File: BendersATSP.java * Version 12.8.0 * -------------------------------------------------------------------------- * Licensed Materials - Property of IBM * 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21 * Copyright...
CREATE DATABASE `dbvideo_club` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */; CREATE TABLE `film` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `genre` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL, `year` int(11) DEFAULT NULL, `...
<?php namespace webignition\WebResource\Sitemap\UrlExtractor; abstract class AbstractSitemapsOrgXmlExtractor implements UrlExtractorInterface { const SITEMAP_XML_NAMESPACE_REFERENCE = 's'; abstract protected function getXpath(): string; public function extract(string $content): array { $urls...
# frozen_string_literal: true class Mutations::CreateToc < Mutations::BaseMutation argument :repository_id, ID, required: true, description: "Repository primary id" argument :title, String, required: true, description: "Title" argument :url, String, required: false, description: "URL" argument :external, Boole...
# frozen_string_literal: true require 'spec_helper' describe 'Anonymous function syntax' do it 'anonymous function' do expect(<<~'EOF').to include_elixir_syntax('elixirAnonymousFunction', 'fn') fn(_, state) -> state end EOF end it 'as a default argument' do expect(<<~'EOF').to include_elixir_...
<?php session_start(); include_once '../model/mysql.class.php'; $helper = new helper(); $reback =1; $name = $_GET['name']; $password =md5($_GET['pass']); $email = $_GET['email']; $sql= "insert into user(name,pass,email) "; $sql.="values ('$name','$password','$email')"; $sql1="select * from user where name='".$name."'"...
# frozen_string_literal: true module Sicily Sicily.register_generator do |generator| generator.filename = 'google_photo.rb' generator.load_on_start = true generator.content = <<~CONTENT Sicily.configure_google do |config| config.id = 'your id' config.pw = 'your pw' end CON...
package minietcd import ( "encoding/json" "errors" "io" "log" "net/http" "net/url" "os" "path" "strings" "time" ) type versionResponse struct { EtcdCluster string `json:"etcdcluster"` EtcdServer string `json:"etcdserver"` } type readResponse struct { Action string `json:"action"` Node struct { Nod...
CREATE SEQUENCE flow_sample_id_seq START WITH 9523 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE flow_sample_id_seq OWNER TO postgres; -- -- TOC entry 350 (class 1259 OID 968286) -- Name: census_flow_sample; Type: TABLE; Schema: import; Owner: postgres -- CREATE TABLE census_flow_s...
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} module GenericDerivedDefinition where import Text.JSON import Control.Lens import AbstractStructure import HardCoded import Task import SDKMonad im...
import React from 'react' import styled from 'styled-components' import { navigate } from 'gatsby' import { auth } from '../../firebase' import { Button } from 'rebass' const LogoutButton = () => ( <StyledLogoutButton type="button" onClick={() => { auth.doSignOut().then(() => navigate(`/`)) }} >...
/* File: MBCBoard.h Contains: Fundamental move and board classes. Copyright: � 2002-2012 by Apple Inc., all rights reserved. IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or...
package org.bukkit; import org.bukkit.permissions.ServerOperator; public interface OfflinePlayer extends ServerOperator { /** * Checks if this player is currently online * * @return true if they are online */ public boolean isOnline(); /** * Returns the name of this player *...
// Copyright (c) Microsoft. All rights reserved. use std::collections::BTreeMap; use std::str; use docker::models::AuthConfig; use failure::ResultExt; use k8s_openapi::ByteString; use crate::error::{ErrorKind, PullImageErrorReason, Result}; #[derive(Debug, PartialEq, Default)] pub struct ImagePullSecret { regis...
import logging import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.plugin.api.utils import itertags from streamlink.stream import HLSStream log = logging.getLogger(__name__) @pluginmatcher(re.compile( r"https?://(?:www\.)?watchstadium\.com/liv...
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.ledger.javaapi.data import java.time.Instant import java.util.{Optional => JOptional} import java.util.concurrent.TimeUnit import com.daml.ledger.javaapi.data.Gen...
C++*************************************************************** C Program PROFILE_MODSQ C C Simpler version of PROFILE_MODSQ, specially designed for C computing profiles of angular sectors of a centered "modsq" (=power spectrum) C C This programme computes a profile along circular annuli. C Discards stars and def...
''' FastAPI Demo Create the initial user ''' from database.setup import session_local, engine from database import models from data_schemas import schemas from utils.config_utils import get_config from utils.user_utils import ( create_user, set_user_admin ) ##########################################################...
package me.jiho.fruitreactive.habits import org.springframework.data.r2dbc.repository.Query import org.springframework.data.r2dbc.repository.R2dbcRepository import reactor.core.publisher.Flux import reactor.core.publisher.Mono import java.time.LocalDate interface HabitExecutionDateRepository: R2dbcRepository<HabitExe...
package actions import ( "net/http" ) func proxyHomeHandler(w http.ResponseWriter, r *http.Request) { w.Write([]byte(`"Welcome to The Athens Proxy"`)) }
import type { Observable } from 'rxjs'; // ***************************** // Misc Types // ***************************** export type ControlId = string | symbol; // Passing a whole `AbstractControl` to validator functions could create // unexpected bugs in ControlDirectives if the control type changes in // a way the...
use core::future::Future; /// Random-number Generator pub trait Rng { type Error; type RngFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a where Self: 'a; /// Completely fill the provided buffer with random bytes. /// /// May result in delays if entropy is exhausted prior to ...
#[derive(Debug, PartialEq, Clone)] pub enum Loc { File { filename: String, line: i32, pos: i32, }, Unknown, }
package models; import play.data.validation.Constraints; public class Post { @Constraints.Required public String subject; public String tags; @Constraints.Required public String body; }
package com.twtims.mapboxdemo.label import android.animation.ArgbEvaluator import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.twtims.mapboxdemo.R import android.animation.ValueAnimator import android.graphics.Color import com.mapbox.mapboxsdk.maps.Style import com.mapbox.mapboxsdk.styl...
namespace alg_13_Enums { //public enum Spol { //Muski, //Zenski //} internal class Osoba { private string ime; private Spol spol; public Osoba(string ime) { this.ime = ime; this.spol = Spol.Zenski; } public Osoba(string...
# 条件运算 a = 10 if (a is 10): print('a等于10') elif(a is 20): print('a 等于10') else: print('a不等于10') b = 66 if(b <= 60): print('b<=60,真实值为:',b) elif(b<=70): print('b<=70,真实值为:',b) elif(b<=80): print('b<=80,真实值为:',b) elif(b<=90): print('b<=90,真实值为:',b) else: print('91-100,真实值为:',b)
# Ticker-Token ICO ## Deploying ### Local deployment Truffle console: (Truffle v5.3.5) `$ truffle console` `truffle(development)> TickerTokenSale.deployed().then((i)=>{tokenSale = i})` `truffle(development)> TickerToken.deployed().then((i)=>{token = i})` `truffle(development)> tokensAvailable = 7500` `truffle(...
{-| Module : FRP.AST.Reflect Description : Reflecting FRP-Types into the Haskell type-system -} {-# LANGUAGE AutoDeriveTypeable #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures ...
import React from "react"; import PropTypes from "prop-types"; import styled from "styled-components"; import { Selection } from "prosemirror-state"; import Chromeless from "@atlaskit/editor-core/dist/es5/ui/Appearance/Chromeless"; import EditorContext from "@atlaskit/editor-core/dist/es5/ui/EditorContext"; import { Po...
importScripts('./ngsw-worker.js'); (function () { 'use strict'; self.addEventListener('notificationclick', (event) => { console.log("This is custom service worker notificationclick method."); console.log('Notification details: ', event.notification); // Write the code to open i...
# MenuTitle: Remove Hints from __future__ import ( absolute_import, division, print_function, unicode_literals, ) from GlyphsApp import Glyphs, TOPGHOST, STEM, BOTTOMGHOST __doc__ = """ Remove PostScript hints in selected glyphs """ ps_hints = [ TOPGHOST, STEM, BOTTOMGHOST, ] Glyphs.font...
<?php namespace App\Imports; use App\User; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; use Illuminate\Support\Facades\Hash; use Auth; use App\Department; use App\Designation; use App\UserProfile; use Carbon\Carbon; use DateTime; class UsersImport implements ToModel, WithHe...
import React from 'react'; import Radium from 'radium'; import MdLanguage from 'react-icons/lib/md/language'; import MdArrowDropDown from 'react-icons/lib/md/arrow-drop_down'; import MdCheck from 'react-icons/lib/md/check'; import { Lang } from 'i18n/lang'; @Lang @Radium class LanguageSwitcher extends React.Componen...
--- title: Lambda関数へのREST APIの接続 description: REST API をLambda 関数に接続する方法 --- このガイドでは、REST APIを既存のLambda関数に接続する方法を学びます。 始めるには、新しいAPIを作成してください。 ```sh amplify add api ? Please select from one of the below mentioned services: REST ? Provide a friendly name for your resource to be used as a label for this category in th...
package com.zbiljic.resterror; import com.zbiljic.resterror.http.HttpStatus; /** * Factory for creating {@link RestError} instances. * * @author Nemanja Zbiljic */ public abstract class RestErrorFactory { /** * Returns new builder for creating a {@code RestError} instance. * * @return A builder for cr...
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import json from cfnlint.rules import Match class BaseFormatter(object): """Base Formatter class""" def _format(self, match): """Format the specific match""" def print_matches(self, mat...
-- Insert with duplicate policy (psycopg2) INSERT INTO ohlcvs VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s) ON CONFLICT (exchange, base_id, quote_id, "time") DO NOTHING; -- Execute prepared INSERT statement (psycopg2) EXECUTE ohlcvs_rows_insert_stmt(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s); -- Delete duplicate rows delete from ohlcvs...
/* * Copyright 2010-2019 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.idea.goto import com.intellij.ide.actions.SearchEverywhereClassifier import com....
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SeiyuuMoe.Domain.ValueObjects; namespace SeiyuuMoe.Infrastructure.Database.Converters { public class MalIdConverter : ValueConverter<MalId, long> { public MalIdConverter(ConverterMappingHints mappingHints = null) : base( id => id.Value, ...
package org.consumersunion.stories.server.api.rest.mapper; import java.util.logging.Level; import java.util.logging.Logger; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; import org.consumersunion.stories.common.shar...
### 关系扩展 #sql("EDbRel") select #if(fields) #(fields) #else * #end from #(tableName) where 1=1 ### 判断是否是map类型 #if(JpaKit.isList(params)) #for(param : params) and #(param) = ? #end #if(appendSql) #(appendSql) #end #if(limit) limit #(limit) #end #if(offset) of...
using Volo.CmsKit.Entities; namespace Volo.CmsKit.Comments; public static class CommentConsts { public const string EntityType = "Comment"; public static int MaxEntityTypeLength { get; set; } = CmsEntityConsts.MaxEntityTypeLength; public static int MaxEntityIdLength { get; set; } = CmsEntityConsts.MaxEn...
// // PadTorch.cpp // MNNConverter // // Created by MNN on 2021/08/11. // Copyright © 2018, Alibaba Group Holding Limited // #include <stdio.h> #include "torchOpConverter.hpp" DECLARE_OP_CONVERTER(PadTorch); MNN::OpType PadTorch::opType() { return MNN::OpType_Extra; } MNN::OpParameter PadTorch::type() { ...
package static_example; class SuperClass{ public void staticMethod(){ System.out.println("SuperClass: inside staticMethod"); } } class SubClass extends SuperClass{ //overriding the static method public void staticMethod(){ System.out.println("SubClass: inside staticMethod");...
module Deserializer module Attribute autoload :Base, "deserializer/attribute/base" autoload :Association, "deserializer/attribute/association" autoload :Attribute, "deserializer/attribute/attribute" autoload :HasManyAssociation, "deserializer/attribute/has_many_associatio...
using Innovator.Client.Model; using Innovator.Client.QueryModel; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Innovator.Client.QueryModel.Tests { [TestClass] public class AmlSearchTe...
require "lightrail/wrapper/associations" module Lightrail module Wrapper class Model class_attribute :associations self.associations = [] class << self def inherited(base) base.class_eval do alias_method wrapped_class.model_name.underscore, :resource end...
//----------------------------------------------------------------------- // <copyright company="Nuclei"> // Copyright 2013 Nuclei. Licensed under the Apache License, Version 2.0. // </copyright> //----------------------------------------------------------------------- using System; using System.Collection...
#!/usr/bin/python # Copyright (C) 2013 Technische Universitaet Muenchen # This file is part of the SG++ project. For conditions of distribution and # use, please see the copyright notice at http://www5.in.tum.de/SGpp # """ @file ParameterBuilder.py @author Fabian Franzelin <franzefn@informatik.uni-stuttgart.de> @da...
<?php /* * This file is part of Mannequin. * * (c) 2017 Last Call Media, Rob Bayliss <rob@lastcallmedia.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace LastCall\Mannequin\Core\Console; use LastCall\Mannequin\Core\Config\ConfigLo...
def test_movie_awards(ia): movie = ia.get_movie('0133093', info=['awards']) awards = movie.get('awards', []) assert len(awards) > 80
import React from 'react'; import './FilterCard.css'; import Input from '../Input/Input'; interface FilterCardProps { onUpdate: Function; title: string; children: JSX.Element } function FilterCard({ onUpdate, title, children }: FilterCardProps): JSX.Element { const onInputChange = (name: string, value...
#include "soft_uart.h" int main() { uart_init(); uart_puts("\nBooted from flash.\n"); uart_puts("Hello, world from C!\n"); }
#define SYSFS_GPIO_DIR "/sys/class/gpio" // #define POLL_TIMEOUT (3 * 1000) /* 3 seconds */ #define MAX_BUF 100 int gpio_export(unsigned int gpio); int gpio_set_dir(unsigned int gpio, unsigned int out_flag);
# require 'test_helper' # # class Admin::ProgrammesControllerTest < ActionController::TestCase # # setup do # panopticon_has_metadata( # "id" => "12345", # "name" => "Test", # "slug" => "test" # ) # login_as_stub_user # @programme = ProgrammeEdition.create(title: "test", slug: "test"...
--- title: 怎么查看git仓库当前的分支、最后一次commitId、tag等 date: 2020-05-06 18:34:57 layout: post author: "Heropoo" categories: - Git tags: - Git excerpt: "最近想把项目的git仓库版本作为项目版本来使用,就研究了下,做点笔记" --- 最近想把项目的git仓库版本作为项目版本来使用,就研究了下,做点笔记。 ## 查看当前分支名称 ```sh git symbolic-ref --short -q HEAD # 输出 master ``` ## 查看当前最后一次提交的commit_id ...
package factory; import model.Brand; import model.Category; import model.Item; public interface ItemCreator { public Item create(String name, Brand brand, int inStock, float price, Category type); public Item create(String name, String barCode, Brand brand, int inStock, float price, Category type); }
# archlinux-docker Setup [yay](https://github.com/Jguer/yay), [fish](https://fishshell.com), vim, git, etc... ## Run ### Normal ``` docker run -it fox0430/archlinux-docker ``` ### Rust ``` docker run -it fox0430/archlinux-docker:rust ``` [dockerhub](https://hub.docker.com/repository/docker/fox0430/archlinux-docke...
# -*- coding: utf-8 -*- %w[xot rays reflex] .map {|s| File.expand_path "../../../#{s}/lib", __FILE__} .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)} require 'reflex' include Reflex class SliderView < View has_model def initialize () add @back = View.new(name: :back, background: :...
use cotli_helper::crusader::CrusaderName::VeronicaTheAndroidArcher; use cotli_helper::crusader::{Crusader, Tags, ROBOT}; use cotli_helper::gear::GearQuality; use cotli_helper::user_data::*; use support::*; #[test] fn veronica_has_correct_base_dps() { let veronica = default_crusader(VeronicaTheAndroidArcher); l...
#!/usr/bin/env bash # Exit script immediately on first error. set -e # Print commands and their arguments as they are executed. set -x # Install PostgreSQL sudo apt-get install -y postgresql sudo -u postgres createuser --superuser ubuntu sudo -u postgres createdb ubuntu # Install Heroku wget -qO- https://toolbelt.h...
'use strict'; const {join} = require('path'); const createSymlink = require('.'); const {realpath, unlink} = require('graceful-fs'); const runSeries = require('run-series'); const test = require('tape'); test('createSymlink()', t => { t.plan(14); createSymlink('index.js', '.tmp').then(arg => { t.strictEqual...
import { ChangePasswordComponent } from "./change-password/change-password.component"; import { DeleteProfileComponent } from "./delete-profile/delete-profile.component"; import { EditProfileComponent } from "./edit-profile/edit-profile.component"; import { ForgotPasswordComponent } from "./forgot-password/forgot-passw...
object locals[:task] attributes :id, :action attributes :username, :started_at, :ended_at, :state, :result, :progress attributes :input, :output, :humanized
/** * Custom aliases * With our custom paths being required in and using them in out next.config.js file, * we're saved from backstepping imports like '../../../middleware/mongodb', * and can use the needed functionality directly like: import ConnectDB from 'middleware/mongodb'. */ const path = require('path'); c...
import {Point} from './point' import {Polyline} from './polyline' export class PolylinePoint { private _point: Point public get point(): Point { return this._point } public set point(value: Point) { this._point = value } private _next: PolylinePoint = null public get next(): PolylinePoint { r...
package org.simple.clinic.bppassportgen.util import org.approvaltests.Approvals import org.approvaltests.approvers.ApprovalApprover import org.approvaltests.core.ApprovalFailureReporter import org.approvaltests.core.ApprovalReporterWithCleanUp import org.approvaltests.core.ApprovalWriter import org.approvaltests.namer...
package id.ac.polban.jtk.myapplication; import android.content.ContentValues; import android.content.Intent; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import androi...
# pweb_2020.2_jeffersonNascimento Repositório para o componente Programação Web da Licenciatura em Computação e Informática - UFERSA/CMA. Componente responsável por Xico.
/** * Loop through all entries in our user agents object and test everything. * * @see src/useragents.js * @author hannes.diercks@jimdo.com */ var g , ua , p , assert = require('assert') , browser = require('../src/bowser').browser , allUserAgents = require('../src/useragents').useragents /** * Get t...
require 'rails_helper' RSpec.describe 'users/show', type: :view do before(:each) do @user = assign(:user, FactoryGirl.create(:user)) login_as(@user, scope: :user) end it 'shows the profile page' do visit user_path(@user) expect(page).to have_content(@user.name) end it 'expects handed in tim...
package ca.cmpt213.as3.UI.INPUT; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import javax.swing.JLabel; import ca.cmpt213.as3.MazeGame.ValidInput; import javax.swing.*; /** * UserInput class to obtain user input with case statement depending on what input */ public class UserInput { ...
# Description TypeScript API for * [LIGO](https://ligolang.org/) contract compilation. * Interaction with [Flextesa](https://tezos.gitlab.io/flextesa/) sandbox (using docker images). * Pinning files and directories to Pinata IPFS.
package umontreal.ssj.mcqmctools.florian.examples; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import umontreal.ssj.hups.BakerTransformedPointSet; import umontreal.ssj.hups.CachedPointSet; import umontreal.ssj.hups.Faure...
using Sharpen; namespace android.logging.@internal { [Sharpen.NakedStub] public class AndroidConfig { } }
# dicewin (description) * [Installation](#installation) * [Usage](#usage) ## <a name="installation"></a> Installation ## <a name="usage"></a> Usage
use super::char_tree::{CharacterTree, Comparator}; use super::grammars::{ExternalToken, LexicalGrammar, SyntaxGrammar, VariableType}; use super::rules::{Alias, AliasMap, Symbol, SymbolType}; use super::tables::{ AdvanceAction, FieldLocation, GotoAction, LexState, LexTable, ParseAction, ParseTable, ParseTableEnt...
import 'dart:convert'; const String EVENT_NAME = 'EVENT_NAME'; const String SCANNER_STATUS = 'SCANNER_STATUS'; const String SCAN_RESULT = 'SCAN_RESULT'; enum FlutterDataWedgeEvents { scannerStatus, scanResult } class DataWedgeEvent { String? type; DataWedgeEvent(); factory DataWedgeEvent.fromEvent(dynami...
package fr.inrae.metabohub.semantic_web import fr.inrae.metabohub.semantic_web.node.Root import fr.inrae.metabohub.semantic_web.configuration._ import utest.{TestSuite, Tests, test} object SparqlQueryBuilderTest extends TestSuite { def tests = Tests { test("baseQuery empty Root") { assert(SparqlQueryBuil...
/* * 版权所有.(c)2008-2017. 卡尔科技工作室 */ package com.carl.sso.support.captcha.imp.cage; import com.github.cage.Cage; import com.github.cage.GCage; import com.carl.sso.support.captcha.string.StringCaptchaWriter; import javax.imageio.ImageIO; import java.io.IOException; import java.io.OutputStream; /** * http://akiraly...
/* * Copyright 2019 Yassine AZIMANI * * 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 agree...
#include <ros/ros.h> #include <serial/serial.h> #include <std_msgs/String.h> #include <std_msgs/Float64.h> #include <std_msgs/Float32.h> #include <sensor_msgs/JointState.h> #include <vector> #include <string> #include <math.h> #include <numeric> #include <time.h> #include "blue_hardware_drivers/BLDCControllerClient.h"...
# # /etc/profile.d/doaway_aliases.sh # alias runawayroot='runaway root' alias runaway.fast='runaway root file:/var/lib/doaway/hostlist' alias castaway.fast='castaway -l /var/lib/doaway/hostlist' alias putaway.fast='putaway -l /var/lib/doaway/hostlist' alias syncaway.fast='syncaway -l /var/lib/doaway/hostlist' alias...
using System.Windows.Controls; namespace FaceRecognition.Controls { public partial class ResultsFaceRecognitionControl : UserControl { public ResultsFaceRecognitionControl() { InitializeComponent(); } } }
using System.Threading.Tasks; using UnityEngine; namespace Panthea.Editor.Asset { public class ZipAssets: AResPipeline { public override Task Do() { Debug.Log("等待实现"); return Task.CompletedTask; } } }
#!/usr/bin/env ruby frequency = 0 previous_frequencies = [] loop do $stdin.each_line do |line| if previous_frequencies.include?(frequency) puts puts frequency exit 0 end previous_frequencies << frequency frequency += line.to_i end $stdout.print '.' $stdout.flush $stdin.rewi...
# frozen_string_literal: true require 'find' module Webgl class UnityValidator attr_reader :id, :root_path, :loader, :data, :framework, :code def self.from_directory(root_path) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity return null_object unless root_path.present? && ...
package com.foobarust.domain.models.cart /** * Created by kevin on 1/19/21 */ data class UpdateUserCartItem( val cartItemId: String, val amounts: Int )
# Bestillling av varsler gjennom brukernotifikasjon Bruk [BrukernotifikasjonService](BrukernotifikasjonService.java) til og bestille og stoppe brukernotifikajoner async. Kafkameldinger for å Opprete og avlutte brukernotifkajonene produseres av cronjobber i undermodulene. ## brukernotifiaksjon docks: ### Brukernotifi...