text
stringlengths
27
775k
# React + Mobx boilerplate ## main packages: ``` react v16.3 mobx react router v4 sass(scss) superagent webpack ``` ## Babel root import ``` import { Service } from '!/services'; import { Store } from '!/stores'; import { Input } from '!/uikit'; ``` ### Run example ``` yarn yarn start ``` ### Build ``` yarn buil...
import type { ICoordinates } from "../../Core/Interfaces"; import type { IDrawStroke } from "./Options/Interfaces/IDrawStroke"; import { colorToRgb, getDistances, getStyleFromRgb } from "../../Utils"; import type { ISvgPath } from "./Interfaces/ISvgPath"; import type { SvgAbsoluteCoordinatesTypes, SvgRelativeCoordinate...
--- draft: false title: "[BOJ 1913] 달팽이" date: "2021-08-17 16:28:03" #path: "/posts/boj-1913/" category: "BOJ" description: "" tags: - PS - Algorithm - Python - BOJ toc: true --- 문제 출처 : `https://www.acmicpc.net/problem/1913` ## 풀이 홀수인 N 이 주어지므로, 시작점인 1의 위치는 항상 ($N \over 2$, $N \over 2$) 이다. (0-indexed 배열의 경...
// // (C) Copyright 2020 Intel Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
--- layout: leetcode date: 2016-07-13 title: Binary Tree Postorder Traversal tags: [Tree, Stack] --- * Contents {:toc #toc_of_keans_blog} ## Question > Given a binary tree, return the postorder traversal of its nodes' values. > >For example: > >Given binary tree `{1,#,2,3}`, > > 1 > \ > 2 > ...
package org.brewcode.qa.pages.element import com.codeborne.selenide.ElementsCollection import com.codeborne.selenide.ElementsContainer import org.brewcode.qa.pages.annotation.NotInit import org.brewcode.qa.pages.element.BlocksDelegate.Companion.wrap /** * Collection of [Block] * * Use [self] to access source selen...
import 'package:memo/domain/enums/memo_difficulty.dart'; import 'package:memo/domain/models/memo_execution.dart'; import 'package:meta/meta.dart'; /// Defines the user preferences /// /// Through [MemoExecutionsMetadata], this class also includes properties that describes all application-wide `Memo`s /// executions. @...
#ifndef NOISE #define NOISE #include <time.h> #include <stdlib.h> #include <cmath> #include <iostream> class noise{ public: noise(); static float lerp(float a, float b, float t); static float lerp(float c00, float c10, float c01, float c11, float tx, float ty); inline float noise2D(float x, float y, float f...
 namespace Research.Web.Models.Users { public partial class AccountActivationModel : BaseResearchModel { public string Result { get; set; } } }
<?php namespace YYY\FetchApi\Pay\MyInterface; /** * 通用错误接口 * */ interface InterfaceApi { public function fetch(); // 抓取。 public function is_valid():bool; // 校验抓取结果是否正确。 public function init(); // 初始化对象 // 实际中,为了使用方便,这个接口不确定返回值,由每个实现类自己处理。 public function get(); }
#![no_std] extern crate alloc; use alloc::vec::Vec; #[derive(Debug, PartialEq, Clone)] pub enum SuperError { /// When an item being parsed by [SuperItem] is empty, this is ignored by /// [Parse] implementation for the [SuperValue] parsing EmptyItem, } pub trait Parse<'a>: Sized { fn parse(input: &'a ...
#Hapi.js Walkthrough #=================== Different topics/modules/plugins around hapi.js, all at once. # justanotherHapiwalkthru
require 'test_helper' class NavigationTest < ActionDispatch::IntegrationTest test 'can access mixitup.js' do get '/assets/mixitup.js' assert_response :success end test 'mixitup has proper version' do get '/assets/mixitup.js' assert_match(/MixItUp v3\.3\.1/, @response.body) end end
package Dev.JahidHasanCo.calculator import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.Editable import androidx.appcompat.app.AppCompatDelegate import androidx.core.content.ContextCompat import kotlinx.android.synthetic.main.activity_main.* import org.mariuszgromada.math.mxpar...
using System; using System.Collections.Generic; using System.Text; namespace Akeraiotitasoft.DatabaseExecutor { public interface IDatabaseReader : IDisposable { List<T> ReadList<T>() where T : class, new(); } }
export enum ViewTypes { CARD, TABLE, DETAIL }
# JAX Scipy modules This module hosts some JAX ports of useful scipy functions still missing from the main JAX repo.
import * as React from "react"; import { _SERVICE } from "../../../declarations/dataResearch/dataResearch.did"; import { Button, Text } from "@adobe/react-spectrum"; import ImageProfile from "@spectrum-icons/workflow/ImageProfile"; import { useHistory } from "react-router-dom"; function Home() { const history = useH...
mod animation_state; mod beatmap; mod beatpoint; mod direction; mod falling_object; mod gameplay_command; mod gameplay_result; mod gameplay_status; mod hit_result; mod player; mod result_entities; mod rotating_object; pub use self::animation_state::*; pub use self::beatmap::*; pub use self::beatpoint::*; pub use self:...
function formatPrice(price) { return `$${Number(price.toFixed(2))}.00` } module.exports = {formatPrice}
#ifndef HARDWARE_H #define HARDWARE_H #include <msp430.h> #include <legacymsp430.h> #include <iomacros.h> //PINS //PORT1 #define TX BIT1 //PORT2 #define RX BIT2 #define LED BIT1 //Port Output Register 'P1OUT, P2OUT': #define P1OUT_INIT TX //Init Output data o...
using Fit.Data; using Microsoft.AspNetCore.Mvc; using System.Linq; namespace Fit.Web.Controllers { public class FacultyController : Controller { private DataContext context; public FacultyController(DataContext context) { this.context = context; } ...
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render }); function preload() { game.load.image('background','assets/tests/debug-grid-1920x1920.png'); game.load.image('player','assets/sprites/phaser-dude.png'); } var player; ...
#!/usr/bin/env bash # Copyright 2019 Google LLC # # 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...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
import { ComponentFixture, async, TestBed } from '@angular/core/testing'; import { AddressBookPageLayoutModule } from './address-book-page-layout.module'; import { AddressBookPageLayoutComponent } from './address-book-page-layout.component'; import { StoreModule } from '@ngrx/store'; import { GlobalMessageService } fro...
import '../block.dart'; import '../block.builder.dart'; abstract class DynamicMultiChildBlock<OUTPUT extends Object> extends Block<OUTPUT> { const DynamicMultiChildBlock(); Iterable<BlockBuilder<OUTPUT>> get childBuilders; }
package training.nuttyyokel.builders; public class WebPathBuilder { private String path; private int port; public WebPathBuilder(int port) { this.port = port; } public WebPathBuilder base() { path = "http://localhost:" + port + "/api/"; return this; } public WebPathBuilder tree() { p...
# SVG Overview - SVG is a technology for describing two dimensional vector graphics - Uses an extension of XML - SVG stands for Scalable Vector Graphics - SVG is platform independent - Understood by most browsers # Vector Graphics Overview - Vector graphics are based on mathematical expressions - The same ...
// Test that nullable types can be represented via unions. class Bar class Foo { val x: String|Null = null val y: Array[String]|Null = null val b: Null|Bar = null def foo(p: Bar|Null): String|Null = null foo(null) foo(b) }
#!/bin/bash # Author: Ashkan Rafiee iter=0 uiter=0 while true; do for domain in `cat domains.txt` do whois $domain | egrep -q \ '^No match|^NOT FOUND|^Not fo|AVAILABLE|^No Data Fou|has not been regi|No entri' if [ $? -eq 0 ]; then let "iter += 1" let "uter += 1" echo ...
/* * Copyright (c) 2020 Giorgio Antonioli * * 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 ...
package com.aptopayments.mobile.extension import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test import org.threeten.bp.ZoneOffset private const val MILLIS = 1586429406736L private const val YEAR = 2020 private const val MONTH = 4 private const val DAY = 9 private const val HOUR = 10 ...
## 5/27/2016: v1.0 ## functions to run cmdStan compileModel <- function(model, stanDir = stanDir) { modelName <- basename(model) dir.create(model) file.copy(paste(model, "stan", sep = "."), file.path(model, paste(modelName, "stan", sep = ".")), overwrite = TRUE) model <- file.path(mode...
import matplotlib.pyplot as plt import numpy as np X = [] Y = [] Y2 = [] X2 = [] f=open('all150','r') split=f.read().split('\n') i=1 j=0 while i<len(split)-2: #print i #j+=1 nv=float(split[i].split()[3]) i+=1 ns=float(split[i].split()[3]) X.append(ns) i+=1 ta=float(split[i].split()[6]) ...
package com.opencredo.demo.hateoas.api; import static java.util.Arrays.asList; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.equalTo; import static com.jayway.restassured.RestAssured.*; import static org.junit.Assert.*; import java.util.List; import org.apache.http.HttpStat...
#!/bin/bash cp -f /etc/nginx/default.nginx.conf /etc/nginx/nginx.conf config="" while IFS='=' read -r name value do if [[ $name == 'HOST_'* ]] then host="${!name}" input_host=$(echo $host | awk -F ">" '{print $1}') output_host=$(echo $host | awk -F ">" '{print $2}') input_port=$(echo $input_host ...
<?php namespace App\Http\Controllers; use App\Models\User; use App\Repositories\Criteria\Users\UserCriTest; use App\Repositories\Criteria\Users\UserCriTest2; use App\Repositories\UserRepository; use Illuminate\Support\Facades\Response; class UserController extends Controller { /** * @var UserRepository ...
using Raid.Toolkit.Extensibility; using Raid.Toolkit.Extensibility.DataServices; namespace Raid.Toolkit.Extension { public class DataSpec<T> where T : class { private readonly string Key; public DataSpec(string key) { Key = key; } public T Get(CachedDataStora...
class TagsController < ApplicationController def index render json: build_index_response end private def build_index_response if params[:select_q].present? q = "%#{params[:select_q]}%" w = "name ilike ?" Tag.where(w, q).limit(20).as_json only: :id, methods: :text end end end
// // XJMulitFuctionView.h // XJTemplateProject // // Created by 江鑫 on 2018/8/21. // Copyright © 2018年 XJ. All rights reserved. // #import <UIKit/UIKit.h> #define topViewHeight 40 //最上方位置,权限选择高度 #define containerHeight 49 //选项的高度 #define showSumHeight (topViewHeight+containerHeight) typedef NS_ENUM(NSInteger,p...
export type Cell = { value: number; isVisible: boolean; isMarked: boolean } export type Field = Cell[][] export type Preset = { minesAmount: number fieldSize: number } export type State = { activePresset: keyof State['presets'] isGameOver: boolean presets: { easy: Preset; medium: Preset; hard: Preset } f...
export default function showHelp() { console.error(); console.error('Usage: qonverte [input_format] [to <output_format>]'); console.error(); console.error('qonverte open this help screen'); console.error('qonverte -ls list available formats'); console.error(); }
package com.haishinkit.rtmp.messages import com.haishinkit.rtmp.RTMPConnection import java.nio.ByteBuffer internal open class RTMPAudioMessage : RTMPMessage(RTMPMessage.Type.AUDIO) { var codec: Byte = 0 var soundRate: Byte = 0 var soundSize: Byte = 0 var soundType: Byte = 0 var payload: ByteBuffer...
package HPC::Mpi::Affinity; use Moose::Role; use MooseX::Types::Moose 'Str'; use namespace::autoclean; use experimental 'signatures'; has 'pin' => ( is => 'rw', traits => ['Chained'], predicate => '_has_pin', clearer => '_unset_pin', ); has 'map' => ( is => 'rw', ...
#pragma once #include "../version/version.cc" #ifdef INDEX_Cpp20 #define INDEX_Consteval consteval #else #define INDEX_Consteval constexpr #endif
package com.lly835.bestpay.config; import java.util.Objects; /** * Created by this on 2019/9/8 16:31 */ public class AliPayConfig extends PayConfig { /** * appId */ public String appId; /** * 商户私钥 */ public String privateKey; /** * 支付宝公钥 */ public String aliPayP...
import { DateProvider } from './DateProvider'; class RealTimeDateProvider implements DateProvider { currentDate(): Date { return new Date(); } } export { RealTimeDateProvider };
//! Deserialize values from environment variables. use std::fmt; use serde::de::{Error as _, IntoDeserializer}; pub(crate) fn deserialize<'de, T: serde::Deserialize<'de>>( value: Option<String>, ) -> Result<T, DeError> { let mut deserializer = Deserializer { value }; T::deserialize(&mut deserializer) } ...
--- layout: default title: Rust Platform Support &middot; The Rust Programming Language --- # Rust Platform Support The Rust compiler runs on, and compiles to, a great number of platforms, though not all platforms are equally supported. Rust's support levels are organized into three tiers, each with a different set o...
using MyTasks.TODO.Models; using Newtonsoft.Json; using PropertyChanged; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Reflection; using System.Threading.Tasks; namespace MyTasks.TODO.ViewModels { [AddINotifyPropertyChangedInterface] public...
This repository contains all my documents that might be useful. All files in current repository are licensed using the license described in file "LICENSE.md" (in root dir).
%-*-Mode:erlang;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*- % ex: set ft=erlang fenc=utf-8 sts=4 ts=4 sw=4 et nomod: %%% %%%------------------------------------------------------------------------ %%% @doc %%% ==CloudI Write Ahead Logging (WAL)== %%% File storage for transaction logging done by clo...
require 'acts_as_shopping_cart/version' require 'active_record/acts/shopping_cart' require 'active_record/acts/shopping_cart_item' require 'acts_as_shopping_cart/schema' module ActiveRecord module Acts module ShoppingCart autoload :Collection , 'active_record/acts/shopping_cart/collection' autoload :...
# package imports import dash_bootstrap_components as dbc from dash.dependencies import Input, Output from dash.exceptions import PreventUpdate # local imports from plotting.app import app from plotting.utils.functions import fetch_columns_options from plotting.pages.table import table from plotting.layout.layout impo...
# 🚨 Don't change the code below 👇 #h_convert = (float(height)) #print (type(h)) #w_convert = (float(weight)) #print (type(w)) # 🚨 Don't change the code above 👆 #Write your code below this line 👇 height = float(input("enter your height in m: ")) #if (height == ""): #print (" To Calculate BMI, Height cannot b...
1.0.0 / May 16 2021 =================== * Initial release with an I2C driver for the BME280
import { WalletNotConnectedError } from '@solana/wallet-adapter-base'; import { useWallet } from '@solana/wallet-adapter-react'; import { Connection, Keypair, SystemProgram, Transaction, clusterApiUrl } from '@solana/web3.js'; import React, { FC, useCallback } from 'react'; export const SendOneLamportToRandomAddress: ...
@file:Suppress("DEPRECATION", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "unused") package dev.inkremental.dsl.androidx.constraintlayout.widget import androidx.constraintlayout.widget.Barrier import dev.inkremental.attr import dev.inkremental.bind import dev.inkremental.v fun barrier(configure: BarrierScope.(...
const { withDbConnection, dropIfExists } = require("../lib/withDbConnection"); const Temple = require("../models/temple"); const axios = require("axios"); const getTemples = async () => { let temples; // get information from the temples API try { const response = await axios({ method: "get", url...
use string_table::StringIndex; use tokens::Token; use std::iter::Peekable; use std::vec::IntoIter; #[derive(Debug,PartialEq,Clone)] pub struct ProgramData { pub body: Vec<SyntaxNode> } #[derive(Debug,PartialEq,Clone)] pub struct CallExpressionData { pub callee: StringIndex, pub args: Vec<SyntaxNode> } #[...
import json class Response: """ The Response class Contains: status, error, result :param response: (space_api.proto.server_pb2.Response) gRPC Response """ def __init__(self, response): self.status = response.status self.error = response.error if len(response.error) > 0 else ...
<?php class CategoryModel extends CI_Model{ function get_categories(){ $this->db->select('*') ->from('CAT'); $query = $this->db->get(); return ($query->num_rows() > 0 ? $query->result() : false); } function add_category($name){ $id = get_next_id('CAT','ID_CAT'); $this->db->insert('CAT'...
unit pUCGeral; interface uses Buttons, Classes, ComCtrls, Controls, DB, DBGrids, Dialogs, ExtCtrls, Forms, Graphics, Grids, Messages, StdCtrls, SysUtils, UcBase, Variants, Windows; type TFormUserPerf = class(TForm) Panel1: TPanel; LbDescricao: TLabel; Image1: TImage; P...
// Copyright (c) 2020 Allan Mobley. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; namespace Mobsites.Blazor { ...
using System; namespace LLVM.ClangTidy { static class GuidList { public const string guidClangTidyPkgString = "AE4956BE-3DB8-430E-BBAB-7E2E9A014E9C"; public const string guidClangTidyCmdSetString = "9E0F0493-6493-46DE-AEE1-ACD8F60F265E"; public static readonly Guid guidClangTidyCmdSet...
import { forwardRef, ReactNode, Ref, useReducer, useState } from "react"; import { useFrame } from "react-three-fiber"; import RingGeometry from "../../../core/RingGeomtry"; import transitionHotspotReducer, { transitionHotspotInitialState, TransitionTypes, } from "../../../reducers/transitionHotspotReducer"; inter...
# BrowserIO Components for Ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem 'browserio' ``` And then execute: $ bundle Or install it yourself as: $ gem install browserio ## Basic Usage ### Setup class BasicComponent < BrowserIO::Component setup do |config| ...
import 'dart:async'; import 'package:flutter/widgets.dart'; import 'package:rxdart/rxdart.dart'; import 'cache.dart'; class Settings { static final Settings _instance = Settings._internal(); factory Settings() { assert( _cacheProvider != null, 'Must call Settings.init(cacheProvi...
#! /usr/bin/env jest import { getBreadcrumbItems, getSubnavItem, getSubnavParent, } from "./Breadcrumb" const subnavs = { coronavirus: [ { label: "Coronavirus", href: "/coronavirus", id: "coronavirus" }, { label: "Excess mortality", href: "/excess-mortality-covi...
val ti = """ <caret> """.trimIndent()
import React from "react" import { Button, UncontrolledPopover, PopoverHeader, PopoverBody, Card, CardHeader, CardBody, CardTitle, TabContent, TabPane, Nav, NavItem, NavLink } from "reactstrap" import classnames from "classnames" import { Eye, Code } from "react-feather" import { popoverUncont...
<?php namespace App\Models; class Manager extends Base { use SessionableTrait, LoggableTrait; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'manager_id', 'manager_key', 'agent_id', 'phone', 'memo', ...
package net.xblacky.animexstream.utils.model data class EpisodeModel( var episodeNumber: String, var episodeurl: String, var episodeType: String )
import datetime import re from pyrql import RQLSyntaxError from pyrql import parse OPERATORS = { "ge": "gte", "le": "lte", } class RQLQueryError(Exception): pass class RQLMongo: _rql_error_cls = RQLQueryError _rql_max_limit = None _rql_default_limit = None _rql_auto_scalar = False ...
<?hh /* HH_FIXME[4110] */ class HasFixme { public function why() { // Here is a motivating example for the fixmes-suppress-formatting feature. // We do not want to format this node because it would move the suppression // comment away from the error, causing it to fail to suppress the error: ...
/* * Licensed to SharpSoftware under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * SharpSoftware licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not us...
import mongoose from 'mongoose' import debug from 'debug' debug('tshirtFactory:database') const { DB_USERNAME, DB_PASSWORD, DB_HOSTNAME, DB_DATABASE } = process.env mongoose .connect( `mongodb://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:27017/${DB_DATABASE}`, { useNewUrlParser: true, useUnifi...
//========================================================================= // DIFFQUOT.CC - part of // OMNeT++/OMNEST // Discrete System Simulation in C++ // // Author: Andras Varga // //========================================================================= /*--------------------------...
using ASK.ServEasy; using TourDeFrance.Core; using TourDeFrance.Core.Interfaces; namespace TourDeFrance.Service { public class ProcessModuleThread : ModuleThread { private readonly Setup _setup; private readonly IProcess _process; public ProcessModuleThread(Setup setup, IProcess process) : base(process.Na...
# frozen_string_literal: true class ContractTokenPrice < ApplicationRecord # Associations belongs_to :contract_token, class_name: 'ContractToken', inverse_of: :prices # Validations attr_readonly :contract_token, :datetime, :price validates :datetime, presence: true validates :price, presence: true, num...
// always_io.rs // provides the kernel with io that never stops // used for kernel-level keybinds #![no_std] extern crate cpuio; #[macro_use] extern crate watchdog_fs as fs; #[macro_use] extern crate watchdog_raw as raw; extern crate ux; use fs::header; use fs::read; use raw::cpu; use raw::header; use raw::ps2_keybo...
PREFIX foaf: <http://xmlns.com/foaf/0.1/> INSERT DATA { <one> <b> <c> . } ; INSERT DATA { <twoP> <b1> <c1> ; <b2> <c2> . } ; INSERT DATA { <twoO> <b> <c1> , <c2> . } ; INSERT DATA { <twoO2> <b> <c1> ; <b> <c2> . } ; DELETE DATA { <a> <b> <c> } ;
export default { isLoggedIn(state) { return ( typeof state.user !== 'undefined' && state.user !== null && typeof state.user.access_token !== 'undefined' && state.user.access_token !== null && state.user.access_token !== '' ); }, username(state) { return (state.user.username || 'N/A U...
/* * Copyright 2019-2020 47 Degrees Open Source <http://47deg.com> * * 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 requi...
""" `prior(parameters::ParameterVector{T}) where {T<:Number}` Calculates log joint prior density of m.parameters. """ function prior(parameters::ParameterVector{T}) where {T<:Number} free_params = Base.filter(θ -> !θ.fixed, parameters) logpdfs = map(logpdf, free_params) return sum(logpdfs) end """ ``` pos...
import { CustomCommand } from '../../api/oclif/CustomCommand' import appsSettingsUnset from '../../modules/apps/settings/unset' export default class SettingsUnset extends CustomCommand { static description = 'Unset app settings' static examples = ['vtex settings unset vtex.service-example fieldName'] static fl...
cask 'backwords' do version '1.0.0' sha256 '102d00e333ef1c77e483d179e2276005e46c1de418c7004f08eba29579888044' url "https://backwords.fyi/static/builds/backwords-#{version}.dmg" name 'Backwords' homepage 'https://backwords.fyi/' app 'Backwords.app' uninstall login_item: 'Backwords', signal: ...
import discourseComputed from "discourse-common/utils/decorators"; import { or } from "@ember/object/computed"; import { schedule } from "@ember/runloop"; import { inject } from "@ember/controller"; import Controller from "@ember/controller"; import WatchedWord from "admin/models/watched-word"; import { ajax } from "di...
import { Either, left, right } from 'fp-ts/lib/Either'; import pluralize from 'pluralize'; import { emphasize } from '../../utils'; import { VersionGuardError } from '../../errors'; import { GroupConfig } from '../../groups'; interface EnsurePathsDoNotExistOptions { /** * Paths of applications to add, relative t...
package ru.surfstudio.android.app.migration.sample.ui.screen.splash import ru.surfstudio.android.core.mvp.model.ScreenModel /** * Модель загрузочного экрана */ class SplashScreenModel : ScreenModel()
""" Commonly needed custom view mixins. Note that these do *not* use something like django-braces' UserPassesTestMixin, because we may need to use multiple tests in one view (e.g. must be a coordinator AND must have agreed to the terms of use). If we used that mixin, test functions and login URLs would overwrite each ...
@extends('home-master') <!-- page title --> @section('page-title') @endsection <!-- page content --> @section('content') <div class="container main-content bg-white"> <div class="row pt-5"> <div class="col-md-12"> <nav aria-label="breadcrumb" data-aos="zoom-in" data-aos-offset="300" data-aos-easing="ease-in...
export default { tree: 'Tree', basic: '基础树', editTree: '右键示例', actionTree: '函数操作示例', };
""" Axislines includes modified implementation of the Axes class. The biggest difference is that the artists responsible to draw axis line, ticks, ticklabel and axis labels are separated out from the mpl's Axis class, which are much more than artists in the original mpl. Originally, this change was motivated to support...
<?php namespace App\Http\Scanner; use App\Domain\Comment\WriteComment; use App\Http\Output\Colors; use App\Http\Output\OutputError; use App\Http\Output\OutputTrait; use App\Http\Requester\Request; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\O...
# Video-to-text-Converter Converts Videos wording content to text (English only) by converting to audio first. `
require 'helper' describe ClassFinder do describe "::find" do it "finds inflected classname" do ClassFinder.find(:class_finder).should == ClassFinder end it "returns nil if not found" do ClassFinder.find(:klass_not_found).should be_nil end end end
import 'package:kdl/src/document.dart'; import 'package:kdl/src/tokenizer.dart'; import 'package:kdl/src/types.dart'; class KdlParser { late KdlTokenizer tokenizer; late Map<String, Function> typeParsers; parse(String string, { Map<String, Function> typeParsers = const {}, bool parseTypes = true }) { this.t...
require 'cells' require 'cells-rails' require 'cells-slim' require 'rails/views/view_helpers' require 'rails/view' require 'rails/views/version' require 'rails/views/railtie' module Rails class Views end end