text
stringlengths
27
775k
let arr = ['w','teacher','manager']; let obj = {"success":true,"message":"","code":200,"result":true} let obj_err = {"success":false,"message":"用户账号已存在","code":200,"result":true} let url = 'get|/tice/sys/user/checkOnlyUser'; import {getQueryString} from '@/utils/util' export default { 'get|/tice/sys/user/checkOnly...
############################## # Test prandtl_meyer functions ############################## import gas_dynamics as gd from gas_dynamics.fluids import air, methane import random class Test_prandtl_meyer_angle_from_mach: def test_one(self): a = random.uniform(1.01,10) assert float(gd.prandtl_meyer_a...
#include<iostream> #include<unistd.h> #include<sys/wait.h> int main() { std::cout << "Fork test\n"; pid_t rt_value = 0; rt_value = fork(); if(rt_value == 0) { std::cout << "In Child..\n"; for(unsigned int i = 0; i < 100; ++i) { std::cout << "In Child ...
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.platform.sandbox.stores.ledger.sql import java.time.{Duration => JDuration} import akka.stream.scaladsl.Sink import com.daml.ledger.api.domain import com.daml.ledg...
// Copyright (c) Jeremy Tuloup. // Distributed under the terms of the Modified BSD License. export const EXTENSION_SPEC_VERSION = '1.0.0';
#! /usr/bin/env perl # # Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. # # Licensed under the Apache License 2.0 (the "License"). You may not use # this file except in compliance with the License. You can obtain a copy # in the file LICENSE in the source distribution or at # https://www.openss...
--- title: Understand Format of GovCloud Linkage Payload description: Learn how to format the relationship that establishes a GovCloud linkage. position: 17 content_markdown: |- Familiarize yourself with the format of the payload that you can post to define the linkage between a GovCloud Commercial Account and a GovC...
module Hydra::Controller module IpBasedAbility # Overriding the default method provided by cancan # This passes the remote_ip to the Ability instance def current_ability @current_ability ||= ::Ability.new(current_user, remote_ip: request.remote_ip) end end end
//! //! The statement tests. //! #![cfg(test)] use num_bigint::BigInt; use crate::error::Error; use crate::lexical::token::location::Location; use crate::semantic::element::constant::boolean::Boolean as BooleanConstant; use crate::semantic::element::constant::integer::Integer as IntegerConstant; use crate::semantic:...
package model import ( "errors" "fmt" "github.com/lakesite/ls-governor" ) // Migrate takes a governor API and app name and migrates models, returns error func Migrate(gapi *governor.API, app string) error { if gapi == nil { return errors.New("Migrate: Governor API is not initialized.") } if app == "" { re...
package com.dev.simplemvvm.ui import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import com.dev.simplemvvm.R enum class HouseType(@DrawableRes val logo:Int,@ColorRes val color:Int){ Gryffindor(R.drawable.logo_gryffindor,android.R.color.holo_red_dark), Slytherin(R.drawable.logo_slytheri...
import 'dart:ui' show Color; import '../models/typedef_aliases/int_rgb_color.dart'; extension IntColorExtensions on IntRGBColor { Color toColor() => (length == 3) ? Color.fromRGBO(this[_red], this[_green], this[_blue], _opacity) : const Color.fromRGBO( 128, 128, 128, ...
# Applying a Brand to a template # Check that we're in a bash shell if [[ $SHELL != *"bash"* ]]; then echo "PROBLEM: Run these scripts from within the bash shell." fi # Check for a valid cc email and prompt the user if #CC_EMAIL and CC_NAME haven't been set in the config file. source ./examples/eSignature...
(in-package :maze-gen) (defparameter *version* 0.4) ;; shortcut/convenience macro (defmacro with-pane-process ((self) &body body) `(capi:apply-in-pane-process ,self (lambda () ,@body))) (define-interface maze-trenchbroom-window () ((grid :initarg :gri...
#pragma once #include "SharedDefines.h" #include "Render.h" #include "ErrorHandler.h" #include "HeightmapExporter.h" #include "Triangulation.h" #include "StlExporter.h" #include "DataStorage.h" class DataStorage; class Render; class BasicFrame : public wxFrame { public: BasicFrame(const wxChar *title, int xpos, int ...
using System; using UnityEngine; using UnityEngine.UI; public class Task : MonoBehaviour { public bool isMonsterTask; public int taskIndex; public int targetAmount; private TaskPanel taskPanel; private Text targetAmountText; private Text currentAmountText; private int cur...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Tipe; use Illuminate\Validation\Rule; class TipeController extends Controller { public function index() { $tipes = Tipe::all(); return view('tipe.index', compact('tipes')); } public function create() { ...
# Apache Kafka Introduction Presentation Introduction to Apache Kafka used at the Michigan Red Hat User Group meetings in December, 2018. Thanks to Paolo Patierno for providing the basis for the charts.
# XMUEssayTemplate-EN This is an English Template of essay created with LaTeX for XMU students. ## Table of Contents - [Table of Contents](#table-of-contents) - [Usage](#usage) - [Maintainers](#maintainers) - [License](#license) ## Usage - download essay.tex and references.bib - put your references in references.bi...
/** * @ignore * @Description nothing * @author Wang Bo (ralwayne@163.com) * @date 2020/10/10 3:57 PM */ const gitURL = /(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/; const path = /^(\/\w+){0,2}\/?$/; /** * 文字下划线中划线 * @type {RegExp} */ const dynamicDir = /(^\[[\w\-]+\]$)|(^\{[\w\-]+\}$...
# fake-en-uk UK providers for [Fake](https://github.com/mightybyte/fake/)
package qiita import ( "context" "encoding/json" "fmt" "io/ioutil" "net/http" "github.com/shiimaxx/blog-aggregator/blogservice" "github.com/shiimaxx/blog-aggregator/structs" ) const baseURL = "https://qiita.com/api/v2" // FetchEntries fetch qiita entries of specified user id func FetchEntries(ctx context.Con...
""" picasso.simulate-gui ~~~~~~~~~~~~~~~~ GUI for Simulate : Simulate single molcule fluorescence data :author: Maximilian Thomas Strauss, 2016 :copyright: Copyright (c) 2016 Jungmann Lab, MPI of Biochemistry """ import csv import glob as _glob import os import sys import time import yaml i...
redis-pool ========== Golang redis pool implementation for gosexy/redis
const fs = require('fs'); if (fs.existsSync('./.gulprc')) { // eslint-disable-next-line import/no-unresolved Object.assign(exports, require('../.gulprc')); }
//! Itegration tests for all of the REST API. //! Very primitive approach. use rand::Rng; use ucare::{self, conversion, file, group, project, webhook}; mod testenv; fn rest_client_version(version: ucare::RestApiVersion) -> ucare::RestClient { let config = ucare::RestConfig { sign_based_auth: true, ...
#ifndef FINDER_LINEAR_HPP #define FINDER_LINEAR_HPP #include <assert.h> #include <iomanip> #include <iostream> #include <unordered_set> #include <vector> #include "../config.hpp" namespace Finder { template<typename Graph> class Linear { public: using subgraph_t = std::array<VertexID, 4>; static constexpr ...
import StyledFirebaseAuth from "react-firebaseui/StyledFirebaseAuth"; import firebase from "../firebase/firebase-config"; import { uiConfig } from "../firebase/firebaseui-config"; interface Props { redirect?: string; } export const Auth = ({ redirect = "/" }: Props) => { return ( <div className="border-2 roun...
set -xeEo pipefail source CI/tests/common.sh trap error ERR trap finish EXIT function funtional_test_pod_deletion { export scenario_type="pod_scenarios" export scenario_file="- CI/scenarios/hello_pod_killing.yml" export post_config="" envsubst < CI/config/common_test_config.yaml > CI/config/pod_config.yaml ...
package it.unibo.intelliserrademo.gui.util import it.unibo.intelliserra.core.action.Action import it.unibo.intelliserra.core.perception.Measure import it.unibo.intelliserra.core.state.State object StatePrintify { private[gui] def statePrintify(state: State): String = { perceptionsPrintify(state.perceptions) + ...
const r = require('@lib/test-utils/r'); const files = require('@dal/files')(r); const tutil = require('@lib/test-utils')(r); const dirUtils = require('@dal/dir-utils')(r); describe('Test moveFileToDirectory', () => { let project, dir1, dir11, file1, file1Child; beforeAll(async() => { project = await t...
:- use_module(dispatch). pengine(Goal, Pid) :- self(Self), spawn(query(Goal, Pid, Self), Pid, [ monitor(true), src_predicates([query/3]) ]). query(Goal, Self, Parent) :- call_cleanup(Goal, Det=true), ( var(Det) -> Parent ! success(Self, Goal, true), receive...
using EPiServer; using EPiServer.Core; using EPiServer.Core.Transfer.Internal; using EPiServer.DataAbstraction; using EPiServer.Framework.Cache; namespace ExportImportWithVersion.DataExporter { public class DefaultRawContentRetrieverInterceptor : DefaultRawContentRetriever, IRawContentRetrieverEx { pr...
module ActiveRecord module ConnectionAdapters class JdbcAdapter def supports_views? true end def nonview_tables(name = nil) tables end def views(name = nil) select_values(delegate.list_views_statement, name) end private ...
#!/bin/bash ../../../germanium main.go -o default-gen.png
(ns moclojer.router (:require [moclojer.openapi :as openapi] [clojure.edn :as edn] [yaml.core :as yaml] [clojure.string :as str] [moclojer.handler :as handler])) (defn edn-router "Receive spec edn config Example: {::config {:ednpoints [{:endpoint {...}}, {:endpoin...
module Rubex module DataType class UInt64 include UIntHelpers def to_s 'uint64_t' end def to_ruby_object(arg) "ULONG2NUM(#{arg})" end def from_ruby_object(arg) "(int64_t)NUM2UINT(#{arg})" end def uint64? true end def p...
<?php namespace App\Http\Requests\Arsip\PM; use Carbon\Carbon; use Illuminate\Foundation\Http\FormRequest; class TambahAdministrasiDesaRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $tahun ...
#!/bin/bash if [ $# -gt 0 ]; then mode=mainnet fi echo -n " [+] CREATING >>" echo -n $mode | tr '[:lower:]' '[:upper:]' echo "<< PACKAGE" rm -rf package/libs/*.jar package/nis/*.jar cp -r ../nis/target/libs/*.jar package/libs rm package/libs/nem-* cp -r ../nis/target/libs/nem-*.jar package/nis cp -r ../nis/targ...
require 'paylocity_web_service/connection' require 'paylocity_web_service/authentication' require 'paylocity_web_service/configuration' require 'paylocity_web_service/error' require 'paylocity_web_service/client/companies' require 'paylocity_web_service/client/employees' require 'paylocity_web_service/client/credential...
using Ardalis.GuardClauses; using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; using KeepAChangelogParser.Wpf.SampleApp.Contracts.ReleaseNotesWindow; namespace KeepAChangelogParser.Wpf.SampleApp.Commands.R...
package abi45_0_0.expo.modules.storereview import android.content.Context import abi45_0_0.expo.modules.core.BasePackage class StoreReviewPackage : BasePackage() { override fun createExportedModules(context: Context) = listOf(StoreReviewModule(context)) }
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { UserLoginOptions } from '../../interfaces/user-options'; import { AngularFireAuth } from '@angular/fire/auth'; import { auth } from 'firebase/app'; import { UserData } from '../../providers/user-data'; import { A...
<?php namespace App\Repositories; use App\Interfaces\Repositories\WalletRepositoryInterface; use App\Models\Wallet; use Illuminate\Support\Facades\DB; class WalletRepository extends BaseEloquentRepository implements WalletRepositoryInterface { public function __construct(Wallet $wallet) { parent::__...
package models import ( "fmt" "strings" ) type Expression struct { field string symbol string value interface{} } func BinaryExpression(field, symbol string, value interface{}) Expression { switch strings.ToUpper(symbol) { case "LIKE": return LIKE(field, value) case "LLIKE": return LLIKE(field, value) ...
package org.koin.core import org.junit.Test import org.koin.dsl.koinApplication import org.koin.dsl.module import java.util.* import kotlin.test.assertEquals import kotlin.test.assertNotEquals class DeclareInstanceJVMTest { class MyScope class MyScopedData(var name: String) private val module = module ...
// // SKFNoDownLoadView.h // SKFDownLoadListern // // Created by 孙凯峰 on 2017/4/1. // Copyright © 2017年 孙凯峰. All rights reserved. // #import <UIKit/UIKit.h> @interface SKFNoDownLoadView : UIView + (instancetype)noDownLoadView; @property (nonatomic, strong) UIImage *noDataImg; @property(nonatomic,copy) void(^clickB...
Name: mn_hp_mr3ascr.asm Type: file Size: 26054 Last-Modified: '1993-08-25T07:18:46Z' SHA-1: 43DFA2924BD36EEED0DA82608865DA69CBE77294 Description: null
enum class Move { WHITE_CLOCKWISE { override fun toString(): String { return "W1" } }, RED_CLOCKWISE { override fun toString(): String { return "R1" } }, BLUE_CLOCKWISE { override fun toString(): String { return "B1" ...
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; using Framework.Core.FlowControl; namespace Assets.Project { public class CableNode { public CableNode Last; public CableNode Next; //前帧/本帧的位置 public Vector3 prePos, curPos; } public class cable : MonoBehaviou...
SECTION .data ; Section containing initialized data EatMsg: db 'Hello, world', 0x0A EatLen: equ $-EatMsg SECTION .bss ; Section containing uninitialized data SECTION .text ; Section containing code global main ; Linker needs this to ...
namespace Altinn.App.Services.Constants { /// <summary> /// app token /// </summary> public static class General { /// <summary> /// app token name /// </summary> public const string AppTokenName = "AltinnToken"; /// <summary> /// The name of the auth...
import React, { PureComponent } from 'react' import isUrl from 'is-url-superb' import Input from '../../../components/atoms/Form/Input' import Button from '../../../components/atoms/Button' import styles from './ItemForm.module.scss' interface ItemFormProps { addFile(url: string): void placeholder: string } i...
using System.ComponentModel.DataAnnotations; namespace Singl.Models { public enum TipoCurso { Bacharelado, Licenciatura, Mestrado, Doutorado, [Display(Name="Especialização")] Especializacao } }
require "rails_helper" RSpec.describe ProjectsController, type: :controller do render_views let!(:project) { FactoryBot.create(:project, status: nil) } let!(:archived_project) { FactoryBot.create(:project, status: "archived") } before do @request.env["devise.mapping"] = Devise.mappings[:user] user = ...
RSpec.describe LocationSearchResultDecorator do let(:distance) { 1.0489736864844752 } let(:search_result) { double(distance: distance, lat_lng: [123, 456]) } subject(:decorator) { described_class.new(search_result) } specify { expect(decorator.distance).to eq('1.05') } it 'returns coordinates' do expec...
package xls import ( "bytes" "encoding/binary" "fmt" "io" "unicode/utf16" ) type TWorkSheetVisibility byte const ( WorkSheetVisible TWorkSheetVisibility = 0 WorkSheetHidden TWorkSheetVisibility = 1 WorkSheetVeryHidden TWorkSheetVisibility = 2 ) type boundsheet struct { Filepos uint32 Visible byte ...
using Common.Worlds; namespace Common.Actors.Manager.Repositories; public interface IActorRepository { Task<Actor> CreateAsync( Id<World> worldId, Id<Actor> actorId, string name, DateTime createdOn, CancellationToken cancellationToken ); Task<Actor?> GetByIdAsync( Id<World> worldId, ...
#!/bin/bash set -e set -o pipefail npm run test:lint npm run prettier:ci npm run test pushd integration-test/nodejs sls deploy sls invoke -l true -f hello sls remove popd pushd integration-test rm -rf venv || true virtualenv venv -p python3 . venv/bin/activate popd pushd integration-test/python npm i sls deploy ...
package io.javaoperatorsdk.operator.springboot.starter; import java.util.Set; public class ControllerProperties { private String name; private String crdName; private String finalizer; private boolean generationAware; private boolean clusterScoped; private Set<String> namespaces; private RetryProperties...
// Type definitions for response-time 2.3.2 // Project: https://github.com/expressjs/response-time // Definitions by: Uros Smolnik <https://github.com/urossmolnik>, TonyYang <https://github.com/TonyPythoneer> // Dan Manastireanu <https://github.com/danmana> // Definitions: https://github.com/DefinitelyT...
using PyCall import Plots # Functionality for computing band structures, mostly using pymatgen function high_symmetry_kpath(model; kline_density=20) bandstructure = pyimport("pymatgen.symmetry.bandstructure") pystructure = pymatgen_structure(model.lattice, model.atoms) symm_kpath = bandstructure.HighSymmK...
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName="Custom/MapData")] public class MapData : ScriptableObject { [System.Serializable] public struct Obstacle { public Vector2 position; public Sprite sprite; public bool mirrored; ...
import {ChangeDetectionStrategy, Component} from '@angular/core'; import {UntypedFormControl, Validators} from '@angular/forms'; import {Observable} from 'rxjs'; import {filter, map, shareReplay, withLatestFrom} from 'rxjs/operators'; import {Controls, FlowArgumentForm} from '../../components/flow_args_form/form_inter...
import Test.Tasty import qualified Basic import qualified Integration import qualified MockSqlQueryT import qualified Mocked import qualified SqlQueryRepTest main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "persistent-mtl" [ Basic.tests , Mocked.tests , Integration.tests , MockSqlQ...
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.jvmstat.monitor; /** * Interface for Monitoring Integer Instrument Objects. * * The IntegerMo...
<?php use yii\helpers\Html; use yii\helpers\Url; ?> <style type="text/css"> div.head{ margin: 7px 0; text-align: right; } div.row.custom1{ padding: 5px 0; } div.row label{ padding: 0 10px 0 5px; } </style> <div class="row content"> <div class="col-md-12"> <div class="row"> <div class="col-md-12"> <...
using UnityEngine; using System.Collections; public class MyClass : MonoBehaviour { public bool myBool; public string myString; public int myInt; public float myFloat; public GameObject myObject; }
object frmPadraoPesquisa: TfrmPadraoPesquisa Left = 0 Top = 0 BorderIcons = [biSystemMenu, biMinimize] BorderStyle = bsSingle Caption = 'Form Padr'#227'o Pesquisa' ClientHeight = 353 ClientWidth = 494 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Fo...
#!/bin/sh set -xeu if [ "$TARGETPLATFORM" = linux/arm64 ]; then HELM_PLATFORM=linux-arm64 else HELM_PLATFORM=linux-amd64 fi # Install kubectl curl --silent --show-error --fail --location -o _ \ "https://storage.googleapis.com/kubernetes-release/release/v${KUBE_VERSION}/bin/${TARGETPLATFORM}/kubectl" mv _ "${EXE...
/* * $Id: UpdateProcessor_T.cpp 4381 2011-03-04 20:56:23Z mitza $ * * * Distributed under the OpenDDS License. * See: http://www.opendds.org/license.html */ #ifndef UPDATEPROCESSOR_T_CPP #define UPDATEPROCESSOR_T_CPP #if !defined (ACE_LACKS_PRAGMA_ONCE) #pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #include ...
# Full Audio ## Create Dataset ```shell python3 create_dataset.py ```
# Asks for height and weight height = float(input("enter your height in m: ")) weight = float(input("enter your weight in kg: ")) # Calculates BMI bmi = round(weight / height ** 2) if bmi < 18.5: print(f"Your BMI is {bmi}, you are underweight.") elif bmi < 25: print(f"Your BMI is {bmi}, you have a normal w...
package az.movie.az_movie.ui.fragment.movies_full.adapters import android.view.ViewGroup import androidx.paging.LoadState import androidx.paging.LoadStateAdapter class MoviesLoadStateAdapter( private val retry: () -> Unit ) : LoadStateAdapter<MoviesLoadStateViewHolder>() { override fun onBindViewHolder(holder...
--- layout: exercise title: Exercise 9.15 permalink: /logical-inference-exercises/ex_15/ breadcrumb: 9-Inference-In-First-Order-Logic breadcrumb2: ex_15 breadcrumb3: 9inferenceInFirstOrderLogic breadcrumb4: ch9ex15 breadcrumb5: ex9.15 --- {% include mathjax_support %}
/*************************************************************************** begin : Thu Feb 20 2003 copyright : (C) 2003 - 2009 by Alper Akcan email : alper.akcan@gmail.com ***************************************************************************/ /*************...
package routes import ( "encoding/hex" "github.com/deso-protocol/core/lib" "github.com/pkg/errors" ) // decodeBlockHashFromHex Decodes a BlockHash given a valid hex encoding. If the input does not represent a valid // BlockHash, this returns the corresponding error func decodeBlockHashFromHex(hexEncoding string) (...
require 'active_record' module ActiveRecord class Base cattr_accessor :where_syntax, :instance_writer => false end end module Everywhere class Railtie < ::Rails::Railtie #:nodoc: initializer 'everywhere' do |app| ActiveSupport.on_load(:active_record) do require "everywhere/#{app.config.act...
# Example: # # class ApplicationController < ActionController::Base # include Metatags::Concerns::Controller # end # # class ArticlesController < ApplicationController # before_action :find_article, only: [:show] # # # Simplest option. # # Will use Metatags::ArticleMetatags by default. # build_meta_tags insta...
module.exports = [ "Open", "WIP", "Resolved", "Non Issue" ];
package typingsSlinky.googleapis.driveactivityV2Mod.driveactivityV2 import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * Information about the owner of a Drive item. */ @j...
## Deploy / Update 1. Check files and replace "xxx.xxx.xxx.xxx" with your host IP address 2. Add new servers fingerprint to known hosts 3. Run: `ansible-playbook site.yml --ask-pass`
import { Button, Link, Popover, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverHeader, PopoverTrigger, } from "@chakra-ui/react"; import { SITE_PATHS } from "app/routes"; import { useHistory } from "react-router-dom"; function CancelLink() { const history = useHistory(); re...
begin # Starting at the current directory, recursively reads one or more # Nuxeo export files. From these, packages up records in an import file # that can be read by the CollectionSpace Import service. # IMPORTANT: # This script does NOT: # * Perform any cleanup of records, if that may also b...
package com.github.parkee.wit.converse.entity import com.fasterxml.jackson.annotation.JsonCreator import com.fasterxml.jackson.annotation.JsonValue enum class ConverseResultType(private val type: String) { MERGE("merge"), // first bot action after a user message MSG("msg"), // the bot has something to say ...
#Experiment_s Run_s SRX1772607 SRR3541306 SRX1772608 SRR3541307 SRX1772609 SRR3541308 SRX1772611 SRR3541310 SRX1772610 SRR3541309 SRX1772612 SRR3541311 SRX1772613 SRR3541312 SRX1772614 SRR3541313 SRX1772615 SRR3541314 SRX1772617 SRR3541316 SRX1772616 SRR3541315 SRX1772618 SRR3541317 SRX1772620 SRR3541319 SRX1772619 SRR...
package com.hlag.routine import android.content.Context import android.util.Log import com.google.gson.Gson import java.io.* class FileManager { companion object { var dir = "/storage/emulated/0" fun readFile(name: String?): Routine? { val text = StringBuilder() ...
module RuboCop module Cop module Chef class MetadataMaintainer < Cop MSG = '' end end end end
use core::cell::UnsafeCell; use core::marker::PhantomData; use crate::num::NonZeroUsize; use crate::num::Pow2Usize; use crate::num::usize_align_up; use super::NonNull; use super::Allocator; use super::AllocError; struct BumpAllocatorState<'a> { begin_addr: usize, current_addr: usize, end_addr: usize, ...
require 'formula' class Irstlm < Formula homepage 'https://sourceforge.net/projects/irstlm/' url 'https://downloads.sourceforge.net/project/irstlm/irstlm/irstlm-5.80/irstlm-5.80.03.tgz' sha1 'd92d048b924fde228811c81c030bf99e0ae832a9' depends_on 'autoconf' => :build depends_on 'automake' => :build depends_...
# [N-ary Tree Postorder Traversal][title] ## Description Given an n-ary tree, return the postorder traversal of its nodes' values. **Example 1:** For example, given a 3-ary tree: ![](https://ws1.sinaimg.cn/large/0062R7s4gy1fxvp285ibrj30lp0dy0ta.jpg) Return its postorder traversal as: [5,6,3,2,4,1]. **Tags:** T...
<?php /** * Created by PhpStorm. * User: 卢珑文 * Date: 2017/12/8 * Time: 9:52 * description: 接口规范 */ namespace framework\dao; interface iPDO{ // 查询一条记录 public function fetchOne($sql); // 查询所有记录 public function fetchAll($sql); // 查询字段的值 public function fetchColumn($sql)...
BEGIN; CREATE OR REPLACE FUNCTION inventory_get_item_at_day (in_transdate date, in_partnumber text) RETURNS parts AS $$ DECLARE out_row RECORD; t_parts_id int; int_outrow RECORD; BEGIN SELECT id INTO t_parts_id FROM parts WHERE (partnumber like in_partnumber|| ' %' or partnumber = in_partnumber) and ob...
module Joinable extend ActiveSupport::Concern included do has_many :memberships, as: :group, dependent: :destroy if self < ApplicationRecord scope :for_member, lambda{|member| joins(:memberships).where('memberships.member_id = ?', member)} end end def active_leaders(dt = DateTime.current) ...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Repositories\Admin\ClientRepositoryEloquent as Client; class DashboardController extends Controller { protected $clientRepo; function __construct(Client $clientRepo) { $this->cli...
# Rake Snippets This file contains snippets of rake files that have proven useful over the years. The are listed here, together for ease of copy and pasting where needed. ### Tests The standard unit test suite: ```ruby require 'rake/testtask' #Run the Fibonacci unit test suite. Rake::TestTask.new do |t| #List ou...
export default class SingleChoiceVoting { public proposal; public votes; public strategies; public selected; constructor(proposal, votes, strategies, selected) { this.proposal = proposal; this.votes = votes; this.strategies = strategies; this.selected = selected; } // Returns an array w...
SELECT P.[FirstName] ,P.[LastName] , A.[City] , A.[State] FROM [Person] P LEFT JOIN [Address] A ON P.PersonId = A.PersonId
package main import ( "log" "github.com/bitcoinschema/go-bitcoin" ) func main() { // Use a new UTXO utxo := &bitcoin.Utxo{ TxID: "b7b0650a7c3a1bd4716369783876348b59f5404784970192cec1996e86950576", Vout: 0, ScriptPubKey: "76a9149cbe9f5e72fa286ac8a38052d1d5337aa363ea7f88ac", Satoshis: ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.Win32; namespace CPUMonitor { public partial class frmCPU : Form { private RegistryKey A...