text
stringlengths
27
775k
import React, { Component } from 'react'; import autoBindMethods from 'class-autobind-decorator'; import cx from 'classnames'; import { Form } from 'antd'; interface IProps { align?: 'between' | 'right'; children?: any; className?: any; fixed?: boolean; noSpacing?: boolean; } @autoBindMethods class ButtonT...
#!/bin/bash -eu # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This is a script crafted to make our Android friends' lives easier: when run # on their copy of toolchain-utils, this script will do al...
#!/usr/bin/env perl # DO NOT EDIT the /cluster/bin/scripts copy of this file -- # edit ~/kent/src/hg/utils/automation/liftRMAlign.pl instead. # $Id: liftRMAlign.pl,v 1.5 2007/07/18 17:11:48 angie Exp $ use warnings; use strict; my $basename = $0; $basename =~ s@.*/@@; my $suffix = "fa.align"; sub usage { my $st...
import {API, Auth, graphqlOperation} from 'aws-amplify'; import {cloneDeep} from 'lodash'; import { createLike, createUserFollowing, deleteLike, deleteUserFollowing, } from '../graphql/mutations'; import { listLikes, listProfiles, listUserFollowers, listUserFollowings, } from '../graphql/queries'; impor...
# just-sort-by ## 3.0.2 ### Patch Changes - README fix
(ns hara.namespace.resolve (:require [hara.common.error :refer [error suppress]])) (defn resolve-ns "resolves the namespace or else returns nil if it does not exist (resolve-ns 'clojure.core) => 'clojure.core (resolve-ns 'clojure.core/some) => 'clojure.core (resolve-ns 'clojure.hello) => nil" {:added...
<?php declare(strict_types=1); namespace LSB\NotificationBundle\Form; use LSB\UtilityBundle\Form\BaseEntityType; /** * Class NotificationAttachmentType * @package LSB\NotificationBundle\Form */ class NotificationAttachmentType extends BaseEntityType { }
def double(num) string_num = num.to_s center = string_num.size / 2 string_num.size.even? == true && string_num[0..(center - 1)] == string_num[center..-1] end def twice(integer) double(integer) ? integer : integer * 2 end p twice(37) == 74 p twice(44) == 44 p twice(334433) == 668866 p twice(444) == 888 p ...
package net.mostlyoriginal.pickleperfect.service import net.mostlyoriginal.pickleperfect.IgnoreComponentMutationListener import net.mostlyoriginal.pickleperfect.TestComponent1 import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertNotNull import kotlin.test.assert...
package com.pr0gramm.app.ui.fragments import android.app.Dialog import android.os.Bundle import android.view.View import android.widget.CheckBox import android.widget.TextView import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.pr0gramm.app.R import com.p...
// Jeebs Rapid Application Development // Copyright (c) bfren.uk - licensed under https://mit.bfren.uk/2013 using System.Collections.Generic; using Jeebs.Data; using Jeebs.Data.Mapping; namespace F.DataF { public static partial class QueryF { /// <summary> /// Get the list of columns for a query, escaped with ...
#!/bin/bash . ~/anaconda3/etc/profile.d/conda.sh conda activate mlperf export PATH=$PATH:"/root/anaconda3/envs/mlperf/bin/" SCRIPT_PATH=$(dirname "$0") $SCRIPT_PATH/docker_cgroup_setup.sh export MILARUN_DATAROOT=~/milabench/data/ export MILARUN_OUTROOT=~/milabench/ exec $@
using ItaLog.Domain.Interfaces.Models; using System.Collections.Generic; namespace ItaLog.Domain.Interfaces.Repositories { public interface IRepositoryBase<T> where T : class , IEntity { public int Add(T entity); public void Update(T entity); public T FindById(int id); public...
import { Effect, add,BubbleLineSystem} from '../../../explode'; @add(BubbleLineSystem) export class Normal extends Effect { };
import 'dart:async'; import 'package:flutter/services.dart'; import 'dart:io'; import 'native_context.dart'; export 'native_context.dart' show NativeContext, ObjCContext, JAVAContext; export 'native_object.dart' show NativeObject, NativeClass; class Dna { static const MethodChannel _channel = const MethodCha...
#include "./draw.h" void color_add(SDL_Color *base, const SDL_Color delta) { if (base->r + delta.r < UINT8_MAX) base->r += delta.r; else base->r = UINT8_MAX; if (base->g + delta.g < UINT8_MAX) base->g += delta.g; else base->g = UINT8_MAX; if (base->b + delta.b < UINT...
import { FieldShemaTypeName } from "../../Models/Field"; import { Filter } from "../../Models/Filter"; import { Schema } from "../../Models/Schema"; export function isFilterChanged(oldFilters: Filter[], newFilters: Filter[]): boolean { if (oldFilters.length != newFilters.length) return true; for (let filter of new...
"""Youku Open API V2 Python Client doc: http://open.youku.com/docs/tech_doc.html """ import requests from .util import check_error, remove_none_value class YoukuShows(object): """Youku Shows API. doc: http://open.youku.com/docs/api_shows.html """ def __init__(self, client_id): super(Youku...
class Node < ApplicationRecord include PublicActivity::Common include LogParameterChanges include Searchable extend FriendlyId friendly_id :name, use: :slugged belongs_to :user has_many :staff, class_name: 'StaffMember', dependent: :destroy has_many :training_coordinators, -> { training_coordinators...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Model\Player; use App\Model\Style; class PlayerController extends Controller { // public function GetPlayers() { $data = Player::orderby('age','desc')->get(); $response_data = []; foreach ($data as $key...
import parseWorldFile from "/canvas/workerInterfaces/main/parseWorldFile.js"; import renderLayersImages from "/canvas/workerInterfaces/main/renderLayersImages.js"; import saveWorldFile from "/canvas/workerInterfaces/main/saveWorldFile.js"; import verifyWorldFileFormat from "/canvas/workerInterfaces/main/verifyWorldFile...
require 'pdk' require 'pdk/cli/exec' module PDK module Validate class BaseValidator # Controls how many times the validator is invoked. # # :once - The validator will be invoked once and passed all the # targets. # :per_target - The validator will be invoke...
%% %% Copyright (c) 2005 Dan Gudmundsson %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id: glext_funcs.hrl,v 1.6 2005/03/04 15:15:01 dgud Exp $ %% -define(glBlendColor, ?SDL_OPENGL_EXTS_HRL + 0). -define(glBlendEqua...
import React from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { DateTime } from "luxon"; import styled from "styled-components"; import { SPREADSHEET_REQ_START, HIDE_APP } from "./actions"; const Table = styled.table` font-size: 14px; margin: 5px; > thead > tr > th...
class Lesson < ActiveRecord::Base validates :name, :presence => true validates :content, :presence => true belongs_to :section def next section = Section.find(self.section_id) lessons = section.lessons lessons.each do |lesson| if lesson.number === self.number + 1 return lesson e...
# frozen_string_literal: true require 'dm-core' require 'dm-migrations' require_relative 'server_capabilities' require_relative '../utils/result_statuses' module Inferno module Models class TestingInstance include DataMapper::Resource property :id, String, key: true, default: proc { Inferno::SecureR...
import * as types from './mutation-types' export default { [types.BOOTSTRAP_COMPANIES] (state, companies) { state.companies = companies state.selectedCompany = companies[0] }, [types.SET_SELECTED_COMPANY] (state, company) { state.selectedCompany = company } }
export default class Project { constructor(name) { this.projectName = name; this.projectToDos = []; } getName() { return this.projectName; } addToDo(todo) { this.projectToDos.push(todo); } removeToDo(todo) { const index = this.projectToDos.index...
GOCAD TSurf 1 HEADER { name:PNRA-ELSZ-SRCP-Paso_Inferior_fault-CFM4_500m *visible:true *solid*color:0.510822 0.187757 0.857231 1 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAME "X" "Y" "Z" AXIS_UNIT "m" "m" "m" ZPOSITIVE Elevation END_ORIGINAL_COORDINATE_SYSTEM TFACE VRTX 1 624711.12500 3599924.78125 -929.944...
#!/bin/bash # This script sets the PYTHONPATH environment variable for the user, without # overriding their existing path. This allows them to directly execute scripts # in utils/ or build-scripts/ without having to install the ssg/ module in a # traditional python location (either system-wide or user-wide). # # This ...
package weather_test import ( "errors" "fmt" "testing" "github.com/bruli/raspberryWaterSystem/internal/logger" "github.com/bruli/raspberryWaterSystem/internal/rain" "github.com/bruli/raspberryWaterSystem/internal/status" "github.com/bruli/raspberryWaterSystem/internal/weather" "github.com/stretchr/testify/ass...
package hearsilent.zeplin.activity import android.os.Bundle import android.text.format.DateUtils import android.view.MenuItem import android.view.View import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.paging.LivePagedListBuilder import androidx.paging.PagedList import com.fast...
import { getDefaultOptions } from "../core/options" import { hasOwn, capitalize } from "./index" import { isPlainObject } from "./type" import { handleError, logWarn } from "./error" import { invoke } from "./injector" const functionTypeCheckRE = /^\s*function (\w+)/ const simpleCheckRE = /^(String|Number|Boolean|Func...
package testcases // E2E-CLI-052 - Kics scan with a custom CIS descriptions env variable // should load and display the correct CIS descriptions (provided by the custom server) func init() { //nolint testSample := TestCase{ Name: "should load descriptions from a custom server [E2E-CLI-052]", Args: args{ Args: ...
# ReactJS-02 ## 1. 리액트 코드 이해하기 - ```react // src/App.js import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> ...
<?php require_once __DIR__.'/../../../vendor/autoload.php'; use TencentCloud\Ess\V20201111\EssClient; use TencentCloud\Ess\V20201111\Models\CreateFlowByFilesRequest; use TencentCloud\Ess\V20201111\Models\UserInfo; use TencentCloud\Ess\V20201111\Models\ApproverInfo; use TencentCloud\Ess\V20201111\Models\Component; use T...
#!/bin/sh # # $FreeBSD: src/tools/regression/geom_uzip/test-2.sh,v 1.2 2005/09/29 22:41:20 fjoe Exp $ # # # prepare kldload geom_uzip uudecode test-1.img.uzip.uue num=`mdconfig -an -f test-1.img.uzip` || exit 1 sleep 1 # # destroy kldunload geom_uzip
# This hash holds the 2010 census apportionment populations of the fifty states, # plus DC and Puerto Rico. This data is the default. state_pops = { "Alabama" => 4_802_982, "Alaska" => 721_523, "Arizona" => 6_412_700, "Arkansas" => 2_926_229, "California" => 37_341_989, "Colorado" => 5_044_930, "Connecticu...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Checkout_model extends CI_Model { //Create Payment public function create_payment($object) { return $this->db->insert('payment', $object); } //Check if booking is existing public function check_booking_exists($trans_id) { return ...
--- layout: post title: Will you? date: 2021-09-13 01:00:00 -0400 categories: Poems --- You are going to miss me and I am going to miss you <br> When you phone rings, a small part of you will think is me <br> When I get a notification, all of me will hope is you <br> I don't do custom ringtones. I want that whole t...
unless Object.const_defined? :Enumerator require 'backports/tools/make_block_optional' require 'enumerator' Backports.make_block_optional Enumerable::Enumerator, :each, :test_on => [42].to_enum end
// Code generated by gocc; DO NOT EDIT. package token import ( "fmt" ) type Token struct { Type Lit []byte Pos } type Type int const ( INVALID Type = iota EOF ) type Pos struct { Offset int Line int Column int } func (p Pos) String() string { return fmt.Sprintf("Pos(offset=%d, line=%d, column=%d)", p...
class CreateWeeksTable < ActiveRecord::Migration[6.1] def change unless ActiveRecord::Base.connection.table_exists?('weeks') create_table :weeks do |t| t.string :badge_id t.string :dept_id t.string :week_ending t.datetime :monday_in t.datetime :monday_out t.da...
import { Injectable, EventEmitter } from "@angular/core"; @Injectable() export class ConstantsService { onStateOrCountryChange: EventEmitter<boolean> = new EventEmitter<boolean>(); private _country = "us"; get country(): string { return this._country; } set country(value: string) { this._country = v...
import { Schedules } from '../src/schedules'; // https://app.splatoon2.nintendo.net/api/schedules const response: Schedules = { gachi: [ { end_time: 1606082400, start_time: 1606075200, game_mode: { key: 'gachi', name: '\u30ac\u30c1\u30de\u30c3\u30c1' }, rule:...
import * as d3 from 'd3' /* * This data manipulation function takes the raw data from * the CSV file and converts it into an array of node objects. * Each node will store data and visualization values to visualize * a bubble. * * rawData is expected to be an array of data objects, read in from * o...
# frozen_string_literal: true module Pipedawg # util class class Util def self.expand_env_vars(item) # rubocop:disable Metrics/MethodLength case item when Array item.map { |i| expand_env_vars(i) } when Hash item.each { |k, v| item[k] = expand_env_vars(v) } item.transfo...
// -*- C++ -*- // // Package: FFTJetTreeDump // Class: FFTJetTreeDump // /**\class FFTJetTreeDump FFTJetTreeDump.cc RecoJets/FFTJetProducer/plugins/FFTJetTreeDump.cc Description: formats FFTJet clustering trees for subsequent visualization by OpenDX Implementation: [Notes on implementation] */ // // O...
class UsersController < ApplicationController def new if !current_user @user = User.new 10.times {@user.identities.build} else redirect_to posts_path end end def index if params[:search] @users = User.search(params[:search]) ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public interface IBuffable { float Value { get; set; } float CurrentCooldown { get; set; } float MaxCoolDown { get; set; } bool IsActive { get; set; } GameObject ImageInPanel { get; se...
# 定义二维数组 float[][] numthree; short[][] numfour=new short[5][8]; long[][] numfive=new long[5][];
<?php /* * This file is part of ImgCache. * * (c) Igor Lazarev <strider2038@rambler.ru> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Strider2038\ImgCache\Imaging\Processing\Imagick; use Strider2038\ImgCache\Core\File...
<?php namespace ThreeDCart\Api\Soap\Resource\Product; use ThreeDCart\Api\Soap\Resource\SoapResource; use ThreeDCart\Api\Soap\Resource\VisitorInterface; /** * Class Category * * @package ThreeDCart\Api\Soap\Resource\Product */ class Category extends SoapResource { /** @var int */ private $CategoryID; ...
# PYPhotoBrowser [![Build Status](https://travis-ci.org/iphone5solo/PYPhotoBrowser.svg?branch=master)](https://travis-ci.org/iphone5solo/PYPhotoBrowser) [![Pod Version](http://img.shields.io/cocoapods/v/PYPhotoBrowser.svg?style=flat)](http://cocoadocs.org/docsets/PYPhotoBrowser/) [![Pod Platform](http://img.shields.io/...
# django # vent django source /bin/activate ## DB ORM create db connection in models.py python manage.py migrate python manage.py makemigrates app_name interactive command python manage.py shell >>> from app_name.models import class_name >>> t = class_name(column="value") >>> t.save() >>> print(class_name.objects.a...
//go:build !windows // +build !windows package testutil import ( "os" "testing" ) func TestApplyDir_CreatesFileWithPerm(t *testing.T) { InTempDir(t) ApplyDir(Dir{ // For some unknown reason, termux on Android does not set the // group and other permission bits correctly, so we use 700 here. "a": File{0700...
import torch import os from glob import glob from functools import reduce import os.path as osp import cv2 import random import albumentations as A from torch.utils.data import Dataset, DataLoader import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) class CycleGANDataset(Datase...
require 'test_helper' require 'zip/ioextras' class AbstractInputStreamTest < MiniTest::Test # AbstractInputStream subclass that provides a read method TEST_LINES = ["Hello world#{$/}", "this is the second line#{$/}", 'this is the last line'] TEST_STRING = TEST_LINES.join class ...
<?php return array( /** * Validation */ 'name_required' => 'Missing role name', 'name_string' => 'Role name must be a string value', 'name_max' => 'Length of role name must be less than :number characters', 'name_unique' => 'Role name existed', 'weight_required' => 'Missing role weigh...
package typingsSlinky.vexflow.anon import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait Font extends StObject { var duration: String = js.native var font:...
package com.nowellpoint.api.rest.domain; import java.util.Set; public class JobTypeList extends DocumentCollectionResource<JobType, com.nowellpoint.api.model.document.JobType> { public JobTypeList(Set<com.nowellpoint.api.model.document.JobType> documents) { super(documents); } @Override protected Class<JobTy...
import React from "react" import styled from "styled-components" import { colors } from "../../styles/constants" import * as types from "../../types" interface ImageProps { rotate: number scale: number translateY: number zIndex: number } const StyledDiv = styled.div` display: block; overflow: hidden; p...
/* * * Copyright (c) 2019, Salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause * */ package com.salesforce.barcodescannerplugin import com.google.firebase.ml.vision.bar...
package org.jetbrains.research.lupa.kotlinAnalysis.gradle.analysis.gradle.settingsGradle.analyzers import com.intellij.psi.PsiElement import org.jetbrains.research.lupa.kotlinAnalysis.AnalyzerIgnoreContextToStat import org.jetbrains.research.lupa.kotlinAnalysis.AnalyzersAggregatorIgnoreContext import org.jetbrains.res...
use crate::graph::base_graph::BaseGraph; pub trait MutableGraph: BaseGraph { fn add_vertex(&mut self, u: usize); fn add_vertex_with_capacity(&mut self, u: usize, capacity: usize); fn remove_vertex(&mut self, u: usize); fn add_edge(&mut self, u: usize, v: usize); fn remove_edge(&mut self, u: usize, ...
<?php spl_autoload_register( function ( $class ) { require( __DIR__ . DIRECTORY_SEPARATOR . $class . '.php' ); }); $myDotQmailMonitoring = new DotQmailMonitoring( ); ?>
[CmdletBinding()] param( ) $M365DSCTestFolder = Join-Path -Path $PSScriptRoot ` -ChildPath "..\..\Unit" ` -Resolve $CmdletModule = (Join-Path -Path $M365DSCTestFolder ` -ChildPath "\Stubs\Microsoft365.psm1" ` -Resolve) $GenericStubPath = (Join-Path -Path $M365DSCTestFolder ` -ChildPath "...
#!/usr/bin/env python # -*- coding: utf-8 -*- class MasterException(Exception): pass class PathException(Exception): pass class CommunicableException(Exception): pass class LiveActivityException(Exception): pass class StatusableException(Exception): pass class ActivityException(Exception): ...
class TreasureData::API module Job #### ## Job API ## # @param [Fixnum] from # @param [Fixnum] to (to is inclusive) # @param [String] status # @param [Hash] conditions # @return [Array] def list_jobs(from=0, to=nil, status=nil, conditions=nil) params = {} params['from'] = from.to_s if from ...
from twisted.python import filepath from nevow import athena import xquotient quotient = athena.AutoJSPackage(filepath.FilePath(xquotient.__file__).parent().child('js').path)
cask 'focuswriter' do version '1.7.1' sha256 '2f1763e2bc7ef3363c8006eb3081cb34358be98ae0567bbe007ea8e94579cd61' url "https://gottcode.org/focuswriter/FocusWriter_#{version}.dmg" name 'FocusWriter' homepage 'https://gottcode.org/focuswriter/' app 'FocusWriter.app' zap trash: '~/Library/Application Suppo...
package seedu.address.logic.commands.meeting; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.logic.commands.CommandTestUtil.DESC_LECTURE; import static seedu.address.logic.commands.CommandTestUtil.DESC_TUTORIAL; import ...
2020年07月21日00时数据 Status: 200 1.萧亚轩男友吐血送医 微博热度:1860955 2.英国暂停与香港间的引渡条约 微博热度:1502747 3.许凯 我的姓都打错了 微博热度:1216154 4.浙江大学 微博热度:1025727 5.宁静问王霏霏今年贵庚 微博热度:808954 6.保值神器 微博热度:801823 7.在地铁里收获的男朋友 微博热度:754095 8.努尔特巴特尔 微博热度:753490 9.王漫妮感情观 微博热度:576588 10.马浚伟论文查重率0.77% 微博热度:568813 11.李子柒夏天的味道 微博热度:541195 12.三...
using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using ScratchContent.Views; namespace ScratchContent { public partial class MainPage : UserControl { static MainPage() { Application.Current.UnhandledException += ApplicationUnhandledException; ...
package uk.me.michael_winter.junit.plugins.parameterised; import org.junit.Test; import org.junit.runner.Description; import org.junit.runner.Runner; import org.junit.runner.notification.Failure; import org.junit.runner.notification.RunNotifier; import org.junit.runners.model.FrameworkMethod; import org.junit.runners....
# -*- coding: utf-8 -*- import json import tweepy from Storage import Storage def get_tweepy_api(): """return tweepy api object with proper authentication""" consumer_key = '' consumer_secret = '' access_token = '' access_token_secret = '' auth = tweepy.OAuthHandler(consu...
#encoding: utf-8 require "yaml" require "nokogiri" require "open-uri" module PollyPhone class Site include Utils attr_accessor :main_url DEFAULT_DESCRIPTION_TYPE = "Description" # Create object with configuration for parsing with following params # @name - title of web-site we want to pa...
package org.jetbrains.r.run.graphics data class RGraphicsOutput(val number: Int, val snapshot: RSnapshot?, val plot: RPlot)
# heat-capacity-DP ## 程序简介 本程序是为了快速计算热容,具体原理是利用杜隆珀替定律计算的。 ## 程序下载及使用方法 **Windows:** 1. 打开https://github.com/13skeleton/heat-capacity-DP链接,点击"clone or download"按钮,将zip文件下载至本地 2. 解压缩.zip文件,打开bin文件夹,双击运行".exe"文件。 > 不要删除"periodic_table.yaml",不然会报错。 **linux:** > 自己解决吧,不会的,联系我。 ## 程序准备条件 1. 化学式,如SnTe, Sn1.03Te, Bi0...
# Rank Up Website Project The Rank Up website was a class project for web development. ## Introduction This project was a final project for a website ## Installation Any web browser should work ## Usage Website created as a final project ## License [MIT](https://choosealicense.com/licenses/mit/)
#!/usr/bin/env runhaskell {-# LANGUAGE NoMonomorphismRestriction #-} import qualified Data.ByteString as B (pack) import qualified Data.Attoparsec as AP import qualified ZMQHS.Frame as ZF import qualified Data.Binary.Get as G import qualified Data.Binary.Put as P test_one_complete = B.pack [1,1,65] test_two...
/* * Copyright (C) 2020 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...
/*L * Copyright Ekagra Software Technologies Ltd. * Copyright SAIC, SAIC-Frederick * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/common-security-module/LICENSE.txt for details. */ package gov.nih.nci.security.ri.valueObject; import java.io.Serializable; import jav...
package controllers.project import javax.inject.{Inject, Singleton} import play.api.mvc.{Action, AnyContent} import controllers.{OreBaseController, OreControllerComponents} import form.OreForms import form.project.ChannelData import ore.db.access.ModelView import ore.db.impl.OrePostgresDriver.api._ import ore.db.imp...
pub struct Post { content: String, } pub struct DraftPost { content: String, } impl Post { pub fn new() -> DraftPost { DraftPost { content: String::new(), } } pub fn content(&self) -> &str { &self.content } } impl DraftPost { pub fn add_text(&mut self,...
<?php declare(strict_types=1); use Illuminate\Support\Facades\Route; Route::group([ 'namespace' => 'Montopolis\\Mynabird\\Controllers', 'middleware' => ['web'], 'prefix' => 'mynabird', ], function ($router) { $router->get('alerts', 'AlertsController@index'); $router->get('alerts/{id}', 'AlertsCon...
#pragma once #define xstr(s) str(s) #define str(s) #s #define CU_ASSERT_EQUAL16(actual, expected) \ do { \ char condition[256]; \ sprintf( condition, "CU_ASSERT_EQUAL16( " xstr(actual) " = %d/%xh, %d )", actual, actual, expected ) ;\ CU_assertImplementation(((actual) == (expected)), __LINE__, condition...
--- name: Help with additonal customization about: Needs customization for your projects. title: '' labels: '' assignees: '' --- This project uses the ionic framework, in future implemented in more robust frameworks. Please wait for some more time!
--- title: Registration tool steps 6-7 description: Azure AD registration tool for Power BI embedded analytics, steps 6-7 services: powerbi author: KesemSharabi ms.author: kesharab ms.topic: include ms.date: 11/04/2020 ms.custom: include file --- 6. (Optional) In *Step 3 - Create a workspace*, you can create a workspa...
package ecschedule import ( "context" "flag" "fmt" "io" "log" "os" "github.com/aws/aws-sdk-go/aws/session" ) const cmdName = "ecschedule" // Run the ecschedule func Run(argv []string, outStream, errStream io.Writer) error { log.SetOutput(errStream) log.SetPrefix(fmt.Sprintf("[%s] ", cmdName)) nameAndVer :...
package shared import ( "testing" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/sdk/testutil" "github.com/stretchr/testify/assert" ) func TestConsul(t *testing.T) { // Create a test Consul server srv, err := testutil.NewTestServerConfigT(t, nil) if err != nil { t.Fatal(err) } defer srv.S...
using HarmonyLib; using VRage.Plugins; namespace avaness.BetterInventorySearch { public class Main : IPlugin { public void Dispose() { } public void Init(object gameInstance) { Harmony harmony = new Harmony("avaness.BetterInventorySearch"); InventoryCon...
# CustomNotificationtestgetnotificationtestsResponse A Notificationtest Object in the context of getNotificationtests ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**pkiNotificationtestID** | **Integer** | The unique ID of the Notificationtest |...
xml for lua [![Build Status](https://travis-ci.org/lubyk/xml.png)](https://travis-ci.org/lubyk/xml) =========== Very fast and simple XML parser for Lua based on RapidXML 1.13. [Documentation](http://doc.lubyk.org/xml.html). install ------- luarocks install xml install on Windows ------------------ luarock...
extern crate utils; use exonum_crypto::Hash; use std::convert::AsRef; use utils::serializer::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default, BinaryValue, ObjectHash)] #[binary_value(codec = "bincode")] pub struct State { data: ::std::vec::Vec<u8>, storage_root: Has...
#include_recipe 'hadoop_wrapper::default' include_recipe 'hadoop::default' include_recipe 'hadoop::hadoop_hdfs_namenode' ruby_block 'initaction-format-hdfs-namenode' do block do resources('execute[hdfs-namenode-format]').run_action(:run) end end ruby_block 'initaction-start-hdfs-namenode-service' do block ...
import { Action } from 'redux'; import { BASE_API_URL } from '../../constants/api'; import history from '../../history'; import { getJobUrlFromName } from '../../urls/utils'; import { stdCreateHandleError } from '../utils'; import { actionTypes } from './actionTypes'; import { getJobSuccessActionCreator } from './get'...
"""Tools for signal processing.""" import numpy as np from scipy.ndimage.filters import gaussian_filter1d __all__ = ['smooth', 'canoncorr', 'participation_ratio', 'stable_rank'] def smooth(x, sigma=1.0, axis=0): """Smooths a 1D signal with a gaussian filter. Args: x: array_like, The array to be smoothed ...
/** * Helper class to register modules as jQuery plugins and do some other magic * * @license APLv2 */ import $ from 'jquery'; import uniqueId from 'lodash.uniqueid'; /** * Helper class * @param {object} config * @param {string} config.name - Module name (used as namespace for all kinds of things) * @param {o...
module Wizard.Specs.API.Questionnaire.Detail_Revert_Preview_POST ( detail_revert_preview_POST ) where import Data.Aeson (encode) import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import Test.Hspec.Wai.Matcher import Shared.Api.Resource.Er...