text stringlengths 27 775k |
|---|
/*
* 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 ma... |
# Report Suite Tools listed in Product Profile permissions
Use this page to understand each permission item under Report Suite Tools.
|
package list
import (
"fmt"
"reflect"
"strings"
"text/template"
"github.com/mantidtech/tplr/functions/helper"
)
// Functions operate on collections of items
func Functions() template.FuncMap {
return template.FuncMap{
"list": List,
"first": First,
"last": Last,
"rest": Rest,
"pop": ... |
import 'dart:async';
import 'package:seal_note/data/appstate/GlobalState.dart';
import 'dart:io' show Platform;
import 'package:seal_note/util/tcb/TcbSystemInfoHandler.dart';
enum UpdateAppOption {
NoUpdate,
OptionalUpdate,
CompulsoryUpdate,
HasError,
}
class AppUpdateHandler {
static Future<UpdateAppOpti... |
<?php declare(strict_types=1);
use ast\Node;
use Phan\Issue;
use Phan\Language\Element\Func;
use Phan\Language\Element\FunctionInterface;
use Phan\Language\Element\Method;
use Phan\PluginV3;
use Phan\PluginV3\PluginAwarePostAnalysisVisitor;
use Phan\PluginV3\PostAnalyzeNodeCapability;
/**
* Plugin which looks for em... |
#!/bin/sh
#
# Bourne shell script to create Xalan-C documentation pages
#
# SET THE LIBRARY PATH FOR YOUR OPERATING SYSTEM, REQUIRED BY "Xalan" PROGRAM
#
# SOLARIS AND LINUX
# export LD_LIBRARY_PATH=/usr/local/lib
#
# AIX AND BSD
# export LIBPATH=/usr/local/lib
#
# HPUX
# export SHLIB_PATH=/usr/local/lib
#
# MAC OS... |
import 'package:faker_dart/faker_dart.dart';
import 'package:faker_dart/src/utils/random_utils.dart';
/// {@macro internet}
class Internet {
/// {@macro internet}
Internet(this._faker);
final Faker _faker;
/// returns a random URL
///
/// e.g. `faker.internet.url() // https://optical-sensor.com`
String... |
# VisualEditor
VisualEditor provides a visual editor for wiki pages. It is written in
JavaScript and runs in a web browser.
It uses the Parsoid parser to convert wikitext documents to annotated HTML
which the VisualEditor is able to load, modify and emit back to Parsoid at
which point it is converted back into wikite... |
---
layout: post
title: MNIST For ML Begineers
date: 2018-02-09 20:52:43
categories: Deep Learning
tags: [PDF,Deep Learning,A.I.,Data Science]
---
本篇從Ubuntu建構Tensorflow實驗環境開始描述,並導入Google以Tensorflow建構DNN分類模型的介紹作為實驗方法。MNIST為阿拉伯數字0-9手寫的資料集,本文章為介紹使用DNN分類MNIST資料集。
<!--more-->
[PDF Download](/assets/2018-02-09-MNIST-For-ML-B... |
<?php
function getConexao(){
$dsn="mysql:host=localhost;dbname=bd_app;charset=utf8";
$user="root";
$pass="";
try{
$pdo = new PDO($dsn, $user, $pass);
return $pdo;
} catch (PDOException $e) {
echo "erro banco: ".$e->getMessage();
}
catch (Exception $e) {
... |
import pytest
from mxnet.util import use_np
from mxnet.gluon.data import DataLoader
import numpy as np
import numpy.testing as npt
import tempfile
import pickle
import os
from sklearn.model_selection import train_test_split
from autogluon.core.utils.loaders import load_pd
from autogluon.text.text_prediction.mx.preproce... |
package com.jama.mpesa_biz_no_detector.states
import android.graphics.Bitmap
sealed class CameraFlowState {
object Detecting: CameraFlowState()
object Detected: CameraFlowState()
object Confirming: CameraFlowState()
data class Confirmed(val bitmap: Bitmap): CameraFlowState()
} |
plugins {
kotlin("jvm") version "1.3.60"
}
repositories {
jcenter()
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.5.2")
}
|
#!/bin/bash
# Tools for working with bash.
reload_shell() {
clear
source $HOME/.bashrc
}
SETUP_SCRIPT=https://raw.githubusercontent.com/matthewbradshaw-io/monorepo/main/shell/setup_local.sh
revolve_shell() {
bash <(curl -s $SETUP_SCRIPT)
reload_shell
}
|
package com.powerincode.questionnaire_app.di.modules.app
import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
import com.powerincode.questionnaire_app.data.api.TempService.TempService
import dagger.Module
import dagger.Provides
import retrofit2.Retrofit
import retrofit2.converter.mosh... |
package com.saraha.paws.View.AccountViews.Profile
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import com.saraha.paws.Model.User
import com.saraha.paws.Repository.UserRepository
import com.saraha.paws.Util... |
import * as React from "react";
import PropTypes from "prop-types";
import { DataGrid } from "@mui/x-data-grid";
const columns = [
{ field: "id", headerName: "ID", width: 160 },
{ field: "name", headerName: "Name", width: 160 },
{ field: "email", headerName: "Email", width: 300 },
];
export default function Use... |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package opengl.templates
import org.lwjgl.generator.*
import opengl.*
val AMD_gpu_shader_int64 = "AMDGPUShaderInt64".nativeClassGL("AMD_gpu_shader_int64", postfix = NV) {
documentation =
"""
Native bind... |
; ::: data1.txt
0001_1000
; ::: data2.txt
101
; ::: data3.txt
0101
1010
1 1 1 1
0101
1010
; ::: data4.txt
0b1101
; :::
#d incbinstr("data1.txt") ; = 0x18
; :::
#d incbinstr("data2.txt") ; = 0b101
; :::
#d incbinstr("data3.txt") ; = 0x5af5a
; :::
#d incbinstr("data4.txt") ; error: invalid character
; :::
#d ... |
package com.waes.diffservice.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class JsonDifference {
private final String operation;
private final String path;
private final String value;
}
|
// Comparador mayor que y menor que
const dinero = 500, totalAPagar = 300
if(dinero > totalAPagar){
console.log('Si podemos pagar')
} else {
console.log('Fondos insuficientes')
} |
var Sequence = require('./Sequence');
var Util = require('util');
var Packets = require('../packets');
module.exports = Quit;
Util.inherits(Quit, Sequence);
function Quit(callback) {
Sequence.call(this, callback);
}
Quit.prototype.start = function() {
this.emit('packet', new Packets.ComQuitPacket)... |
export default {
Query: {
hello: () => 'Hello world!',
nodeVersion: () => process.version
}
};
|
#!/bin/sh
adb wait-for-device
adb -e push install.sh /data/local/tmp
adb -e shell "su -c 'sh /data/local/tmp/install.sh /data/local/tmp'"
|
<?php
/**
* Created by PhpStorm.
* User: Rubén
* Date: 25/06/2019
* Time: 20:58
*/
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="replic")
*/
class Replic
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer"... |
using Snouthill.Game;
namespace Snouthill.Net.Packets.Catalog;
[RequestOpcode(100)] // "GRPC"
public record BuyItemRequest(
string PageName,
string SaleCode,
string ExtraData,
bool IsGift,
string? GiftRecipient,
string? GiftMessage) : IRequest;
public class BuyItemRequestDeserializer : IRequ... |
require 'matrix'
require 'mb-math'
require 'mb-util'
require_relative 'geometry/version'
module MB
# Inefficient algorithms for some basic geometric operations.
module Geometry
class << self
# Finds the line intersection, if any, between two lines given coordinates
# in the form used by rubyvor (... |
# CHANGELOG - istio
1.0.0 / 2018-03-23
==================
### Changes
* [FEATURE] Adds Istio Integration
|
package org.usfirst.frc.team2083.commands.groups;
import org.usfirst.frc.team2083.commands.ArmCommandPos;
import org.usfirst.frc.team2083.commands.GripperCommand;
import org.usfirst.frc.team2083.commands.WristCommandPos;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class PowerCubeCatch extends CommandGr... |
from mixcoatl.resource import Resource
from mixcoatl.decorators.validations import required_attrs
from mixcoatl.decorators.lazy import lazy_property
from mixcoatl.utils import camelize, camel_keys, uncamel_keys
import json
class MachineImage(Resource):
""" A machine image is the baseline image or template from w... |
/// <reference path="../node_modules/pxt-core/built/pxteditor.d.ts" />
namespace pxt.editor {
initExtensionsAsync = function(opts: pxt.editor.ExtensionOptions): Promise<pxt.editor.ExtensionResult> {
pxt.debug('loading microbit target extensions...')
const res: pxt.editor.ExtensionResult = {
... |
require 'paysecure/api'
require 'paysecure/configuration'
require 'paysecure/logger'
require 'paysecure/request'
require 'savon'
module HTTPI
module Adapter
class NetHTTP < Base
alias request_old request
def request(method)
@request.ssl = true
@request.auth.ssl.ssl_version = :TLSv1
... |
package global.msnthrp.scanner.utils
import android.view.View
fun View.setVisible(visible: Boolean) {
if (visible) show() else hide()
}
fun View.show() {
visibility = View.VISIBLE
}
fun View.hide() {
visibility = View.GONE
} |
# D-fine
A webapp to define words and phrases
## How to use
* Install [Redis](http://redis.io/) (2.0+)
* Setup virtualenv
<pre>
virtualenv --no-site-packages ./
. bin/active
pip install -r requirements.txt
</pre>
* Run the Webapp
<pre>
python webserver.py
</pre>
Note: D-fine *will* work without re... |
# -*- coding: utf-8 -*-
=begin rdoc
Blob file methods for accessing a blob via the filesystem.
Exclusively for the Blob class.
=end
class Blob
# Get the blob file's dir name e.g. "/my/photos".
#
# This impl calls #dir which is typically fine.
#
# Override this if the local storage file dir
# name is di... |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}
-- | Unit Tests
module Main where
import Test.Tasty.QuickCheck
import Test.Tasty.HUnit
import Test.Tasty
import Types -- Arbitrary instances
import Ray
import Ray.Imports
main ::... |
# frozen_string_literal: true
# ProjectContext join table model
class ProjectContext < ActiveRecord::Base
validates_presence_of :project, :context
belongs_to :project
belongs_to :context
end
|
package com.example.babyweather.mode;
import java.util.List;
import com.example.babyweather.R;
import com.example.babyweather.mode.MainListAdapter.ViewHolder;
import com.zcw.togglebutton.ToggleButton;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... |
/* for development mode */
const argv = require('yargs/yargs')(process.argv.slice(2)).parse()
const execa = require('execa')
async function run() {
const { theme = 'default', env = 'development' } = argv
const cmdStr = `cross-env NODE_ENV=development NUXT_APP_ENV=${env} NUXT_APP_THEME_NAME=${theme} node server/in... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
namespace Azure.AI.MetricsAdvisor.Models
{
/// <summary>
/// Used as part of a <see cref="MetricBoundaryCondition"/>. Specifies which measure type should be
/// used when checking boundaries.... |
// Load up the angular formly module
import index from './index.common'
// Bring in the test suites
import './providers/formlyApiCheck.test'
import './providers/formlyConfig.test'
import './services/formlyUtil.test'
import './directives/formly-custom-validation.test'
import './directives/formly-field.test'
import './d... |
import { SubtitleModel, GetSubtitleRepository } from './db-get-subtitle-protocols'
import { DbGetSubtitle } from './db-get-subtitle'
const makeFakeSubtitle = (): SubtitleModel => ({
id: 'valid_id',
language: 'valid_language',
external_id: 'valid_external_id',
sent_to_creation: true,
file_id: 'valid_file_id'... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using p1_2.Data;
using p1_2.Models;
namespace p1_2.Controllers
{
public class StoreController : Controller
{
private readonly BookopolisDb... |
//go:build unit
// +build unit
//
// Code generated by MockGen. DO NOT EDIT.
// Source: psql_psql_upsert.go
// Package mock_models is a generated GoMock package.
package mock_models
|
/*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... |
var env = require('../..')('parent');
env.foo = 10;
require('./parent.child');
|
import css from 'styled-jsx/css'
export default css`
.side-item {
align-items: center;
justify-content: center;
display: flex;
cursor: pointer;
}
.side-item-expand {
display: flex;
flex: 1 1 auto;
}
.side-icon-expand.expand {
width: 72px;
}
.side-icon-expand {
width: 72px... |
namespace BlazorBrowserStorage
{
public interface ISessionStorage : IStorage { }
}
|
using System.IO;
namespace Microsoft.Extensions.Logging.Terminal
{
public delegate void TerminalLoggerWriter(TerminalLoggerOptions options, TerminalWriter writer,
in TerminalLoggerEntry entry);
}
|
/*!
* @file jvmutil.c
*
* @brief Utilities for operating the JVM on this
* real machine implementation.
*
*
* @section Control
*
* \$URL$
*
* \$Id$
*
* Copyright 2005 The Apache Software Foundation
* or its licensors, as applicable.
*
* Licensed under the Apache License, Version 2.0 ("the License");
* ... |
#!/bin/bash
# remove directories
rm -rf bower_components node_modules build
# install node modules (e.g., bower, grunt-cli)
npm install
# install bower dependencies
bower install
# copy bower dependencies into source directory
grunt bowercopy |
module.exports = ctx=>({
dest:'dist',
title: "K-Sword",
description: "Study well and make progress every day. ",
locales: {
'/': {
lang: 'zh-CN',
title: 'K-Sword',
description: '🌈 一个 JavaScript/TypeScript 实用程序库。'
}
},
head: [
['link', { rel: 'icon', href: `/favicon.ico` }],
... |
import { HeatmapShape2d, HeatmapShape3d, GridHeatmapLayerStyleOptions, HeatmapLayerConfig } from '../../types';
import { GridAggregation, ISourceCFG, Source } from '../../types';
/**
* 数据配置
*/
export interface GridLayerSourceOptions extends Pick<ISourceCFG, 'parser' | 'transforms'> {
data: any;
/**
* 方格网格聚合
... |
select name, bonus
from
(Employee left join Bonus on Employee.empId = Bonus.empId)
where (bonus < 1000 or bonus is null); |
# -*-coding:utf-8 -*-
"""
Created on 2016-8-16
@author: Danny<manyunkai@hotmail.com>
DannyWork Project
"""
from __future__ import unicode_literals
import uuid
from hashlib import md5
from bs4 import BeautifulSoup
def gen_sign(params, key):
"""
签名生成函数
:param params: 参数,dict 对象
:param key: API 密钥
... |
SUBROUTINE ATMO62(H,RHO,ASOUND,TEMP,PRES)
C
C 'ATMO62' IS THE ATMOSPHERIC MODEL BASED ON THE U.S.
C STANDARD ATMOSPHERE OF 1962
C
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION TB(26),HB(26),BM(26),R(26),PB(26),TWTM(26)
DATA TB /
1 320.65D0, 288.15D0, 216.65D0, 216.65D0, 228.65D0,... |
# Getting Started
We're glad to have you joining us, taking a few minutes to read the
following pages will help you be a better member of our community:
- Our [Code of Conduct](../code-of-conduct.md) is important to us, and helps us maintain a healthy community.
- We also have a [guide to help you learn where to ... |
require 'spec_helper'
describe 'Admin - Orders' do
it 'Supplier should not be authorized' do
login_as create(:supplier_user)
visit spree.admin_orders_path
expect(page).to have_content('Authorization Failure')
end
end
|
<?php
namespace App\Http\Controllers;
use App\Models\Task;
use App\Models\User;
use App\Models\Branche;
use App\Models\TaskStatus;
use App\Models\Administration;
use App\Models\TasksType;
use App\Models\Section;
use App\Models\employee;
use Validator;
use Illuminate\Support\Facades\Session;
use Illuminate\Http\Re... |
//
// Copyright 2020 Google Inc.
//
// 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... |
package run.halo.app.model.entity;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
/**
* Sheet comment.
*
* @author johnniang
* @date 19-4-24
*/
@Entity(name = "SheetComment")
@DiscriminatorValue("1")
public class SheetComment extends BaseComment {
}
|
### A Pluto.jl notebook ###
# v0.14.0
using Markdown
using InteractiveUtils
# ╔═╡ b2d786ec-7f73-11ea-1a0c-f38d7b6bbc1e
md"""
# The Basel problem
_Leonard Euler_ proved in 1741 that the series
```math
\frac{1}{1} + \frac{1}{4} + \frac{1}{9} + \cdots
```
converges to
```math
\frac{\pi^2}{6}.
```
"""
# ╔═╡ b2d79330... |
import DropOffType from "../../../../enums/DropOffType";
import PickupType from "../../../../enums/PickupType";
import TravelMode from "../../../../enums/TravelMode";
const connections = [
{
value: {
"id": "2a",
"travelMode": TravelMode.Train,
"arrivalStop": "http://irail.be/stations/NMBS/00889... |
require "test_helper"
describe User do
let(:auth_hash) do
{
provider: "google",
uid: "12345",
info: {
name: "Stub User",
email: "stub.user@example.org",
image: "https://example.org/image.jpg",
},
}
end
it "can be created from an auth hash" do
user = Us... |
#!/bin/bash
set +e
. /opt/cloud-deploy-scripts/common/env.sh
. /opt/cloud-deploy-scripts/$cloud_provider/env.sh
# It is required to bind to all interfaces for load balancer on GCP to work
if [ "$cloud_provider" == "gcp" ]; then
export BIND_TO_ALL="true"
fi
/opt/cloud-deploy-scripts/common/config-es.sh
/opt/cloud... |
package com.appframework;
import com.tengmoney.gui.AppPage;
import com.tmoney.foundation.utils.Configuration;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import lombok.extern.slf4j.Slf4j;
import org.openqa.selenium.By;
import static com.tmoney.foundation.utils.Configuration.... |
package de.metzgore.beansplan.util.di.modules
import dagger.Module
import dagger.Provides
import de.metzgore.beansplan.dailyschedule.DailyScheduleFragment
import de.metzgore.beansplan.weeklyschedule.WeeklyScheduleFragment
@Module
class FragmentModule {
@Provides
fun provideDailyScheduleFragment(fragment: Dai... |
<?php
namespace app\shop\controller;
// use think\View;
use think\Controller;
class Index extends Controller
{
public function Index(){
return $this->fetch();
}
}
|
import Model from "ember-data/model";
import { belongsTo } from "ember-data/relationships";
export default Model.extend({
channel: belongsTo( "twitchChannel", { async: false } )
}).reopenClass({
toString() { return "kraken/search/channels"; }
});
|
<?php
namespace App\Listeners;
use App\Events\UsersubscripedToStack;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\SheetResponse;
class CreateUserSheetsRecord
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct... |
---
layout: page
title: On Turing machines with syntactic restrictions
---
On Turing machines with syntactic restrictions
======
### by Dr. Keisuke Nakano
- When: Friday, 22/10/2021, between 9am and 10am EDT (1pm-2pm UTC)
- Where: Zoom; Outside guests please RSVP by emailing <a href="mailto:harley.eades@gmail.com">Ha... |
// Package dmc provides application with APIs for obtaining Delegated Machine Credentials (DMC)
//
// Run go tests
//
// You need to do the followings to have a successful run of go unit tests:
// 1. Install Centrify Client (version 21.5 or later) on the system.
// 2. Enroll Centrify Client to a PAS tenant:
// - e... |
---
title: Dynamic Script Refresh
parent: Developer Tools
has_children: false
nav_order: 50
---
## {{page.title}}
A concept of the MDI apps framework is to allow the framework
and app code to be viewed and updated in an app
while it is running.
### Re-sourcing app scripts without page reload
One part of this is th... |
module CBR
class Similarity
class NumericSimilarity < Similarity
def initialize(opts={})
opts[:borderpoints] = Hash[opts[:borderpoints].map {|k, v| [BigDecimal.new(k, 4), v]}]
super(opts)
end
def compare(real_value)
real_value = BigDecimal.new(real_value, 4)
sco... |
# AsteroidOSLinux
AsteroidOS Linux control application
## Prerequisites
- pydbus
- mpd
- pyowm
Get the necessary modules with:
```
pip3 install pydbus python-mpd2 pyowm
```
## Setup
Get the files:
```
git clone https://github.com/atx/AsteroidOSLinux.git
```
Switch to the directory:
```
cd AsteroidOSLi... |
FactoryGirl.define do
factory :player do
sequence(:nickname) { |n| "nick_name_cater_#{n}" }
association :member
end
end
|
default[:delayed_job][:timeout] = 60
default[:delayed_job][:bin] = "bin/delayed_job"
default[:delayed_job][:suffix] = ""
default[:delayed_job][:options] = ""
|
When(/^the membership count job runs$/) do
MembershipCount.perform
end
When(/^the membership coverage job runs$/) do
MembershipCoverage.perform
end
When(/^the membership renewals job runs$/) do
MembershipRenewals.perform
end |
using UnityEngine;
using System.Collections;
public class GearHold : MonoBehaviour
{
Collider2D hit;
int mask;
void Awake()
{
mask = 1 << LayerMask.NameToLayer("Interactable");
}
void FixedUpdate()
{
hit = Physics2D.OverlapPoint(transform.position, mask);
if (hit !... |
<?php
return [
1010001 => '参数错误',
1010025 => '操作失败',
];
|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _createClass = (function() {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;... |
// Copyright 2014 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.
#ifndef SERVICES_WINDOW_MANAGER_FOCUS_RULES_H_
#define SERVICES_WINDOW_MANAGER_FOCUS_RULES_H_
#include "mojo/services/view_manager/public/cpp/types.h"
#i... |
#include "urg3d_sensor.h"
#include <string.h>
#if defined(URG3D_WINDOWS_OS)
#else
#include <unistd.h>
#endif
#include <stdio.h>
#include <stdlib.h>
urg3d_data_range_intensity_t data_range_intensity;
urg3d_data_ax_t ax_data;
urg3d_vssp_header_t header;
urg3d_range_header_t range_header;
urg3d_range_index_t... |
// Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package com.daml
package http.perf
import dbutils.ConnectionPool
import http.dbbackend.{DbStartupMode, JdbcConfig}
import testing.oracle.OracleAround
import scala.util.{Success, T... |
---
title: "Project: SAM-REST-API"
date: 2020-06-21
tags: [awsSAM]
header:
image: "/images/Toronto.jpg"
excerpt: "SAM, REST-API"
---
[REST-API created using AWS SAM and python](https://github.com/cheonu/REST-APIv1)
Created a REST-API using AWS SAM and python. Resources utilized include SAM Build and SAM Deploy and ... |
<?php
use frontend\assets\FrontendAsset;
use common\models\Settings;
$bundle = FrontendAsset::register($this);
/* @var $this yii\web\View */
$this->title = Yii::$app->name;
$site_setting=Settings::findOne(1);
?>
<script type="text/javascript">
(function (g) {
var s = document.createElement('script'),
t = document.getEl... |
package othello;
import othello.exception.CantPutException;
import othello.utils.Arrow;
import othello.utils.Coordinate;
public class Board {
private Disk[][] board = new Disk[8][8];
private Othello othello = null;
public Board() {
init();
}
private void init() {
this.board = n... |
#!/bin/bash
#
# Copyright (c) University of Luxembourg 2021.
# Created by Oscar Eduardo CORNEJO OLIVARES, oscar.cornejo@uni.lu, SnT, 2021.
#
PROJ=$1
PROJ_SRC=$2
PROJ_BUILD=$3
PROJ_ORIGINAL_BUILD=$4
FLAG=$5
SRC_MUTANTS=$6
COMPILED=$7
EXEC_DIR=$8
LOGFILE=$EXEC_DIR/main.log
mkdir -p $EXEC_DIR
touch $LOGFILE
if [ ! -f ... |
package model
import java.time.ZoneOffset
import implicits.Dates.jodaToJavaInstant
import com.gu.contentapi.client.model.v1.{
Asset,
AssetFields,
AssetType,
ElementType,
Content => ApiContent,
Element => ApiElement,
}
import com.gu.contentapi.client.utils.CapiModelEnrichment.RichOffsetDateTime
import conte... |
// The MIT License (MIT)
// Copyright (c) 2015 Y. T. Chung <zonyitoo@gmail.com>
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the righ... |
module Fibon.Analyse.Analysis (
Analysis(..)
, runAnalysis
, computeRows
, Normalize(..)
, NormMethod
)
where
import Data.List
import Data.Maybe
import qualified Data.Map as M
import Control.Monad.Error
import Fibon.Result
import Fibon.Analyse.AnalysisRoutines
import Fibon.Analyse.Parse
import Fibon.... |
---
layout: post
title: 《广告算法》学习笔记
subtitle: 搜索广告
date: 2019-05-09
author: Ann
header-img: img/post-bg-coffee.jpeg
catalog: true
tags:
- 广告算法
- 学习笔记
- 机器学习
---
> 本章主要对搜索广告的业务进行介绍,搜索广告模块可以分为**广告检索、广告排序、流量分配**三大子模块。
<div class="mermaid">
graph LR;
A(搜索广告)-.->B[广告检索]
A-.->C[广告排序]
... |
/*
* Copyright 2001-2013 Artima, Inc.
*
* 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 agre... |
# frozen_string_literal: true
require_relative 'simple_policy/version'
require_relative 'simple_policy/entity'
module SimplePolicy
end
|
/*! \brief Calculates the velocity of the vertices of a Voronoi face
\author Almog Yalinewich
\file calc_face_vertex_velocity.hpp
*/
#ifndef CALC_FACE_VERTEX_VELOCITY_HPP
#define CALC_FACE_VERTEX_VELOCITY_HPP 1
#include "geometry.hpp"
/*! \brief Calculates the velocity of the vertices of a Voronoi face
\param ... |
CREATE TABLE IF NOT EXISTS `wb_core`.`user` (
`ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci',
`Twitch_ID` INT(16) UNSIGNED NOT NULL,
`First_Seen` DATETIME NOT NULL DEFAULT current_timestamp() COMMENT 'When user was first added to the database',
PRIMARY KEY (`ID... |
package com.sonic.agent.maps;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author ZhouYiXun
* @des 本地自己维护一下设备状态
* @date 2021/08/16 10:26
*/
public class IOSDeviceManagerMap {
private static Map<String, String> deviceStatusMap = new ConcurrentHashMap<String, String>();... |
(uiop:define-package #:dag-gp/explicit-dag/parent-dependent-base/base
(:use #:cl
#:dag-gp/utils/distance
#:dag-gp/kernel
#:dag-gp/output)
(:export #:parent-dependent-gp
#:variational-parent-dependent-gp
#:variational-combined-output-parent-dependent-gp
... |
./../../bin/ring ../codegen/parsec.ring freeglut.cf ring_freeglut.c ring_freeglut.rh
|
#!/bin/bash
KUBEPLUS_NS=`kubectl get deployments -A | grep kubeplus-deployment | awk '{print $1}'`
if [[ $KUBEPLUS_NS == '' ]]; then
KUBEPLUS_NS=default
fi
kubectl delete deployments kubeplus-deployment -n $KUBEPLUS_NS
kubectl delete mutatingwebhookconfigurations platform-as-code.crd-binding
kubectl delete sa kubep... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.