text
stringlengths
27
775k
// // PromoModelProtocol.h // IOSSchool // // Created by Arkadiy Tsoy on 19.10.2020. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol PromoModelProtocol <NSObject> @property(nonatomic, strong) NSString* propertyA; - (void)methodA; - (void)methodB; @end NS_ASSUME_NONNULL_END
library global_bottom_navigation_bar; export 'widgets/bottom_navigation_bar.dart'; export 'widgets/bottom_navigation_item.dart'; export 'widgets/scaffold_bottom_navigation.dart'; export 'widgets/tab_item.dart';
#include "../EventClass.h" #include "../ParamClass.h" #include <cstddef> #include <cstdlib> #include <iostream> #include <TFile.h> #include <TTree.h> using namespace std; void Generate (Long_t events) { Long_t r; //srand (0); // Open file and create tree TFile* file = new TFile ("tree1.root", "RECREAT...
<?php namespace Skraeda\AutoMapper\Support\Facades; use Illuminate\Support\Facades\Facade as IlluminateFacade; use Skraeda\AutoMapper\Contracts\AutoMapperContract; /** * AutoMapper facade. * * @author Gunnar Örn Baldursson <gunnar@sjukraskra.is> * @method static mixed map(array|object $source, string|object $tar...
- src/app/controllers/AppointmentController.js ```js import * as Yup from 'yup'; import { startOfHour, parseISO, isBefore } from 'date-fns'; import User from '../models/User'; import Appointment from '../models/Appointment'; import File from '../models/File'; class AppointmentController { async index(req, res) { ...
import { customFormField } from './custom-form-field'; export function formField( type: string ): (target: any, propertyKey: string) => void { return (target: any, propertyKey: string) => customFormField(type, target, propertyKey); }
import { NextApiRequest, NextApiResponse, GetServerSidePropsContext } from "next"; import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from "http"; import { DeepPartial } from "utility-types"; import { XOR } from "./helpers"; export type NonPagesResolverContext = { req?: IncomingMessage; res?: Ser...
import 'package:flutter/material.dart'; import '../stylish_dialog.dart'; const _sizeK = 48.0; // ignore: must_be_immutable class StylishDialogUI extends StatefulWidget { StylishDialogUI({ Key? key, required this.context, required this.alertType, this.animationLoop, this.titleText, this.conte...
package store import ( "context" "time" "github.com/reiot777/spansqlx" ) type Range struct { Limit int32 Offset int32 } type Account struct { ID string Owner string Email string CreatedAt time.Time UpdatedAt time.Time } type AccountQuery struct { Owner *string Email *string Range *Rang...
@php $showDescription ??= false; @endphp <article> <div class="flex items-center"> <div class="relative flex-shrink-0 mr-4"> <x-image class="w-24 h-24 overflow-hidden rounded-full" :lqip="$person->present()->imageLqip()" :src="$person->present...
/* * Copyright 2021 Tadashi G. Takaoka * * 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 agr...
'use strict' var $table_login = $('input[value="登录"]').closest('table') var $button_login = $('<a role="button" class="pure-button" \ style="padding: 70px;">登录</a>') .attr('href', $table_login.find('a:eq(1)').attr('href')) $table_login.after($button_login) $table_login.closest('tr').attr('align', 'center') $table_log...
'use strict'; import AliMail from './ali-mail'; import { containHtml } from './utils'; class Config { aliAppId: string; aliSecret: string; senderName?: string; senderEmail?: string; emailTitle?: string; aliMailTimeout?: number; } class SendMailConfig { senderAddress: string; senderName: string; toA...
package net.timafe.angkor import net.timafe.angkor.config.SecurityConfig import net.timafe.angkor.domain.dto.UserSummary import net.timafe.angkor.domain.enums.AuthScope import net.timafe.angkor.domain.enums.EntityType import net.timafe.angkor.domain.enums.LinkMediaType import net.timafe.angkor.service.LinkService impo...
require 'spec_helper' RSpec.describe Elasticband::Query::ScoreFunction do describe '#to_h' do subject { described_class.new.to_h } it { is_expected.to be_a(Hash) } it { is_expected.to be_empty } end end
use std::sync; use spin; use parking_lot; struct Foo { mu1: sync::Arc<sync::Mutex<i32>>, rw1: sync::RwLock<i32>, mu2: parking_lot::Mutex<i32>, rw2: parking_lot::RwLock<i32>, mu3: spin::Mutex<i32>, rw3: spin::RwLock<i32>, } impl Foo { fn new() -> Self { Self { mu1: sync:...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; class ExampleController extends Controller { public function add($num1, $num2) { if (is_numeric($num1) && is_numeric($num2)) { return $num1+$num2; } else { ...
# Privacy Policy ## Personal information This application will access any file or folder on your device. These are used only in the application, and does not collect or publish any personal information. ## Error information This application sends error information for debugging at crash. Personal information is not...
/* Copyright (C) 2004 Versant Inc. http://www.db4o.com */ using System; using System.Collections; using Sharpen.Lang; using Db4objects.Db4o; namespace Db4objects.Db4o.Config { /// <exclude /> public class TDictionary : IObjectTranslator { public void OnActivate(IObjectContainer objectContainer, obj...
<html> <body> Welcome <?php echo $_POST["name"]; ?><br> Your email address is: <?php echo $_POST["mobile"]; ?> <?php include '../db/connection.php'; include '../utils/logs.php'; $query = file_get_contents("../db/sqlQueries/insertNewRegistration.sql"); wh_log($query); echo $query; $conn = OpenCon(); $stmt = $conn->p...
// // WMBroadcastViewDelegate.h // WowzaMedl // // Created by Hugo Nagano on 10/28/16. // Copyright © 2016 Hugo Nagano. All rights reserved. // #import "WowzaGoCoder.h" @protocol WMBroadcastViewDelegate <NSObject> -(void)didStartBroacast; -(void)didFailToStartBroadcast:(NSError *)error; -(void)broadcastStatusDid...
/* 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 not ...
[![PyPI](https://img.shields.io/pypi/pyversions/Django.svg)]() Characterstic ----------------------------------- * Using Word2Vec+CNN to detect the Malicious URL and it's a really exquisite structure! * Finially result about 96.2% precision * High scalability supporting for Distributed System * Supporting f...
using Microsoft.EntityFrameworkCore; using ProEventos.Domain; namespace ProEventos.Persistence.Context { /// <summary> /// Responsible to convert the LINQ queries to DB queries. /// Stores all the DbSet objects for the tables of the DB /// </summary> public class ProEventosContext : DbContext {...
-- Verify forum:1-rename-parent-forum-col on pg BEGIN; SELECT parent_forum_id from forums WHERE FALSE; ROLLBACK;
import { Button as uuiButton, ButtonProps } from '@epam/uui-components'; import { withMods } from '@epam/uui-core'; import { ControlSize, FillStyle } from '../types'; import { systemIcons } from '../../icons/icons'; import * as css from './Button.scss'; import * as styles from '../../assets/styles/colorvars/buttons/but...
/******************************************************************************* * Created 2017,2019 by Jonny Rimkus <jonny@rimkus.it>. * Hope you like it :) * * Contributors: * Jonny Rimkus - initial API and implementation *******************************************************************************/ /***/...
# 调度器运行 调度器作是内核和用户共享的.调度器会被编译成elf可执行文件.同时映射在了内核和用户空间中. 内核和用户通过jp addr形式调用其中函数. 后续:vDSO形式提供给用户程序.当前rust语言针对riscv平台缺乏动态链接的支持.现在目前这部分还未和linux中的一致. 可能的办法:手动写stub函数... # 调度器在内核态(启用内核页表隔离机制 kpti) 某一时刻,系统中,进程,线程,协程的状态. 一个内核进程(内核本身) 多个常驻内核态的内核协程(均由调度器接口创建) 多个用户进程(由内核提供的接口创建),每个用户进程下包含多个用户线程(由调度器接口创建),每个...
require 'rails_helper' describe Parsers::Xml::Cv::Importers::EnrollmentParser do let(:subject) { Parsers::Xml::Cv::Importers::EnrollmentParser.new(xml) } context "valid verified_policy" do let(:xml) { File.read(Rails.root.join("spec", "test_data", "importer_payloads", "policy.xml")) } context "get_enroll...
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings #-} module Network.IRC.Bot.Commands where import Control.Applicative import Control.Monad import Data.ByteString (ByteString) import qualified Data.ByteString as B import Data.Data import Data.Monoid ((<>)) import Network.IRC (Message(Message, msg_prefix, msg_command,...
/* * Licensed to the Fabio Iwakoshi under one or more contributor license agreements. The ASF licenses * this file to You 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/licen...
# 这个脚本演示如何通过PowerShell管理Office 365应用程序 # 作者:陈希章 《Office 365 开发入门指南》第二版 于 2019-2-9 # 准备工作,请通过单独打开一个Powershell窗口,并用管理员方式打开 # Install-Module -Name AzureAD # 连接到Azure AD Connect-AzureAD # 连接到国内版Azure AD Connect-AzureAD -AzureEnvironmentName AzureChinaCloud # 获取所有的应用程序列表 Get-AzureADApplication # 获取某个应用程序的详细信息 Get-Azur...
import 'package:dartz/dartz.dart'; import 'package:dio/dio.dart'; import 'package:flutter_credo/core/constant/string_constants.dart'; import 'package:flutter_credo/core/errors/credo_exceptions.dart'; import 'package:flutter_credo/core/network/http_service_requester.dart'; import 'package:flutter_credo/core/utils/util....
package exam.arena; import exam.characters.ComicCharacter; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; /** * Created by IntelliJ IDEA. * User: LAPD * Date: 8.7.2018 г. * Time: 09:53 ч. */ public class ArenaImpl implements Arena { priv...
angular.module('bingo') .controller('BingoController', ['$scope', '$http', '$interval', function ($scope, $http, $interval) { var label_AP_START = 'Start Auto-Play'; var label_AP_STOP = 'Stop Auto-Play'; var autoPlayTimer = undefined; var autoPlay = 0; var bingoApi = 'http://localhost:8001/bin...
# frozen_string_literal: true module Agents class BaseController < ApplicationController def sub_layout "agents" end end end
#include "database.h" int main(int argc, char * argv[]) { srand(time(0)); ifstream input("data.txt"); ofstream output("report.txt"); Database D; int ID = 0, choice = -1; double sales = 0; string f_name, l_name; while(input >> ID >> sales >> f_name >> l_name){ D.insert(ID, sales, f_name, l_name); ...
package xyz.bcheng.bitcoinser import java.nio.ByteBuffer // TODO: This is pretty rough, rethink this trait Field[A] { // getLength must return a length (int). If no read is necessary, // the Field should return its configured length without reading. // If getLength is called on a buffer whose length has already...
// Type definitions for react-wait 0.3 // Project: https://github.com/f/react-wait#readme // Definitions by: Ifiok Jr. <https://github.com/ifiokjr> // Paweł Maciejewski <https://github.com/pwlmaciejewski> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 impo...
# PaperTrader 基于A股的回测账户类 ## 致谢 quantaxis qifiaccount 鸭神 ## 解决痛点 1. 当前的回测框架大多没有t+n的配置,在回测层面缺少约束 2. 除权除息数据大多采用复权的方式进行回测,本程序采用计算除权复权时候的账户变化来描述真实的账户变更 3. qifiaccount的文档缺失太多,而且与mongodb和页面的耦合程度较高,本着极简主义的思想,把耦合的部分用python实现,因此本程序的最佳实践是jupyter ## example 参考 回测-除权除息.ipynb ## FINAL 欢迎大家提bug!!!
package dotty.tools.dotc.transform import dotty.tools.dotc.ast.tpd import dotty.tools.dotc.core.Contexts._ import dotty.tools.dotc.core.Flags._ import dotty.tools.dotc.core.Symbols.Symbol import dotty.tools.dotc.transform.MegaPhase.MiniPhase import dotty.tools.dotc.transform.SymUtils._ import scala.collection.mutable...
sentry_dsn = Rails.configuration.sentry_dsn if sentry_dsn require 'raven' Raven.configure do |config| config.processors -= [Raven::Processor::PostData] config.dsn = sentry_dsn end else # (Rails logger is not initialized yet) STDOUT.puts '[WARN] Sentry DSN is not set (SENTRY_DSN)' end
#include <sleip/dynamic_array.hpp> #include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include <boost/core/lightweight_test.hpp> namespace ipc = boost::interprocess; #ifdef BOOST_NO_EXCEPTIONS #include <iostream> #include <exception> namespace boost { vo...
import { Component, Input } from '@angular/core'; import { FormGroup, AbstractControl, FormControl, Validators } from '@angular/forms'; @Component({ selector: 'ach-information', templateUrl: './ach_information.component.html' }) export class AchInformationComponent { @Input("parentForm") public parentForm: For...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TypeOperators #-} module Controllers.Todo ( viewItem, updateItem, removeItem ) where import Control.Monad.IO.Class import Data.Aeson hiding (Success) import Data.List.Safe ((!!)) import Data.Validation import ...
#!/usr/bin/perl use strict; use warnings; # two randomly generated DNA sequences my $DNA1 = 'TCGCGTAAGATGCAGGCTGTGTAGCATGCCCGG'; my $DNA2 = 'AAATAACGTTCCGGTCAACTTGTTA'; print "The original fragments are as follows: \n\n"; print $DNA1,"\n"; print $DNA2,"\n\n"; # Concatenate the strings using string interpolation my...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Окт 25 2017 г., 22:49 -- Версия сервера: 5.5.53 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
[Music] you I need to tell you all a story last year a woman by the name of Jordan Bella Meyer was sexually assaulted in virtual reality she was playing a video game with the system comprised of a headset which she could use to look around and a motion controller in each hand which he could use to reach out and intera...
import numpy from .propertiesdata import PropertiesData # -------------------------------------------------------------------- # See cfdm.core.mixin.container.__docstring_substitution__ for {{...}} # docstring substitutions # -------------------------------------------------------------------- class PropertiesData...
class HorizontalSliderClass extends elementorModules.frontend.handlers.Base { getDefaultSettings() { return { selectors: { swiperContainer:'.twae-horizontal.swiper-container', nextButton: '.twae-button-next', prevButton: '.twae-button-prev', pagi...
package typingsSlinky.colorConvert.anon import typingsSlinky.colorConvert.conversionsMod.HCG_ import typingsSlinky.colorConvert.conversionsMod.HSL_ import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName...
# glommio [![CircleCI](https://circleci.com/gh/DataDog/glommio.svg?style=svg)](https://circleci.com/gh/DataDog/glommio) ## Join our Zulip community! If you are interested in Glommio consider joining our [Zulip](https://glommio.zulipchat.com) community. Come tell us about exciting applications you are building, ask f...
<?php return [ 'about_us' => 'About Us', 'terms_and_conditions' => 'Terms & Conditions', 'privacy_policy' => 'Privacy Policy', ];
package org.alien4cloud.tosca.editor.processors.workflow; import org.alien4cloud.tosca.editor.EditionContextManager; import org.alien4cloud.tosca.editor.operations.workflow.SwapStepOperation; import org.alien4cloud.tosca.model.Csar; import org.alien4cloud.tosca.model.templates.Topology; import org.alien4cloud.tosca.mo...
self.addEventListener("install", function (e) { e.waitUntil( fetch("/cache_manifest.json") .then(function (response) { return response.json(); }) .then(function (cacheManifest) { var cacheName = "cache:static:" + cacheManifest.version; var all = Object.values(cacheManifes...
import { initializeApp } from 'firebase/app'; import { getFirestore } from 'firebase/firestore'; import { getAuth, GoogleAuthProvider } from 'firebase/auth'; import config from './config'; // svelte-balls // import config from './config'; // collisions export const fireapp = initializeApp(config); export const auth ...
mod bigwig_sys; use bigwig_sys::*; use std::ffi::{CStr, CString}; use std::os::unix::ffi::OsStrExt; use std::path::Path; pub struct BigWigFile(*mut bigWigFile_t); impl Drop for BigWigFile { fn drop(&mut self) { unsafe { bwClose(self.0); } } } pub struct BigWigInterval { pub b...
import React from "react"; export default function Button({ className, href, text }) { return ( <button type="button" className={className}> <a href={href} target="_blank" className="text-reset text-decoration-none" rel="noopener noreferrer" > {text} </a>...
<?php isset($_SESSION['pcode'])?$pcodeArr=$_SESSION['pcode']:$pcodeArr=""; ?> <!--latest-products--> <div class="single-sidebar products-list mt-35"> <div class="section-title mb-30"> <h3>Latest Items</h3> </div> <div class="one-carousel dots-none"> <div> <ul class="list-none"> <?php echo getRecentList($p...
"use strict" import {create} from 'domain'; import {LogWatcher} from "./log-watcher"; (function main() { /***/ console.log('run app main()'); let serverDomain = create(); serverDomain.on('error', (err) => { console.log(`serverDomain: Ошибка: ${err.name}\nсообщение: ${err.messa...
namespace Masa.Contrib.Dispatcher.Events.Tests.EventHandlers; public class ChangePasswordEventHandler : ISagaEventHandler<ChangePasswordEvent> { private readonly ILogger<ChangePasswordEventHandler>? _logger; public ChangePasswordEventHandler(ILogger<ChangePasswordEventHandler>? logger=null) => _logger = logger...
<?php declare(strict_types=1); namespace App\Controllers; use Contributte\ApiRouter\ApiRoute; use Nette\Application\IResponse; use Nette\Application\Request; use Nette\Application\Responses\TextResponse; /** * API for ping/pong * * @ApiRoute( * "/api/ping", * methods={ * "GET"="run" * }, * presenter="...
#include <cstdio> #include <algorithm> #include <iostream> #include <cmath> #include <vector> #include <limits.h> #include <stack> #include <queue> #include <iomanip> #include <list> #include <set> #include <deque> #include <bitset> #include <map> #include <assert.h> #include <utility> #include <string.h> #include <cst...
#include "car.h" #include <string> #include <vector> #include <cmath> Car::Car(int charge) { speed = 0; gear = 0; wipers = 0; num_passengers = 0; battery_level = charge; rpm = 0; on = false; head_lights = false; interior_lights = false; locked = true; current_loc = {0, 0}; }...
# δεκτός, ή, όν . <!-- Status: S2=NeedsFinalCheck --> <!-- Lexica used for edits: BDAG, NIDNTTE --> ## Word data * Strongs: G11840. * Alternate spellings: * Principle Parts: * Part of speech: [Noun substantive_adj](http://ugg.readthedocs.io/en/latest/noun_substantive_adj.html), [Noun predicate_adj](http://ugg...
require 'kratos/version' require 'kratos/generators/app_generator' require 'kratos/actions' require 'kratos/app_builder'
package env import ( "fmt" "os" "strconv" "strings" "github.com/joho/godotenv" "github.com/rs/zerolog/log" ) const appPrefix = "PUREST_" const dbPrefix = appPrefix + "DB_" const dbDriver = dbPrefix + "DRIVER" const dbURL = dbPrefix + "URL" const dbUser = dbPrefix + "USER" const dbSchema = dbPrefix + "SCHEMA" ...
package org.batfish.grammar.vyos; import org.antlr.v4.runtime.ParserRuleContext; import org.batfish.grammar.BatfishCombinedParser; import org.batfish.grammar.GrammarSettings; public class VyosCombinedParser extends BatfishCombinedParser<VyosParser, VyosLexer> { public VyosCombinedParser(String input, GrammarSettin...
// tslint:disable:no-console // @ts-ignore import eBayApi from '../../src'; const eBay = eBayApi.fromEnv(); eBay.finding.findItemsAdvanced({ itemFilter: [{ name: 'Seller', value: 'hendt_de' }] }).then(result => { console.log(JSON.stringify(result, null, 2)); }).catch(e => { console.log(e); })
package filestore import ( "encoding/json" "errors" "os" "sync" "golang.org/x/oauth2" ) // Store is a TokenSource and also can Save a token type Store interface { oauth2.TokenSource Save(*oauth2.Token) error } // MemStore implements `Store` interface saves token in memory type MemStore struct { token *oauth...
import {TestBed} from '@angular/core/testing'; import {STORAGE_ROOT_NODE, StorageTreeDataSourceService} from './storage-tree-data-source.service'; import {StorageService} from 'projects/storage/src/lib/storage.service'; import {storageServiceSpy} from 'projects/storage/src/lib/storage.service.spec'; import {StorageNod...
const RuleTester = require('eslint').RuleTester; const rule = require('../src/rules/noKebabCaseProps').default; const parserOptions = { ecmaVersion: 2018, sourceType: 'module', ecmaFeatures: { jsx: true, }, }; describe('rules', () => { const ruleTester = new RuleTester({ parserOptions }); ruleTester.r...
RSpec.describe(MB::Sound::GraphNode::ProcNode) do describe '#initialize' do it 'can include extra source nodes' do a = 1.constant.named('A') b = 2.constant.named('B') pn = MB::Sound::GraphNode::ProcNode.new(a, [b]) do |v| v end expect(pn.find_by_name('A')).to equal(a) ...
use std::cmp::{min}; use std::collections::HashMap; pub fn solve_floor() { let data = include_str!("../resources/5-1.txt"); let (seat_rows, seat_cols) = get_seats(data); let max_id = seat_rows .iter() .zip(seat_cols) .map(|(row, col)| row * 8 + col) .max() .unwrap(...
<?php use App\Http\Controllers\Question\QuestionController; Route::get('admin/questions',[QuestionController::class,'viewAllQuestion']); Route::get('admin/add-student',[QuestionController::class,'studentInsertView']);
import 'package:calculadora/Infra/CustomIcons.dart'; import 'package:flutter/material.dart'; import '../Calculadora.dart'; class DrawerLayout extends StatelessWidget { final String selected; const DrawerLayout({Key key, this.selected}) : super(key: key); @override Widget build(BuildContext context) { re...
package finnhub import ( "encoding/json" "net/url" "strconv" "time" ) type Candle struct { CurrentPrice []float64 `json:"c"` LowPrice []float32 `json:"l"` HighPrice []float32 `json:"h"` OpenPrice []float32 `json:"o"` Volume []float32 `json:"v"` Timestamps []int64 `json:"t"` Status ...
/** * Copyright 2015-2016 The OpenZipkin Authors * * 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 ...
desc 'Manage templates within your account' command :templates do |c| # templates/list (string apikey, struct types, struct filters) c.desc 'Retrieve various templates available in the system' c.command :list do |s| s.action do |global,options,args| @output.standard @mailchimp_cached.templates_list ...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE TemplateHaskell #-} module Benchmarks.Data.Schemas ( module Benchmarks.Data.Schemas , module Benchmarks.Data.Schemas.TH ) where import Control.Monad (forM) import Data.Char (chr, toUpper) import Language.Haskell.TH import Language.Haskell.TH.Syntax (lift) import Language....
import 'package:flutter/material.dart'; import 'package:auto_size_text/auto_size_text.dart'; class CustomAppBar extends StatelessWidget { final TabController tabController; static const TextStyle style = TextStyle(fontSize: 18); const CustomAppBar({key, required this.tabController}) : super(key: key); @over...
package fakes import gcpcompute "google.golang.org/api/compute/v1" type SslCertificatesClient struct { ListSslCertificatesCall struct { CallCount int Returns struct { Output []*gcpcompute.SslCertificate Error error } } DeleteSslCertificateCall struct { CallCount int Receives struct { SslCer...
# frozen_string_literal: true require "#{ROOT_DIR}/lib/framework/cli/cli_launcher" describe CliLauncher do subject(:cli_launcher) { CliLauncher.new(args) } let(:args) { [] } describe '#validate_options' do it 'calls Facter::OptionsValidator.validate' do allow(Facter::OptionsValidator).to receive(:va...
@testset "778.swim-in-rising-water.jl" begin @test swim_in_water([[0,2],[1,3]]) == 3 @test swim_in_water([[0,1,2,3,4],[24,23,22,21,5],[12,13,14,15,16],[11,17,18,19,20],[10,9,8,7,6]]) == 16 end
-- file:join.sql ln:1796 expect:true update xx1 set x2 = f1 from (select * from int4_tbl where f1 = x1) ss
# frozen_string_literal: true Rails.application.routes.draw do mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql' if Rails.env.development? post '/graphql', to: 'graphql#execute' scope '/.well-known/', module: 'well_known' do get 'jwks.json', to: 'jwks#show', as: 'jwks' end scope ...
module Moneybird::Resource class Workflow include Moneybird::Resource extend Moneybird::Resource::ClassMethods has_attributes %i( id administration_id type name default currency language active prices_are_incl_tax created_at updated_at ...
import scala.{specialized => spec} class C1[@spec(Int, AnyRef) A, @spec(Int, AnyRef) B](v:A, w:B) class C2[@spec(Unit, Boolean, Byte, Char, Short, Int, Long, Float, Double, AnyRef) A, @spec(Unit, Boolean, Byte, Char, Short, Int, Long, Float, Double, AnyRef) B](v:A, w:B) object Test { def main(args:Array[String]): ...
# Научно-исследовательская работа ## Исследование совместимости диалектов SQL для решения задачи по конвертации запросов СУБД MySQL в PostgreSQL Сборка рпз: - используется шаблон [отсюда](https://github.com/latex-g7-32/latex-g7-32); - для сборки нужно установить зависимости и выполнить следующие действия ``` из корнев...
/* NED Toolkit - SYNCnet Event Handling Copyright � 1990-91 by New England Digital Corp. All rights reserved. This library handles getting events from DAWN. The function get_dawn_event() sets the passed event to the waiting NED_EVENT and returns TRUE if there is a DAWN event available. The function dawn_han...
module ActionDispatch::Routing class Mapper # Includes mount_sextant method for routes. This method is responsible to # generate all needed routes for sextant def mount_sextant namespace :rails do resources :routes, :only => [:index, :show] end end end end
package me.lauriichan.school.compile.project.template.hamster; import java.io.File; import me.lauriichan.school.compile.project.template.HamsterTemplate; import me.lauriichan.school.compile.util.file.java.JavaFileBuilder; public final class HamsterEmpty extends HamsterTemplate { public HamsterEmpty() { ...
CREATE TABLE `ruler` ( `Name` TEXT COLLATE NOCASE, `Number` TEXT, `Title` TEXT COLLATE NOCASE, `Portrait` TEXT, `House` TEXT COLLATE NOCASE, `Country` TEXT COLLATE NOCASE, `Era` TEXT COLLATE NOCASE, `DtBirth` TEXT, `DtDeath` TEXT, `DeathCircumstances` TEXT, `ReignStartDt` TEXT, `ReignEndDt` TEXT, `Descript...
## 模型贴地漫游 ### 示例功能 &ensp;&ensp;&ensp;&ensp;此功能用于在三维场景中添加模型跟随地形动态运动显示效果。 ### 示例实现: &ensp;&ensp;&ensp;&ensp;本示例需要使用 【include-cesium-local.js】 开发库实现,通过 Cesium 三维球控件 `Cesium.WebSceneControl()` 的 `cruiseModelGround()` 方法创建模型贴地漫游,通过 `startCruiseModel()` 方法开始模型漫游,通过 `stopCruiseModel()` 方法暂停模型漫游, 通过 `clearCruiseModel()` 方法...
import CheckInRedirect from "./templates/CheckInRedirect.vue" import ContactComponent from "./templates/Contact.vue" import ContactListComponent from "./templates/ContactList.vue" import DashboardComponent from "./templates/Dashboard.vue" import FacilityComponent from "./templates/Facility.vue" import FacilityEditCompo...
const {execFileSync} = require('child_process'); const utcVersion = require('utc-version'); module.exports = (prefix = '') => { const today = prefix + utcVersion({ short: true }); const tagExists = execFileSync('git', ['tag', '-l', today], { encoding: 'utf8' }); if (!tagExists) { return today; } // Ret...
import { commands, window, ViewColumn } from 'vscode' import { promptKeys } from '../utils' import { EditorPanel, EditorContext } from '../webview/panel' import { Commands, Global, KeyDetector } from '../core' import { ExtensionModule } from '../modules' import { LocaleTreeItem } from '../views' import i18n from '../i1...
--- title: Every Presentation Ever author: Greg Wilson permalink: /2013/02/every-presentation-ever/ categories: - Noticed ---
package com.mathbot.pay.ws import com.github.dwickern.macros.NameOf.nameOf import com.mathbot.pay.bitcoin.{BtcAddress, CallbackURL, Satoshi, TxId} import com.mathbot.pay.json.PlayJsonSupport import play.api.libs.json._ case class WsBtcDebitRequest(btcAddress: BtcAddress, amount: Satoshi, callbackURL: CallbackURL, id:...
using IdentityGuard.Core.Factories; using IdentityGuard.Core.Mappers; using System.Threading.Tasks; namespace IdentityGuard.Core.Services { public class DirectoryObjectService { private readonly IGraphClientFactory _graphClientFactory; private readonly DirectoryObjectMapper _directoryObjectMap...