text
stringlengths
27
775k
use bevy::prelude::*; #[derive(Component)] pub struct DeckContainer; #[derive(Component)] pub struct CardInDeck(pub usize); pub fn create_container(parent: &mut ChildBuilder) { parent .spawn_bundle(NodeBundle { style: Style { justify_content: JustifyContent::Center, ...
package com.jn.kikukt.utils import android.app.Activity import androidx.annotation.ColorRes import androidx.core.content.ContextCompat import com.jn.kikukt.R import com.jn.kikukt.common.utils.statusbar.setColorNoTranslucent import org.greenrobot.eventbus.EventBus /** * Author:Stevie.Chen Time:2019/9/11 * Class Comm...
#!/bin/bash # 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"); y...
require "sinatra" require 'json' get '/login/:id/:password' do |id, password| content_type :json if id == "1" && password == '1234' { success: true }.to_json else { success: false }.to_json end end
<?php namespace App; use Chumper\Zipper\Facades\Zipper; use Illuminate\Support\Facades\Storage; class BinderPackage { var $storage_path; public function generate(Binder $binder) { $this->storage_path = 'public/packages/binders/' . $binder->id; // Delete old package Storage::del...
#!/bin/bash ## ## Copyright (c) 2019-2021, ETH Zurich. All rights reserved. ## ## Please, refer to the LICENSE file in the root directory. ## SPDX-License-Identifier: BSD-3-Clause ## while true; do echo "use mysql;" | mysql -u root # continue if succesful if [ "$?" == 0 ]; then break fi sleep 1 ...
package goyave import ( "fmt" "net/http" "strings" "goyave.dev/goyave/v3/validation" ) // Route stores information for matching and serving. type Route struct { name string uri string methods []string parent *Router handler Handler validationRules *validation...
object Form1: TForm1 Left = 0 Top = 0 Caption = 'CL.mORMot REST test' ClientHeight = 469 ClientWidth = 1174 Color = clBtnFace Constraints.MinHeight = 205 Constraints.MinWidth = 815 Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] ...
--- uid: crmscript_ref_NSContact_SetDirectPhone title: SetDirectPhone(String directPhone) intellisense: NSContact.SetDirectPhone keywords: NSContact, GetDirectPhone so.topic: reference --- # SetDirectPhone(String directPhone) The contacts phone **Parameter:** - **directPhone** String ```crmscript NSContact thing;...
package no.group3.springQuiz.quiz.api import io.swagger.annotations.Api import io.swagger.annotations.ApiOperation import io.swagger.annotations.ApiParam import io.swagger.annotations.ApiResponse import no.group3.springQuiz.quiz.model.dto.* import no.group3.springQuiz.quiz.model.entity.Question import no.group3.spring...
export const ROUTER = { user: '/user', login: '/user/login', register: '/user/register', home: '/', forgotPassword: '/user/forgot-password', memberPrice: '/', createNewQuiz: '/', takeQuiz: '/', takeExam: '/', helpCenter: '/', };
import config from '../node_modules/esri-leaflet/profiles/base.js'; config.input = 'src/EsriLeafletRelated.js'; config.output.name = 'L.esri.Related'; config.output.sourcemap = true; export default config;
module PricingRules # fully discounts one of items for each x items, # where x is the quantity defined in rule item class BuyXGetOneFree < BaseRule private def calculate_items(items) rule_item = find_rule_item(items.first.code) return items unless rule_item eligible_qty = eligible_item...
import type { Font } from '@/hooks/use-font/lib/types' export const SETTINGS = { defaultFont: <Font>'open-sans', // change CSS roots in "source/styles/_variables.scss" if you change this value }
"use strict"; var spApplication = spApplication || {}; spApplication.options = {}; /** * Установки модального окна задачи */ spApplication.options.task = { element: "#modal-task", height: 470, width: 600, title: "Редактирование задачи", server_addr: "edit-task" }; /** * Установки мо...
package com.github.j5ik2o.plantuml.application import com.github.j5ik2o.plantuml.domain.classDiagram.{ Fields, Methods, Package, Type, Types } import com.github.j5ik2o.plantuml.domain._ class PlantUmlBuilder(content: String = "") { import PlantUmlBuilder._ private val sb = new StringBuilder(content) private ...
using System; namespace HostInvoker.HostOperations { class DownloadFileOperation : HostOperation { protected override void Run() { Console.WriteLine("File has been downloaded"); } } }
package com.epicknife.modules.tcplistener; import java.io.InputStream; import java.io.OutputStream; /** * @author Samuel "MrOverkill" Meyers * License : BSD * Date of Creation : 01 / 23 / 2015 */ public class MetaHandler { public MetaHandler() { } public void readMeta(InputStream in...
var assert = require('assert'); var Headers = require('../headers'); var Parser = require('../parser'); var h = Headers({ 'Content-Type': 'text/plain', 'Content-Length': 7 }); var normal = h.toString(); assert.equal(normal.split('\r\n').length, 4); assert.equal(normal.indexOf('\r\n\r\n'), normal.length-4); va...
### operator #### explain - 使用迭代器进行编程有时需要为简单表达式创建小函数。有时,这些可以作为lambda函数实现,但对于某些操作,根本不需要新函数。该operator模块定义了与算术,比较和与标准对象API相对应的其他操作的内置操作相对应的函数。
import {Instruction, RuntimeContext} from '../Types'; export default (instruction: Instruction, context: RuntimeContext): void => { context.next++; };
#include <Windows.h> #include <iostream> #include <string> #include <fstream> #include <sstream> #include <memory> #include <unordered_set> #include <future> // The following was inspired by XtremePrime's vlc-title-grabber, be sure // to check him out https://github.com/XtremePrime/ // NOTE: // This prog...
import {Component, OnInit, ElementRef, Renderer, Self} from '@angular/core'; import {NgModel, NgClass} from '@angular/common'; import {Pagination} from './pagination.component'; const pagerConfig = { itemsPerPage: 10, previousText: '« Previous', nextText: 'Next »', align: true }; const PAGER_TEMPLATE...
--+ holdcas on; --alter_table_change_type_strict --change the type of a numeric column to bigint create class coo( col1 numeric(13), col2 numeric(19), col3 numeric(19), col4 numeric(22), col5 numeric(23), col6 numeric(13, 3), col7 numeric(25, 4), col8 num...
using System; using System.Collections.Generic; using System.Linq; using LHGames.Helper; using LHGames.Navigation; using LHGames.Navigation.Pathfinding; namespace LHGames.Bot.Behaviours { public class MiningBehaviour : Behaviour { public MiningBehaviour(BehaviourExecuter executer) : base(executer) ...
@extends('master') @section('content') <div class="container"> <h1> {{trans('models.depots.singular')}} {{$depot->number}} @include('depots.partials.show-buttons') </h1> <h2> Administrado por <a href="{{route('users.show', $depot->owner->nam...
if (Test-Path 'dist') { Get-ChildItem 'dist' | Remove-Item -Recurse -Force } # npm install -g @po-ui/theme-cli -f Write-Host 'Building solution...' -ForegroundColor Yellow npm run build cp .\README.md .\dist\ cd .\dist Write-Host 'Publishing NPM package...' -ForegroundColor Yellow npm publish Write-Host "`r`Do...
#!/usr/bin/env python #################### # Required Modules # #################### # Generic/Built-in import os from pathlib import Path # Libs # Custom ################## # Configurations # ################## SRC_DIR = Path(__file__).parent.absolute() API_VERSION = "0.2.0" #################################...
package generators import crypto.EncryptedValue import models._ import org.scalacheck.Arbitrary.arbitrary import org.scalacheck.{Arbitrary, Gen} import java.time.LocalDate trait Generators { implicit lazy val arbitrarySalesChannels: Arbitrary[SalesChannels] = Arbitrary { Gen.oneOf(SalesChannels.values) ...
#!/bin/sh rm $0 "./trabalho" echo " ------------------ (program exited with code: $?)" echo "Press return to continue" #to be more compatible with shells like dash dummy_var="" read dummy_var
 using System; namespace ManagedLua.Environment.Types { /// <summary> /// Description of VMCommand. /// </summary> public enum VMCommand { CO_CREATE, CO_RESUME, CO_YIELD, CO_RUNNING, PCALL, ERROR } }
<?php namespace App\Http\Controllers\AdminControllers; use App\Http\Controllers\Controller; use App\Models\Admin\DoctorFaq; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Validator; class DoctorFaqController exten...
"""Standard experiments for ICRA 2021""" from milp_sim.risk.classes.child_mespp import MyInputs2 from milp_sim.risk.src import base_fun as bf, risk_sim as sr def specs_basic(): """Set specs that won't change""" # initialize default inputs specs = MyInputs2() # ------------------------ # graph num...
<?php namespace App\Http\Controllers\Cad; use App\Http\Controllers\Controller; use App\Http\Requests\Cad\PessoaTelefoneRequest; use App\Http\Resources\Cad\PessoaTelefoneColletionResource; use App\Http\Resources\Cad\PessoaTelefoneResource; use App\Models\Cad\Pessoa; use App\Models\Cad\PessoaTelefone; use Illuminate\Ht...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Pays extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pays', function (Blueprint $t...
-- *CA APPROVALS -- *Specified as primary user -- *Specified as secondary user -- -- Usage: /* select * from udf_GetEditAccessOrdersForLogin('bazemore') */ -- ============================================= CREATE FUNCTION udf_GetEditAccessRecentOrdersForLogin ( -- Add the parameters for the function here @LoginId...
import { unwrapNodesByType } from 'common/transforms'; import { ListType } from 'elements/list/types'; import { Editor } from 'slate'; export const unwrapList = ( editor: Editor, { typeUl = ListType.UL, typeOl = ListType.OL, typeLi = ListType.LI, }: { typeUl?: string; typeOl?: string; typeLi?: string...
const knex = require('../../db'); var fs = require('fs'); const EthUtil=require('ethereumjs-util'); async function getAllRequests(email) { let xfiles= await knex('requests').select().where('recipient',email) .orderBy('fileId', 'desc') ; return xfiles; } async function getAllSentRequests(id) { let xfiles= a...
#!/usr/bin/env bash set -ex docker network create web touch /opt/traefik/acme.json chmod 600 /opt/traefik/acme.json
@extends("auth.plantillaLogForm") @section("htmlheader_title") Notas Meritos @endsection @section("infoGeneral") <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="card mt-5"> <!---cabeza--> <div class="card-header text-white"> ...
# running convert makes Rake to create all File tasks for Thumbs desc 'convert to thumbs' task :convert => THUMBS file "final.png" => THUMBS do sh "convert #{THUMBS} -append final.png" end desc 'merge thumbs to one' task :merge => "final.png"
import 'dart:convert'; import 'package:test/test.dart'; import '../../lib/src/errors/ApplicationException.dart'; //import '../../lib/src/data/StringValueMap.dart'; void main() { group('ApplicationException', () { ApplicationException _appEx; Exception _ex; var Category = 'category'; var...
#!/bin/sh docker run --user 4000 \ --security-opt=no-new-privileges \ --cap-drop ALL \ --read-only \ --tmpfs /tmp \ --volume "$(pwd)"/www:/var/www/localhost/htdocs \ --publish 80:1337 funcgi:"$1"
l = @latexify dummyfunc(x; y=1, z=3) = x^2/y + z @test l == raw"$\mathrm{dummyfunc}\left( x; y = 1, z = 3 \right) = \frac{x^{2}}{y} + z$" @test_throws UndefVarError dummyfunc(1.) l2 = @latexrun dummyfunc2(x; y=1, z=3) = x^2/y + z @test l2 == raw"$\mathrm{dummyfunc2}\left( x; y = 1, z = 3 \right) = \frac{x^{2}}{y} + ...
namespace FORCEBuild.Net.RPC.Interface { /// <summary> /// 服务工厂,远程客户端调用以创建服务 /// </summary> public interface IServiceFactory { T CreateService<T>(); } }
class CreateAssignmentQuestionnaires < ActiveRecord::Migration def self.up begin drop_table :assignments_questionnaires rescue end create_table :assignment_questionnaires do |t| t.column :assignment_id, :integer, :null => true t.column :questionnaire_id, :integer, :null => t...
class WatchList::DSL::Context::Monitor class Keyword < HTTP def result [:KeywordType, :KeywordValue].each do |key| raise %!Monitor `#{@monitor_name}`: "#{key.to_s.downcase}" is required! unless @result[key] end super end def keywordtype(value) if value.kind_of?(Integer) ...
#pragma once // Header file for neighGraphPipe class - see neighGraphPipe.cpp for descriptions #include <map> #include "basePipe.hpp" template<typename nodeType> class neighGraphPipe : public basePipe<nodeType> { private: double epsilon; int dim; public: neighGraphPipe(); void runPipe(pipePacket<nod...
class AdminMailer < ApplicationMailer include SettingsHelper def new_user(user) @user = user mail to: admin_auth_email, subject: "[#{competition_name}] New User" end end
docker service create --name demo-app --network demo-app-net \ --publish 80:80 \ --constraint 'node.hostname == swarm-mgr' \ demo-app-img
part of 'mocktail.dart'; /// {@template real_call} /// A real invocation on a mock. /// {@endtemplate} class RealCall { /// {@macro real_call} RealCall(this.mock, this.invocation) : timeStamp = _timer.now(); /// The mock instance. final Mock mock; /// The invocation. final Invocation invocation; /// W...
/* * Copyright 2021 The Android Open Source Project * * 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 applica...
export type OutgoingMessage = | PortInformationRequestOutgoingMessage | PortModeInformationRequestOutgoingMessage | PortInputFormatSetupOutgoingMessage | PortOutputCommandOutgoingMessage; /** * https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#port-information-request */ export interface Port...
# stdx-dev – the missing development batteries of Rust New to Rust development and don't know how to improve your development? stdx-dev [has the best tools](#about-stdx-dev). First, you're going to want to write Rust code using your favorite editor or IDE, whether that's [emacs], [vi] or [sublime text], [Eclipse] or ...
module Data.Format.NetCDF.LowLevel.Variable( module Data.Format.NetCDF.LowLevel.Variable.Internal ) where import Data.Format.NetCDF.LowLevel.Variable.Internal hiding (mkSomeNCVariable)
const uuid = require('uuid'); module.exports.createData = { taskId: uuid.v1(), datePosted: Date.now(), status: "Incomplete", task: "My task." } module.exports.updateData = { datePosted: Date.now(), status: "Complete", task: "My task. Has been finished!" }
const fs = require('fs'); const pathToHTML = './build/index.html'; if (!fs.existsSync(pathToHTML)) { throw new Error("index.html file doesn't exist"); } const fontsPrefix = '/static/media/'; const pathToFonts = './build' + fontsPrefix; if (!fs.existsSync(pathToFonts)) { throw new Error("Fonts directory doesn't exi...
// Copyright 2018, Goomba project Authors. All rights reserved. // // 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 u...
package sdk.guru.common; import io.reactivex.annotations.Nullable; public class Optional<T> { private final T optional; public Optional() { this(null); } public Optional(@Nullable T optional) { this.optional = optional; } public boolean isEmpty() { return this.option...
using System; namespace Interface1 { interface IinterfaceOne { //string stringFieldOne = "stringFieldOne"; //public string stringPropertyOne { get; set; } = "stringPropertyOne"; //public string stringPropertyOne { get; set; } //IinterfaceOne() { } //void MethodOne() ...
package io.github.erikjhordanrey.cleanarchitecture.ui; import io.github.erikjhordanrey.cleanarchitecture.RxAndroidRule; import io.github.erikjhordanrey.cleanarchitecture.domain.usecase.GetTeamsUseCase; import io.github.erikjhordanrey.cleanarchitecture.fake.FakeTeamLocalAPI; import io.github.erikjhordanrey.cleanarchite...
package def import ( "masterserver/data" "masterserver/database" "masterserver/server" "share/rpc" "github.com/jmoiron/sqlx" ) var ServerConfig = &Config{} var ServerSettings = &Settings{} var RPCHandler = &rpc.Server{} var LoginDatabase = &sqlx.DB{} var ServerManager = &server.ServerManager{} var DatabaseManag...
from IMLearn.utils import split_train_test from IMLearn.learners.regressors import LinearRegression from typing import NoReturn import numpy as np import pandas as pd import plotly.graph_objects as go import plotly.express as px import plotly.io as pio pio.templates.default = "simple_white" def load_data(filename: ...
module Bitcoin module Message # Base message class class Base include Bitcoin::HexConverter include Bitcoin::Util extend Bitcoin::Util # generate message header (binary format) # https://bitcoin.org/en/developer-reference#message-headers def to_pkt payload = to_pa...
model-import-export =================== Imports and Exports django model to excel and csv Requirement ----------- python >= 3 Django 1.11.5, >= 2.11 Installation ------------ pip install model-import-export Usage ----- **Creating resources** In your `example_app/resources.py` ```python from model_import_expor...
package ao.httpstatuscode.romavicdosanjoskc.ui import android.os.Bundle import android.util.Log import android.view.View import android.widget.ProgressBar import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.core.widget.ContentLoadingProgressBar import androidx.recyclerview.widge...
// Sample Text var Datamatrix = require('./lib/datamatrix').Datamatrix; var dm = new Datamatrix(); var ascii = dm.getDigit('http://tualo.de',false); console.log(ascii);
WITH store_sales AS (SELECT * FROM deltas3."$path$"."s3://tpc-datasets/tpcds_1000_dat_delta/store_sales" ), date_dim AS (SELECT * FROM deltas3."$path$"."s3://tpc-datasets/tpcds_1000_dat_delta/date_dim" ) SELECT * FROM store_sales JOIN date_dim ON ss_sold_date_sk = d_date_sk WHERE d_year=1998 AND d_moy=7 AND d_d...
package com.senior.cyber.sftps.web.gson; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import org.bouncycastle.openssl.PEMParser; import org.bouncycastle.openssl.jcajce.JcaPEMWriter; import org.bouncycastle.pkcs.PKCS10CertificationRequest; impo...
package io.horrorshow.soulhub.ui.views; import com.vaadin.flow.component.html.Div; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.router.*; import io.horrorshow.soulhub.ui.MainLayout; import io.horrorshow.soulhub.ui.UIConst; import io.horrorshow.soulhub.ui.components.SOULPatchRea...
<?php declare(strict_types=1); namespace Phpcq\Runner\Repository; use Composer\Semver\Constraint\Constraint; use Composer\Semver\VersionParser; use Generator; use Phpcq\Runner\Exception\PluginVersionNotFoundException; use Phpcq\Runner\Exception\ToolVersionNotFoundException; use Phpcq\Runner\Platform\PlatformRequirem...
/** * Creates fixed period which does not depend on time instance. * * @param {number} quantity number of fixed intervals. * @param {number} duration length of s fixed interval in milliseconds. * @constructor * @class Represents general period. * @extends Period */ FixedPeriod = function(quantity, dura...
const Koa = require('koa') const Router = require('koa-router') const Session = require('koa-session') const fs = require('fs') const path = require('path') const jwt = require('jsonwebtoken') const app = new Koa() const testRouter = new Router() // 创建session配置 const session = Session({ 'key': 'sessionid', m...
package moe.pizza.eveapi.endpoints import moe.pizza.eveapi.ApiRequest import moe.pizza.eveapi.generated.map import org.http4s.client.Client import scalaz.concurrent.Task class Map(baseurl: String)(implicit c: Client) { def Sovereignty(): Task[Seq[map.Sovereignty.Row]] = { new ApiRequest[map.Sovereignty.Eveapi]...
package com.socrata.eurybates object SessionMode { sealed trait SessionMode case object Transacted extends SessionMode case object None extends SessionMode }
/** * Convenient helper code for applications that use Dalma engine. */ package dalma.helpers;
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimal-ui"> <title>SSA INFRA - User Forget Password</title> <meta content="Admin Dashboard" name="description...
package com.ijinshan.sjk.config; public class AppConfig { public static final int BATCH_SIZE = 30; public static final int BATCH_SIZE_OF_TRANC = BATCH_SIZE * 10; private String tmpFullDir = "/data/appsdata/sjk-market/tmp/"; private String tmpUploadDir = "/data/apps/static-web/sjk/app/market/tmp/img/"...
# frozen_string_literal: true require 'rails_helper' RSpec.describe Complexity, type: :model do subject do described_class.new(level: "high", reason: "Lorem ipsum") end it 'validates the presence of level, reason' do expect(subject).to be_valid :level expect(subject).to be_v...
using System; using System.Globalization; using System.Windows.Data; using System.Windows.Markup; namespace SLStudio.Core.Menus { public class MenuItemConverter : MarkupExtension, IValueConverter { private static MenuItemConverter instance; public override object ProvideValue(IServiceProvider...
// Defining the Supplier Map Login table module.exports = (sequelize, DataTypes) => { const SupplierMapLogin = sequelize.define( 'supplier_map_login', { login_email: { type: DataTypes.STRING, allowNull: false }, supplier_number: { type: DataTypes.INTEGER, allo...
pip install -r requirements.txt git clone https://www.github.com/nvidia/apex && cd apex && rm -rf build && python setup.py install --cuda_ext --cpp_ext
## A simple GO program example for kubernetes using minikube #### NOTE: This doesn't work as it exists today, things are clearly missing :)
export const IMAGES = { truckIcon: require("./assests/images/icons/truck-icon.svg"), sofaIcon: require("./assests/images/icons/sofa-icon.svg"), treeIcon: require("./assests/images/icons/tree-icon.svg"), customer1: require("assests/images/customers/customer-1.jpg"), customer2: require("assests/images/custome...
import asyncio import asyncssh from datetime import datetime from riegocloud.db import get_db from logging import getLogger _log = getLogger(__name__) _instance = None def get_ssh(): global _instance return _instance def setup_ssh(app, options=None, db=None): global _instance ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class C_Home extends CI_Controller { function __construct() { parent::__construct(); // Load url helper $this->load->helper('url'); } public function index() { $data['judul'] = 'Ruang Guru'; $this...
require 'rails_helper' describe InterventionsChartsService do let(:ics) { InterventionsChartsService.new([], 0) } describe "#by_city" do subject { ics.by_city } it { expect(subject.options[:title][:text]).to match(/ville/) } it { expect(subject.series_data.size).to eq 1 } end describe "#by_veh...
# -*- encoding : utf-8 -*- FactoryGirl.define do # factory :user do # # end # # factory :debt do # # end end
import React from 'react' import X from '.' import { shallow } from 'enzyme' describe('Component xxx', () => { it('render the X', () => { const result = shallow(<X />).contains(<p>X</p>) expect(result).toBeTruthy() }) })
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ddt import data, ddt from django.test import TransactionTestCase from django.urls import reverse from django.utils import timezone from freezegun import freeze_time from mock_django import mock_signal_receiver from rest_framework import status, test ...
// Type definitions for convert-excel-to-json 1.7 // Project: https://github.com/DiegoZoracKy/convert-excel-to-json // Definitions by: UNIDY2002 <https://github.com/UNIDY2002> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> interface SheetConfig { header?: { rows:...
import React, { Component, CSSProperties } from 'react' export interface IDialogProps { open?: boolean style?: CSSProperties className?: string top?: boolean left?: boolean right?: boolean bottom?: boolean } export class Dialog extends Component<IDialogProps, any> { constructor(props: IDialogProps) { ...
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE ScopedTypeVariables #-} module Apie.Diff.GParseJSON ( genericParseDiff ) where import RIO hiding (to) import qual...
# frozen_string_literal: true class User include Mongoid::Document include Mongoidable::Document devise :database_authenticatable field :encrypted_password, type: String, default: "" field :name, type: String field :ids, type: Array belongs_to :parent1, class_name: "Parent1", optional: true belongs_...
<?php namespace apiend\modules\v1\actions\order; use apiend\models\Response; use apiend\modules\v1\actions\BaseAction; use common\models\order\OrderGoodsScenePage; use common\models\User; use common\utils\PoseUtil; use Yii; use yii\db\Exception; /** * 保存用户上传到场景的图片 * * @author Administrator */ class SaveSceneUser...
#!/bin/bash ./gradlew clean build bintrayUpload -PbintrayUser=${BINTRAY_USER} -PbintrayKey=${BINTRAY_KEY} -PdryRun=false
using System; #pragma warning disable 660 // 'Point' defines operator == or operator != but does not override Object.Equals(object o) #pragma warning disable 661 // 'Point' defines operator == or operator != but does not override Object.GetHashCode() namespace Structs { public struct Point { public static readon...
package com.netflix.spinnaker.keel.events import com.netflix.spinnaker.keel.api.Environment import com.netflix.spinnaker.keel.api.NotificationFrequency import com.netflix.spinnaker.keel.api.constraints.ConstraintState import com.netflix.spinnaker.keel.api.constraints.ConstraintStatus.OVERRIDE_PASS import com.netflix.s...
using System; namespace DnsBits { /// <summary> /// Base exceptions for BnsBits project. /// </summary> public class DnsBitsException : Exception { public DnsBitsException() : base() { } public DnsBitsException(string message) : base(message) { } public DnsBitsExc...
import 'package:flutter/material.dart'; import 'package:natbank/screens/login/new_account_form.dart'; import 'login_button.dart'; import 'login_input_field.dart'; /** * TODO: autenticar no web service e usar o token como sessão do cliente */ class Login extends StatelessWidget { final TextEditingController _user...