text
stringlengths
27
775k
#pragma once #include <main/IPixelContainer.h> #include <vector> namespace directgraph { namespace dx9 { namespace DrawOpType { enum Type { START_TRANSPARENT_DATA, REMOVE_PIXEL_TEXTURE, REMOVE_PATTERN_TEXTURE, SET_FILL_PATTERN, ...
import { useMemo, useState } from 'react' import { useQuery, UseQueryOptions, UseQueryResult } from 'react-query' import useSession from './useSession' export class RequestError extends Error { constructor(public readonly status: number, message: string, public readonly stacktrace?: string[]) { super(message)...
class MeasurementSerializer < ActiveModel::Serializer attributes :id, :units has_one :user has_one :intake end
module Panoptimon module Collector class Socket class Unix < Panoptimon::Collector::Socket def defaults super.merge({ timeout: 5 }) end def get_banner s = UNIXSocket.new(@path) s.puts(query) if query s.readlines.join('')...
# setup Setup the environment on MarkLogic. ## Usage: mlproj setup [what] <what> the specific component(s) to setup ## Description This command makes sure the components exist on MarkLogic in the given environment. Components are: - databases - app servers - MIME types It uses the co...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTbErrorLogTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tbErrorLog',...
package com.jetbrains.edu.scala.sbt import com.intellij.ide.projectView.ProjectView import com.intellij.openapi.application.ModalityState import com.intellij.openapi.externalSystem.importing.ImportSpecBuilder import com.intellij.openapi.externalSystem.model.ExternalSystemDataKeys import com.intellij.openapi.externalSy...
#!/usr/bin/env bats # @file Contains tests that ensure the positional # parameters have been validated properly, when possible load './util/init.sh' @test "error on more than correct 'set' arguments" { local subcmds=(set-string set-array set-object) for subcmd in "${subcmds[@]}"; do declare -A OBJECT=() run ...
score <- function(input) { if ((input[13]) <= (9.724999904632568)) { if ((input[6]) <= (7.437000036239624)) { if ((input[8]) <= (1.4849499464035034)) { var0 <- 50.0 } else { var0 <- 26.681034482758605 } } else { var0 <- ...
import { Injectable } from '@angular/core'; import { Subject , Observable } from "rxjs"; type AlertType = 'success' | 'info' | 'warning' | 'danger'; export interface Alert { type: AlertType, msg: string; autoFadeOut: boolean; } /** * Copyright 2017 Cinovo AG<br> * <br> * * @author psigloch */ @Injectable...
""" Photo model class """ from flickipedia.model.base_model import BaseModel from flickipedia.config import log, schema class UploadsModel(BaseModel): def __init__(self): super(UploadsModel, self).__init__() def get_upload(self, flickr_photo_id): """ Retrieve a photo by its flickr i...
;;; ;;; Copyright (c) 2000-2015, Toshimi Sawada. All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, ...
package dev.sertan.android.videogames.module import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent import dev.sertan.android.videogames.data.service.analytics.AnalyticsService import dev.sertan.android.videogames.data.service.analytics.FirebaseAnalyti...
# js_contagem ##### contagem descrecente com js e css ### [projeto_final](https://hugoresende27.github.io/js_contagem/)
import 'package:cookza/model/entities/abstract/recipe_collection_entity.dart'; import 'package:cookza/model/entities/abstract/recipe_entity.dart'; import 'package:cookza/services/recipe/recipe_manager.dart'; import 'package:cookza/services/flutter/service_locator.dart'; import 'package:cookza/viewmodel/recipe_edit/reci...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace EvilsoftCommons { class StringUtilities { public static string RemoveDiacritics(string text) { if (string.IsNullOrEmpty(text)) return text; v...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Reflection; using LogJoint.UI; using System.Diagnostics; namespace LogJoint.Extensibility { class PluginsManager: IDisposable { readonly List<PluginBase> plugins = new List<PluginBase>(...
package com.anaplan.client.dto; import com.anaplan.client.DataType; /** * Created by Spondon Saha * User: spondonsaha * Date: 6/22/17 * Time: 2:26 AM */ public class ExportMetadata { private int columnCount; private int rowCount; private String exportFormat; private String separator; private ...
export enum SchemaTypes { ENTITY = 'entity', EMBEDDED = 'embedded' } interface PropertyType { type?: string | EntityType<Entity>; column?: string; isRequired?: boolean; } interface Properties { [prop: string]: PropertyType; } // TODO: don't think we need to track non-entity collections // when persisting...
#pragma once #include "common/base.h" #include "common/node.h" #include "common/nodes_manager.h" #include <functional> namespace heap { namespace base { // Memory -- O(N) // Add -- O(1) amortized // Top -- O(1) amortized // Pop -- O(log N) // Union -- O(log N) template <class TTData, class TTCompare =...
<!-- Generated File --> # country ## Columns | Name | Type | NotNull| Unique | Indexed | Default |------------------------------|--------------------|--------|--------|----------|-------------------- | country_id | integer | true | true | true ...
using NuGet; namespace Nuget.Server.AzureStorage.Domain.Services { /// <summary> /// Helps to get azure names. /// </summary> public interface IPackageLocator { /// <summary> /// Gets the name of the container. /// </summary> /// <param name="package">The package.</...
import { TestBed } from '@angular/core/testing'; import { provideMockActions } from '@ngrx/effects/testing'; import { hot } from 'jasmine-marbles'; import { Observable } from 'rxjs'; import { Entity } from '../decorators/entity-decorator'; import { Key } from '../decorators/key-decorator'; import { IEntityError } from...
--- layout: ribbon style: | #Cover h2 { margin:30px 0 0; color:#FFF; text-align:center; font-size:70px; } #Cover p { margin:10px 0 0; text-align:center; color:#FFF; font-style:italic; font-size:20px; } #Cover p a ...
import { useState } from 'react' import { FiThumbsUp } from 'react-icons/fi' import styles from '../styles/components/CookiesAndStorageAdviser.module.css' export function CookiesAndStorageAdviser() { const [isVisible, setVisible] = useState(true) function handleCloseAdviser() { setVisible(false) } return...
package com.example.android.architecture.blueprints.todoapp.data.source import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.example.android.architecture.blueprints.todoapp.data.Result import com.example.android.architecture.blueprints.todoapp.data.Task import kotlinx.coroutines.runB...
/* * * **************************************************************************** * * Copyright (C) 2019 Testsigma Inc. * * All rights reserved. * **************************************************************************** * */ package com.testsigma.dto.export; import com.fasterxml.jackson.annotation.*; ...
import "tailwindcss/dist/base.css" import React from "react" import { createGlobalStyle, ThemeProvider } from "styled-components" import Theme from "./theme" import { ThemeProvider as ThemeMaterial } from "@material-ui/core/styles" const GlobalStyles = createGlobalStyle` *{ box-sizing: border-box; margin: 0; pad...
module Poker class TieBreaker attr_reader :hand1, :hand2, :best_hand def initialize(hand1, hand2) @hand1 = hand1 @hand2 = hand2 @best_hand = hand1.best_hand end def winner # return the winner based on the hand type @winner ||= send(best_hand) end def straight_f...
// Gaze pointer // // Dependencies: // utils.js // Depended style sheets: // pointer.css (function (root) { 'use strict'; var Pointer = { init: function (_settings) { settings = _settings; utils = root.GazeTargets.Utils; pointer = document.c...
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace JT.CodeKataClasses.Test { [TestClass] public class TheElderTests { [DataTestMethod] // [DataRow(5, 8, 5, 1, 100)] // [DataRow(224, 8, 8, 0, 100007)] ...
/* * Copyright (C) 2009 QUALCOMM Incorporated. */ #include "mt9t013.h" #include <linux/kernel.h> struct reg_struct const mt9t013_reg_pat[2] = { { /* Preview 2x2 binning 20fps, pclk MHz, MCLK 24MHz */ /* vt_pix_clk_div:REG=0x0300 update get_snapshot_fps * if this change */ 8, /* vt_sys_clk_div: REG=0x0302 upd...
local index = 0; local masterUART = array(100); //serial buffer //these should be changed to non character values local startbit = 124; //which is | local endbit = 126; //which is ~ //uart initialization function startUART() { hardware.configure(UART_57); hardware.uart57.configure(19200, 8, PARITY_...
#!./perl -p BEGIN { print "1..2\n"; *ARGV = *DATA; } __DATA__ ok 1 ok 2
package com.nekohit.neo.domain; import com.nekohit.neo.helper.Pair; public class ProjectDynamicContent { /** * How many tokens remained for sale. */ public int remainTokenCount; /** * How many tokens have already been purchased. */ public int totalPurchasedAmount; /** * ...
import * as vscode from "vscode" import { mkdirSync, readFileSync, writeFileSync, renameSync } from "fs" import { Context, ExportTypeConfiguration, Option } from "./types" import { getOptions } from "./options" import { stringRegex, importRegex, firstEmptyLineRegex } from "./regex" import { formatIndexFileWithDefaul...
using System; using System.Text.Json; using NatMarchand.YayNay.ApiApp.Converters; using NatMarchand.YayNay.Core.Domain.Entities; using NFluent; using Xunit; namespace NatMarchand.YayNay.ApiApp.UnitTests { public class TypeConverterTests { [Fact] public void CheckThatTypeConverterConverts() ...
# Slugify.jl -- A library that simplifies a text to an ASCII subset # By: Emmanuel Raviart <emmanuel@raviart.com> # # Copyright (C) 2015 Emmanuel Raviart # https://github.com/eraviart/Slugify.jl # # This file is part of Slugify.jl. # # The Slugify.jl package is licensed under the MIT "Expat" License. using Base.Test ...
package services import ( "net/http" "github.com/irisida/go-microservices/05-gin/src/domain" "github.com/irisida/go-microservices/05-gin/src/utils" ) type itemsService struct{} var ( // ItemsService is exported ItemsService itemsService ) // GetItem will return an item based on matching an id // it is a metho...
/* * Copyright 2022 HM Revenue & Customs * * 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 a...
using System; using System.Configuration; using System.Linq; using System.Xml; using System.Xml.Serialization; namespace MotionDemo { public class ConfigLoader : IConfigurationSectionHandler { public object Create(object parent, object configContext, XmlNode section) { if (section ...
<?php /** * * This file is part of Aura for PHP. * * @license https://opensource.org/licenses/MIT MIT * */ namespace Aura\Sql\Exception; use Aura\Sql\Exception; /** * * Locator could not find a named connection. * * @package Aura.Sql * */ class ConnectionNotFound extends Exception { }
package ru.alexbykov.gatekeeper.di.modules import android.preference.PreferenceManager import javax.inject.Singleton import dagger.Module import dagger.Provides import ru.alexbykov.gatekeeper.App import ru.alexbykov.gatekeeper.api.RestApi import ru.alexbykov.gatekeeper.api.Settings import ru.alexbykov.gatekeeper.uti...
import { Component, Inject, OnInit } from '@angular/core'; import { ITaskService } from 'camunda-sdk-ts'; import { TaskService } from './task.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { tit...
! ! (c) 2019 Guide Star Engineering, LLC ! This Software was developed for the US Nuclear Regulatory Commission (US NRC) ! under contract "Multi-Dimensional Physics Implementation into Fuel Analysis under ! Steady-state and Transients (FAST)", contract # NRC-HQ-60-17-C-0007 ! ! ! NEMO - Numerical Eng...
import React, { useRef, useState, useEffect } from 'react'; import { Attribution, defaults as defaultControls } from 'ol/control'; import * as ol from 'ol'; import MapContext from './MapContext'; import { MapInstance } from './types'; import { projection } from './utils'; import 'ol/ol.css'; const defaultZoom = 9; ex...
package quizzo.app.data.network.converters import android.annotation.SuppressLint import android.util.Log import com.google.gson.JsonDeserializationContext import com.google.gson.JsonDeserializer import com.google.gson.JsonElement import quizzo.app.data.database.entity.History import quizzo.app.data.database.typeconve...
#ifndef MPC_H #define MPC_H #include <vector> #include "Eigen/Core" #define DT 0.1 // time step duration dt in s // This value assumes the model presented in the classroom is used. // // It was obtained by measuring the radius formed by running the vehicle in the // simulator around in a circle with a constant stee...
import { InjectRedis, Redis } from '@nestjs-modules/ioredis'; import { Injectable } from '@nestjs/common'; @Injectable() export class CoreService {}
import tensorflow as tf from .utils import AffineTransform, Repeat2D, Blur, Normalize2D class Generator(tf.keras.Model): """Generate image from style vector. """ def __init__(self, init_channels, max_channels, num_layer, out_channels): ...
{-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE Strict #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Graphics.Vulkan.Pass where import Graphics.Vulkan.Device( VkDevice(..) ) import Graphics.Vulkan.Pipeline( VkPipelineStageFlagBits(..) ...
__author__ = 'guorongxu' import os import sys ## To process JSON files and append an id for each document. def process_json(workspace, data_set): root_json_dir = workspace + "/" + data_set + "/json_files" ##id number rule: # the first digital "5" is the Drug index id; # the first two digital "01" is t...
from django.core.management.base import BaseCommand class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('--foo-list', nargs='+', type=int, required=True) def handle(self, *args, **options): for option, value in options.items(): self.stdout.write('%s=%s...
# What do the people now lose in front of Job? These people lose all self-control in front of him.
using Newtonsoft.Json.Linq; namespace PushSDK.Classes { public static class JsonHelpers { public static int GetStatusCode(JObject jRoot) { return jRoot.Value<int>("status_code"); } public static string GetStatusMessage(JObject jRoot) { ...
import React from 'react' import styled from '@emotion/styled' import TaskRadio from 'universal/components/TaskRadio' import {IBlock, IQueue} from 'universal/types/generic' import BlockHeader from 'universal/components/BlockHeader' import HeaderContainer from './HeaderContainer' import BodyContainer from './BodyContain...
c=2.997925e10 k=1.380658e-16 G=6.67259e-8 me=9.1093897e-28 mp=1.672631e-24 amu=1.6605402e-24 eV=1.6021772e-12 h=6.6260755e-27 hbar=1.0545727e-27 e=4.8032e-10 mn=1.6749286e-24 mH=1.6733e-24 pc=3.08567758e18 msun=1.99e33 rsun=6.96e10 AU=1.496e13 ly=9.463e17 lsun=3.9e33 mearth=5.976e27 rearth=6.378e8 AA=1e-8 Jy=1e-23 rhoc...
(defproject bukkit-for-clojure/lein-template "0.1.5-SNAPSHOT" :description "A Leiningen template for creating Bukkit plugins in Clojure" :url "https://github.com/cpmcdaniel/bukkit-for-clojure-template" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "https://www.eclipse...
# VII Dos días después, más allá de Dios le guarde, un gran acontecimiento turbó la monotonía de nuestra marcha. Y fue que a eso de la madrugada nuestras tropas avanzadas prorrumpieron en exclamaciones de júbilo; mandose formar, dando a las compañías el marcial concierto y la buena apariencia que han menester para pre...
%% @author Asier Azkuenaga Batiz <asier@zebixe.com> %% @copyright 2013 Mochi Media, Inc. %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), %% to deal in the Software without restriction, including without limitatio...
package com.posts.api.conf import org.springframework.beans.factory.annotation.Value import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory import org.springframework.data.redis.cor...
# FWWebView ネイティブとWebviewの連携機能を充実させたUIWebview拡張クラス ## 機能 * 読み込み遅延 * Document Loadイベント追加(カスタムロードイベント追加可能) * javascriptからネイティブ機能の呼び出し、逆呼び出し可能 ## 使い方 ``` pod 'FWWebview' ```
namespace Contoso.Core { using System; using System.Xml.Serialization; /// <summary> /// The property base class /// </summary> [XmlType("Property")] [Serializable] public class PropertyBase { #region Properties /// <summary> /// Gets or sets the index. ...
#include "Framework.h" #include "Scenes/TutorialScene.h" #include "Scenes/CubeScene.h" #include "Scenes/PlaneScene.h" #include "Scenes/GridScene.h" #include "Scenes/TerrainScene.h" #include "Scenes/TerrainEditorScene.h" #include "Scenes/ModelExportScene.h" #include "Scenes/ModelRenderScene.h" #include "Scenes/ModelAni...
package receber type Receberout struct { ID string `json:"id" db:"uuid"` Nome string `json:"nome" db:"nome"` Tipoconta string `json:"tipo_conta" db:"tipo"` Valor float32 `json:"valor" db:"valor"` CpfCnpj string `json:"cpfcnpj" db:"cpfcnpj"` DataReceber string `json:"data_re...
<?php session_start(); $uid = $_SESSION['uid']; $amount = htmlentities($_REQUEST['amountCredits']); require_once('api.php'); $api = new AprilInstituteScheduler_API(); $api -> connect(); $result = $api -> addCredits($uid, $amount); $api -> disconnect(); if($result != 1) { header("Location: purchaseCredits.php?pa...
import { Component, Inject } from '@angular/core'; import { CHAT_SERVICE_TOKEN, ChatService, MemberListItem, MUC_SUB_EVENT_TYPE, MucSubPlugin, MultiUserChatPlugin, Room, RoomCreationOptions, RoomSummary, } from '@pazznetwork/ngx-chat'; import { jid } from '@xmpp/client'; @Component(...
(set (lexical (lambda order-snack (main-course &key drink (dessert "a sugar smile") &optional (garnish "fries") &rest other) (+ "I would like " main-course " with " garnish ", please." (if drink (+ " And " drink ".") "") " And " dessert " for dessert." (if other (+ " Oh... " (_ join othe...
#!/bin/bash -e strap_msg() { printf " >>>> %s\n" "$1" } strap_msg_red() { printf "\e[31m >>>> %s \n\e[0m" "$1" } strap_msg_green() { printf "\e[32m >>>> %s \n\e[0m" "$1" } # Download file using curl. strap_filedownload() { local url="$1" local file="$2" # Check if file exists if [ -f "$file" ]; then ...
import 'dart:convert'; import 'package:contentful_rich_text/contentful_rich_text.dart'; import 'package:contentful_rich_text/widgets/hr.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'sample_json.dart'; /* For full supp...
#[derive(Debug, Default)] pub struct Attack { weapon_name: String, damage: Option<u32>, } impl Attack { pub fn new<S>(weapon_name: S, damage: Option<u32>) -> Self where S: Into<String>, { Self { weapon_name: weapon_name.into(), damage, } } pu...
package ru.buylist.presentation.circle_adapter import androidx.databinding.BindingAdapter import androidx.recyclerview.widget.RecyclerView import ru.buylist.data.wrappers.CircleWrapper object CirclesBindings { @BindingAdapter("app:circles") @JvmStatic fun setCircles(recycler: RecyclerView, circles: List<...
-- @testpoint: 创建函数,将varchar类型,转换为clob类型 create or replace function f_to_clob(in_char varchar) return clob is p1 varchar:='nihao'; begin return to_clob(p1); end; / select f_to_clob('111'); drop function f_to_clob;
server_root () { server_prompt_variables () { ask SERVER_ADDRESS "🔢 What's the ${YLW}server's${OFF} WireGuard IP address?" "${SERVER_ADDRESS}" ask SERVER_PORT "💯 What port should the ${YLW}server${OFF} listen on?" "51820" "${SERVER_PORT}" ask SERVER_ENDPOINT "🔗 What address will the ${YLW}server${O...
@extends('layouts.sub-front') @section('content') <div class="gradient-bg title-wrap"> <div class="row"> <div class="col-lg-12 col-md-12 whitecolor"> <h3 class="float-left">Career</h3> <ul class="breadcrumb top10 bottom10 float-right"> <li class="breadcrumb-item hover...
## 命名管道(FIFO) 1. FIFO 可以在无关的进程之间交换数据,与无名管道不同; 2. FIFO 有路径名与之相关联,它以一种特殊设备文件形式存在文件系统。 ```c #include <sys/stat.h> int mkfifo(const char *pathname, mode_t mode); ``` 其中,`mode_t mode`参数和`open`函数中的`mode`相同。 创建的FIFO文件,可以用一般的文件I/O函数来操作它。 当open一个FIFO文件时,是否设置非阻塞标志(`O_NONBLOCK`)的区别: - 若没有指定`O_NONBLOCK`(默认),`只读open`要阻塞到某个其他进程...
json.extract! @project, :name, :oneword, :link, :description json.industries do json.array! @project.categories do |category| json.extract! category, :id, :name, :head_id end end json.city @project.cities_name json.logo_id @project.logo.try(:id) json.logo_url @project.logo.try(:image_url) json.screenshot_url @p...
"""Internal utility functions, not intended for public consumption""" from functools import wraps import numpy as np from typing import Iterable def skip(x): """Returns input unmodified""" return x # Round to a specified number of significant digits def round_to_n(x, n=2): if isinstance(x...
#!/bin/sh start_server --port 127.0.0.1:3000 -- starman --workers 1 examples/cgi-app/my-app.cgi
<?php namespace common\models\common; /** * This is the model class for table "fss_common_service_agreements". * * @property string $uuid 主键 * @property string $cate 协议类别 * @property string $detail_cate 协议所属 * @property string $agreement 协议内容 * @property int $status 状态[-1:删除;0:禁用;1启用] * @property int $create...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using ZeldaOracle.Common.Scripting; namespace ZeldaOracle.Game.Control.Scripting { [Serializable] public class Script : IIDObject { // Script Definition ---------------------------------------------------------- /// ...
-module(stockquery). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). -export([start/0]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -...
require "spec_helper" RSpec.configure do |config| config.before(:each) do # Disable so we test against actual redis FakeRedis.disable Redis.new.flushall end end def fakeredis? FakeRedis.enabled? end
#' Split list, apply function, and return results in an array. #' #' For each element of a list, apply function then combine results into an #' array. #' #' \code{laply} is similar in spirit to \code{\link{sapply}} except #' that it will always return an array, and the output is transposed with #' respect \code{sapply}...
<?php use Illuminate\Database\Migrations\Migration; class RemoveOldMyPlanWarningsFromLanguageLinesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::table('language_lines') ->where('group', 'my-plan') ->whe...
#!/bin/bash # get into the right folder cd "$(dirname "$0")" || exit cd ../.. version="3.2.0" echo "[mechascribe script] downloading harfbuzz v$version source release" curl -L "https://github.com/harfbuzz/harfbuzz/releases/download/$version/harfbuzz-$version.tar.xz" -o \ res/harfbuzz.tar.xz cd res || exit tar -xf h...
import fs from 'fs' import neatCsv from 'neat-csv' import { reduce } from 'lodash' export class CsvHelper { async getAllegationTypes(csvPath) { const csv = fs.readFileSync(csvPath); const results = await neatCsv(csv); let allegationTypes = [] for (const result of results) { allegationTypes.push(result.['...
use core::cmp; use awint::{Bits, ExtAwi}; use rand_xoshiro::{ rand_core::{RngCore, SeedableRng}, Xoshiro128StarStar, }; use crate::fuzz::{eq, fuzz_step, ne, BITS}; macro_rules! primitive_conversion { ( $x0:ident, $x2:ident, $x3:ident, $x4:ident, $($fn_assign:ident,...
# frozen_string_literal: true module Gql module QueryInterface::Base def self.included(base) base.instance_eval <<-RUBY, __FILE__, __LINE__ + 1 attr_reader :input_key attr_accessor :input_value, :update_type RUBY end # def input_value # @input_value # end # def...
/******************************************************************* * * Author: Kareem Omar * kareem.h.omar@gmail.com * https://github.com/komrad36 * * Last updated Sept 20, 2021 *******************************************************************/ #include "modular-quadratic.h" #define ENABLE_ASSERTS #i...
require 'test_helper' class ContactPostalAddressTest < ActiveSupport::TestCase setup do @original_address_processing = Setting.address_processing @contact = contacts(:john) end teardown do Setting.address_processing = @original_address_processing end def test_invalid_if_country_code_is_invalid_...
export const scrollIntoViewOfAnchor = (hash: string): void => { let target = document.querySelector<HTMLElement>(hash); if (!target) { return; } const scrollIntoView = target.scrollIntoView; if (typeof scrollIntoView === "function") { target.scrollIntoView(true); } else { let top = 0; while...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2016/8/1 * Time: 11:27 */ require __DIR__.'/Access/User.php'; require __DIR__.'/Access/Role.php'; require __DIR__.'/Access/Permission.php'; require __DIR__.'/Access/PermissionGroup.php';
import React from 'react'; import classes from '../untils/classes' import './importAll' import './icon.scss' interface IconProps extends React.SVGAttributes<SVGElement> { name: string; // onClick?: React.MouseEventHandler<SVGElement> } const Icon: React.FunctionComponent<IconProps> = (props) => { const { classN...
import 'package:flutter/material.dart'; import 'package:laxly_account/row.dart'; import 'package:laxly_account/scripts.dart'; class InputPage extends StatefulWidget { InputPage(this._scripts, {Key key}) : super(key: key); final Scripts _scripts; @override State<StatefulWidget> createState() => _InputPageStat...
import Big from 'big.js' export type MoneyFormatter = (num: Big) => string export const makeFormatter = (currency: string): MoneyFormatter => { const f = new Intl.NumberFormat('en-AU', {style: 'currency', currency}) return num => f.format(num.toNumber()) }
import { GraphQLCompilerContext } from "./GraphQLCompilerContext"; export type IRTransform = ( context: GraphQLCompilerContext ) => GraphQLCompilerContext; // Transforms applied to fragments used for reading data from a store export const FRAGMENT_TRANSFORMS: Array<IRTransform>; // Transforms applied to queries/mu...
require "authentication_user/version" require "authentication_user/engine" require "active_support/dependencies" module AuthenticationUser class Engine < Rails::Engine end end
package com.blastingconcept.devcon.ports.rest.user.impl; import com.blastingconcept.devcon.domain.user.UserRepository; import com.blastingconcept.devcon.ports.rest.AppResponseErrors; import com.blastingconcept.devcon.ports.rest.user.UserHandler; import org.springframework.http.HttpStatus; import org.springframework.st...
//! Handler which puts output into writeable struct use super::Handler; use crate::{error, path::Path, streamer::Token}; use std::{any::Any, fs, io, str::FromStr}; /// File handler responsible for storing data to a file. pub struct Output<W> where W: io::Write, { /// writable output output: W, /// In...