text
stringlengths
27
775k
import 'package:json_schema3/json_schema3.dart'; import 'package:test/test.dart'; main() { late JsonSchema testSchema; setUp(() { testSchema = JsonSchema.create({ '\$id': 'root', '\$defs': { 'a': { '\$anchor': 'a_anchor', 'properties': { 'deeper': {'const': '...
import React, { Component } from 'react'; import { Statistic, Row, Col } from 'antd'; import style from './index.less'; import { connect } from 'dva'; import moment from 'moment'; @connect(({ result }) => ({ result })) export default class card extends Component { componentDidMount = () => { const { dispatch } = ...
package mcmultipart.multipart; import java.util.HashMap; import java.util.Map; import java.util.function.Predicate; import org.apache.commons.lang3.tuple.Pair; import com.google.common.base.Preconditions; import mcmultipart.api.addon.IWrappedBlock; import mcmultipart.api.item.ItemBlockMultipart; import mcmultipart....
(and 'fee 'fie 'foe) ;;; Результат: FOE (or nil 'fie 'foe) ;;; Результат: FIE (and (equal 'abc 'abc) 'yes) ;;; Результат: YES (or 'fee 'fie 'foe) ;;; Результат: FEE (and nil 'fie 'foe) ;;; Результат: NIL (or (equal 'abc 'abc) 'yes) ;;; Результат: T
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bunyan = require("bunyan"); const bunyanPretty = require('bunyan-pretty'); const LogDnaBunyan = require('logdna-bunyan').BunyanStream; /** * Creates and initializes the logger object. * * @param serviceName {string} The name of the c...
class CreatorsController < ApplicationController before_action :get_creator, except: [:index, :new, :create] def index @creators = Creator.all @title = "Creators" end def show @models = @creator.models end def edit @creator.links.build if @creator.links.empty? # populate empty link end ...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.Azure.WebJobs.Host.Executors { /// <summary> /// Defines an interface for providing connection strings. ...
M0 to RV32C =========== ## これは何? M0のマシン語をRV32Cに変換する。 ## 使い方 ### コンパイル結果をasm15に変換する まず、Raspberry Pi 上のgccでC言語のプログラムをコンパイルする。 ``` gcc -mthumb -msoft-float -S hoge.c ``` `-mthumb -msoft-float` は、今回対象とする出力をさせるためのおまじないである。 `-S` は、コンパイル結果としてアセンブリ言語のプログラムを出力させる。 最適化する `-O2` などのオプションを加えてもよい。 次に、今回開発したプログラムでコンパイル結果をas...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Pindahabsen extends CI_Controller { public function __construct(){ parent:: __construct(); $this->load->model("PindahabsenModel"); $this->load->model("PegawaiModel"); } public function index() { if($this->cekmenu...
/* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (almaslvl@gmail.com). * See LICENSE for details. */ package com.almasb.fxgl.core.collection /** * A map with where K is an unordered pair (order doesn't matter). * * @author Almas Baimagambetov (almaslvl@gmail.com) */ class Unorder...
using System.Collections.Generic; namespace ET_Tool.Common.Configurations { public class ET_Config { /* * key, pattern/fileName */ public bool AutoDetect { get; set; } public Dictionary<string, string> LookUpInfoSourceUriCollection { get; set; } /* *...
import { Controller, Get, HttpStatus, Param, Post, Query, Req, UseGuards } from '@nestjs/common'; import { ApiOperation, ApiQuery, ApiResponse } from '@nestjs/swagger'; import { limits } from 'argon2'; import { PaginationResponse } from 'src/config/rest/paginationResponse'; import { UserDecorator } from 'src/shared/dec...
import React, { Suspense } from 'react' import { Layout, Col, Row } from 'antd' import styles from './index.scss' import Header from './Header' import SiderBar from './SiderBar' import PageLoading from '@shared/PageLoading' import Footer from './Footer' const BlogLayout: React.FC = ({ children }) => { const sider...
1 7 8 10 21 25 30 34 47 2 5 23 35 36 37 42 46 3 4 20 21 22 26 27 34 36 38 39 42 46 4 2 3 5 23 24 30 34 37 43 47 5 2 9 16 24 31 35 36 45 48 50 6 11 17 18 20 22 31 32 40 45 48 7 1 17 22 24 34 8 7 15 21 24 27 30 41 9 2 5 10 1 3 21 23 42 47 11 7 25 30 31 40 44 45 50 12 15 18 22 25 29 49 13 6 11 18 19 20 28 40 44 50 14 1 4 ...
require 'dependency_injector' require 'set' require_relative 'fate_dice' require_relative 'node_attribute' # TODO: Need to write NodeAttribute collection class; the frequent # use of attributes.detect smells bad. module Diaspora module Cluster module Creator class Node extend DependencyInjector ...
#include "AudioPlay.h" #include "AudioOutput.h" #include <assert.h> #include <SD.h> // https://github.com/Seeed-Studio/SD struct RiffHeader { uint32_t riff; int32_t size; uint32_t type; }; struct FormatChunk { uint32_t id; int32_t size; int16_t format; uint16_t channels; uint32_t samplerate; uint3...
const regexInput = document.querySelector('input'); const textInput = document.querySelector('#text-input'); const textOutput = document.querySelector('#text-output'); //flags const globalFlag = document.querySelector("#flag-global"); const caseInsensitiveFlag = document.querySelector("#flag-case-insensitive"); c...
--- layout: post title: Agents that imagine and plan posturl: https://deepmind.com/blog/agents-imagine-and-plan/ tags: - DeepMind - Research - Agents - Imagination --- {% include post_info_header.md %} <!--more-->{% include post_info_footer.md %}
const axios = require('axios'); const SLACK_ENABLED = process.env.SLACK_ENABLED || false; const SLACK_URL = process.env.SLACK_URL; module.exports = { send: function(title, value, color) { if (!SLACK_ENABLED || !SLACK_URL) { return; } var data = { attachments: [{ ...
#![allow(unused_variables)] use libc; use libc::c_char; use std::mem; use std::ptr; use std::sync::Once; use gdnative_core::core_types::*; use gdnative_core::object::*; use gdnative_core::object::{memory, ownership}; use gdnative_core::private::get_api; use gdnative_core::sys; use gdnative_core::sys::GodotApi; inclu...
import React from "react"; import "./index.scss"; import InputWithBorderEffect from "../utilities/inputs/InputWithBorderEffect"; import RippleButton from "../utilities/buttons/RippleButton"; const Banner = ({ appName, onClick, setSearchTerm }) => ( <div className="banner pt-5 pb-5 d-flex flex-column justify-content-...
columns_to_change = set() for col in telecom_data.select_dtypes(include=['float64']).columns: if((telecom_data[col].fillna(-9999) % 1 == 0).all()): columns_to_change.add(col) print(len(columns_to_change)) columns_to_change.union(set(telecom_data.select_dtypes(include=['int64']).columns)) print(len(column...
drop table if exists empresa; drop table if exists funcionario; drop table if exists lancamento; create table empresa ( id bigint not null, cnpj varchar(255) not null, data_atualizacao datetime not null, data_criacao datetime not null, razao_social varchar(255) not null, ...
(defpackage #:pastelyzer.tests.config.sets (:use #:common-lisp #:2am) (:local-nicknames (#:usr #:pastelyzer.config.user) (#:sets #:pastelyzer.config.sets)) (:export #:tests)) (in-package #:pastelyzer.tests.config.sets) (suite 'tests) (test super-domain-set.1 () (let ((ht (make-hash-table ...
BEGIN; UPDATE auth.authn_keys SET object_type = 1 where object_type = 0; UPDATE management.authn_keys SET object_type = 1 where object_type = 0; COMMIT;
import gravatar from '../../utils/gravatar'; test('Gravatar Functio test', () => { const email = 'hecto932@gmail.com'; const gravatarUrl = 'https://gravatar.com/avatar/c7fbfbcf4ded30f0cd55029f7c43205d'; expect(gravatarUrl).toEqual(gravatar(email)); });
"""Tools to manipulate documentation elements The main purpose of the module: >>> repair_package(PY_FILES_DIRECTORY) # doctest: +SKIP If you have tec (pip install tec) installed, you can even input a module object: >>> import epythet >>> number_of_problems = repair_package(epythet) # doctest: +SKIP ---> This is j...
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Windows.Forms; using DotSpatial.Controls; using NuGet; namespace DotSpatial.Plugins.ExtensionManager { public class Paging { public...
from django import forms from .models import UserProfile class UploadProfilePhoto(forms.ModelForm): class Meta: model = UserProfile fields = ['profile_photo'] class ModifyPwdForm(forms.Form): password1 = forms.CharField(required=True, min_length=5) password2 = forms.CharField(required=Tr...
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'destiny_progression_reward_item_quantity.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** DestinyProgressionRewardItemQuant...
/* eslint-disable @typescript-eslint/no-empty-function */ import { Application } from 'lisk-sdk'; import { RpgModule } from './modules/rpg/rpg_module'; // @ts-expect-error Unsused variable error happens here until at least one module is registered export const registerModules = (app: Application): void => { app.regis...
import 'dart:ui'; class Constants { static final List<Color> colors1 = const [ const Color(0xFFFFFFFF), const Color(0xFF000000), const Color(0xFF3897F1), const Color(0xFF70C04F), const Color(0xFFFDCB5C), const Color(0xFFFC8D33), const Color(0xFFED4A57), const Color(0xFFD1086A), co...
use std::io; use std::io::prelude::*; fn main() -> io::Result<()> { let mut buffer = String::new(); io::stdin().read_to_string(&mut buffer)?; let depths: Vec<_> = buffer .trim() .split('\n') .map(|line| line.parse::<i32>().unwrap()) .collect::<Vec<_>>() .windows(3) ...
<?php namespace App\Entities; use CodeIgniter\Entity; class Paciente extends Entity { protected $attributes = [ 'Nome' => null, 'Sobrenome' => null, 'Data_Nascimento' => null, 'Foto_Paciente' => null, 'Nome_Mae' => null, 'Sobrenome_Mae' => null, 'Cpf' => nu...
import machine import ssd1306 # make the pins D5 and D5 into I2C bus i2c = machine.I2C(scl=machine.Pin(14), sda=machine.Pin(12)) # setup the ssd1306 display on that bus oled = ssd1306.SSD1306_I2C(128, 64, i2c) # you can fit 6 Lines of text # each with 16 characters # the yellow area is 16 pixels tall # the rest is in...
namespace eManager.Web.Migrations { using eManager.Domain; using eManager.Web.App_Start; using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; using System.Web.Security; using WebMatrix.WebData; internal sealed class Configuration : DbMigrat...
package api func init() { Swagger.Add("user_settings", `{ "swagger": "2.0", "info": { "title": "external/user_settings/user_settings.proto", "version": "version not set" }, "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/api/v0/user-settings/{us...
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use super::byte_fraction::ByteFraction; pub const ZERO: Color = Color { red: ByteFraction::zero(), green: ByteFraction::zero(), blue: ByteFrac...
module Topologies # # Given a topology # Returns the edge nodes of that topology. # class EdgeNodesFinder def initialize(topology) @topology = topology end def find_edge_nodes all_topology_nodes.select do |n| n.edges(:out).empty? end end private def all_top...
package com.leocth.redesignedenigma.client.render.model import com.mojang.datafixers.util.Pair as DFPair import net.fabricmc.fabric.api.renderer.v1.RendererAccess import net.fabricmc.fabric.api.renderer.v1.mesh.Mesh import net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel import net.fabricmc.fabric.api.render...
*This text will be italic* _This will be also italic_ **This text will be bold** __This will be bold as well__ _This **can** be **combined** as well_
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} module Yesod.Core.Internal.TH where import Prelude hiding (exp) import Yesod.Core.Handler import Language.Haskell.TH import Language.Haskell.TH.Sy...
namespace Caasiope.Explorer.Database.SQL.Entities { public class account { public byte[] address { get; set; } public long current_ledger_height { get; set; } public bool is_declared { get; set; } } }
import 'package:flutter/material.dart'; import 'package:flutter_shop/pages/detail/detail_content.dart'; import 'package:flutter_shop/viewmodel/detail_view_model.dart'; import 'package:provider/provider.dart'; class DetailPage extends StatelessWidget { final String itemId; const DetailPage({Key key, this.itemId}) :...
package de.codecentric.wittig.scala import scala.concurrent.duration.{Duration, _} import scala.concurrent.{Await, Future} object Implicits { implicit class RichFuture[T](future: Future[T]) { def await(implicit duration: Duration = 10.seconds): T = Await.result(future, duration) } def time[A](a: => A): A = ...
#!/usr/bin/env bash CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh set -e -o pipefail $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test" $CLICKHOUSE_CURL -sS -d 'CREATE TABLE test ENGINE = Memory AS SELECT 1' $CLICKHOUSE_URL_PARAMS $CLICKHOUSE_CLIENT --query="SELECT * FROM test...
package dev.falsehonesty.elementatools open class ElementaToolsGradleExtension { // TODO: Use var targetClasses: List<String> = listOf("club.sk1er.elementa.UIComponent") }
package com.github.bentorfs.ai.ml.ann; import java.util.List; import com.github.bentorfs.ai.common.FunctionLearner; /** * Learns the weights for a perceptron, based on either the perceptron rule or the delta rule (stochastic gradient * descent) (Cfr Mitchell p.92-95). * * @author betorfs */ public class Percep...
# JakeScript [![CI][workflow-ci-badge]][workflow-ci] [![License][license-badge]][license-file] A work-in-progress JavaScript lexer, parser, and interpreter. Written in Rust &#x1F980; for fun and learning. ## Usage ```shell cargo build --release --workspace ./target/release/jakescript-cli --eval ...
using System; using OccurenceArray; using Xunit; namespace occurenceArray.Tests { public class UnitTest1 { [Theory] [InlineData(new int[]{1,1,2,3,1}, 1, 3)] [InlineData(new int[]{1,1,2,3,1}, 2, 1)] [InlineData(new int[]{4,4,4,4,4}, 4, 5)] [InlineD...
<?php namespace Logeecom\Tests\BusinessLogic\ShippingMethod; use Logeecom\Tests\BusinessLogic\Common\BaseTestWithServices; use Packlink\BusinessLogic\Controllers\DTO\ShippingMethodConfiguration; use Packlink\BusinessLogic\ShippingMethod\Models\ShippingMethod; /** * Class ShippingMethodConfigurationTest. * * @pack...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using MonsterLove.StateMachine; public class WrenchToRepair : MonoBehaviour { public float lookRadius = 10f; // Detection range for player private RepairPoint rPoint; public Transform player; public Tr...
/* * Copyright 2016 Midokura SARL * * 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 t...
package co.omisego.omisego.custom.gson /* * OmiseGO * * Created by Phuchit Sirimongkolsathien on 12/5/2018 AD. * Copyright © 2017-2018 OmiseGO. All rights reserved. */ import co.omisego.omisego.constant.enums.OMGEnum import co.omisego.omisego.utils.Either import com.google.gson.JsonDeserializationContext import ...
"""A web app displaying various restaurants and their menus. Usage: flask run """ from flask import ( Flask, flash, jsonify, redirect, render_template, request, url_for, ) from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from models import Base, MenuItem, Resta...
import { fetch } from "@design-sdk/figma-remote"; import { FileResponse } from "@design-sdk/figma-remote-types"; import { FigmaFileStore } from "store/fimga-file-store/figma-file-store"; export class FigmaDesignRepository { constructor( readonly auth: { accessToken: string; personalAccessToken: string } ) {} ...
import komand from .schema import SubscriptionInput, SubscriptionOutput # Custom imports below from google.cloud import pubsub class Subscription(komand.Trigger): message_list = [] def __init__(self): super(self.__class__, self).__init__( name="subscription", description="Su...
#include "string.h" #include <cstring> #include <cassert> #define OVERSIZE_LIMIT 2 #define BUFFER_INCREASE_FORMULA(a) a*2 #define INPUT_BUFFER_SIZE 5 #define EMPTY_STRING_BUFF 10 String::String () { capacity = EMPTY_STRING_BUFF; buff = new char[capacity]; buff[0] = 0; length = 0; } String::String (co...
import type { Plugin } from 'vite'; import { reactSvgTransform, Options } from './transform'; const createPlugin = (userOptions: Options): Plugin => { const options: Options = { useSVGO: false, ...userOptions, }; return { transforms: [reactSvgTransform(options)], }; }; export default createPlugin;...
package cmd import ( "context" "fmt" "os" pb "github.com/odpf/guardian/api/proto/odpf/guardian" "github.com/odpf/guardian/app" "github.com/spf13/cobra" "google.golang.org/protobuf/types/known/structpb" ) func appealsCommand(c *app.CLIConfig) *cobra.Command { cmd := &cobra.Command{ Use: "appeals", Short...
import { Injectable } from "@angular/core"; import { CommonHttpService } from './common-http.service'; import { Country } from '../model/country-model'; @Injectable() export class CountryDetailService { constructor(private httpService: CommonHttpService) { } getCountries() { //const url ...
require 'spec_helper' describe ChatName, models: true do subject { create(:chat_name) } it { is_expected.to belong_to(:service) } it { is_expected.to belong_to(:user) } it { is_expected.to validate_presence_of(:user) } it { is_expected.to validate_presence_of(:service) } it { is_expected.to validate_pres...
/* IMPORT */ import * as _ from "lodash"; import * as chokidar from "chokidar"; import * as JSON5 from "json5"; import * as os from "os"; import * as path from "path"; import * as vscode from "vscode"; import Utils from "./utils/utils"; /* CONFIG */ const Config = { getDefaults() { return { configPath: "...
module Main where import System.Environment (getArgs) import System.Exit (die) import Factorio main :: IO () main = do args <- getArgs (factorioPath, inputFile) <- case args of [x, y] -> return (x, y) _ -> die "Usage: factorio-solve FACTORIO_PATH INPUT_DOT" -- Load dotfile and data gr...
import 'dart:async'; import 'dart:io'; import 'package:dpm/src/exceptions.dart'; import 'package:dpm/src/models/publock.dart'; import 'package:dpm/src/services/publock_loader.dart'; import 'package:dpm/src/utils.dart'; import 'package:pubspec/pubspec.dart'; import 'package:path/path.dart' as path; import 'package:yaml/...
#pragma once namespace Storm { struct GeneralArchiveConfig { public: GeneralArchiveConfig(); public: bool _enabled; bool _strictVersionning; }; }
module Datadog module Profiling module Transport # Profiling response module Response; end end end end
package soup.movie.device import android.graphics.Bitmap import android.net.Uri import java.io.File interface ImageUriProvider { suspend operator fun invoke(url: String): Uri suspend operator fun invoke(file: File): Uri suspend operator fun invoke(bitmap: Bitmap): Uri }
package v3 type WindowsSystemImages struct { // Windows nginx-proxy image NginxProxy string `yaml:"nginx_proxy" json:"nginxProxy,omitempty"` // Kubernetes binaries image KubernetesBinaries string `yaml:"kubernetes_binaries" json:"kubernetesBinaries,omitempty"` // Kubelet pause image KubeletPause string `yaml:"ku...
package bloder.com.blitz import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.View import android.widget.Toast import bloder.com.blitzcore.enableWhen import bloder.com.blitzcore.enableWhenUsing import bloder.com.blitzcore.mask.withMask import kotlinx.android.synthetic.main.activ...
Rails.application.routes.draw do get "/" => "launch#index" get "/index" => "launch#index" get "/launch" => "launch#index" get "/feature" => "launch#feature" get "/blog" => "launch#blog" get "/about" => "launch#about" get "/graph" => "launch#graph" get "/contact" => "launch#contact" get "/sentiment_fet...
(cl:in-package #:sicl-clos) (defmethod default-superclasses ((class class)) '()) (defmethod default-superclasses ((class standard-class)) (list (find-superclass 'standard-object))) (defmethod default-superclasses ((class funcallable-standard-class)) (list (find-superclass 'funcallable-standard-object)))
import { action, makeAutoObservable, observable } from 'mobx' import plansApi from 'renderer/api/plans.api' import JSONCorrect from 'renderer/helpers/JSONCorrect' import { IMonthPlan, IPlan, IPlanSettings } from 'renderer/types/IPlan' class PlansStore { @observable plans: IPlan[] = [] @observable monthPlans: IMon...
require 'spec_helper' module Jei describe Fieldset do describe '.parse' do it 'normalizes fieldset names' do fields = { 'artists' => 'name,albums', 'albums' => 'released_on' } fieldsets = Fieldset.parse(fields) expected = { 'artists' => [:name...
# function bytes_to_unicode() # cs = vcat(collect(('!'):('~')), collect(('¡'):('¬')), collect(('®'):('ÿ'))) # bs = map(Int, cs) # cs = bs[:] # n = 0 # for b in 0:2^8 - 1 # if !(b in bs) # push!(bs, b) # push!(cs, 2^8 + n) # n += 1 # end # end # cs = map(Char, cs) # return Dict(...
# a manual class for importing a file list from an atom feed from Merritt. # Useful so that we can use the ActiveRecord connection for whatever environment to populate it from the atom feed. class ImportFileList def initialize(atom_url: 'https://merritt.cdlib.org/object/recent.atom?collection=ark:/13030/m5q82t8x', ...
class EventRemindersJob < ActiveJob::Base queue_as :default def perform # find all the events that need reminds and send them out # each reminder (sms or email) will be enqued separately events = Event.needs_reminders Event.reminder_logger.info "#{events.size} events need reminders" events.fin...
package com.airahm.dturbineapplist.db.model import android.arch.persistence.room.ColumnInfo import android.arch.persistence.room.Entity import android.arch.persistence.room.PrimaryKey import com.airahm.dturbineapplist.app.AppConstants @Entity(tableName = "${AppConstants.APP_LIST_TABLE_NAME}") data class AppListData(@...
<?php namespace Assely\Menu; use Exception; class MenuException extends Exception { // }
package com.netflix.spinnaker.keel.api.plugins import com.netflix.spinnaker.keel.api.Verification import com.netflix.spinnaker.keel.api.ArtifactInEnvironmentContext import com.netflix.spinnaker.keel.api.action.ActionState /** * A component responsible for performing verification of an [com.netflix.spinnaker.keel.api...
#include <setjmp.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <cmocka.h> #include "how_much.h" static void first_test(void** state) { (void)state; char* result = howmuch(1, 100); assert_string_equal(result, "[[M: 37 B: 5 C: 4][M: 100 B: 14 C: 11]]"); fre...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); include('BaseController.php'); class Investors extends BaseController { private $pageType = 'investors'; public function __construct() { parent::__construct(); if ($this->userInfo['user_type'] == 2) { redirect('or...
import { applySettings, methodString } from 'type-enforcer-ui'; import controlTypes from '../controlTypes'; import Control from './../Control'; /** * Display a span element. * * @class Span * @extends Control * @constructor * * @arg {Object} settings * @arg {String} [settings.text] */ export default class Spa...
import 'dart:convert'; import 'package:dio_cache_interceptor/dio_cache_interceptor.dart'; import 'package:test/test.dart'; void main(String description, CacheStore store) { group(description, () { Future<void> _addFooResponse() { final resp = CacheResponse( key: 'foo', url: 'https://foo.co...
document.addEventListener('DOMContentLoaded', () => { let articleListTitleByCategory = document.querySelectorAll('main details ul li section ul') let displayCategoryList = (articleListContainer, data, category) => { for (let i = 0; i < data.length; i++) { if (data[i].category == category) ...
import { v4 as uuid } from 'uuid'; import * as actions from 'store/actions'; import * as fakeDatabase from './fakeDatabase'; import { delay } from '.'; export const fetchFolders = ( payload: ReturnType<typeof actions.fetchFolders.started>['payload'] ) => delay(500).then(() => { if (Math.random() > 1) { t...
/** @file This file include all the external data types. Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full ...
--- uid: Microsoft.Quantum.Intrinsic.Y title: Y-åtgärd ms.date: 1/23/2021 12:00:00 AM ms.topic: article qsharp.kind: operation qsharp.namespace: Microsoft.Quantum.Intrinsic qsharp.name: Y qsharp.summary: >- Applies the Pauli $Y$ gate. \begin{align} \sigma_y \mathrel{:=} \begin{bmatrix} 0 & -i \\\\ i & 0 \end{bmatr...
# frozen_string_literal: true require 'totoro/version' require 'totoro/config' require 'totoro/base_queue' require 'totoro/base_worker' require 'totoro/utils' require 'totoro/services/enqueue_service' require 'totoro/services/broadcast_service' require 'totoro/services/subscribe_service' require 'totoro/services/resen...
class Foo extends React.Component { componentDidMount() { const root = findDOMNode(this); } render() { return <div />; } }
class Amaze::Algorithm::HuntAndKill < Amaze::Algorithm register :hk def work grid current = grid.random_cell path = [] # visualize while current unvisited_neighbors = current.neighbors.select {|c| c.links.empty? } path << current # visualize ...
require "commandable" class DefaultMethods extend Commandable command 'the default method', :default def default_method(name) "default method called with: #{name}" end command 'does other stuff' def not_a_default_method(name="Cleveland", age) "not a default method, called with: #{name}, #{ag...
import { Container } from '@nextui-org/react'; export const TabPanel = ({ children, ...props }) => { return ( <Container css={{ padding: 0, display: 'flex' }} {...props}> {children} </Container> ); };
topic "Deploying Skylark application"; [2 $$0,0#00000000000000000000000000000000:Default] [l288;i1120;a17;O9;~~~.1408;2 $$1,0#10431211400427159095818037425705:param] [a83;*R6 $$2,5#31310162474203024125188417583966:caption] [H4;b83;*4 $$3,5#07864147445237544204411237157677:title] [i288;O9;C2 $$4,6#4002741442464382318226...
import { reducerFactory } from 'retax'; import { fromJS } from 'immutable'; import * as ACTIONS from 'constants/actions'; function getInitialState() { return fromJS({ value: {}, }); } function updateError(ACTION, state, action) { return state.mergeIn(['value'], { [ACTION]: { viewed: false, ...
import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAwaitsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_awaits = 'def function(): ...' function_async_without_awaits = 'async def function(): ...' ...
# 马原、毛概刷题工具(web version) 马原、毛概刷题工具的web版本 ## 组成 本项目使用的技术主要有: 1. `gin`: go语言的轻量web框架 2. `vue.js`: 构建用户界面的渐进式框架 3. `muse-ui`: 基于`vue2.0`的Material Design UI 组件库 ## 使用 > **注意:自行部署需要把`./front-end/src/components/question.vue`中请求的地址修改为自己的后端地址。** 下载该项目: ```bash git clone https://github.com/jeasonlau/Question-test-web.git...
// <copyright file="ITabConfigurationStorageProvider.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace Microsoft.Teams.Apps.SearchCoach.Providers { using System.Threading.Tasks; using Microsoft.Teams.Apps.SearchCoach.Models.Entity; /// <summary> /// I...
# Rise The idea of the app is to automatically schedule user sleep to meet his wishes for the sleep #### MVP [Rise MVP 1.0 reference](https://www.craft.do/s/a3zWqLyDWTiEKn)
function Int() { return {val:0} } function create_objects(depth) { var i00=Int(); var i01=Int(); var i02=Int(); var i03=Int(); var i04=Int(); var i05=Int(); var i06=Int(); var i07=Int(); var i08=Int(); var i09=Int(); var i10=Int(); var i11=Int(); var i12=Int(); var i13=Int(); var i14=Int(); var ...