text stringlengths 3 1.05M |
|---|
layout: steroids_build
header_title: Deploying to cloud
header_sub_title: Learn how to deploy your app to the AppGyver cloud and share it with others.
section_id: build-settings
subsection_id: deploying-to-cloud
parent_id: tooling
---
<section class="docs-section" id="deploying-to-cloud">
# Deploying your app to the c... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Bull. Soc. mycol. Fr. 10: 153 (1894)
#### Original name
Pseudographidiaceae L. Marchand
### Remarks
null |
package com.bouhanef.smart_package.test.config;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Component
public class SimpleCORSFilter implements Filter {
public void init(FilterConfig fc) throws ServletExcepti... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
/**
Register pre-defined routes into the express app instance
*/
exports.resolve = function(app){
var routes = require('../config/routes');
for (var route in routes){
var endpoint = routes[route];
var controller_name = endpoint.controller;
var action = require('../controllers/'+controller_name)[endpoint.actio... |
Triggered when a stream is disposed of twice (an error).
```csharp
public event EventHandler<StreamDoubleDisposedEventArgs> StreamDoubleDisposed;
```
## See Also
* class [StreamDoubleDisposedEventArgs](../RecyclableMemoryStreamManager.StreamDoubleDisposedEventArgs.md)
* class [RecyclableMemoryStreamManager](../Recyc... |
package org.zstack.sdk;
import org.zstack.sdk.AdditionalLicenseType;
public class AdditionalLicenseInfo {
public AdditionalLicenseType type;
public void setType(AdditionalLicenseType type) {
this.type = type;
}
public AdditionalLicenseType getType() {
return this.type;
}
pub... |
package DDG::Goodie::Braille;
# ABSTRACT: Braille <-> ASCII/Unicode
use DDG::Goodie;
use Convert::Braille;
use utf8;
triggers query_raw => qr/\p{Braille}|braille/i;
zci is_cached => 1;
my $braille_space = '⠀'; # the braille unicode space (U+2800)
handle query_raw => sub {
my $query = $_;
$query =~ s/t... |
#include <stdlib.h>
typedef void comm_address_t;
typedef void comm_udp_node_t;
typedef void comm_network_t;
typedef void comm_client_t;
typedef void comm_client_commands_t;
typedef void comm_text_message_t;
typedef void (*comm_event_received_text_message_callback)(comm_text_message_t *);
void comm_initialize();
/***... |
package org.zaproxy.zap.extension.proxies;
import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.util.List;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.jdesktop.swingx.JXLabel;
impor... |
'use strict';
var common = require('../common');
var sinon = require('sinon');
var CarbonClient = common.carbonClient;
var GraphiteClient = common.graphite;
var carbon;
describe('Carbon', function(){
beforeEach(function(done){
carbon = sinon.stub({
write : function() {
},
});
done();
... |
using Microsoft.Practices.Unity;
using eShopOnContainers.Services;
using System;
using System.Globalization;
using System.Reflection;
using eShopOnContainers.Core.Services.Catalog;
using eShopOnContainers.Core.Services.OpenUrl;
using eShopOnContainers.Core.Services.RequestProvider;
using eShopOnContainers.Core.Service... |
package ulb
import (
"github.com/ucloud/ucloud-sdk-go/ucloud"
)
// ULB
type CreateULBParams struct {
ucloud.CommonRequest
Region string
ProjectId string
ULBName string
Tag string
Remark string
OuterMode string
InnerMode string
ChargeType string
}
type CreateULBResponse struct {
ucloud... |
using System.Runtime.Serialization;
using System;
namespace SOURCE.Web.ViewModels.ViewModels
{
public partial class TraductionDroitViewModel
{
public long ID { get; set; }
public long DroitID { get; set; }
public long LangueID { get; set; }
public long Ordre { get; set; }
public string Libe... |
FROM balenalib/isg-503-debian:bullseye-run
ENV GO_VERSION 1.17.7
# gcc for cgo
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
gcc \
libc6-dev \
make \
pkg-config \
git \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& fetchDeps=' \
curl \
' \
&& apt-get update && apt-get in... |
@implementation NSLocale (isoCode)
- (NSDictionary*)countryIsoCodesDictionary {
static NSDictionary *countryIsoCodesDictionary = nil;
if(!countryIsoCodesDictionary) {
NSArray *countryCodes = [NSLocale ISOCountryCodes];
NSMutableArray *countries = [NSMutableArray arrayWithCapacity:[countryC... |
<?php
namespace Faker\Tests\Engine\XML\Schema;
use Faker\Components\Engine\XML\Parser\SchemaAnalysis;
use Faker\Tests\Base\AbstractProjectWithDb;
class AnalysisTest extends AbstractProjectWithDb
{
public function __construct()
{
# build out test database
$this->buildDb();
... |
package ru.vyarus.dropwizard.guice.module.installer.feature;
import io.dropwizard.lifecycle.Managed;
import io.dropwizard.setup.Environment;
import ru.vyarus.dropwizard.guice.debug.util.RenderUtils;
import ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller;
import ru.vyarus.dropwizard.guice.module.installer.... |
FROM balenalib/raspberrypi4-64-alpine:3.12-build
ENV GO_VERSION 1.14.14
# set up nsswitch.conf for Go's "netgo" implementation
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: fi... |
/** CloseableReference implementation for objects used into the animation framework. */
package com.facebook.imagepipeline.image;
|
OpenVPN
=======
This role installs the OpenVPN service.
Requirements
------------
This role requires some certificates to be generated and placed as variables as
described below.
Role Variables
--------------
openvpn_dns1: 8.8.8.8
openvpn_dns2: 8.8.4.4
openvpn_server_name: server
openvpn_ca: ""
... |
// MITK
#include "mitkOtsuTool3D.h"
#include "mitkToolManager.h"
#include "mitkRenderingManager.h"
#include <mitkImageCast.h>
#include <mitkITKImageImport.h>
#include <mitkRenderingModeProperty.h>
#include <mitkLevelWindowProperty.h>
#include <mitkLookupTableProperty.h>
#include "mitkOtsuSegmentationFilter.h"
// ITK... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
using Azure.ResourceManager.CosmosDB.Models;
namespace Azure.ResourceManager.CosmosDB
{
/// <summa... |
import run from 'ember-runloop';
import {describe, it} from 'mocha';
import {setupModelTest} from 'ember-mocha';
describe('Unit: Model: user', function () {
setupModelTest('user', {
needs: [
'model:role',
'serializer:application',
'serializer:user',
'service:... |
% std_getindvar - get independent variables of a STUDY
%
% Usage:
% [indvar indvarvals] = std_getindvar(STUDY);
% [indvar indvarvals] = std_getindvar(STUDY, mode, scandesign);
%
% Input:
% STUDY - EEGLAB STUDY structure
% mode - ['datinfo'|'trialinfo'|'both'] get independent variables
% linked to STU... |
package com.Rahat.myroutine;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
imp... |
from datetime import datetime, timedelta
from agagd_core.json_response import JsonResponse
from agagd_core.models import Game, Member
from django.db.models import Avg, Count
from django.db.models.functions import TruncMonth, TruncWeek
from django.http import HttpResponse
from django.views import View
class ApiStatus... |
package org.rapid7.nexpose.api.generators;
import org.rapid7.nexpose.utils.StringUtils;
import java.util.ArrayList;
import java.util.List;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import org.w3c.dom.Element;
import org.w3c.dom.NodeLis... |
package org.opensplice.config.meta;
public class MetaValueBoolean extends MetaValue {
public MetaValueBoolean(String doc, Boolean defaultValue, String dimension) {
super(doc, defaultValue, dimension);
}
@Override
public boolean setDefaultValue(Object defaultValue) {
boolean resul... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
require_relative "errors/error"
require_relative "errors/employee_busy"
require_relative "errors/job_class_mismatch"
require_relative "errors/no_employee_free"
require_relative "errors/pipeline_backend_required"
|
/* Generated SBE (Simple Binary Encoding) message codec */
#pragma warning disable 1591 // disable warning on missing comments
using System;
using Adaptive.SimpleBinaryEncoding;
namespace Adaptive.SimpleBinaryEncoding.PerfTests.Bench.SBE.FIX
{
public sealed partial class MarketDataIncrementalRefreshTrades
{
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
package com.ceabie.magicdrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activit... |
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>Check if your Google Account was compromised</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http:/... |
module GeographicApiClient
#
class InspirationDetailsResponse < BaseObject
attr_accessor :error, :result
# attribute mapping from ruby-style variable name to JSON key
def self.attribute_map
{
# Error at request level
:'error' => :'error',
# Full Inspiratio... |
package fpinscala.laziness
import Stream._
trait Stream[+A] {
// ex1: toList
def toList: List[A] = this match {
case Empty => List()
case Cons(h, t) => h() :: t().toList
}
def foldRight[B](z: => B)(f: (A, => B) => B): B = // The arrow `=>` in front of the argument type `B` means that the function `f`... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
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, Ver... |
from pygame import *
from res import createImage, playSound
class Room():
def __init__(self, levelSize, spritePath):
self.level = Surface(levelSize)
self.levelRect = self.level.get_rect()
self.levelUnlocked = False
self.levelCleared = False
self.spike = crea... |
//
// XJNewStarViewController.m
// TTLive
//
// Created by Dear on 16/9/20.
// Copyright © 2016年 Dear. All rights reserved.
//
#import "XJNewStarViewController.h"
#import "XJNewStarFlowLayout.h"
#import "XJNewStarCell.h"
#import "XJRefreshGifHeader.h"
#import "XJUserModel.h"
#import "XJLiveModel.h"
#import "XJLive... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class AdminController extends Controller
{
public function __construct()
{
$this->middleware('auth');
$this->middleware('admin');
}
public function index()
{
return view('home.homeAdmin'... |
package com.amazonaws.services.lightsail.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.lightsail.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazon... |
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import json
from urlparse import urljoin
from copy import deepcopy
from django.http import Http404
from django.shortcuts import render_to_response, get_object_or_404, redirect
from django.template import Requ... |
package version
const version = "0.14.0"
// ModuleVersion returns the current version of the github.com/hashicorp/terraform-exec Go module.
// This is a function to allow for future possible enhancement using debug.BuildInfo.
func ModuleVersion() string {
return version
}
|
GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls)
{
assert(tls->posix.allocated == GLFW_FALSE);
if (pthread_key_create(&tls->posix.key, NULL) != 0)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"POSIX: Failed to create context TLS");
return GLFW_FALSE;
}
tls->posix.al... |
/* ssl/ssl3.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial... |
#include "SkRecordDraw.h"
void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallback* callback) {
SkAutoCanvasRestore saveRestore(canvas, true /*save now, restore at exit*/);
for (SkRecords::Draw draw(canvas); draw.index() < record.count(); draw.next()) {
if (NULL != callback &... |
/* tslint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import { SharedModule } from "@shared/shared.module";
import { MaintenanceComponent } from './... |
package com.khoslalabs.nagarjuna_pamu.misscalltrigger.registration;
import com.khoslalabs.nagarjuna_pamu.misscalltrigger.IntentFlags;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.u... |
create unique index SYS_C0016507_idx on PID_INTERACTION_EVIDENCE
(EVIDENCE_ID,INTERACTION_ID) tablespace CABIO_FUT;
alter table PID_INTERACTION_EVIDENCE enable constraint SYS_C0016507 using index SYS_C0016507_idx;
alter table PID_INTERACTION_EVIDENCE enable constraint SYS_C0016486;
alter table PID_INTERACTION... |
package io.rdbc
import io.rdbc.sapi.{ResultSet, Row, RowMetadata}
import org.scalamock.scalatest.MockFactory
class ResultSetSpec
extends RdbcSpec
with MockFactory {
"ResultSet" should {
"traverse over its rows" in {
val rows = Vector(mock[Row], mock[Row])
val rs = new ResultSet(
r... |
package com.amazonaws.services.comprehend.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.comprehend.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import static com.fasterxml.jackson.core.JsonToken.*;
... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Defined base ratio size custom attrs -->
<declare-styleable name="ViewSizeCalculate">
<!-- Sets view ratio size of width -->
<attr name="widthRatio" format="float"/>
<!-- Sets view ratio size of height -->
<attr name="heigh... |
#region License
// Distributed under the MIT License
// ============================================================
// Copyright (c) 2019 Hotcakes Commerce, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software")... |
<?php
namespace Magento\Tax\Test\Handler\TaxRule;
use Magento\Mtf\Handler\HandlerInterface;
/**
* Interface TaxRuleInterface
*/
interface TaxRuleInterface extends HandlerInterface
{
//
}
|
export const areEqual = (a, b) => {
return JSON.stringify(a) === JSON.stringify(b);
};
// gets value or function value
export const getValue = val => {
return typeof val === 'function' ? val() : val;
};
// getValue for all Array items
export const getArrayValues = (arr = []) => {
return arr.map(val => getValue(... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Dittostack</title>
<!-- Bo... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015 SBG Apps
~
~ 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
~
... |
package ch08polymorphism;
import static commons.util.Print.*;
/**
* Constructors and polymorphism don't produce what you might expect.
*
* <pre>
* Output:
* Glyph() before draw()
* RoundGlyph.draw(), radius = 0
* Glyph() after draw()
* RoundGlyph.RoundGlyph(), radius = 5
* </pre>
*/
class Glyph {
void dra... |
require 'xclarity_client/version'
require 'utils/logger'
module XClarityClient
$lxca_log = XClarityClient::XClarityLogger.new
end
require 'xclarity_client/errors/errors'
require 'xclarity_client/configuration'
require 'xclarity_client/xclarity_credentials_validator'
require 'xclarity_client/discover'
require 'xcla... |
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.acronym 'API'
inflect.acronym 'UUID'
end
|
<?xml version="1.0" encoding="UTF-8"?>
<!--L
Copyright Oracle Inc
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
L-->
<cgMDR:Non_Enumerated_Conceptual_Domain xmlns:cgMDR="http://www.cancergrid.org/schema/cgMDR" item_registration_a... |
module Azure::Compute::Mgmt::V2020_12_01
module Models
#
# Specifies the Linux operating system settings on the virtual machine.
# <br><br>For a list of supported Linux distributions, see [Linux on
# Azure-Endorsed
# Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines... |
@interface _CPTAnimationCGRectPeriod()
CGRect CPTCurrentRectValue(id __nonnull boundObject, SEL __nonnull boundGetter);
@end
/// @endcond
#pragma mark -
@implementation _CPTAnimationCGRectPeriod
CGRect CPTCurrentRectValue(id __nonnull boundObject, SEL __nonnull boundGetter)
{
NSInvocation *invocation = [NSInvo... |
<?php
namespace TestApp\Model\Table;
use ArrayObject;
use Cake\Datasource\EntityInterface;
use Cake\Event\Event;
use Cake\Event\EventInterface;
use Cake\ORM\Table;
class CallbacksTable extends Table {
/**
* @param \Cake\Event\Event $event Event
* @param \Cake\Datasource\EntityInterface $entity Entity
* @param... |
const app = getApp();
const util = require('../../../../utils/util');
const requestUtil = require('../../../../utils/requestUtil');
const $ = require('../../../../utils/underscore');
const _DuoguanData = require('../../../../utils/data');
const WxParse = require('../../../../wxParse/wxParse.js');
import plugUtil from '... |
class EvaluativeQuestionsController < ApplicationController
def new
@framework = Framework.find(params[:framework_id])
@program = @framework.program
@category = @program.correct_category(params[:current_category], params[:step])
@question_hints = @program.question_hints(@category)
@indicator_hint... |
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.oss</g... |
"""Test IPython.core.logger"""
import os.path
import nose.tools as nt
from IPython.utils.tempdir import TemporaryDirectory
def test_logstart_inaccessible_file():
try:
_ip.logger.logstart(logfname="/") # Opening that filename will fail.
except IOError:
pass
else:
nt.assert_true(F... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!-- $Id: dcm4chee-echo-service.xml 3340 2007-05-12 16:00:31Z gunterze $ -->
<server>
<classpath codebase="lib" archives="dcm4chee.jar"/>
<mbean code="org.dcm4chex.archive.mbean.EchoService"
name="dcm4chee.archive:service=ECHOService"
xmbean-dd="xmd... |
package com.cspinformatique.kubik.server.domain.product.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cspinformatique.kubik.server.domain.product.repository.SupplierRepository;
import com.cspinformatique.kubik.server.domain.produ... |
package gce
import (
"io/ioutil"
)
// Startup script used to find/format/mount all local SSDs in GCE.
// Each disk is mounted to /mnt/data<disknum> and chmoded to all users.
const gceLocalSSDStartupScript = `#!/usr/bin/env bash
disknum=0
# Assume google.
for d in $(ls /dev/disk/by-id/google-local-ssd-*); do
let "d... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Foundation;
using UIKit;
using Xamarin.Forms;
[assembly: Dependency(typeof(MensaApp.iOS.Locale_iOS))]
namespace MensaApp.iOS
{
public class Locale_iOS : MensaApp.ILocale
{
/// <remarks>
/// Not sure if... |
{% extends "base.html" %}
{% import "_macros.html" as macros %}
{% block title %}狂战斧 - 管理评论{% endblock %}
{% block page_content %}
<div class="page-header">
<h1>管理评论</h1>
</div>
{% set moderate = True %}
{% include '_comments.html' %}
{% if pagination %}
<div class="pagination">
{{ macros.pagination_widget(pa... |
package compiler
import (
"bytes"
"debug/elf"
"encoding/binary"
"errors"
"io"
"os"
"path"
)
// Buildable is a typedef for an enumeration of supported buildable targets.
type Buildable string
// Buildable file types.
const (
BuildablePackage Buildable = "vorteil"
BuildableELF Buildable = "elf"
Buildable... |
// Template Source: BaseEntityCollectionPage.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -----------------------------... |
.class Landroid/widget/TimePicker$TwKeyListener;
.super Ljava/lang/Object;
.source "TimePicker.java"
# interfaces
.implements Landroid/view/View$OnKeyListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/widget/TimePicker;
.end annotation
.annotation system Ldalvik/annot... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base href="http://jlopezsi.github.io">
<title> Blah </title>
<link rel="canonical" href="http://jlopezsi.github.io/categories/blah/">
<link rel="stylesheet" href="http://jlopezsi.github.io/css/poole.css">
<link rel="stylesheet" href="http://jlo... |
import { PersonType } from '../person-type.enum';
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'personTypeToImg'
})
export class PersonTypeToImgPipe implements PipeTransform {
transform(value: any, args?: any): any {
if (value in PersonType) {
switch (value) {
case PersonTy... |
package json
import (
"errors"
"fmt"
"strconv"
"github.com/chanxuehong/util/math"
)
type Int int
func (x Int) MarshalJSON() (data []byte, err error) {
data = make([]byte, 0, 20+2)
data = append(data, '"')
data = strconv.AppendInt(data, int64(x), 10)
data = append(data, '"')
return
}
func (x *Int) Unmarsha... |
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach, el, AsyncTestCompleter, fakeAsync, tick, inject, SpyObject} from 'angular2/testing_internal';
import {SpyChangeDetector} from './spies';
import {ApplicationRef_, ApplicationRef, PlatformRef_} from 'angular2/src/core/application_ref';
import {Inje... |
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'capybara/rails'
require 'capybara/minitest'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all t... |
namespace grpc {
class CompletionQueue;
class Channel;
class ServerCompletionQueue;
class ServerContext;
} // namespace grpc
namespace routeguide {
// Interface exported by the server.
class RouteGuide final {
public:
static constexpr char const* service_full_name() {
return "routeguide.RouteGuide";
}
cla... |
"""
.. module:: facio.state
:synopsis: Facio state module, for accessing and maintaining state during
the template generation process.
"""
import os
from facio.base import BaseFacio
from sh import pwd
from six.moves import builtins
class State(BaseFacio):
def __init__(self):
""" State ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
</body>
</html>
<script>
/*继承的固定函数*/
function inheritPrototype(subType,superType){
console.log(subType, superType);
var prototype = Object(superType.prototype);
console.log(prototype);
prototype.constructo... |
<?php
Xi_Loader::loadClass('Xi_Controller_Component_Factory');
/**
* @category Xi
* @package Xi_Controller
* @subpackage Xi_Controller_Model
* @author Eevert Saukkokoski <eevert.saukkokoski@brainalliance.com>
*/
class Xi_Controller_Model_Factory extends Xi_Controller_Component_Factory
{
... |
package com.asakusafw.testdriver.bulkloader;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.io.IOException;
import java.net.URI;
import java.util.Arrays;
import org.junit.Rule;
import org.junit.Test;
import com.asakusafw.testdriver.core.DataModelDefinition;
import com.asakusaf... |
package com.github.tomschi.commons.data.dbo;
import java.io.Serializable;
/**
* The interface {@link DatabaseObject} is the base interface for
* all database objects.
*
* @author Tomschi
* @since 0.1.0
*/
public interface DatabaseObject extends Serializable {
}
|
"""Test behavior of -maxuploadtarget.
* Verify that getdata requests for old blocks (>1week) are dropped
if uploadtarget has been reached.
* Verify that getdata requests for recent blocks are respected even
if uploadtarget has been reached.
* Verify that the upload counters are reset after 24 hours.
"""
from collectio... |
"""Tests for slim.inception_v4."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow.compat.v1 as tf
import tf_slim as slim
from nets import inception
class InceptionTest(tf.test.TestCase):
def testBuildLogits(self):
batch_size = 5
... |
package com.android.betterway.itempickeractivity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.su... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
// see http://www.wapforum.org/what/technical/SPEC-WAESpec-19990524.pdf
var WBMP = (function(document) {
function decode(arrayBuffer, callback) {
// Pointer into t... |
<!DOCTYPE html>
<html>
<body>
<table>
<?php
global $wpdb;
$results = $wpdb->get_results( 'SELECT distinct trainer_id FROM `trainer_choice`', OBJECT);
if (count($results) > 0) {
echo "Showing " . ((string)count($results)) ... |
package br.com.concrete.canarinho.watcher;
import android.text.Editable;
import android.text.Selection;
import android.text.TextWatcher;
import br.com.concrete.canarinho.formatador.Formatador;
import br.com.concrete.canarinho.validator.Validador;
import br.com.concrete.canarinho.watcher.evento.EventoDeValidacao;
/**... |
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/4.0">
<!-- Adobe AIR Application Descriptor File Template.
Specifies parameters for identifying, installing, and launching AIR applications.
xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/applic... |
#ifndef MEDIA_SCTP_SCTPTRANSPORT_H_
#define MEDIA_SCTP_SCTPTRANSPORT_H_
#include <errno.h>
#include <memory> // for unique_ptr.
#include <set>
#include <string>
#include <vector>
#include "rtc_base/asyncinvoker.h"
#include "rtc_base/constructormagic.h"
#include "rtc_base/copyonwritebuffer.h"
#include "rtc_base/si... |
<?php
$fechas = date("Y-m-d H:i:s");
$grupo =($_POST["grupo"]);
$idusuario=($_GET["idusuario"]);
if($idusuario !=null && $grupo !=null && $fechas !=null )
{
require("include/conexion.php");
//include "include/pagina_interna/encabezado.php";
$sql = "insert into encuestas values (0,'$fechas',$grupo,$idusuario)";
m... |
package org.apache.poi.xwpf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.poifs.crypt.CryptoF... |
module nullstone {
var converters: any = [];
converters[<any>Boolean] = function (val: any): boolean {
if (val == null)
return null;
if (typeof val === "boolean")
return val;
if (typeof val === "number")
return val !== 0;
var c = val.t... |
var searchData=
[
['legalchessmovesgenerator',['LegalChessMovesGenerator',['../class_all_pawns_must_die_1_1_legal_chess_moves_generator.html',1,'AllPawnsMustDie']]]
];
|