text
stringlengths
27
775k
module Chapter4Spec where import Chapter4 import Test.Hspec spec :: Spec spec = describe "MyOption" $ do it "should be constructable" $ Some "Hello" `shouldBe` Some "Hello" it "should map with None handling" $ myMap None (\x -> x + 1) `shouldBe` None it "should...
const express = require("express"); const morgan = require("morgan"); const bodyParser = require("body-parser"); const fetch = require("node-fetch"); const PORT = process.env.PORT || 3000; const app = express(); app.use(morgan("dev")); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); ...
@include('public.include.header.top-header') <!-- End header area --> @include('public.include.header.second-header') <!-- End site branding area --> @include('public.include.header.theird-header') <!-- End mainmenu area -->
using System.Collections.Generic; using System.Linq; using System.Net.WebSockets; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using RavenNest.BusinessLogic.Net; using RavenNest.BusinessLogic.Twitch.Extension; namespace RavenNest.Controllers { ...
package com.andre.example.dao.jpa.impl; import static java.util.Objects.nonNull; import static org.apache.commons.lang3.StringUtils.isNotEmpty; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pag...
import { activity } from '@core/services/routes/activities' import SecurityQuestion from '@apps/maha/models/security_question' import { validate } from '@core/utils/validation' const verifyRoute = async (req, res) => { await validate({ token: 'required' }, req.body) if(req.user.get('activated_at')) return ...
require 'flt' module Economics class Loan include ActiveModel::Model include Flt attr_accessor :e_fee attr_accessor :e_amount attr_accessor :e_start_date attr_accessor :e_rate attr_accessor :e_duration attr_accessor :p_amount attr_accessor :p_ps attr_accessor :p_ir attr_a...
//@flow import React from "react"; import { storiesOf } from "@storybook/react"; import MultiSelect from "../src/lib/components/multiselect/MultiSelect.component"; import { action } from "@storybook/addon-actions"; import { Wrapper, Title } from "./common"; const items = [ { selected: true, isFavorite: true,...
package io.agora.liveshop.utils; import android.Manifest; import android.app.Activity; import android.content.Context; import android.content.pm.PackageManager; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import java.util.Ar...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Parts to try robopilot without a physical car. """ import random import numpy as np class MovingSquareTelemetry: """ Generator of cordinates of a bouncing moving square for simulations. """ def __init__(self, max_velocity=29, x_min=1...
import 'package:flutter/material.dart'; import 'package:photogallery/custom_button.dart'; class ErrorPage extends StatefulWidget { @override _ErrorPageState createState() => _ErrorPageState(); } class _ErrorPageState extends State<ErrorPage> { @override Widget build(BuildContext context) { return Padding...
class ApplicationHelper::Button::NewHostAggregate < ApplicationHelper::Button::ButtonNewDiscover def supports_button_action? Rbac::Filterer.filtered(HostAggregate.providers_supporting(:create)).any? end def disabled? @error_message = _("No cloud provider supports creating host aggregates.") unless suppor...
export interface OptionsInterface { expires?: Date; expiry?: number; path?: string; domain?: string; secure?: boolean; } export declare class AureliaCookie { /** * * Get a cookie by its name */ static get(name: string): any; /** * Set a cookie */ static set(name: ...
package org.protocols.paxos import akka.actor.{ActorRef, ActorSystem, Props} import org.protocols.paxos.simple.SimplePaxos import scala.collection.immutable.IndexedSeq /** * @author Ilya Sergey */ class PaxosFactory[T] extends SimplePaxos[T] with PaxosVocabulary[T] { val AcceptorClass: Class[_] = classOf[Acc...
// Copyright 2013 the Chromium Embedded Framework Authors. Portions Copyright // 2012 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 CEF_LIBCEF_BROWSER_DEVTOOLS_DELEGATE_H_ #define CEF_LIBCEF_BROWSER_DEVTOOLS_DELEG...
module Day02 where import Util.Parser (Parser, intP, charP, parseList) import Control.Arrow ((&&&)) data Rectangle = Rectangle Int Int Int deriving Show type Input = [Rectangle] rectangleParser :: Parser Rectangle rectangleParser = do a <- intP charP 'x' b <- intP charP 'x' Rectangle a b <$> intP...
plugins { id("org.jetbrains.intellij") version "1.2.0" } group = "ru.adelf" version = "2021.4" repositories { mavenCentral() } apply { plugin("idea") plugin("org.jetbrains.intellij") plugin("java") } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VE...
## Reach-me service This is a simple service which manages side links aligned in the center right. To work with this module locally, - clone the repo - change directory into reach-me - npm install --force - npm start That simple 😄 > It is advisable to not touch the **Webpack** configs as it may rupture the...
//! Backends for the FuTIL compiler. pub mod colors; pub mod traits; pub mod verilog;
import numpy as np from mygrad import exp, exp2, expm1 from tests.wrappers.uber import backprop_test_factory, fwdprop_test_factory @fwdprop_test_factory(mygrad_func=exp, true_func=np.exp, num_arrays=1) def test_exp_fwd(): pass @backprop_test_factory(mygrad_func=exp, true_func=np.exp, num_arrays=1) def test_exp...
-- COMMENTS UPDATE `sys_objects_cmts` SET `Nl2br`='0' WHERE `Name`='bx_convos';
#include "vulpch.h" #include "CameraController.h" #include "Vulture/Core/Input.h" #include "MouseButtonCodes.h" namespace Vulture { FirstPersonController::FirstPersonController(): m_Camera(new PerspectiveCamera()) { } void FirstPersonController::RunController(const VULTURE_KEY keyUp, const VULTURE_KEY keyDown, ...
const reporters = require('jasmine-reporters'); const junitReporter = new reporters.JUnitXmlReporter({ savePath: process.env.JUNIT_DIR || '/tmp', consolidateAll: false, }); jasmine.getEnv().addReporter(junitReporter);
class StringObject { rawValue: string; value: object; constructor (rawValue: string) { this.rawValue = rawValue; Object.defineProperty(this, 'value', { value: StringObject.deserialize(rawValue), writable: false, }); } static serialize (obj: StringObject | object): string { if (...
/* Copyright (C) 2004 - 2011 Versant Inc. http://www.db4o.com */ namespace Db4objects.Db4o.Config { /// <summary>allows special comparison behaviour during query evaluation.</summary> /// <remarks> /// allows special comparison behaviour during query evaluation. /// <br /><br />db4o will use the Object re...
require 'spec_helper' describe PiecePipe::MethodStep do let(:pipeline) { PiecePipe::Pipeline.new } context "wrapping methods with single arguments" do it "creates a pipeline step that produces the return of the Method" do pipeline. input(42). step( method(:stringify_number) ). to...
@extends("templates.master") @section("content") <a href="{{route("users.new")}}" class="btn btn-primary" style="margin:1%;">Nieuwe gebruiker aanmaken</a> <table class="table table-bordered"> <tr> <th>Naam</th> <th>Username</th> <th>Role</th> <th>Laatste inlog moment</th> <t...
package com.example.minhaloja.modelo; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.validation.constraints.DecimalMin; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull...
import { connect } from 'react-redux'; import Presenter from './CityAutoComplete'; import { startCityFetch, selectValue, getSuggestions, clearSuggestions, addSelectedCity } from '../../core'; const mapStateToProps = state => ({ suggestions: getSuggestions(state), }) const mapDispatchToProps = { start...
#!/dev/null ## chunk::92e939c6f33222484d00dbe40c3053fc::begin ## if ! test "${#}" -eq 0 ; then echo "[ee] invalid arguments; aborting!" >&2 exit 1 fi ## chunk::3c8b019c663118b00172b22aeae97568::begin ## if test ! -e "${_temporary}" ; then mkdir -- "${_temporary}" fi if test ! -e "${_outputs}" ; then mkdir -- "${_...
package co.brainly.onesky.task import co.brainly.onesky.OneSkyPluginExtension import co.brainly.onesky.client.OneSkyApiClient import org.gradle.api.DefaultTask import org.gradle.api.Project import org.gradle.api.tasks.TaskAction import org.gradle.api.tasks.TaskExecutionException import org.gradle.internal.logging.prog...
export const getSum = (array: number[]) => array.reduce((acc, n) => acc + n, 0); export const getMax = (array: number[]) => Math.max(...array); /** Get the mean of an array of values */ export const getMean = (array: number[], decimalPlaces = 2): number => { const mean = getSum(array) / array.length; return Numbe...
# flowable-springboot the demo for flowable-springboot # 采用springboot+flowable快速实现工作流 ``` postgresql flowable mybatis-plus fastjson ``` # 测试api ## 发起报销 http://localhost:8080/expense/add?userId=bossTask&money=300 ## 查看任务 http://localhost:8080/expense/list?userId=boss ## 通过 http://localhost:8080/expense/apply?taskId=1750...
#!/bin/bash sudo useradd -d /home/$1 -m -s /bin/bash $1 sudo passwd $1 echo $1 >> userNames.txt
# autodrop Tool to create ready to use skeleton directories ## Install Do a global install to be able to use it in any directory ``` npm i -g autodrop ``` or ``` yarn global add autodrop ``` ## Usage Currently it only supports the quick creation of React Components skeletons iwth the `-r` option ``` autodrop -r...
package com.acxiom.kafka.utils import org.apache.kafka.clients.producer.{KafkaProducer, ProducerRecord} import org.apache.spark.sql.functions.{concat, lit} import org.apache.spark.sql.{Column, DataFrame} import java.util.Properties object KafkaUtilities { private val kafkaProducerProperties = new Properties() ka...
DELIMITER / CREATE TABLE SUBAWARD ( SUBAWARD_ID DECIMAL(12,0) NOT NULL, ORGANIZATION_ID VARCHAR(8) NOT NULL, START_DATE DATE, END_DATE DATE, SUBAWARD_TYPE_CODE DECIMAL(3,0) NOT NULL, PURCHASE_ORDER_NUM VARCHAR(10), TITLE VARCHAR(150), STATUS_CODE DECIMAL(3,0) NOT NULL, ACCOUNT_NUMBER VARCHAR(100),...
import { DomainError } from '../../../shared/errors/domainError'; type UserAlreadyExistsEmailContext = { readonly email: string; }; type UserAlreadyExistsPhoneNumberContext = { readonly phoneNumber: string; }; export class UserAlreadyExists extends DomainError< UserAlreadyExistsEmailContext | UserAlreadyExists...
use string_interner::backend::StringBackend; use string_interner::StringInterner; use crate::syntax::{identifiers, FieldIndex, IdentifierIndex}; use crate::value::*; use std::env; use std::fmt; use std::io; use std::io::Write; use std::path::PathBuf; use std::rc::Rc; #[derive(Clone)] pub struct RootRef(Rc<RootData>)...
import styled, { keyframes } from 'styled-components' import media from 'styled-media-query' export const NavContainer = styled.nav` display: flex; flex-direction: column; ` const navbarAnim = keyframes` 0% { left: 100vw; } 100% { left: 0w; } ` const opacityAnim = keyframes` 0% { opacity: 0...
define(['backbone','Cesium'],function(Backbone,Cesium){ var MarkerModel = Backbone.Model.extend({ defaults : { name : '', description : '', type : 'MARKER' }, initialize : function(){ }, addMarker : function(sceneModel,marker){ th...
lines = File.readlines("../input/01").map(&:to_i) # part 1 puts lines.map { |l| l / 3 - 2}.sum # part 2 def calc(fuel) mass = fuel / 3 - 2 if mass < 0 return 0 end return mass + calc(mass) end puts lines.map {|l| calc l}.sum
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "tcp_impl.h" int MPID_nem_tcp_finalize(void) { int mpi_errno = MPI_SUCCESS; int ret; char strerrbuf[MPIR_STRERROR_BUF_SIZE]; MPIR_FUNC_VERBOSE_STATE_DECL(MPID_STATE_MPID_NEM_TCP_FINALIZE); ...
package etcd import ( "context" "crypto/tls" "net" "strconv" "time" "github.com/coreos/etcd/clientv3" "github.com/pkg/errors" "github.com/penglongli/kcro/registry" "github.com/penglongli/kcro/utils" "github.com/penglongli/kcro/utils/log" ) var ( key = "/service" ) type Options struct { Endpoints []st...
#!/bin/bash . "${0%/*}"/util.sh prepare granularity="${1:-full}" for file in "${base_dir}"/tests/src/*.soda; do basename="${file##*/}" frt_host="${tmp_dir}/${basename/%soda/host.cpp}" iocl_exe="${tmp_dir}/${basename/%soda/frt.exe}" iocl_kernel="${tmp_dir}/${basename/%soda/cl}" iocl_bitstream="${tmp_dir}/${b...
# Role "kibana-nginx" This role installs the configuration for NGINX reverse proxying to Kibana.
#!/bin/bash # Report how complete each translation catalog is # How many messages in total? total=`grep '^msgid' audacity.pot | wc -l` for filename in `ls *.po`; do # If there are errors from msgcmp, then the last line on standard error # contains a count of problematic messages; else it won't match the ...
package token import ( itypes "GeekMeeting/internal/type" "GeekMeeting/services/auth" "context" "log" "net/http" "strings" "github.com/julienschmidt/httprouter" ) // token刷新接口 func Refresh(ctx context.Context) httprouter.Handle { jwt := ctx.Value(itypes.JwtKey).(auth.JwtTool) return func(rw http.ResponseWri...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Utilities to handle passing Rust code to s2n-tls's C callbacks. //! //! s2n-tls uses callbacks to temporarily return control to the application //! and allow the application to execute custom code. //! //! ...
namespace WinSysInfo.PEView.Process { public class ReadFileSectionCondition<TLayoutType> where TLayoutType : struct { } }
package typingsSlinky.firebaseFirestore import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ @JSImport("@firebase/firestore/dist/test/util/promise", JSImport.Namespace) @js.native object testUtilPromiseMod extends js.Object { @js.native class Deferred[R] () extends js.Object { ...
/* * Copyright 2016 BananaRama. * * 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 t...
module Day15.Puzzle2 where import Relude import Control.Monad.ST (runST, ST) import Data.STRef (writeSTRef, modifySTRef, readSTRef, newSTRef, STRef) import qualified Data.Array.MArray as Array import Data.Array.Base (newArray, STUArray) import Data.List (maximum) puzzleInput :: [Int] puzzleInput = [8,0,17,4,1,12] d...
/* eslint-disable no-use-before-define */ /* eslint-disable import/no-extraneous-dependencies */ import { ApolloClient, ApolloClientOptions, ApolloLink } from '@apollo/client'; import { InMemoryCache } from '@apollo/client/cache'; // import * as schema from '../schema/schema.graphql'; import { resolvers } from '../reso...
frappe.listview_settings['Budget BOM'] = { add_fields: ["status"], get_indicator: function (doc) { if ([ "In Progress", "Quotation In Progress", "In Progress", "To Quotation", "Quotation In Progress", "To Material Request", "To BOM", "To Deliver and Bill", "To Deliver", "To Bil...
package ru.justagod.justacore.initialization.core.config; /** * Created by JustAGod on 04.01.2018. */ public enum ConfigType { JSON(JsonConfig.class, "json"), TEXT(TextConfig.class, "txt"); private final Class<? extends Config> clazz; private final String postfix; public Class<? extends Config> get...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using MySystemConfig.Model; using MySystemConfig.Service; using MySystemConfig.ServiceImpl; namespace MySystemConfig.Service.Test { [TestClass] public class DefaultSystemConfigServiceTest { ///...
/*------------------------------------------------------------------------------- # Department Top Three Salaries #------------------------------------------------------------------------------- # By Ying Peng # https://leetcode.com/problems/department-top-three-salaries/ # Completed 12/12/20 -----------------------...
import { createApp } from 'vue' import * as VueRouter from 'vue-router' import { createI18n } from 'vue-i18n' import messages from '@intlify/vite-plugin-vue-i18n/messages' import App from './App.vue' import EditEntry from './components/EditEntry.vue' import Log from './components/Log.vue' import { parseKey } from './l...
export default function compare(a, b){ const aName = a.name.toUpperCase() const bName = b.name.toUpperCase() if(aName < bName){ return -1 }else if(aName > bName){ return 1 }else{ return 0 } }
package controllers import play.api._ import play.api.mvc._ import play.api.cache.Cache import play.api.Play.current import play.api.db._ import models.NameGenerator object Application extends Controller { private def nameGenerator: NameGenerator = new NameGenerator def index = Action { Ok(views.html.index...
import { CardHeader } from "@material-ui/core"; import React from "react"; interface CardTitleProps { children?: React.ReactNode; className?: string; height?: "default" | "const"; title: string | React.ReactNode; subtitle?: string | React.ReactNode; toolbar?: React.ReactNode; onClick?: (event: React.Mous...
<?php namespace App\MediBundle\Validator\Constraints; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; /** * @Annotation */ class Fecha extends Constraint { public $message = 'La fecha no puede ser anterior a la fecha actual'; } class FechaValidator extends Const...
package com.wxs.zuul.common; /** * @Author: yoyo * @Description: * @Date: Created in 2019/6/26 10:59 */ public class ZuulCommon { }
require_relative '../../../parser/parser' class Compiler def compile program rules = Parser.new.parse program <<-EOS package main import "./bonsai/interpreter" func CompiledRules() []*bonsai.Rule { return []*bonsai.Rule{#{ rules.map do |rule| "&#{compile_rul...
package com.lollipop.iconcore.listener /** * @author lollipop * @date 2020/5/15 00:00 * 返回事件提供者 * * 这是返回事件的提供者接口 * 表示这是一个返回事件的分发源, * 它将会收到或产生返回事件,允许监听并且拦截次事件。 * 需要注意的是,返回事件的监听遵循先到先得的规定, * 如果有必要,请尽早注册,但是不应该在自身的责任之外监听或拦截事件, * 这可能造成不必要的逻辑冲突或内存泄漏 * */ interface BackPressedProvider { /** * 添加一个返回事件监听器...
# encoding: utf-8 module Substation module Processor # A processor that transforms output data into something else module Transformer # A transformer used to transform an incoming request class Incoming include Processor::Incoming # Call the processor # # @param...
def power_of_cell(x, y, serial) rack_id = x + 10 power = rack_id * y power += serial power *= rack_id power = (power / 100) % 10 power - 5 end # test the power_of_cell method raise "power of cell not working properly" unless power_of_cell(3, 5, 8).eql?(4) raise "power of cell not working properly" unless p...
#!/bin/bash #mv rsnadb.sql /docker-entrypoint-initdb.d/ psql -U edge -d rsnadb < /rsnadb.sql
#!/bin/bash if [[ $# -ne 1 ]]; then echo "Usage: $0 <path to custom element's directory>" echo echo "Example: $0 golden/modules/dots-sk" echo echo "This script uses the \"entr\" command to launch a demo page server via" echo "\"bazel run\". When the files in the custom element's directory change, entr will...
#!/usr/bin/env bash libreoffice --convert-to pdf:writer_pdf_Export --outdir docs docs/*.odt
class SubredditsController < ApplicationController def index @subreddits = Subreddit.order("subscriptions_count DESC").all. paginate(page: params[:page], per_page: 30) @subscriptions = Subscription.where(user_id: current_user.id). pluck(:subreddit...
package io.github.ch8n.compose97.navigation import com.arkivanov.essenty.parcelable.Parcelable import com.arkivanov.essenty.parcelable.Parcelize sealed class Destinations : Parcelable { @Parcelize object Desktop : Destinations() @Parcelize object MyComputer : Destinations() @Parcelize object...
package bertyprotocol import ( "encoding/base64" "strings" "github.com/appleboy/go-fcm" "berty.tech/berty/v2/go/pkg/errcode" "berty.tech/berty/v2/go/pkg/protocoltypes" "berty.tech/berty/v2/go/pkg/pushtypes" ) type pushDispatcherFCM struct { client *fcm.Client appID string } func (d *pushDispatcherFCM) Tok...
package com.tracy.competition.domain.entity import java.util import java.util.List import scala.beans.BeanProperty /** * @author Tracy * @date 2021/2/9 1:06 */ class Promise extends Serializable { @BeanProperty var promiseId: String = _ @BeanProperty var promiseName: String = _ @BeanProperty var roles: ja...
## vtkGroupTimeStepsFilter: filter to group timesteps `vtkGroupTimeStepsFilter` is a new filter that replaces `vtkMultiBlockFromTimeSeriesFilter`. It accepts a temporal input and converts that into either a vtkPartitionedDataSetCollection or a vtkMultiBlockDataSet with all the timesteps. vtkPartitionedDataSetCollecti...
--- templateKey: works-post title: Interior date: '2019-02-24T18:02:09-05:00' image: /img/dsc_4385_1.jpg description: 'stoneware, steel. 2017' tags: - sculpture --- 36 x 36 x 25 in.
require "test_helper" class TournamentTest < ActiveSupport::TestCase def setup @tournament = tournaments(:tournament_1) end test "Mark a match as complete" do @tournament = tournaments(:tournament_2) @match = @tournament.current_match_obj assert_not_nil @match # M...
var sendinblue = require('sendinblue-api') var parameters = { "apiKey": "gj3z7EfSmVAypqCs", "timeout": 5000 } //Optional parameter: Timeout in MS var sendinObj = new sendinblue(parameters) function getSIBAccount() { var input = {} return sendinObj.get_account(input, function (err, response) { retur...
package algs.subsets import scala.annotation.tailrec trait Subsets { type Subsets[A] = List[List[A]] def subsets[A](list: List[A]): Subsets[A] = { subsetsRec(list) } @tailrec private def subsetsRec[A](list: List[A], acc: Subsets[A] = Nil :: Nil): Subsets[A] = { list match { case Nil => acc....
"use strict"; // Original file: investAPI/src/docs/contracts/stoporders.proto Object.defineProperty(exports, "__esModule", { value: true }); exports.StopOrderType = void 0; var StopOrderType; (function (StopOrderType) { StopOrderType[StopOrderType["STOP_ORDER_TYPE_UNSPECIFIED"] = 0] = "STOP_ORDER_TYPE_UNSPECIFIED";...
// Copyright 2021 Google LLC // // 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 in ...
import { Component, Output, EventEmitter, Input } from '@angular/core'; import { ManualTagsService } from './manual-tags.service'; @Component({ selector: 'app-add-tag-component', templateUrl: 'add-tag.component.html', styleUrls: ['add-tag.component.scss'] }) export class AddTagComponent { @Input() darkMode: b...
make cd ./out/ cp -rf ../script ./ strip ./lib/* ./bin/* chmod +x -R ./bin ./script tar zcvf LiteOs.tar.gz ./bin ./lib ./script
<?php /** * This file is part of the Bono CMS * * Copyright (c) No Global State Lab * * For the full copyright and license information, please view * the license file that was distributed with this source code. */ return array( '/%s/module/contact/tweak' => array( 'controller' => 'Ad...
package com.iamsdt.shokherschool.data.retrofit.pojo.page data class Title(val rendered: String = "")
# BSD kernel on Scaleway :warning: *Still in development* :warning: The [Bitrig](https://www.bitrig.org) team is working on Scaleway support ## Related links: - https://github.com/bitrig/bitrig/issues/64 - https://github.com/bitrig/bitrig/issues/65
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") . "$here\$sut" Describe "Get-CsvColumns" { $RECORDS=@" NUMERIC_FIELD,DATE_FIELD,STRING_FIELD 1,3/1/2015,AA 2,4/1/2015,BB 3,5/1/2015,CC 4,5/1/2015,DD ,, "@ $NO_HEADERS=@" 1,3/1/2015,...
/** * Copyright (C) 2015 Red Hat, 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...
package aula14_poo; public class Video implements AcoesVideo { private String titulo; private int avaliacao; private int views; private int curtidas; private boolean reproduzindo; public Video(String titulo) { this.titulo = titulo; avaliacao = 1; views = 0; curtidas = 0; reproduzindo = false; } @Ov...
<?php if ((($_SESSION["person_id"] != 0) && ($_SESSION["_SITE_CONF"]["RUNLEVEL"] != 1)) || !$_PERMITS->can_pass(PERMITS::_SUPERUSER)) throw_the_bum_out(NULL,"Evicted(".__LINE__."): no permit"); phpinfo(); ?>
import torch import torch.nn as nn import torch.utils.data as Data import torchvision import matplotlib.pyplot as plt import numpy as np class CNNLSTM(nn.Module): # Input size: 30x224x224 # The CNN structure is first trained from single frame, then the lstm is fine-tuned from scratch. def __init__(self, nu...
use druid::{ExtEventSink, Target}; use crossbeam_channel::{unbounded, Sender}; use notify::{RecommendedWatcher, RecursiveMode, Watcher}; use std::path::PathBuf; /// Watch paths. Each `path` will be watched recursively pub fn watch(paths: Vec<PathBuf>, sink: ExtEventSink) -> notify::Result<()> { std::thread::spaw...
using System; using System.Speech.Synthesis; using System.Windows; using System.Windows.Threading; namespace WpfApplication2 { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow { public MainWindow() { InitializeCompon...
import 'package:flutter/cupertino.dart'; import 'package:octodb_sqflite/src/factory.dart'; import 'package:octodb_sqflite/src/factory_impl.dart'; import 'package:octodb_sqflite_common/sqlite_api.dart'; /// Change the default factory used. /// /// Test only. /// @visibleForTesting void setMockDatabaseFactory(DatabaseFa...
#!/bin/sh cd blank_template; zip -r -X "../src/templates/BlankTemplate.docx" *
-module(type_refinement). -export([guard_prevents_refinement/2, imprecision_prevents_refinement/2, multi_pat_fail_1/2, guard_prevents_refinement2/1, pattern_prevents_refinement/2]). -spec guard_prevents_refinement(1..2, boolean()) -> 2. guard_prevents_refinement(N, Guard) -> case N of ...
<?php /** * @desc Appends all $_GET-vars onto $target. * @param string $target */ function CTEPL__urlappendgetvars($target) { $target .= '?'; foreach($_GET as $key => $value) $target .= $key.'='.urlencode($value).'&'; return substr($target, 0, -1); } ?>
using System.Collections.Generic; using StackExchange.NET.Helpers; using StackExchange.NET.Models; namespace StackExchange.NET.Interfaces { public interface IApiUrlHelper { ApiUrlBuilder ForClient(ClientType type, string route = ""); ApiUrlBuilder WithFilter(Filter filter, string inName = ""); ApiUrlBuilder W...
# Find a stationary solution to the Gross-Pitaevskii equation by # minimizing the energy of a normalised wave function in a rotating # frame @testset "Gross-Pitaveskii vortex" begin C = 10 μ = 10 Ω = 2*0.575 h = 0.2 N = 40 # Finite difference matrices. ∂ on left is ∂y, ∂' on right is ∂x ...