text
stringlengths
27
775k
import { extractUser } from "../../../../../src/decorators/lambda-proxy/hooks"; import { LambdaProxyOpts } from "../../../../../src/decorators/lambda-proxy"; describe("extractUser tests", () => { const OLD_ENV = process.env; beforeAll(() => { process.env.NODE_ENV = "nottest"; }); afterAll(() => { proc...
import { persianChars, persianDiacritic } from "../const"; // @Ref https://github.com/ebraminio/persiantools export function fixZWNJ(text: string): string { return ( text // converts all soft hyphens (­) into zwnj .replace(/\u00ad/g, "\u200c") // removes more than one zwnj .replace(/...
using PP_Parser.Parser; using PP_Parser.Parser.Binary; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Base.Utils.Math { public class Cone : PhonixBaseObjectBaseValue { public UnityEngine.CoreModule.Vector3 Tip { get; set; }...
package com.ibm.jnvmf; import java.io.IOException; public class NvmFlushCommand extends NvmCommand<NvmFlushCommandCapsule> { NvmFlushCommand(IoQueuePair queuePair) throws IOException { super(queuePair, new NvmFlushCommandCapsule(queuePair.allocateCommandCapsule())); } }
import React, { useState } from "react"; import Header from "components/Documentation/Header"; import Container from "components/Documentation/Container"; import Navbar from "components/Documentation/Navbar"; import Heading from "components/Documentation/Heading.js"; import SmallHeading from "components/Documentation/S...
# rocket chat 参考URL(https://github.com/helm/charts/blob/master/stable/rocketchat/) 参考URLの内容をアレンジ * rancher カタログ用に * 注釈等の日本語化
<?php namespace backend\controllers; use backend\models\AuthForm; use backend\models\RolesForm; use yii\helpers\ArrayHelper; use yii\web\Controller; use yii\web\Request; class AuthController extends Controller{ Public function actionMana(){ //做权限的增删改查 //添加权限 //先准备两个权限 $auth= \Yi...
[AddComponentMenu] // RVA: 0x1276F0 Offset: 0x1277F1 VA: 0x1276F0 public class VirtualVerticalLayoutGroup : LayoutGroup, IPointerClickHandler, IEventSystemHandler // TypeDefIndex: 4341 { // Fields private readonly SRList<object> _itemList; // 0x58 private readonly SRList<int> _visibleItemList; // 0x60 private bool ...
module Remover class Team attr_accessor :github_client, :github_team def initialize(github_client, github_team) @github_client, @github_team = github_client, github_team end def used? with_members? && with_repositories? end def name github_team.name end private ...
function FileData_Pairs(x) { x.t("right","corner"); x.t("clear","fields"); x.t("instance","cananolab"); x.t("preferences","link"); x.t("preferences","configuring"); x.t("preferences","configure"); x.t("preferences","administration"); x.t("preferences","log"); x.t("administrator","using"); x.t("bar","option")...
import React, { Component, useState } from 'react' import { StyleSheet, Text, View, TextInput, TouchableOpacity, TouchableWithoutFeedback, Keyboard, Alert, } from 'react-native' import Ionicons from 'react-native-vector-icons/Ionicons' import FontAwesome from 'react-native-vector-icons/FontAwesome' impo...
# # Copyright (c) 2013-2020 Christian Jaeger, copying@christianjaeger.ch # # This is free software, offered under either the same terms as perl 5 # or the terms of the Artistic License version 2 or the terms of the # MIT License (Expat version). See the file COPYING.md that came # bundled with this file. # =head1 NAME...
#ifndef COLOR_H #define COLOR_H #include <cstdint> class Color { public: Color(); Color( uint32_t hex ); Color( uint8_t r, uint8_t g, uint8_t b, uint8_t a ); void set_hex( uint32_t hex ); void set_components( uint8_t r, uint8_t g, uint8_t b, uint8_t a ); uint32_t get_hex(); void get_compon...
#!/bin/bash # Patch an issue with glibc-2.26 sed -i "/math.h/a #include <malloc.h>" src/flexdef.h HELP2MAN=/bin/true \ ./configure --prefix=/usr \ --docdir=/usr/share/doc/flex-2.6.4 || exit 1 make -j $SHED_NUMJOBS || exit 1 make "DESTDIR=${SHED_FAKEROOT}" install || exit 1 ln -sv flex ${SHED_FAKEROOT}/usr/b...
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
package dog.del.commons import java.security.MessageDigest val String.lineCount get() = lines().count() private val digits = "0123456789abcdef".toCharArray() fun String.sha256(): String { val digest = MessageDigest.getInstance("SHA-256") return digest.digest(toByteArray()).toHex() } // This was copy paste...
using System; namespace GameOfIntervals { internal class Program { static void Main(string[] args) { int movesCount = int.Parse(Console.ReadLine()); int numsCountFrom0To9 = 0; int numsCountFrom10To19 = 0; int numsCountFrom20To29 = 0; ...
package com.statsig.androidsdk import android.os.Build import androidx.core.content.edit import com.google.gson.annotations.SerializedName import java.util.* internal data class StatsigMetadata( @SerializedName("stableID") var stableID: String, @SerializedName("appIdentifier") var appIdentifier: String? = nul...
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. // Open the particle editor to spawn a test emitter in front of the player. // Edit the sliders, check boxes, and text fields and see the results in // realtime. Switch between emitters and pa...
<?php /** * Database Configuration */ return array( // All environments '*' => array( 'tablePrefix' => 'craft', 'server' => getenv('CRAFTENV_DB_HOST'), 'database' => getenv('CRAFTENV_DB_NAME'), 'user' => getenv('CRAFTENV_DB_USER'), 'password' => getenv('CRAFTENV_DB_PASS'), ), // Live (pr...
package Moonshine::Bootstrap::v3; use strict; use warnings; use Moonshine::Magic; use Moonshine::Util; use Module::Find; extends ( 'Moonshine::Bootstrap::Component', ); BEGIN { with ( ( map { $_ } findsubmod 'Moonshine::Bootstrap::v3' ) ); } 1; __END__
# environment variables export COLORTERM=truecolor export MICRO_TRUECOLOR=1 export CLICOLOR=1 export LSCOLORS=ExFxBxDxCxegedabagacad export LESS=-R export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export LESSCHARSET=utf-8 export MANPAGER="sh -c 'col -bx | bat -l man -p --paging always'" exp...
import Data.Monoid ((<>)) import Explorer.Web.Validate import Options.Applicative (Parser, ParserInfo, ParserPrefs) import qualified Options.Applicative as Opt main :: IO () main = do Opt.customExecParser p opts >>= runCommand where opts :: ParserInfo Command opts = Opt....
// // ByteVectorList.cs: // // Author: // Brian Nickel (brian.nickel@gmail.com) // Aaron Bockover (abockover@novell.com) // // Original Source: // tbytevectorlist.cpp from TagLib // // Copyright (C) 2005-2007 Brian Nickel // Copyright (C) 2006 Novell, Inc. // Copyright (C) 2002,2003 Scott Wheeler (Original Implem...
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Calorimetro_2011.rc // #define IDCHANGE 3 #define IDM_LOWLVLCNF 101 #define IDD_PULSER 103 #define IDD_TCONTROL 104 #define IDD_CONTROLPANEL ...
import React from 'react'; // eslint-disable-next-line no-restricted-imports import {mountWithAppProvider} from 'test-utilities/legacy'; import {SkeletonBodyText} from '../SkeletonBodyText'; describe('<SkeletonBodyText />', () => { it('renders the amount of lines provided', () => { const skeletonBodyText = moun...
using Ninject; using ProjectManager.Configs; using ProjectManager.Framework.Core.Common.Contracts; namespace ProjectManager.ConsoleClient { public class Startup { public static void Main() { var kernel = new StandardKernel(new NinjectManagerModule()); var engine = kern...
package de.deadlocker8.budgetmaster.utils; import de.deadlocker8.budgetmaster.Main; import org.springframework.boot.jdbc.DataSourceBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org....
trait A { def foo: Int } trait B extends A { override def foo: Int = 2 } class C extends B
<?php helper('inflector');?> <title><?= $_ENV['project.name'] ?> - <?= $title ?></title> <meta name="description" content="<?= $_ENV['project.name'] ?> - <?= $title ?>"> <meta name="author" content="pixelcave"> <meta name="robots" content="noindex, nofollow"> <!-- Open Graph Meta --> <meta property="og:title" content...
/* eslint-disable no-undef */ import React from 'react'; import { shallow } from 'enzyme'; import RadioButton, { StyledSpan } from '../RadioButton'; import 'jest-styled-components'; describe('RadioButton', () => { it('should be defined', () => { expect(shallow(<RadioButton />)).toBeDefined(); }); i...
class DoubleRep(object): def __str__(self): return "Hi, I'm a __str__" def __repr__(self): return "Hi, I'm a __str__" #貌似3.0 非正式字符串改掉了,待确认 type(In) list #使用列表,可以省略保存位置 type(Out) dict #每行都有输入,但不一定都有输出,所以用字典的方式保存,不用考虑null ~.ipython 定制用文件 In [31]: %cd Navicat/ In ...
use hook_codes::HookCodes; use hooks::Hooks; use message_state::MessageState; use futures_cpupool::{CpuFuture, CpuPool}; use std::sync::{Arc, Mutex}; use std::net::UdpSocket; /// Contains all registered hooks /// Notifies the hooks on incoming messages and gives them a global state #[derive(Debug)] pub struct HookNo...
unit Unit_QuickSort_Compare; {$C+} // Assertions enabled interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TQuickSortCompare = class(TForm) Button1: TButton; Label1: TLabel; ECoun...
# frozen_string_literal: true require 'rails_helper' RSpec.describe TrackInserter do subject(:service) { described_class.new(opts) } let(:opts) do { date: date, position: 2, file: file, title: title, song_id: song_id, set: 1, is_sbd: true } end let(:date) { sh...
require 'redis' require 'time' module HighDawn class TimelineModel def initialize(id) @hash={} end def save_timeline raise "blank id" if nil? @hash.each do |timestamp, bucket| bucket.each do |node| event=node[:event] follower=node[:follower] follow...
--- title: arrayToHTMLList tags: browser,array,intermediate firstSeen: 2020-10-08T00:02:45+03:00 lastUpdated: 2020-10-20T11:46:23+03:00 --- Converts the given array elements into `<li>` tags and appends them to the list of the given id. - Use `Array.prototype.map()` and `Document.querySelector()` to create a list of ...
package com.bnrc.busapp; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.Button; import android.widget.ImageView; import android.widget.Toast; import com.bnrc.util.BusTags; import com.bnrc.util.Came...
object Versions { const val kotlin = "1.6.10" const val coroutines = "1.6.0" const val androidx_app_compat = "1.3.1" const val androidx_annotations = "1.3.0" const val androidx_lifecycle = "2.3.1" const val androidx_material = "1.4.0" const val androidx_constraintlayout = "2.1.1" const ...
@{ 'sqlite_dll' = @{ DependencyType = 'FileDownload' Source = 'https://github.com/RamblingCookieMonster/PSSQLite/blob/master/PSSQLite/x64/System.Data.SQLite.dll?raw=true' Target = 'TestDrive:/PSDependPesterTest' } }
using System; using System.Collections.Generic; using MongoDB.Configuration.Mapping.Model; using MongoDB.Configuration.Mapping; using MongoDB.Bson; namespace MongoDB.Serialization.Descriptors { internal class DocumentClassMapPropertyDescriptor : ClassMapPropertyDescriptorBase { private reado...
import * as React from "react"; // export {default as Assert} from "./Assert"; export {default as Div} from "./Div"; // export {default as Item} from "./Item"; // export {default as Title} from "./Title"; // 常用的库 export {default as axios} from "axios"; export {default as dayjs} from "dayjs"; export function arrayAs...
#!/usr/bin/env Rscript options(stringAsfactors = FALSE, useFancyQuotes = FALSE) # this script will collect multiple library files into a hyper object # Taking the command line arguments args <- commandArgs(trailingOnly = TRUE) if(length(args)==0)stop("No files have been specified!") output<-NA appendTo<-NA appendToN...
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { viteMockServe } from 'vite-plugin-mock'; import styleImport, {AntdResolve} from 'vite-plugin-style-import'; import path from 'path'; // https://vitejs.dev/config/ export default defineConfig({ resolve: { alias: { ...
package com.eltonkola.shnet.ui.views import androidx.compose.animation.animateColorAsState import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.padding import androidx....
<?php namespace Tests\Unit; use Tests\TestCase; class LoginTest extends TestCase { public function test_success_login() { $response = $this->post('/api/login',[ 'email' => 'backend@multicorp.com', 'password' => 'test123' ]); $response->assertStatus(201); } ...
# encoding: utf-8 module Osaka class TypicalPrintDialog attr_accessor :control def initialize(application_name, own_location) @control = Osaka::RemoteControl.new(application_name, own_location) end def create_save_dialog(application_name, own_location) TypicalSaveDialog.new(applicat...
package dev.davidsth.marvel import dev.davidsth.config.annotation.Config @Config class MarvelUniverse { init { println("name: ${MarvelUniverse_Config.name}") println("language: ${MarvelUniverse_Config.language}") println("id: ${MarvelUniverse_Config.id}") } } fun main() { MarvelUn...
//! # Raw Sockets for nrfxlib //! //! Generic socket related code. //! //! Copyright (c) 42 Technology Ltd 2019 //! //! Dual-licensed under MIT and Apache 2.0. See the [README](../README.md) for //! more details. //****************************************************************************** // Sub-Modules //********...
import java.util.LinkedList; import java.util.List; import java.util.Queue; import java.util.StringJoiner; public class Operation implements Comparable<Operation> { public java.util.List<Carelessness> failings = null; public int receiveLength = 0; public int marxPubs = 0; public int goingDays = 0; public jav...
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.ledger.participant.state.kvutils.api import akka.NotUsed import akka.stream.scaladsl.Source import com.daml.error.ValueSwitch import com.daml.ledger.api.health.Hea...
--- layout: default title: Bashメジャーバージョンアップで何が変わった? --- # Bashメジャーバージョンアップで何が変わった? Bashが2019年1月7日にメジャーバージョンアップ(5.0)されました。 bash4.0 RC1が2009年1月12日なので10年ぶりのメジャーバージョンアップ。 と言うか10年以上も現役なんて凄いですねw [Bash 5.0 released](https://lwn.net/Articles/776223/)を見るとbugfixと新機能の追加です。 主な変更点は、 ・nameref変数に関するbugfix ・最も注目すべき新機能は、いくつかの...
package database import ( "encoding" "fmt" "github.com/satori/go.uuid" ) var ( ErrNotFound = fmt.Errorf("not found") ) type ID []byte func NewID() ID { id := uuid.NewV4() return ID(id[:]) } func (id ID) String() string { i, _ := uuid.FromBytes(id) return i.String() } type Storable interface { encoding.Bi...
using System; using System.IO; using BitMiracle.LibTiff.Classic; namespace BitMiracle.Tiff2Pdf { class MyErrorHandler : TiffErrorHandler { public override void ErrorHandler(Tiff tif, string module, string fmt, params object[] ap) { using (TextWriter stdout = Console.Out...
using Microsoft.AspNetCore.Mvc; namespace RestWithASP_NET5.Controllers { [ApiController] [Route("[controller]")] public class CalculadoraController : ControllerBase { private readonly ILogger<CalculadoraController> _logger; public CalculadoraController(ILogger<CalculadoraControl...
## Classes <dl> <dt><a href="#BusEvent">BusEvent</a></dt> <dd></dd> <dt><a href="#InvalidParameterGiven">InvalidParameterGiven</a></dt> <dd><p>Invalid Parameter Given exception</p> </dd> <dt><a href="#EventListener">EventListener</a></dt> <dd><p>Create an event listener object used to keep track of the listeners infor...
/** * ***************************************************************************** * Copyright (c) 2016 * * 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/lic...
# Loads a given theme. # # Shares the same syntax as antigen-bundle command. # # Usage # antigen-theme zsh/theme[.zsh-theme] # # Returns # 0 if everything was succesfully antigen-theme () { local name=$1 result=0 record local match mbegin mend MATCH MBEGIN MEND if [[ -z "$1" ]]; then printf "Antigen: Mus...
import json import os from .utils.appdirs import AppDirs try: from yaml import load as yaml_load, dump as yaml_dump, YAMLError except ImportError: useYAML = False else: useYAML = True try: from yaml import CLoader as YAMLLoader, CDumper as YAMLDumper except ImportError: from yaml i...
import { IDimensions } from "./IDimensions"; export interface IPhotoInfo { cameraBrand?: string cameraModel?: string focalLength?: string aperture?: string shutterSpeed?: string iso?: string dimmensions?: IDimensions }
// @flow // How to use // 1 - define a type // > type CheckType = { prop1: SomeType, prop2: OtherType }; // 2 - next line throw error in runtime if type is wrong // > const checkedFormData: CheckType = typeConverter<CheckType>(formData); export function typeConverter<NeededType>(someObject: mixed): NeededType { /...
import Text.Read getNat :: String -> IO Int getNat prompt = do putStr prompt putChar ' ' text <- getLine case readMaybe text :: Maybe Int of Nothing -> invalid Just n -> if n > 0 then return n else invalid ...
use std::string::ToString; use jsrs::prelude::*; fn main() { let input = get_input(); let program = parse_program(&input); println!("{}", program.dump(0)); let mut interpreter = Interpreter::default(); let result = interpreter.run(program); match result { Err(e) => { p...
def cabecalho(txt): print('\033[36m=-'*15) print('PAR OU IMPAR?') print('=-' * 15) def linha(lin): print('--'*20) from random import randint result = par = impar = soma = cont = 0 cabecalho('') while True: jogador = int(input('\033[0mDigite um valor: ')) computador = randint(0, 10) linha('...
package io.github.thachillera.cardsscorekeeper.data.game.boerenBridge.rounds; import java.util.Map; public class FinishedRound { private final RoundData roundData; FinishedRound(RoundData roundData) { this.roundData = roundData; } public Map<Long, Integer> getPredictions() { return r...
import { NestFactory } from '@nestjs/core'; import { ServerModule } from './server.module'; const bootstrap = async () => { const server = await NestFactory.create(ServerModule); server.enableCors({ origin: (origin, callback) => { console.log('🚀 ~ origin', origin); callback(null, true) }, })...
#!/bin/bash -ex # Releases tribulations.min.js to the Github page # Compiles, minifies, runs tests, then commits it to the gh-page RELEASE="tribulations.min.js" grunt git checkout gh-pages cp "dist/$RELEASE" . # Don't commit if no diff if [[ ! -z $(git diff "$RELEASE") ]]; then git reset # Make sure no extraneou...
# install https://github.com/splitsh/lite git remove add parsekit-semver git://... ~/bin/splitsh-lite --prefix=src/Parsekit/Component/Semver/ --target=heads/parsekit-semver git push parsekit-semver parsekit-semver:master
using System.Globalization; using System.Runtime.Serialization; namespace NGeo.GeoNames { [DataContract] public class AlternateName { [DataMember(Name = "name")] public string Name { get; internal set; } [DataMember(Name = "lang")] public string Language { get;...
class RegistrationsController < Devise::RegistrationsController protected # The path used after sign up. You need to overwrite this method # in your own RegistrationsController. def after_sign_up_path_for(resource) @user = current_user '/users/update_profile/' end def after_inactive_sign_up_path_f...
module Csscss Declaration = Struct.new(:property, :value, :parents) do def self.from_parser(property, value, clean = true) value = value.to_s property = property.to_s if clean value = value.downcase property = property.downcase end new(property, value.strip) end ...
package com.jcaique.dialetus.data.responses import kotlinx.serialization.Serializable @Serializable internal data class DialectResponse( val slug: String, val dialect: String, val meanings: List<String>, val examples: List<String> )
import 'package:didomi_sdk_example/widgets/initialize_small.dart'; import 'package:didomi_sdk_example/widgets/set_log_level.dart'; import 'package:didomi_sdk_example/widgets/setup_ui.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; void main() => runApp(SampleForSetupUITestsApp()...
import { Spinner } from "./messageStyles"; export const Message = () => { return <Spinner />; };
<?php // vim: set ai ts=4 sw=4 ft=php: // // License for all code of this FreePBX module can be found in the license file inside the module directory // Copyright 2006-2014 Schmooze Com Inc. class PruneHistory { private $db = false; private $dash = false; private $periods = array('MINUTES' => 60, 'HALFHR' => 1800,...
package main import ( "flag" "fmt" "log" "net" "net/http" "github.com/sirait/boltgrpc" "google.golang.org/grpc" ) func main() { // get flags path := flag.String("db", "bolt.db", "db file path") grpcPort := flag.String("grpcport", "9090", "grpc port") httpPort := flag.String("httpport", "9091", "http por...
/** * Handle input events for the matrix and toolbar. * @typedef N2UserInterface * @property {N2Diagram} n2Diag Reference to the main diagram. * @property {N2TreeNode} leftClickedNode The last node that was left-clicked. * @property {N2TreeNode} rightClickedNode The last node that was right-clicked, if any. * @pr...
<?php namespace Modules\Payments\Http\Controllers; use Illuminate\Contracts\Support\Renderable; use Illuminate\Routing\Controller; use Modules\Payments\Entities\Payment; class PaymentsController extends Controller { /** * Display a listing of the resource. * @return Renderable */ public funct...
/* * \file typeid.cc * \desc The typeid utility. */ #include "blaze/common/typeid.h" #include <cxxabi.h> namespace blaze { std::string Demangle(const char* name) { int status; auto demangled = ::abi::__cxa_demangle(name, nullptr, nullptr, &status); if (demangled) { std::string ret; ret.assign(demang...
package seu.vczz.ac.util; import org.apache.commons.lang3.StringUtils; /** * CREATE by vczz on 2018/5/28 * 计算部门层级,其实在数据库中属于冗余字段,主要是加速部门的递归查询,直接通过层级可以直接查询部门信息 */ public class LevelUtil { //根级目录是0 public static final String ROOT = "0"; //层级之间分隔符 private static final String SEPARATOR = "."; /** ...
#!/bin/sh # Copyright (C) 2017, iZotope, Inc. All Rights Reserved # Released under the BSD-3 license (see COPYING.BSD-3) if ! fsck-partition -l data; then # Set an error echo "Gamut data partition corrupted. Uh oh!" fi if ! fsck-partition -l firmware; then echo "Firmware partition corrupted. Reformatting it." gam...
$dateSinceLastCommitToMaster = git log master -1 --format=%ct. $output = git log --after=$dateSinceLastCommitToMaster --grep="feat!" --grep="fix!" --grep="refactor!" if (!$output) { return "No breaking change from backend" } else { return "Backend change to be merged to prod" }
/* * c7event/fsm.hpp * * Copyright (c) 2021 ccldaout@gmail.com * * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php * * Google spreadsheets: * (Nothing) */ #ifndef C7_EVENT_FSM_HPP_LOADED__ #define C7_EVENT_FSM_HPP_LOADED__ #include <c7common.hpp> #include <c...
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { UsersService } from '../users/users.service'; import { User } from '../users/user.entity'; const md5 = require('md5'); @Injectable() export class AuthService { constructor( private userService: ...
/* * Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved. * * 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...
<?php /** * Mongo service class * * PHP version 5 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @package ResqueBoard * @subpackage ResqueBoard.Lib.Service * @author Wan Qi Chen <kami@kamisama.me> * @copyright 2012-2013 Wan Qi Chen * @link ...
# World Muncher An FOSS World Building program made with Electron. Download the [latest release](https://github.com/digiwombat/WorldMuncher/releases). Fork it, fix it, do whatever. I'll gladly roll in code changes. There is no ideological or political stance requirement to contribute to this project. There is [no ...
import { ResponseData } from './ResponseData'; /** * A function to be run once an Interview's complete() method has been called with the response data. */ export type CompletedCallback = (result: ResponseData) => void;
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { SharedModule } from '../../shared/shared.module'; import { AdminComponent } from './admin.component'; import { AdminRouting } from './admin.routing'; import { BroadcastAddComponent } from './broadc...
import 'package:automated_testing_framework/automated_testing_framework.dart'; import 'package:automated_testing_framework_plugin_strings/automated_testing_framework_plugin_strings.dart'; class TestStringsHelper { /// Registers the test steps to the optional [registry]. If not set, the /// default [TestStepRegist...
/** * @file sedml-script-namespace.h * @brief Defines C++ namespace of libphraSEDML * @author Lucian Smith, from Akiya Jouraku * */ #ifndef SEDMLSCRIPT_NAMESPACE_H #define SEDMLSCRIPT_NAMESPACE_H 1 /* * * The idea of the following marcors are borrowed from * Xerces-C++ XML Parser (http://...
<?php /** * This file is part of here * * @noinspection PhpUnused * * @copyright Copyright (C) 2020 Jayson Wang * @license MIT License * @link https://github.com/wjiec/here */ namespace Here\Model; use Bops\Exception\Framework\Mvc\Model\ModelSaveException; use Bops\Mvc\Model; /** * Class Field * * ...
// Copyright 2016-2018 Doug Moen // Licensed under the Apache License, version 2.0 // See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0 #ifndef CURV_SCANNER_H #define CURV_SCANNER_H #include <vector> #include <curv/script.h> #include <curv/token.h> #include <curv/frame.h> namespace curv { ...
The autocomplete is a normal text input enhanced by a panel of suggested options. ### Simple autocomplete Let's assume you're using the `formControl` directive from `ReactiveFormsModule` to track the value of the input. > Note: It is possible to use template-driven forms instead, if you prefer. We use reactive forms...
# AI_Chatbot_of_BIT Project structure |-- 1 .idea |-- 2 _pycache_ |-- 3 face_detection(存放人脸检测部分代码) |-- _pycache_ |-- test.py(人脸检测主文件) |-- 4 jieba_test(存放文字、语音相互转换文件) |-- pyaudio_test |-- _pycache_ |-- recorad_fun.py(音频录制主文件) |-- txt_speech.py(文字转语音主文件(百度云版本,未使用)) ...
package compose.icons.cssggicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter import...
/* * FetchAndAddPerf.h * * Created on: 01.03.2020 * Author: lthostrup */ #ifndef FetchAndAddPerf_H_ #define FetchAndAddPerf_H_ #include "../utils/Config.h" #include "../utils/StringHelper.h" #include "../utils/Network.h" #include "../message/MessageErrors.h" #include "../thread/Thread.h" #include "../rdma/...
<?php namespace Xmarket\Http\Controllers; use Illuminate\Http\Request; class ServiceController extends BaseController { // }
/* * Copyright 2020 Alexandros Schillings * * 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...
# frozen_string_literal: true require "rails_helper" describe People::SettingsPolicy do describe "permissions" do include_context "policy permissions" let(:record) { community } permissions :index?, :show?, :edit?, :update? do it_behaves_like "permits admins but not regular users" end p...