text stringlengths 27 775k |
|---|
pub fn get_sorted_squares(mut v: Vec<i32>) -> Vec<i32> {
let mut splitting_index = 0;
let mut has_positives = false;
// Find the index of 0 to split if it is present
for x in 0..(v.len() / 2) {
let opposite_index = v.len() - (x + 1);
if v[x] > 0 || v[opposite_index] > 0 {
h... |
package resource_test
import (
"reflect"
"testing"
"github.com/golang/mock/gomock"
"github.com/itsdalmo/github-pr-resource"
"github.com/itsdalmo/github-pr-resource/mocks"
)
var (
testPullRequests = []*resource.PullRequest{
createTestPR(1, true),
createTestPR(2, false),
createTestPR(3, false),
createTes... |
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
export { validateGumroadLicenseKeyMainAsync } from './gumroad/validate-gumroad-license-key-main-async.js'
export { validateGumroadLicenseKeyUiAsync } from './gumroad/validate-gumroad-license-key-ui-async.js'
export {
getDocumentUseCount,
incrementDoc... |
class ConsultationsController < DocumentsController
def index
filter_params = params.except(:controller, :action, :format, :_)
redirect_to publications_path(filter_params.merge(publication_filter_option: 'consultations'))
end
def show
@related_policies = @document.published_related_policies
set_m... |
package com.enjin.sdk.services.user;
/**
* Asynchronous and synchronous methods for querying and mutating users.
*
* @author Evan Lindsay
*/
public interface UsersService extends AsynchronousUsersService, SynchronousUsersService {
}
|
{-# LANGUAGE RankNTypes, TypeFamilies, TypeInType, TypeOperators,
UndecidableInstances #-}
module T11719 where
import Data.Kind
data TyFun :: * -> * -> *
type a ~> b = TyFun a b -> *
type family (f :: a ~> b) @@ (x :: a) :: b
data Null a = Nullable a | NotNullable a
type family ((f :: b ~> c) ∘ (g ::... |
package typingsSlinky.pulumiAws
import typingsSlinky.pulumiAws.enumsRdsMod.StorageType
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object storageTypeMod {
object Stora... |
from flask import request
from flask_restx import Resource, Namespace
from .core import get_resource_recommend_v1
from ....iomodels import input_def_recommend_v1, output_def
ns_recomv1 = Namespace('recommendsystem',
description='First version of the recommendation system based on KNN models')
i... |
#!/bin/bash
fw_depends mysql rvm ruby-2.0
rvm ruby-$MRI_VERSION do bundle install --jobs=4 --gemfile=$TROOT/Gemfile --path=vendor/bundle
WEB_SERVER=Thin DB_HOST=${DBHOST} rvm ruby-$MRI_VERSION do bundle exec thin start -C config/thin.yml &
|
# [143. Reorder List (Medium)](https://leetcode.com/problems/reorder-list/)
<p>You are given the head of a singly linked-list. The list can be represented as:</p>
<pre>L<sub>0</sub> → L<sub>1</sub> → … → L<sub>n - 1</sub> → L<sub>n</sub>
</pre>
<p><em>Reorder the list to be on the following form:</em></p>
<pre>L<su... |
<?php
/**
* Toolset Divi can be installed as a standalone glue plugin,
* but it also comes packaged with other Toolset plugins.
*
* To include it on a Toolset plugin, do as follows:
* - Include this repository as a Composer dependency.
* - Wait until after_setup_theme to include this loader.php file.
*
* This ... |
package io.github.nortthon.r2dbc.usecases;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import io.gi... |
package xyz.txcplus.redis.aop.lock.config;
import org.redisson.api.RedissonClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xyz.txcplus.redis.aop.lock.aop.Lo... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
package com.kino.argear.argear_flutter_plugin.utils
interface DownloadAsyncResponse {
fun processFinish(result: Boolean)
}
|
# frozen_string_literal: true
module AppMap
# Railtie connects the AppMap recorder to Rails-specific features.
class Railtie < ::Rails::Railtie
config.appmap = ActiveSupport::OrderedOptions.new
initializer 'appmap.init' do |_| # params: app
require 'appmap'
end
# appmap.subscribe subscribes... |
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:image_picker/image_picker.dart';
import 'dart:core';
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home... |
import log from '@apify/log';
import { join } from 'path';
import { ensureDirSync, statSync, writeFileSync } from 'fs-extra';
import { ApifyStorageLocal } from '@apify/storage-local';
import { STORAGE_NAMES } from '@apify/storage-local/dist/consts';
import { prepareTestDir, removeTestDir } from './_tools';
let STORAGE... |
---
layout: watch
title: TLP2 - 06/06/2019 - M20190606_221121_TLP_2T.jpg
date: 2019-06-06 22:11:21
permalink: /2019/06/06/watch/M20190606_221121_TLP_2
capture: TLP2/2019/201906/20190606/M20190606_221121_TLP_2T.jpg
---
|
module QQ
module Api
class Lbs < Base
#更新地理位置
#longitude 经度,例如:22.541321
#latitude 纬度,例如:13.935558
def update_pos(longitude, latitude, opts={})
#hashie post("lbs/update_pos.json",{:longitude => longitude, :latitude => latitude}.merge(opts))
end
#删除最后更新位置
... |
import TabsActions from './TabsActions';
const initialState = { activeTab: "all" };
export function tabsReducer(state = initialState, action) {
switch(action.type) {
case TabsActions.tabSwitched:
return Object.assign({}, state, {
activeTab: action.tab
});
default:
return state;
}... |
#include <Rcpp.h>
using namespace Rcpp;
// Below is a simple example of exporting a C++ function to R. You can
// source this function into an R session using the Rcpp::sourceCpp
// function (or via the Source button on the editor toolbar)
// For more on using Rcpp click the Help button on the editor toolbar
// [[R... |
public-playlist
===============
This dynamic web application creates a playlist of songs that users input into the form.
|
---
title: RESTful
categories: web
date: 2017-02-18 09:21:54
---
#### 理解
>RESTful 表现层状态转移。sc架构下,server保存数据状态,client发送查询,修改,删除,添加等请求。这里的表现层状态指服务器资源在client的展现状态。转移是指我们通过http请求修改服务资源后,表现层的状态改变
#### 要点
> 1 避免url包含动词,有些需求可以用服务代替,比如转账,transaction
> 2 考虑api.example.com vs example.com/api
> 3 api版本 example.com/api/v1/user... |
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
using System.Collections.Generic;
using System.Linq;
using NewRelic.Agent.IntegrationTestHelpers;
using Xunit;
using Xunit.Abstractions;
namespace NewRelic.Agent.IntegrationTests.DistributedTracing
{
[NetFrameworkTest]... |
<?php
namespace common\models;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "register".
*
* @property int $id
* @property int|null $section_id
* @property int|null $employee_id
* @property string|null $fullname
* @property string|null $phone
* @property string|null $e... |
# Adminlte template for pure Javascript apps using Apache Cordova and Vue.js
Login is backed by Laravel Passport backend
## TODO
|
/*
* Copyright 2010 Chad Retz
*
* 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... |
#!/usr/bin/env python
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.exit(run())
|
#!/bin/bash
TESTS=$( dirname $0 )
set -x
THIS=$0
BIN=${THIS%.sh}.x
OUTPUT=${THIS%.sh}.out
${BIN} >& ${OUTPUT}
[[ ${?} == 0 ]] || exit 1
grep "version: 1.2.6" ${OUTPUT} || exit 1
grep "count: 5" ${OUTPUT} || exit 1
grep "b1: -1" ${OUTPUT} || exit 1
grep "b2: 1" ${OUTPUT} || exit 1
grep "b3: 1... |
import React, {useEffect, useState} from 'react'
import SlidesApi from "../../api/SlidesApi";
import Title from "./Title";
import {ProgressIndicator} from "@fluentui/react";
import './Slides.css'
import ImageSlide from "./Image";
function SlideImpl(props) {
const {id: presentationId, renderId} = props
const [data,... |
package io.delmore.circeConfig
import com.fortysevendeg.lambdatest._
object Main {
def main(args: Array[String]): Unit =
run("JsonConfig Tests", new JsonConfigTest)
}
|
import React from "react";
import { Icon, Table } from "semantic-ui-react";
const DATE_FORMAT = "Do MMM YYYY";
const TIME_FORMAT = "h:mm a";
const TrainingDetailTable = ({ training }) => (
<Table basic="very" collapsing>
<Table.Body>
<Table.Row>
<Table.Cell>
<Icon name="clock outline" />... |
package cn.threefishes.cloudrepository.entity;
public class CartBundling {
private Integer cartBundlingId;
private Integer cartId;
private Integer commonId;
private Integer goodsId;
private Integer memberId;
public Integer getCartBundlingId() {
return cartBundlingId;
}
pub... |
## [1.0.0] - 2020-11-08
* Initial release of Stilo! Includes core utility classes to simplify Flutter development.
## [1.0.1] - 2020-11-08
* Update library documentation
* Add library homepage url
## [1.1.0] - 2020-11-22
* Add black and white colors
* Add numeric value in font_weight docs
## [1.1.1] - 2020-11-22
*... |
#!/bin/bash
SCRIPT="$(readlink -f "$0")"
SCRIPT_PATH="$(dirname "$SCRIPT")"
VERSION=$(date -d @`stat -c '%Y' "$SCRIPT_PATH/capture.py"` '+%Y%m%d%H%M%S')
DIR="$(mktemp -d)"
pushd "$DIR" &>/dev/null
mkdir -p usr/bin opt/blinker
ln -s /usr/lib/chromium-browser/chromedriver usr/bin/chromedriver
cp "$SCRIPT_PATH/capture... |
---
layout: post-index
title: All Posts
excerpt: "A List of Posts"
image:
feature: hoian.jpg
---
To see how posts should be structured, if I ever decide to do this. The posts themselves live in _posts
|
package money.nala.pay.interview.data.model
import money.nala.pay.interview.R
enum class WalletServiceCountry(val countryCode: Int,
val nameResource: Int,
val flagResource: Int,
val countryIso: String,
... |
class Solution {
public:
vector<int> B;
long long count_inversion(vector<int>& A, int l, int r) {
if (l + 1 >= r) return 0;
int mid = (l + r) / 2; long long res = 0;
res += count_inversion(A, l, mid);
res += count_inversion(A, mid, r);
for (int i = l, j = mid; i < mid; i++) {
while (j < ... |
import BRadio from './radio'
import BRadioGroup from './radio-group'
export {
BRadio,
BRadioGroup
} |
puppetlabs-netscaler
====================
Puppet module for automating the configuration of Citrix Netscaler devices
|
/**
* Created by Stefan on 9/19/2017
*/
'use strict';
var crypto = require('crypto');
var sessions={}
, timeout;
function ownProp(o,p){return Object.prototype.hasOwnProperty.call(o,p)}
function lookupOrCreate(req,opts){
var id,session;
opts=opts || {};
id=idFromRequest(req, opts);
req.sessionI... |
# Automated provisioning with Puppet
The IAM login service Puppet module can be found [here][puppet-iam-repo].
The module configures the IAM Login Service packages installation,
configuration and the automatic generation of the JWK keystore.
The setup of the MySQL database used by the service as well as the setup o... |
---
title: TxTransactionBootstrap配置详解
keywords: configuration
description: TxTransactionBootstrap配置详解
---
### @TxTransaction annotation详解
* 该注解为分布式事务的切面(AOP point),如果业务方的service服务需要参与分布式事务,则需要加上此注解。
### TxTransactionBootstrap 详解:
```xml
<context:component-scan base-package="org.dromara.raincat.*"/>
... |
package tarehart.rlbot.math
import tarehart.rlbot.input.CarData
import tarehart.rlbot.math.vector.Vector2
import kotlin.math.pow
import kotlin.math.sqrt
open class Ray2(val position: Vector2, direction: Vector2) {
val direction = direction.normalized()
/**
* Taken from https://math.stackexchange.com/a/3... |
---
# Cool URLs don’t change: https://www.w3.org/Provider/Style/URI.html
redirect_from:
- ../../methodology/authoring_workflow.html
---
# 7. The Authoring Workflow « FC4 User Manual
## Summarized Workflow
1. Start Structurizr ([docs][s9r-on-prem])
1. Run `fc4 -fsrw path/to/repo` to start fc4 watching for changes
1... |
<div class="widget-content widget-content-area">
<form wire:submit.prevent='save'>
<div class="form-group mb-4">
<label for="name_ar">Name ar</label>
<input wire:model.lazy='name.ar' type="text" class="form-control" id="name_ar" placeholder="Name ar">
@error('name.ar')... |
#!/usr/bin/env bash
## init
THE_BASE_DIR_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
source "$THE_BASE_DIR_PATH/_init.sh"
## main
main_serve () {
## cd document root dir
cd $THE_WWW_DIR_PATH
## http://php.net/manual/en/features.commandline.webserver.php
#php -S localhost:8080
#php -S 127.0.0.1:8080
php ... |
class Test < ApplicationRecord
belongs_to :revision
belongs_to :user
has_many :test_questions, dependent: :destroy
has_many :questions, through: :test_questions
rails_admin do
object_label_method :rails_admin_default_object_label_method
list do
field :id
field :revision
field :use... |
<!--
SPDX-FileCopyrightText: 2021 Diego Elio Pettenò
SPDX-License-Identifier: 0BSD
-->
# LG PQRCUDS0 compatible ESPHome Component

This repository contains the source code and the EAGLE design files for using
[ESPHome](https://esphome.io/) to control a LG air... |
require_relative '../spec_helper'
describe 'return' do
it 'returns early from a method' do
def foo
return 'foo'
'bar'
end
foo.should == 'foo'
end
it 'returns early from a block' do
def one
[1, 2, 3].each do |i|
[1, 2, 3].each do |i|
return i if i == 1
... |
package main
import (
"fmt"
"github.com/go-kit/kit/log"
articlePb "github.com/baxiang/soldiers-sortie/go-mircosvc/pb"
"github.com/baxiang/soldiers-sortie/go-mircosvc/pkg/db"
sharedEtcd "github.com/baxiang/soldiers-sortie/go-mircosvc/pkg/etcd"
"github.com/baxiang/soldiers-sortie/go-mircosvc/pkg/logger"
sharedZip... |
Homeland::Jobs::Engine.routes.draw do
get '/jobs', to: 'jobs#index'
end
|
#!/bin/bash
set -e
mongo <<EOF
use $MONGO_INITDB_DATABASE
db.createUser({
user: "$MONGODB_USERNAME",
pwd: "$MONGODB_PASSWORD",
roles: [{
role: "dbOwner",
db: "$MONGO_INITDB_DATABASE"
}]
})
use test
db.createUser({
user: "$MONGODB_USERNAME",
pwd: "$MONGODB_PASSWORD",
roles: [{
role: "dbOwner",... |
use super::loc_hint::*;
use super::util::*;
use crate::config::*;
use std::fmt::Write;
pub struct IfNewLine<LocHint>(pub bool, pub LocHint);
impl<'a, 'b, LocHint> ConfiguredWrite for IfNewLine<LocHint>
where
LocHint: ConfiguredWrite + LocHintConstructible<'a, 'b>,
{
fn configured_write(&self, f: &mut String, c... |
import {GridConfig} from "~/interfaces/GridConfig";
import {GridItem} from "~/interfaces/GridItem";
export class GridService {
static maxItemsX = 4;
static itemWidth = 150;
static itemHeight = 180;
static getItems(config: GridConfig, count: number): GridItem[] {
const width = config.endX - con... |
# import_anywhere
This package allows relative imports no matter where the script is run from.
This is to avoid situations where packages are used and relative imports only work when the script
is run from its actual location. This package requires the user to list all "parent directories" which
the package is to lo... |
package com.pedrogomez.taskfollower.domian.mapper
import com.pedrogomez.taskfollower.domian.db.SessionTimeDBM
import com.pedrogomez.taskfollower.domian.db.TaskDBM
import com.pedrogomez.taskfollower.domian.view.SessionTimeVM
import com.pedrogomez.taskfollower.domian.view.TaskVM
class SessionTimeMapper : MapperContract... |
// Given a string, return a new string that has transformed based on the input:
// Change case of every character, ie. lower case to upper case, upper case to lower case.
// Reverse the order of words from the input.
// Note: You will have to handle multiple spaces, and leading/trailing spaces.
// For exampl... |
using System.Collections.Generic;
namespace RomanNumerals
{
public class RomanToArabicNumber
{
private const string temporaryRoman1Thousands = "O";
private const string temporaryRoman5Thousands = "P";
private const string temporaryRoman10Thousands = "Q";
private string RomanN... |
#include "Castor3D/Model/Skeleton/Animation/SkeletonAnimationKeyFrame.hpp"
#include "Castor3D/Model/Skeleton/Animation/SkeletonAnimation.hpp"
#include "Castor3D/Model/Skeleton/Animation/SkeletonAnimationBone.hpp"
#include <CastorUtils/Math/SquareMatrix.hpp>
#include <CastorUtils/Math/Quaternion.hpp>
namespace castor... |
print "Enter a celsius value: "
celsius = gets.to_i
fahrenheit = (celsius * 9 / 5) + 32
puts "Saving result to output file 'temp.out'"
fh = File.new("temp_out.txt", "w")
fh.puts fahrenheit
fh2 = File.new("temp.txt", "r")
puts fh2.read
fh.close
fh2.close |
/*
* Based on [https://github.com/daemontus/kotlin-ace-wrapper]
*/
package ace.ext
@JsModule("net.akehurst.language.editor-kotlin-ace-loader!?id=ace/autocomplete&name=Autocomplete")
@JsNonModule
external object Autocomplete {
val startCommand: dynamic
} |
import Exception from './util/Exception';
import Constants from './util/Constants';
import AWS from 'aws-sdk-promise';
/**
* Parent request class
*/
export default class Request {
/**
* Create a new request
* @param {string} tableName The table name concerned
* @param {string} region The region where the... |
PROVIDER = "S3"
KEY = ""
SECRET = ""
CONTAINER = "yoredis.com"
# FOR LOCAL
PROVIDER = "LOCAL"
CONTAINER = "container_1"
CONTAINER2 = "container_2" |
import { stringifyUrl } from "query-string"
import { uuid } from "uuidv4"
let anon_id = localStorage.getItem("analytics.anon_id")
if (!anon_id) {
anon_id = uuid()
localStorage.setItem("analytics.anon_id", anon_id)
}
export interface AnalyticsProps {
action: string
label?: string
page_id: string
nabe_name:... |
/*
* 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 ... |
#!/bin/bash
# Copyright (c) 2021 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
set -eE
buildkite-agent artifact download twister-*.xml .
xmls=""
for f in twister-*xml; do [ -s ${f} ] && xmls+="${f} "; done
if [ "${xmls}" ]; then
junitparser merge ${xmls} junit.xml
buildkite-agent artifact upload juni... |
using System;
using System.Linq;
using System.Threading.Tasks;
using GrpcServices;
using Lightest.Data.Models;
using Moq;
using Xunit;
namespace Lightest.Tests.TestingService.UploadProcessor
{
public class CacheChecker : BaseTest
{
private readonly Checker _checker;
public CacheChecker()
... |
"""nr_configs.py
This file contains the configuration class to generate
and store the necessary pieces of information regarding
the set-up and configuration for a numerical relativity
project using the Dendro framework.
"""
from dendrosym.general_configs import ImproperInitalization
import sympy as sym
import dendro... |
#!/usr/bin/env perl -w
# $Id$
# vim:ft=perl:
# Tests various scenarios which would leave behind locks, or would delete too many locks
use strict;
use Test::More tests => 13;
use Data::Dumper qw(Dumper);
use Time::HiRes qw(sleep);
use Sys::Hostname;
use YAML::Syck qw(LoadFile);
#use Log::Log4perl qw(:easy);
#Log::Lo... |
<?php
namespace EnderLab\MiddleEarth\Router;
use Fig\Http\Message\RequestMethodInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Expressive\Router\FastRouteRouter;
use Zend\Expressive\Router\Route as ZendRoute;
class Router implements RouterInterface
{
const HTTP_GET = RequestMethodInterface::METH... |
import React, { useEffect, useState } from 'react'
import { Alert } from 'react-bootstrap';
import { demoParamValues, ImageTemplate, loadRemoteTemplate, ParamValues, TemplateParam } from '@resoc/core';
import TemplatePresentation from './TemplatePresentation';
import StarterAlert from './StarterAlert';
import { wa... |
#include "ApprovalTests/reporters/AutoApproveReporter.h"
#include "ApprovalTests/utilities/FileUtilsSystemSpecific.h"
#include <iostream>
namespace ApprovalTests
{
bool AutoApproveReporter::report(std::string received, std::string approved) const
{
std::cout << "file " << approved
<<... |
#!perl
# Test scoping issues with embedded code in regexps.
BEGIN {
require q(test.pl);
}
plan 17;
# Functions for turning to-do-ness on and off (as there are so many
# to-do tests)
sub on { $::TODO = "(?{}) implementation is screwy" }
sub off { undef $::TODO }
on;
fresh_perl_is <<'CODE', '781745', {}, '(?{}... |
module ltm2ubv
use real_kind
implicit none
real(double) :: tgr(34), ggr(13), tab(34,13,5)
contains
subroutine load_colour_conversion_table(fu)
use real_kind
implicit none
integer, intent(in) :: fu
integer :: i,j, k
991 format (3(10f10.5,/), 4f10.5,/, 10f10.5,/, 3f10.5,/, 442(5f8.3,/))
... |
import Prelude hiding ((^))
import qualified Prelude ((^))
import ProjectEuler.Divisors (isqrt)
(^) :: Num a => a -> Int -> a
(^) = (Prelude.^)
pos :: Int -> (Int, Int)
pos 1 = (0, 0)
pos n = case s of
0 -> (radius, radius - 1 - f)
1 -> (radius - 1 - f, -radius)
2 -> (-radius, -radius + ... |
import {
Feature,
Point,
Rectangle,
RouteSummary,
RouteNote,
} from '@app/route-lib';
import { Observable } from 'rxjs';
export interface RouteGuide {
getFeature(data: Point): Observable<Feature>;
listFeatures(data: Rectangle): Observable<Feature>;
recordRoute(upstream: Observable<Point>): Observable<R... |
Rails.application.routes.draw do
root 'home#index'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
devise_for :users, controllers: {
sessions: 'users/sessions',
registrations: "users/registrations"
}
resources :organizations, only: [:index, :show... |
import { ApiModelProperty } from '@nestjs/swagger';
export class ResponseStatus {
@ApiModelProperty({ description: 'HTTP status code.', type: 'string' })
code: string;
@ApiModelProperty({ description: 'HTTP status description/message.', type: 'string' })
description: string;
}
export class PagingData {
@Api... |
C Copyright(C) 2014-2017 National Technology & Engineering Solutions of
C Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C Redistribution and use in source and binary forms, with or without
C modification, are pe... |
``` bash
$this->crud->addFields($multiple_fields_array); // Tambah beberapa form fields
$this->crud->removeFields($multiple_fields_array); // Hapus beberapa fields
``` |
```toml
title = "FTP 和 SFTP"
date = "2016-02-04 15:00:00"
slug = "zh/docs/deploy/ftp-sftp"
hover = "docs"
lang = "zh"
template = "docs.html"
```
`PoGo` 可以使用 FTP and SFTP 账号发布,目前只支持 **用户名** 和 **密码** 登陆的方式。
```bash
pogo deploy ftp --local="dest" --user="user" --password="xxx" --host="127.0.0.1:21" --directory="pogo"
po... |
FactoryBot.define do
factory :reservation_detail do
status { 'requested' }
reservation
component
end
end
|
unit SkillDetailEdit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, FormEditAbsUnit, cxGraphics, cxControls, cxLookAndFeels,
cxLookAndFeelPainters, cxStyles, cxCustomData, cxFilter, cxData,
cxDataStorage, cxEdit, DB, cxDBData, dxBarDBNav, dxBar, cxClasses,
... |
var testrunner = require('qunit');
testrunner.options.log.summary = true;
testrunner.options.log.tests = false;
testrunner.options.log.assertions = false;
testrunner.run({
deps: ['./src/htmlparser.js', './src/htmllint.js'],
code: './src/htmlminifier.js',
tests: [
'./tests/minifier.js',
'./tests/lint.js'... |
# --- !Ups
UPDATE images SET content_type = 'image/jpg' WHERE content_type IS NULL;
ALTER TABLE images ALTER COLUMN content_type SET DEFAULT 'image/jpg';
ALTER TABLE images ALTER COLUMN content_type SET NOT NULL;
# --- !Downs
ALTER TABLE images ALTER COLUMN content_type DROP NOT NULL;
ALTER TABLE images ALTER COLUM... |
'use strict';
var isPresent = require('is-present');
var hasClassSelector = require('has-class-selector');
module.exports = function classPrefix(prefix, options) {
options = options || {};
var ignored = options.ignored;
var prefixClassForTag = options.prefixClassForTag;
/** This return will create new rule i... |
import 'package:flutter/material.dart';
class PostTime extends StatelessWidget {
final DateTime postime;
PostTime({this.postime});
@override
Widget build(BuildContext context) {
return Row(
children: <Widget>[Text(this.postime.toIso8601String())],
);
}
}
|
ALTER TABLE transactions ADD COLUMN ref UUID;
ALTER TABLE transactions ADD COLUMN signer VARCHAR(1024);
ALTER TABLE transactions ADD COLUMN hash CHAR(64);
ALTER TABLE transactions ADD COLUMN protocol_id VARCHAR(256);
ALTER TABLE transactions ADD COLUMN info BYTEA;
CREATE INDEX transactions_p... |
from flask_wtf import FlaskForm
from wtforms import IntegerField, PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired, Length, NumberRange, Optional
class GenerateForm(FlaskForm):
length = IntegerField(
"Length",
validators=[
Optional(),
Numb... |
#!/usr/bin/env python
import compiler
import compiler.ast
import fnmatch
import itertools
import os
import sys
import pynocle._modulefinder as modulefinder
import pynocle.utils as utils
_python_stdlib_filter = os.path.dirname(sys.executable) + '*'
_pycharm_filter = '*JetBrains\PyCharm *'
EXCLUDE_PATH... |
// THIS FILE IS GENERATED AUTOMATICALLY AND SHOULD NOT BE EDITED DIRECTLY.
import 'dart:ffi';
/// -------------------------- GL_ANGLE_timer_query -------------------------
/// @nodoc
Pointer<NativeFunction<Void Function()>>? glad__glBeginQueryANGLE;
/// ```c
/// define glBeginQueryANGLE GLEW_GET_FUN(__glewBeginQueryAN... |
package org.owasp.webgoat.plugin;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author nbaars
* @since 4/8/17.
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement
public c... |
/*==============================================================================
* Copyright (C) 2020 YaoYuan <ibireme@gmail.com>.
* Released under the MIT license (MIT).
*============================================================================*/
#include "yybench_cpu.h"
#include "yybench_time.h"
#define REPEA... |
REM ** DEBUG THESE STEPS BY turning ON the OUTPUTs **********************************************
set serveroutput off verify off
set termout off
REM set serveroutput on verify on
REM set termout on
REM *********************************************************************************************
REM ** RUN AS SYS (or... |
use specs::prelude::*;
use super::{InBackpack, Equipped, WantsToRemoveItem};
pub struct ItemRemoveSystem {}
impl<'a> System<'a> for ItemRemoveSystem {
#[allow(clippy::type_complexity)]
type SystemData = (
Entities<'a>,
WriteStorage<'a, WantsToRemoveItem>,
... |
require_relative "../view"
class ShoppingNodeView < View
attr_reader :children
def initialize(node, options = {})
@template_folder = File.basename(File.dirname(__FILE__))
super(options)
@node = node
if @node.has_children?
@children = @node.children.map do |node|
view_name = "#{node.class.name.unders... |
#!/bin/bash
# ------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
# ------------------------------------------------------------
CREATE_TABLE_FILE=fa... |
#include "btm.h"
// compute p(z_i=k|z/i, B)
NumericVector Btm::sample_prob(Biterm& bi) {
NumericVector Q(K);
for (int k = 0; k < K; k++) {
int subtract = 0;
if (bi.get_z() == k)
subtract = 1.0;
// Rcout << "subtr: " << subtract << ", ";
// Rcout << "topic count word: " << topic_count_wd[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.