text
stringlengths
27
775k
@extends('folio::template._base') <?php // $cover_hidden = true; // imgix $imgix_active = config('folio.imgix'); $baseImgixOptions = [ 'w' => 3840, 'h' => null, 'q' => 95, 's' => 30, 'fit' => 'max', 'fill' => 'solid', ]; $imgixOptions = $baseImgixOptions; if(isset($i...
#!/bin/bash -e base="$(dirname "$0")" usage() { echo '##' "$1" shift echo '```sh' "$@" echo '```' echo } ( echo '# Usage'; echo; usage common denorm --help; usage create-agg denorm create-agg --help; usage create-join denorm create-join --help ) | "$base/../node_modules/.bin/prettier" --parser m...
import { Component, OnInit, ViewChild, ElementRef, OnDestroy,AfterViewInit} from '@angular/core'; import { FormBuilder,FormGroup, FormArray, Validators,FormControl } from '@angular/forms'; import { UserService } from 'app/services/user.service'; import { Router } from '@angular/router'; import Swal from 'sweetalert2';...
from typing import Callable import numpy as np """ ParameterVector, ArrayOfParameterVectors, GridOfParameterVectors are all aliases of numpy.ndarray and are used throughout this library. They indicate whether the numpy.ndarray that is expected by a method or class is a 1D, 2D, or 3D numpy.ndarray, respectively. The l...
import { env, FileType, Range, window } from 'vscode' import { App } from '../app' import i18n from '../i18n' import { append, fullname, write, showSaveDiaglog, showWarningMessage, showErrorMessage, } from '../utils' import { Command, command, Commands } from './common' @command() export class Save extends...
"""Multiline constants""" from enum import auto from napari.utils.misc import StringEnum class Method(StringEnum): """Drawing mode""" AGG = auto() GL = auto() METHOD_TRANSLATIONS = ["agg", "gl"]
declare namespace Account { /** * 登录参数 */ interface loginParam { username: string, password: string } /** * Router实体 */ interface router { path: string, name: string, component: string, children?: router[] } /** * 解密后的JWT */ interface decodeJWT { aud: stri...
// 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 module contains the testing and demonstration `TrivialTracer` and associated types. use std::collections::BTreeMap; use std::sync::Mutex; us...
#include "Math/EngineMathConstants.h" glm::vec3 worldUp = glm::vec3(0, 1, 0); glm::vec3 worldRight = glm::vec3(-1, 0, 0); glm::vec3 worldLeft = glm::vec3(1, 0, 0);; glm::vec3 worldDown = glm::vec3(0, -1, 0); glm::vec3 worldForward = glm::vec3(0, 0, 1); glm::vec3 worldBackward = glm::vec3(0, 0, -1);
#!/bin/bash INCLUDEOS_SRC=${INCLUDEOS_SRC-$HOME/IncludeOS} cd $INCLUDEOS_SRC/test ./unittests
package com.hujiang.project.zhgd.sbProjectElectricityBox.api; import com.alibaba.fastjson.JSONObject; import com.hujiang.framework.web.domain.AjaxResult; import com.hujiang.project.zhgd.client.SystemClient; import com.hujiang.project.zhgd.sbProjectElectricityBox.domain.SbProjectElectricityBox; import org.springf...
package file // import "github.com/BenLubar/dfide/gui/file" import ( "time" "github.com/BenLubar/dfide/gui" ) type File struct { Name string ContentType string LastModified time.Time Contents []byte } func Open(w gui.Window, f func(*File), accept ...string) { open(w, f, accept...) } func Save(w...
<?php namespace Test\TestCase; /** * Interface TestListenable */ interface TestListenable { /** * @param string $seek * @param array|null $data * * @return void */ public function view($seek, array $data = null); /** * @param string $seek * * @return bool ...
# UM CONTADOR UTILIZANDO REACT HOOKS E CSS BÁSICO DEMO https://patrikdev.github.io/contador-react/ ![dashboard](screenshot/dashboard.png)
using System; using UnityEngine; namespace CDK { [RequireComponent(typeof(Collider))][Obsolete] public class CCameraAreaVolume : MonoBehaviour { public CCameraAreaProfileData CameraAreaProfileData { get { return this.cameraAreaProfileData; } } [SerializeField] private CCameraAreaProfileData cameraArea...
'use strict'; var common = require('../common'); var assert = require('assert'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } var tls = require('tls'); var fs = require('fs'); var util = require('util'); var join = require('path').join; var options = { key: fs.readFileSync(join(common.fixt...
package com.aredruss.mangatana.view.extensions import androidx.fragment.app.DialogFragment import androidx.fragment.app.FragmentManager fun DialogFragment.showSingle(fragmentManager: FragmentManager?, tag: String) { if (fragmentManager == null) return if (fragmentManager.findFragmentByTag(tag) == null) show(f...
--- title: Grpc User Guide keywords: Grpc description: Grpc User Guide --- # Grpc User Guide * Unary synchronous calls to GRPC are supported only at present. * Introduce the jar packages * Introduce the `Hmily` configuration * Add `@HmilyTCC` or `@HmilyTAC` annotation on the concrete implementation method(Service ...
from copy import deepcopy from django.db.models import F from rest_framework.response import Response from rest_framework.views import APIView from usaspending_api.search.models import SubawardView from usaspending_api.common.cache_decorator import cache_response from usaspending_api.common.helpers.generic_helper imp...
<?php declare(strict_types=1); namespace Codeception\Lib\Driver; use Codeception\Exception\ModuleException; use PDO; use PDOException; class PostgreSql extends Db { protected bool $putline = false; /** * @var null|resource|bool */ protected $connection; /** * @var mixed|null */...
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE DeriveGeneric #-} import System.Environment (getArgs) import Data.Binary import Data.Typeable import GHC.Generics import Control.Distributed.Process import Control.Distributed.Process.Node import Control.Distributed.Process.Closure import Control.Distributed.Process.Seriali...
const mongoose = require('mongoose'); const fndtnMenus = { '_id': mongoose.Schema.Types.ObjectId, 'menuType': String, 'display': String, 'resourceURL': String } module.exports = fndtnMenus;
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_cfg_and_check.c :+: :+: :+: ...
use crate::mock::*; use crate::Error; use frame_support::{assert_noop, assert_ok}; #[test] fn transfer_should_work() { new_test_ext().execute_with(|| { // Create NFT assert_ok!(OrmlNFT::create_class(&ALICE, vec![1], ())); assert_ok!(OrmlNFT::mint(&BOB, CLASS_ID, vec![1], ())); // M...
package com.wyq_github_pen_do.databing import android.util.Log import android.view.View import androidx.databinding.BindingAdapter @BindingAdapter("setEditContent") fun setEditContent(view: View?, text: String?) { Log.d("wqq", "setEditContent: ${text}") }
#!/bin/bash # Copyright (c) 2010 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. # Script to convert the output of build_image.sh to a usable virtual machine # disk image, supporting a variety of different targets. #...
#!/bin/bash g++ -c common_params.cpp -std=c++11 -g g++ -c logging.cpp -std=c++11 -g g++ -c read.cpp -std=c++11 -g g++ -c mc_moves.cpp -std=c++11 -g g++ -c interaction.cpp -std=c++11 -g g++ -c sampling.cpp -std=c++11 -g g++ -c gcmc.cpp -std=c++11 -g g++ -c state.cpp -std=c++11 -g g++ -c main.cpp -std=c++11 -g g++ common...
using System; using System.Xml.Serialization; namespace Aop.Api.Response { /// <summary> /// AlipaySamsungPucChargeResponse. /// </summary> public class AlipaySamsungPucChargeResponse : AopResponse { /// <summary> /// zhijiefanhui yemian /// </summary> [...
module Mundler class Project def initialize(project_path) @project_path = project_path @mruby = MRuby.new(config) end def install(&blk) @mruby.clone_repository build_config = BuildConfig.new(config).tempfile @mruby.compile(build_config.path) FileUtils.cp(build_config.p...
using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; namespace Material.Data.InMemory { public class InMemoryDbContextFactory : IDbContextFactory<DbContext> { private readonly Dictionary<Type, object> dbSets = new Dictionary<Type, object>()...
--- layout: post title: 234 - Palindrome Linked List date: 2015-10-21 14:45:44.000000000 -04:00 tags: - Leetcode categories: - LinkedList author: Jason --- **Implement a function to check if a linked list is a palindrome.** ``` java public class Solution { public boolean isPalindrome(ListNode head) { if (...
import '@apollo/src/utilities/globals'; export { empty } from '@apollo/src/link/core/empty'; export { from } from '@apollo/src/link/core/from'; export { split } from '@apollo/src/link/core/split'; export { concat } from '@apollo/src/link/core/concat'; export { execute } from '@apollo/src/link/core/execute'; export { Ap...
#!/bin/bash . ./environment.sh ## Check if stdin, stdout, and stderr are a terminal and if so use it. if [ -t 0 -a -t 1 -a -t 2 ] ; then kubectl exec -it home -- /usr/bin/sudo -u $USER -i $* else kubectl exec -i home -- /usr/bin/sudo -u $USER -i $* fi
#!/bin/bash . shard-settings.sh if [ $# -lt 2 ] then echo "syntax: $0 group shard" exit 1 fi group=$1 shard=$2 node_tls=$(get-port.sh $group $shard node_tls) uri=grpc+tls://localhost:$node_tls/ address=$(cat ~/shard-load-test.git/loadclients/${network}/client.${group}/address.txt) tag="snow.mine.$group.$shard" ...
import 'package:afya_moja_core/afya_moja_core.dart'; import 'package:async_redux/async_redux.dart'; import 'package:flutter/material.dart'; import 'package:flutter/src/widgets/basic.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:myafyahub/application/redux/states/app_state.dart'; import 'packag...
/* (c) Atinea Sp z o. o. * Stamp: nianio lang */ #pragma once #include "c_rt_lib.h" #include <stdbool.h> #include "nsystem.h" #include "ptd.h" #include "array.h" #include "string.h" typedef ImmT profile_inter0row_t0type; ImmT profile_inter0row_t(); ImmT profile_inter0row_t0ptr(int _num, ImmT *_tab); ImmT profi...
import BigNumber from 'bignumber.js'; import { InputPoolInterface } from 'types/inputPoolInterface'; import PoolInterface from 'types/poolInterface'; import TokenInterface from 'types/tokenInterface'; import { TransactionInterface, TxStatus } from 'types/transactionInterfaces'; import { WalletAdapterInterface } from '...
// ignore_for_file: avoid_returning_null // ignore_for_file: camel_case_types // ignore_for_file: cascade_invocations // ignore_for_file: comment_references // ignore_for_file: file_names // ignore_for_file: library_names // ignore_for_file: lines_longer_than_80_chars // ignore_for_file: non_constant_identifier_names /...
package ammonite.spark object ProgressBar21Tests extends ProgressBarTests( SparkVersions.latest21, Local.master )
# Extentions to the core `URI` module # module URI # Given a URI path, determine whether or no it looks like a directory path # # @param [String] uri_path # @return [Boolean] `true` if the path is empty or has a trailing `/`, otherwise `false` # def self.directory?(uri_path) uri_path.empty? || uri_path[...
require 'uri' require 'time' require 'logger' require 'openssl' require 'rubygems' module RAWS class << self attr_accessor :aws_access_key_id attr_accessor :aws_secret_access_key attr_accessor :http attr_accessor :xml end def self.escape(val) URI.escape(val.to_s, /([^a-zA-Z0-9\-_.~]+)/n) e...
//****************************************************************** // // Copyright 2016 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
#Representation of gl.xml files class Command : def __init__( self ) : self.name = ""; self.ret_type = ""; self.params = []; def fromRepr( self, dict ) : self.name = dict['name']; self.ret_type = dict['ret_type']; params_repr = dict['params']; for param_repr in params_repr : param = Param(...
package net.nemerosa.ontrack.model.settings import com.fasterxml.jackson.annotation.JsonProperty import net.nemerosa.ontrack.model.form.Form import net.nemerosa.ontrack.model.form.YesNo /** * General security settings. * * @property isGrantProjectViewToAll `true` when all authenticated users have a read-only acces...
import React from 'react'; import { render } from 'enzyme'; import { CollapsedItemActions } from './collapsed_item_actions'; describe('CollapsedItemActions', function () { test('render', function () { var props = { actions: [{ name: 'default1', description: 'default 1', onClick: func...
class ChangeStripeSubscriptionSchedulePhaseIdToBigint < ActiveRecord::Migration[6.0] def change if postgres? change_column( :stripe_subscription_schedule_phase_plans, :stripe_subscription_schedule_phase_id, "bigint USING stripe_subscription_schedule_phase_id::bigint" ) elsi...
module Brightbox module Config # This module holds a very simple set of change / dirty tracking methods to # keep track of when the config or any sub part (client config sections) # have been changed to prevent excess saving # module Dirty # @return [Boolean] +true+ if config has been modifi...
create table jahia_external_mapping ( internalUuid varchar(36) not null, externalId text not null, externalIdHash int4, providerKey varchar(255) not null, primary key (internalUuid) ); create table jahia_external_provider_id ( id int4 not null, provi...
package io.github.whazzabi.whazzup.business.art; import com.google.gson.Gson; import io.github.whazzabi.whazzup.business.check.Check; import io.github.whazzabi.whazzup.business.check.CheckExecutor; import io.github.whazzabi.whazzup.business.check.checkresult.CheckResult; import io.github.whazzabi.whazzup.presentation....
package com.zhihu.matisse.internal.model import android.content.Context import android.database.Cursor import android.os.Bundle import androidx.fragment.app.FragmentActivity import androidx.loader.app.LoaderManager import androidx.loader.content.Loader import com.zhihu.matisse.internal.loader.AlbumLoader import java.l...
var _ = require("lodash"); var pluginManifest = require("../plugin-manifest").load(); var pluginComponentKarmaConfig = require("../plugin-component-karma-config"); module.exports = function(config) { var coverageDir = 'coverage/renderer'; var files = _.concat( [ // TODO: Remove this hack to...
import 'dart:math' as math show pi; import 'package:example/trending_list.dart'; import 'package:example/venue_list.dart'; import 'package:flutter/material.dart'; import 'package:collapsible_sidebar/collapsible_sidebar.dart'; import 'editable_tabs.dart'; import 'justadded_list.dart'; class SidebarPage extends Statefu...
import java.util.Map; class Test { void m(Map<String, String> map){ map.getOrDefault(<warning descr="'Map<String, String>' may not contain keys of type 'Integer'">1</warning>, ""); map.getOrDefault("", ""); map.remove(<warning descr="'Map<String, String>' may not contain keys of type 'Integer'">1</warni...
using System.Collections.Generic; namespace Mobile.RefApp.Lib.Keychain { public interface IKeychainService { ICollection<Lib.Keychain.SecRecord> GetRecordsFromKeychain(string key); bool ClearRecordsFromKeychain(string key); } }
Alma pre-commit-hooks ===================== Some Alma hooks for pre-commit. See also: https://github.com/pre-commit/pre-commit ## Using pre-commit-hooks with pre-commit Add this to your `.pre-commit-config.yaml`. Only use the sections of the checks you want to use (each section starts with `- id: a-check-name`. `...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
''' lanhuage: python Descripttion: this file is just like the imgAug.py ,but don`t need to input a label file(path) version: beta Author: xiaoshuyui Date: 2020-08-21 08:27:05 LastEditors: xiaoshuyui LastEditTime: 2021-02-19 17:04:15 ''' import sys sys.path.append('..') import os import random import cv2 import numpy...
// ignore_for_file: avoid_print import 'dart:async'; import 'dart:io'; import 'package:awesome_notifications/awesome_notifications.dart'; import 'package:flutter/material.dart'; import 'package:time_change_detector/time_change_detector.dart'; import 'package:time_change_detector_example/definitions.dart'; void main(...
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. COL addrlen NEW_VALUE addrlen COL addrmask NEW_VALUE addrmask SET TERMOUT OFF SELECT VSIZE(addr) addrlen, LPAD('X',VSIZE(addr)*2,'X') addrma...
#ifndef __CONFIG_H #define __CONFIG_H enum { CONFIG_KEY_RESOLUTION = 0, CONFIG_KEY_BLEND_USER1, CONFIG_KEY_BLEND_USER2, CONFIG_KEY_BLEND_USER3, CONFIG_KEY_BLEND_USER4, CONFIG_KEY_COUNT }; #define CONFIG_DEFAULTS { 12, 1, 2, 3, 4 } void config_init(void); void config_write_all(void); unsigned char config_get(u...
module Directory where import Crypto.Hash.MD5 (hash) import Data.ByteString (ByteString) import qualified Data.ByteString as BS import Data.ByteString.Builder (byteStringHex, toLazyByteString) import qualified Data.ByteString.Lazy.Char8 as Char8 import Numeric (showHex) import System.Directory (doesDirectoryExist, doe...
namespace ViaCepClient.Converter { /// <summary> /// IPlainJsonObject represents a reader wrapper /// for plain json reading /// </summary> public interface IPlainJsonObject { /// <summary> /// Get json value by key. If key not exists, return empty string /// </summary> ...
package com.example.yjw.service; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import com.example.yjw.common.BaseActivi...
#!/bin/sh ng -v GREEN='\033[0;32m' BLUE='\033[0;34m' NC='\033[0m' # No Color printf "${BLUE}Starting frontend container\n" sudo chown -R node:node /usr/local/lib/node_modules sudo chown -R node:node /app/node_modules printf "${BLUE}Installing node_modules\n" yarn install printf "${GREEN}Entrypoint finished\n" printf...
@testset "SVD" begin @testset "Comparison with finite differencing" begin rng = MersenneTwister(12345) for n in [4, 6, 10], m in [3, 5, 10] k = min(n, m) A = randn(rng, n, m) VA = randn(rng, n, m) @test check_errs(X->svd(X).U, randn(rng, n, k), A, VA) ...
docker build . -t espina #docker run -it -p 8889:8081 espina docker run -td --net cala01 --ip 203.0.113.42 espina
<?php namespace App\Http\Livewire; use App\Utils\Csv; use Validator; use Livewire\Component; use App\Models\Transaction; use Livewire\WithFileUploads; class ImportTransactions extends Component { use WithFileUploads; public $showModal = false; public $upload; public $columns; public $fieldColumn...
class FieldState { final List<int?> cells; FieldState(this.cells); FieldState.base() : cells = [...List.generate(8, (index) => index + 1), null]; @override bool operator ==(Object other) { if (other is! FieldState || other.cells.length != cells.length) return false; for (int i = 0; i < cells.length;...
#ifndef CH09_CHRONO #define CH09_CHRONO #include "std_lib_facilities.h" namespace Chrono { enum class Month { jan = 1, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec }; //! ISO 8601 enum class WeekDay { sunday, //<! 0 monday, //<! 1 tuesday, //<! 2 wednesday, //<! 3 t...
#include "pedal_rx.h" #include "can.h" #include "can_ack.h" #include "can_unpack.h" #include "exported_enums.h" #include "log.h" static void prv_pedal_watchdog(SoftTimerId timer_id, void *context) { PedalRxStorage *storage = context; PedalValues *pedal_values = &storage->pedal_values; storage->watchdog_id = SOF...
# JobStatisticsJobNodeIo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **read** | [**JobStatisticsJobNodeIoRead**](JobStatisticsJobNodeIoRead.md) | | **write** | [**JobStatisticsJobNodeIoWrite**](JobStatisticsJobNodeIoWrite.md) | |
using System.Collections.Generic; namespace TheEight.WebApp.Models.BoatLineupPlanner { public class BoatVM { public string BoatId { get; set; } public string Title { get; set; } public bool IsCoxed { get; set; } public int SeatCount { get; set; } public IDictionary<int, ...
use std::fs::File; use std::io::{self, BufRead, BufReader}; const TOP: usize = 0; const LEFT: usize = 1; const BOTTOM: usize = 2; const RIGHT: usize = 3; const MIRRORED: usize = 4; const SEA_MONSTER: [&str; 3] = [ " # ", "# ## ## ###", " # # # # # # ", ]; #[derive(Clone, ...
<?php namespace App\Core\V201\Element\Activity; use App\Core\V201\Traits\XmlServiceTrait; use App\Services\Xml\XmlSchemaErrorParser; /** * Class XmlService * @package App\Core\V201\Element\Activity */ class XmlService { use XmlServiceTrait; /** * @var XmlGenerator */ protected $xmlGenerator;...
#!/usr/bin/sbcl --script (load "../src/load") (defun main (size fn) (let* ((psvg (draw-svg:make* :width 1000d0 :height 1000d0 :stroke-width 1d0)) (left 150d0) (right 850d0) (n 7) (bs 50d0)) (vec:with-loop-grid ...
class CreateWdwSourcesTouringplansAttractions < ActiveRecord::Migration[6.1] def change create_table :wdw_sources_touringplans_attractions do |t| t.string "name" t.string "short_name" t.string "permalink" t.string "venue_permalink" t.boolean "fastpass_booth" t.boolean "open_emh_morning" ...
module Spec where class C a where { foo,bar :: [a] -> [a] } instance C Int where foo x = r_bar x bar xs = reverse xs r_bar :: C a => [a] -> [a] r_bar (x:xs) = bar (xs ++ r_bar xs) r_bar [] = [] -- We should specialise `r_bar` at Int -- C.f. Note Note [Avoiding loops (non-DFuns)] in GHC.Core.Opt.Specialise...
#pragma once #include "linalg/col_matrix.hpp" #include "linalg/csc_matrix.hpp" #include "linalg/field.hpp" #include "linalg/matrix_interface.hpp" #include "linalg/naive_dense.hpp" #include "linalg/sparse_vector.hpp" #include "linalg/set_vector.hpp" #include "linalg/sparse_fact.hpp" #include "linalg/polynomial.hpp" #in...
# Simplicial-neural-network-benchmark Simplicial neural network benchmarking software as part of my final year dissertation project Paper on SAT can be found here: https://arxiv.org/abs/2204.09455 To create the correct environments, run the following commands ``` conda create -n myenv python=3.8 conda activate myenv ...
package org.http4k.security.oauth.server import org.http4k.core.Request import org.http4k.core.Response /** * Provides a mechanism to track OAuth authorization parameters to be used later * (i.e. can be used later to generate code and/or tokens) */ interface AuthRequestTracking { /** * Assign a reference ...
package com.example.radiusdev; import java.util.HashMap; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.EditText; public class EditContact extends Activity{ //Unedited variables EditText firstName, las...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\CartDetail; class Cart extends Model { protected $table = "carts"; protected $fillable = ['customer_id', 'status', 'shipping_id', 'shipping_price', 'payment_method_id', 'mp_preference_id', 'mp_collection_id', 'mp_payment_t...
# frozen_string_literal: true require_relative 'gears/control_panel' require_relative 'gears/no_assignment_error' module Core # service gears module Gears def provide(params: {}, options: {}) validates_confection do @params = params unless default_attribute?(:params, params) @options = o...
use dependency::Dependency; use path_utils::ensure_dir; use vcs::load_vcs_info; use error::DerpyError; use log::Log; pub enum AcquireOutcome { Acquired { at_version: String, }, Restored { from_version: String, to_version: String, }, UpgradedTo { from_version: String,...
""" Test file to test RetrieveTrending.py """ from Product.Database.DatabaseManager.Retrieve.RetrieveTrending import RetrieveTrending from Product.Database.DBConn import create_session from Product.Database.DBConn import TrendingScore from Product.Database.DBConn import Movie def test_retrieve_trend_score(): """ ...
module Literals where import Text.Megaparsec import Text.Megaparsec.Char import qualified Text.Megaparsec.Char.Lexer as L import AST import ParserDefinition import Utility import Whitespace numberLexeme :: Parser Int numberLexeme = lexeme L.decimal floatLexeme :: Parser Float floatLexeme = lexeme L.float -- We ...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package libkb import ( "strings" "testing" ) func TestPGPDecryptBasic(t *testing.T) { tc := SetupTest(t, "pgp_encrypt", 1) defer tc.Cleanup() keyA, err := tc.MakePGPKey("keya@keybase.io") if...
%% %% Copyright (c) 2004 Rolf Stenholm %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id: wpc_rspt_combiner.erl,v 1.1 2004/08/25 05:33:05 bjorng Exp $ %% %%% %%% Module to combine results %%% %%% -module(wpc_rspt_co...
#ifndef __BACKLIGHT_H__ #define __BACKLIGHT_H__ #include <stdint.h> #include <stdbool.h> void backlight_level(int32_t level_value); void backlight_power(bool on); #endif /* __BACKLIGHT_H__ */
# Summary * [Intro](README.md) * [General](general/README.md) * [Community](general/community.md) * [Practice](general/practice.md) * [Github](general/github.md) * [Resume & LinkedIn](general/resume-linkedin.md) * [Writing and formatting Code](general/write-code.md) * [Writing README](general/write-readme....
using Handyman.DataContractValidator.Model; namespace Handyman.DataContractValidator.Validation { internal class ValueValidator : TypeInfoValidator<ValueTypeInfo> { internal override void Validate(ValueTypeInfo actual, ValueTypeInfo expected, ValidationContext context) { var a = $"...
import * as puppeteer from 'puppeteer' const sleep = duration => new Promise(resolve => setTimeout(resolve, duration)) const run = async () => { console.log('launch trailer') const browser = await puppeteer.launch() const page = await browser.newPage() const detailUrl = `https://movie.douban.com/subject/` c...
using DiagnosisClassification using Test import CSV @testset "DiagnosisClassification.jl" begin include("dict_utils.jl") include("download.jl") include("init.jl") include("types.jl") @testset "convenience" begin include("convenience/icd9.jl") include("convenience/icd10.jl") en...
--- title: Vue2实现原理 date: 2021-03-18 14:37:54 permalink: /pages/085f52/ categories: - Vue面试题 - JavaScript面试题 - 框架应用 tags: - Vue - Vue3 - 原理 - 响应式 --- ## 响应式原理 导出`vue`构造函数 ```js import {initMixin} from './init'; function Vue(options) { this._init(options); } initMixin(Vu...
#!/usr/bin/env ruby # -*- coding: binary -*- require 'test/unit' $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), "..", "lib") require 'packetfu' puts "Testing #{PacketFu.version}: #{$0}" class EthTest < Test::Unit::TestCase def test_ethmac dst = "\x00\x03\x2f\x1a\x74\xde" e = PacketFu::EthMa...
# ingest sentiment140 dataset curl http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip > sentiment.zip unzip sentiment.zip hadoop fs -rm sentiment hadoop fs -mkdir sentiment hadoop fs -put testdata.manual.2009.06.14.csv training.1600000.processed.noemoticon.csv sentiment/ # ingest positive/negative word list...
program TenStars; const N = 10; var i : integer; begin i := 1; while i <= N do begin write('*'); i := i + 1 end; write(eol); end.
#ifndef _LIB_REGURGITATE_INSTRUCTION_SET_HPP_ #define _LIB_REGURGITATE_INSTRUCTION_SET_HPP_ #include <array> #include <string_view> namespace regurgitate::instruction_set { /* Turn our nasty ifdef's into nice boolean constants */ #ifdef ISPC_TARGET_AUTOMATIC constexpr bool automatic_enabled = true; #else constexpr b...
namespace Blob { public interface IBlobStream { int PatchPosition { get; set; } int DataPosition { get; set; } int Length { get; set; } byte[] ToArray(); byte[] Buffer { get; } unsafe void Write(byte* valuePtr, int size, int alignment); } }
// // CoreDataTableViewController.h // // Created for Stanford CS193p Fall 2011. // Copyright 2011 Stanford University. All rights reserved. #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface CoreDataTableViewController : UITableViewController <NSFetchedResultsControllerDelegate> @property (strong, ...