text
stringlengths
27
775k
#nullable enable using Robust.Shared.Prototypes; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Shared.Roles { /// <summary> /// Describes information for a single antag. /// </summary> [Prototype("antag")] public class AntagPrototype ...
#! /usr/bin/env bats # # This file provides negative test cases for when the user does not execute # upgrade steps in the correct order after starting the hub. load helpers setup() { STATE_DIR=`mktemp -d` export GPUPGRADE_HOME="${STATE_DIR}/gpupgrade" gpupgrade prepare init --old-bindir /dummy --new-bindi...
<?php namespace App\Deposito; use App\Deposito\Empregado; use Illuminate\Database\Eloquent\Model; class Setor extends Model { // Referência à tabela 'sectors'. protected $table = 'sectors'; // Define 'name' como chave primária. protected $primaryKey = 'name'; // Determina que a chave primária nã...
import {NavigationContainer} from '@react-navigation/native'; import React, {useEffect} from 'react'; import {View} from 'react-native'; import {Provider} from 'react-redux'; import {PersistGate} from 'redux-persist/lib/integration/react'; import App from 'src/App'; import {persistor, store} from 'src/store'; import Na...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; using Arcus.Templates.AzureFunctions.Http.Model; using Arcus.Templates.Tests.Integration.Fixture; using Bogus; using Xunit; using Xunit.Abstractio...
cask 'hackhands' do version '1.4.11' sha256 '638d4726d721592b4147403402b4b51bcdc848621f83d665320c03d44457c616' # desktop.hackhands.com.s3-website-us-west-1.amazonaws.com was verified as official when first introduced to the cask url "http://desktop.hackhands.com.s3-website-us-west-1.amazonaws.com/osx/#{version...
// @flow import * as React from "react"; import styled, { css } from "styled-components"; import { ModalContext } from "./ModalContext"; import { MobileHeader, StyledModalHeader, ModalHeading } from "./ModalHeader"; import { StyledModalFooter } from "./ModalFooter"; import { StyledModalSection } from "./ModalSection";...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.sdk.internal.v8native; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurr...
#!/bin/bash # # This script will install Ansible and then deploy a simple Ceph cluster. # The script relies on the auto osd discovery feature, so we at least expect 2 raw devices # to work properly. set -e if [[ -z $1 ]]; then CEPH_BRANCH_DEFAULT=master else CEPH_BRANCH_DEFAULT=$1 fi CEPH_BRANCH=${CEPH_BRANCH:-$CE...
import os from uuid import UUID from allure_commons.utils import md5 from allure_commons.model2 import StatusDetails from allure_commons.model2 import Status from allure_commons.model2 import Parameter from allure_commons.utils import format_exception def get_step_name(node, step): name = "{step_keyword} {step_na...
<img src="{{ asset('demyhealth/images/logo.png') }}" alt="Logo" class="h-10">
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model("user_model"); $this->load->library('form_validation'); $this->load->library('session'...
@using Blogifier.Core.Data.Models @using Blogifier.Core.Common @model BlogPostsModel @{ var term = ViewBag.Term; var search = "search"; Model.Pager.RouteValue = search + "/" + term + "/"; } <main class="page-search"> <header class="page-cover" style="background-image: url('@Model.CoverImg')"> <...
<ul class="nav" id="side-menu"> <li> <a href="index.php"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a> </li> <li> <a href="data_kategori_barang.php"><i class="fa fa-briefcase fa-fw"></i> Data Kategori Barang</a> </li> <li> <a href="data_barang.php"><i class="fa fa-bri...
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.bumptech.glide.load.model; // Referenced classes of package com.bumptech.glide.load.model: // LazyHeaderFactory, LazyHeaders static final ...
# Foundation Assets [![Bower License][badge_license]](LICENSE.md) [![Bower Package][badge_bower]](https://github.com/ARCANESOFT/foundation-assets) [![Bower Release][badge_release]](https://github.com/ARCANESOFT/foundation-assets) [badge_license]: https://img.shields.io/bower/l/foundation-assets.svg?style=flat-squar...
package es.unizar.eina.notepadv3; import android.database.Cursor; import androidx.test.espresso.action.ViewActions; import androidx.test.rule.ActivityTestRule; import org.junit.After; import org.junit.Rule; import org.junit.Test; import java.util.ArrayList; import java.util.List; import java.util.UUID;...
#include <complex> #include <stdio.h> extern "C" unsigned int mandel_double(double re, double im, unsigned int max_iterations) { std::complex<double> c (re, im); std::complex<double> z (0.0, 0.0); for (unsigned int i = 0; i < max_iterations; i++) { if (std::abs(z) > 2) { return i + ...
package us.ihmc.euclid.tuple2D; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; import static us.ihmc.euclid.EuclidTestConstants.ITERA...
/* * ---license-start * eu-digital-green-certificates / dgca-verifier-app-android * --- * Copyright (C) 2021 T-Systems International GmbH and all other contributors * --- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
CREATE TABLE "SalariesFrance_13"( "col_00" varchar(4) NOT NULL, "col_01" varchar(46) NOT NULL, "col_02" varchar(40), "col_03" varchar(162) NOT NULL, "col_04" varchar(2) NOT NULL, "col_05" varchar(138) NOT NULL, "col_06" decimal(4, 0), "col_07" double, "col_08" decimal(18, 14), "col_09" double, "co...
feature 'testing initialization of server' do scenario 'can run app and visit /' do visit('/') expect(page).to have_content('Current temperature') end end
/** * Copyright 2015 www.alaraph.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 applicable ...
module Swaggerator module Mockers class ActionParamInterceptor attr_reader :callstack def initialize @callstack= [] end # This is one of the few good uses of method_misisng # Overzealous programmers tend to overuse this to show off # Their Reflection skills and make searching for code a pai...
import * as express from "express"; import {isHelpScoutIntegrationEnabled, validateHelpScoutSignature} from "../../middleware"; import { IFormItem, IHelpScoutEmailNotFoundTemplate, IHelpScoutFormItem, IHelpScoutMainTemplate, IUser, User } from "../../schema"; import bodyParser = require("body-parser"); import * a...
#!/bin/bash usage() { cat << EOF Usage: $0 {pdffile|picture [picture]*} outputfile example: $0 test.pdf test.zip $0 *.png env.yml.gz; gzip -d env.yml.gz input linked qrcode pictures or a pdf with linked qrcodes. decode the qrcodes and base32 decode the resulting output. input order of pictures is not relevan...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace EtwStream { // shim of EtwStreamService public static class EtwStreamService { static readonly CancellationTokenSource source = new CancellationToke...
<?php /**************************************************************************************************** * * VIEWS/admin/varios/identidad.php * * Descripci�n: * Vista que muestra la identidad * * Fecha de Creaci�n: * 30/Octubre/2011 * * Ultima actualizaci�n: * 29/Noviembre/2011 * * Autor: * ISC Rogelio ...
export const ADD_CATEGORY_REQUEST = "ADD_CATEGORY_REQUEST"; export const ADD_CATEGORY_SUCCESS = "ADD_CATEGORY_SUCCESS"; export const ADD_CATEGORY_FAILURE = "ADD_CATEGORY_FAILURE"; export const GET_CATEGORIES_REQUEST = "GET_CATEGORIES_REQUEST"; export const GET_CATEGORIES_SUCCESS = "GET_CATEGORIES_SUCCESS"; export cons...
library tool.dev; import 'dart:async'; import 'package:dart_dev/dart_dev.dart' show dev, config; Future<Null> main(List<String> args) async { const directories = const <String>[ 'lib/', 'lib/src/', 'test/unit/', ]; config.format..lineLength = 80; config.analyze ..strong = true ..fatalWar...
package com.raxdenstudios.commons.permissions.model import androidx.annotation.StringRes import com.raxdenstudios.commons.permissions.R sealed class RationaleDialog( @StringRes val reason: Int, @StringRes val reasonDescription: Int, @StringRes val acceptLabel: Int, @StringRes val deniedLabel: Int ) { objec...
'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller, io } = app; router.get('/', controller.home.index); // https://eggjs.org/zh-cn/tutorials/socketio.html // 当服务器收到客户端的addMessage时间之后,会交给addMessage方法来处理 // 向服务器发射一个新的消息,并且让服务器广播给所有的客户端 ...
import { getCenterXCoord, getInnerLeftCoord, getInnerRightCoord, getLeftCoord, getRightCoord, XCoordConfig, } from "./getCoord"; import { FixedPositionOptions, HorizontalPosition } from "./types"; /** * @private */ interface XPosition { left: number; right?: number; width?: number; minWidth?: num...
//! Provide Host I/O operations for the target. use bitflags::bitflags; use crate::arch::Arch; use crate::target::Target; bitflags! { /// Host flags for opening files. /// /// Extracted from the GDB documentation at /// [Open Flags](https://sourceware.org/gdb/current/onlinedocs/gdb/Open-Flags.html#Ope...
// !LANGUAGE: -JvmStaticInInterface // !DIAGNOSTICS: -UNUSED_VARIABLE class A { companion object { @JvmStatic fun a1() { } } object A { @JvmStatic fun a2() { } } fun test() { val s = object { @JvmStatic fun a3() { } } }...
use super::browser_info; use super::*; use alfred::ItemBuilder; use std::io::Write; /// Providing this command with a URL will try to remove the related bookmark from Pinboard. /// If no URL is provided, this command will fetch browser's tab info and show and Alfred item that /// can be used for deletion in next step....
package repo import ( "encoding/json" "fmt" "io/ioutil" "messfar-telegram/domain" "messfar-telegram/util" "net/http" "github.com/pkg/errors" ) type TelgramService struct { URL string BotToken string } func NewTelgramService(URL, botToken string) domain.TelegramService { return &TelgramService{ URL:...
# frozen_string_literal: true module FinnhubServices # ApiError is a generic error that occurs due to an error after a request to finnhub. class ApiError < StandardError def initialize(msg = nil) super end # TooManyRequests is an error that occurs due to too many requests to finnhub. # The u...
<?php namespace Crater\Http\Controllers\V1\Admin\Payment; use Crater\Http\Controllers\Controller; use Crater\Http\Requests\PaymentMethodRequest; use Crater\Http\Resources\PaymentMethodResource; use Crater\Models\PaymentMethod; use Illuminate\Http\Request; class PaymentMethodsController extends Controller { /** ...
import { Scene } from "phaser"; import { GameStatsService } from 'src/app/game-stats.service'; import { Score } from '../domain/score'; export class MainScene extends Scene { private phaserSprite: Phaser.GameObjects.Sprite; private platforms : Phaser.Physics.Arcade.StaticGroup; private player : any;// Phas...
package com.emc.mongoose.api.model.storage; /** Created by andrey on 14.03.17. */ public final class BasicCredential implements Credential { private final String uid; private final String secret; protected BasicCredential(final String uid, final String secret) { this.uid = uid; this.secret = secret; } @O...
from django_otp.oath import TOTP import time class TOTPVerification: def __init__(self, key): # secret key that will be used to generate a token, # User can provide a custom value to the key. self.key = key # counter with which last token was verified. # Next token must be...
:- module(matcher,[functionMatcher/6]). :- use_module(canon). :- use_module(errors). :- use_module(types). :- use_module(misc). :- use_module(location). :- use_module(freevars). :- use_module(terms). :- use_module(transutils). functionMatcher(Lc,Ar,Nm,Tp,Eqns,fnDef(Lc,Nm,Tp,NVrs,Reslt)) :- genVars(Ar,NVrs), makeT...
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; // https://www.hackerrank.com/challenges/crush public class Solution { /* // examples: 1 6 100 2 3 200 answer: 100 300 300 100 100 100 my_answer: 100 200 0 -200 0 0 -10...
package cn.qiuxiang.react.baidumap.modules import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import com.baidu.mapapi.SDKInitializer import com.baidu.mapapi.SDKInitializer.* import com.facebook.react.bridge.* import com.facebook.rea...
;; APPLE LOCAL file v7 support. Merge from Codesourcery ;; ARM instruction patterns for hardware division ;; Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. ;; Written by CodeSourcery, LLC. ;; ;; This file is part of GCC. ;; ;; GCC is free software; you can redistribute it and/or modify it ;; under the t...
#!/bin/bash #Response for bad arguments or unsupported features BADARG='The app you specified does not exist. Check the name again (note: it is case sensitive)' NOARGSUPPORT='This app doesn''t support the '$1' option. Check the readme file for which operations are supported for each app.' eval set -- "$ARGS"; #Nothin...
/* * Copyright 2017 TWO SIGMA OPEN SOURCE, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
package main.java.com.twu.biblioteca.controllers; import main.java.com.twu.biblioteca.models.Customer; import main.java.com.twu.biblioteca.models.Library; import main.java.com.twu.biblioteca.models.User; import main.java.com.twu.biblioteca.views.BibliotecaAppView; import java.util.Scanner; public class BibliotecaApp...
require 'ffi/struct' module FFI module Elf class AuxVec < FFI::Struct TYPES = [ TYPE_NULL = 0, # End of vector TYPE_IGNORE = 1, # Entry should be ignored TYPE_EXECFG = 2, # File descriptor of program TYPE_PHDR = 3, # Program headers for pr...
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { kotlin("jvm") id("com.github.johnrengelman.shadow").version("4.0.3") } tasks.withType<ShadowJar> { classifier = "" } dependencies { compile(kotlin("stdlib-jdk8")) compileOnly("com.fs.starfarer", "starfarer.api", rootProje...
# CREATNG THE APP SERVICE ON AZURE $loc = 'southeastasia' $grp = '07PublishDirectlyDemoRG' $pln = '07Demo-SEA' $appname = 'directlypublishingdemo' az group create --name $grp --location $loc az appservice plan create --name $pln --resource-group $grp --location $loc --sku S1 az webapp create --name $appname --plan $pl...
<?php $hash = geohash_encode(39.4169170000,100.92224000000); $arr = geohash_decode($hash); print_r($arr); $neighbors = geohash_neighbors($hash); var_dump($neighbors); var_dump(geohash_dimension(12)); var_dump(geohash_dimension(5));
package org.whitneyrobotics.ftc.teamcode.subsys; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.DcMotorEx; import com.qualcomm.robotcore.hardware.DcMotorSimple; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.Servo; import org....
#include <stdio.h> int main() { int a,b,c; printf("enter two numberes to be added"); scanf("%a%b",&a,&b); c=a+b; printf("answer is %c"); return 0; }
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod ckraw; pub mod logger; pub use ckraw::{CkRawAttr, CkRawAttrTemplate, CkRawMechanism}; macro_rules! ck_padded_str { ($src:expr, $len: expr) => {{ let mut ret = [b' '; $len]; le...
<?php declare(strict_types = 1); namespace Venta\Routing\Factory; use Venta\Contracts\Container\Invoker; use Venta\Contracts\Routing\Route as RouteContract; use Venta\Contracts\Routing\RouteDispatcher as RouteDispatcherContract; use Venta\Contracts\Routing\RouteDispatcherFactory as RouteDispatcherFactoryContract; use...
package main import ( "configurator/config" "encoding/json" "fmt" "os" //"io/ioutil" "gopkg.in/yaml.v2" ) func main() { stat, err := os.Stdin.Stat() if err != nil { panic(err) } if (stat.Mode() & os.ModeCharDevice) != 0 { fmt.Fprintln(os.Stderr, "Usage: <json> | configurator") os.Exit(1) } fmt.F...
create table if not exists `associations` ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, deal_id VARCHAR(255) NOT NULL, card_id VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ); create table if not exists `mappings` ( id INT NOT NULL ...
# learning Stuff I make for my own learning! IMO, there's some cool stuff too.
#!/bin/bash set -xeuo pipefail usage() { cat <<EOF Usage: $0 <configuration destination> Written by Kamil Cukrowski EOF } if [ $# -eq 0 ] || [ -e "${1:-}" ]; then usage; exit 1; fi; dst=$1 if [ ! -e "$dst/zabbix_agentd.conf" ]; then echo "ERROR: no such file as $dst/zabbix_agentd.conf" exit 1 fi mkdir -p "$d...
@page @using DidacticalEnigma.Mem.Areas.Identity.Pages.Account.Manage @model PersonalDataModel @{ ViewData["Title"] = "Personal Data"; ViewData["ActivePage"] = ManageNavPages.PersonalData; }
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
'use strict'; /** * Home Controller */ var Asset = require('../models/Asset.js'); module.exports.controller = function (app) { app.get('/', function (req, res) { // Okay, okay, use the original video var url = "hMOlNwzqBIk"; res.render('home/home', { url: req.url, showcaseVideo:...
<?php namespace App\Http\Controllers\Client; use App\AnswerSheet; use App\Http\Controllers\Controller; use App\Kid; use App\Level; use App\TestEvaluate; use App\TestResult; use App\Part; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; u...
USE employeetrackerDB; INSERT INTO department (name) VALUES ("Accounting"), ("Human Resources"), ("Sales"), ("Administrative"), ("IT"), ("Legal"); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Abraham', 'Lincoln', 1, 20), ('George', 'Washington', 5, 40), ('John F.', 'Kennedy', 3, 2...
<?php namespace Freeman\LaravelMacros\Macros\CarbonPeriod; use Carbon\Carbon; use Carbon\CarbonPeriod; /** * Count natural weeks in a period, just same as calculate the sundays count. * Assume monday is a week start while sunday is a week end. * * @return string */ class CountWeeks { public function __invok...
--- layout: haiku title: Fur author: crricks --- How did hair get there?<br> An ever present quandry<br> For the wagging tail<br>
package org.pratik; import twitter4j.Status; import java.util.HashMap; import java.util.Map; public class Result { private final int sentimentValue; private final Status status; private String sentimentString; public Result(Status status, int sentimentValue) { this.status = status; t...
<?php require_once 'RequestValidate.php'; require_once 'AES.php'; /** * Version 1.0 */ class TransactionResponseBean { protected $responsePayload = ""; protected $key; protected $iv; protected $logPath = ""; protected $blocksize = 128; protected $mode = "cbc"; ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using X.Core.Utility; namespace X.App.Com { /// <summary> /// 常规配置 /// </summary> public class Config { /// <summary> /// 域名 /// </summary> public string domain { ge...
#!/usr/bin/env bash result="$(df "$1"|tail -1)" used="$(echo "$result"|awk '{print $(NF-3)}')" total="$(echo "$result"|awk '{print $(NF-2)}')" free="$((total - used))" echo "$total $free"
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.vinayaksproject.simpleelasticproject.entity; import com.vinayaksproject.simpleelasticproject.services.EntityListenerServic...
package models import ( "database/sql" "errors" "fmt" "strings" ) type ClientsRepo struct{} func NewClientsRepo() ClientsRepo { return ClientsRepo{} } func (repo ClientsRepo) Find(conn ConnectionInterface, id string) (Client, error) { client := Client{} err := conn.SelectOne(&client, "SELECT * FROM `clients`...
(ns darkexchange.controller.main.main-menu-bar (:require [clojure.contrib.logging :as logging] [darkexchange.controller.actions.utils :as actions-utils] [seesaw.core :as seesaw-core]) (:import [javax.swing JMenuItem JMenu])) (defn attach-main-menu-actions [main-frame] (actions-utils/attac...
using System.Collections.Generic; using System.Collections.ObjectModel; using WpfMath.Platforms; using WpfMath.Rendering; namespace WpfMath.Boxes { // Represents graphical box that is part of math expression, and can itself contain child boxes. public abstract class Box { private List<Box> children...
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Prime.Models.HealthAuthorities { [Table("HealthAuthorityCareType")] public class HealthAuthorityCareType : BaseAuditable { [Key] public int Id { get; set; } public int Health...
package org.nwnx.nwnx2.jvm.constants; /** * This class contains all unique constants beginning with "EVENT_SCRIPT_AREA". * Non-distinct keys are filtered; only the LAST appearing was * kept. */ public final class EventScriptArea { private EventScriptArea() {} public final static int ON_ENTER = 4002; public f...
using System; // Console.WriteLine("Enter two words you might think is are anagrams of one another."); // string s1 = Console.ReadLine(); // string s2 = Console.ReadLine(); // static bool Anagram (string s1, string s2){ // if(s1.Length == s2.Length){ // return true; // } // else{ // ret...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
require 'music_ids/grid' module MusicIds RSpec.describe GRid do context "parsing" do context "well-formed inputs" do let(:expected) { GRid.new('A12425GABC1234002M') } specify { expect(GRid.parse('A1-2425G-ABC1234002-M')).to eq(expected) } specify { expect(GRid.parse('A12425GABC1234...
using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using RoyLab.QData.Demo.Data; using RoyLab.QData.Demo.Model; namespace RoyLab.QData.Demo.Controllers { [Route("api/[controller]")] public class UserController : Controller { private readonly DbContext dbContext; public Us...
use crate::codegen::{OptimizationLevel, TargetProperties}; use inkwell::attribute::AttrKind; use inkwell::builder::Builder; use inkwell::context::Context; use inkwell::module::Module; use inkwell::values::FunctionValue; pub struct BuilderContext<'a> { pub context: &'a Context, pub module: &'a Module, pub f...
import 'dart:convert'; import 'package:meta/meta.dart'; import '../../../core.dart'; import '../../core/errors.dart'; import '../../model/frappe/interfaces.dart'; import '../log.manager.dart'; import 'errors.dart'; /// Class for handling Frappe-specific Logs class FrappeLogManager extends RenovationController implem...
## Start with SCM task Hint: Use the [`git`](https://jenkins.io/doc/pipeline/steps/git/#git-git) step to clone this repository.
package org.jctools.maps; import org.junit.Test; import static org.junit.Assert.assertEquals; public class NBHMReplaceTest { @Test public void replaceOnEmptyMap() { assertEquals(null, new NonBlockingHashMap<String,String>().replace("k", "v")); } @Test public void replaceOnEmptyIdentityMap...
/* * Copyright (c) 2019, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { posix as path } from 'path'; export { isValidRelpath } from 'analyticsdx-templ...
require 'find' require 'fileutils' module Cubist class SourceFilesFinder def initialize(conf:) @conf = conf end def run(relative: false) files = get_files if relative files = files.map { |x| x.gsub(/^#{@conf.cubist_folder_full_path}\//, '') } end files end ...
package com.crazylegend.datastructuresandalgorithms.sort.quickSort /** * The naive partitioning creates a new list on every filter function; this is inefficient. * @receiver List<T> * @return List<T> */ fun <T : Comparable<T>> List<T>.quicksortNaive(): List<T> { if (this.size < 2) return this val pivot = ...
# frozen_string_literal: true module PicoRubeme def self.evaluator Evaluator.new end class Evaluator < Component def eval(obj, env) obj end end end
*+ spi_put_header subroutine spi_put_header( id, info, items, values, status ) C ------------------------------------------------------------ C C Put header information into an internal spectrum file C implicit NONE C C Given: C spectrum identifier integer id C info header bloc...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class woodPackerTargetMove : MonoBehaviour { private void Update() { if(woodPacker.transform.position.x - transform.position.x <= 0) transform.position = Vector3.Slerp(transform.position, target.position,...
package functions import config.paramconf.PreprocessParams import functions.clean.Cleaner import functions.segment.Segmenter import org.apache.spark.ml.Pipeline import org.apache.spark.ml.feature.{CountVectorizer, IDF, StopWordsRemover, StringIndexer} import org.apache.spark.sql.DataFrame /** * Created by yhao on 2...
# frozen_string_literal: true require 'rails_helper' RSpec.feature 'Header Links' do scenario 'When the user is not signed in' do visit root_path within '.navbar' do expect(page).to have_link(I18n.t('devise.shared.links.sign_up'), href: new_user_registration_path, count: 1) expect(page).to have_l...
Ingredienser --- * 1kg kycklingbröstfilé (meh) eller kycklinglårfilé (bäst) * 2st gula lökar * 5dl chili creme fraiche * 3-6 vitlöksklyftor efter egen smak * Olivolja * Curry (högst en hel burk, om du är tokig nog) * Salt * Sweet Chili sås * Chiliflakes * Honung Instruktioner --- 1. Skär upp kycklingen i ätbara bitar ...
package com.alexvanyo.sportsfeed.ui import androidx.recyclerview.widget.DiffUtil import com.alexvanyo.sportsfeed.R import com.alexvanyo.sportsfeed.api.Competition import com.alexvanyo.sportsfeed.databinding.StatisticItemBinding import com.alexvanyo.sportsfeed.util.DataBoundListAdapter class StatisticAdapter : DataBou...
import 'package:flutter/material.dart'; import 'package:sc_credenciamento/pages/cred.page.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'pres.page.dart'; import 'package:splashscreen/splashscreen.dart'; class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: ke...
class ProcPeriodWorker include Sidekiq::Worker sidekiq_options throttle: { threshold: 10, period: Proc.new { |user_id, period| period } } def perform(user_id, period) puts user_id puts period end end
#!/bin/sh echo "Stopping previous session" sh stop.sh > /dev/null mkdir -p data # Creates data folder, if it doesn't exist mkdir -p public/tracks mkdir -p public/thumbnails # Starts a tmux session named "spotyourmusic" and detaches # Starts Redis instance, worker and webserver # (DISABLED) Evenly distribute...
#!/bin/bash echo "Installing ProtonMail Bridge..." brew install protonmail-bridge