text
stringlengths
27
775k
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class DOrden extends Model { protected $table = 'dorden'; protected $primaryKey = 'dordenId'; protected $fillable = ['dordenId','dordCantidad', 'ordIdx','dprodtalId','dordenEstado']; public $timestamps = false; protected $append...
import { App, Configuration, Inject, Init, WEB_ROUTER_PARAM_KEY, } from '@midwayjs/decorator'; import { IMidwayWebApplication } from './interface'; import { extractKoaLikeValue, MidwayDecoratorService } from '@midwayjs/core'; import { join } from 'path'; @Configuration({ namespace: 'egg', importConfigs: ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Valley.Net.Protocols.MeterBus.EN13757_3 { public sealed class AlarmStatusPacket : Packet { public byte Status { get; set; } public AlarmStatusPacket(byte address) { Address = ad...
cat(file.info(tail(commandArgs(), n=1))$size, sep="\n")
'use strict' const mkCmd = require('../utils/cmd-handler.js') const Access = module.exports = { command: 'access', describe: 'access-related subcommands', builder (y) { return y.help().alias('help', 'h') .options(Access.options) .demandCommand(1, 'Access subcommand is required') .recommend...
require 'fileutils' # :nodoc: namespace module Scratchpad # :nodoc: namespace module Fpga # Methods for provisioning the FPGA. module Provision # Deploys a bitfile into an FPGA that is connected via an USB cable. # # Args: # bitfile:: the path to the bitfile to load # options:: hash supporting the ...
--- layout: post microblog: true date: 2016-09-12 20:56 +1300 guid: http://JacksonOfTrades.micro.blog/2016/09/12/t775241575320330240.html --- We have waterproof phones, but they don't work when they are wet.
--- title: "Dokumentation-Template" lastChanged: "14.09.2018" editLink: "https://github.com/ioBroker/ioBroker.docs/edit/master/docs/dev/adapterdoctemplate.md" --- # Template für die Erstellung einer Adapterdokumentation ?> ***Dies ist ein Platzhalter***. <br><br> Hilf mit bei ioBroker und erweitere die...
<?php namespace App\Http\Controllers; use App\Models\DrawingMap; use App\Models\ObjectMap; use App\Models\ProjectMap; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Session; class ProjectController extends Controller { protected $viewname; ...
package com.joybar.androidlibutils.data; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Id; import org.greenrobot.greendao.annotation.NotNull; import org.greenrobot.greendao.annotation.Generated; /** * Created by joybar on 2018/1/5. */ @Entity public class User { @Id(...
@extends('layouts.email') @section('content') <div style="color: #777; text-align: left; width: 90%; margin: 0 auto;"> <p style="font-size: 2em;">{!! $data['message'] !!}</p> </div> @endsection
:snake: [https://younghz.github.io](https://younghz.github.io)
package io.github.alexandrepiveteau.echo.site import app.cash.turbine.test import io.github.alexandrepiveteau.echo.* import io.github.alexandrepiveteau.echo.core.causality.EventIdentifier import io.github.alexandrepiveteau.echo.core.causality.SequenceNumber.Companion.Min import io.github.alexandrepiveteau.echo.core.ca...
package org.keycloak.examples.authenticator; import org.keycloak.authentication.RequiredActionContext; import org.keycloak.authentication.RequiredActionProvider; import org.keycloak.models.UserCredentialValueModel; import javax.ws.rs.core.Response; /** * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>...
<?php class SConfig { var $_site_url = "http://localhost/ci-cms/"; var $_document_root = "/opt/lampp/htdocs/ci-cms/"; var $_host_name = "localhost"; var $_site_name = "auliasatriow.com"; var $_database_name = "ci-cms"; var $_database_user = "root"; var $_database_password = ""; var $_table_prefix = "tb...
package oauth2 import ( "math/rand" "testing" xoauth2 "golang.org/x/oauth2" ) type mockProvider struct { name string } func (m mockProvider) Name() string { return m.name } func (m mockProvider) Config() *xoauth2.Config { return nil } func (m mockProvider) Profile(token *xoauth2.Token) (Profile, error) { r...
//! Collection of public constants for XRPL. use alloc::string::String; use alloc::string::ToString; use strum_macros::EnumIter; /// Regular expression for determining ISO currency codes. pub const ISO_CURRENCY_REGEX: &str = r"^[A-Z0-9]{3}$"; /// Regular expression for determining hex currency codes. pub const HEX_CU...
var assert = require("assert"); const express = require("express"); const { isomorphicRoutes } = require("../../server/routes"); const supertest = require("supertest"); function getClientStub(hostname) { return { getHostname: () => hostname, getConfig: () => Promise.resolve({ sections: [{ slug: "news" }] })...
/* var smtpConfig = { direct: false, host: 'mail.ngspipeline.com', port: 25, auth: { user: 'support', pass: 'Lapalapa1' } }; module.exports = smtpConfig; */
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::StorageSync::Mgmt::V2018_04_02 module Models # # The parameters used when creating a storage sync service. # class CloudEndp...
# frozen_string_literal: true require 'iodine' module LiteCable module Server # :nodoc: require "lite_cable/server/subscribers_map" require "lite_cable/server/heart_beat" require "lite_cable/iodine_server/client_socket" require "lite_cable/iodine_server/middleware" class << self attr_acce...
var split = require('split') var through2 = require('through2') var duplexer = require('duplexer') var combiner = require('stream-combiner') var _ = require('underscore') var sprintf = require('underscore.string').sprintf var repeat = require('underscore.string').repeat module.exports = markdown; /** * ...
package controller import ( "database/sql" "encoding/json" "github.com/SwarzChen/url-shortener/constants" "github.com/SwarzChen/url-shortener/database" "github.com/SwarzChen/url-shortener/model" "github.com/gin-gonic/gin" "github.com/teris-io/shortid" "io/ioutil" "net/http" "time" ) func GetUrlHandler(c *gi...
using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NorthwindEntities.DB { public interface IDbContext { IDbSet<T> EntitySet<T>() where T : class; bool E...
package org.apache.lucene.util; /* * 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...
import { Room, EntityMap, Client, nosync } from "colyseus"; export class State { players: EntityMap<Player> = {}; @nosync playersList = []; /////////////////////////////////////////////////////////////// createPlayer (id: string) { this.players[ id ] = new Player(); this.play...
// Copyright (c) The Diem Core Contributors // SPDX-License-Identifier: Apache-2.0 //! This module implements a checker for verifying that a non-resource struct does not //! have resource fields inside it. use move_core_types::vm_status::StatusCode; use vm::{ access::ModuleAccess, errors::{verification_error, ...
# Quine A quine is a program that takes no input and produces a copy of its own code as its output. In any language of your choice, write a quine that performs no file I/O and prints its source code to the console.
<?php namespace Parable\Tests\Components\ORM; class Base extends \Parable\Tests\Base { /** @var \Parable\ORM\Database */ protected $database; protected function setUp() { parent::setUp(); $this->skipIfSqliteNotAvailable(); $this->database = \Parable\DI\Container::get(\Parabl...
using System.Collections.Generic; using Gedcom4Sharp.Models.Gedcom.Base; namespace Gedcom4Sharp.Models.Gedcom { public class Place : AbstractNotesElement, HasCitations { public List<AbstractCitation> Citations { get; set; } = new List<AbstractCitation>(); public StringWithCustomFacts Latitude ...
import React from "react"; import { Select } from "antd"; import { defaultOptionKeys, defaultSeparator, InputWrapper, SplitInputWrapperProps, } from "../../functions"; import { SelectInputBoxProps } from "./interface"; const SelectInputBox: React.FC<SelectInputBoxProps> = (props) => { const { formProps, inputProp...
SET SQL_MODE='ALLOW_INVALID_DATES'; -- 升级0.4需要执行的 ALTER TABLE dashboard_dataset ADD create_time TIMESTAMP DEFAULT now(); ALTER TABLE dashboard_dataset ADD update_time TIMESTAMP; UPDATE dashboard_dataset SET update_time = create_time; -- Use trigger set update time CREATE TRIGGER insert_dataset_update_time_trigger BEFOR...
using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace UnityUtilities.Networking { [Serializable] public class NetGUID { public int id { get; private set; } private readonly Action<NetGUID> eve...
package ru.agalkin.beholder.inflaters import ru.agalkin.beholder.Fieldpack import ru.agalkin.beholder.InternalLog import ru.agalkin.beholder.Message class FieldpackInflater : Inflater { override fun inflateMessageFields(message: Message, emit: (Message) -> Unit): Boolean { try { val data = mes...
import { Ingredient } from './ingredient'; export interface Craft { id: string; job: number; rlvl: number; durability: number; quality: number; progress: number; lvl: number; suggestedCraftsmanship: number; suggestedControl: number; stars?: number; hq: 1 | 0; quickSynth: 1 | 0; controlReq?: n...
(cl:in-package "https://github.com/g000001/srfi-38#internals") (def-suite* srfi-38) (test read/ss (is (equalp (with-input-from-string (in "'(#1=foo (z 8 #1#))") (read-with-shared-structure in)) ''(FOO (Z 8 FOO))))) ;;; *EOF*
/** * Created by msyk on 15/10/18. */ var slideNumber = 0; var currentId = 0; var slideNodes = null; window.onload = function () { var nodeSlide = document.getElementsByClassName("slide")[0]; slideNodes = nodeSlide.cloneNode(true); nodeSlide.parentNode.removeChild(nodeSlide); if (document.location....
package cn.xwj.goods.ui.activity import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.view.View import cn.xwj.baselibrary.ext.content import cn.xwj.baselibrary.ext.setVisible import cn.xwj.baselibrary.ui.activity.BaseActivity import cn.xwj.baselibrary.utils.AppPreferences import...
import sqlalchemy from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, MetaData, Boolean, Float, UniqueConstraint, Index, ForeignKey, Interval from sqlalchemy.orm import sessionmaker, relationship # 1. 链接数据库 engine = create_engin...
require 'pp' $:.unshift 'lib' require 'tlaw' class Reddit < TLAW::API define do base 'https://www.reddit.com' post_process_items 'data.children' do post_process("data.permalink") { |v| "https://www.reddit.com#{v}" } post_process("data.created", &Time.method(:at)) end namespace :r, '/r/...
/* * Copyright 2021 the original author or authors. * * 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...
__author__ = ['Marten Fischer (m.fischer@hs-osnabrueck.de)', 'Daniel Puschmann'] from virtualisation.aggregation.sax.saxaggregator import SaxAggregator, SaxControl from virtualisation.aggregation.sensorsax.sensorsaxaggregator import SensorSaxAggregator, SensorSaxControl class AggregatorFactory(object): entries = ...
type Error = { code: string message: string } export const unknownError: Error = { code: 'SYS-001', message: 'unknown error.', }
package com.dhkt.helloworld import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration @SpringBootApplication( scanBasePackages = ["com.dhkt.helloworld"], ...
#!/bin/bash # Create a bundle for lambda. # # Usage: # ./scripts/create-lambda-bundle.sh [zip output file name] set -e REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )" DEFAULT_OUTPUT_NAME="lambda.zip" OUTPUT_NAME=${1:-$DEFAULT_OUTPUT_NAME} OUTPUT_ZIP=${REPO_ROOT}/${OUTPUT_NAME...
{-| Module : Master Description : The master node This module defines processes that run on the master node. -} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TemplateHaskell #-} module Master where import Context import Message import Process import Slave import Time impor...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.ARFoundation; using UnityEngine.EventSystems; using UnityEngine.XR.Interaction.Toolkit.AR; using System; using UnityEngine.XR.ARSubsystems; public class SpawnManager : ARBaseGestureInteractable { [SerializeField] pr...
# frozen_string_literal: false exclude :test_noctty, 'we return an IO.console even when not a TTY'
namespace EmbedIO.Authentication { /// <summary> /// Provides extension methods for classes derived from <see cref="AuthenticationModuleBase"/>. /// </summary> public static class AuthenticationModuleBaseExtensions { /// <summary> /// Sets an <see cref="AuthenticationHandlerCallback...
#!/bin/sh git status --porcelain | grep -e '^[ ?][^D] ".*\.swift"$' | awk -F'"' '{print $2}' | while read filename; do # ref: https://github.com/yonaskolb/Mint/issues/112 mint run swiftformat swiftformat "$SRCROOT/../$filename" done
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Horker.Notebook.Models { public class CodeCompletionRequest : ExecutionQueueItem { private ManualResetEvent _event; ...
package prettyprint import ( "fmt" "reflect" "strings" ) func SliceOfValues(values []reflect.Value) string { var prettyPrintedValues []string for _, value := range values { prettyPrintedValues = append(prettyPrintedValues, fmt.Sprintf("<%T> %+v", value.Interface(), value)) } return "[" + strings.Join(prett...
require File.dirname(__FILE__) + '/bd_fanyi.rb' p Fanyi.new.fanyi()
#!/bin/bash # Use this script to run checkpatch on argument file only BUILDDIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) $BUILDDIR/checkpatch/checkpatch.pl --color=never --emacs --terse --no-tree --max-line-length=120 -f $1
# typed: strict # frozen_string_literal: true module RSAF # Main pipeline orchestrating all the steps class Compiler extend T::Sig sig { params(config: Config).void } def initialize(config) @config = config @logger = T.let(Logger.new(colors: config.colors), Logger) @lapse = T.let(nil...
from sanic import Sanic from sanic.log import logger as log from sanic import response from utils.database import Database app = Sanic(__name__) @app.route("/proto_query") def query_string(request): return response.json({"parsed": True, "args": request.args, "url": request.url, "query_s...
# scp-distribution-to-server Downloads files on the server once the git repo gets updated 1. Add `paths.py` and `dist.py` on the root of your project 2. In `paths.py` set: - the absolute server `path` where the directory needs to go (ie: path='~/public_html/live') - the server ssh connection string in full (`use...
open class Animal(val name: String, protected val weight: Double) class Cat(pName: String, pWeight: Double) : Animal(pName, pWeight) fun main() { val cat = Cat("Dicoding Miaw", 2.0) println("Nama Kucing: ${cat.name}") // println("Berat Kucing: ${cat.weight}") <- Cannot access 'weight': it is protected in...
part of curses_abst; abstract class CursesBinding { Window initDisplay(); TermColour get defaultBgColour; TermColour get defaultFgColour; CursorShape get defaultCursorShape; }
package torr.consoleui object SimpleProgressBar { def render(label: String, barWidth: Int, progress: Int): String = { val sb = new StringBuilder val completedItems = barWidth * progress / 100 sb.append(label) sb.append(" [") sb.append("=" * completedItems) sb.append(" " * (barWid...
package io.agora.flat.ui.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel import io.agora.flat.data.AppEnv import io.agora.flat.data.AppKVCenter import io.agora.flat.data.Failure import io.agora.flat.data.Success import io.agora.f...
import 'dart:async'; import 'package:fast_flutter_driver/driver.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('nothing is displayed until widget is restarted',...
#!/bin/sh rm -rf povray-3.7.0.7/ tar -xf povray-3.7.0.7.tar.xz cd povray-3.7.0.7/ cd unix/ autoupdate ./prebuild.sh cd .. automake --add-missing LIBS="-lboost_system" ./configure COMPILED_BY="PhoronixTestSuite" --with-boost-thread=boost_thread make -j 4 echo $? > ~/install-exit-status cd ~ echo "#!/bin/sh cd povray-...
$theDir = "../src/messages/"; opendir MYDIR, $theDir; @contents = grep !/^\.\.?$/, readdir MYDIR; closedir MYDIR; foreach $listItem (@contents) { $listItem =~ s/.xsd//; print $listItem . "\n"; open SF, "Template.wsdl"; open TMP, ">tmp/$listItem.wsdl"; while ( <SF> ) { s/Template/$listItem/g; print TMP $...
part of zombiebacon; /* * Enum type for matrix mode */ class MatrixModes { static const int MODELVIEW = 1 << 0; static const int PROJECTION = 1 << 1; } /* * Matrix stack used by push/pop matrix */ class MatrixStack { static int _matrixMode = MatrixModes.PROJECTION; static Queue...
# Deprecate This HOWTO shows how to deprecate functionality from Erlang/OTP. When adding a new *deprecation* or *removal* warning you need to add an attribute to the module in question and update [$ERL_TOP/system/doc/general_info/DEPRECATIONS][1] with information about when the deprecation was added. After changing ...
import sbt.Keys.libraryDependencies enablePlugins(DockerPlugin) enablePlugins(JavaAppPackaging) enablePlugins(AshScriptPlugin) name := "CRUSH" version := "0.1" scalaVersion := "2.13.5" version := "0.1" val AkkaVersion = "2.6.13" dockerBaseImage := "adoptopenjdk/openjdk11:x86_64-debianslim-jre-11.0.10_9" libraryDepen...
require "spec_helper" describe "forking" do it do Process.waitpid(Kernel.fork {}) end end
package com.mazeltov.recommendationservice.config import com.mazeltov.common.spring.* import org.springframework.beans.factory.annotation.* import org.springframework.beans.factory.config.* import org.springframework.boot.context.properties.* import org.springframework.boot.jdbc.* import org.springframework.boot.orm....
const coolEntity = require('./src'); module.exports = { CoolClient: coolEntity.CoolClient, CoolEntity: require('./src/coolEntity'), CoolRelation: require('./src/coolRelation'), CoolCollection: require('./src/coolCollection') };
ant pull cd lucene-solr ant ivy-bootstrap cd ../knowledge-graph/ mvn clean mvn package cd ../ ant package cd deploy chmod +x restart-solr.sh chmod +x restart-solr-dbg.sh chmod +x feed.sh chmod +x solr/bin/solr
package weaver package framework package test import cats.syntax.option._ abstract class FSCompatTest extends SimpleIOSuite { val pwd = FSCompat.wd val fileName = "DogFood.scala" val relativePath = s"foo/bar/${fileName}" val absolutePath = s"${pwd}/${relativePath}" val wron...
package wasm import ( "encoding/json" "github.com/CosmWasm/wasmd/x/wasm" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" wasmTypes "github.com/CosmWasm/wasmvm/types" "github.com/cybercongress/go-cyber/x/resources/types" ) var _ WasmMsgParserInterface = WasmMsgPa...
(defun get-file (filename) (with-open-file (stream filename) (loop for line = (read-line stream nil) while line collect line))) (defun find-passports (lines) (loop for line in lines for n from 0 when (= 0 n) collect n when (string= "" line) collect (1+ n) )) ...
({ add: "Dodaj", addAuthor: "Dodaj autora", addContributor: "Dodaj kontrybutora" })
package com.autohome.dbtree.service; import com.autohome.dbtree.contract.ColumnInfo; import com.autohome.dbtree.contract.TableInfo; import java.util.List; public interface IDbService { List<TableInfo> findTablesByDb(String dbName); List<TableInfo> findTablesByName(String dbName, List<String> tableList); ...
/* * Copyright (c) 2012, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list...
for i in *.dlg do name=`basename $i .dlg` echo $name ./dock-vina-extract.py $name < $i > $name.csv done cat 1ah1*~EGLNRPSGGCG-v1.csv > 1ah1~EGLNRPSGGCG-all.csv cat 1ah1*~YDPEYRNFWGCG-v1.csv > 1ah1~YDPEYRNFWGCG-all.csv cat 1ah1~EGLNRPSGGCG-all.csv 1ah1~YDPEYRNFWGCG-all.csv > 1ah1-all.csv ./make-TD-spectr.p...
import setuptools import pathlib root_dir = pathlib.Path(__file__).parent with (root_dir / 'traio' / '__version__.py').open(encoding='utf-8') as f: exec(f.read()) setuptools.setup( version=__version__ )
#include <CNationSettingDataES.hpp> START_ATF_NAMESPACE CNationSettingDataES::CNationSettingDataES() { using org_ptr = void (WINAPIV*)(struct CNationSettingDataES*); (org_ptr(0x140231de0L))(this); }; void CNationSettingDataES::ctor_CNationSettingDataES() { using org_ptr = v...
#ifndef CONFIG_H #define CONFIG_H #include <stdint.h> #define MODE_SERVER 1 #define MODE_CLIENT 2 #define MODE_GUI 4 #define MODE_QUIET 8 #define PORT 25659 #define BACKLOG 1 #define PASSSZ 256 #define ADDRSZ 40 #define FNAMESZ 247 #define IOQSZ 256 #define FBLKSZ 4096 #define CFG_FNAME "chat.cfg" struct cfg { u...
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_ssikit/src/theme/configs/ssi_button_config.dart'; import 'package:flutter_ssikit/src/theme/configs/ssi_dialog_config.dart'; import '../../components/navbar/ssi_appbar_theme.dart'; import '../../constants/ssi_asset_c...
#!/bin/bash set -e # 6.77. E2fsprogs-1.45.5 # The E2fsprogs package contains the utilities for handling the ext2 file system. # It also supports the ext3 and ext4 journaling file systems. echo "Building e2fsprogs..." echo "Approximate build time: 3.3 SBU" echo "Required disk space: 58 MB" tar -xf /sources/e2fsprogs-...
import { action } from '@storybook/addon-actions' import ATextArea from '@/components/atoms/ATextArea.vue' export default { title: '/Atoms/ATextArea', component: ATextArea, excludeStories: /.*Data$/, } const actionsData = { onInput: action('onInput'), } export const aTextAreaData = { placeholder: 'textarea...
// Copyright (c) 2007-2008 Facebook // // 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...
/* eslint-disable no-undef */ module.exports.validateBusinessName = async (businessName, rspId) => { let query = new Parse.Query('RSP'); query.equalTo('businessName', businessName.toLowerCase()); const rsp = await query.first(); if (rsp && rsp.id !== rspId) { throw new Parse.Error(310, `Business name "${bu...
d3.csv("data/champs.csv") .then(champs => chart(champs)) function chart(csv) { var keys = ['Team', 'Rel_Pace', 'Rel_ORtg', 'Rel_DRtg', 'Playoffs'] let stats = [...new Set(csv.map(champs => champs.teams))] var options = d3.select("#stats").selectAll("option") .data(stats) .enter().append...
#!/bin/sh ################################################# ### 基础表: 一卡通消费流水信息表 ### 维护人: 王浩 ### 数据源: ### 导入方式: 增量导入 ### 运行命令: sh model_ecard_consume_record.sh ### 结果目标: model.ecard_consume_record ################################################# cd `dirname $0` source ../../...
package io.buoyant.router.http import com.twitter.finagle.{Filter, Service, ServiceFactory, SimpleFilter, Stack, Stackable} import com.twitter.finagle.http.{Request, Response, Message} import java.net.URI /** * Coerces HTTP proxy requests to normal requests. */ object ProxyRewriteFilter { /** * If the origina...
export { play, start$, end$, error$, progress$, } from './player';
package cc.xiaobaicz.safe.fragment import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.navigation.fragment.findNavController import cc.xiaobaicz.safe.R import cc.xiaobaicz.safe.databinding.FragmentSettingBinding import cc.xiaobaicz.safe.uti...
package com.qthegamep.spark.java.example.mapper; import com.qthegamep.spark.java.example.dto.ErrorResponseDTO; import com.qthegamep.spark.java.example.model.ErrorType; import com.qthegamep.spark.java.example.service.ConverterService; import org.eclipse.jetty.http.MimeTypes; import static spark.Spark.notFound; public...
module Narradar.Constraints.Unify where import Control.Exception (assert) import qualified Data.Map as Map import Data.Maybe (isJust) import Data.Term hiding (unify, unifies) import qualified Data.Term as Term import Narradar.Types.Term unifies x y = isJust (unify x y) unifies' x y = isJust (unify' x y) matches' x y...
static struct NODETREELINK *nodelinktree_find_closest(struct NODETREELINK *link, hash_t hashid) { if(!link) return NULL; while(1) { hash_t linkhash = link->node->hashid; struct NODETREELINK *leaf = NULL; if(linkhash == hashid) return link; leaf = link->leafs[linkhash < hashid]; if(!leaf) ...
package com.ampro.robinhood.endpoint.authorize.methods; import com.ampro.robinhood.net.ApiMethod; import com.ampro.robinhood.Configuration; /** * A base class for Authorization (log in/out) ApiMethods. * * @author Jonathan Augustine */ public abstract class Authorize extends ApiMethod { protected Authorize(Conf...
<?php namespace app\user\controller; use think\facade\View; use think\facade\Request; class Img{ public function index(){ } }
<?php declare(strict_types=1); namespace Tulia\Theme\Tulia\Lisa; use Tulia\Component\Theme\AbstractTheme; /** * @author Adam Banaszkiewicz */ class Theme extends AbstractTheme { protected $thumbnail = '/assets/theme/tulia/lisa/thumbnail.jpg'; protected $info = 'First theme created for Tulia CMS!'; pro...
class C def self.singleton_method_added(m) puts "Method #{m} was just defined." end end
<?php namespace app\models; use Zookeeper; /** * Created by PhpStorm. * User: liuzijian * Date: 2019/2/12 * Time: 11:01 */ class ClusterZkModel extends BaseZkModel { /** * @var Zookeeper */ private $zookeeper; /** * @var Callback container */ private $callback = array(); ...
1 2 3 4 5 6 7 8 9 10 11 12 0.1006 0.0697 0.0588 0.0533 0.112 0.0703 0.0575 0.0531 1.875 0.8943 0.4416 0.203 0.1486 0.1101 0.0706 0.0673 0.1303 0.0853 0.0785 0.0627 0.3423 0.0845 0.0692 0.0598 0.1882 0.1175 0.0817 0.0699 0.2789 0.1133 0.0875 0.0718 0.1788 0.1036 0.0817 0.0675 0.1651 0.1034 0.0814 0.0664 0.4283 0.0996 0....