text
stringlengths
27
775k
<?php /** * @license http://opensource.org/licenses/MIT MIT */ namespace Rdb\Modules\RdbCMSA\Libraries\SPLIterators; /** * Abstract file system regular expression filter. * * @link https://stackoverflow.com/a/3322641/128761 Original source code. * @since 0.0.8 Moved from `\Rdb\Modules\RdbCMSA\Controllers\Adm...
@test isadmtup([0,2,4]) == false @test isadmtup([0,2,6,8,12]) == true @test isadmtup([3, 5, 11, 17, 29]) == false @test isadmtup([5, 7, 13, 19, 31]) == false @test isadmtup([5,7,11,13,17]) == true
<?php class GroupsController extends \BaseController { protected $layout = "layouts.default"; public function create(){ if(!Auth::check()){ return Redirect::to('users/login')->with('message', 'Bitte logge dich ein, damit du diese Seite sehen kannst!'); } return View::make('groups.create'); } public f...
import curry from 'lodash.curry' import path from 'path' import webpack, { Configuration } from 'webpack' import MiniCssExtractPlugin from '../../../plugins/mini-css-extract-plugin' import { loader } from '../../helpers' import { ConfigurationContext, ConfigurationFn, pipe } from '../../utils' import { getCssModuleLoca...
import 'dart:async'; import 'package:flutter/services.dart'; class PitGetApplication { static const MethodChannel _channel = const MethodChannel('pit_get_application'); static Future<List<String>> get getAllApplication async { final List<dynamic> appPackage = await _channel.invokeMethod("getListApplic...
it("should skip trusted types logic when policy name is empty", function () { // emulate trusted types in a window object const noop = i => i; const rules = { createScriptURL: noop }; window.trustedTypes = { createPolicy: () => rules }; const createScriptURLSpy = jest.spyOn(rules, "createScriptURL"); const ...
2020年08月19日01时数据 Status: 200 1.钱枫又胖了 微博热度:996040 2.警方初步判断老人被狗绳绊倒身亡为意外 微博热度:528523 3.香奈儿的颜色 微博热度:521753 4.孟佳 我真的上台了 微博热度:520164 5.以家人之名 微博热度:484030 6.汽车之家818全球汽车夜 微博热度:431717 7.湖南卫视818晚会 微博热度:365135 8.乌童是个抖M吧 微博热度:266186 9.中国驻以使馆通报某中国工人聚居区疫情 微博热度:253886 10.豆瓣崩了 微博热度:251909 11.张萌张月同台 微博热度:251686 12...
/** * (c) Copyright 2013 WibiData, Inc. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * 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 sbt-pack plugin will print a warning if there is no main class in the // project. The sole purpose of this file is to mask this warning. object DummyMain extends App
package com.ruuvi.station.network.domain import com.ruuvi.station.network.data.request.* import com.ruuvi.station.network.data.response.* import okhttp3.RequestBody import retrofit2.Response import retrofit2.http.* interface RuuviNetworkApi{ @Headers("Content-Type: application/json") @POST("register") sus...
package twitter import ( "net/http" "os" "github.com/dghubble/go-twitter/twitter" "github.com/dghubble/oauth1" "go.uber.org/zap" ) type TwitterClient interface { GetTweetsFor(user string) ([]string, *http.Response, error) } type twitterClient struct { Client *twitter.Client logger *zap.SugaredLogger } func...
var searchData= [ ['mediawikitheme',['MediaWikiTheme',['../class_o_o_u_i_1_1_media_wiki_theme.html',1,'OOUI']]] ];
import React, { Component } from 'react'; import './App.css'; import Contacts from './Components/Contacts/Contacts'; import Register from './Components/Register/Register'; import Signin from './Components/Signin/Signin'; const initialState = { route: 'signin', user: { 'name':'', 'email':''...
; RUN: llc < %s -march=arm -mattr=+vfp2 define double @test_f64(double %a1, double %a2) { ret double %a2 }
export interface RolePayload { id: string name: string color: number hoist: boolean position: number permissions: string managed: boolean mentionable: boolean }
package com.zulu.android import android.content.Context import androidx.lifecycle.LifecycleOwner class ScreenContext( val context: Context, val lifecycleOwner: LifecycleOwner, val id: String, val name: String )
spec = Gem::Specification.new do |s| # TODO - set this up to allow rbx 1.0+ and ruby 1.9.2+ s.required_ruby_version = '~> 1.9.2' s.name = 'enjin' s.version = '0.0.1' s.date = '2011-06-20' s.summary = 'An open cloud for any altitude' s.homepage = 'http://github.com/wilson/enjin' s.description = 'An ongoi...
;nyquist plug-in ;version 2 ;type analyze ;name "Peak Finder rft..." ;action "Analysing the audio ..." ;control equal-levels "Place labels at" choice "first peak only,all equally loud peaks" 1 ;control minimum-distance "Minimum Distance:[samples]" int "" 100 1 1000 ;info "Peak Finder by edgar-rft@web.de" ; no garb...
--- layout: post title: Generating networks from rasters with R date: 2020-05-16 23:15:00 summary: Making networks out of rasters turned out to be trivial with R. categories: codemonkey r graph-theory commentIssueId: 44 --- I've been doing a lot of work with networks and graph theory over the years, ...
import PropTypes from 'prop-types' export const propTypes = { style: PropTypes.object, initialPage: PropTypes.number, vertical: PropTypes.bool, onChange: PropTypes.func, duration: PropTypes.number, withRef: PropTypes.bool, infinite: PropTypes.bool, renderHeader: PropTypes.oneOfType([PropTypes.func, Pro...
namespace FromCoderToEngineer.Samples.Chapter9.GenericDelegates { using System; using System.Collections.Generic; public class UpdatedReservationService : IInteract<Reservation> { private readonly IEnumerable<Reservation> _reservations; public UpdatedReservationService(IReservationRep...
package main import ( "fmt" "sort" "strconv" "strings" ) func main() { var userInput string var num int cond, valid := true, true data := make([]int, 0, 3) for cond { fmt.Println("Please enter your integer :") fmt.Scan(&userInput) num, cond, valid = validateInput(userInput, cond) if...
package it.barusu.chris import io.vertx.core.AbstractVerticle import io.vertx.ext.web.Router import io.vertx.ext.web.handler.* import it.barusu.chris.cashier.CashierHandler import org.slf4j.LoggerFactory import org.springframework.stereotype.Component import javax.annotation.Resource @Component class RouteVerticle : ...
class WorkersController < ApplicationController before_action :confirm_actions, only: [:create, :update, :destroy, :new, :edit] before_action :set_s3_direct_post, only: [:new, :edit] before_action :set_worker, only: [:show, :edit, :update, :destroy, :archive] def index end def get_workers # people_c...
package com.dinhhuy258.tabnumber.settings import com.intellij.openapi.components.PersistentStateComponent import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.components.State import com.intellij.openapi.components.Storage import com.intellij.util.xmlb.XmlSerializerUtil @State( na...
module Sublist (Sublist(..), sublist) where data Sublist = Equal | Sublist | Superlist | Unequal deriving (Eq, Show) sublist :: [a] -> [a] -> Sublist sublist xs ys = error "You need to implement this function."
$(function() { $('a.fancy-formsets-add-row').click(function() { var tr = $(this).parents('table').find('tr.extra:first'); if (tr.length) { tr.removeClass("hidden").removeClass("extra"); tr.find("span.fancy-formsets-delete input") .prop('checked', false); tr.trigger("fancy-formsets-row-added"); ...
<?php /** * Created by PhpStorm. * User: youngk * Date: 2018/3/5 * Time: 下午4:35 */ namespace Swoole\Coroutine\Http; use Swoole\Client as BaseClient; class Client extends BaseClient{ public $errCode; public $body; public $statusCode; public function get(string $path){} ...
// Copyright (c) 2020, Control Command Inc. All rights reserved. // Copyright (c) 2019-2020, Sylabs Inc. All rights reserved. // This software is licensed under a 3-clause BSD license. Please consult the // LICENSE.md file distributed with the sources of this project regarding your // rights to use or distribute this s...
; 8 位乘法 ; 结果储存在 ax mov al, 0xf0 mov ah, 0x02 mul ah ; 16 位乘法 ; 结果储存在 dx:ax mov ax, 0xf000 mov bx, 0x0002 mul bx ; 16 位除法 ; 商存在 al 里, 余数存在 ah 里 mov ax, 0x0004 mov bl, 0x02 div bl ; 32 位除法 ; 商存在 ax 里, 余数存在 mov dx, 0x0008 mov ax, 0x0006 mov cx, 0x0002 div cx jmp $ times 510-($-$$) db 0 db 0x55, 0xaa
# duplex A Python library that can handle terminal input and terminal output at the same time.
USE shoppingcartservice; CREATE TABLE IF NOT EXISTS item_popularity ( item_id text, count counter, PRIMARY KEY (item_id));
package example.repo; import example.model.Customer260; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer260Repository extends CrudRepository<Customer260, Long> { List<Customer260> findByLastName(String lastName); }
/* * 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 ...
<?php /** * @var $model \app\models\Product */ ?> <div> <h3>This is my test page</h3> <hr> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <hr> <p> Ut enim ad minim veniam, quis nostrud...
using ChatWebServer.Model; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Text.Json; using System.Web.Http; namespace ChatWebServer.Controllers { public class MessageController : ApiController { pr...
import { StateInterface } from "../types"; class UnknownStateError extends Error { private state: string; // @ts-ignore public constructor(state: string, info: string) { super(); if (Error.captureStackTrace) { Error.captureStackTrace(this, UnknownStateError); } t...
<?php namespace App\Http\Controllers; use App\Models\Contact; use App\Models\OrderDetail; use App\Models\Product; use App\Models\Slide; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use predictionio\EventClient; use predictionio\EngineClient; use Carbon\Carbon; ...
#!/usr/bin/env bash set -e source $(dirname "$0")/../common.sh source $(dirname "$0")/../config.sh source ${REPO_DIR}/cluster-up/cluster/${KUBEVIRT_PROVIDER}/provider.sh # delete all operator related objects under the namespace _kubectl -n ${namespace} delete deployment -l machineremediation.kubevirt.io _kubectl -n ...
using System; using System.Threading.Tasks; namespace FluentSocket.Samples.Common.Services { public class CustomSessionService : BaseSessionService { private readonly Action<ISocketSession> _sessionConnectedHandler; public CustomSessionService(Action<ISocketSession> sessionConnectedHandler) ...
{-# LANGUAGE CPP #-} #if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT) {-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.NodeIterator (ghcjs_dom_node_iterator_detach, nodeIteratorDetach, ghcjs_dom_node_iterator_get_root, nodeIteratorGetRoot, ...
# The revision history of react-from-html ## v0.6.0 2019/02/28 * `<RawHtml html="...">` for SSR * it requires `<DOMParserContext.Provider/>` for `DOMParser` instance ## v0.5.0 2018/07/23 * Fix `key` attribute to be correct ([#3](https://github.com/bitjourney/react-from-html/pull/3)) ## v0.4.0 2018/07/09 * Fix c...
<?php namespace AppBundle\Repository; use AppBundle\Domain\Trips; interface TripRepository { /** * @return Trips[] */ public function getAllTrips(): array; }
package restore import ( "testing" cmdutil "github.com/GGP1/kure/commands" dbutil "github.com/GGP1/kure/db" "github.com/GGP1/kure/db/card" "github.com/GGP1/kure/db/entry" "github.com/GGP1/kure/pb" ) func TestLogs(t *testing.T) { db := cmdutil.SetContext(t, "../../db/testdata/database") expected := &pb.Entry...
using Dir.Ex.Actions.Reverses; using Dir.Ex.Prototypes; using System.IO; namespace Dir.Ex.Actions { public class Reversed1Action : ReversedAction { public Reversed1Action() : base(true) { } } public class Reversed2Action : ReversedAction { public Reversed2Action() ...
package hypedex import java.util.UUID import hypedex.models.payloads.HypedexPayload import hypedex.models.{Metadata, TreeNode} import hypedex.partitionConstructor.{CalculationWrapper, KDNode, PartitionNode} import hypedex.services.KDTreeBuilder import hypedex.storage.{PartitionStore, MetadataRepository} import org.ap...
import 'package:code_builder/code_builder.dart'; import 'package:peg2/src/generators/code_block.dart'; class IfElseGenerator { final Expression expression; final CodeBlock _elseCode = CodeBlock(); final CodeBlock _ifCode = CodeBlock(); IfElseGenerator(this.expression); void elseCode(void Function(CodeBlo...
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt -S %s -scalarize-masked-mem-intrin -mtriple=x86_64-linux-gnu | FileCheck %s define void @scalarize_v2i64(<2 x i64>* %p, <2 x i1> %mask, <2 x i64> %data) { ; CHECK-LABEL: @scalarize_v2i64( ; CHECK-NEXT: [[TMP1:%.*]] = bitcast <2 x i...
import 'package:at_persistence_secondary_server/at_persistence_secondary_server.dart'; ///Represents the change event on the persistent key-store. class AtPersistenceChangeEvent { dynamic key; dynamic value; late ChangeOperation changeOperation; late KeyStoreType keyStoreType; /// Returns an [AtPersistenceC...
#!/bin/sh # 若指令传回值不等于0,则立即退出shell。 set -e # 打印当前路径 pwd remote=$(git config remote.origin.url) echo "remote is:" $remote # 新建一个发布目录 mkdir -pv val-design-doc cd val-design-doc # 设置一个新的仓库 git config --global user.email "$V_EMAIL" >/dev/null 2>&1 # 设置发布的用户名和邮箱 git config --global user.name "$V_NAME" >/dev/null 2>&1 ...
#include <ruby.h> #include "mount.h" #include "led.h" #include "button.h" #include "base.h" #include "pwm.h" #include "file_stuff.h" void GPIO_deallocate(void *pi_io) { // We can not unmount it here, because maybe another object is looking for the same pin? //pi_io_unmountPin(ptr->port); free(pi_io); } VALUE...
# Question Rephrasing transformation This perturbation uses a model to rephrase a question in a natural manner and was proposed for paraphrasing questions. Author name: Pierre Colombo Author email: colombo.pierre@gmail.com Author Affiliation: Telecom Paris ## What type of a transformation is this? This transformati...
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ViewPatterns #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- for Data.Semigroup ----------------------------------------------------------------------------- -- | -- Module : Diagrams.Two...
using System; using System.Collections.Generic; using System.Text; using Mozilla.UniversalCharacterDetection.Prober.Sequence; namespace Mozilla.UniversalCharacterDetection.Prober { /// <summary> /// Description of SBCSGroupProber. /// </summary> public class SBCSGroupProber : CharsetProber { private ProbingStat...
using System; using System.Collections.Generic; using System.Text; namespace Nomad.DotNet.Model { public class Resources: ApiObject<Resources> { public int Cpu { get; set; } public int MemoryMb { get; set; } public int DiskMb { get; set; } public int Iops { get; set; } ...
### 新增 - 【新增】管理端-支持查看采集项数据存储(包含基础信息,物理索引信息,字段信息等) - 【新增】管理端-支持查看采集项数据状态(包括数据趋势,数据采样等) - 【新增】管理端-支持查看采集项使用详情(包括使用统计,检索记录等) - 【新增】管理端-支持查看索引集基本信息(包括物理索引信息,操作记录等) - 【新增】管理端-支持查看索引集使用详情(包括使用统计,检索记录等) - 【新增】管理端-支持查看索引集字段信息 - 【新增】管理端-集群管理支持集群删除 - 【新增】全链路追踪-opentelemetry协议支持 - 【新增】上报ES监控数据到监控平台 - 【新增】grafana集成trace展示能力 - 【新增】...
//! The `ArrayType` struct. use SafeWrapper; use ir::{SequentialType, CompositeType, Type}; use sys; /// An array type. pub struct ArrayType<'ctx>(SequentialType<'ctx>); impl<'ctx> ArrayType<'ctx> { /// Creates a new array type. pub fn new(element_type: &Type, num_elements: u64) -> Self { unsafe { ...
# Select Custom select control. # Example <h5>Standard</h5> <select class="form-control custom-select"> <option selected="selected" value="2">Approved</option> <option value="3">Deleted</option> <option value="1">New</option> </select> <h5>Small size</h5> <div class="form...
use chrono::NaiveDate; #[derive(Debug)] pub enum Command { SetProblemGoal(u32), SetPenalty(u32), BeginDate(NaiveDate), BeginChapter(u32), AssignedAmount(u32), FinishedAmount(u32), AddProblems(Vec<u32>, Option<Vec<u32>>), AddEvenProblems(Vec<u32>, Option<Vec<u32>>), AddOddProblems(Ve...
from class Config: """ A configuration class to specify parameters that will be passed to your common crawl job. """ def __init__(self): pass @classmethod def from_yaml(cls): pass
const { createEndOfDayISO, createISODateString, createStartOfDayISO, deconstructDate, } = require('../../utilities/DateHandler'); const { OPINION_EVENT_CODES_WITH_BENCH_OPINION, } = require('../../entities/EntityConstants'); /** * getTodaysOpinionsInteractor * * @param {object} applicationContext applicat...
#!/bin/bash set -o errexit set -o xtrace set -o nounset # Wait for the connecting to remote host until ping -c 1 -W 1 $REMOTE_HOST;do sleep 1s;done ssh -y -i ~/.ssh/id_rsa -R $REMOTE_PORT:localhost:22 $REMOTE_USER@$REMOTE_HOST 'sleep 1h'
class FakeStudent ATTENDANCE_EVENT_REASONS = %w[ Appointment Bereavement Holiday Late Legal Medical No Reason Nurse Parent School Sick Suspended Transportation Truant Vacation Walked Out Weather Withdrawal ] ATTENDANCE_EVENT_COMMENTS = [ ...
<?php namespace Arrounded\Reflection\Http\Traits; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Session; trait Redirectable { //////////////////////////////////////////////////////////////////// ///////////////////////////// REDIRECTIONS //////...
package art.com.revoluttestapp.presentation.money_converter import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.Editable import android.text.TextWatcher import androidx.core.content.ContextCompat import androidx.lifecycle.Observer import art.com.revoluttestapp.R import art.com....
--- title: React date: 2019-01-07 tags: - framework - ui --- ## monorepo https://itnext.io/guide-react-app-monorepo-with-lerna-d932afb2e875 ## create react app ```bash create-react-app my-app --typescript ``` ## with lerna ```bash lerna add @types/jest lerna add @types/node lerna add @types/react lerna add @types/...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from wagtail.wagtailimages.utils import get_fill_filter_spec_migrations class Migration(migrations.Migration): dependencies = [ ('images', '0005_auto_20161108_2120'), ] forward, reverse = g...
## Developer Clone the repository, install project and global dependencies ([mdp][], [jshint][] and [jscs][]): ``` npm i && npm i -g mdp jshint jscs ``` ### Test Run the test specifications: ``` npm test ``` ### Spec Compile test specifications for the browser (open `test/index.html`): ``` npm run spec ``` ###...
import '@babel/polyfill'; import Adapter from 'enzyme-adapter-react-16'; import {configure} from 'enzyme'; configure({adapter: new Adapter()}); global.ReactBootstrap = require('react-bootstrap'); global.PostUtils = { formatText: jest.fn().mockImplementation((t) => 'mockFormatText(' + t + ')'), messageHtmlToC...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Scheduler.BusinessLogic.Data_Access.DbContexts; using Scheduler.BusinessLogic.Data_Access.Repositories; using Scheduler.BusinessLogic.DTOs; namespace Scheduler.API.Controllers { [...
package com.webkul.mobikul.mobikulstandalonepos.db.entity; import android.arch.persistence.room.ColumnInfo; import android.arch.persistence.room.Entity; import android.arch.persistence.room.PrimaryKey; import android.arch.persistence.room.TypeConverters; import com.webkul.mobikul.mobikulstandalonepos.db.converters.Da...
// This is a pretty simple example of using select(), copied from the glibc docs. #include <errno.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/time.h> int input_timeout(int fd, unsigned int seconds) { fd_set set; struct timeval timeout; FD_ZERO(&set); FD_SET(fd, &set); time...
package com.cozo.cozomvp.authentication import android.content.Intent import android.os.Bundle import android.view.View import com.cozo.cozomvp.R import com.cozo.cozomvp.mainactivity.MainActivity import com.google.android.gms.auth.api.signin.GoogleSignIn import com.google.android.gms.auth.api.signin.GoogleSignInAccoun...
import { createPlugin } from '@fullcalendar/core' import TimelinePlugin from '@fullcalendar/timeline' import ResourceCommonPlugin from '@fullcalendar/resource-common' import ResourceTimelineView from './ResourceTimelineView' export { ResourceTimelineView } export default createPlugin({ deps: [ ResourceCommonPlugin,...
mod base_absolute { #[com::com_interface("12345678-1234-1234-1234-12345678ABCD")] pub trait IBaseAbsolute: com::interfaces::iunknown::IUnknown {} } mod specific_absolute { #[com::com_interface("12345678-1234-1234-1234-12345678ABCE")] trait ISpecificAbsolute: crate::base_absolute::IBaseAbsolute {} } mo...
--- RFC: 007 Author: Andrew Gerrand <adg@golang.org> Status: Accepted --- # API Stability Policy ## Motivation The gokit project depends on code maintained by others. This includes the Go standard library and sub-repositories and other external libraries. The Go language and standard library provide stability guara...
""" Datasource-specific classes This is where datasource specific logic is implemented. Each mission should have its own file with one or more classes defined. Typically, these classes will be subclasses of the :mod`sunpy.map.Map` class. """ from ..map_factory import Map from .hinode import * from .iris import * from...
#!/usr/bin/env bash DOCKER_ICON="$(get_tmux_option "@running-app-docker-icon" "D")" DOCKER_STARTING_ICON="$(get_tmux_option "@running-app-docker-icon-starting" "d")" get_icon() { if ! test "$(command -v docker 2>/dev/null)"; then printf "" return 0 fi docker_info=$(docker info 2>&1) if test $? -eq 0;...
<?php namespace GetCandy\Api\Http\Controllers\Baskets; use Illuminate\Http\Request; use GetCandy\Api\Http\Controllers\BaseController; use GetCandy\Api\Http\Transformers\Fractal\Baskets\SavedBasketTransformer; class SavedBasketController extends BaseController { /** * Handle the request to update a saved bas...
#!/bin/bash install () { echo "Installing $@..." sudo apt-get install -qq --fix-missing --allow-unauthenticated $@ > /dev/null 2>&1 } echo "--- Installation of PHP 7 with Composer and Laravel ---" if ! [ -x "$(command -v laravel)" ]; then install curl install unzip install python-software-propert...
# SentenceMerge 语料的合并(去重)工具 ## Install mkdir build && cd build conan install .. --build missing # Linux, Mac 使用 GNU Make cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release cmake --bulid . # Linux, Mac 使用 Ninja(便宜速度快,优先使用并发编译) cmake .. =G "Ninja" cmake -- build . # Windows VS 2017 cmake .. -G "Vi...
:- ensure_loaded('$REGULUS/PrologLib/compatibility'). %====================================================================== :- use_module('$REGULUS/Examples/Toy1/Prolog/input_manager'). :- use_module('$REGULUS/Examples/Toy1/Prolog/dialogue_manager'). :- use_module('$REGULUS/Examples/Toy1/Prolog/output_manager'). ...
<?php namespace PhpCsFixer\Linter { //https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v2.17.3/src/Linter/ProcessLinter.php class ProcessLinter { function __construct($remote_path) { $this->temporaryFile = $remote_path; $this->fileRemoval = new \PhpCsFixer\FileRemov...
using System; using System.Windows.Media.Imaging; using GitHub.Logging; using GitHub.Models; using GitHub.Primitives; using GitHub.Services; using Serilog; namespace GitHub.ViewModels { public class ActorViewModel : ViewModelBase, IActorViewModel { const string DefaultAvatar = "pack://application:,,,/...
configuration MSFT_xIISMimeTypeMapping_AddMimeType { Import-DscResource -ModuleName xWebAdministration xIISMimeTypeMapping AddMimeType2 { ConfigurationPath = '' Extension = $ConfigurationData.NonNodeData.FileExtension MimeType = $ConfigurationData.NonNodeData.MimeType ...
#!/bin/bash #REF:https://www.cyberciti.biz/faq/install-and-configure-tigervnc-server-on-ubuntu-18-04/ #Make sure we are root if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" exit 1 fi apt install -y tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer #All commands below mu...
--- name: phd student 2 role: phd --- bio of phd stundent 2
""" This part of the flask app servers the main http requests """ from flask import Blueprint, render_template bp = Blueprint("main", __name__, "/") @bp.route("/index") @bp.route("/index.html") @bp.route("/") def index(): return render_template("index.html")
--- -api-id: T:Windows.ApplicationModel.Email.EmailMailboxSmimeSigningAlgorithm -api-type: winrt enum --- <!-- Enumeration syntax public enum Windows.ApplicationModel.Email.EmailMailboxSmimeSigningAlgorithm : int --> # EmailMailboxSmimeSigningAlgorithm ## -description Defines the algorithm used to sign an email. ##...
""" =========================================================================== Author: Andrea Pasqualini Bocconi University, Milan Created on: June 25, 2017 Project: Web-Matching algorithm leveraging Google CSE This file contains the functions that constitute the library. Note: this library depends on the mo...
<?php namespace ShopBundle\Repository; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Mapping; use ShopBundle\Entity\Order; /** * OrderRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class OrderRepository extends \Doctrine\ORM\EntityRepo...
<div class="row"> <div class="col-md-3"> <?php include(APPPATH . "views/user_settings/sidebar.php"); ?> </div> <?php foreach($singleadvert->result() as $r) : $src = base_url() . $this->settings->info->upload_path_relative.'/' . $r->image; endforeach; ?> <div class="col-md-9"> <div class="white-area-content"> ...
require 'rails_helper' RSpec.describe ClimatePolicy::Source, type: :model do subject { FactoryBot.build(:climate_policy_source) } it 'should be invalid when code not present' do subject.code = nil expect(subject).to have(1).errors_on(:code) end it 'should be invalid when code is taken' do Factory...
### Linear operators operating on quantities in real or fourier space # This is the optimized low-level interface. Use the functions in Hamiltonian for high-level usage """ Linear operators that act on tuples (real, fourier) The main entry point is `apply!(out, op, in)` which performs the operation out += op*in where ...
/* * Copyright 2016 Huawei Technologies Co., Ltd. * * 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...
require 'spec_helper' RSpec.describe Footnote do describe '#id' do let(:measure) { Measure.new(attributes_for(:measure, id: '123').stringify_keys) } let(:footnote) { described_class.new(attributes_for(:footnote, casted_by: measure, code: '456').stringify_keys) } it 'contains casted_by info' do exp...
package main /* Copyright (c) IBM Corporation 2016, 2019 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 o...
require 'spec_helper' describe 'dbd_data_engine/resources/new.html.haml' do context 'renders' do before(:each) do @contexts = ['a', 'b'] @predicates = [ ['about (schema)', 'schema:about'], ['address (schema)', 'schema:address'], ['familyName (schema)', 'sc...
<?php namespace Prophecy\Doubler\Generator; /** * Tells whether a keyword refers to a class or to a built-in type for the * current version of php */ final class TypeHintReference { public function isBuiltInParamTypeHint($type) { switch ($type) { case 'self': case 'array': ...
/* Functions for printing output/layout */ use Settings; use term::{ color, self }; use meminfo::MemInfo; use cpuinfo::CPUInfo; use graph::Graph; use std::io::Stdout; use printutils::*; //so I don't have to write "let _ = write!(..)" all the time macro_rules! p { ($t:expr, $($s:expr),+) => { l...