text
stringlengths
27
775k
# KE Homes #### Author Antony Mburia Shalyn Nyakea Marial Lugare Sheina Hamisi Ephraim Mokoba ## Description This is a webapp where tenants can find houses ## Screenshot <img src="images/Screenshot from 2022-01-20 07-07-23.png" alt=""> <img src="images/Screenshot from 2022-01-20 07-07-49.png" alt=""> ## Setup/Install...
#include "Precompiled.h" #include "FileSystem.h" namespace Lumos { }
# frozen_string_literal: true module FingerprintConcern extend ActiveSupport::Concern included do before_action :ensure_fingerprinted end def ensure_fingerprinted cookies[:fp] ||= SecureRandom.uuid end def user_fingerprint cookies[:fp] end end
import { render } from '@testing-library/react' import { Link } from './Link' test('has a href attribute when rendering with linkWrapper', () => { // eslint-disable-next-line jsx-a11y/anchor-has-content const LinkWrapper = (props) => <a {...props} /> const { container } = render( <Link href="https://storyboo...
package logit import ( "testing" ) func TestLogit(t *testing.T) { cfg := Config{ PrintCaller: true, PrintJSON: true, PrintStdout: true, BuiltinFields: map[string]string{ "host_name": "parrot01", }, } err := InitLogs(&cfg) if err != nil { t.Fatal(err) return } name := "jemy" Logger.Info("wha...
package main import "log" /** 三数取中法可以保证每次选取的pivot不是最大值和最小值 避免排序区间一边倒的情况 */ func main() { arr := []int{10, 5, 7, 3, 4, 2, 8} arr1 := []int{10, 5, 7, 3, 4, 2, 8} log.Println("快速排序-递归法(三数取中):", QuickSortV1(arr)) log.Println("快速排序-递归法(三数取中):", QuickSortV2(arr1)) } func QuickSortV1(arr []int) []int { SortV1(arr, 0,...
; ; Copyright © 2013 Sebastian Hoß <mail@shoss.de> ; This work is free. You can redistribute it and/or modify it under the ; terms of the Do What The Fuck You Want To Public License, Version 2, ; as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. ; (ns finj.deprecation-test (:require [finj.depr...
# Logger > 📋🦄 Colorful command-line logger ## Usage ```go package main import ( "github.com/mineway/logger" ) func main() { // Define log directory location logger.SetLogLocation("/var/log/logger") logger.Fatal("Hello world from %s !", "README.md") // Result => [20:10:15][fatal] Hello world from README.md ...
package advent_of_code import scala.util._ @main def day13 = given Day = Day(13) val data = loadData part1 part2 def part1 = given Part = PartA val t = data.split("\n") val d = t(0).toInt val n = t(1).split(',').map(v => Try(v.toLong)).collect { case Success(v) => v} val r = ...
package ratelimit_test import ( "testing" "time" "github.com/thomasbeukema/ratelimit" ) func cleanWhen(id string, lmt *ratelimit.Limiter) bool { /* You are free to implement you own logic in here to decide which Limiter to keep and which to remove. One example could be to check the 'exp' key from a JWT token...
# Base classe of roughly everything. class Object # Method that sets the properties of the object to a value using a Hash of property_name => value # @param properties [Hash{Symbol => Object}] dict of properties with their new value # @return [self] # @author Nuri Yuri def apply_property(properties) commo...
package com.github.christophpickl.kpotpourri.common.io import com.natpryce.hamkrest.assertion.assertThat import com.natpryce.hamkrest.equalTo import org.testng.annotations.Test @Test class IoTest { fun `readFromStdOut - When print a string, Then that string should have been captured`() { val sentToSysOu...
--- title: DjangoWebアプリ開発(はじめてのテスト) date: 2018-01-04T05:00:10.000Z category: Django description: Djangoにおけるテストコードの実装から実行までの手順をご紹介いたします。 tags: ["Django", "Test", "UnitTest"] thumbnail: "./django-logo-positive-e1523125572702.png" hero: "./django-logo-positive-e1523125572702.png" --- # 本レッスンのゴール - Model の単体テストコードを実装し、動か...
# encoding: utf-8 class RubyDocx::Document TEMPLATE = 'document.xml' attr_accessor :children def initialize(children = []) @children = children end def append(block) @children << block end def prepend(block) @children.unshift block end def build doc = Nokogiri::XML(File.read( File...
## 0.2.2 * Bump `filepath` and `wai-middleware-static` upper version bounds
--- layout: post title: "Google despide a otro trabajador después de que accediera a datos privados" category: genbeta --- Es una realidad. Muchos de los usarios que utilizamos los servicios del gigante californiano Google tenemos claro que tienen **acceso a una gran multitud de datos sensibles**. Sólo hay que parar...
name := "primefactorizer" version := "0.1" scalaVersion := "2.12.8" libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6" libraryDependencies += "com.typesafe.play" %% "play-json" % "2.6.11" libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % Test libraryDependencies += "commons-io" % "...
--- --- # Manipulating files and directories ## Where am I? Files and directories are identified by an **absolute path**, which shows how to reach it from the *root directory*. The root directory is identified by `/`. As an example, `/home/benoist` is a directory located in the `home` directory, itself located in t...
/*! * Copyright (c) 2018 by Contributors * * \file src/tvm/relay/pass/fuse_ops.cc * * \brief This is a backend-aware optimization pass. * Fuse necessary ops into a single one. */ #include <tvm/ir_operator.h> #include <tvm/relay/pass.h> #include <tvm/relay/expr_functor.h> namespace tvm { namespace relay { // ...
import { Inject, Injectable } from '@angular/core'; import { Headers, Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { API_URL } from './api-url.config'; import { OptResponse } from './response.model'; import { OptEntity } from './entity.model'; import { OptAuthService } from './auth.servi...
use std::env; use std::ffi; use std::fs; use std::io; use std::path; use std::collections::HashMap; use std::collections::HashSet; use errors::*; use patch; use casync_format; use casync_http::Chunk; use casync_http::ChunkId; use git2; use git2::Repository; use reqwest; pub fn debo(pkg: &str, config: &::Config) -> ...
package com.sygic.travel.sdk.utils import java.text.SimpleDateFormat import java.util.Date import java.util.Locale import java.util.TimeZone internal object DateTimeHelper { private val timezone = TimeZone.getTimeZone("UTC") private val outDateTimeFormatTz = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US) ...
# Como desplegar el dashboard 1) Instale el dashboard en el Cluster 2) cree el rol de administrador 3) Obtenga el token del administrador 4) Levante el kube proxy 5) Ingrese a la url en localhost:8081 6) Seleccione la opcion de ingresar con el token # Instalación del servicio de metricas para el dashboard. 1) clone e...
var detects = { paste: [], timer: 0, interval: null }; function onPaste(e) { var tagName = e.target.tagName; var name = $(e.target).attr('name'); detects.paste.push({ name: name, tag: tagName }); } function startTimer() { detects['interval'] = setInterval(function () { ...
using System; namespace Oqtane.Models { /// <summary> /// Basic create/edit information - used in many objects. /// </summary> public interface IAuditable { /// <summary> /// Username of the creator of this Object. /// </summary> string CreatedBy { get; set; } ...
#!/bin/bash # # SUBTITLE DOWNLOADER # # By Fahad Ahammed # # WEB: www.fahad.space # # # # https://github.com/obakfahad/yifisubtitledownloader # # # # # # RANDOM rand1=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 5 | head -n 1) rand2=$(date +%H%M%S) rand3=$(echo "$rand1""$rand2") folder=$(echo /tmp/"$rand3") # C...
/* Copyright (c) 2018-2019 Board of Trustees of Leland Stanford Jr. University, all rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice,...
package com.tajmoti.tulip.ui.player.helper import android.content.Context import android.media.AudioAttributes import android.media.AudioFocusRequest import android.media.AudioManager import android.os.Build import androidx.annotation.RequiresApi import com.tajmoti.libtulip.ui.player.VideoPlayer @RequiresApi(Build.VE...
import { shallowMount } from '@vue/test-utils'; import { CardSection } from '../index'; const shallowWrap = propsData => shallowMount(CardSection, { propsData }); describe('CardSection', () => { it('is a valid vue component', () => { expect(CardSection).toBeAComponent(); }); it('matches the snapshot', () =...
import pytest, jwt, time from .utils import reset_config from fastapi_jwt_auth import AuthJWT from fastapi import FastAPI, Depends from fastapi.testclient import TestClient @pytest.fixture(scope='function') def client(): app = FastAPI() @app.get('/protected') def protected(Authorize: AuthJWT = Depends()):...
import React from "react" import { RecoilRoot } from "recoil" import { ThemeProvider } from "./ThemeContext" import GlobalStyles from "./GlobalStyles" function App({ children }) { return ( <RecoilRoot> <ThemeProvider> <GlobalStyles /> {children} </ThemeProvider> </RecoilRoot> )...
package com.mojang.minecraft.gui; import com.mojang.minecraft.Minecraft; import com.mojang.minecraft.gui.Button; import com.mojang.minecraft.gui.FontRenderer; import com.mojang.minecraft.gui.Screen; import java.util.ArrayList; import java.util.List; import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mous...
use warnings; use strict; use IbexFarm::DeployIbex; deploy( name => "Foo", hashbang => "/bin/py", external_config_url => "http://localhost:3000/config", pass_params => 1, www_dir => "/tmp/www" );
require File.expand_path('../../test_helper', __FILE__) require File.expand_path('../../fixture_setup', __FILE__) AutoHtml.add_filter(:foo) do |text| nil end AutoHtml.add_filter(:bar) do |text| "bar" end class User < ActiveRecord::Base auto_html_for :bio do foo foo bar end end class FilterTest <...
package world import "github.com/herb-go/uniqueid" const AliasFlagEnabled = 1 const AliasFlagKeepEvaluating = 8 const AliasFlagIgnoreAliasCase = 32 const AliasFlagOmitFromLogFile = 64 const AliasFlagRegularExpression = 128 const AliasFlagExpandVariables = 512 const AliasFlagReplace = 1024 const AliasFlagAliasSpeedWal...
/// Access to known cities in Bhutan and their meta data. /// /// NOTICE: This file is auto-generated and should not be changed manually. import '../base.dart'; /// The 24 cities of `🇧🇹 Bhutan` const City bhutanBumthangDistrictJakar = City( id: 15709, parentId: 240, name: "Jakar", longitude: 90.7525...
#!/bin/bash CURL='/usr/bin/curl' CURL_ARGS="-f -s -S -k" # Do we have an HTTP auth to use in the URL? if [[ -z "${AUTH_USERNAME}" ]]; then HTTP_AUTH='' else HTTP_AUTH="${AUTH_USERNAME}:${AUTH_PASSWORD}@" fi CRON_HTTP="https://${HTTP_AUTH}${CONNECT_DOMAIN}/cron/${CRON_HASH}" # curl the URL $CURL $CURL_ARGS $CRON...
# URL-Categorization-Top-10-million-Domains ## This project is no longer continued, Fork this if you want to continue.
require_relative "../test_helper" module SemanticLogger module Formatters class DefaultTest < Minitest::Test describe Default do let(:log_time) do Time.utc(2017, 1, 14, 8, 32, 5.375276) end let(:level) do :debug end let(:log) do log ...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:ecomm/cart/data/model/cart_product.dart'; import 'package:ecomm/data/sharedprefs/constants.dart'; import 'package:shared_preferences/shared_preferences.dart'; class CartRepository { final firestore = FirebaseFirestore.instance; final userColle...
// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. library mysql_client.test; import "dart:async"; import 'package:mysql_client/mysql_client.dart'; Future main() async { await testMySqlClient(); } Future te...
# frozen_string_literal: true class HesaCollectionRequest < ApplicationRecord enum state: { import_failed: 0, import_successful: 1 } class << self def next_from_date current_collection_ref = Settings.hesa.current_collection_reference latest_request = where(collection_reference: current_collection_...
package statement import ( "testing" "github.com/amyjzhu/mutation-framework/test" ) func TestMutatorRemoveTimeout(t *testing.T) { test.Mutator( t, MutatorTimeout, "../../testdata/statement/remove_timeout_many.go", 4, ) test.Mutator( t, MutatorTimeout, "../../testdata/statement/remove.go", 0, )...
// // SENAC BCC PI 2 // Projeto Betelgeuse #include <stddef.h> #include <stdio.h> #include "mainMenuScene.h" #include "splashScene.h" #include "reportScene.h" #include "creditsScene.h" // Forward declarations char* menuOptionsDatasource(Game *game, int option); void menuCallback(Game *game, int choosenOption); // Sc...
var ruta=document.querySelector("[name=route]").value; var urlEscuelas = ruta + '/apiEscuela'; new Vue({ http:{ headers:{ 'X-CSRF-TOKEN':document.querySelector('#token').getAttribute('value') }, }, el:"#escuelas", created:function(){ this.getEscuelas(); }, data:{ escuelas:[], id_escuela:'', nombre...
// Package queries provides a nice wrapper to keep SQL *mostly* out of Go package queries var queries = make(map[string]string) func init() { addUserQueries() addBoardQueries() addPostQueries() addCommentQueries() } // Get returns the named query func Get(queryName string) string { return queries[queryName] } ...
using System; namespace Task_05 { /// <summary> /// Task 05. Anonymous Downsite (Result: 90/100) /// </summary> class Program { static void Main(string[] args) { // Входни данни int n = int.Parse(Console.ReadLine()); int key = int.Pars...
use anyhow::Error; use rusync::console_info::ConsoleProgressInfo; use rusync::sync::SyncOptions; use rusync::Syncer; use std::path::PathBuf; use std::process; use structopt::StructOpt; #[derive(Debug, StructOpt)] #[structopt(name = "rusync")] struct Opt { #[structopt( long = "no-perms", help = "Do ...
pub mod ap; pub(crate) mod communication_interface; pub(crate) mod core; pub mod dp; pub mod memory; pub use communication_interface::{ ArmChipInfo, ArmCommunicationInterface, ArmCommunicationInterfaceState, DAPAccess, DapError, }; pub use communication_interface::{PortType, Register}; pub use self::core::m0; pub...
package com.typedpath.iam2kotlin.resources.batch import com.typedpath.iam2kotlin.IamPolicy class BatchAction() { companion object { val All = IamPolicy.Action("batch:*") // see http://docs.aws.amazon.com/batch/latest/APIReference/API_CancelJob.html // Cancels jobs in an AWS Batch ...
use miniquad::*; use macroquad::prelude::*; use macroquad::window::InternalGlContext; // use nona::widgets::{Widget, Button}; use nonaquad::nvgimpl as nvgimpl; use nona::{Point, Paint}; use std::time::Instant; struct Stage<'a> { renderer: Option<nvgimpl::Renderer<'a>>, nona: nona::Context<nvgimpl::Renderer<'a>...
'use strict'; module.exports = function (sequelize, DataTypes) { var QuestionAnswer = sequelize.define('questionAnswer', { id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true }, name: { type: DataTypes.STRING, allowNull: false, validate: { len:...
#!/usr/bin/env bash # # Builds and uploads sample apps to S3 on release build only. scripts/install-s3.sh scripts/deploy-android-sdk-sample-app.sh scripts/deploy-places-api-sample-app.sh scripts/deploy-mapzen-sample-app.sh
import React, { Fragment, memo, useState, useEffect, useCallback } from 'react'; import { getVisibility } from '../utils'; import { containerCx } from '../styles'; interface DeferFrameProps { id: string; enabled?: boolean; children: React.ReactChild | null; placeholder?: React.ReactChild | null; onLoad?: (ts...
// Copyright John McFarlane 2015 - 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file ../LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <sg14/bits/limits.h> #include <sg14/auxiliary/numeric.h> #include <sg14/bits/common.h> ...
import { useState, useEffect } from "react"; import Plot from "react-plotly.js"; import CustomCard from "../../utils/customCard"; import { PacketsOrigin, getPacketsOrigin } from "../../../utils/api/packets"; type OriginSuspisciousPacketsWidgetProps = { style?: { className?: string; }; }; /** * The OriginSu...
<?php Route::group(['prefix' => 'admin'],function (){ Route::get('login', 'Admin\LoginController@showLoginForm')->name('admin.login'); Route::post('login', 'Admin\LoginController@login')->name('admin.login.post'); Route::get('logout', 'Admin\LoginController@logout')->name('admin.logout'); Route::group...
# frozen_string_literal: true require File.expand_path('../test_helper', File.dirname(__FILE__)) require File.expand_path('./dog', File.dirname(__FILE__)) if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3.0') class CollectorsCoverageTest < Test::Unit::TestCase attr_accessor :coverband def setup ...
You can find my website at this link below: [Github page](https://yassinhc.github.io/)
```tsx {10-16} class Example { @State() value = 50; private onValueChange(event: CustomEvent<number>) { this.value = event.detail; }; render() { return ( <VimeSlider label="Volume" step={5} max={100} value={this.value} onVValueChange={this.onValueChange.bi...
package org.apache.maven.plugins.changes; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Li...
namespace VRChat.Environments { public enum NotFoundBehavior { Ignore, Throw } }
package types import "time" // Token model. type Token struct { ID string `json:"id" yaml:"id"` Token string `json:"token" yaml:"token"` Name string `json:"name" yaml:"name"` CreatedAt time.Time `json:"createdAt" yaml:"createdAt"` } // Tokens paginated list. type Tokens struct { Items ...
mkdir -p ../res ./main -search-trec ../tw-index ../data/04topics.701-750 \ | tee ../res/04.txt ./main -search-trec ../tw-index ../data/05.topics.751-800 \ | tee ../res/05.txt ./main -search-trec ../tw-index ../data/05.np_topics.601-872.final \ | tee ../res/05.np.txt ./main -search-trec ../tw-index ../data/06....
#!/bin/bash -eux # TODO not tested OR added as a script to the box-config.json # Spark 2.4.5 for Hadoop 2.7 # https://spark.apache.org/downloads.html # for the same reason as Cassandra, not getting 3.0 # NOT TESTED echo "now getting spark 2.4.5" curl "https://www.apache.org/dyn/closer.lua/spark/spark-2.4.5/spark-2.4....
using DG.Tweening; using UnityEngine; using Yarn.Unity; public class RocketSky : MonoBehaviour { private float _yStart; private int _currentDelta; private void Start() { _yStart = transform.position.y; } [YarnCommand("move")] public void MoveCharacter(string destinationName) { ...
module StackDeploy.Template ( Name , Provider , Template(..) , encode , get , mk , mkName , testTree ) where import Data.Ord (compare) import StackDeploy.Prelude import System.FilePath ((<.>), (</>)) import qualified Data.Aeson.Encode.Pretty as Pretty import qualified Data.ByteString.Lazy as LBS...
package typingsSlinky.polished import typingsSlinky.polished.styleMod.Styles import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object retinaImageMod { @JSImport("polished/li...
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
--- title: 弾丸ブリュッセル観光(後編) date: 2018-09-30 14:52 categories: ドイツ留学 旅行 ベルギー --- ## どたばたの午後 それではドタバタの後編です! ### ビールを求めて 美術館散策の後,ビールのお店に入り購入. 世界一魔性を秘めたビールと称される Duvel ビールを頂きました,今まで飲んだことがないような香りと味でしたね…なんとも表現が難しいです,美味しかった. <img src="/posts/20180930_arrive_at_brussels_part2/beer.jpg"> ### グランプラスはいいぞ 世界遺産であるグランプラスの散策を行い...
package us.xingkong.user.api.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * @Author: Icharle * @Date: 2019-08-01 14:24 */ @Getter @AllArgsConstructor public enum WechatScopeEnum { SNSAPI_BASE("snsapi_base", "微信公众平台静默登录方式"), SNAAPI_USERINFO("snsapi_userinfo", "微信公众平台弹出授权方式"), S...
package LeetCode.数学 /** * @Author Aqinn * @Date 2021/6/11 10:25 上午 */ /** 题目描述: 二进制手表顶部有 4 个 LED 代表 小时(0-11),底部的 6 个 LED 代表 分钟(0-59)。 每个 LED 代表一个 0 或 1,最低位在右侧。 给你一个整数 turnedOn ,表示当前亮着的 LED 的数量,返回二进制手表可以表示的所有可能时间。你可以 按任意顺序 返回答案。 小时不会以零开头: 例如,"01:00" 是无效的时间,正确的写法应该是 "1:00" 。 分钟必须由两位数组成,可能会以零开头: 例如,"10:2" 是无效的时间,正确的...
package com.quickblox.sample.videochat.kotlin.fragments import android.content.Context import android.os.Bundle import android.util.Log import android.view.* import android.widget.TextView import androidx.core.content.ContextCompat import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager impo...
<?php ini_set('date.timezone','Asia/Shanghai'); error_reporting(E_ERROR); require_once "lib_new/WxPay.Api.php"; function printf_info($data) { foreach($data as $key=>$value){ echo "<font color='#f00;'>$key</font> : $value <br/>"; } } $data=array(); if(isset($_REQUEST["transaction_id"]) && $_REQUEST["tr...
package com.example.mrokey.besttrip.company import com.example.mrokey.besttrip.entities.Company import com.example.mrokey.besttrip.entities.Vehicle import com.google.firebase.database.* class CompanyPresenter(internal var view: CompanyContract.View) : CompanyContract.Presenter { private var mReference: DatabaseR...
A6_Header: sHeaderInit ; Z80 offset is $D413 sHeaderPatch A6_Patches sHeaderTick $01 sHeaderCh $01 sHeaderSFX $80, $C0, A6_PSG3, $1F, $05 A6_PSG3: sNoisePSG $E7 sVolEnvPSG v16 ssModZ80 $01, $01, $F0, $17 dc.b nD4, $03, $03, $03, $03, $04 sStop A6_Patches:
--- layout: post header: Arsenal 3-1 Juventus date: 2001-12-04 categories: champions-league video: NLO1LwUiPz0 summary: "Arsenal beat a strong Juventus side with a double from Freddie Ljungberg" excerpt: "Arsenal beat a strong Juventus side with a double from Freddie Ljungberg" title: Arsenal 3-1 Juventus redirect_from...
namespace DeepSleep.OpenApi { using Microsoft.OpenApi.Models; using System.Threading.Tasks; /// <summary> /// /// </summary> public interface IDeepSleepOasGenerator { /// <summary>Generates the specified information.</summary> /// <returns></returns> Task<OpenApiDo...
// Copyright 2020 Paul Greenberg greenpau@outlook.com // // 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 applica...
import { GLYPHS } from "../components/Icon.jsx"; import { canvasRendererFactory } from "./view/CanvasRenderer"; import createActions from "./actions"; import { connectWorldview, connectCanvas, connectControlPane, connectStatusBar, connectMetadataViewer } from "./connect"; import { default as lifeRe...
export declare enum RecurrencePatternEnum { rpNone = "rpNone", rpDaily = "rpDaily", rpWeekly = "rpWeekly", rpMonthly = "rpMonthly", rpAnnually = "rpAnnually" } //# sourceMappingURL=RecurrencePatternEnum.d.ts.map
package handler import ( "fmt" "net/http" "github.com/gin-gonic/gin" "github.com/keptn/keptn/shipyard-controller/models" ) type IEvaluationHandler interface { CreateEvaluation(context *gin.Context) } type EvaluationHandler struct { EvaluationManager IEvaluationManager } func NewEvaluationHandler(evaluationMa...
using System.Windows; using frontend.CustomControls; using Microsoft.Win32; namespace frontend.API { public class UserInteractionService: IUserInteractionService { public string ShowSaveDialog(string filter="PDF file (*.pdf)|*.pdf") { SaveFileDialog saveFileDialog = new SaveFileDia...
#!/bin/bash gunicorn app:server --bind=0.0.0.0:8000 --timeout=300
package routes import ( "github.com/gin-gonic/gin" "github.com/linkc0829/go-icsharing/internal/db/mongodb" "github.com/linkc0829/go-icsharing/internal/handlers" "github.com/linkc0829/go-icsharing/internal/handlers/gqlclient" "github.com/linkc0829/go-icsharing/pkg/utils" ) func RestAPI(cfg *utils.ServerConfig, r ...
import socketio from 'socket.io'; // Connect Socket export const ConnectionToSocket = (server) => { const io = socketio(server); return ( io.on('connection', (socket) => { console.log('se conectaron al socket', socket.id); socket.emit('login', { id: socket.id, }); socket.on('en...
import { Iterator } from "../../classes/iterator"; export declare abstract class AbstractIterable<E> implements Iterable<E> { [index: number]: E; abstract forEach(action: (item: E, index: number, collection: Iterable<E>) => void): void; abstract iterator(): Iterator<E>; [Symbol.iterator](): IterableIter...
import React, { useState, useRef } from 'react'; import './styles.css'; import { useSpring, animated } from 'react-spring'; import onClickOutside from "react-onclickoutside"; import { useLanguage } from '../../hooks/useLanguage'; import { NavLink } from 'react-router-dom'; import { GoThreeBars } from 'react-icons/go'...
import { assign as lodashAssign } from 'lodash'; import { CHANGE_STATE, TOGGLE_ON_OFF, CHANGE_VALUE, CHANGE_MODE } from './constants'; export const initialCompareState = { active: false, isCompareA: true, mode: 'swipe', value: 50, activeString: 'active', bStatesInitiated: false }; export function co...
require File.dirname(__FILE__) + '/../../spec_helper' require 'matrix' describe "Matrix#clone" do before(:each) do @a = Matrix[[1, 2], [3, 4], [5, 6]] end it "returns a shallow copy of the matrix" do b = @a.clone @a.should_not equal(b) b.class.should == Matrix b.should == @a 0.upto(@a....
// Copyright 2013-2015 go-diameter authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package avp // AVP Flags. See section 4.1 of RFC 6733. const ( Pbit = 1 << 5 // The 'P' bit, reserved for future use. Mbit = 1 << 6 // The 'M' bit,...
# -*- coding: utf-8 -*- """ @author: 猿小天 @contact: QQ:1638245306 @Created on: 2021/6/3 003 0:30 @Remark: 用户管理 """ import hashlib from django.contrib.auth.hashers import make_password from rest_framework import serializers from dvadmin.system.models import Users from dvadmin.utils.json_response import SuccessResponse...
require "rails_helper" describe "admin/users" do before do @admin_user = FactoryGirl.create(:admin_user) login_as(@admin_user, :scope => :admin_user) end describe "GET index page" do context "authenticated admin_user" do it "should render users index page" do 2.times { FactoryGirl.cre...
package kpn.server.repository import kpn.core.database.Database import kpn.core.database.views.planner.GraphEdgesView import kpn.core.planner.graph.GraphEdge import kpn.shared.NetworkType import org.springframework.stereotype.Component @Component class GraphRepositoryImpl(analysisDatabase: Database) extends GraphRepo...
namespace FFXIVClientStructs.FFXIV.Client.Game.Control; [StructLayout(LayoutKind.Explicit, Size = 0x8)] public unsafe partial struct InputManager { [MemberFunction("E8 ?? ?? ?? ?? 3A C3 74 0C", IsStatic = true)] public static partial bool IsAutoRunning(); }
--- layout: project_single title: "Colorado!! Honeymoon location:))" slug: "colorado-honeymoon-location" parent: "honeymoon-home" --- Colorado!! Honeymoon location:))
package com.actionForm; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionMapping; import javax.servlet.http.HttpServletRequest; public class PublishingForm extends ActionForm { private String isbn; private String pubname; publi...
/* * Copyright 2013 Valery Lobachev * * 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 agreed...
// Base reporter for all Reporters. Handles generic tasks as well as adding a few string trimming functions // (c) 2011 Matthew Kitt // Set the name, plus passing and failing messages var Reporter = module.exports = function Reporter() { this.name = 'Reporter' this.passed_message = 'passed' this.failed_message ...
<?php declare(strict_types=1); namespace B24io\Loyalty\SDK\Bitrix24\Contacts\DTO; use B24io\Loyalty\SDK\Users\DTO\UserId; use B24io\Loyalty\SDK\Users\DTO\Email; use libphonenumber\PhoneNumber; /** * Class Contact * * @package B24io\Loyalty\SDK\Bitrix24\Contacts\DTO */ class Contact { /** * @var UserId|...