text stringlengths 27 775k |
|---|
/*
* Copyright (C) 2019 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... |
const server = require('express')();
server.use(require('helmet')());
server.use(require('cors')());
server.use(require('express').json());
require('../auth/authRoutes')(server);
require('../routes/admin/adminRoutes')(server);
require('../routes/users/usersRoutes')(server);
server.get('/', (req, res) => {
// Sanity ... |
package org.myddd.persistence.jpa;
import org.myddd.domain.InstanceFactory;
import javax.persistence.EntityManager;
public abstract class BaseRepository {
//命名查询解析器,它是可选的
private NamedQueryParser namedQueryParser;
private EntityManagerProvider entityManagerProvider;
public EntityManagerProvider ge... |
# Script
En este lugar se suben algunos Script que pueda realizar con el
fin de llevar un registro y tambien compartir con la comunidad.
|
# Update image definitions for CentOS Stream 8
Image definitions for the CentOS Stream 8 distribution have been
updated. CentOS Stream 8 (internally `centos-8`) is now an alias to the current
RHEL 8.6 distribution, with appropriate modifications.
All Edge image types are now supported in CentOS Stream 8.
|
package lk.spacewa.coroutines.ui.base
import android.annotation.TargetApi
import android.app.ProgressDialog
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.view.inputmethod.InputMethodManager
import androidx.annotation.LayoutRes
im... |
package arcs.showcase.unittesting
import arcs.core.testutil.handles.dispatchFetch
import arcs.core.testutil.handles.dispatchRemove
import arcs.core.testutil.handles.dispatchStore
import arcs.core.util.testutil.LogRule
import com.google.common.truth.Truth.assertThat
import com.google.common.truth.Truth.assertWithMessag... |
package br.com.digitalhouse.playmovieapp.ui.view
import android.os.Bundle
import android.util.Log
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import br.com.digitalhouse.playmovieapp.databinding.ActivityDetalhesDesenvolvedorBinding
import br.com.digitalhouse.playmovieapp.domain.D... |
# Einführung in Java Streams
### `filter()`
- Filtert bestimmte Elemente, die einer Bedingung entsprechen
- Verwendet `Predicate<T>`
- Intermediate Operation
```java
List<Person> females = people.stream()
.filter(person -> person.getGender().equals(Gender.FEMALE))
.collect(Collectors.toList());
females.forE... |
<?php
declare(strict_types=1);
/*
* This file is part of the RollerworksSearch package.
*
* (c) Sebastiaan Stok <s.stok@rollerscapes.net>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Rollerworks\Component\Search\Test;
use PHPUnit... |
package io.smsc.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* The Encrypt annotation is used for marking entity properties which should be encoded
* before entity is persisted
*
* @... |
package storage
import (
"context"
sPb "github.com/c12s/scheme/stellar"
)
type DB interface {
List(context.Context, *sPb.ListReq) (*sPb.ListResp, error)
Get(context.Context, *sPb.GetReq) (*sPb.GetResp, error)
StartCollector(context.Context)
}
|
---
layout: post
title: Highlights of the OBS frontend development sprint - Sprint 22
category: development
---
<p>
Here are the results the OBS frontend team has achieved in the last two weeks (2017-08-07 to 2017-08-18).
</p>
<h2>Features</h2>
<h3>LDAP support for our 2.8 release</h3>
<p>
LDAP authentication su... |
module HashSupport
class << self
def hash_to_enqueues(overdue_dictionary)
overdue_dictionary.map { |item| Que::Scheduler::ToEnqueue.create(item) }
end
end
end
|
unit frmuMessage;
{$MODE Delphi}
interface
uses
LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, frmuDlgClass, resstring;
type
TfrmMessage = class(TDialog)
imgWarning: TImage;
imgInformation: TImage;
imgError: TImage;
stxSummaryMsg: TStaticText;
... |
# coding: utf-8
module Tumiki
module Query
def find_query filter_list
arels = filter_list.map{|filt| filt.to_arel}.compact
return nil if arels.empty?
arel = arels.shift
arels.inject(arel){|sum,arg| sum.and arg }
end
end
end
|
@file:Suppress("PackageDirectoryMismatch")
package studio.forface.easygradle.dsl
/**
* @return receiver string ( usually a dependency notation ) with version
* E.g. `` `kotlin-jvm` version "1.3.50" ``
*
* @throws IllegalArgumentException if format is not correct.
*/
infix fun Any.version(version: String): String... |
package no.skatteetaten.aurora.mokey.model
import java.time.Instant
data class AuroraStatus(
val level: AuroraStatusLevel,
val reasons: List<StatusCheckReport> = listOf(),
val reports: List<StatusCheckReport> = listOf(),
)
enum class AuroraStatusLevel(val level: Int) {
DOWN(3),
OBSERVE(2),
OF... |
package uk.gov.gds.router
import mongodb.MongoDatabase
import org.scalatest.{BeforeAndAfterEach, FunSuite}
import util.Logging
import uk.gov.gds.router.mongodb.MongoDatabase.database
abstract class MongoDatabaseBackedTest extends FunSuite with BeforeAndAfterEach with Logging {
protected val cleanOutDatabaseBeforeE... |
package dict
import (
"bufio"
"math"
"os"
"strconv"
"strings"
"sync"
)
const (
idSize32 = 32 / 8
minRawSize32 = idSize32 + MinKeyLen + 1
maxRawSize32 = idSize32 + MaxKeyLen + 1
MaxSize32 = math.MaxUint32 * maxRawSize32
)
type Dict32 struct {
dict map[string]uint32
rev map[uint32]string
lastID uin... |
export { CompositeRecognizer } from './composite_recognizer';
export { NumberRecognizer } from './number_recognizer';
|
package com.bytebyte6.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.bytebyte6.common.baseModule
import com.bytebyte6.common.getSuccessData
import com.bytebyte6.common.isLoading
import com.bytebyte6.data.dataModule
import co... |
package tem
import (
"github.com/pkg/errors"
"github.com/szuwgh/temsearch/pkg/engine/tem/mem"
"github.com/szuwgh/temsearch/pkg/lib/logproto"
)
var blockErr = errors.New("log channel block")
type serieserFunc func(string) *mem.MemSeries
type tokenerFunc func(*logproto.Entry) mem.LogSummary
//
type station struct... |
require File.expand_path(File.join('.', 'spec_helper'), File.dirname(__FILE__))
include DTest
describe Global::Manager, 'GlobalHarness can only be defined once' do
include_context 'dtest'
after do
Global::Manager.instance.clear
Test::Manager.instance.clear
end
it "multiple_definition" do
GlobalHa... |
using System.Collections.Generic;
namespace Meeg.Configuration
{
public interface IAppConfiguration
{
string this[string key] { get; }
IAppConfigurationSection GetSection(string key);
IEnumerable<IAppConfigurationSection> GetChildren();
}
}
|
/*
Flíper
https://www.urionlinejudge.com.br/judge/pt/problems/view/2454
*/
#include <iostream>
#include <cstdlib>
using namespace std;
int main(void) {
ios::sync_with_stdio(false);
int P, R;
cin >> P >> R;
if (P == 0) cout << "C";
else if (R == 0) cout << "B";
else cout << "A";
cout <... |
#include <JCDT_Lib/internal/classfmt/AnnotationDefaultAttribute.inl>
#include <JCDT_Lib/internal/classfmt/ClassFile.inl>
namespace Jikes { // Open namespace Jikes block
AnnotationDefaultAttribute::AnnotationDefaultAttribute(ClassFile& buffer)
: AttributeInfo(ATTRIBUTE_AnnotationDefault, buffer)
{
default_valu... |
namespace CarbonComic
{
public delegate void ExtractionProgressHandler(object sender, ExtractionProgressEventArgs e);
}
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Session_web extends Cron_Controller {
function __construct()
{
parent::__construct();
$this->eins_log->init([
'log_name' => 'session_clear'
]);
}
public function housekeeping()
{
$thi... |
(ns spirit.essence.common
(:require [hara.common.checks :refer [boolean?]]))
(def base
{:type {:default :string}
:cardinality {:check #{:one :many}
:default :one}
:doc {:check string?}
:unique {:check #{:value :identity}}
:index {:check boolean?}
:req... |
import { IRenderContextClient } from "@micro-frame/browser/types";
import { TemplateDescriptor } from "./types";
const createElement = (descriptor: TemplateDescriptor, context: IRenderContextClient): Text | HTMLElement => {
switch (typeof descriptor) {
case 'function':
return createElement(descriptor(conte... |
package com.jutt.remote.api.models
/**
* marker interface for all models that are returned or sent to the remote layer
*/
interface RemoteModel |
$version = Get-Content "Version" -Raw
echo $version
nuget pack Asphalt-ModKit\\Asphalt-ModKit.nuspec -Version $version |
#!/bin/bash
# (C) 2021 GoodData Corporation
if [ -z "$1" ]; then
echo "Usage: $0 <service_name>"
echo ""
echo "Use this script for rebuilding services, including volume if exists."
exit 1
fi
DC_FILES="-f docker-compose.yaml"
SERVICE=$1
echo "[SERVICE $SERVICE] Delete container ..."
docker-compose $DC_FILES r... |
CREATE TABLE public.advertiser (
device_id numeric(3,0) NOT NULL,
name character varying NOT NULL,
booking_country character varying NOT NULL,
id numeric NOT NULL,
last_updated character varying NOT NULL,
status character varying NOT NULL,
currency character varying NOT NULL,
mana... |
package com.homedepot.lambdadepot.collection
import io.lambdadepot.collection.Tuple1
import io.lambdadepot.collection.Tuple2
import io.lambdadepot.collection.Tuple3
import io.lambdadepot.collection.Tuple4
operator fun <T1> Tuple1<T1>.component1(): T1 = t1
operator fun <T1> Tuple2<T1, *>.component1(): T1 = t1
operato... |
from pykeg.core.management.commands.common import RunnerCommand
class Command(RunnerCommand):
help = "Runs background task queue workers."
pidfile_name = "kegbot_run_all.pid"
def add_arguments(self, parser):
super(Command, self).add_arguments(parser)
parser.add_argument(
"--gu... |
# enum-types
A library of useful enum classes.
# Installation
```bash
npm install @brandonpapworth/enum-types
```
# Usage
@TODO
|
#include "../include/builtin_cmd.h"
#include "../include/ush.h"
uls::uls(char *_now_path) {
now_path = _now_path;
}
#ifdef _WIN32
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <vector>
#include <string>
using namespace std;
void uls::run(int argc, char* args[])
{
WIN32_FIND_DATA findData;
... |
# !/usr/bin/env python
#
# Imports
#
try:
import json
from common import communicate
except ImportError:
raise ImportError("Import failed to load in account.py.")
#
# Account Class
#
class Account:
def __init__(self):
self._url = None
self._response_summary = None
self._respon... |
#!/usr/bin/perl
use warnings;
use strict;
use 5.10.0;
my %dt = (
add => \&add,
subtract => \&subtract,
multiply => \&multiply,
divide => \÷,
'exit' => sub { say "\nGoodbye!\n"; exit; },
);
while (1) {
system( "clear" );... |
import { all, put, call, takeLatest } from "redux-saga/effects";
import * as auth from "./services";
import * as actions from "./actions";
import * as types from "./types";
function *createForum ({ data }) {
yield put({ type: types.SHOW_LOADING });
try {
const response = yield call(auth.createForum, data);
... |
/* PR target/66112 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
unsigned int
foo (long long a, long long b)
{
unsigned int res;
a &= ~0U;
b &= ~0U;
if (__builtin_mul_overflow (a, b, &res))
res = 0x123U;
return res;
}
/* { dg-final { scan-assembler "jn?o\[ \t\]" } } */
|
#
# Base XML format parser
#
# Provides basic utilities that any XML-based
# parser would want access to.
#
#
class BaseXmlParser < CitationParser
def initialize()
super
end
#Decode any XML entities after they've been parsed into a Hash.
# For example, this performs the following translations:
# &ap... |
from itertools import *
r1 = range(3)
r2 = range(2)
print('zip stops early:')
print(list(zip(r1, r2)))
print(list(zip(r2, r1)))
r1 = range(3)
r2 = range(2)
print('\nzip_longest processes all of the values:')
print(list(zip_longest(r1, r2)))
print(list(zip_longest(r2, r1)))
|
require "rails_helper"
feature "Taxonomy topic change requests" do
# In order to be able to tag my content to the most relevant part of the taxonomy on gov.uk
# As a government employee
# I want a means to ask GDS to change an existing topic in the taxonomy
let(:user) { create(:content_requester, name: "John ... |
package com.epam.drill.admin.common
import kotlinx.serialization.*
@Serializable
sealed class WsReceiveMessage {
abstract val destination: String
abstract val message: String
}
@Serializable
@SerialName("SUBSCRIBE")
data class Subscribe(
override val destination: String,
override val message: String ... |
// @@@ START COPYRIGHT @@@
//
// 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... |
module ActiveRecordAddons::Relation
# Emits the "where clause" portion of the query as interpolated SQL
def to_where_clause
connection.unprepared_statement do
connection.to_sql where_clause, where_clause.binds
end
end
end
|
declare module "lodash.template" {
import type { template } from "lodash";
declare module.exports: typeof template;
}
|
angular.module('kickstarter', [
'ui.router',
'ngMaterial',
])
.config(($mdThemingProvider) => {
$mdThemingProvider.theme('default')
.primaryPalette('light-blue')
.accentPalette('pink')
.warnPalette('red')
.backgroundPalette('grey');
$mdTheming... |
package com.jyhuang.java.utils;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
public class EmailAuthenticator extends Authenticator {
// 创建单例邮件账户信息
private static EmailAuthenticator emailAuthenticator = new EmailAuthenticator();
private EmailAuthenticator() {
}
sta... |
/*
* Copyright (c) 2021, The OpenThread Authors.
* 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 copyright
* notice, this ... |
---
title: C++ 7주차 요약
author: Gi-Chang Kim (Panther)
date: 2021-10-19 18:57 +0900
categories: [Inst, CPP]
tags: [cpp, inst, summary]
---
## 객체와 멤버 호출
클래스에서는 멤버 변수는 private 속성을 가지고있어 외부에서 접근이 불가능하므로 public 속성을 가지고 있는 멤버 함수를 이용해 외부에서 접근한다.
### 멤버 호출
직접참조연산자 : .
- 일반 객체가 멤버변수, 함수에 접근하기 위해 사용한다.
간접참조연산자 : ->
- 포인터 객... |
require File.expand_path(File.join(File.dirname(__FILE__), "..", "parser_test_helper"))
class ArgumentsTest < Test::Unit::TestCase
include PDocTestHelper
include EbnfArguments
def setup
@parser = EbnfArgumentsParser.new
end
def test_no_arguments
assert_parsed " "
assert_parsed ""
asser... |
// Copyright (c) MicroElements. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections;
using System.Collections.Generic;
using MicroElements.CodeContracts;
using MicroElements.Reflection.TypeExtensions;
using M... |
describe('slots test', () => {
beforeEach(() => {
cy.goToView('slotsComponents');
});
it('renders fully working react class components as slots', () => {
cy.getByDataTest('react-class-counter-label').should(
'have.text',
'Times I want to shoot myself:'
);
cy.getByDataTest('react-class... |
package de.jkitberatung.ica.wsh.events;
import com4j.*;
/**
* _IScreenShotEvents Interface
*/
@IID("{785A16E9-4E42-4C87-84AD-BFB4A60570A3}")
public abstract class _IScreenShotEvents {
/**
* method OnUpdate
*/
@DISPID(1)
public void onUpdate(
java.lang.String bitmapHash) {
t... |
---
layout: page
title: 關於我 about me
---
## 一點介紹
* 了恨也好 遺恨也好 獨孤天涯兩無恨 無來無去 無代誌 自是不歸歸便得 故鄉風月有誰爭 <br>
* 認真 認錯 認輸!!! 笑別人 小情小愛自己 只有小考大考笑別人 愛恨情仇自己 只留下恨與仇 <br>
* 比不上 人家 "A fitness training enthusiast who keeps striking a balance between worlds of engineering and music." <br>
* 當不了 快樂 女友 社團 正面 奮鬥 發光 逕博 出國 大學生
## 一些連結
1.高能... |
import { model, Schema } from 'mongoose'
const departmentSchema = new Schema({
name: { type: String, required: true },
})
const Department = model('Department', departmentSchema)
export default Department
|
package com.example.dong.config;
import com.example.dong.repository.dataobject.BaseEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.persistence.PostPersist;
import javax.persistence.PrePersist;
/**
*
* @Author: 廖冬年
* @Date: 2022/3/2 1:18 PM
* 这个在mongo 上不生效
... |
<?php
namespace App\Backend\Submodules\Weixincard\Models;
class CodeDeposit extends \App\Common\Models\Weixincard\CodeDeposit
{
use \App\Backend\Models\Base;
private $_weixin;
/**
* 设置微信对象
*/
public function setWeixin(\Weixin\Client $weixin)
{
$this->_weixin = $weixin;
... |
#!/bin/sh
#
# iTerm Setup
# Install the iTerm theme
open "$DOTFILES/iterm/themes/palenight.itermcolors"
# Specify the preferences directory
defaults write com.googlecode.iterm2 "PrefsCustomFolder" -string "$DOTFILES/iterm"
# Tell iTerm2 to use the custom preferences in the directory
defaults write com.googlecode.ite... |
package com.itheima.code.util;
/****
* @Author:shenkunlin
* @Description:
* @Date 2019/6/14 18:27
*****/
public class JavaTypes {
/***
* 根据java.sql.Types的值返回java的类型
* @param value
* @return
*/
public static String getType(int value){
switch (value){
case -6:
... |
# 454289 beach.png
# 580777 cat.png
# 31049 happy-sun.png
# 53592 shinkansen-n700.png
function compress_sample_png() {
local name=${1}; shift
local png=${name}.png
local dir=${HOME}/tmp/pngpetite/${name}-${RANDOM}
local imgdir=${BATS_TEST_DIRNAME}/../samples/original
run_pngpetite "${imgdir}/${png}" "${di... |
const mongoose = require('mongoose')
const Post = new mongoose.Schema({
"author": {type:String,required:true},
"title": {type:String,required:true},
"content":{type:String,required:true},
"picture":{type:String,required:false}
})
module.exports = mongoose.model('Post',Post); |
from django.db import models
class Asset(models.Model):
"""
Model for storing all the assets of cryptocurrencies.
Used to check the existence of a cryptocurrency.
"""
value = models.CharField(max_length=200, blank=False)
|
package com.finyou.fintrack.backend.common.models
enum class FinTransactionOperation {
NONE, INIT, CREATE, READ, UPDATE, DELETE, SEARCH
}
|
#!/bin/sh
reply () {
if [ -z "${X_Callback_Url}" ]; then
echo $1
else
curl -X POST -H "Content-Type: application/json" -d $1 ${X_Callback_Url}
fi
}
json=$(cat)
projectUrl=$(echo $json | jq -r '.projectUrl')
server=$(echo $json | jq -r '.server')
user=$(echo $json | jq -r '.user')
password=$(ec... |
package com.projet.miniprojet.androidVox.models
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class ChatUser (
val firstName:String,
val username:String
) : Parcelable{
} |
package br.com.algorithms.machine.learning.supervisioned.tree.id3.data.instance;
import br.com.algorithms.machine.learning.exception.instances.NonExistentInstanceException;
import br.com.algorithms.machine.learning.supervisioned.tree.utils.TreeUtils;
import java.util.ArrayList;
import java.util.List;
import java.util... |
import '@formatjs/intl-pluralrules/polyfill-locales';
import {UnifiedNumberFormat} from '../src/core';
UnifiedNumberFormat.__addLocaleData(require('../dist/locale-data/zh.json'));
UnifiedNumberFormat.__addLocaleData(
require('../dist/locale-data/zh-Hant.json')
);
UnifiedNumberFormat.__addLocaleData(
require('../dis... |
#!/bin/bash
OLD_PATH="${HOME}/.ddns_clnt"
HOST="test"
DOMAIN="example.com"
n_gip=$(curl -s globalip.me)
o_gip=$(cat ${OLD_PATH})
if [ "${n_gip}" != "${o_gip}" ]; then
onamaeddns ${HOST} ${DOMAIN} ${n_gip}
echo -n ${n_gip} > ${OLD_PATH}
fi
|
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
[Header("GUI Settings")]
public Joystick joystick;
[Header("Player Settings")]
public float runSpeed = 10.0f;
public float jumpSpeed = 10.0f;
[Tooltip("T... |
package com.hartwig.hmftools.extensions.cli.options.enums
import com.hartwig.hmftools.extensions.cli.createCommandLine
import com.hartwig.hmftools.extensions.cli.options.HmfOptions
import io.kotlintest.matchers.shouldBe
import io.kotlintest.matchers.shouldThrow
import io.kotlintest.specs.StringSpec
import java.io.IOEx... |
import pytest
import numpy as np
from numpy.testing import assert_allclose
from quimb import (
prod,
rand_ket,
rand_pos,
rand_herm,
partial_transpose,
eigvalsh,
neel_state,
ham_heis,
logneg,
negativity,
entropy,
can_use_mpi_pool,
)
from quimb.utils import last
from quim... |
#include "stdafx.h"
#include "EntityPool.h"
#include "Manager/Physic/PhysicMgr.h"
#include "Manager/Level/LevelMgr.h"
#include "Manager/Input/InputMgr.h"
#include "Thread/LoadingThread.h"
#include "Utils/containerUtils.h"
EntityPool::EntityPool(int size)
:m_poolSize(size)
{
m_entitys.reserve(size);
for (int i = 0; ... |
az login --service-principal --username "$AZ_APP_ID" --password "$AZ_SP_SECRET" --tenant "$AZ_TENANT_ID"
az account get-access-token --query "accessToken"
func azure functionapp publish $AZ_FUNCTIONS_APP_NAME --build-native-deps --force
|
# Hash Tables
* Find the first repeated word in a book.
## Challenge
* Write a function that accepts a lengthy string parameter.
* Without utilizing any of the built-in library methods available to your language,
return the first word to occur more than once in that provided string.
## Challenge Description
* Utili... |
import styled from "styled-components";
export const StyledSection = styled.div`
display: flex;
flex-direction: column;
margin-top: 150px;
@media (max-width: 600px) {
margin-top: 0;
}
`
export interface StyledChildrenProps {
paddingTop: number;
paddingBottom: number;
flexDirection?: strin... |
import { Classroom, IHousing } from "../../db/models";
export const Housing = {
classrooms(housing: IHousing) {
return (housing as any).getClassrooms();
}
};
|
# frozen_string_literal: true
module Danica
class Operator::Cos < Operator::Functional.build(operator: :cos)
end
end
|
---
title: Testimonial write-刷评论对lead转化的重要性
layout: post
author: jane
categories: 客户转化
image: assets/images/home.jpg
tags: leads
---
一种新的思路,通过网站大量的testimonial信息去快速获取客户认同和信任
#### 可参考的相关文章
- https://blog.workspoke.com/20-freelancer-testimonial-pages-to-inspire-your-own-wowing-showcase-d307e3f53527
-
<!--stackedit_data... |
module FactoryLinter
# Add @block accessor to attribute
using(Module.new do
refine FactoryBot::Attribute do
attr_reader :block
end
end)
module Utils
module_function
# Checks whether the definition uses SecureRandom
def secure_random?(attr)
attr.block.source.match?(/SecureRandom... |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Stream.HTTP2.Types where
import Control.Concurrent.STM
import Control.Exception (SomeException)
import Control.Monad
import... |
package osp.leobert.utils.mocker.handler
import osp.leobert.utils.mocker.MockContext
import java.lang.reflect.Field
import java.lang.reflect.Type
/**
* <p><b>Package:</b> osp.leobert.utils.mocker.handler </p>
* <p><b>Project:</b> Mocker </p>
* <p><b>Classname:</b> MapMockHandler </p>
* Created by leobert on 2020/... |
package com.evolutiongaming.stracer
final case class Tag(
name: String,
value: String
)
|
-module(ai_ding_organization).
-include("ai_ding.hrl").
-export([department/2,department/3]).
-export([departments/2,departments/1,departments/3]).
-export([departments_id/2,departments_id/1]).
-export([department_parent_departments/2,user_parent_departments/2]).
-export([department_member/1,department_member/2,
... |
package processors
import (
"context"
"io"
"github.com/diamnet/go/ingest"
"github.com/diamnet/go/support/errors"
)
type ChangeProcessor interface {
ProcessChange(ctx context.Context, change ingest.Change) error
}
type LedgerTransactionProcessor interface {
ProcessTransaction(ctx context.Context, transaction i... |
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.samples.connectors.ldap.properties;
/**
* LDAPUserAccount describes a single user in LDAP.
*/
public class LDAPUserAccount extends LDAPEntry
{
private String userId = null;
private... |
package uk.ac.bris.cs.databases.api;
import uk.ac.bris.cs.databases.util.Params;
/**
* Simplified summary view of a topic. Just displays the title and ids.
* @author csxdb
*/
public class SimpleTopicSummaryView {
/* The id of this topic. */
private final long topicId;
/* The id o... |
#!/bin/bash
if xrandr | grep -q "DisplayPort-0 connected"; then
$HOME/scripts/rotateleft-dualmonitor.sh
else
$HOME/scripts/rotateleft-singlemonitor.sh
fi
pkill -9 polybar
pkill -9 picom
touch $HOME/.config/i3/display_already_setup
i3-msg restart
|
#pragma once
#include <Grip.hpp>
#include <sstream>
class GameSampleD3D12 : public Grip::IGame
{
public:
GameSampleD3D12();
void Startup(Grip::Framework* pFramework) override;
void Shutdown() override;
void Update(double) override;
void RenderScene() override;
void RenderUI() override;
bool IsExit() co... |
// Copyright (C) 2020 - present Instructure, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 3 of the License.
//
// This program is distributed in the hope that it will be us... |
package org.mifek.wfc.models.options
import org.mifek.wfc.datatypes.Direction3D
data class Cartesian3DModelOptions(
val allowXRotations: Boolean = false,
val allowYRotations: Boolean = false,
val allowZRotations: Boolean = false,
val allowXFlips: Boolean = false,
val allowYFlips: Boolean = false,
... |
-- file:updatable_views.sql ln:654 expect:true
INSERT INTO rw_view1(a) VALUES (9)
|
#!/bin/bash
version=0.4.6
datapath=$(readlink --canonicalize .)
echo ${datapath}
# Inputs
inpDir=/data/input
groupingPattern="(\d+)-\d+-\d+"
labelCol=file
averageGroups=true
minClusterSize=10
incrementOutlierId=true
outDir=/data/output
docker run --mount type=bind,source=${datapath},target=/data/ --gpus=all \
... |
class Hash
def key_of_biggest_value
raise "Hash values include values that aren't a number." unless only_numeric_values?
key(values.max)
end
private
def only_numeric_values?
values.each { |v| return false unless v.is_a? Numeric }
true
end
end
|
# hello-world
this is hello to the world repository
I do this for the first branch of readme edit
|
package com.imooc.os.dao;
import com.imooc.os.entity.Product;
import java.util.List;
public interface ProductDao {
void insert(Product product);
void update(Product product);
void delete(String id);
Product select(String id);
List<Product> select();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.