text stringlengths 27 775k |
|---|
import { Callback, State } from './typedef';
import { SignalIndicator } from '../WebSocket/typedef';
import { SerializerService } from '../Serializer';
const NAME = 'react-use-socket';
export class StorageService<T> {
readonly #storage: Storage;
readonly #name: string;
#state: State<T> | null;
constructor... |
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Wed 11 Dec 15:14:08 2013 CET
#
# Copyright (C) 2011-2013 Idiap Research Institute, Martigny, Switzerland
"""Tests the IO functionality of bob.bio.base.score."""
import numpy
import tempfile
import os
import shutil
import pkg_... |
@file:JvmName("BunchCleanup")
package org.jetbrains.bunches.cleanup
import com.github.ajalt.clikt.parameters.options.default
import com.github.ajalt.clikt.parameters.options.flag
import com.github.ajalt.clikt.parameters.options.option
import org.jetbrains.bunches.file.BUNCH_FILE_NAME
import org.jetbrains.bunches.file... |
package com.xbw.spring.boot.beetl;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.xbw.spring.boot.project.dao.UserDao;
import com.xbw.spring.boot.project.model.User;
import com.xbw.spring.boot.project.service.UserService;
import org.beetl.sql.c... |
---
autoGroup-2: 基本概念
title: JVM内存结构
---
### JVM内存结构
**PS:从processon.com上借鉴是最高效的**
<img :src="$withBase('/assets/img/jvm/jvm-1-1-1.png')" width="1000" height="800">
#### 大致流程
1. 类加载子系统将.class文件进行一系列加载,加载到运行时数据区
2. 执行引擎执行运行时数据区的内容
3. 弄差不多了,执行引擎再回收垃圾 |
v$session视图 中LAST_CALL_ET列的 重要性
好吧,我们都知道v $ session视图在oracle中的重要性。我们经常在此表中查找状态,sid,sql_text,程序名称和其他与对象相关的东西。但是其中还有一个重要的列,我们经常会忽略它,即LAST_CALL_ET
如果会话STATUS当前处于活动状态,则该值表示自会话变为活动状态以来经过的时间(以秒为单位)。
如果会话状态当前为非活动状态,则该值表示自会话变为非活动状态起所经过的时间(以秒为单位)。
因此,这是一本很棒的列,可以了解系统上会话正在执行的操作,例如,
select s.sid||','||s.serial# sess,
... |
# 爬虫项目
> powered by
## TODO
+ 提供自定义模板,提供自定义规则
+ 使用 `electron` 打包并发布到release
|
struct Solution;
use std::collections::HashSet;
use std::collections::VecDeque;
use std::iter::FromIterator;
impl Solution {
fn minimum_jumps(forbidden: Vec<i32>, a: i32, b: i32, x: i32) -> i32 {
let mut visited: HashSet<(i32, bool)> = HashSet::new();
let mut queue: VecDeque<(i32, bool, i32)> = Ve... |
package com.jackwdev
object BinarySearch {
// Pass in the array, the value to search for,
// the index of the start of the array, and the index of the end of the array
// The passing of index values will allow the same array to be utilised throughout each
// recursion, "filtering" out values that have bee... |
<?php namespace Kareem3d\PathManager;
abstract class Path {
/**
* Base path.
*
* @var string
*/
protected $path;
/**
* Base url.
*
* @var string
*/
protected static $baseUrl;
/**
* Base server path.
*
* @var string
*/
protected static $basePath;
/**
* Constructor.
*
* @param ... |
use std::sync::{Arc, RwLock};
use common::msg::Msg;
use common::types::LocalizedDetection;
use common::types::NavigatorState;
use common::types::RobotParams;
use common::types::SystemStatus;
use common::utils::LastValue;
use gdnative::api::*;
use gdnative::prelude::*;
use crate::components::Context;
use crate::ui_sta... |
for filename in UCRProfile-*.htm
do
echo $filename
sed "3,74d" $filename | sed -e 's/\ //g; s/<[^>]*>//g; /<\!/,/>;/d; /^[[:space:]]*$/d;' |
sed "1,27d" | sed -e '/ choose a /d' -e '/Browse/d' |
tac | sed "1,1167d" | tac >> 'cleanedProfiles.txt'
done
|
import { dispatchWrap } from '@/utils/dispatchUtil';
import { ForgetModelType, ForgetStateType } from './model';
import { ConnectState } from '@/typings/connect';
export interface ForgetPageModelState extends ForgetStateType {
submitting: any
}
export function mapStateToProps(state: ConnectState<ForgetStateType>):... |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework.Api;
using NUnit.Framework;
namespace Sztorm.Collections.Tests
{
public partial class Array2DTests
{
public static class Index1DOf
{
public static class Any
... |
package io.kixi.uom
import java.lang.RuntimeException
class NoSuchUnitException(symbol:String) :
RuntimeException("Unit for symbol $symbol is not recognized.")
|
module TabularData
class ContainerConfig
CONFIG_FILE_PATH = "#{Rails.root}/config/tables/"
def initialize(container_name, client_name)
@container_name = container_name
@client_name = client_name
end
def settings
container_yaml = YAML.load_file(config_file)
key = "default"
... |
<h4
style="border-bottom: 1px solid #bbb; margin-bottom: 1rem;float: left;margin-top: 2rem; width:100%"
>Veículo: </h4>
<div class="form-group row">
<label for="placa_veiculo" class="col-md-1 col-form-label col-form-label-lg">Placa: </label>
<div class="col-md-3">
<input
type="text"
name="placa_v... |
Old-skool tunnel effect.
Note that this is built at two different resolutions. Try 'em both.
This demonstrates:
- Repeating pixels to effectively lower resolution, saving memory and compute
time. In this case, pixels are handled in 2x2 groups, reducing 800x600 to
an effective resolution of 400x300, or 640x4... |
package com.test.tribal.rest.unsplashapi
import com.test.tribal.models.Photos
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Headers
import retrofit2.http.Query
interface InterfaceUnsplash {
@GET("/photos/random")
suspend fun getPhotos(@Query("page") pa... |
#include <stdio.h>
#include <stdlib.h>
#define NUM_NODES 9
#define INFINITY (-1)
#define TRUE 1
#define NIL (-1)
#define NOT_CONNTECTED (-1)
void initialize( int key[], int p[], int finished[], int root ) {
int i;
for( i = 0; i < NUM_NODES; i++) {
key[i] = INFINITY;
p[i] = NIL;
finished[i] = NIL;
}
key... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.cloud.config;
import org.junit.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.spring... |
## Описание
Библиотека для isEngine framework на JavaScript.
## Ссылки
* [Официальный сайт](https://isengine.org);
* [Telegram](https://t.me/isengine);
* [Youtube](https://www.youtube.com/channel/UCLMf_v8P2O5JQ8ec6zkquDw);
* [Composer](https://packagist.org/packages/isengine/);
* [Github](https://github.com/isengine... |
export default abstract class Controller {
// deno-lint-ignore no-explicit-any
[key: string]: any
constructor() {}
log(msg: string) {
console.log(msg);
}
}
|
@file:Suppress("UNCHECKED_CAST")
package io.github.matrixkt.models.events
import kotlinx.serialization.*
public sealed class Event<out Content> {
/**
* The fields in this object will vary depending on the type of event.
* When interacting with the REST API, this is the HTTP body.
*/
public abs... |
//this module holds the declaration for all functions client side
#pragma once
#include "Thread.h"
typedef struct Client_Arguments {
char logfile[MAX_PATH_FILE];
int s_port;
char username[MAX_USERNAME];
char mode[6];
const char file[MAX_PATH_FILE];
HANDLE *MutexRcv;
char buffer[256];
FILE *f_... |
package com.copperleaf.kudzu.parser.expression
import com.copperleaf.kudzu.node.Node
import com.copperleaf.kudzu.node.expression.InfixOperatorNode
import com.copperleaf.kudzu.node.expression.InfixrOperatorNode
import com.copperleaf.kudzu.node.expression.PostfixOperatorNode
import com.copperleaf.kudzu.node.expression.P... |
#pragma once
#include "common.h"
#include "interfaces.h"
class ModeDetector
{
public:
ModeDetector(IOPin *pin) : pin(pin)
{
pin->set_mode(IOPin::Modes::IN_PU);
}
Machine::Mode get_mode()
{
return (pin->is_high()) ? Machine::Mode::WATER_MODE : Machine::Mode::STEAM_MODE;
}
... |
package de.debuglevel.streetdirectory.street.extraction
import de.debuglevel.streetdirectory.street.Street
interface StreetExtractor {
fun getStreets(streetExtractorSettings: StreetExtractorSettings): List<Street>
} |
using ImageSmooth
using Test, ReferenceTests, TestImages
using FileIO
using ImageTransformations, ImageQualityIndexes
using ImageBase
using OffsetArrays
include("testutils.jl")
@testset "ImageSmooth.jl" begin
include("algorithms/l0_smooth.jl")
end
|
#!/bin/bash
echo "Screenshot John Hopkins Covid-19 ArcGIS page"
node index.js -u "https://www.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6"
echo "Screenshot John Hopkins Covid-19 ArcGIS world map"
node index.js -u "https://www.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd402994234... |
#!/bin/bash
set -e
# 配置 Kmod
./configure --prefix=/usr \
--bindir=/bin \
--sysconfdir=/etc \
--with-rootlibdir=/lib \
--with-xz \
--with-zlib
# 编译 Kmod
make
# 安装 Kmod,并创建与 Module-Init-Tools (曾经用于处理 Linux 内核模块的软件包) 兼容的符号链接... |
import { Database } from '@vuex-orm/core'
import Token from '~/database/Token'
import tokenStore from '~/database/Token/store'
import WaffleLayer from '~/database/WaffleLayer'
import Waffle from '~/database/Waffle'
import waffleStore from '~/database/Waffle/store'
const database = new Database()
database.register(T... |
package cz.cuni.mff.odcleanstore.conflictresolution.resolution.comparators;
import org.openrdf.model.Value;
import cz.cuni.mff.odcleanstore.conflictresolution.CRContext;
/**
* Comparator of literals by the length of their lexical representation.
* @author Jan Michelfeit
*/
public class LexicalLengthComparator imp... |
namespace Monolith.Unity.Examples.TicTacToe.Models
{
public enum GameTurn : byte
{
None,
Player1,
Player2,
Ai,
}
} |
---
title: "Digital Dreams"
site_link: "https://www.digitaldreamsgames.com/"
description: "Design and develop playful experiences."
location: "Utrecht"
active: true
active_from: "2010-01-01"
active_to: ""
tags: []
date: "2017-05-18T11:31:05Z"
--- |
const { readdirSync } = require("fs")
const path = require("path")
const config = require("../config.json")
module.exports = {
name: "도움말",
async execute(message) {
const embed = new (require("discord.js")).MessageEmbed()
.setTitle(`명령어 목록 | 접두사 : ${config.prefix}`)
.setColor("B... |
using System.Collections.Generic;
using DAL.Common;
using Domain;
using Microsoft.EntityFrameworkCore;
namespace DAL.Repositories
{
public class BookRepository : Repository<Book>, IBookRepository
{
public BookRepository(BooksDbContext context) : base(context)
{
}
protected over... |
namespace SoundFingerprinting.Tests.Integration
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Moq;
using NUnit.Framework;
using SoundFingerprinting.Audio;
using SoundFingerprinting.Audio.NAudio;
using SoundFingerprinting.Builder;
... |
<?php
namespace Mgilet\NotificationBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class AbstractNotification
* Notifications defined in your app must implement this class
*
* @ORM\Table(name="notification")
* @ORM\Entity(repositoryClass="Mgilet\Notificati... |
package cn.xianyum.system.controller;
import cn.xianyum.common.utils.DataResult;
import cn.xianyum.system.entity.request.PushLogRequest;
import cn.xianyum.system.entity.response.PushLogResponse;
import cn.xianyum.system.service.PushLogService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.anno... |
create schema gradebook;
show search_path;
set search_path to gradebook;
create table students (
student_id SERIAL primary key,
first_name VARCHAR(50),
last_name VARCHAR(50),
grade INT
);
INSERT INTO students (first_name, last_name, grade) VALUES ('Rubetta', 'Arnault', 71);
INSERT INTO students (first_name, las... |
using System.Collections.Generic;
using System.IO;
namespace Login_Viewer
{
public class UseXML
{
private string path;
private TmpInfo infos;
public UseXML()
{
infos = TmpInfo.Instance;
loadXML();
}
private void loadXML()
{
... |
%%%-------------------------------------------------------------------
%%% @author aurawing
%%% @copyright (C) 2016, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 20. 七月 2016 上午10:30
%%%-------------------------------------------------------------------
-author("aurawing").
-define(F_ID, <<"_id">>).
-define(F_TYPE, <<... |
/*jshint globalstrict:false, strict:false */
/*global fail, assertTrue, assertEqual */
////////////////////////////////////////////////////////////////////////////////
/// @brief test the authentication (dual ldap)
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2021 ArangoDB GmbH, Cologne, Germany
///
/// Licensed... |
# Mozi.HttpEmbedded 嵌入式Web服务器
## 项目介绍
Mozi.HttpEmbedded是一个基于.Net构建的嵌入式Web服务器,为.Net App提供web服务功能。
> 嵌入式的目标不是单片机,而是.Net应用程序。
> 此项目并不会实现非常丰富的大型Web服务器功能
> 项目基于.Net Framework 4.0开发,也可转换为.Net Core/.Net Standard项目,亦可作为.Net5.0项目引用库
## 特点
Mozi.HttpEmbedded在Socket之上使用异步单线程模型,构建了一个HTTP服务器。
1. 嵌入式
本项目可作为.Net应用的内嵌Web服务器,亦... |
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using UnityEditor;
using UnityEngine;
using Chisel.Core;
using Chisel.Components;
using Object = UnityEngine.Object;
using UnityEngine.SceneManagement;
namespace Chisel.Editors
{
[Serializable]
public enum SelectionType... |
-- file:xml.sql ln:306 expect:true
SELECT XMLPARSE(DOCUMENT '<!DOCTYPE foo [<!ENTITY c SYSTEM "/etc/no.such.file">]><foo>&c
|
using System;
using System.Runtime.InteropServices;
namespace Klak.Ndi
{
public enum FourCC : uint
{
UYVY = 0x59565955,
UYVA = 0x41565955
}
public static class PluginEntry
{
#region Common functions
[DllImport("KlakNDI")]
public static extern IntPtr NDI_Get... |
package net.crimsonwoods.easydatabinding.models
import android.content.Context
import android.content.res.Resources
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.t... |
use prettytable::{Table, Row, Cell};
use crate::server::detect::{self, VersionQuery};
use crate::server::options::Info;
use crate::server::package::Package;
use crate::server::linux;
use crate::server::macos;
use crate::server::init::find_distribution;
use crate::table;
pub fn info(options: &Info) -> anyhow::Result<... |
/*
* Copyright (c) 2021, dSPACE GmbH, Modelica Association and contributors
*
* Licensed under the 3-Clause BSD license(the \"License\");
* you may not use this software except in compliance with
* the License.
* ... |
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart' hide MessageHandler;
class ApnsRemoteMessage {
ApnsRemoteMessage.fromMap(this.payload);
final Map<String, dynamic> payload;
String? get actionIdentifier => UNNotificat... |
# Bingo Game Project 2020
Author Name: Andrea Treacy
Compiler: Borland
Date: 13/05/2020
## Description
Bingo game program where the user selects from the menu:
(1) Enter player's 6 numbers
The user enters their own 6 numbers
(2) Generate game's 6 random numbers
The game generates its 6 numbers
(3)... |
/*
* Copyright (C) 2011-2012 spray.cc
*
* 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 agreed t... |
-----------------------------------------------------------------------------
-- |
-- Copyright : (c) Chris Moore, 2018
-- License : MIT
-- Maintainer : 0xCM00@gmail.com
-----------------------------------------------------------------------------
module Alpha.Canonical.Common(module X) where
import Alpha.Can... |
@using HRMapp.Models
@model ProductionTask
<h3>@Model.Name</h3>
<p>ID: @Model.Id</p>
<p>Duur: @Model.Duration.Hours uur en @Model.Duration.Minutes minuten</p>
<br />
<h4>Omschrijving:</h4>
<p>@Model.Description</p>
<br />
@if (Model.RequiredSkillsets.Count > 0)
{
<h4>Nodige skillsets:</h4>
<ul>
@foreac... |
use std::ffi::{OsStr, OsString};
use std::io;
use std::os::unix::ffi::{OsStrExt, OsStringExt};
use heim_runtime as rt;
use crate::{Pid, ProcessError, ProcessResult};
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
enum Delimiter {
Null,
Space,
}
impl Delimiter {
fn as_char(self) -> char {
match sel... |
class Parrot
def initialize type, number_of_coconuts, voltage, nailed
@type = type
@number_of_coconuts = number_of_coconuts
@voltage = voltage
@nailed = nailed
end
def speed
public_send("#{@type}_speed")
# throw "Should be unreachable!"
end
def european_parrot_speed
base_speed
... |
<?php
class KtpsController extends CI_Controller
{
public function __construct(){
parent::__construct();
$this->load->model('SuratModel');
if($this->session->has_userdata('session_id')==null){
redirect('login');
}
}
public function index() {
$data['ktps'] = $this->SuratModel->view_data('dbsurat_ktps')... |
/*
Copyright 2021 Sojan James
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 agreed to in ... |
(ns advent.2018.day4
"Advent of Code 2018, day 4: Repose Record"
(:require [advent.helpers :as h]))
(def puzzle-input (h/slurp-resource "2018/day4.txt" h/slurp-lines))
(def row-pattern #"\[\d{4}-(\d{2})-(\d{2}) (\d{2}):(\d{2})] (.+)")
(def guard-no-pattern #"Guard #(\d+) begins shift")
; XXX: No February dates ... |
"""Vista de usuarios."""
# Django REST Framework
from rest_framework import status, mixins, viewsets
from rest_framework.decorators import action
from rest_framework.permissions import (
AllowAny,
IsAuthenticated,
)
from rest_framework.response import Response
# Modelos
from andromeda.users.models import User... |
package net.apptronic.core.entity.extensions
import net.apptronic.core.base.SubscriptionHolder
import net.apptronic.core.base.SubscriptionHolders
import net.apptronic.core.entity.Entity
import net.apptronic.core.entity.base.Property
import net.apptronic.core.entity.base.Value
fun forEachChangeAnyOf(vararg properties:... |
cat << EOF
<?xml version="1.0"?>
<!--
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, Versio... |
// SPDX-License-Identifier: Apache-2.0
//! SSE related functions
use crate::interrupts::XSAVE_AREA_SIZE;
use crate::snp::cpuid_count;
use core::arch::asm;
use x86_64::registers::xcontrol::{XCr0, XCr0Flags};
use xsave::MxCsr;
/// Setup and check SSE relevant stuff
pub fn init_sse() {
const XSAVE_SUPPORTED_BIT: ... |
using Distributed
struct DistributedSum{T}
data::Vector{T}
end
# Construct from a distributed sum from a
# function that returns the elements of the sum.
function DistributedSum(f::Function, n::Integer)
# Assign the matrices to the first `n` workers.
return DistributedSum([@spawnat(workers()[ni], f(ni)) for ni ... |
/*
* 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 ... |
#ifndef CIRCLE_H
#define CIRCLE_H
#include "RCube/Core/Graphics/OpenGL/Mesh.h"
#include "glm/gtc/constants.hpp"
namespace rcube
{
/**
* Creates mesh data representing a solid 2D disk
* @param radius Radius of the disk
* @param radial_segments NUmber of segments along the radius
* @param theta_start Starting angl... |
using UnityEngine;
using System.Collections;
public class FlyingMovement : MonoBehaviour
{
public Vector3[] waypoints;
private int waypointindex = 0;
void Update()
{
transform.position = Vector3.MoveTowards(transform.position, waypoints[waypointindex], Time.deltaTime);
if (Vector3.Dis... |
inherited ResourcesFrame: TResourcesFrame
object Splitter1: TSplitter [0]
Left = 149
Top = 0
Width = 5
Height = 280
ExplicitHeight = 342
end
object lblError: TLabel [1]
Left = 160
Top = 316
Width = 34
Height = 13
Caption = 'lblError'
end
object tvTree: TTreeView [2]
... |
-- file:update.sql ln:118 expect:true
create table part_b_10_b_20 partition of range_parted for values from ('b', 10) to ('b', 20)
|
package com.matthiaslapierre.flyingbird.ui.game
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PorterDuff
import android.view.SurfaceHolder
import androidx.annotation.WorkerThread
import com.matthiaslapierre.flyingbird.Constants
import com.matthiasla... |
part of kcaa_controller;
void handleShipList(
Assistant assistant, AssistantModel model, Map<String, dynamic> data) {
// Reset the equipping ship info.
for (var equipment in model.equipmentMap.values) {
equipment.ship = null;
}
Set<int> presentShips = new Set<int>();
for (var shipData in (data["ships... |
require "faceted_search/railtie"
module FacetedSearch
module Rails
require "faceted_search/engine"
end
end
|
module ThreeScaleToolbox
module ResourceReader
##
# Load resource from different types of sources.
# Supported types are: file, URL, stdin
# Loaded content is returned
def load_resource(resource, verify_ssl)
# Json format is parsed as well
YAML.safe_load(read_content(resource, verify_s... |
def upgrade(ta, td, a, d)
# are we a role? If no, nothing to do.
# - crowbar-committing is always true for roles, and generally false for
# proposals (except when applying)
# - the pacemaker barclamp adds an required_post_chef_calls attribute to the
# deployment part of the role
return [a, d] unless... |
#!/usr/bin/env python
"""
Saves all the Isophonics dataset into a jams. The structure of the Isophonics
dataset is:
/Isophonics
/Artist Annotations
/feature
/Artist
/Album
/lab (or text) files
Example:
/Isophonics
/The Beatles Annotations
/segla... |
const io = require('socket.io-client');
const http = require('http');
const ioBack = require('socket.io');
export class ServerHandler {
constructor() {
this.httpServer = http.createServer().listen();
this.ioServer = ioBack(this.httpServer);
this.ioServer.on('connection', (serverSocket) => {
this.s... |
DDEX-Deserialiser
=================
A DDEX XML batch deserialiser generated by [7digital/XsdToObject](https://github.com/7digital/XsdToObject)
# How To Update Nuget Package
1. Increment the AssemblyInfo.cs version
2. Rebuild the project in Release configuration
3. Run: .nuget\nuget pack src\DDEX-Deserialiser\DDEX-De... |
import {ConfigurationInterface} from './Configuration';
import {EventDispatcher, EventDispatcherInterface, EventInterface, ListenerCallbackInterface} from './Event';
/**
* Base object interface
*/
export interface AjaxifyObjectInterface
{
/**
* Run the object's cleanup code
*
* The object is not s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace _10FlipServer.Models
{
public class Deck
{
public Stack<Card> Cards;
}
}
|
#!/bin/sh
set -ex
USER=$(cat ./user)
PASSWORD=$(cat ./password)
exec bitcoind -rpcuser="$USER" -rpcpassword="$PASSWORD" "$@"
|
<#
.SYNOPSIS
.DESCRIPTION
.EXAMPLE
.INPUTS
.OUTPUTS
#>
[CmdletBinding()]
param(
[bool]$DotSourceModule = $false
)
#Get function files
Get-ChildItem $PSScriptRoot\ -Recurse -Include "*.ps1" -Exclude "*.ps1xml" |
ForEach-Object {
if ($DotSourceModule) {
. $_.FullName
} else {
$ExecutionContext.InvokeCom... |
# typed: false
require 'spec_helper'
require 'benchmark'
require 'datadog/core/buffer/random'
RSpec.describe Datadog::Core::Buffer::Random do
subject(:buffer) { described_class.new(max_size) }
let(:max_size) { 0 }
def get_test_items(n = 1)
Array.new(n) { Object.new }
end
describe '#initialize' do
... |
namespace Sharpen.Engine.SharpenSuggestions.CSharp50.AsyncAwait
{
internal sealed class AwaitTaskDelayInsteadOfCallingThreadSleep : BaseAwaitKnownAsynchronousEquivalentInsteadOfCallingSynchronousMember
{
private AwaitTaskDelayInsteadOfCallingThreadSleep() : base(new SynchronousMemberReplacementInfo
... |
package `in`.xnnyygn.bittorrent.tracker
import java.lang.RuntimeException
enum class PeerEvent {
STARTED,
COMPLETED,
STOPPED,
EMPTY
}
data class FindPeerRequest(
val infoHash: ByteArray,
val peerId: ByteArray,
val ip: String? = null,
val port: Int,
val uploaded: Int,
val downl... |
# Moderation Bot
## Installation:
### Acquire a discord token as shown here:
[How to get the bot token](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token)
### Fill in the config.yml
- Bot prefix
- Owner ID
- botToken
- Server ID (in dev mod, right click the server and copy ID... |
require 'pinball_wizard/configuration'
require 'pinball_wizard/feature'
require 'pinball_wizard/registry'
require 'pinball_wizard/dsl'
require 'pinball_wizard/railtie' if defined?(Rails)
|
using System;
namespace Agiil.Domain.Activity
{
public interface IGetsTicketWorkLog
{
GetWorklogResponse GetWorkLog(AddWorkLogRequest request);
}
}
|
-module(rebar3_nix_lock_prv).
-export([init/1, do/1, format_error/1]).
-define(NIX_DEPS, "# Generated by rebar3_nix
let fetchOnly = { src, ... }: src;
in { builder ? fetchOnly, fetchHex, fetchgit, fetchFromGitHub, overrides ? (x: y: { }) }:
let
self = packages // (overrides self packages);
packages = with self; {... |
export interface Customer {
/**
* The Address of the customer
*/
address: Address;
/**
* The email address of the customer
*/
email: string;
/**
* The full name of the owner
*/
name: string;
/**
* The phone number of the customer
* NOTE: This includes the ext... |
package leader
import (
"context"
"database/sql"
"fmt"
"time"
"github.com/benbjohnson/clock"
"github.com/google/uuid"
)
// MysqlOpt allows configuration of leader defaults.
type MysqlOpt func(leader *mysqlLeader)
// WithNodeName allows the node name to be specified.
// The default value is a random UUID.
func... |
# Grafana SQLite Datasource
This is a Grafana backend plugin to allow using a SQLite database as a data source.
The plugin was built using the grafana plugin sdk and npx grafana toolkit. Information can be
found at:
- <https://grafana.com/tutorials/build-a-data-source-backend-plugin/>
- <https://github.com/grafana/g... |
# Openwebnet-webthings
A [webthings](https://iot.mozilla.org/docs/) service for [openwebnet](https://www.myopen-legrandgroup.com/)
# Dependencies
This depends on the reopenwebnet python library. It can be installed like this:
pip3 install reopenwebnet
# Usage
First edit the configuration file to describe your... |
// Copyright 2019 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// syz-check does best-effort static correctness checking of the syscall descriptions in sys/os/*.txt.
// Use:
// $ go install ./tools/syz-check
// $ syz-c... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//! A library to create "pseudo" file systems. These file systems are backed by in process
//! callbacks. Examples are: component configuration, debug in... |
using UnityEngine;
using System.Collections;
using System;
using UnityEngine.UI;
using System.Collections.Generic;
public class DragDrop : MonoBehaviour {
float x;
float y;
public GameObject match;
private txtGameOver txtGO;
public GameObject[] GameObjectArray;
private void Awake()... |
package com.luqinx.xbinder
import android.os.Parcel
import android.os.Parcelable
import com.luqinx.xbinder.serialize.GenericAdapter
import com.luqinx.xbinder.serialize.ObjectAdapter
import java.lang.reflect.Type
/**
* @author qinchao
*
* @since 2022/1/2
*/
class ChannelResult() : Parcelable {
var succeed: B... |
; RUN: not llvm37-as -disable-output %s 2>&1 | FileCheck %s
target datalayout = "e-p:32:32:32-p1:16:16:16-p2:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n8:16:32"
; CHECK: error: invalid cast opcode for cast from '<4 x i32*>' to '<4 x i32 addrspace(1)*>'
d... |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package os
func (file *File) Readdirnames(n int) (names []string, err Error) {
fis, err := file.Readdir(n)
// If n > 0 and we get an error, we return now.
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.