text stringlengths 27 775k |
|---|
require 'spec_helper'
require 'pincers/core/base_backend'
require 'pincers/core/helpers/form'
describe Pincers::Core::Helpers::Form do
let!(:backend) do
be = Class.new(Pincers::Core::BaseBackend).new
allow(be).to receive(:search_by_xpath) { |el, sel| el[:childs] }
allow(be).to receive(:extrac... |
\<*drive*>:\Programme\Microsoft SQL Server\\*nnn*\\
|
const ACTIVATION_TYPE = "Sigmoid";
const SigmoidDeserializer = function(activationData) {
if (activationData.type !== ACTIVATION_TYPE) {
return false;
}
return new Sigmoid();
}
const SigmoidSerializer = function(activation) {
if (activation.type !== ACTIVATION_TYPE) {
return false;
... |
#/bin/sh
curl -Lo /tmp/coursier https://git.io/coursier-cli
chmod +x /tmp/coursier
/tmp/coursier bootstrap \
-r jitpack \
-i user -I user:sh.almond:scala-kernel-api_2.12.10:0.9.0 \
sh.almond:scala-kernel_2.12.10:0.9.0 \
-f -o /tmp/almond
/tmp/almond --install \
-f --id rainier -N "Rainier (Scala 2.12)... |
<!-- toc -->
# 源代码解析方式
## 标识化 (Tokenization)
Rust程序编译过程的第一阶段是 [标记解析][tokenization]。
在这一过程中,源代码将被转换成一系列的标记 (token)。
> token:无法被分割的词法单元;在编程语言世界中等价于“单词”。
Rust包含多种标记,比如:
* 标识符 (identifiers): `foo`, `Bambous`, `self`, `we_can_dance`, `LaCaravane`, …
* 字面值 (literals): `42`, `72u32`, `0_______0`, `1.0e-40`, `"ferris was... |
using System.Diagnostics;
using Windows.UI.Xaml;
namespace DependencyProperties
{
public class MyDependencyObject : DependencyObject
{
public static readonly DependencyProperty
MyNumberProperty = DependencyProperty.Register(
"MyNumber",
typeof(int),
... |
Exercises from the book - Cracking the Coding Interview - 5th edition
=====================================================================
[http://www.crackingthecodinginterview.com/](http://www.crackingthecodinginterview.com/)
* [Arrays and Strings](arraysandstrings)
* [LinkedLists](linkedlists)
* [Recursion and Dy... |
#!/bin/bash -e
# wait tinc service
sv start /container/run/process/tinc || exit 1
# set -x (bash debug) if log level is trace
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper
log-helper level eq trace && set -x
TINC_HOSTNAME=$(echo $HOSTNAME | sed -e 's/[^a-zA-Z0-9\_]/_/g')
whil... |
import pygame, random
import shared
class Mob():
def __init__(self, img):
self.image = img
self.image.set_colorkey(shared.BLACK)
self.rect = self.image.get_rect()
# make the mob appear on screen randomly across it's width
self.reset()
def reset(self) -> None:
# allowing for the width of... |
package com.orion.generator;
import com.orion.generator.company.CompanyGenerator;
import org.junit.Test;
/**
* @author Jiahang Li
* @version 1.0.0
* @since 2021/8/19 17:44
*/
public class CompanyGeneratorTest {
@Test
public void gen1() {
for (int i = 0; i < 20; i++) {
System.out.print... |
import 'package:flutter/material.dart';
import 'package:lenses_calendar/constants/constants.dart';
class WeekDayTitle extends StatelessWidget {
const WeekDayTitle({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
List<Widget> titles = [];
for (int i = 0; i < kWeekDays.length;... |
using System;
using System.Linq;
using MetadataExtractor;
using MetadataExtractor.Formats.Exif;
namespace ExifInCSharp
{
public class DemoMitMetadataExtractor
{
public void ExtrahiereGPSInformationen(string filePath)
{
var allMetadata = ImageMetadataReader.ReadMetadata(filePath);
... |
require "dry-initializer"
require "guest"
# Locate the authenticated person or return a guest entity
#
class CurrentUser
extend Dry::Initializer
option :guest, default: proc { Guest.new }
# @param uid [String]
#
# @return [User, Guest]
#
def call(uid:)
# TODO: lookup dsi uid from renamed table and ... |
var initialState = false;
var myReducer = (state = initialState, action) =>{
if(action.type === 'TOGGLE_STATUS'){
state = !state;
return state;
}
return state;
}
export default myReducer; |
sh ./build_all.sh clang++
if [ "$?" = "0" ];then
echo "Built successfully"
sh ./run_all.sh
echo "Successfully ran all samples"
else
echo "Build failed! (code: $?)"
exit $?
fi
|
using System.Collections.Generic;
using UnityEngine;
namespace droid.Runtime.ScriptableObjects.SerialisableDictionary {
public abstract class SerializableDictionary<TK, TV> : ISerializationCallbackReceiver {
public Dictionary<TK, TV> _Dict;
[SerializeField] TK[] _keys;
[SerializeField] TV[] _values;
... |
using System.Collections.Generic;
using UnityEngine;
using Generator;
namespace Generator2D
{
public class DungeonBuilder2D : MonoBehaviour
{
[SerializeField] private GenerationSettings2D settings;
[SerializeField] private TilesPrefabs prefs;
[SerializeField] private Transform tilesPa... |
#!/bin/sh
GITREPO=${GITREPO:-"../github-slackbuilds"}
if [ "$1" = "" -o "$2" = "" ]; then
echo "Usage: $0 SOURCE DEST_CATEGORY"
echo " this makes a cp DEST_CATEGORY/SOURCE SOURCE"
echo " "
echo " USE: $0 --diff SOURCE DEST_CATEGORY"
echo " this makes a diff between SOURCE and DEST_CATEGORY/SOUR... |
(function (f, define) {
define(["./kendo.core", "./kendo.floatinglabel"], f);
})(function () {
var __meta__ = {// jshint ignore:line
id: "textbox",
name: "TextBox",
category: "web",
description: "The TextBox widget enables you to style and provide a floating label functionality to input elements",
... |
export interface IStatus {
feedback: string,
setCount: number,
verified: boolean
}
|
<?php
/**
* @author Paul Annesley
* @package Pheanstalk
* @licence http://www.opensource.org/licenses/mit-license.php
*/
class Pheanstalk_SocketWriteHistoryTest
extends UnitTestCase
{
public function testEmptyHistory()
{
$history = new Pheanstalk_Socket_WriteHistory(10);
$this->assertFalse($history->isFull(... |
//
// Created by Timothée Couble on 19/10/2019.
//
#ifndef LIGHT_HPP
# define LIGHT_HPP
#include <iostream>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "Shader.hpp"
namespace scene {
class ALight {
public:
explicit ALight(const std::string &name);
virtual ~ALigh... |
require 'java'
java_import 'org.apollo.game.action.Action'
java_import 'org.apollo.game.message.impl.DisplayTabInterfaceMessage'
java_import 'org.apollo.game.model.entity.EquipmentConstants'
java_import 'org.apollo.game.model.entity.Skill'
java_import 'org.apollo.cache.def.ItemDefinition'
# A `Message` to display the... |
# A shortcut function that simplifies usage of xclip.
# - Accepts input from either stdin (pipe), or params.
# ----------------------------------------------------
cb() {
local _scs_col="\e[0;32m"; local _wrn_col='\e[1;31m'; local _trn_col='\e[0;33m'
# Check that xclip is installed.
if ! type xclip > /dev/null 2>... |
package com.test.springBoot.clickhouse;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.test.springBoot.clickhouse.mapper.RequestLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Control... |
module A2V.Internal.Base where
import Data.Array
import qualified Data.Primitive.Array as PrimArray
import Data.Typeable
import Data.Vector as V
import GHC.Prim
import Unsafe.Coerce
data A2VArray i e = A2VArray
!i
!i
... |
test("Ensure")
command("COMMAND_B", 123, 23456, 3456789)
expect("@timestamp COMMAND_B *")
last = last_rec().split()
p1 = int(last[2])
p2 = int(last[4])
ensure(123 == p1) # <---
ensure(3456789 == p2) # <---
|
package operator
import (
"errors"
"io/ioutil"
"net"
"net/http"
"net/url"
"runtime"
"strings"
"time"
"github.com/rs/zerolog/log"
"github.com/wangpy/rtctunnel/channels"
)
func init() {
channels.RegisterFactory("operator", func(addr string) (channels.Channel, error) {
return New(strings.Replace(addr, "ope... |
import BaseResponse from './BaseResponse'
class BadRequest extends BaseResponse {
constructor(message: string) {
super(message, 400)
Object.setPrototypeOf(this, BadRequest.prototype)
}
}
export default BadRequest
|
package uk.ac.cdrc.data.utility.text.entity
import breeze.linalg.Counter.canMapValues
import breeze.linalg.{Counter, sum}
import uk.ac.cdrc.data.utility.text.DigitWordTokenizer
case class WordBag(data: Counter[String, Int]) {
def norm: Int = sum(data)
def pnorm: Int = sum(data.values map {v: Int => if (v > 0) v... |
module Kwery
module Executor
class NoTableScanError < StandardError
end
class Context
attr_accessor :schema, :stdin, :shards, :stats
def initialize(schema, stdin = nil, shards = nil, stats = {})
@schema = schema
@stdin = stdin
@shards = shards
@stats = stats... |
package stocker.portfolio.model
/**
* Created by marcin1 on 8/23/17.
*/
case class Stock(name: String, exchange: String) {
}
|
const { connect, disconnect } = require('../data/database');
const { subscription, installation, job } = require('../data/model');
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line global-require
require('dotenv').config();
}
const eraseAll = async () => {
await job.deleteAll();
};
const... |
json.array!(@verses) do |verse|
json.extract! verse, :id, :content, :number, :joze, :hezb, :uthman_taha_page
json.url verse_url(verse, format: :json)
end
|
/**************************************************************************
Copyright 2014 Allen Institute for Artificial Intelligence Foundation
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 Li... |
import {
table,
} from '../../src';
import {
expectTable,
} from '../utils';
describe('README.md usage/', () => {
it('basic', () => {
const data = [
['0A', '0B', '0C'],
['1A', '1B', '1C'],
['2A', '2B', '2C'],
];
const output = table(data);
expectTable(output, `
╔════╤════╤════... |
module CatchNotes
module CRUDMethods
module ClassMethods
private
def build_from_hash(hash)
send :new, hash
end
end
def self.included(klass) #:nodoc:
klass.extend ClassMethods
end
def initialize(attributes)
@attr = self.class.send :stringify_keys... |
package io.github.gaelrenoux.tranzactio
import cats.effect.Blocker
import zio.ZIO
import zio.blocking.Blocking
package object utils {
val ZCatsBlocker: ZIO[Blocking, Nothing, Blocker] = ZIO
.access[Blocking](_.get[Blocking.Service].blockingExecutor)
.map(exe => Blocker.liftExecutionContext(exe.asEC))
}
|
#pragma once
#include "../../../Common/Common/common.h"
#include "../../../Common/Network2/network2.h"
using namespace common;
#include "webvprog.h"
#include "marshalling_node.h"
#include "../Protocol/Src/visualprogram_Protocol.h"
#include "../Protocol/Src/visualprogram_ProtocolData.h"
#include "../Protocol/Src/visu... |
import { AfterFunction, DecorateFunction, MethodKind } from "./types";
export function calculateKey(
basekey: string,
params: { [key: string]: string }
): string {
let newkey = basekey;
if (typeof params === "object") {
newkey = Object.keys(params).reduce(function (p, c) {
return p.replace(":" + c, p... |
#!/bin/sh
set -e
cd $(dirname $0)
kungfu_run_flags() {
echo -q
echo -logdir logs
echo -w
echo -builtin-config-port 9100
echo -config-server http://127.0.0.1:9100/config
echo -np 1
}
kungfu_run() {
kungfu-run $(kungfu_run_flags) $@
}
train_flags() {
echo --data-dir $HOME/var/data/mnis... |
<?php
namespace App\Controllers;
use App\Models\ProdukModel;
use App\Models\KategoriModel;
class Etalase extends BaseController
{
public function __construct()
{
$this->produk = new ProdukModel();
$this->kate = new KategoriModel();
}
public function index()
{
$data = [
... |
# frozen_string_literal: true
require 'ui_bibz/ui/extensions/core/forms/surround_extension'
module UiBibz::Ui::Core::Forms::Texts
# Create a AutoCompleteField
#
# This element is an extend of UiBibz::Ui::Core::Component.
#
# ==== Attributes
#
# * +content+ - Content of element
# * +options+ - Options o... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const program = new commander_1.Command();
program
.parse(process.argv);
const length = program.args.length > 1 ? program.args[0] : null;
const input = program.args.length > 1 ? program.args[1] : n... |
package com.mvk.news.ui.newsfeed.adapter
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import com.mvk.news.data.model.NewsArticles
import com.mvk.news.data.repository.NewsRepository
import com.mvk.news.ui.base.BaseItemViewModel
import com.mvk.news.utils.common.TimeUtils
import com.mvk.ne... |
package com.kyawhut.atsycast.ui.splash
import android.os.Bundle
import androidx.activity.viewModels
import androidx.constraintlayout.motion.widget.MotionLayout
import com.kyawhut.atsycast.BuildConfig
import com.kyawhut.atsycast.R
import com.kyawhut.atsycast.data.network.response.UserResponse
import com.kyawhut.atsycas... |
package com.codeabovelab.tpc.web.ui
import com.codeabovelab.tpc.web.objf.FactoriesDefinition
import com.codeabovelab.tpc.web.jpa.RuleEntity
import com.codeabovelab.tpc.web.jpa.RulesRepository
import com.codeabovelab.tpc.web.rules.RulesLoader
import org.springframework.stereotype.Component
import org.springframework.tr... |
<?php
/**
* SPHPlayground Framework (http://playgound.samiholck.com/)
*
* @link https://github.com/samhol/SPHP-framework for the source repository
* @copyright Copyright (c) 2007-2018 Sami Holck <sami.holck@gmail.com>
* @license https://opensource.org/licenses/MIT The MIT License
*/
namespace Sphp\Html\M... |
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will... |
/*
* Copyright (c) 2018-2019 Cavium, 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this li... |
<?php
/**
* Created by PhpStorm.
* User: Thilina
* Date: 8/20/17
* Time: 1:31 PM
*/
namespace Classes\Cron\Task;
use Classes\SettingsManager;
use Documents\Common\Model\Document;
use Documents\Common\Model\EmployeeDocument;
use Employees\Common\Model\Employee;
use Utils\LogManager;
class DocumentExpiryNotificat... |
<?php
namespace ZealByte\Bundle\CatalogBundle\DependencyInjection
{
use ReflectionClass;
use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Compon... |
<?php
declare(strict_types=1);
namespace Manuxi\SuluEventBundle\Entity\Interfaces;
interface AuthoredTranslatableInterface
{
public function getAuthored(): ?\DateTime;
public function setAuthored(\DateTime $authored);
}
|
#!/usr/bin/env bash
set -eo pipefail
pip3 install --upgrade setuptools
pip3 install --upgrade pip
pip3 install emoji
repos=(grimoirelab-perceval grimoirelab-elk grimoirelab-sortinghat grimoirelab-kingarthur)
for r in "${repos[@]}"; do
echo "INSTALLING ${r}"
pip3 install -e "${REPOS_DIR}/$r";
done
pip3 install... |
require "active_support/concern"
module Clerk
module Authenticatable
extend ActiveSupport::Concern
protected
# Makes a request to the Clerk API to verify the session again and return
# the Session object. Subsequent calls to this method will return the cached
# Session object.
#
# NOTE:... |
#!/usr/bin/env ruby
# encoding: UTF-8
# (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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... |
// Copyright 2018-2019 Jan Feitsma (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* cameraEnum.hpp
*
* Created on: Sep 6, 2016
* Author: Tim Kouters
*/
#ifndef CAMERAENUM_HPP_
#define CAMERAENUM_HPP_
#include "RtDB2.h" // required for serialization
enum class cameraEnum
{
INVALID,
OMNIVISION,... |
import {
CancellationToken,
Disposable,
Event,
EventEmitter,
ExtensionContext,
Uri,
Webview,
WebviewView,
WebviewViewProvider,
WebviewViewResolveContext,
window,
workspace,
ViewColumn,
} from "vscode";
import * as path from "path";
import { binary2str } from "./utils";
export class CustomView... |
module Grains (square, total) where
import Data.Maybe (fromJust)
square :: Integer -> Maybe Integer
square x
| x < 1 = Nothing
| x > 64 = Nothing
| otherwise = Just . (2^) . pred $ x
total :: Integer
total = sum . map (fromJust . square) $ [1..64]
|
#!/usr/bin/env bash
docker logs --follow --details --timestamps --tail 32 $1
|
use euclid::{point2, rect, vec2, Point2D, Rect, Size2D};
use ImageBuffer;
/// Return the tiles on a tile sheet image.
///
/// Tiles are bounding boxes of non-background pixel groups surrounded by only background pixels or
/// image edges. Background color is the color of the bottom right corner pixel of the image. The... |
<?php
/**
* Copyright © 2015 ToBai. All rights reserved.
*/
namespace Tobai\GeoIp2\Model;
use Magento\Framework\App\Filesystem\DirectoryList;
/**
* Database model
*/
class Database
{
/**
* Databases directory in var
*/
const BASE_DIR = 'tobai-geoip';
/**
* @var \Magento\Framework\File... |
using Facebook.Unity;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIcontroller : MonoBehaviour
{
public GameObject LoginPanel;
public GameObject CustomPlayer;
public GameObject InitPanel;
public GameObject Client;
//SI EL USUARIO SE LOGUEO CORR... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
namespace SupermarketsChain.Data.Repositories.Contracts
{
using System;
using System.Linq;
using SupermarketsChain.Models;
public interface ISalesRepository : IGenericRepository<Sale>
{
IQueryable<Sale> GetAllByDateInterval(DateTime startDate, DateTime endDate);
}
}
|
package formulaide.ui.fields.editors
import formulaide.api.fields.DataField
import formulaide.api.fields.DeepFormField
import formulaide.api.fields.Field
import formulaide.api.types.Arity
import formulaide.ui.components.inputs.FormField
import formulaide.ui.components.inputs.Nesting
import formulaide.ui.utils.classes
... |
<?php
namespace Filament\Http\Middleware;
use Closure;
use Filament\Events\ServingFilament;
use Illuminate\Http\Request;
class DispatchServingFilamentEvent
{
public function handle(Request $request, Closure $next)
{
ServingFilament::dispatch($request);
return $next($request);
}
}
|
(ns sharkbot.flags
(:require [clojure.tools.cli :as cli]
[clojure.string :as string]))
(def opts (atom nil))
(defn getopt [key]
(-> @opts :options key))
(def flags
[["-s" "--server HOST" "IRC server to connect to"
:default "irc.freenode.net"]
["-p" "--port PORT" "Port number of IRC server"
... |
### Необходими материали за упражнението
1. Инсталирайте текстовия редактор [Mu](https://codewith.mu/en/download)
2. Картинки и други материали (https://www.dropbox.com/s/3yfoiguuasi7lym/meterials.zip?dl=0)
Трябва да се кипирате в директория `mu_code`.
# PyGame Zero
[Тук има повече документация за PyGame Zero](htt... |
const env = process.env.NODE_ENV // 环境变量
// 配置
let MYSQL_CONF
let REDIS_CONF
const SECURITY = {
secretKey: 'WEsd_123@#',
expiresIn: 60 * 60 * 24 * 30
}
const WX = {
appID: '',
appSecret: '',
loginUrl:
'https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_c... |
require 'spec_helper'
describe Pivotal::API do
describe '.initialize' do
it 'sets instance variables from the provided arguments' do
args = { project_id: 123456789 }
api = Pivotal::API.new(args)
expect(api.instance_variable_get(:'@project_id')).to eq args[:project_id]
end
end
describe ... |
package week36;
import java.util.Arrays;
/**
* @author Torstein Strømme
*/
public class Insertion {
/**
* Sort the array using insertion sort.
*
* @param arr the array to be sorted
*/
public static void sort(Comparable[] arr) {
for (int i = 0; i < arr.length; i++) {
... |
from random import choice
class QuotationSelector(object):
def __init__(self, quotes_filename):
with open(quotes_filename) as quotes_file:
self.quotes = quotes_file.readlines()
def select(self):
return choice(self.quotes).strip() |
WITH FKs AS
(
-- Finds all the tables that serve as root
SELECT
S.name As SchemaName
, S.schema_id
, T.name AS TableName
, T.object_id
, C.name AS ColumnName
, C.column_id
, I.name AS IndexName
, I.index_id
, CAST(0 AS int) AS TierId
, CAST(NULL AS ... |
-- ----------------
-- 增加客户端区分 pm_order_fpzz
-- ----------------
ALTER TABLE `pm_order_fpzz`
ADD COLUMN `client_type` tinyint(2) DEFAULT 1 AFTER `request_number`; |
// Original bug: KT-3629
class Empty<T>
class Identity<T>(val value: T) {
companion object {
infix fun <A> wrap(a : A): Identity<A> = Identity(a)
}
}
fun dummy(): Identity<Empty<Int>> = Identity.wrap(Empty()) // ok
fun dummy2(): Identity<Empty<Int>> = Identity wrap Empty() // type inference failed
|
use std::ops::Not;
/// Isotonic regression result.
pub struct Regression {
/// Aggregated weights, i.e., the number of points if all weights were one.
pub weights: Vec<f64>,
/// Aggregated values.
pub values: Vec<f64>,
}
/// An ordering for `Regression`.
#[derive(Clone, Copy, Debug)]
pub enum Ordering... |
/*
`z-skip` - Skip compilation of this element
@ORDER 10
Stops Zam from parsing content within the element.
@CODE
<div z-skip>
{{ this will appear as it is (including curly braces) }}
<div z-font-size="'12pt'">Directives will not be parsed</div>
</div>
<script>
zam(document.body);
</script>
@RESULT
*/
export defau... |
import { SharedModule } from './shared/shared.module'
import { async, ComponentFixture, TestBed } from '@angular/core/testing'
import { APP_BASE_HREF } from '@angular/common'
import { Route } from '@angular/router'
import { RouterTestingModule } from '@angular/router/testing'
import { Component } from '@angular/core'
i... |
# <center>porter部署教程</center>
## 环境要求
- jdk
- zookeeper
- zkui(方便查看zookeeper集群的信息,没硬性要求可以不配,不影响同步功能)
- mysql
- node.js
## 环境配置过程
1. vmware安装的centos(其他Linux环境理论一样,未测试)
2. 安装jdk(我使用的是jdk1.8)
3. 安装zookeeper和zkui(可选)
4. 安装node.js(port-ui需要node环境)
5. 需要mysql服务器,porter-boot同步mysql数据采用的是canal组件(不需要安装canal,只需要在mysql中配置... |
/*******************************************************************************
* Copyright 2015-2016 - CNRS (Centre National de Recherche Scientifique)
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for a... |
'use strict';
function maskCtrl($scope) {
$scope.maskOpt = {
autoclear: false
};
}
angular.module('app').controller('maskCtrl', ['$scope', maskCtrl]); |
/*******************************************************
*
* 作者:胡庆访
* 创建日期:20131210
* 说明:此文件只包含一个类,具体内容见类型注释。
* 运行环境:.NET 4.0
* 版本号:1.0.0
*
* 历史记录:
* 创建文件 胡庆访 20131210 09:45
*
*******************************************************/
using System;
using System.Collections;
using System.Collections.Generic... |
import {computed} from 'mobx';
import BaseStore from './BaseStore';
import ChartLine from '../model/ChartLine';
import randomColor from 'randomcolor';
class ReadingStore extends BaseStore {
@computed
public get readings() {
return [
{
timestamp: 'Page A', bedroom: 4000, loung... |
-module(rafter_backend_echo).
-behaviour(rafter_backend).
%% Rafter backend callbacks
-export([init/1, read/2, write/2]).
init(_) ->
ok.
read(Command, State) ->
{{ok, Command}, State}.
write(Command, State) ->
{{ok, Command}, State}.
|
import Mod from "mod/Mod";
import Message from "language/dictionary/Message";
import Item from "game/item/Item";
export default class Unbreakable extends Mod {
readonly messageVersion: Message;
onGameScreenVisible(): void;
onGameStart(isLoadingSave: boolean, playedCount: number): void;
onItemDamage(item... |
//go:build !windows && !plan9
// +build !windows,!plan9
package syslog
import (
"github.com/eolinker/eosc"
"github.com/eolinker/eosc/formatter"
sys "log/syslog"
"strings"
)
//CreateTransporter 创建syslog-Transporter
func CreateTransporter(conf *Config) (*SysWriter, error) {
sysWriter, err := newSysWriter(conf, ""... |
package sfomuseum
import (
"context"
"github.com/sfomuseum/go-sfomuseum-airfield"
"testing"
)
func TestSFOMuseumLookup(t *testing.T) {
wofid_tests := map[string]int64{
"YUL": 102554351,
"EGLL": 102556703,
"162": 1360695653,
"260": ... |
#!/usr/bin/env bash
#################################################
# Create a new dev branch that is sync with the
# main repo's master branch.
#################################################
git checkout master
git pull --rebase main master
git push origin master
git checkout -b dev
git push origin dev
git bran... |
#+named-readtables
(named-readtables:in-readtable :standard)
(uiop:define-package :com.andrewsoutar.bootstrap
(:documentation "Machinery for bootstrapping things")
(:nicknames :com.andrewsoutar.bootstrap/bootstrap)
(:use :cl)
(:use :asdf :alexandria :anaphora :bordeaux-threads :named-readtables)
(:import-f... |
package hahaha.lalala.file;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
public class TestFile2 {
@Test
public void test01() throws IOException {
File file = new File("D:\\资料整理\\作业\\day09_homework\\day09_课后练习.md");
System.out.println("file.getPath() = " + file.getP... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:petmo/db/pets_database.dart';
import 'package:petmo/models/attributes/abstract_pet_attribute.dart';
import 'package:petmo/models/pet/pet.dart';
import 'package:petmo/screens/create/image_banner.dart';
import 'package:petmo/... |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'style_data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
StyleData _$StyleDataFromJson(Map<String, dynamic> json) {
re... |
CREATE TABLE MEMBER(
ID NUMBER PRIMARY KEY,
NAME VARCHAR2(255)
);
INSERT INTO MEMBER(ID,NAME)VALUES(1,'QWERTY'); |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 19, 2019 at 04:01 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
export type MapProps<T, V> = {
[P in keyof T]: V
};
export type Writable<T> = {
-readonly [K in keyof T]: T[K]
}
export type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using TMPro;
public class button_next_level : MonoBehaviour
{
public Button yourButton;
public string newLevelString;
void Start()
{
Button btn = yourButton.GetComponent<Button>();
btn.onClick.AddListener(nex... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using FluentValidation.Attributes;
using Nop.Admin.Models.Customers;
using Nop.Admin.Models.Discounts;
using Nop.Admin.Models.Stores;
using Nop.Admin.Validators.Catalog;
using Nop.Web.Framework;
using Nop.Web.Framework... |
---
author: Silvia Canelón
categories:
- example
draft: false
excerpt: Biomedical engineer turned informaticist, curious about all intersections
of data and society.
layout: single-sidebar
links:
- icon: link
icon_pack: fas
name: https://silvia.rbind.io
url: https://silvia.rbind.io
- icon: github
icon_pack: f... |
---
title: tags
date: 2016-02-21 16:45:58
type: "tags"
---
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.