text
stringlengths
27
775k
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 o...
#!/usr/bin/env bash # Vitormalencar 🍺 Brewfile echo ---------------------------------- echo Install all AppStore Apps at first! 🚨 echo ---------------------------------- # No solution to automate AppStore installs read -p "Press any key to continue... " -n1 -s echo '\n' # Ask for the administrator password upfron...
using CQRS.Application.Vehicles.CommandHandlers.Dto; using MediatR; namespace CQRS.Application.Vehicles.Commands { public class CreateVehicleCommand:IRequest<CreatedVehicle> { public string Brand { get; set; } public string Model { get; set; } public int CategoryId { get; set; } } ...
EXEC [dbo].[DropProcedureIfExists] 'Integration', 'MigrateStagedEmployeeData' PRINT 'Creating procedure [Integration].[MigrateStagedEmployeeData]' GO CREATE PROCEDURE [Integration].[MigrateStagedEmployeeData] ( @SystemCutOffTime datetime2(7) ) AS BEGIN DECLARE @Lineage int DECLARE @DataLoadEndTime datetime2(7) ...
using UnityEngine; /// <summary> /// Adds functions to manage collisions with objects using CustomPhysics. Behaviour is similar /// to Unity's collision functions. /// </summary> public abstract class CustomMonoBehaviour : MonoBehaviour { public virtual void OnCustomCollisionEnter(CustomCollision collision) {}...
import { TranslationChunksConfig, TranslationResources } from '@spartacus/core'; import { en } from './en/index'; export const productImageZoomTranslations: TranslationResources = { en, }; // expose all translation chunk mapping for imageZoom feature export const productImageZoomTranslationChunksConfig: Translation...
# Native execution support export @cuda, nearest_warpsize, cudaconvert using Base.Iterators: filter """ cudaconvert(x) This function is called for every argument to be passed to a kernel, allowing it to be converted to a GPU-friendly format. By default, the function does nothing and returns the input object `x...
<?php ?> <h2><?= $pageTitle ?></h2> <p>This is about page</p>
// presenceUpdateイベントはユーザーのステータス変更時に発火します // 注: Botは全てのイベントに関連付けられているため、関数実行時全てのイベントに // XPBot, other, args が渡されます。 module.exports = (XPBot, oldUser, newUser) => { if(!XPBot.ready) return; //if(message.author.bot) return; if(oldUser.id === XPBot.user.id) return; if(oldUser.bot){ if(XPBot.config.mainBots.i...
module Transformer.SymbolicExecution where import Control.Monad (when) import Printer.Dot import Printer.SymTree () import SymbolicExecution (topLevel) import System.Directory import System.FilePath ((</>)) import System.Process (system) ...
Quando('acesso o Menu') do @nav.tap_hamburger sleep 10 end Então('vejo a lista de opções de navegação') do expect(@nav.list.displayed?).to be true end
<?php /** * AJAX: handles an image upload from TinyMCE. * * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. * * @package phpMyFAQ * @author Thorsten Rinne <thorst...
using System; namespace DotNetBlog.Core.Model.Comment { public class CommentModel { public int Id { get; set; } public int TopicId { get; set; } public int? ReplyToId { get; set; } public string Name { get; set; } public string Email { get; set; } public st...
package main import ( "fmt" getopt "github.com/kesselborn/go-getopt" "os" ) func main() { ssco := getopt.SubSubCommandOptions{ getopt.Options{ "global description", getopt.Definitions{ {"config|c", "config file", getopt.IsConfigFile | getopt.ExampleIsDefault, "/etc/visor.conf"}, {"server|s", "dooz...
package tw.tcnr01.shop; import android.app.Dialog; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; import...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace CyPhy2RF { /// <summary> /// TODO: Update summary. /// </summary> [Serializable] [ComVisible(true)] [ProgId("ISIS.META.CyPhy2RF_Settings")] [Guid("C51EAB54-...
import logging from algobattle.verifier import Verifier logger = logging.getLogger('algobattle.problems.delaytest.verifier') class DelaytestVerifier(Verifier): """Dummy verifier used for testing Docker delays.""" def verify_semantics_of_instance(self, instance, instance_size: int): return True ...
namespace Naos.Foundation.Domain { using MediatR; public interface IDomainEventHandler<in TEvent> : INotificationHandler<TEvent> where TEvent : IDomainEvent { /// <summary> /// Determines whether this instance can handle the specified notification. /// </summary> //...
const MAX_RAND_PAD_LENGTH_MOD8 = 3 randpad() = rand(UInt8, rand(8*(1:MAX_RAND_PAD_LENGTH_MOD8))) function rand_primitive_buffer(;lpad=randpad(), rpad=randpad()) dtype = rand(PRIMITIVE_ELTYPES) len = rand(1:MAX_VECTOR_LENGTH) v = rand(dtype, len) b = convert(Vector{UInt8}, reinterpret(UInt8, v)) ...
# encoding: UTF-8 class Page < ActiveRecord::Base belongs_to :conference scope :with_path, lambda { |p| where(path: p) } end
import { Component, OnInit } from "@angular/core"; import { DomSanitizer } from "@angular/platform-browser"; import { MzToastService } from "ng2-materialize"; import { SocketService } from "../socket.service"; import { UtilitiesService } from "../utilities.service"; import { IPagination } from "./../interfaces/ipagin...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("io.spring.dependency-management") version "1.0.8.RELEASE" id("org.springframework.boot") version "2.1.8.RELEASE" apply false kotlin("jvm") version "1.3.50" apply false kotlin("plugin.spring") version "1.3.50" apply false java } java { sourceCo...
# frozen_string_literal: true module AbrahamHelper def abraham_tour # Do we have tours for this controller/action in the user's locale? tours = Rails.configuration.abraham.tours["#{controller_path}.#{action_name}.#{I18n.locale}"] # Otherwise, default to the default locale tours ||= Rails.configuratio...
app.controller('testCtrl', function($scope){ $scope.widgetText ="hehehe..."; });
import * as theme from './Theme/index'; export { theme }; export * from './components/AeropayCard'; export * from './components/Button'; export * from './components/Text'; export * from './components/WalkthroughCard';
require 'sinatra/base' require 'rack-flash' class ParentsController < ApplicationController # GET: /parents/5 get "/parents/:id" do if logged_in? && creating_user #verifys user logged in and correct user (using helpers) #find parent, all created children and all created chores(separated into multiple c...
#!/usr/bin/env perl6 use v6; use Inline::Perl5; my $p5 = Inline::Perl5.new(); $p5.run(q/ use Test::More; sub test { my ($perl6) = @_; for (1 .. 100) { my @retval = $perl6->test('Perl6'); is_deeply \@retval, ['Perl6']; my @retval = $perl6->test('Perl', 6); ...
require File.join(File.dirname(__FILE__), 'spec_helper.rb') include Selenium::WebDriver::Elements describe "Form" do include Aux before(:each) do @browser.navigate.to 'http://www.htmlcodetutorial.com/forms/_INPUT_TYPE_TEXT.html' end def form @browser.find_elements(:tag_name => 'form')[1] end d...
-- lists all records of the table second_table of the database hbtn_0c_0 in your MySQL server. -- Don’t list rows without a name value -- Results should display the score and the name (in this order) -- Records should be listed by descending score -- The database name will be passed as an argument to the mysql command ...
use crate::Trait; use sp_std::vec::Vec; pub fn get_slice<T: Trait, B: Clone>( vec: Vec<B>, start_position: u64, batch_size: u64, ) -> Vec<B> { // the # max nr of items in the vector let n = vec.len(); // compute the range end_position // if the computed range end_position is larger than n,...
require 'openssl' require 'base64' module Musa ## # Musa decryption class class Decryption def self.decrypt(key, encrypted_data) # Check length fail Musa::Error::ShortKey if key.size < 32 # Generate cipher cipher = OpenSSL::Cipher.new ALGORITHM # Start decryption cipher.de...
package me.digi.saas.features.readraw.view import android.os.Bundle import android.view.View import androidx.core.view.isVisible import androidx.fragment.app.Fragment import androidx.lifecycle.lifecycleScope import by.kirich1409.viewbindingdelegate.viewBinding import kotlinx.coroutines.flow.collectLatest import me.dig...
<?php namespace Application\Service; use Application\Domain\Gateway\LinkEvent; class LinkSubmit { private $linkGateway; public function __construct(LinkEvent $linkGateway) { $this->linkGateway = $linkGateway; } public function __invoke($title, $url, $submitterId) { if (empty(...
package com.cui.code.bio; import lombok.extern.slf4j.Slf4j; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; /** * 问题多多 * * @author cuishixiang * @date 2018-11-05 */ @Slf4j public class QuestionClient { public s...
import _ from 'lodash' import getMovie from './getMovie.resolver' import getUpcomingMovies from './getUpcomingMovies.resolver' export default _.merge(getMovie, getUpcomingMovies)
import {Rule} from 'eslint' import {TSESTree} from '@typescript-eslint/typescript-estree' import {extractMessages} from '../util' import { parse, isPluralElement, MessageFormatElement, isLiteralElement, isSelectElement, isPoundElement, } from '@formatjs/icu-messageformat-parser' class PlaceholderEnforcemen...
import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { ButtonsModule } from 'ngx-bootstrap/buttons'; import { SpecialityComponent } from './speciality.component'; import { SpecialityRoutingModule } from './speciality-ro...
<?php namespace App\Policies; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\User; class UserPolicy { use HandlesAuthorization; public function index(User $auth_user) { return ( $auth_user->isSuperAdmin() || $auth_user->isAdmin() ); } pub...
package org.aoc2021 import java.nio.file.Files import java.nio.file.Path object Day9 { data class Point(val x: Int, val y: Int) private fun solvePart1(lines: List<String>): Int { val heights = lines.map { line -> line.map(Char::digitToInt) } val lowPoints = findLowPoints(h...
"""Urls for the Zinnia search""" from django.conf.urls import url from django.conf.urls import patterns from zinnia.views.search import EntrySearch urlpatterns = patterns( '', url(r'^$', EntrySearch.as_view(), name='zinnia_entry_search'), )
import { BaseEvent } from '@fabric-es/fabric-cqrs'; export interface UserCreated extends BaseEvent { readonly type: 'UserCreated'; payload: { userId: string; name: string; mergedUserIds: string[]; timestamp: number; }; } export interface ReviewInvitationDeclined extends BaseEvent { readonly ty...
# coding: utf-8 require 'test_helper' include Githelp class GitHelpTest < Minitest::Test def test_params assert params(['3時間', '"b"', '8回']) == ['b'] end end
import { randomNumber } from './number'; const currentYear = new Date().getFullYear(); const fromYear = currentYear - 10; /** * Generates a random year */ export function randomYear(from: number = fromYear, to: number = currentYear): number { return randomNumber(from, to); }
; DV3 MSDOS Map Update V3.00  1993 Tony Tebby section dv3 xdef msd_umap xdef msd_setmu xref dv3_psector include 'dev8_dv3_keys' include 'dev8_keys_dos' include 'dev8_dv3_msd_keys' ;+++ ; DV3 MSDOS Map Update ; ; d0 r physical sector to write ; d1 cr operation status, 0 on first call, 0 when done ; d7...
[Serializable] public class FishingCameraController.InputAxisSetting // TypeDefIndex: 6493 { // Fields public string m_InputName; // 0x10 // Methods // RVA: 0x1D4EEB0 Offset: 0x1D4EFB1 VA: 0x1D4EEB0 public void .ctor(string name) { } }
import { ChainId, POOLS_MAP } from "../../constants" import { getPoolByAddress } from "../getPoolByAddress" describe("getPoolByAddress", () => { it("gets pool by address", () => { // do we want to require the address we pass in to be lowercase? expect( getPoolByAddress( "0x55268d699ecb16f9cb04c...
<?php // extends class Model class UserM extends CI_Model{ public function getUser(){ return $this->db->get('user')->result_array(); } public function getSubkon(){ $this->db->where('status', 1); return $this->db->get('pelaksana')->result_array(); } public function lastUser() { $t...
// Copyright 2021 The XLS 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 agreed t...
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.Runtime.Serialization; using Nest.Utf8Json; namespace Nest { /// <summary> /// A token filter of t...
<?php //Reverse Array in php $arr = [0,8,4,7,3,6,5]; $revArr = []; for($i = count($arr)-1; $i >= 0; $i--) { array_push($revArr, $arr[$i]); } echo json_encode($revArr);
import empty from './empty'; import unused from './unused'; import zombieFactory from './zombie'; import * as zombie from './zombie'; import { getRandomQuote } from './zombie'; import { generateName } from './zombie'; export { empty, generateName, getRandomQuote, zombieFactory, zombie }; export default {empty, genera...
package com.padcmyanmar.mmkunyi.view.holders import android.support.v7.widget.RecyclerView import android.view.View abstract class BaseViewHolder<W> (itemView:View) :RecyclerView.ViewHolder(itemView), View.OnClickListener { protected var kuNyiData: W? = null init { itemView.setOnClickListener(this) ...
object PathVariantDefns { sealed trait AtomBase { sealed trait Atom case class Zero(value: String) extends Atom } trait Atom1 extends AtomBase { case class One(value: String) extends Atom } trait Atom2 extends AtomBase { case class Two(value: String) extends Atom } object Atoms01 extend...
// Code generated by github.com/whyrusleeping/cbor-gen. DO NOT EDIT. package paych import ( "fmt" "io" abi "github.com/filecoin-project/go-state-types/abi" cbg "github.com/whyrusleeping/cbor-gen" xerrors "golang.org/x/xerrors" ) var _ = xerrors.Errorf var lengthBufState = []byte{134} func (t...
This page has moved to [https://carvel.dev/ytt/docs/latest/strict/](https://carvel.dev/ytt/docs/latest/strict/).
#include "solver_stats.h" namespace srrg2_solver { std::ostream& operator<<(std::ostream& os, const IterationStats& istat) { os << "it= " << istat.iteration << "; level= " << istat.level << "; num_inliers= " << istat.num_inliers << "; chi_inliers= " << istat.chi_inliers << "; num_outliers= " << is...
using System.Collections.Generic; namespace MLSoftware.OTA { [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "4.2.0.31")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serializat...
from matplotlib import pyplot as plt #import sncosmo from sntd import simulation, fitting from sntd.plotting import _COLORLIST5 import sys nsim = 100 dt_fit_list = [] murel_fit_list = [] for isim in range(nsim): # Part 1 : simulate a doubly-imaged Type Ib SN and fit for time delays modname = 'snana-2004gv' ...
import 'package:star_clock/star_clock.dart'; import 'package:flutter_clock_helper/model.dart'; bool isDark(ClockTheme theme, DateTime dateTime, WeatherCondition weather) { if (theme == ClockTheme.night) { return true; } // Weather exceptions if (weather == WeatherCondition.thunderstorm || ...
/* Random by Alexander Abraham a.k.a. "The Black Unicorn" licensed under the MIT license. */ import 'dart:ui'; import 'variables.dart'; import 'package:flutter/material.dart'; /// Basic class to draw something /// resembling a die's face. class Face extends CustomPainter{ /// This variable changes during /// stat...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $good \backend\models\Goods */ /* @var $user \backend\models\User */ $link = Yii::$app->urlManager->createAbsoluteUrl(['good/default/index', 'id' => $good->id]); ?> <div class="subscription"> <p>Новая партия игры:</p> <p><?= Html::a(Html::en...
package org.firstinspires.ftc.teamcode.robot; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.Servo; import com.qualcomm.robotcore.hardware.VoltageSensor; import com.q...
package org.morpheus /** * * Created by zslajchrt on 13/03/15. */ abstract class AltIterator[T, R](val rootAltNode: AltNode[T]) extends ResettableIterator[R] { private val coupledCounters = rootAltNode.counters protected def mapAlt(alt: List[T]): R def current(): R = mapAlt(rootAltNode.alternative) priv...
package com.github.uragiristereo.mejiboard.data.repository.remote import com.github.uragiristereo.mejiboard.data.model.remote.provider.ApiProviders import com.github.uragiristereo.mejiboard.data.repository.remote.provider.DanbooruProviderRepository import com.github.uragiristereo.mejiboard.data.repository.remote.provi...
# from spec/routing/session_routing_spec.rb # frozen_string_literal: true require 'rails_helper' RSpec.describe 'routes for Session', type: :routing do it 'routes to the pact endpoint' do expect(get('/v0/vaos/facilities/688/visits/direct')).to route_to( format: :json, controller: 'vaos/visits', ...
<?php session_start(); //prepare db details $host="localhost"; $dbuser="root"; $dbname="sayu"; $dbpassword=""; //connect to the database $con = mysqli_connect($host,$dbuser,$dbpassword,$dbname); if(isset($_POST['login_btn'])){ $fname = $_POST['fname']; $password = $_POST['password']; $ombi =...
'use strict' /** * A module for transforming file contents with postcss * @param {Object} postcss * @module postcss */ module.exports = function PostCSSProcessorInitializer(postcss) { return function PostCSSProcessor(content, processor, fileInfo) { return new Promise((res, rej) => { if(!processor.plugins) ...
from app.controllers.error_handlers.main import forbidden from app.controllers.error_handlers.main import not_found from app.controllers.error_handlers.main import method_not_allowed from app.controllers.error_handlers.main import internal_server_error
#!/bin/bash scriptDir=$(dirname "$0") binDir="$scriptDir/../../cmake-build-debug/bin" mkfs="$binDir/mkfs.myfs" mount="$binDir/mount.myfs" helloWorld="$scriptDir/hello-world.txt" printf "\n*** cleanup ***\n" rm -rf $scriptDir/tmp/ mkdir $scriptDir/tmp/ $scriptDir/tmp/mnt/ printf "\n*** mkfs ***\n" $mkfs $scriptDir/t...
from primelibpy import Prime as p import random def gen_Random(name,n,mode): name="get"+name x=[] if name=="getBalancedPrime": while(len(x)==0): start = random.randint(10**(n-1),10**n//2) end = random.randint((10**n//2)+1,(10**n)-1) x = getattr(p,name)(start,end,m...
#!/usr/bin/env clojure ;; Exponentiation: (defn ** [x n] (reduce * (repeat n x))) ;; Deliberatly using PRNG below while still non-deterministic here? (defn make-random-node [x] {:x x :y (rand-int (** 2 31)) :left nil :right nil}) (defn merge2 [lower greater] (if-not lower greater (if-not greater...
#!/bin/bash -e dpkg -i /container/service/mmc-sshlpk/assets/package/python-mmc-sshlpk_2.5.1-1_all.deb rm -rf /container/service/mmc-sshlpk/assets/package/ # change default plugin configuration sed -i -e "s/#*\s*disable\s*=.*/disable = 0/" /etc/mmc/plugins/sshlpk.ini
#!/bin/sh set -e if ! type git > /dev/null 2>&1; then echo "ERROR: git not found, can't continue" >&2 exit 1 fi git fetch --all -pf echo "Checking for tabs" >&2 ! git --no-pager grep -InP --heading "\t" -- . ':!third_party/**/*' || ret=1 echo "Checking for carriage returns" >&2 ! git --no-pager grep -InP -...
//! Native crash reporting for Relay. //! //! Use [`CrashHandler`] to configure and install a crash handler. use std::path::Path; #[cfg(unix)] mod native { // Code generated by bindgen contains some warnings and also offends the linter. Ignore all of // that since they do not have a consequence on the functio...
using System; using System.Collections; using UnityEngine; public class CardEffect : MonoBehaviour { public Boolean Small { set { if (value) { base.transform.localScale = new Vector3(QuadMistCardUI.SIZESMALL_W / QuadMistCardUI.SIZE_W, QuadMistCardUI.SIZESMALL_H / QuadMistCardUI.SIZE_H, 1f); } el...
#!/usr/bin/env bash set -euo pipefail MCSA_RELEASE_URL=https://github.com/admiraltyio/multicluster-service-account/releases/download/v0.6.1 install_kubemcsa() { OS=linux ARCH=amd64 curl -Lo kubemcsa "$MCSA_RELEASE_URL/kubemcsa-$OS-$ARCH" chmod +x kubemcsa }
SET extremes = 1; SELECT 'Hello, world' FROM (SELECT number FROM system.numbers LIMIT 10) WHERE number < 0 FORMAT JSONCompact;
const path = require('path'); // PROJECT_ID // The unique identifier for this suite of tests. This value // determines which folder your test results will eventually be stored in. // This is important if you have multiple configuration files setup. const PROJECT_ID = '<%= projectId %>'; // REFERENCE_DOMAIN // The bas...
package com.robyn.bitty /** * Created by yifei on 11/27/2017. */ interface BaseView<T> { var mPresenter : T }
// // Created by colby on 8/20/18. // #ifndef SEALION_LEXER_H #define SEALION_LEXER_H #include "token.h" typedef struct Lexer { char* input; int position; int readPosition; char ch; } Lexer; Lexer* NewLexer(char* input); void readChar(Lexer* lexer); Token newToken(TokenType tokenType, char ch); Toke...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Mygame extends CI_Controller { /** * ===================================================== * Podstawowa * ===================================================== * @author Mateusz Wrobel < bayomw@gmail.com > */ public function ind...
module AVtonomKa class Application def initialize end def run usage_page = <<-PAGE aVtonomKa - Command line utility to manage data at VK social network. Usage: avtonomka [--version] [--help] <command> [<args>] PAGE print usage_page end end end
"use strict"; var Redbird = require('../'); var expect = require('chai').expect; var _ = require('lodash'); var opts = { bunyan: false, port: 10000 + Math.ceil(Math.random() * 55535) /* { name: 'test', streams: [{ path: '/dev/null', }] } */ }; describe("Custom Resolver", function(){ it("S...
import 'dart:math'; import 'dart:ui'; import 'package:deins/EntryType.dart'; import 'package:deins/entryDrawer.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:image/image.dart' as image; class Entry { DateTime creationDate; EntryType type; List<Offset> dra...
#include<bits/stdc++.h> using namespace std; int i,j,k,n,t,f[1005],fi[1005],ti[1005]; int main() { cin>>n>>t; for(i=1; i<=n; i++) cin>>fi[i]>>ti[i]; for(i=1; i<=n; i++) for(j=t; j>=ti[i]; j--) f[j]=max(f[j],f[j-ti[i]]+fi[i]); cout<<f[t]; return 0; }
# Item 50. Familiarize yourself with STL-related websites The content of this item, except boost, is deemed obsolete.
var gulp = require('gulp'), plugins = require('gulp-load-plugins')(), config = require('./../utils/config'); gulp.task('compile-html', ['process-html'], function() { return gulp.src(config.distRoot + 'index.html') .pipe(plugins.fileInclude({ prefix: '@@', basepath: '@file' ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RentingCars.Entity { class Clients { private string phone_number; public string Phone_Number { get { return phone_number...
declare global { interface Array<T> { zip<U>(list: U[]): [T, U][] } } // zipを実装 Array.prototype.zip = function(list) { return this.map((v, k) => [v, list[k]] ) }
/* * Copyright (C) 2020-2021 Lightbend Inc. <https://www.lightbend.com> */ package akka.projection.kafka.internal import scala.concurrent.duration.FiniteDuration import scala.concurrent.duration._ import akka.actor.typed.ActorSystem import akka.annotation.InternalApi import com.typesafe.config.Config /** * INTER...
PEP 257 docstring style checker =============================================================================== **pep257** is a static analysis tool for checking compliance with Python PEP 257: <http://www.python.org/dev/peps/pep-0257/>. The framework for checking docstring style is flexible, and custom checks can be...
//! Run new commands inside running containers. use futures_util::{stream::Stream, TryFutureExt}; use hyper::Body; use serde::{Deserialize, Serialize}; use crate::{ conn::{tty, Headers, Payload}, Docker, Result, }; pub type ExecId = String; pub type ExecIdRef<'a> = &'a str; api_doc! { Exec /// Interface for...
const setLines = require('./../setLines'); const setComments = require('./../setComments'); function parsePropertystatement(obj) { if (typeof obj !== 'object' || obj === null || !('kind' in obj) || obj.kind !== 'propertystatement') { return obj; } const smartParser = require('./smartParse'); const propertystat...
<!DOCTYPE html> <html lang="en"> <head> @include('schemars.include.head') </head> <body class="nav-md fixed"> @include('schemars.include.notify') <div class="container body"> <div class="main_container"> @include('schemars.include.sidebar') @include('schemars.include...
<?php namespace App\Repositories; use App\Repositories\Interfaces\EtalaseInterface; use App\Models\Barang; class EtalaseRepository implements EtalaseInterface { protected $model; public function __construct(Barang $model) { $this->model = $model; } public function all() { ret...
#!/bin/sh [ "$1" = "check" ] && acpi | head -1 | grep Discharging && xscreensaver & || killall xscreensaver [ "$1" = "true" ] && xscreensaver & [ "$1" = "false" ] && killall xscreensaver
''' Function: 工具模块 Author: Charles 公众号: Charles的皮卡丘 ''' import random from PyQt5.QtWidgets import QFrame from PyQt5.QtCore import pyqtSignal from PyQt5.QtGui import QColor, QPainter '''定义一个俄罗斯方块的形状''' class tetrisShape(): def __init__(self, shape=0): # 空块 self.shape_empty = 0 # 一字型块 self.shape_I = 1 # L...
Function Invoke-RestartIISTask { try { & iisreset -stop & iisreset -start } catch { Write-Host "Something went wrong restarting IIS again" & iisreset -stop & iisreset -start } } Register-SitecoreInstallExtension -Command Invoke-RestartIISTask -As RestartIIS -Type...
import Vue from 'vue' import VueRouter from 'vue-router' import Vuex from 'vuex' import store from './store/index' import Login from './loginApp' import Login2 from './login2App' import Regist from './registApp' import userAgreement from './userAgreementApp' Vue.use(Vuex) const routes = [ { path: '/', component: ...
package com.tgweb.springmvc.test; import com.tgweb.springmvc.dao.EmployeeDao; import com.tgweb.springmvc.dao.impl.EmployeeDaoImpl; import com.tgweb.springmvc.entities.Employee; import org.junit.Test; public class EmployeeDaoTest { @Test public void test() { EmployeeDao employeeDao = new EmployeeDaoIm...