text
stringlengths
27
775k
package com.yubico.yubioath.protocol interface ChallengeSigner { fun sign(input: ByteArray): ByteArray }
package javast; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; @SuppressWarnings("serial") class jframe extends JFrame { ...
SELECT [dbo].[AspNetUserRoles].[UserId], [dbo].[AspNetUserRoles].[RoleId], [dbo].[AspNetRoles].[ConcurrencyStamp], [dbo].[AspNetRoles].[Name], [dbo].[AspNetRoles].[NormalizedName], [dbo].[AspNetUsers].[Email], [dbo].[AspNetUsers].[UserName] FROM [dbo].[AspNetUserRoles] JOIN [dbo].[AspNetUsers] ON ([dbo].[AspNetUsers]....
 /** * 注意: * 保留的自訂函數: * void ufAfterLoadJson(rowJson) * error ufWhenSave(): * void ufAfterSave(): 在 _crud.js呼叫 * */ /** * 單筆維護, 包含以下保留欄位: * _edit: * _childs: * called by _crud.js * param kid {string} (optional 'Id') key field id * param formId {string} (optional 'eform') * return {Ed...
import React from 'react' import SignUpForm from './SignUpForm' import SignInForm from './SignInForm' import { withStyles } from '@material-ui/core' const styles = { modal: { position: 'absolute', top: 0, left: 0, background: 'rgba(0, 0, 0, 0.5)', width: '100%', height: '100%', paddingTo...
module LogStashLogger module Formatter class CeeSyslog < Cee def call(severity, time, progname, message) @cee = super @progname = progname "#{facility}:#{@cee}\n" end protected def facility @facility = "#{@event['host']}" @facility << " #{@prognam...
export const GET_TOPIC_LIST = 'GET_TOPIC_LIST'; export const UPDATE_TOPIC_LIST = 'UPDATE_TOPIC_LIST'; export const GET_TOPIC_INFO = 'GET_TOPIC_INFO'; export const LOGIN = 'LOGIN'; export const LOGIN_OUT = 'LOGIN_OUT'; export const REPLY = 'REPLY'; export const TOOGLE_LOAD = 'TOOGLE_LOAD'; export const TOOGLE_LIST_LOAD ...
#Section: Tasks This section describes the implemented tasks. #Task: 001_best-shooter-collector Comparison of the best shooters in different seasons.
package com.github.jpthiery.ed210.business import arrow.core.Either typealias DecideResult = Either<String, List<ChangeRequestEvent>> class ChangeRequest : Aggregate<ChangeRequestCommand, ChangeRequestState, ChangeRequestEvent> { override fun decide(command: ChangeRequestCommand, state: ChangeRequestState): Dec...
r1ltr2 MOV r1, #20 MOV r2, #10 CMP r1, r2 BLT r1ltr2 r2ltr1 MOV r2, r1 MOV r1, #30 CMP r2, r1 BLT r2ltr1 MOV r0, #0x20 MOV r3, #0x30 CMP r0, r3 halt BLT halt
# Koin for kotlin ## Setup Add coin dependecy to `(App)build.gradle`: ```gradle // Koin for Android def koin_version = "2.1.6" implementation "org.koin:koin-android:$koin_version" // Koin for Lifecycle scoping implementation "org.koin:koin-androidx-scope:$koin_version" // Koin for Android Architecture ViewModel imple...
require 'spec_helper' module Tenanfy describe Tenant do let(:tenant) { FactoryGirl.create(:tenant, :with_url) } describe "#find_by_domain" do it "should return the correct tenant" do Tenant.find_by_domain(tenant.urls.first.url).should eq tenant end end describe "#switch_to_tenan...
package com.example.todo.utils enum class SortingCriteria(val value: String) { ALPHABETICALLY("alphabetically"), COMPLETION_STATUS("completion_status"), DATE_ADDED("date_added") }
/* * Created by Muhammad Utsman on 28/11/20 3:54 PM * Copyright (c) 2020 . All rights reserved. */ package com.utsman.home.ui import android.os.Bundle import android.view.View import android.viewbinding.library.fragment.viewBinding import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewMode...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; class LubricantDetails extends Model { use HasFactory; protected $guarded = ['id']; public function lubricantRecord(){ return $t...
## Naming Convention Recommendations Below is naming convention suggestions to make schema more readable. ### For Result Sets * Use `*Noun* + Set` for `Result Sets`. e.g. `DamgableSet` ### For Rows * Use `I + *Noun* + Row` or `I + *Adjective* + Row` for `Interface Rows`. e.g. `IDamagableRow` * Use `*Noun* + Row` for ...
export default class FormComponent { constructor(component, dataContext) { this.component = component; this.dataContext = dataContext; } async accept(visitor) { visitor.visit(this); } }
# -*- coding: utf-8 -*- """ Created on Sat Nov 7 18:07:32 2015 A script to analyze motion data from single worm track data Accepts: WormTracker data. But be warned! You must manually re-write all NaNs because the script that generates the files inserts random spaces in there. Outputs: Bunch of graphs and summary of...
import _ from 'lodash'; import { ADD_ATTRIBUTE, UPDATE_ATTRIBUTE, DELETE_ATTRIBUTE } from '../constants/attributeForm'; import data from '../data/data.json'; const initialState = data; function attributeFormReducer(state = initialState, action) { const nextIndex = _.size(state.data) > 0 ? _.maxBy(state.data, 'id')....
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class PaintProgram implements ActionListener { JFrame frame; DrawingPanel dPanel; JPanel buttonPanel; JButton pencilButton, eraserButton; // This is the PaintProgram constructor which sets up the JFrame // and all other c...
<?php /*change the file name to config.php to make it.*/ $_config=array(); //数据库配置 $_config['db']['hostname']=''; $_config['db']['username']=''; $_config['db']['password']=''; $_config['db']['database']=''; $_config['db']['charset']=''; $_config['db']['pconnect']=0; $_config['db']['tablepre']=''; $_config['db']['log']...
using UnityEngine; using System.Collections; public class Ball : MonoBehaviour { private Paddle paddle; public bool hasStarted = false; private Vector3 paddleToBallVector; private Vector2 ballSpeed = new Vector2 (1f, 7f); public static Ball _instance; public Vector3 ballpos; // Use this for initialization v...
#FLM: TypeRig: Manager # ---------------------------------------- # (C) Vassil Kateliev, 2018 (http://www.kateliev.com) # (C) Karandash Type Foundry (http://www.karandash.eu) #----------------------------------------- # www.typerig.com # No warranties. By using this you agree # that you use it at your own risk! # - D...
package xyz.stasiak.cobudgetbackend.users; import java.util.Optional; public interface ApplicationUserRepository { Optional<ApplicationUser> findById(String id); Optional<ApplicationUser> findByEmail(String email); ApplicationUser save(ApplicationUser applicationUser); boolean existsByEmail(String...
# SMOP compiler runtime support library # Copyright 2014 Victor Leikehman # MIT license import builtins import numpy from numpy import sqrt from numpy.fft import fft2 from numpy.linalg import inv from numpy.linalg import qr as _qr try: from scipy.linalg import schur as _schur except ImportError: pass impor...
using System.Collections.Generic; namespace MyBookAPI.Application.Reviews.Queries.GetReviews { public class ReviewsVm { public ICollection<ReviewDto> BookReviews { get; set; } } }
package com.zizohanto.android.currencyconverter.domain.exception import kotlin.contracts.ExperimentalContracts import kotlin.contracts.contract /** * An exception thrown when a use case parameter is null */ internal class NoParamsException(errorMessage: String = noParamMessage) : IllegalArgumentException(errorM...
import sys.process._ import java.io._ import scala.language.postfixOps val writer = new PrintWriter(new File("blockHashes.txt")) val totalBlocks = ("bitcoin-cli getblockcount" !!).trim.toInt val hashes = (0 to totalBlocks).par.map(hash => s"bitcoin-cli getblockhash $hash" !!) hashes.foreach(writer.write) writer.close
<meta name="created" content="2019-06-11"> # 如何修改git的默认编辑器 提交了一段简单修改,但是commit环节出了问题,nano编辑中文的时候处理不了问题,比如吞字符,导致我的一个中文引号编辑总是出问题。 (真垃圾真垃圾 于是需要改默认编辑器 ## 方法1:修改全局配置 git config -global core.editor vim ## 方法2:仅修改当前配置 vim %gitfolder%/.git/config ``` [core] editor = vim ``` Knighthana 2019年06月11日 于 西电
/* * Copyright 2010-2018 JetBrains s.r.o. * * 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...
package com.grupo12.Entidades.Dominio.Seguro; import com.grupo12.Interface.DTO.FiltroDTO; public class RegraSeguroCaro implements RegraSeguro { @Override public double calcular(FiltroDTO filtro) { double total = 200; if(filtro.getCambio()) { total+=100; } if(filtro...
int parse_encoding2(char *encoding) { char *matcher; MAC_YIELD if(mystrnicmp("utf", encoding, 3) == 0) { matcher = encoding + 3; if(mystrnicmp("-", matcher, 1) == 0) { matcher += 1; } if(strcmp("8", matcher) == 0) { /* utf-8, unless a BOM is found. Overlong bytes are always c...
/* ===================== Shushu Chen =================== */ const { MongoClient, ObjectId } = require("mongodb"); const { secret } = require("./secrets/dbCon.js"); async function listDatabases(client) { const databasesList = await client.db().admin().listDatabases(); console.log("Databases: "); databasesList....
package com.reactnativescanner import android.graphics.Color import android.view.View import androidx.annotation.ColorInt import com.facebook.react.uimanager.SimpleViewManager import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.annotations.ReactProp class ScannerViewManager : Si...
package ddd import Types._ import PaymentAPI._ import ShoppingCartAPI._ object ErrorAPI { case class ItemAlreadyAdded(item: Item) extends Error case class NoItemInCart(item: Item) extends Error case class CardProcessFailure(card: Card) extends Error case class UnknownCommand(state: State, command: Command) e...
import logging import torch from torch import nn from torch.nn import CrossEntropyLoss, BCEWithLogitsLoss import torch.nn.functional as F import config as Conf BertLayerNorm = torch.nn.LayerNorm from transformers import BertModel, RobertaModel logger = logging.getLogger(__name__) def initializer_builder(std): _st...
<?php include_once("config.php"); include_once("funcs.php"); // read inputted data if (!isset($_POST["comment"])) { header("Location: ./error.php"); exit; } $paramComment = trim($_POST["comment"]); if ($paramComment == "") { header("Location: ./"); exit; } // convert inputted data to internal format $paramComment = s...
require 'open3' require 'yaml' require 'shell' require "continuation" require 'druby/utils' require 'druby/contract/wrap' module DRuby class Safe_eval # a recursive hash tbl that returns itself by default Self_tbl = Hash.new do Self_tbl end SAFE_TBL = Hash.new do Self_tbl end CMD = begin ...
using System; using LicenseManager.Core.Domain; using Machine.Specifications; namespace LicenseManager.Tests.Domain { public static class LicenseManagerExceptionCatch { public static LicenseManagerException Exception(Action throwingAction) { return Only<LicenseManagerException>(thro...
import 'package:mobx/mobx.dart'; import 'package:mobx_advance/src/api/weather_api.dart'; import 'package:mobx_advance/src/model/weather.dart'; part 'weather_store.g.dart'; enum StoreState { initial, loading, loaded } // Stores // ------- class WeatherStore extends _WeatherStore with _$WeatherStore { WeatherStor...
// compile-pass // skip-codegen use std::ops::Deref; fn main() { let _x: fn(&i32) -> <&i32 as Deref>::Target = unimplemented!(); }
require "spec_helper" RSpec.describe StatusChecker do it "has a version number" do expect(StatusChecker::VERSION).not_to be nil end describe "Request" do it "creates a new request" do request = StatusChecker::Request.new("http://google.com") expect(request).to be_a(StatusChecker::Request) ...
module.exports = function({ title = 'CEP Panel', href }) { return `<!DOCTYPE html> <html> <head> <title>${title}</title> </head> <body> <script> window.location.href = "${href}"; </script> </body> </html>` }
var types = { 'portrait': '/portrait.png', 'career': '/career-portrait.png', 'icon': '/icon.png' }; OWI.filter('heroImg', ['UrlService', function(UrlService) { return function(hero, type) { return hero === 'all' ? UrlService.get('/logo.svg') : UrlService.get('/heroes/' + hero + types[type]); ...
#! /bin/bash file=$HOME/.bashrc string='#Elasticsearch path' echo "" >> $file grep -q "$string" "$file" || echo "$string" >> "$file" string='export ELS_HOME=$HOME/elasticsearch' grep -q "$string" "$file" || echo "$string" >> "$file" source $file
module ZmqCaesar using Requires using ZMQ using JSON using Distributions, IncrementalInference, DistributedFactorGraphs, Caesar using Unmarshal using Dates using DocStringExtensions # import ZMQ: ls include("models/distributions.jl") include("models/factors.jl") include("mo...
/* Creating user */ CREATE USER test WITH LOGIN PASSWORD 'test'; /* Creating database */ CREATE DATABASE test WITH OWNER test;
#[derive(Clone)] pub enum Type { Float, Int, Bool, String, Nil } #[derive(Clone)] pub struct TypeInfo { kind: Option<Type> } impl TypeInfo { pub fn new(kind: Type) -> Self { TypeInfo { kind: Some(kind), } } pub fn nil() -> Self { TypeInfo { ...
using TMPro; using UnityEngine; using UnityEngine.Audio; using UnityEngine.UI; public sealed class PauseMenuView : MonoBehaviour { [Header("Panels")] [SerializeField] private ChangeUsernamePanelView _changeUsernamePanel; [Header("Controls")] [SerializeField] private TMP_Text _musicVolumeText; [Se...
import { readFileSync } from 'fs' import path from 'path' const PACKAGE_JSON_PATH = path.join(__dirname, '..', '..', 'package.json') export const __package = JSON.parse(readFileSync(PACKAGE_JSON_PATH).toString())
import gocept.amqprun.interfaces import gocept.amqprun.message import gocept.amqprun.session import gocept.amqprun.worker import kombu import logging import time import zope.component import zope.event import zope.interface log = logging.getLogger(__name__) def Parameters(heartbeat=0, hostname=NotImp...
import sys from osgeo import osr, gdal print "processing the following geotiff", sys.argv[1] # get the existing coordinate system ds = gdal.Open(sys.argv[1]) old_cs= osr.SpatialReference() old_cs.ImportFromWkt(ds.GetProjectionRef()) # create the new coordinate system wgs84_wkt = """ GEOGCS["WGS 84", DATUM["WGS_1...
declare module "@neutrixs/colorthief" { type color = [number, number, number]; export default class ColorThief { getColor: (img: HTMLImageElement, quality?: number) => color; getPalette: ( img: HTMLImageElement, colorCount?: number, quality?: number ) ...
### ### $Rev$ ### $Release: 0.7.2 $ ### copyright(c) 2005-2010 kuwata-lab all rights reserved. ### require 'kwalify/messages' require 'kwalify/errors' require 'kwalify/types' require 'date' module Kwalify ## ## base class of yaml parser ## ## ex. ## str = ARGF.read() ## parser = Kwalify::PlainYamlP...
var express = require('express'); var path = require('path'); var bodyParser = require('body-parser'); var socket = require("./socket.js"); var db = require("./db.js") var job = require("./job.js"); function init(){ var app = express(); var server = app.listen(5698); console.log("App started at:",5698); var io...
# wechsle die Working Directory zum Versuchsordner, damit das Python-Script von überall ausgeführt werden kann import os,pathlib project_path = pathlib.Path(__file__).absolute().parent.parent os.chdir(project_path) # benutze die matplotlibrc und header-matplotlib.tex Dateien aus dem default Ordner os.environ['MATPLOTLI...
package com.github.lazoyoung.craftgames.impl.exception import com.github.lazoyoung.craftgames.impl.game.player.PlayerData import net.md_5.bungee.api.ChatColor import net.md_5.bungee.api.chat.ComponentBuilder import org.bukkit.entity.Player class GameJoinRejectedException( private val player: Player, v...
import * as UI from '../../ui/legacy/legacy.js'; export declare class SensorsView extends UI.Widget.VBox { private readonly LocationSetting; private Location; private LocationOverrideEnabled; private fieldsetElement; private timezoneError; private locationSelectElement; private latitudeInput...
import Data.List (delete) permutations :: Eq a => [a] -> [[a]] permutations [] = [[]] permutations xs = [ x:ys | x <- xs, ys <- permutations (delete x xs)]
package com.senierr.demo.wrapper import android.view.ViewGroup import android.widget.CheckBox import android.widget.TextView import android.widget.Toast import com.senierr.adapter.internal.ViewHolder import com.senierr.adapter.internal.ViewHolderWrapper import com.senierr.demo.R import com.senierr.demo.entity.Data2 /...
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP # # 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...
package cz.cuni.mff.java.drobny.simulation; /** * Types of tactics that can be applied on seating groups in simulation */ public enum Tactics { NONE,IMPATIENT_FIRST,BIG_FIRST }
#!/bin/bash BASE_DIR=$(pwd) # point this to wherever you have maven installed. MAVEN_BIN=/opt/apache-maven/bin/mvn cd .. $MAVEN_BIN versions:display-plugin-updates $MAVEN_BIN versions:display-dependency-updates cd $BASE_DIR
#!/usr/bin/env bash cd /go/src/ledger-api/dist/ && ./ledger-api
class FakeTransport attr_reader :read_timeout, :write_timeout def initialize(params = {}) @read_timeout = params.fetch(:read_timeout, 60.0).to_f @write_timeout = params.fetch(:write_timeout, 60.0).to_f end def connect; end def write(_, write_timeout = nil) @write_timeout = write_timeout if writ...
using Microsoft.Extensions.Configuration; using NUnit.Framework; using ServiceStack.Text; using System; using TechTalk.SpecFlow; using UBS.Commons; using UBS.PageObjectModels; using UBS.PageObjectModels.USBHomePage; namespace UBS.SpecFlow.Steps { [Binding] public sealed class DefaultStepDefinitions { ...
// Copyright 2014 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. #include "components/omnibox/browser/suggestion_answer.h" #include <stddef.h> #include "base/i18n/rtl.h" #include "base/memory/ptr_util.h" #include "bas...
package com.example.calendarquickstart; import android.accounts.AccountManager; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import...
import { Draft, Patch } from "immer"; import { ImmerStepper, immerStepperFactory, makeImmerMod } from "./ImmerStepper"; import { Position } from "./Position"; import { StateTreeMod } from "./StateTreeMod"; import { Angle, Vector } from "./Vector"; export enum MovementType { INERTIAL = 0, INERTIALESS = 1, S...
/** * 32-bit webgl renderer * On common browsers, the maximum size of a texture should be 16384^2 * * @FIXME: when consecutively verifying two textures, e.g. this.vramManager.verify(src); this.vramManager.verify(tgt); * there are chances that verifying tgt causes src to be compressed again */ "use strict"; c...
export interface ObjectID { _id: { $oid: string } }
package io.buoyant.namerd.storage import com.fasterxml.jackson.annotation.JsonIgnore import com.twitter.finagle.Stack import io.buoyant.config.types.Port import io.buoyant.k8s.ClientConfig import io.buoyant.namerd.{DtabStore, DtabStoreConfig, DtabStoreInitializer} case class K8sConfig( host: Option[String], port:...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace AliceToolsGui.AliceToolsProxies { /// <summary> /// Represents the option for .ain file dump opetation. /// </summary> public enum AliceToolsAinDumpOption ...
#!/bin/bash set -euo pipefail IFS=$'\n\t' die() { echo "fatal: $*" >&2; exit 1; } TEMP="$(mktemp -d -t TEMP.XXXXXXX)" || die "failed to make tmpdir" cleanup() { [[ -n "${TEMP:-}" ]] && rm -rf "${TEMP}"; } trap cleanup EXIT realpath() { python -c "from __future__ import print_function; import os,sys; print(os.path.r...
require 'garufa/connection' module Garufa module WebSocket Server = proc do |env| socket = Faye::WebSocket.new(env) connection = Connection.new(socket, env.logger) socket.on :open do |event| connection.establish end socket.on :message do |event| connection.handle_...
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Expr where -- From Mark: marku@cs.waikato.ac.nz [Nov 2001] -- This program contrasts the cost of direct and -- state-monadic style of computation. -- Experiments with Higher-Order mappings over terms. -- Speed comparisons o...
namespace FolderProcessor.Abstractions; public interface IWorkerControl { Task StartAsync(CancellationToken cancellationToken); Task StopAsync(CancellationToken cancellationToken); }
## Directory Pruner 4 Originally published: 2012-06-05 03:00:58 Last updated: 2012-06-06 22:00:00 Author: Stephen Chappell Module providing GUI capability to prune any directory. The code presented in this module is for the purposes of: (1) ascertaining the space taken up by a directory, its files, its s...
(GEN-Z1...ZM) (?F) (IOREL) (OLD) (OLD-NECC) (OLD) (?G) (?H) (ALGO[?G][?H]) (SPEC-0[?G]) (SPEC-0[?G]-NECC) (SPEC-0[?G]) (SPEC-1[?H]) (SPEC-1[?H]-NECC (4 4 (:DEFINITION MV-NTH))) (SPEC-1[?H]) (EQUAL[?F][ALGO[?G][?H]]) (?F-TO-ALGO[?G][?H]) (EQUAL[?F][ALGO[?G][?H]]) (ALGO[?G][?H]-TO-?F) (ALGO-CORRECT) (NEW) (OLD-IF-NEW) (?...
import { tcpExistsOne, tcpExistsChunk, tcpExistsMany } from '../index.js' import _main from './_main.js' _main({ tcpExistsOne, tcpExistsChunk, tcpExistsMany }).catch((e) => { console.error(e) process.exit(1) })
package models.graphql import com.kyleu.projectile.graphql.GraphQLContext import com.kyleu.projectile.models.graphql.BaseGraphQLSchema import sangria.schema._ import util.Version import scala.concurrent.Future object Schema extends BaseGraphQLSchema { override protected def additionalFetchers = Nil ++ /* Start...
part of rendering.realtime.sorting; /// View on a render sort tree as an ordered set of [AtomicRenderUnit]s. /// /// Views the [renderTree] as a set of the tree's [AtomicRenderUnit]s in depth /// first order. Changes to the [renderTree] will result in changes to these /// [SortedRenderUnits] and vice versa. /// /// It...
import pandas as pd from matplotlib import pyplot as plt import seaborn as sns import numpy as np def plot_data(data, value, time, run, condition, title='', ax=None, ci=95): """ Plot time series data using sns.tsplot Params ---------- data (pd.DataFrame): value (str): value column time (...
import os from setuptools import setup, find_packages # Get version from version.py. version_filename = os.path.join("sdafile", "version.py") with open(version_filename) as version_file: version_py_locals = {} exec(version_file.read(), version_py_locals) version = version_py_locals["version"] install_re...
import json import numpy as np dict = { 'results':[] } def json_write_to_json(result, json_file_name): for iter in range(len(result)): rects = [] for i in range(len(result[iter]['ann']['bboxes'])): if float(result[iter]['ann']['confidences'][i]) >= 0.1: rect = { ...
package fuzz var ff = [...]interface{}{ FuzzPermission, } func FuzzFuncs() []interface{} { return ff[:] }
// app.js (function (angular) { 'use strict'; var app = angular.module('wcbtapp', ['ngRoute']); app.config(function ($routeProvider, $locationProvider) { //$locationProvider.html5Mode(true).hashPrefix('!'); $routeProvider .when('/CHANGEME', { templateUrl: '/partials/index.html' }) .when('/:user', ...
/* Join up results into an input set for training. DISTINCT gets rid of duplicate that have cropped up somewhere (need real QC) > 0 gets rid of cases where it looks like there are multiple images for an occid in the raw results and the images are different sizes, will still have this happen and it's unknowable with pr...
namespace Schema.NET { using System; using System.Runtime.Serialization; using Newtonsoft.Json; /// <summary> /// Used to describe a seat, such as a reserved seat in an event reservation. /// </summary> public partial interface ISeat : IIntangible { /// <summary> ...
SELECT `title` FROM `books` WHERE SUBSTRING(`title`, 1, 3) = 'The' ORDER BY `id`;
sap.ui.define([ "sap/ui/core/mvc/Controller" ], function(Controller: sap.ui.core.mvc.Controller) { Controller.extend("app.controller.pages.FirstPage"); }); namespace app.controller.pages { import Controller = sap.ui.core.mvc.Controller; export class FirstPage extends Controller { onInit() { ...
# frozen_string_literal: true require "rails_helper" describe NamespacesController do let(:registry) { create(:registry) } let(:user) { create(:user) } let(:viewer) { create(:user) } let(:contributor) { create(:user) } let(:owner) { create(:user) } let(:admin) { create(:user, admin: true) } let(:team) d...
/* eslint-disable no-unused-expressions */ const sinon = require('sinon') const chai = require('chai') const sinonChai = require('sinon-chai') const faker = require('faker') const proxyquire = require('proxyquire') const config = { logger: { label: process.env.LABEL || 'microservice-template', logging: { ...
""" Authors: Pratik Bhatu. Copyright: Copyright (c) 2021 Microsoft Research Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, co...
#ifndef __line_H_ #define __line_H_ #include <ros/ros.h> #include <grid_map_ros/grid_map_ros.hpp> #include <geometry_msgs/PolygonStamped.h> // #include <grid_map_msgs/GridMap.h> #include <vector> #include <string> namespace grid_map_line { class line { private: // ROS Declaration ...
package util import ( "os" "path/filepath" ) func dataBaseDirectory() string { if dir, ok := os.LookupEnv("XDG_DATA_HOME"); ok { return dir } homeDir, ok := os.LookupEnv("HOME") if !ok { homeDir = "/" } return filepath.Join(homeDir, ".local", "share") }
using Kvyk.Telegraph; using Kvyk.Telegraph.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; using Syst...
#!/usr/bin/env bash # Download docsets # Configure licensce FILE="/Users/$USER/Dropbox/config/purchase/license4.dash-license"; [ -f "$FILE" ] && open "$FILE"; # Configure dash sync FILE="/Users/$USER/Dropbox/applications/dash/Dash.dashsync"; [ -f "$FILE" ] && open "$FILE"; # quit dash { # the following is necessa...
n = int(input()) l = list(map(int,input().split())) ans = sum(l) x=[] for i in range(3,n): if n%i==0: x.append(i) for i in x: for j in range(n//i): ans = max(ans,sum(l[j::n//i])) print(ans)
![NK-Scripting](../images/NKScripting.png?v01) # NKScriptSource Standard message format for communication from JavaScript to native plugins. ## Constructor ### `init(source: String, asFilename: String, namespace: String?, cleanup: String?)` #### `source: String` The actual JavaScript source code, in pure string for...