text
stringlengths
27
775k
<?php include_once 'db/db.class.php'; $dbclass = new DBClass(); $connection = $dbclass->getConnection(); echo $connection; ?>
<?php return [ 'tip' => 'Tip', 'leslie_chow_tips' => 'Leslie Chow Tips' ];
<?php class M_registermenikah extends CI_Model { public function tampil_data() { return $this->db->get('registermenikah'); } public function input_data($data, $table) { $this->db->insert($table, $data); } public function hapus_data($where, $table) { $this->db->w...
--- title: Drop Us A Note description: Testing Testing 1,2,3 bg_image: images/featue-bg.jpg ---
/* * Copyright 2016 Red Hat, Inc. * * Red Hat licenses this file to you 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 ...
using System; using System.Reflection; [assembly: AssemblyKeyFileAttribute ("test-715.snk")] [assembly: AssemblyFlags (AssemblyNameFlags.EnableJITcompileOptimizer | AssemblyNameFlags.Retargetable)] class MyClass { public static int Main () { Assembly thisAsm = Assembly.GetExecutingAssembly (); AssemblyName name...
function start() { cm.warp(610030020,0); cm.removeAll(4001256); cm.removeAll(4001257); cm.removeAll(4001258); cm.removeAll(4001259); cm.removeAll(4001260); cm.dispose(); } function action(mode, type, selection) { }
<?php /* * 上传设置 * Author: PunkVv <punkv@qq.com> */ return [ // 本地上传目录 根目录为 web 根目录 'image_local' => '/upload/image', // excel 下载目录 'excel_download' => '/download/excel', ];
#!/bin/bash set -ex kubectl config use-context kind-mgmt # Setup shipper's clusters SETUP_MGMT_FLAGS="--webhook-ignore" make setup # Run the e2e tests, save exit code for later IMAGE_TAG=latest OVERLAY_PATH=kubernetes/overlays/test make -j e2e \ TEST_HELM_REPO_URL=${TEST_HELM_REPO_URL:=https://raw.githubuserconten...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace FluentFTP.Tests.Integration { internal class FileUtil { internal static Stream GetSimpleTextFile() { var file = new MemoryStream(); var fileWriter = n...
_HOSTS_LIST=( ) _EXCLUDED_HOSTS_LIST=( ) function hostlist() { local OP="$1" local HOSTS="$2" local HOST HNAME while read -d ',' HOST; do if [ "$HOST" != "" ]; then local H_EXPANDED=() while read HNAME; do H_EXPANDED+=("$HNAME") done <<< "$(bashc.expand_ranges "$HOST")" p_de...
package filodb.prometheus.ast trait TimeUnits { /** * Time durations are specified as a number * followed immediately by one of the following units: * s - seconds * m - minutes * h - hours * d - days * w - weeks * y - years */ sealed trait TimeUnit { def millis: Long } ...
/* * Copyright (c) 2015 Nathaniel Wallace * * 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 limitation the rights * to use, copy, modify, m...
# Technical Documentation Live page at https://parvathy-santhosh.github.io/Technical-Documentation-JS/ This is a very simple responsive web page: This is a sample technical documentation page of JavaScript. ### Getting started 1. Download and unzip contents 2. Contents of the repo include HTML and CSS pages. 3. Open ...
require 'spec_helper' describe 'Accessing a page in the application' do def enter_code_word(code_word) fill_in 'Code word', with: code_word click_on 'Go' end before { reset_user_agent } context 'without a configured code word' do before { ENV.delete('CODEWORD') } it 'displays the requested p...
package com.nulabinc.backlog.r2b.exporter.convert import javax.inject.Inject import com.nulabinc.backlog.migration.common.conf.BacklogConstantValue import com.nulabinc.backlog.migration.common.convert.{Convert, Writes} import com.nulabinc.backlog.migration.common.domain.{ BacklogAttachment, BacklogAttributeInfo, ...
{-# LANGUAGE ScopedTypeVariables #-} module Spec.ExecuteI where import Spec.Decode import Spec.Machine import Utility.Utility import Spec.VirtualMemory import Data.Bits import Data.Int import Data.Word import Control.Monad import Prelude execute :: forall p t. (RiscvMachine p t) => InstructionI -> p () -- begin ast ex...
#!/bin/bash file="notes" if [ -n "$1" ] then file="$1" fi echo echo [1] skapa ny anteckningsfil echo [2] lägg till en anteckning till filen echo [3] skapa en kopia av anteckningsfilen echo [4] avsluta while true; do echo read -p 'Write what should I do: ' input echo # Create/overwrite a new emp...
/** * Created by xeonwell on 2017-02-21. */ let config = require('./config') /** * successRate * @returns {boolean} */ module.exports.isSuccessful = function () { let r = Math.random(); return r < config.successRate }; /** * wrapper for successful * @param result * @returns {{status: number, data: *}} */...
require 'open-uri' require 'json' #xml_urls = ["http://cdn.device-icons.smartthings.com/"] output_lines = [] output_lines << "<html>" output_lines << "<head>" output_lines << "<title>SmartThings Icons</title" output_lines << "</head>" output_lines << "<style type='text/css'>" output_lines << "ul { list-style-typ...
<?php namespace Platform\AuditLog\Providers; use Assets; use AuditLog; use Platform\ACL\Models\User; use Illuminate\Support\Facades\Auth; use Platform\Dashboard\Supports\DashboardWidgetInstance; use Illuminate\Support\Collection; use Illuminate\Support\ServiceProvider; use Platform\AuditLog\Events\AuditHandlerEvent; ...
module Features module SessionsHelper def feature_sign_in(user = nil) user ||= create(:user) visit new_session_path fill_in 'Name', with: user.name click_button 'Sign' end end end
#!/bin/sh defaults write com.microsoft.VSCode CGFontRenderingFontSmoothingDisabled 0 defaults write com.microsoft.VSCode.helper CGFontRenderingFontSmoothingDisabled 0 defaults write com.microsoft.VSCode.helper.EH CGFontRenderingFontSmoothingDisabled 0 defaults write com.microsoft.VSCode.helper.NP CGFontRenderingFontSmo...
using GameBrains.Motors; using UnityEngine; namespace GameBrains.Steering { [AddComponentMenu("Scripts/Steering/OffsetPursuit")] public class OffsetPursuitSteeringBehaviour : ArriveSteeringBehaviour { [SerializeField] protected Vector3 offsetVector = new Vector3(0f, 0f, -5); p...
export default ( text, replacements = {}, { openingToken = '{', closingToken = '}' } = {}, ) => { const keys = Object.keys(replacements); const regexSafePattern = /[-\/\\^$*+?.()|[\]{}]/g; return keys.reduce((accumulator, currentKey) => { const regexSafeToken = `${openingToken}${currentKey}${c...
<?php declare(strict_types=1); /** * This file is part of the "NFQ Bundles" package. * * (c) NFQ Technologies UAB <info@nfq.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Nfq\AdminBundle\Translatable\Entity; use ...
package com.peterpotts.interview import org.scalatest.{Matchers, WordSpec} class CartesianProductTest extends WordSpec with Matchers { "A cartesian product" should { "evaluate" in { val input = Seq(Seq(1, 2, 3), Seq(4, 5), Seq(6, 7, 8)) val expected = input.map(_.size).product val actual = Car...
<?php namespace App\Api\Http\Controllers; use App\Api\Users\Requests\StoreUserRequest; use App\Api\Http\Controller; use App\Api\Users\Requests\UpdateUserRequest; use App\Api\Users\UserTransformer; use App\Users\User; use App\Users\UserRepository; class UserController extends Controller { /** * @var \App\User...
package com.igorvd.chuckfacts.utils.transition import androidx.transition.AutoTransition import androidx.transition.ChangeBounds import androidx.transition.Transition object TransitionsFactory { private val CHANGE_BOUNDS_DURATION = 150L private val FADE_OUT_DURATION = 150L /** * Creates a [ChangeBo...
package io.github.debop.ahocorasick.trie import io.github.debop.ahocorasick.interval.Interval /** * Emit * @author debop (Sunghyouk Bae) */ class Emit(override val start: Int, override val end: Int, val keyword: String? = null): Interval(start, end) { override fun toString(): String { ...
import React from 'react'; import { Table } from 'react-bootstrap'; const existingInbounds = [ { plnumber: '000123', dateSubmitted: '8-May-12', failed: false, veliLabel: '', inboundDoc: '', plSummary: '', }, { plnumber: '000124', dateSubmitted: '9-May-12', failed: true, v...
import { ObjectValsToUnion } from './ObjectValsToUnion'; import { Matches } from '../type/Matches'; /** * Check whether a heterogeneous object type contains a given type among its elements. */ export type ObjectHasElem<T, E> = Matches<E, ObjectValsToUnion<T>>;
using System; namespace Aris.Moe.Core { public class ProgressStep { public string StepDescription { get; } public double ProgressPercentage { get; private set; } public event EventHandler? OnFinished; public ProgressStep(string stepDescription, Progress<double> progress) ...
{-# OPTIONS_GHC -fno-warn-orphans #-} module BookCereal where import Codec.Binary.UTF8.String (decode, encode) import Control.Applicative ((<$>), (<*>), (<*)) import Control.Monad (void) import Data.Bits (shift, shiftR, (.&.), (.|.)) import qualified Data.ByteString as S import qualified Data.ByteString.Internal as S...
# frozen_string_literal: true @data.keys.each do |key| json.set! key.to_sym, @data[key] end
<?php class Machines_report extends MY_Controller{ public function __construct() { parent::__construct(); $this->load->model('machines_report_model'); $this->module = 'machines_report'; $this->user_type = $this->session->userdata('user_type'); $this->id = $this->session->userda...
using Blazui.Component; using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Blazui.ClientRender.Demo.MarkdownEditor { public class FormMarkdownBase : BComponentBase { internal BForm form; internal Ar...
require 'smtpapi' module LegacySendGrid class Template attr_reader :id, :recipients def initialize(id) @id = id @recipients = [] end def add_recipient(recipient) recipients << recipient end def add_to_smtpapi(smtpapi) return if smtpapi.nil? smtpapi.tap do |ap...
# frozen_string_literal: true require 'rexml/document' # Defines data to collect in a WS-Man collection in # $ONMS_HOME/etc/wsman-datacollection-config.xml. actions :create, :delete default_action :create attribute :name, name_attribute: true, kind_of: String, required: true attribute :group_name, kind_of: String, r...
#ifndef PQCLEAN_NTRULPR1277_AVX2_CRYPTO_VERIFY_1975_H #define PQCLEAN_NTRULPR1277_AVX2_CRYPTO_VERIFY_1975_H #include <stdint.h> #define PQCLEAN_NTRULPR1277_AVX2_crypto_verify_1975_BYTES 1975 int PQCLEAN_NTRULPR1277_AVX2_crypto_verify_1975(const unsigned char *x, const unsigned char *y); #endif
#!/bin/bash anaconda=Miniconda3-latest-Linux-x86_64.sh workdir=/vagrant/tmp mkdir -p $workdir cd $workdir if [[ ! -f $workdir/$anaconda ]]; then wget --quiet http://repo.continuum.io/miniconda/$anaconda -O $workdir/$anaconda fi if [[ `which conda` != "${HOME}/opt/conda3/bin/conda" ]]; then bash $workdir/$anacon...
fn main() { let x: Result<u32, &str> = Ok(2); assert_eq!(x.unwrap(), 2); }
// export * from './cli/basemaps/tileset.updater'; export { CogBuilder } from './cog/builder.js'; export { CogJobFactory } from './cog/job.factory.js'; export { Gdal } from './gdal/gdal.js'; export { GdalCogBuilder } from './gdal/gdal.cog.js'; export { GdalCogBuilderOptions } from './gdal/gdal.config.js';
DROP VIEW egtl_mv_baseregister_view; CREATE OR REPLACE VIEW egtl_mv_baseregister_view AS SELECT mv.licensenumber, mv.tradetitle, mv.licenseid, mv.owner, mv.mobile, mv.category, mv.categoryname, mv.subcategory, mv.subcategoryname, mv.assessmentno, mv.ward, mv.wardname, ...
package me.tylerbwong.rebelbase.presentation.view import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.CompositeDisposable import io.reactivex.schedulers.Schedulers import me.tylerbwong.rebelbase.data.providers.getLocalPeople import me.tylerbwong.rebelbase.data.providers.getNumLocal...
import type { NextApiRequest, NextApiResponse } from 'next'; import uaString from './getUserAgent'; export default (req: NextApiRequest, res: NextApiResponse) => { console.log(uaString); const data = { check: uaString }; res.setHeader('Content-Type', 'application/json; charset=utf-8') res.statusCode = 200 r...
/** * @preserveUnion */ export type $Keys<T> = keyof T; /** * @preserveUnion */ export type $Values<T> = T[keyof T]; /** * @preserveUnion */ export type $PropertyType<T, K extends keyof T> = { [P in K]: T[P] }; /** * @preserveUnion */ export type $Shape<T> = { [P in keyof T]?: T[P] }; /** * @preserveUnion ...
use AdventureWorks2014 go select * from Sales.SalesOrderDetail where SalesOrderID=43659 select SalesOrderID as ID, max(OrderQty) as MaxQty, min(OrderQty) as MinQty, Format(AVG(UnitPrice),'C','en-gb') as AverageUnitPrice from Sales.SalesOrderDetail group by SalesOrderID order by avg(UnitPrice) desc
#ifndef ANIMAL_H #define ANIMAL_H #include <string> #include "tratador.h" #include "veterinario.h" using namespace std; class Animal /**<Classe mestra de onde outras classes animais vão se ramificar*/ { protected: char sexo; int id; /**<id do animal*/ int vt; /**<id do veterinario do animal*/ int tr; /**<id do t...
% ------------------------------------------------------------------------------ % % Copyright © 2018-2019, Lauri Moisio <l@arv.io> % % The ISC License % % Permission to use, copy, modify, and/or distribute this software for any % purpose with or without fee is hereby granted, provided that the above % copyright notice...
#!/usr/bin/env bash # build the test builder image docker build . -t dimitrijejankov/pdb-test-builder echo ${PDB_ROOT} # run the image docker run -v ${PDB_ROOT}:/pdb dimitrijejankov/pdb-test-builder
--- title: >- Eirik Vullum: JavaScript Metaprogramming - ES6 Proxy Use and Abuse | JSConf Budapest 2017 - YouTube author: azu layout: post itemUrl: 'https://www.youtube.com/watch?v=_5X2aB_mNp4' editJSONPath: 'https://github.com/jser/jser.info/edit/gh-pages/data/2017/12/index.json' date: '2017-12-09T07:00:53Z' tags:...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {SessionCalendarComponent} from '../components/calendar/session-calendar/session-calendar.component'; import {CalendarComponent} from '../components/calendar/calendar/calendar.component'; import {CalendarModule, DateAdapter} fr...
#!/bin/bash ############################################################################### # # file: update_l10n.sh # # Purpose: Rebuild localization po files. # # Note: This file is part of Termsaver application, and should not be used # or executed separately. # ###################################...
/* * 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 License, Version 2.0 * (the "License"); you may ...
import os, IPython from PIL import Image, ImageDraw, ImageFont from kolab.anime.color import ColorTheme from apng import APNG from logging import getLogger logger = getLogger(__name__) DefaultColorTheme = ColorTheme() class ASubject(object): parent: object def taken(self, draw): logger.warning(f'TODO: taken...
@php $layout = Session::get("theme_active"); if($layout == "" || $layout == 1){ $layout = ""; }else{ $layout = 1; } @endphp @extends('layout.layout'.$layout) @section("title") {{__('setting')}} @endsection @section("content") <div class="card"> <div class="card-header"> <h4 class="card-title">{{ __('delete_a...
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
package com.gupao.vip.jdk; import com.gupao.vip.Person; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; /** * Created with IntelliJ IDEA * * @author : ShenJiaQing * @date : 2018/7/2 * Time: 16:20 * Description: */ //媒婆 public class MeiPo implements ...
package org.jetbrains.skia import org.jetbrains.skia.impl.use import org.jetbrains.skiko.tests.runTest import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals import kotlin.test.assertTrue class ImageTest { @Test fun imageTest() { imageUnderTest { image -> ...
/* GIMP RGBA C-Source image dump (pony_logo.c) */ static const struct { unsigned int width; unsigned int height; unsigned int bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */ unsigned char pixel_data[36 * 25 * 4 + 1]; } gimp_image = { 36, 25, 4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\...
<?php /** * @author moufer<moufer@163.com> * @copyright (c)2001-2009 Moufersoft * @website www.modoer.com */ return array( 'exchange_status_1' => '待处理', 'exchange_status_2' => '处理中', 'exchange_status_3' => '已发货', 'exchange_status_4' => '已退款', 'exchange_gift_empty' => '对不起,礼品信息不存在或已删除,...
import 'dart:convert'; import '../../utilities/helpers.dart'; class Content { Content({ this.rendered, this.protected, }); final String? rendered; final bool? protected; String get parsedText => parseHtmlString(rendered!); factory Content.fromJson(String str) => Content.fromMap(json.decode(str));...
export default function prettifyStream() { return new TransformStream({ start(controller) { this.worker = new Worker("./prettify.worker.js", { type: "module" }); this.worker.onmessage = (message) => { controller.enqueue(message.data); }; this.worker.onerror = (reason) => { ...
require_relative 'tga.rb' require_relative 'fft2d.rb' if $0 == __FILE__ if ARGV[0] == nil puts "ARGV[0] is nil" exit end image, w, h, bps = load_tga(ARGV[0]) depth = (bps / 8) signal_src = [] image.bytesize.times do |i| signal_src << image.byteslice(i).ord.to_f if (i % depth) == 0 end fft...
import { PrismaClient } from "@prisma/client"; import Fastify, { FastifyInstance } from "fastify"; import { ListTodoResponse, ListTodoResponseSchema, Todo, TodoSchema, AddTodoRequest, AddTodoRequestScheme, } from "nuxt-fastify-todo-list-shared"; const server: FastifyInstance = Fastify({ logger:...
use std::marker::PhantomData; use std::string::ToString; use super::Expr; use crate::opset::Opset; use crate::value::Membership; use crate::impl_fuzzy_expr_ops; /// Fuzzy expression for runtime choice of path. /// /// Can be created via `as_left()` and `as_right` methods /// on `Expr`. /// /// Example: /// ``` /// ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace UncommonSense.CBreeze.Core { public enum XmlPortNodeAndSourceType { XmlPortFieldAttribute, XmlPortFieldElement, XmlPortTableAttribute, XmlPortTableElement, XmlPortTextA...
after "development:users", "development:patients" do Patient.all.each do |patient| first_visit = Date.today - Random.rand(15) Visit.create!( created_at: DateTime.now, updated_at: DateTime.now, first_visit: first_visit, last_visit: first_visit, records: {}, next_visit: nil, ...
package owide.ui import org.w3c.dom.HTMLAnchorElement import org.w3c.dom.HTMLElement import org.w3c.dom.HTMLInputElement import org.w3c.files.File import org.w3c.files.FileReader import org.w3c.files.get import kotlin.browser.document external class ArrayBuffer object FileSystem { private val body = document.qu...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package edu.wpi.first.wpilibj.examples.pacgoat.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.f...
#!/bin/bash set -eu echo '** Starting mongo...' /bin/niscud \ --fork --port 4002 --dbpath /var --noauth --bind_ip 127.0.0.1 \ --nohttpinterface --noprealloc --logpath /var/mongo.log & # TODO: wait for niscu to be up echo '** Starting Meteor...' export MONGO_URL="mongodb://127.0.0.1:4002/meteor"; expo...
import json import logging from importlib import import_module from torchtext.vocab import Vocab from .numericalizer import ( AVAILABLE_VOCABS, DEFAULT_ALPHABET, FieldConfig, FieldType, MultitokenNumericalizer, RecordNumericalizer, SemanticMultitokenNumericalizer, SemanticStringNumeric...
use crate::utils::tree::TreeNode; /* * @lc app=leetcode.cn id=545 lang=rust * * [545] 二叉树的边界 */ // @lc code=start // Definition for a binary tree node. // #[derive(Debug, PartialEq, Eq)] // pub struct TreeNode { // pub val: i32, // pub left: Option<Rc<RefCell<TreeNode>>>, // pub right: Option<Rc<RefCell<Tre...
python3 \ entry_point.py \ --input_data gs://cloud-ml-nas-public/classification/imagenet/train* \ --output_data gs://dpa26/imagenet/parquet/train2 \ --region us-central1 \ --staging_dir gs://dpa26/imagenet/temp/job2
package main import ( "context" "flag" "fmt" "log" "time" updater "github.com/ngalayko/dyn-dns/app" "github.com/ngalayko/dyn-dns/app/fetcher/ipify" "github.com/ngalayko/dyn-dns/app/provider" "github.com/ngalayko/dyn-dns/app/provider/cloudflare" "github.com/ngalayko/dyn-dns/app/provider/digitalocean" ) var ...
package gd.rf.acro.blockwake.entities; import net.minecraft.client.render.entity.EntityRenderDispatcher; import net.minecraft.client.render.entity.LivingEntityRenderer; import net.minecraft.client.render.entity.model.PlayerEntityModel; import net.minecraft.util.Identifier; public class PirateEntityRenderer extends Li...
// // AUTO-GENERATED FILE, DO NOT MODIFY! // // @dart=2.0 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first // ignore_for_file: lines_longer_than_80_chars part of openapi.api; class Cat { /// Returns a new [Cat] instance. Cat({ @required this.cla...
// Original file: "DefTable.hs" // File auto-generated using Corollary. #[macro_use] use corollary_support::*; // NOTE: These imports are advisory. You probably need to change them to support Rust. // use Language::C::Data; // use Language::C::Analysis::NameSpaceMap; // use Language::C::Analysis::SemRep; // use Data:...
#pragma once #include <iostream> #include <map> typedef enum { PASSIVE_COOLING, HI_ACTIVE_COOLING, MED_ACTIVE_COOLING } CoolingType; typedef enum { NORMAL, TOO_LOW, TOO_HIGH } BreachType; typedef enum { TO_CONTROLLER, TO_EMAIL } AlertTarget; typedef struct { CoolingType coolingType; char bran...
db "GOLDFISH@" ; species name db "Even at a young" next "age, this #MON" next "swims quickly and" page "with ease, even" next "against relatively" next "strong currents.@"
import datetime import re from typing import Text, List, Optional from .detection_info import ( DetectionInfo, EventType ) from ..log_helper import get_logger logger = get_logger(__name__) class MessageParseFailure(Exception): pass def _get_event_type(message_text: Text) -> EventType: match = re.s...
* * @20i@ * Function: wcloud * Description: * @code{wcloud} calculates the asymmetry factor, the single scattering * albedo and the extinction optical depth of water clouds for a single * wavelength. The parameterization due to Hu and Stamnes (1993) is used. * Parameters: * REAL lambda: The wavelength in nanometers...
import 'dart:math'; class PasswordGenerate { static String getPool({type = 'alnum'}) { String pool; switch (type) { case 'alnum': pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; break; case 'alpha': pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO...
#!/bin/bash ./transformMFE25.sh "data/*.shp" ./extractMFE25.sh ./sparql-generate.sh -q ../sparql-generate/mfe/mfe25_original.rqg -i "data/*_b0.json" -p -Xmx10000M -v ./sparql-generate.sh -q ../sparql-generate/mfe/mfe25_simplified.rqg -i "data/*_b0_s5_b1.json" -p -Xmx10000M -v # ./sparql-generate.sh -q ../sparql-gener...
/* * Workflow Execution Service * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 1.0.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package wes_client // ErrorResponse - An object that can optionally include...
ShareCf::Application.routes.draw do get 'sessions', to: 'sessions#new' get 'users', to: 'users#show' post 'users', to: 'users#create' match '/auth/:provider/callback', to: 'users#create' match '/auth/failure', to: 'sessions#failure' root to: 'sessions#new' end
function Get-DbaDbccSessionBuffer { <# .SYNOPSIS Gets result of Database Console Command DBCC INPUTBUFFER or DBCC OUTPUTBUFFER .DESCRIPTION Returns the results of DBCC INPUTBUFFER or DBCC OUTPUTBUFFER for input sessions Read more: - https://docs.microsoft.com/en-us/sql...
#!/bin/bash # # Dicard columns if they exceeds the maximum width. set -euo pipefail cat > config.yaml <<'EOF' collector: disk_usage: false git_diff: false columns: - matchers: [ regex: "1" ] - matchers: [ regex: "2" ] - matchers: [ regex: "3" ] - matchers: [ regex: "4" ] - matchers: [ regex: "5" ] EOF ...
with buyer_lists as ( SELECT a.store, period, date, customer_id, b.first_name, b.last_name, b.email, recency, frequency, revenue, aov, revenue_segment, frequency_segment FROM {{ ref('segment_stats_buyers_agg')}} a LEFT JOIN {{ ref('agg_customers') }} b ON ( a.store = b.store AND a.customer_id = b....
<?php /** * Created by PhpStorm. * User: zhanghongbo * Date: 2020-08-03 * Time: 11:14 */ namespace Service\Old; use Service\Base\Constants\CustomerMapping; /** * Class OldUserPartnerFastService * @package Service\Old */ class OldUserPartnerFastService { /** * @param $cur_user_id * @return arra...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Classes; class classesController extends Controller { public function __construct() { $this->middleware('auth'); } public function index() { return view('classes.new'); } public function store() { ...
package main func main() { } func g1() { a() } func g2() { a(); b() } func g3() { a(); b(); }
package web import ( "html/template" "io/ioutil" "net/http" "github.com/gorilla/mux" "github.com/theothertomelliott/tic-tac-toverengineered/services/gamerepo/pkg/game" ) var gameviewTmpl string func init() { content, err := ioutil.ReadFile("views/game.html") if err != nil { panic(err) } gameviewTmpl = st...
const xss = require('xss') const { exec } = require('../db/mysql') const getList = (author, keyword) => { let sql = `select * from blogs where 1=1 ` if (author) { sql += `and author='${author}'` } if (keyword) { sql += `and title like '%${keyword}%` } sql += `order by createdtime desc` //return ...
package org.wachowiak.bdd.client.math; import com.owlike.genson.ext.jaxrs.GensonJsonConverter; import org.glassfish.jersey.client.ClientConfig; import org.wachowiak.bdd.common.math.Constants; import javax.ws.rs.ClientErrorException; import javax.ws.rs.RedirectionException; import javax.ws.rs.ServerErrorException; imp...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2019 Datadog, Inc. package secrets import ( "fmt" "io" "strings" ) // SecretInfo export tr...
/// Data Model for mapping a research paper from a JSON object to a Dart [Map]. class Paper { // Common Attributes (Used in card model) String title = "None"; List authors = ["None"]; String journal = "None"; String year = "None"; String snippet = "None"; String citations = "None"; String citationsLink ...
package com.example.junit; public class Sum { int sum(int a, int b) { return a + b; } }
# Python ## Usage ```python import unittest from macaca import WebDriver desired_caps = { 'platformName': 'Desktop', // iOS, Android, Desktop 'browserName': 'Chrome' // Chrome, Electron 'app': 'path/to/app' // Only for mobile } server_url = { 'hostname': '127.0.0.1', 'port': 3456 } cl...