text stringlengths 27 775k |
|---|
package com.shmundiak.notessample;
import android.database.Cursor;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
i... |
#! /bin/zsh
rm dmdMode*
rm eigenvalReal.dat
rm eigenvalImag.dat
rm amplitudeReal.dat
rm amplitudeImag.dat
|
package com.central.common.ribbon.config;
import com.central.common.constant.CommonConstant;
import com.central.common.constant.SecurityConstants;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.web.context.request.RequestContextHolder;
import org.springf... |
-- ------------------------------------------------------------------------------
-- File: InLabExampleDatabase.sql
-- Author: Chadd Williams
-- Date: 9/15/2011
-- Class: CS445
-- Purpose: Build a database for use in class to demonstrate SQL commands
-- -------------------------------------------------------------... |
# Range Annotation Line Chart Example

Example:
```
/// Line chart with range annotations example.
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter_web/material.dart';
class LineRangeAnnotationChart extends StatelessWidget {
final List<charts.Series> se... |
package redis.commands
import redis._
import akka.util.ByteString
import redis.actors.ReplyErrorException
class ConnectionSpec extends RedisStandaloneServer {
"Connection commands" should {
"AUTH" in {
redis.auth("no password").failed.futureValue shouldBe a[ReplyErrorException]
}
"ECHO" in {
... |
import { User } from "lucide-react";
import { render } from "test/render";
import { SidebarLink } from "~/components";
describe("<SidebarLink/>", () => {
it("should render", () => {
const screen = render(
<SidebarLink to="/" icon={User}>
content
</SidebarLink>
);
const el = screen.g... |
#include <Refal2.h>
namespace Refal2 {
//-----------------------------------------------------------------------------
// CPrintHelper
void CPrintHelper::Variable( std::ostream& outputStream,
const TVariableIndex variable ) const
{
outputStream << "V" << variable;
}
void CPrintHelper::Label( std::ostream& outputS... |
use actix_web::{get, middleware::Logger, post, delete, web, App, HttpResponse, HttpServer, Responder};
use diesel::prelude::PgConnection;
use diesel::r2d2::{self, ConnectionManager};
use serde::Deserialize;
#[macro_use]
extern crate diesel;
pub mod db;
pub mod models;
pub mod schema;
#[get("/groups")]
fn get_groups(... |
# logins.sh (LoginSSH)
Works with tmux and fzf. You don't need to do a separate configuration to enable it, if you are in tmux,
it will use tmux. If fzf binary is in path, it will use fzf to show the list of SSH connections, then
depending on the choice, it will open up the SSH connection into that instance.
Depends ... |
#include "simple_game_loader.h"
#include "simple_game_loader_p.h"
#include "../gamedata/game.h"
#include "../gamedata/node.h"
#include "../gamedata/edge.h"
#include "../graphics/node_sprite.h"
#include "../graphics/edge_sprite.h"
#include <vector>
#include <fstream>
#include <sstream>
namespace JCT_SFML
{
namespace L... |
package com.github.gfranks.collapsible.calendar.widget
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.os.Build
import android.util.AttributeSet
import android.view.Gravity
import android.view.View
import android.widget.ImageView
import andr... |
package cc.blynk.server.model;
import cc.blynk.server.utils.JsonParser;
import org.junit.Test;
import java.io.InputStream;
import static org.junit.Assert.*;
/**
* The Blynk Project.
* Created by Dmitriy Dumanskiy.
* Created on 2/17/2015.
*/
public class UserProfileCalcGraphPinsTest {
@Test
public void ... |
DROP DATABASE IF EXISTS poudrierec2;
DROP ROLE IF EXISTS poudriereadmin;
CREATE ROLE poudriereadmin WITH
CREATEDB;
COMMENT ON ROLE poudriereadmin IS E'Owner role for the Poudriere database';
CREATE DATABASE poudrierec2
ENCODING = 'UTF8'
OWNER = poudriereadmin;
|
@extends('BackEnd.master');
@section('title')
Home Page
@endsection
|
MININIX_PKG_HOMEPAGE=https://ipfs.io/
MININIX_PKG_DESCRIPTION="A peer-to-peer hypermedia distribution protocol"
MININIX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
MININIX_PKG_VERSION=0.4.18
MININIX_PKG_SHA256=bc03def6ac902d99ae29c60819dad2133af776d3f6779c55781afccaa89cec84
MININIX_PKG_SRCURL=h... |
using System;
namespace Glimpse.Ado.Message
{
public class CommandRowCountMessage : AdoCommandMessage
{
public CommandRowCountMessage(Guid connectionId, Guid commandId, long rowCount) : base(connectionId, commandId)
{
RowCount = rowCount;
}
public long RowCount { g... |
module SimpleForm
module Inputs
module Autocomplete
#
# Method used to rename the autocomplete key to a more standard
# data-autocomplete key
#
def rewrite_autocomplete_option
new_options = {}
new_options["data-autocomplete-fields"] = JSON.generate(options.delete :fie... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <dxbcutils.h>
#include <shaderbinary.h>
namespace D3D11On12
{
//==================================================================================================================================
// Shader
... |
require 'spec_helper'
describe 'migrating to cloud config', type: :integration do
with_reset_sandbox_before_each
before do
target_and_login
create_and_upload_test_release
upload_stemcell
end
let(:cloud_config_hash) do
cloud_config_hash = Bosh::Spec::Deployments.simple_cloud_config
cloud_c... |
-- [er]it tests a insert data into superclass and subclass with type set,but the number of attribute don't match,then report semantic error
set system parameters 'create_table_reuseoid=no';
create class DML_SUPER (
int_col int not null,
var_col varchar(20),
set_col set (int, varchar(20))
);
create class DML_0001 un... |
sigma.plugins.addContorlPoints
==================
Plugin developed by [Hamid Maadani](https://github.com/21stcaveman).
Contact: hamid@maadani.com
---
## General
This plugin allows rendering of curved edges' control points.
See the following [example](../../examples/add-control-points.html) for full usage.
To use i... |
package db
// Count holds all data about a count
type Count struct {
Time *string
SessionID *int64
UserName *string
Count *int64
}
// NewCount makes a new Count with default values
func NewCount() Count {
return Count{
Time: StringPtr(""),
SessionID: Int64Ptr(0),
UserName: StringPtr(""),
... |
-module(epgsql_pool_utils).
-export([open_connection/2,
close_connection/1,
reconnect/1,
pool_name_to_atom/1
]).
-include("epgsql_pool.hrl").
-spec open_connection(atom(), #epgsql_connection{} | undefined) ->
{ok, #epgsql_connection{}} | {error, term()... |
-- phpMyAdmin SQL Dump
-- version 4.4.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 09, 2015 at 08:05 PM
-- Server version: 5.5.43-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package store
import (
"errors"
"github.com/mb0/glob"
"log"
"time"
)
var (
values = make(map[string]expired)
errorWrongType = errors.New("WRONGTYPE Operation against a key holding the wrong kind of value")
errorInvalidInt = errors.New("ERR value is not an integer or out of range")
err... |
require "rails_helper"
describe EmailFormatValidator do
class TestModel
include ActiveModel::Model
attr_accessor :email
validates :email, email_format: true
end
before { instance.valid? }
subject { instance.errors.to_h }
context "invalid addresses" do
%w[test.com test@@test.com test@test te... |
# frozen_string_literal: true
module Kodachroma
module RgbGenerator
class FromHexStringValues < Base
# @param format [Symbol] color format
# @param r [String] red value
# @param g [String] green value
# @param b [String] blue value
# @param a [String] alpha value
... |
package com.giof71.groovy.reproducer;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.StringJoiner;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import com.giof71.groovy.reproducer.observation.DebugListener;
import com.giof71.groovy.reproducer.observatio... |
import 'package:extended_text/extended_text.dart';
import 'package:flutter/material.dart';
import 'package:flutter_chat_types/flutter_chat_types.dart' as types;
import 'package:get/get.dart';
import 'package:imboy/component/helper/datetime.dart';
import 'package:imboy/config/const.dart';
import 'package:imboy/config/in... |
package java.sql
import java.lang.String
import scala.scalanative.annotation.stub
/** An object that can be used to get information about the types
* and properties of the columns in a ResultSet object.
* The following code fragment creates the ResultSet object rs,
* creates the ResultSetMetaData object rsmd, a... |
import java.util.ArrayList;
import java.util.List;
import java.lang.Math;
import java.util.Hashtable;
import java.util.HashSet;
import java.util.PriorityQueue;
class OptimalStrategy implements IAlgorithm {
protected Animator animator;
protected Vertex start = null;
protected Vertex target = null;
protected Pri... |
using cmdwtf.NumberStones.Expression;
namespace cmdwtf.NumberStones.Operations
{
/// <summary>
/// Operations that have only a single operand
/// </summary>
public static class UnaryOperations
{
/// <summary>
/// Negates the value of the operand
/// </summary>
/// <param name="operand">The operand to ne... |
---
layout: post
title: "随机矩阵理论(VII): 无线通信"
author: "李军"
categories: journal
tags: [RMT, wireless communication]
image:
feature:
teaser:
credit:
creditlink: ""
---
本文是随机矩阵理论系列的第七篇文章,讲述了随机矩阵在无线通信中的运用。
#### 采样协方差矩阵
#### Marcenko-Pastur law
#### ring law
#### cognitive wireless network
Romain Couillet, De... |
class AddSecretMountsToContainers < ActiveRecord::Migration
def change
add_column :container_requests, :secret_mounts, :jsonb, default: {}
add_column :containers, :secret_mounts, :jsonb, default: {}
add_column :containers, :secret_mounts_md5, :string, default: "99914b932bd37a50b983c5e7c90ae93b"
add_in... |
require 'wattics-api-client/version'
require 'wattics-api-client/measurements'
require 'wattics-api-client/blocking_queue'
require 'wattics-api-client/config'
require 'wattics-api-client/client'
require 'wattics-api-client/measurement_with_config'
require 'wattics-api-client/processor'
require 'wattics-api-client/pro... |
# Pancakes
In addition to the recipes below, [PBR waffle batter](/recipes/waffles/) also
makes good pancakes.
## Buttermilk Pancakes
### Ingredients
* 1.5c all-purpose flour
* 2 tbsp sugar
* 1 tsp baking powder
* 1 tsp baking soda
* 1/2 tsp table salt
* 1.5c buttermilk or clabbered milk
* 2 large eggs
* 2 tbsp melt... |
module Opal
class SourceMapServer
# Carelessly taken from Sprockets::Caching (Sprockets v2)
class Cache
def initialize
@cache = {}
end
attr_reader :cache
def cache_get(key)
# `Cache#get(key)` for Memcache
if cache.respond_to?(:get)
cache.get(key)
... |
<?php
$skeleton = <<<skeleton
<?php
namespace Model;
use Model\Base\\{$table}Base;
class {$table} extends {$table}Base
{
public function __construct()
{
parent::__construct(\$GLOBALS['config']);
}
}
skeleton;
|
package it.marcoberri.dockitech;
import it.marcoberri.dockitech.adapter.MongoAdapter;
import it.marcoberri.dockitech.model.DTClient;
import org.junit.Assert;
import org.junit.Test;
public class AdminTest {
MongoAdapter adapter = new MongoAdapter();
@Test
public void generatewordAndDropUniverse() {
... |
package node
import (
"context"
"fmt"
"os"
"testing"
"github.com/pegnet/pegnetd/node/conversions"
"github.com/pegnet/pegnetd/config"
"github.com/pegnet/pegnetd/fat/fat2"
"github.com/pegnet/pegnetd/exit"
"github.com/spf13/viper"
)
func TestAveragePeriod(t *testing.T) {
t.Skip("Should not be run as part ... |
Slide Puzzle
============
Tools
-----
* https://code.visualstudio.com/
* https://nodejs.org/en/download/
* https://www.npmjs.com/package/npx
* https://desktop.github.com/
Dev Tools
---------
**Chrome**: https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en
**Firefox**... |
/*
* Copyright 2020 the original author or 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 applica... |
---
layout: post
microblog: true
date: 2017-09-29 06:57 +0300
guid: http://desparoz.micro.blog/2017/09/29/with-close-family.html
---
With close family who serve or served in NSW Police, I pause to honour all who serve in policing
[apple.news/AgDTGGuLb...](https://apple.news/AgDTGGuLbRm-SX-ojhG7E-g)
|
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { describe, galata, test } from '@jupyterlab/galata';
jest.setTimeout(60000);
const DEFAULT_NAME = 'untitled.txt';
describe('Text Editor Tests', () => {
beforeAll(async () => {
await galata.resetUI();... |
# encoding: utf-8
require "mongoid/matchers/strategies"
module Mongoid
# This module contains all the behavior for ruby implementations of MongoDB
# selectors.
module Matchers
# Determines if this document has the attributes to match the supplied
# MongoDB selector. Used for matching on embedded associ... |
val <caret>x = 5
fun f() {
println(x + x * x)
} |
/*
* 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 n... |
<?php
/**
* LICENSE: This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*
* @copyright 2017 Copyright(c) - All rights reserved.
* @author YNLO-Ultratech Development Team <developer@ynloultratech.com>
* @package restful-platform
*/
names... |
# Multiple Resolutions Demo for Godot
***Work in progress.***
___
This project demonstrates how to use Godot's UI system to support multiple
aspect ratios (including ultrawide displays and console-like HUDs with custom margins), as well as scaling the
GUI and providing hiDPI support.
## License
Copyright © 2018 Hu... |
#!/usr/bin/env python
import subprocess
Tcrhoc = 0.08
class simu_config:
def __init__ ( self , Nx , Nv , Tc , Tf , alpha , output_dir ):
self.Nx = Nx
self.Nv = Nv
self.Tc = Tc
self.Tf = Tf
self.alpha = alpha
self.output_dir = output_dir
def write ( self , config_name="config.init" ):
... |
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "periodic_table";
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::PeriodicTable )],
# Tests for atomic mass
"atomic mass of nitrogen" => test_zci(
"Nitrogen (N), atomic mass 14.007 u",... |
# Helpers imgui
Table of Contents
- [imgui_camera_widget.h](#imgui_camera_widgeth)
- [imgui_helper.h](#imgui_helperh)
- [imgui_orient.h](#imgui_orienth)
_____
# imgui_camera_widget.h
<a name="imgui_camera_widgeth"></a>
## functions in ImGuiH
- CameraWidget : CameraWidget is a Camera widget for the the Camera Man... |
; RUN: opt -S -cross-dso-cfi < %s | FileCheck %s
; RUN: opt -S -passes=cross-dso-cfi < %s | FileCheck %s
; CHECK: define void @__cfi_check(i64 %[[TYPE:.*]], i8* %[[ADDR:.*]], i8* %[[DATA:.*]]) align 4096
; CHECK: switch i64 %[[TYPE]], label %[[FAIL:.*]] [
; CHECK-NEXT: i64 111, label %[[L1:.*]]
; CHECK-NEXT:... |
import 'package:elementary/elementary.dart';
import 'package:flutter/material.dart';
/// A mixin with convenience methods for clients of [AutomaticKeepAlive].
/// Used with [WidgetModel] subclasses.
mixin AutomaticKeepAliveWidgetModelMixin<W extends ElementaryWidget,
M extends ElementaryModel> on WidgetModel<W, M>... |
import { FunctionComponent } from 'react';
import { translate } from '@waldur/i18n';
import { deleteHPA } from '@waldur/rancher/api';
import { ResourceDeleteButton } from '../ResourceDeleteButton';
export const HPADeleteButton: FunctionComponent<any> = (props) => (
<ResourceDeleteButton
apiFunction={() => dele... |
<?hh
class Constants {
// Needs to be equal
const A = 1;
const B = 1;
}
class ArrayProperty {
public static $array = array(
Constants::A => 23,
Constants::B => 42,
);
}
<<__EntryPoint>> function main(): void {
var_dump( ArrayProperty::$array );
}
|
; Spirograph benchmark
; John Morrice 2011
; Released under the WTFPL
%include "draw_spiro.asm"
%define SPIRO_LENGTH 100000
section .data
moving: dq __float64__(0.2)
fixed: dq __float64__(0.5)
offset: dq __float64__(0.8)
section .text
global main
main:
push rbp
mov rbp, rsp
sub rsp, 1... |
use std::cmp::Ordering;
// Test default methods in PartialOrd and PartialEq
//
#[derive(Debug)]
struct Fool(bool);
impl PartialEq for Fool {
fn eq(&self, other: &Fool) -> bool {
let Fool(this) = *self;
let Fool(other) = *other;
this != other
}
}
struct Int(isize);
impl PartialEq for ... |
{-# LANGUAGE OverloadedStrings, RecordWildCards, Arrows #-}
module Text.Feed.Crawl.DetectLink where
import Text.XML.HXT.Core
import qualified Data.ByteString.Char8 as B
import Text.Feed.Crawl.Common
findFeedLinks :: String -> IO [Link]
findFeedLinks input = do
runX (
readString [
withParseHTML ye... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use App\Http\Requests;
class PageController extends Controller
{
public function index()
{
return view("default");
}
public function register()
{
return view("auth.register");
}
public func... |
using Microsoft.Extensions.DependencyInjection;
namespace AssistantAssignment.Web.Api.Repositories
{
public static class GeneticAlgorithmTaskRepositoryExtension
{
public static IServiceCollection AddGeneticAlgorithmTaskRepository(
this IServiceCollection services)
{
serv... |
/// <reference types="react-scripts" />
namespace Recipes {
interface Ingredient {
ingredient: string;
ingredientId: string;
}
interface Instruction {
instruction: string;
instructionId: string;
}
interface Note {
note: string;
noteId: string;
}
interface Recipe {
recipeNam... |
package com.xiaojukeji.carrera.cproxy.proxy;
import com.xiaojukeji.carrera.cproxy.consumer.offset.CarreraOffsetManager;
import com.xiaojukeji.carrera.cproxy.consumer.ConfigManager;
import com.xiaojukeji.carrera.cproxy.consumer.ConsumerManager;
import com.xiaojukeji.carrera.cproxy.consumer.SharedThreadPool;
import com.... |
package main
import (
"fmt"
"log"
"os"
"os/signal"
"syscall"
"achuala.in/payhub/pbgen/pacs008"
"achuala.in/payhub/pbgen/pain001"
"github.com/knadh/koanf"
"github.com/knadh/koanf/parsers/toml"
"github.com/knadh/koanf/providers/file"
"github.com/knadh/koanf/providers/posflag"
flag "github.com/spf13/pflag"
)... |
package com.alexzh.company.contacts.data.source.local
import com.alexzh.company.contacts.data.Employee
import com.alexzh.company.contacts.data.source.EmployeeDataSource
import kotlinx.coroutines.flow.Flow
class LocalEmployeeDataSource(private val database: ContactsDatabase): EmployeeDataSource{
override suspend ... |
package zio.magic.macros
import zio.{Has, ZLayer}
import scala.reflect.macros.whitebox
class ProvideSomeMagicMacro(val c: whitebox.Context) extends MacroUtils {
import c.universe._
def provideSomeMagicImpl[
Require: c.WeakTypeTag,
Provide: c.WeakTypeTag,
Remainder <: Require
](
zlayer:... |
module Lib
( run
) where
-- Imports
-- =======
import System.Environment (getArgs)
import Data.Maybe (Maybe (..))
import Text.Megaparsec (runParser, parseErrorPretty)
import Data.Time.Clock
import Data.Time.Calendar
import Data.Time.Calendar.WeekDate (toWeekDate)
import Text.Printf (printf)
-- Local
-- -----... |
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes --check-attributes
; RUN: opt -attributor -enable-new-pm=0 -attributor-manifest-internal -attributor-max-iterations-verify -attributor-annotate-decl-cs -attributor-max-iterations=8 -S < %s | File... |
import { memo, CSSProperties } from 'react';
type ResizerProps = {
onMouseDown?: (event: React.MouseEvent) => void;
};
const style: CSSProperties = {
width: '4px',
height: '100%',
top: 0,
right: '-2px',
marginLeft: 'auto',
position: 'absolute',
cursor: 'col-resize',
};
const Resizer: React.FC<Resizer... |
//https://bz.zzzmh.cn/#anime
import 'dart:convert';
import 'package:dtspider/model/bz_paper_items.dart';
import 'package:dtspider/utils/http_client.dart';
String BZ_ZZZMH_ADDRESS = 'https://api.zzzmh.cn/bz';
//获取json数据,target可以为index、anime
Future<BzzzzmhItems> getBzAnimeFromJson({
String target: 'anime',
int cu... |
class Test {
J._1
J._2
J._3
J._3
J._4
J._5
J._6
J._7
}
|
import {useInstance, Component, onBeforeMount, onBeforeUpdate, Props} from 'intact';
type ExtractProps<T extends Component> = T extends Component<infer P> ? Props<P> : never
export function useReceive<T extends Component>(
props: (keyof ExtractProps<T>)[],
callback: () => void,
ignoreInit: boolean = false... |
# changelog
package and cli tool to manipulate markdown changelogs
## 0.3.0 2017-09-21
* FindByVersion to get a changelog entry for a specific version
* GetRange to return a slice of entries from a version to (and including) another
## 0.2.0 2017-08-01
* More robust parsing of headlines
* Various other documentati... |
#!/bin/bash
set -e
set -o pipefail
declare -a arr=("whats-new-in-spring-boot-2.1"
"bootstrap-jakarta-ee-8-application"
"custom-maven-archetype"
"demo-crud-application"
"deploy-spring-boot-to-gke"
"spring-boot-hibernate-flyway-best-practices"
"random-data-in-java-using-java-faker"
"guide-to-jakarta-ee-with-rea... |
package com.example.bhonesh.bot;
/**
* Created by upesh on 19/3/18.
*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.Ar... |
module DiabeticToolbox
# = CreateNutritionalFact
#
# This class is used to create a NutritionalFact to be
# associated with a recipe, as follows:
#
# result = CreateNutritionalFact.new(member, recipe, nutritional_fact_params)
#
class CreateNutritionalFact < Exchange
#:enddoc:
#region Init
... |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码已从模板生成。
//
// 手动更改此文件可能导致应用程序出现意外的行为。
// 如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------
namespace VIMS.LiveVideoSDK.Bll.E... |
package com.example.data.entity.flight
data class FlightOptionEntity(
val infantsLeft: Int? = null,
val regularFare: RegularFareEntity? = null,
val flightNumber: String? = null,
val time: List<String>? = null,
val duration: String? = null
) |
# JUnit Maven
This plugin integrate Maven Surefire Plugin with Eclipse JUnit. This plugin can
recognize this tags:
* additionalClasspathElements
* argLine
* environmentVariables
* systemPropertiesFile
* systemPropertyVariables
Example:
```xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>mave... |
const arr1 = Array.of(7, 6, 5, 'mehmet');
console.log(arr1);
const arr2 = Array(7, 6, 6, arr1);
const arr3 = Array(7, 6, 6, ...arr1);
console.log(arr2);
console.log(arr3);
const arr4 = Array.of(7, "Hulk", [23, 12, 5], {sport: "volleyball"});
console.log(arr4);
// Polyfill
if(!Array.of){
Array.of = function(){
re... |
# automation-cucumber
Some automation tests with Ruby and Cucumber
## Build Setup
# install dependencies
cd tests
bundle install
## Running the application
# running
cucumber
|
/*
* Copyright The OpenTelemetry 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
<style type="text/css">
* {
margin: 0;
padding: 0;
border: 0;
}
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary {
display:block;
}
body {
font-family: "Open Sans", sans-serif;
}
h2 {
color: #2c2c2c;
margin-top: 5rem;
}
p {
... |
from flask import jsonify, request
from . import api
from app.models import *
from ..util.custom_decorator import login_required
from ..util.utils import *
from flask_login import current_user
@api.route('/config/add', methods=['POST'])
@login_required
def add_scene_config():
""" 添加配置 """
data = request.json
... |
# Deep Learning Book Chapter 11 Practical Methodology
## Chapter Link
[Chapter 11 Practical Methodology](http://www.deeplearningbook.org/contents/guidelines.html)
## Presentation Slides
[Practical Methodology Presentation by Cherif Jazra](DLB-Practical_Methodology-Jazra.pdf)
## Online Discussion
### Part 1
[![... |
use crate::errorprint::print_error;
use crate::job::{put_shell_in_foreground, Job, JOB_LIST};
use crate::shellhost::{FunctionRegistry, Host};
use failure::{Error, Fail, Fallible};
use shell_compiler::Compiler;
use shell_lexer::{LexError, LexErrorKind};
use shell_parser::{ParseErrorKind, Parser};
use shell_vm::{Environm... |
import { FontFace } from '../FontFace/types';
import { ThemeName, ThemeConfig } from './types';
export const ligthTheme: ThemeConfig = {
name: 'light',
sizes: {
row: '60px',
},
rwd: {
breakpoints: [1080],
desktopIndex: 1,
},
common: {
primary: '#00b0f0',
primary20: 'rgba(128, 223, 255,... |
#!/bin/bash
./$HOME/bash_syn_ibm_2016
vcs -full64 -gui -R -f file_list1 +v2k +lint=all -l log_name -Mupdate \
+define+DOUBLE \
-timescale=1ns/1ps \
+neg_tchk \
+sdfverbose
|
/*----------------------------------------------------------------
Copyright (C) 2016 Senparc
文件名:ApiConnection.cs
文件功能描述:API链接
创建标识:Senparc - 20150319
----------------------------------------------------------------*/
using System;
using Niue.WeChat.Core.Exceptions;
using Niue.WeChat.Pub... |
package equate
import Algorithms.{
commonSubstringIndicesToDiff,
findMiddle,
lcsSubstringIndices,
longestCommonSubsequenceEdits
}
import Presentation.renderDiff
import org.scalacheck.Prop._
import org.scalacheck.{Arbitrary, Gen, Prop, Properties, Shrink}
import scalatest.Equate.equate
import scalacheck.Equate.... |
#!/bin/sh
protobuf_main() {
local destination_dir
destination_dir="src/y_protobuf"
local pb_path
local data_path
# すべての proto を一度に処理しないと namespace の構築がうまくいかない
# rust の prost は package が必須で、namespace は package の指定によって構築される
pb_path="${destination_dir}/proto.js"
data_path="${destination_... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package testhelpers
import (
"bytes"
"encoding/json"
"fmt"
"github.com/pkg/errors"
"io"
"io/ioutil"
"net/http"
"net/http/httputil"
"net/url"
"s... |
(ns composer.comp.emulate
(:require [respo.core :refer [defcomp <> div input button span]]
[respo.comp.space :refer [=<]]
[respo.comp.inspect :refer [comp-inspect]]
[respo-ui.core :as ui]
[composer.schema :as schema]
[composer.style :as style]
[... |
package test
import sbt._
class TestProject(info: ProjectInfo) extends DefaultProject(info)
protected class NotMainProject(info: ProjectInfo) extends DefaultProject(info)
private class AnotherNotMainProject(info: ProjectInfo) extends DefaultProject(info) |
import {Controller, Get, Query, UseGuards} from '@nestjs/common';
import {TopicTagService} from '../services/topic-tag.service';
import {TopicTag} from '../../entity/models/topic-tag.entity';
import {AuthGuard} from '@nestjs/passport';
@UseGuards(AuthGuard())
@Controller('client/topic-tag')
export class TopicTagContro... |
import React from "react";
import { makeStyles } from "@material-ui/styles";
import { AdvancedImage } from "@cloudinary/react";
import { fill } from "@cloudinary/base/actions/resize";
import LazyLoad from "react-lazyload";
import { useCloudinary, useBreakpoint } from "utils";
type ServiceImageProps = {
alt: ... |
# USB fun - Android (Things)
A demonstration of how to connect an Arduino to an Android phone / Android Things board over USB.
Blog post:
[http://nilhcem.com/android-things/usb-communications](http://nilhcem.com/android-things/usb-communications)
This project has 2 gradle modules: `mobile` and `things`
## Mobile ... |
export const caCertConfig = (commonName: string) =>
[
'[req]',
'req_extensions = v3_req',
'distinguished_name = req_distinguished_name',
'x509_extensions = v3_ca',
'[req_distinguished_name]',
'commonName = ' + commonName,
'[v3_req]',
'basicConstraints = critical,CA:true',
].join('\n')
export const le... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.