text stringlengths 27 775k |
|---|
package com.github.vatbub.common.core;
/*-
* #%L
* FOKProjects Common Core
* %%
* Copyright (C) 2016 - 2017 Frederik Kammel
* %%
* 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
*
* ... |
// PR9073
template<typename _Tp>
class shared_ptr{
public:
template<class _Alloc, class ..._Args>
static
shared_ptr<_Tp>
allocate_shared(const _Alloc& __a, _Args&& ...__args);
};
template<class _Tp>
template<class _Alloc, class ..._Args>
shared_ptr<_Tp>
shared_ptr<_Tp>::allocate_shared(const _Alloc& __a, _Args... |
require_relative '../../configuration'
require_relative '_add_test_r_d_f.rb'
require_relative '_test_user_created.rb'
require_relative '_test_various_requests.rb'
require_relative '_check_data_hiding.rb'
require_relative '_remove_test_r_d_f.rb'
describe 'Linked Open Data' do
describe 'Add Test R D F' do
include... |
<?php foreach ($posts as $post) : ?>
<?php if (isset($post->title)): ?>
<p>title<?= $post->title ?></p>
<p>question<?= $post->question ?></p>
<p>answered<?= $post->answered ?></p>
<?php else: ?>
<p>upVote<?= $post->answer ?></p>
<?php endif; ?>
<p>upVote<?= $post->upVo... |
require 'rails_helper'
RSpec.describe User, type: :model do
describe '#create' do
subject { described_class.new(user_attributes) }
let(:user_attributes){ FactoryBot.attributes_for(:user) }
it 'creates reference number' do
expect(subject.reference).to match(/\A\w{4}-\w{4}\z/)
end
end
end |
# frozen_string_literal: true
module Stripe
module Radar
class EarlyFraudWarning < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "radar.early_fraud_warning"
end
end
end
|
=begin
#Topological Inventory
#Topological Inventory
OpenAPI spec version: 0.1.0
Contact: you@your-company.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4
=end
# Common files
require 'topological_inventory-api-client/api_client'
require 'topological_inventory-api-client/api_error'
... |
import React from "react"
import styled from "styled-components"
import GatsbyImage from "gatsby-image"
const StyledImage = styled(GatsbyImage)`
width: 100%;
min-width: 0%;
`
const Image = ({ className, children, img }) => {
return (
<StyledImage className={className} fluid={img}>
{children}
</Styl... |
package model
type PricingData struct {
Price *float64 `json:"price"`
ClearPrice *float64 `json:"clearPrice"`
Revenue *float64 `json:"revenue"`
RateType *int `json:"rateType"`
ECPM *float64 `json:"eCPM"`
}
|
%%------------------------------------------------------------------------------
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions are met:
%%
%% 1. Redistributions of source code must retain the above c... |
/* Copyright (c) 2017 Big Ladder Software LLC. All rights reserved.
* See the LICENSE file for additional terms and conditions. */
#ifndef PENUMBRA_H_
#define PENUMBRA_H_
// Standard
#include <memory>
#include <string>
#include <vector>
#include <array>
#include <map>
// Penumbra
#include <penumbra/surface.h>
name... |
import java.util.Scanner;
public class PrimitiveVariables2 {
public static final double PI = 3.14159254;
public static void main(String[] args) { // methods
double x = 5; // 2 step process
int y; // 1. declaration
y = 2; // 2. initialization
final int Y_IS_CONSTANT = 5; // Constant vari... |
#!/bin/bash
### This script runs the test executable of the project
# Directory containing this bash script.
readonly DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Build directory
readonly BUILD_DIR=$DIR/build
if [ "$1" == "rebuild" ]; then
bash $DIR/build.sh "Debug"
fi
# Run the test executable
$BUI... |
CREATE TABLE [dbo].[Products]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[Name] NVARCHAR(50) NOT NULL,
[Quantity] INT NOT NULL,
[OnSale] BIT NOT NULL,
[Category] INT NOT NULL,
[Created] DATETIME2 NOT NULL,
)
|
package online.himakeit.readhub.ui.adapter;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.List;
import online.himakeit.readhub.R;
i... |
import { getNamespace } from 'node-request-context';
export class RequestContext {
public readonly id: Number;
public request: Request;
public response: Response;
constructor(request: Request, response: Response) {
this.id = Math.random();
this.request = request;
this.response... |
// Copyright 2018-2019 @paritytech/substrate-light-ui authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { number, withKnobs } from '@storybook/addon-knobs';
import { storiesOf } from '@storybook/react';
import ... |
import { Injectable, NotFoundException } from "@nestjs/common";
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { ToDoModel } from './todo.model';
import { AddToDoItemDTO } from '../dto/add-todo-item-dto';
@Injectable()
export class ToDoService {
constructor(@InjectModel('... |
C
C $Id: mp05f.f,v 1.5 2010-03-15 22:49:24 haley Exp $
C
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C C
C Copyright (C) 1995 C
C University Corporation for... |
export type CreditCardType = 'amex' | 'carrefour' | 'mastercard' | 'naranja' | 'visa';
export const DEFAULT_CREDIT_CARD_TYPE: CreditCardType = 'visa';
|
using System;
using NUnit.Framework;
using SkipList;
namespace SkipListTest
{
[TestFixture]
public class SkipListTest
{
SkipList<String, String> sl;
SkipList<String, int> sl2;
[SetUp]
protected void Setup()
{
sl = new SkipList<String, Str... |
use super::{Result, Error};
use crate::cursor::Cursor;
use crate::record_types::{
BagHeader, Chunk, Connection, MessageData, IndexData, ChunkInfo,
RecordGen,
};
use crate::field_iter::FieldIterator;
/// Enum with all possible record variants
#[derive(Debug, Clone)]
pub enum Record<'a> {
BagHeader(BagHead... |
mod worker;
fn main(){
worker::work();
} |
package me.ivanyu.akkachat.chat
import akka.actor.{Actor, ActorLogging, Props}
import me.ivanyu.akkachat.AppConfig
import me.ivanyu.akkachat.chat.ChatActorProtocol._
import me.ivanyu.akkachat.chat.UserManagerProtocol._
private[chat] class UserManager(config: AppConfig) extends Actor with ActorLogging {
private va... |
module Main where
import Data.Semigroup
import Test.QuickCheck
data Three a b c = Three a b c deriving (Eq, Show)
instance (Semigroup a, Semigroup b, Semigroup c)
=> Semigroup (Three a b c) where
Three a1 b1 c1 <> Three a2 b2 c2 = Three (a1 <> a2) (b1 <> b2) (c1 <> c2)
instance (Arbitrary a, Arbitrary b, Arbit... |
require 'travis/yml/schema/type/group'
require 'travis/yml/schema/type/lang'
require 'travis/yml/schema/type/map'
require 'travis/yml/schema/type/node'
require 'travis/yml/schema/type/ref'
require 'travis/yml/schema/type/scalar'
|
<?php
/**
* HTTP API: WP_HTTP_Response class
*
* @package WordPress
* @subpackage HTTP
* @since 4.4.0
*/
/**
* Core class used to prepare HTTP responses.
*
* @since 4.4.0
*/
class WP_HTTP_Response {
/**
* Response data.
*
* @since 4.4.0
* @var mixed
*/
public $data;
/**... |
2020年07月29日02时数据
Status: 200
1.萧亚轩 我的人生有大事要发生
微博热度:831251
2.成都14岁女生坠亡案嫌疑人被批捕
微博热度:485045
3.张月微博评论
微博热度:454446
4.被林有有气死
微博热度:331785
5.顾佳偷看许幻山手机
微博热度:299778
6.忘不了餐厅复工营业
微博热度:291568
7.重启
微博热度:286949
8.苦等十年回迁房回家要开8道防火门
微博热度:185829
9.王毅称中国将坚定而理性地回应美国
微博热度:175117
10.2020年研究生在学人数将破300万
微博热度:171557
11.爱奇艺尖... |
#!/bin/bash
set -e
CURR_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
OS_PREFIX="win32"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
OS_PREFIX="linux"
elif [[ "$OSTYPE" == "darwin"* ]]; then
OS_PREFIX="osx"
fi
mkdir -p ${CURR_DIR}/generated
for shader_file in ${CURR_DIR}/*.glsl
do
BASENAME=`basename ${shader_file... |
import 'mocha';
import { given } from 'mocha-testdata';
import { FileFinder, Path } from '../../src/io';
import { expect } from '../expect';
/** @test {FileFinder} */
describe('FileFinder', () => {
const cwd = Path.from(__dirname, 'finder-examples');
let finder: FileFinder;
beforeEach(() => {
f... |
<?php
/**
* NOVIUS OS - Web OS for digital communication
*
* @copyright 2011 Novius
* @license GNU Affero General Public License v3 or (at your option) any later version
* http://www.gnu.org/licenses/agpl-3.0.html
* @link http://www.novius-os.org
*/
$role = reset($user->roles);
?>
<div class="p... |
# `no-anonymous-operations`
✅ The `"extends": "plugin:@graphql-eslint/operations-recommended"` property in a configuration file enables this rule.
- Category: `Operations`
- Rule name: `@graphql-eslint/no-anonymous-operations`
- Requires GraphQL Schema: `false` [ℹ️](../../README.md#extended-linting-rules-with-graphql... |
---
title: Błąd krytyczny kompilatora zasobów RW1016
ms.date: 11/04/2016
f1_keywords:
- RW1016
helpviewer_keywords:
- RW1016
ms.assetid: 7c93b6b6-3684-4b09-b71d-160c400f75a5
ms.openlocfilehash: 141cd509122266218d8ac5bbc676fab8a9e33e9f
ms.sourcegitcommit: 857fa6b530224fa6c18675138043aba9aa0619fb
ms.translationtype: MT
m... |
## Building and Running
To use this tool you will need to download and build Google's AFL fuzzer https://github.com/google/AFL
Then run the following commands
```
cd /path/to/vw
mkdir build
cd build
CXX=/path/to/AFL/afl-g++ cmake ..
make test_initialize
```
Then run the fuzz.py script (Python 3.8 or higher is requir... |
#### 系统配置文件读取
通过Get()获取配置Hash表。
通过Reload()函数重新载入config.ini.
|
# ==========================================================================
# _ _ ________ __ _ _____ _____ _______ ______ _ _ _ _ _ _
# | | | | ____\ \ / / | | |_ _|/ ____|__ __| ____| \ | | | | | |
# | |__| | |__ \ \_/ / | | | | | (___ | | | |__ | \| | | | | |
# | __ | _... |
#ifndef cetlib_no_delete_h
#define cetlib_no_delete_h
/*
======================================================================
no_delete.h
!!==========================================================!!
!! Please consult with the art team before using this class !!
!!=======================================... |
import { parse, execute as graphQLExecute, isInputType } from "graphql";
import { executeWithoutSchema, executeWithSchema } from "..";
import schema, { typeDefs } from "../benchmarks/swapi-schema";
import models from "../benchmarks/swapi-schema/models";
import resolvers from "../benchmarks/swapi-schema/resolvers";
impo... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\ProjectModel;
class BerandaController extends Controller
{
public function index(){
$data = ProjectModel::orderby('created_at','desc')->paginate(9);
$countproject = ProjectModel::get()->count();
return view(... |
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
/*
Package term provides functions on unixoid systems for dealing with
POSIX compliant terminals/terminal emulators that also support
ANSI escape sequences.
It is only tested on Linux with the Xfce terminal emulator and the Linux console.
All in... |
/**
* // ============================================================================
* //
* // Copyright (C) 2006-2021 Talend Inc. - www.talend.com
* //
* // This source code is available under agreement available at
* // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
* //
... |
using CommandLine;
using Elders.Skynet.Core;
using Elders.Skynet.Core.Contracts;
namespace Elders.Skynet.Cli.Host
{
[Verb("register-package", HelpText = "Lists all registered packages.")]
public class RegisterPackage : IHostCommand
{
public void Execute(SkynetClient client)
{
c... |
package org.prebid.pg.gp.server.services;
import org.prebid.pg.gp.server.model.DeliveryTokenSpendSummary;
import org.prebid.pg.gp.server.model.LineItem;
import org.prebid.pg.gp.server.model.PbsHost;
import org.prebid.pg.gp.server.model.ReallocatedPlan;
import java.util.List;
/**
* An algorithm to do the host-based ... |
from utils import NetworkHelper
CREATE_EMAILS_API_URL = 'http://hcilab.ml/api/?method=create'
def create_email(params):
url = CREATE_EMAILS_API_URL + '&domain=' + params['domain'] + \
'&userId=' + params['username'] + '&firstName=' + params['firstName'] + \
'&lastName=' + params['lastName']
email_result = Netwo... |
import android.Manifest
import android.content.pm.PackageManager
import android.os.Build
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.annotation.RequiresApi
import androidx.compose.material.Button
import androidx.comp... |
// Install the ServiceWorker
self.addEventListener('install', function(event) {
event.waitUntil(
// Open a cache
caches.open('v1').then(function(cache) {
// Define what we want to cache
return cache.addAll([
'/',
'index.html',
'main.js',
'icon-384.png',
'm... |
module RCDB
describe BrestParser do
attr_reader :parser
attr_reader :rpg_parser
attr_reader :solve
attr_reader :non_333
attr_reader :multiple
before do
BrestStats.stubs(:parse)
@parser = BrestParser.new("Brest", fixture_post("feliks_588_wc_2013"))
@rpg_parser = BrestParser.n... |
#!/bin/bash
target=${1}
shift
while :
do
if [ "${1}" == "" ]; then break; fi
envname=${1}
shift
if [ "${1}" == "" ]; then break; fi
envvar=${1}
shift
eval set envval=\${${envname}}
if [ "${envval}" == "" ]; then
eval export ${envname}=${envvar}
else
eval export ${... |
package com.github.greennick.properties.livedata
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.github.greennick.properties.generic.MutableProperty
import com.github.greennick.properties.generic.Property
import com.github.greennick.properties.propertyOf
fun <T : Any?> LiveData... |
import 'package:flutter/material.dart';
import 'package:fluttertemp/helpers/constants.dart';
import 'package:fluttertemp/screens/complete_profile/components/complete_profile_form.dart';
import 'package:fluttertemp/helpers/size_config.dart';
class CompleteProfileScreen extends StatefulWidget {
static String routeName... |
%% This is an example. Feel free to copy and reuse as you wish.
-module(hello_sdl).
-export([run/0]).
run() ->
spawn(fun init/0).
init() ->
ok = sdl:start([video]),
ok = sdl:stop_on_exit(),
{ok, Window} = sdl_window:create(<<"Hello SDL">>, 10, 10, 500, 500, []),
{ok, Renderer} = sdl_renderer:create(Window, -1, ... |
import { PrismaClient } from "@prisma/client";
import fastify from "fastify";
import fastifyCors from "fastify-cors";
import fastifySwagger from "fastify-swagger";
import AddressController from "./controller/address";
import StaffController from "./controller/staff";
const app = fastify({
logger: {
prettyPrint:... |
const Generator = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
const beautify = require('gulp-jsbeautifier');
// const _ = require('lodash');
const Path = require('path');
const shell = require('shelljs');
const DEFAULT_APPNAME = 'fucapp';
module.exports = class extends ... |
using System;
using System.Configuration;
using Xunit;
using Polkadot.Api;
using PolkaIndexer.DAL;
using PolkaIndexer;
using Polkadot.Data;
using System.Linq;
namespace IndexerTest
{
public class ParseDemocracy
{
IApplication _app;
MetadataSchema _sch;
Indexer _indexer;
Postgres... |
Android EmulatorDetector
=========================
Small utility for detecting if your app is running on emulator, or real device.
Usage is as simple as calling:
```java
EmulatorDetector.isEmulator();
```
You can print all parameters from `android.os.Build` used to determine if you are on device or emulator:
```ja... |
package dev.komu.kraken.desktop.common
import dev.komu.kraken.utils.ResourceLoader
class Version(val version: String) {
companion object {
private val instance = Version(
ResourceLoader.readProperties("/version.properties").getProperty(
"version",
"unknown"
... |
class Droptable < ActiveRecord::Migration[5.1]
def change
drop_table :message_receives
drop_table :message_sends
drop_table :receive_messages
drop_table :send_messages
end
end
|
/*
* SoapUI, Copyright (C) 2004-2016 SmartBear Software
*
* Licensed under the EUPL, Version 1.1 or - as soon as they will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a cop... |
var {Helper, Type} = require("@kaoscript/runtime");
module.exports = function() {
let Weekday = Helper.enum(Number, {
MONDAY: 0,
TUESDAY: 1,
WEDNESDAY: 2,
THURSDAY: 3,
FRIDAY: 4,
SATURDAY: 5,
SUNDAY: 6
});
Weekday.fromString = function(value) {
if(arguments.length < 1) {
throw new SyntaxError("Wro... |
---
layout: post
title: "Tạo Redis Cluster Bằng Redisson"
date: 2019-03-28 09:36:35 +0700
categories: redis redisson
author: mtSiniChi
---
content redis cluster
# Tài nguyên
Tải source cho toàn bộ từ project Java Maven, Dockerfile và Docker Compose: [maven-docker-network.zip][1]
Chạy bằng lệnh `./auto.sh`, mình ... |
// Copyright 2020 IOTA Stiftung
//
// 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 to in w... |
/* Copyright 2004 - 2007 Kasper Nielsen <kasper@codehaus.org> Licensed under
* the Apache 2.0 License, see http://coconut.codehaus.org/license.
*/
package org.coconut.cache.store.test;
import java.util.ArrayList;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
im... |
# tic tac toe (Reagent ver)
done with "[Tutorial: Into To React](https://reactjs.org/tutorial/tutorial.html)" using Reagent (ClojureScript)
### FYI
* [Reagent](http://reagent-project.github.io/)
* [reagent.core](http://reagent-project.github.io/docs/master/reagent.core.html)
* [ClojureStcript Cheatsheet](http://cljs... |
import { call, CallEffect } from 'redux-saga/effects';
import { createPaymentResource, PaymentResource, PaymentToolType } from 'checkout/backend';
export function* createPaymentTerminal(
endpoint: string,
provider: string,
metadata: any,
token: string
): Iterator<CallEffect | PaymentResource> {
con... |
/*
* See the "Changes to PDF Rendering Code" section of https://confluence.splunk.com/display/PROD/Choropleth+UI+ERD
* for discussion of the purpose of this file.
*/
define(function(require, exports, module) {
var Class = require('jg/Class');
var Point = require('jg/geom/Point');
var Rectangle = require... |
<?php
declare(strict_types=1);
namespace Minepic\Image\Exceptions;
class ImageTrueColorCreationFailedException extends \Exception
{
}
|
# ccpr
CodeCommit Pull Request URL hook

## Installation
```bash
sudo npm install -g .
```
## Usage
```
Usage: git push -u origin |& ccpr [options]
Options:
--version Show version number [boolean]
-b, --branch Target branch ... |
set -e
export num_agent=20
cd /root/maddpg
pip install -e .
python -m maddpg.run --save_rate=1000 --num_env 10 --env_batch_size 100 --warm_up 1500 --num_agent $(num_agent)
|
<?php
namespace App\Http\Controllers\Backend\User;
use App\Http\Controllers\Controller;
/**
* Class AccountController.
*/
class UserAccountController extends Controller
{
/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function index()
{
$page_title = ... |
package net.manub.embeddedkafka
import org.apache.kafka.common.serialization.StringSerializer
import org.scalatest.BeforeAndAfterAll
import org.scalatest.tagobjects.Slow
class EmbeddedKafkaUnavailableSpec
extends EmbeddedKafkaSpecSupport
with EmbeddedKafka
with BeforeAndAfterAll {
"the publishToKafka m... |
package pw.binom.concurrency
import pw.binom.collection.FrozenHashMap
import kotlin.test.Test
import kotlin.test.assertEquals
class FrozenHashMapTest {
@Test
fun put() {
val map = FrozenHashMap<Int, String>()
map[1] = "ololo"
assertEquals(1, map.size)
assertEquals("ololo", map[... |
package bas
import (
"bytes"
"fmt"
"io"
"os"
"reflect"
"runtime"
"strconv"
"strings"
"sync"
"github.com/coyove/nj/internal"
"github.com/coyove/nj/typ"
)
var (
ioWriterType = reflect.TypeOf((*io.Writer)(nil)).Elem()
ioReaderType = reflect.TypeOf((*io.Reader)(nil)).Elem()
ioCloserType = reflect.TypeOf((*... |
#!/bin/bash
#
# Build the zip file to upload to lambda
#
# NOTE: This script expects to be run from the project root with
# ./scripts/build_zip.sh
mkdir -p build
docker build -t python-lambda .
rm build/fixerio_scrape.zip || true
id=$(docker create python-lambda)
docker cp $id:/fixerio_scrape/fixerio_scrape.zip ./bu... |
using System.Reflection;
using HarmonyLib;
using QModManager.API.ModLoading;
using SMLHelper.V2.Handlers;
using SMLHelper.V2.Json;
using SMLHelper.V2.Options.Attributes;
using UnityEngine;
using Logger = QModManager.Utility.Logger;
namespace SeaTruckFishScoop_BZ
{
[QModCore]
public static class QMod
{
... |
"""Manages all interface scenes.
"""
from enum import Enum
from typing import Iterable, Callable, Dict, List, Tuple, Optional
from skrish.cli.elements import ElementContainer
class NoSuchSceneException(Exception):
pass
class SceneControl(Enum):
REMOVE_HISTORY = -2
BACK = -1
STAY = 0
GOTO = 1
c... |
import { GraphQLClient as GraphQLClientClass } from 'graphql-request/dist'
import { operationsData } from '../operations'
import * as types from './interface'
import Api from '../api'
class P2P extends Api {
constructor(client: GraphQLClientClass) {
super(client)
}
// eslint-disable-next-line
... |
module SalesforceBulk
# An exception raised when any non successful request is made through the Salesforce Bulk API.
class SalesforceError < StandardError
# The Net::HTTPResponse instance from the API call.
attr_accessor :response
# The status code from the server response body.
attr_accessor :error... |
// Copyright 2021 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 fidl::encoding::decode_persistent;
use fidl_fuchsia_component_config::ValuesData;
use fidl_test_structuredconfig_receiver::{
ConfigReceiverPuppetRe... |
/*
* Created by YangYusheng on 2017-04-07
*/
const storeList = r => require.ensure([], () => r(require('../page/storeList')), 'storeList');
// const resolve => require(['../page/storeList'], resolve);
export default {
path: '/productlist/storelist',
name: 'storeList',
component: storeList
}
|
class JazzVideo < ApplicationRecord
extend Gettable::ClassMethods
belongs_to :artist
has_many :user_jazz_videos
has_many :users, through: :user_jazz_videos
def self.identifier
"vid"
end
end
|
import { GraphQLSchema } from 'graphql';
import { LambdaOptions, LambdaProps } from './types';
export declare class GraphQLServerLambda {
options: LambdaOptions;
executableSchema: GraphQLSchema;
protected context: any;
private middlewareFragmentReplacements;
constructor(props: LambdaProps);
grap... |
import 'dart:async';
import 'dart:convert';
import 'package:flutter_tracker/model/place.dart';
import 'package:flutter_tracker/utils/place_utils.dart';
import 'package:http/http.dart' as http;
import 'package:latlong/latlong.dart' as latlng;
class PlacesService {
static final _placesService = PlacesService();
sta... |
class CreateOrders < ActiveRecord::Migration[5.2]
def change
create_table :orders do |t|
t.belongs_to :session, foreign_key: true, index: false
t.integer :row, unsigned: true
t.string :asset_class
t.string :order_type
t.boolean :daytrade
t.string :name
t.integer :quantity... |
/*
* Copyright 2021 Michael Johnston
*
* 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 ... |
package fssi.wallet.controller.workspace
import java.net.URL
import java.nio.charset.Charset
import java.util.ResourceBundle
import javafx.fxml._
import javafx.scene.canvas.Canvas
import javafx.scene.input.{MouseEvent => JME}
import javafx.scene.layout.HBox
import scalafx.Includes._
import scalafx.beans.property.Strin... |
package com.kpit.scenichiking.util.provider
import android.content.Context
import com.kpit.scenichiking.R
import javax.inject.Inject
class HikingDimenProvider @Inject constructor(private val context: Context) : DimenProvider {
override fun getMapPaddingTopInPx() =
context.resources.getDimensionPixelSize(... |
-- @testpoint:opengauss关键字Authid(保留),作为用户组名
--关键字不带引号-合理报错
drop group if exists Authid;
create group Authid with password 'gauss@123';
--关键字带双引号-成功
drop group if exists "Authid";
create group "Authid" with password 'gauss@123';
--清理环境
drop group "Authid";
--关键字带单引号-合理报错
drop group if exists 'Authid';
create group... |
import {createElement} from 'react'
import {GatsbySSR, RenderBodyArgs} from 'gatsby'
export const onRenderBody: GatsbySSR['onRenderBody'] = ({
setHeadComponents,
}: RenderBodyArgs): any => {
setHeadComponents([
createElement('link', {
rel: 'preconnect',
key: 'sanity-cdn-preconnect',
href: 'ht... |
/*
* AP_Board.cpp
*
* Created on: Apr 4, 2011
*
*/
#include "AP_Board.h"
namespace apo {
} // namespace apo
// vim:ts=4:sw=4:expandtab
|
package io.github.gmvalentino8.github.sample.presentation.core.components
import io.github.gmvalentino8.github.sample.presentation.core.contract.Event
import io.github.gmvalentino8.github.sample.presentation.core.contract.Result
import io.github.gmvalentino8.github.sample.presentation.core.contract.State
import io.git... |
package com.hexagonkt.web
import com.hexagonkt.core.media.TextMedia
import com.hexagonkt.core.media.mediaTypeOfOrNull
import com.hexagonkt.http.model.ContentType
import com.hexagonkt.http.server.handlers.HttpServerContext
import com.hexagonkt.templates.TemplateManager
import com.hexagonkt.templates.TemplatePort
import... |
# source: https://www.youtube.com/watch?v=U0sVp1xLiyo
from tkinter import *
def paint(event):
color = 'red'
x1, y1 = (event.x-1), (event.y-1)
x2, y2 = (event.x+1), (event.y+1)
c.create_oval(x1,y1,x2,y2,fill=color,outline=color)
master = Tk()
c = Canvas(master, width=600, height=400, bg='white')
c.pa... |
# Stickiness
With load balancer, each RPC pick a different backend based on the load
balancing policy. Stickiness policies try to preserve peers for the duration of
a session, so that RPCs with the same stickiness key will be directed to the
same server.
Note that there's only "soft" stickiness now, which means RPCs ... |
Article 2049
----
Les transactions ne règlent que les différends qui s'y trouvent compris, soit
que les parties aient manifesté leur intention par des expressions spéciales ou
générales, soit que l'on reconnaisse cette intention par une suite nécessaire de
ce qui est exprimé.
|
/*
* Created on Apr 14, 2006
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.myself;
/**
* @author pbijjala
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code G... |
package com.cosic.chessview.models
class FadeOut(
val fromX: Int,
val fromY: Int,
val fade: Float
) : Action |
---
name: Leaflet.Sprite
category: markers-renderers
repo: https://github.com/leaflet-extras/leaflet.sprite
author: Calvin Metcalf
author-url: https://github.com/calvinmetcalf
demo:
compatible-v0:
compatible-v1: true
---
Use sprite based icons in your markers.
|
CREATE TABLE `projects` (
`project_id` int(11) NOT NULL,
`project_name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `projects` ADD PRIMARY KEY (`project_id`);
ALTER TABLE `projects` CHANGE `project_id` `project_id` INT(11) NOT NULL AUTO_INCREMENT; |
import { HandlebarsAdapter } from '@nest-modules/mailer';
export = {
transport:'smtp://admin12:admin42@localhost:2500',
defaults:{
from:'example@mail.com'
},
template:{
dir:'./templates/email',
adapter:new HandlebarsAdapter(),
options:{
strict:true
},... |
@title_slide_title_font_size = @large_font_size
@groonga_product = "pgroonga"
include_theme("groonga")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.