text stringlengths 27 775k |
|---|
#![allow(dead_code)]
extern crate alloc;
use super::ALIGNMENT;
use nuklear_sys::{nk_handle, nk_size};
use std::alloc::{Alloc, Global, Layout};
use std::mem;
use std::os::raw::c_void;
use std::ptr::NonNull;
pub unsafe extern "C" fn alloc(_: nk_handle, _: *mut c_void, size: nk_size) -> *mut c_void {
trace!("alloc... |
# Use Electron React
# epp
<img src='assets/epp.png' width=256 />
Electron aPPlication
- photon
- coffeescrirpt (cjsx)
- electron
- react
- react-router
- webpack
![screenshot]
## Dev
```sh
# install dependencies
$ npm install
# support for reloading views, restarting electron
# if app/* and/or index.js, elect... |
declare global {
export { t } from '../helpers/translate';
export const global: typeof globalThis;
}
export {};
|
package com.ciarandg.soundbounds.common.ui.cli.argument
import com.ciarandg.soundbounds.common.PlaylistType
import com.mojang.brigadier.StringReader
import com.mojang.brigadier.arguments.ArgumentType
import com.mojang.brigadier.context.CommandContext
import com.mojang.brigadier.suggestion.Suggestions
import com.mojang... |
module Enecuum.Framework.Handler.Network.Interpreter where
import Enecuum.Prelude
import Control.Monad.Free()
import qualified Data.Map as M
import Enecuum.Framework.Handler.Network.Language
interpretNetworkHandlerL :: TVar (M.Map Text (NetworkHandler p m)) -> NetworkHandlerF p m a -> I... |
export const TOKEN_PROGRAM_ID = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
export const SERUM_PROGRAM_ID_V2 =
"EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o";
export const SERUM_PROGRAM_ID_V3 =
"9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin";
export const LIQUIDITY_POOL_PROGRAM_ID_V2 =
"RVKd61ztZW9GUwhRbbLoYV... |
#!/bin/bash
/usr/local/bin/pypi-mirror -d /var/lib/pipmirror/packages download nagiosplugin
/usr/local/bin/pypi-mirror -d /var/lib/pipmirror/packages create -m /var/lib/pipmirror/webroot
|
## A quick guide for how to merge
develop에 feature/localstorage 브랜치를 병합<br/>
(Merge branch 'feature/localstorage' into develop)
```bash
# 1.
Desktop/career-test (feature/localstorage)
> git checkout develop
Desktop/career-test (develop)
> git merge feature/localstorage
## conflicts 해결 후
# 스테이징 상태로 변경
Desktop/care... |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-only
NSIM_ID=$((RANDOM % 1024))
NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID
NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID/ports/0
NSIM_NETDEV=
num_passes=0
num_errors=0
function cleanup_nsim {
if [ -e $NSIM_DEV_SYS ]; then
echo $NSIM_ID > ... |
// Copyright (c) 2021 Yandex LLC. All rights reserved.
// Author: Martynov Pavel <covariance@yandex-team.ru>
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type RegistryStatus string
const (
Creating RegistryStatus = "CREATING"
Active RegistryStatus = "ACTIVE"
Deleting RegistryStatus = "D... |
package io.shiftleft.semanticcpg.language.types.structure
import io.shiftleft.codepropertygraph.generated.nodes.{Method, MethodParameterIn}
import io.shiftleft.semanticcpg.language._
import io.shiftleft.semanticcpg.testing.MockCpg
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
... |
// (C) 2020 Dmitri Fedorov; License: GNU GPL v3+; no warranty.
using System; using static System.Math; using static System.Double;
public static partial class quad{
public static double o4av
(Func<double,double> f, double a, double b, double acc=1e-3, double eps=1e-3){
if(IsNegativeInfinity(a)) return o4av(t=>f(a-(1-t... |
#pragma once
#ifndef DEUSEX_AUXHEADERS_H
#define DEUSEX_AUXHEADERS_H
#include <iostream>
#include <string>
#include <vector>
#endif
|
package dotty.tools.dotc.util
object PerfectHashing:
/** The number of elements up to which dense packing is used.
* If the number of elements reaches `DenseLimit` a hash table is used instead
*/
inline val DenseLimit = 16
/** A map that maps keys to unique integers in a dense interval starting at 0.
* ... |
<?php
namespace OpenCFP\Test\Http\Controller;
use Symfony\Component\HttpFoundation\Session\Session;
class SessionDouble extends Session
{
protected $flash;
public function get($value, $default = null)
{
return $this->$value;
}
public function set($name, $value)
{
$this->$nam... |
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
impor... |
import 'package:app/bloc/currentstate_bloc.dart';
import 'package:app/models/article_model.dart';
import 'package:app/models/category_model.dart';
import 'package:app/models/preferences_model.dart';
import 'package:app/resources/repository.dart';
import 'package:flutter/material.dart';
import 'package:rxdart/rxdart.dar... |
/* This file is part of qprofile
*
* Copyright (C) 2018 Calvin <c6supper@hotmail.com>
*/
#ifndef QSOFTWAREMODEL_H
#define QSOFTWAREMODEL_H
#include "qprofile_debug.h"
#include "qprofile_global.h"
#include "qregistermodel.h"
#include "qrservermodel.h"
#include "qabstractmodel.h"
#include "qnumericattribute.h"
#incl... |
import { Component, OnInit } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import {SetingsService} from "../shared/setings.service";
import {NzModalService} from "ng-zorro-antd";
@Component({
selector: 'app-meituanHXYD',
templateUrl: './meituanHXYD.component.html',
styleUrls: ['./meituanHXYD.... |
#ifndef _RADEON_H
#define _RADEON_H
#define RADEON_REGSIZE 0x4000
#define MM_INDEX 0x0000
#define MM_DATA 0x0004
#define BUS_CNTL 0x0030
#define HI_STAT 0x004C
#define BUS_CNTL1 0x0034
#define I2C_CNTL_1 0x0094
#define CONFIG_CNTL 0x00E0
#define CONFIG_MEMSIZE 0x00F8
#define CONFIG_APER_0_BASE ... |
module EvmanMenu
class Item
include Configurable
attr_reader :items, :captures
attr_reader :name, :path, :icon, :modal
def initialize name:, icon:, path: nil, modal: nil
@name, @path, @icon, @modal = name, path, icon, modal
@items = []
@captures = []
add_capture Capture.new(pat... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Fragment, SFC, useState } from 'react';
import { i18n } from... |
package github
type PullRequest struct {
ID int
Number int
URL string
HTML_URL string
IssueURL string
Title string
Body string
}
type HTTPError struct {
Message string `json:"message"`
DocumentationURL string `json:"documentation_url"`
}
type GitHubMock struct {
Token str... |
---
layout: tagpage
tag: stats
permalink: /resources/stats/
---
Here are posts I've made on Statistics resources |
package test
public trait DeeplySubstitutedClassParameter2: Object {
public trait Super<T>: Object {
public fun foo(t: T)
public fun dummy() // to avoid loading as SAM interface
}
public trait Middle<E>: Super<E> {
}
public trait Sub: Middle<String> {
override fun foo(t:... |
# Android PaddleOCR
升级模型到V1.1版本
原始Demo:https://github.com/PaddlePaddle/PaddleOCR/tree/develop/deploy/android_demo
|
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
namespace LLL.DurableTask.EFCore.DependencyInjection
{
public interface IEFCoreOrchestrationBuilder
{
IServiceCollection Services { get; }
IEFCoreOrchestrationBuilder ConfigureDbContext(Action<D... |
require 'rails/generators/named_base'
require 'rails/generators/resource_helpers'
module Rails
module Generators
class BreezyGenerator < NamedBase # :nodoc:
include Rails::Generators::ResourceHelpers
source_root File.expand_path('../templates', __FILE__)
argument :attributes, type: :array, de... |
# Subnetter
## Bash network calculator
This little script can calculate basic subnet info using IP and prefix
* Usage Example
$ subnetter 192.168.0.1/24
```
IPv4 Address: 192.168.0.1 /24 11000000.10101000.00000000.00000001
Subnet Mask: 255.255.255.0 11111111.11111111.11111111.00000000
Networ... |
#!/bin/bash
trap '' 2 #trapをしかける
echo $$
sleep 10000
|
/*
* Copyright (c) 2014 by Matthias Noack, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include "ld_preload/passthrough.h"
#include <dlfcn.h>
#include <pthread.h>
#include <stdio.h>
void* libc;
void* libc_open;
void* libc_close;
void* libc___close;
void* libc_rea... |
package com.popalay.tracktor.feature.settings
import androidx.compose.foundation.Icon
import androidx.compose.foundation.Text
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
impo... |
const replaceMap = require('./replaceMap');
module.exports = function ($_loader, $_options, $_output) {
let source = $_output.map(function ($_path) {
return replaceMap(
'@import \'' + $_path + ($_options.base ? '/' + $_options.base : '') + '\'',
$_options.replace
);
}).... |
<?php
/**
* Interface for database functions.
*
* PHP Version 5.2
*
* @category Payment
* @package Klarna_Module_XtCommerce
* @author MS Dev <ms.modules@klarna.com>
* @license http://opensource.org/licenses/BSD-2-Clause BSD2
* @link http://integration.klarna.com
*/
/**
* Interface for database funct... |
const STORE_PATH = 'USRF';
const isStorageCreated = (() => {
try {
window.localStorage.setItem(STORE_PATH, window.localStorage.getItem(STORE_PATH) ?? '{}');
return true;
} catch (error) {
return false;
}
})();
export const localStorage = <T>(storagePath: string): ((target: any, propertyKey: string) =... |
#include "check_confuse.h"
#include <stdio.h>
#include <stdlib.h>
static int ptr_count;
static int parse_ptr(cfg_t *cfg, cfg_opt_t *opt,
const char *value, void *result)
{
int *ptr = malloc(sizeof(int));
if (!ptr)
return -1;
*ptr = atoi(value);
*(void **)result = ptr;
fprintf(stderr, "make ptr %p (val... |
# Photoman
Tools for managing photos
## Install
photoman depends on a number of libraries than can be installed using homebrew:
```
brew install exiftool libexif phash imagemagick
```
## Todo
* btsync command to detect `*.SyncTemp` left overs
* dedup command to handle duplicate photos (list then intially)
|
import React, {useState, Fragment} from 'react'
import { Dialog } from "../index";
export default function () {
const [ visible, setVisible ] = useState(false);
return (
<Fragment>
<div>
<button onClick={() => setVisible(!visible)}>开启/关闭dialog</button>
... |
package com.dariopellegrini.kdone.interfaces
interface RouteActions {
suspend fun beforeCreate(input: Map<String, Any>) {}
} |
namespace Qf.Core.Uow
{
public interface IDatabaseApi
{
}
}
|
/** \file TestFileSummary.h
\brief Declaration for class to perform detailed testing of data file abstractions.
\author James Peachey, HEASARC
*/
#ifndef tip_TestFileSummary_h
#define tip_TestFileSummary_h
#include "TestHarness.h"
namespace tip {
/** \class TestFileSummary
\brief Declaration for clas... |
#! /usr/bin/perl
# Check that we can deal with HMMs with no optional annotation, in either
# hmmscan or hmmsearch mode.
# Bug #h69 segfaulted on this test.
#
# Usage: ./i9-optional-annotation.pl <builddir> <srcdir> <tmpfile prefix>
# Example: ./i9-optional-annotation.pl .. .. tmpfoo
#
# SRE, Sun Nov 29... |
using System;
namespace SvgValidated.FilterEffects
{
public sealed class SvgFilter : SvgElement
{
public SvgCoordinateUnits FilterUnits { get; set; }
public SvgCoordinateUnits PrimitiveUnits { get; set; }
public SvgUnit X { get; set; }
public SvgUnit Y { get; set; }
pub... |
---
layout: post
title: Microcontroller Board Arduino
---
今天稍微接触了下微操控器板Arduino Uno,感觉蛮好玩的。会一些基础的电气知识和C语言就可以上手了。自己可以在电路板安装线来点亮LED灯,做一些简单的小东西也是没问题的。认真学下去应该能学会很多东西。
 |
namespace droid.Runtime.Utilities.Orientation {
public interface IMotionTracker {
bool IsInMotion();
bool IsInMotion(float sensitivity);
}
}
|
import { VerifyParams } from ".";
import { errorUtil } from "v1/utils/error";
import { yup } from "v1/utils/yup";
import { LIMITS } from "v1/config/limits";
const schema = yup.object().shape({
contactId: yup.string().required().strict().uuid(),
verificationCode: yup
.string()
.required()
.strict()
.length(... |
//go:build !amd64
// +build !amd64
package compress_sse41
import "github.com/zeebo/blake3/internal/alg/compress/compress_pure"
func Compress(chain *[8]uint32, block *[16]uint32, counter uint64, blen uint32, flags uint32, out *[16]uint32) {
compress_pure.Compress(chain, block, counter, blen, flags, out)
}
|
import 'dart:ffi';
import 'bindings/bindings.dart';
import 'bindings/helpers.dart';
import 'modelinfo/entity_definition.dart';
import 'store.dart';
// ignore_for_file: public_member_api_docs
/// Configure transaction mode. Used with [Store.runInTransaction()].
enum TxMode {
/// Read only transaction - trying to ex... |
Rails.application.routes.draw do
if Rails.env.development?
mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "graphql#execute"
end
post "/graphql", to: "graphql#execute"
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
post 'authenticate', to:... |
---
chapter: Nine
ctitle: The Correction of Error
title: Grandeur versus Grandiosity
ref: Tx.9.VII
---
<sup>48</sup> Grandeur is of God and *only* of Him. Therefore, it is in you.
Whenever you become aware of it, however dimly, you abandon the ego
automatically, because in the presence of the grandeur of God the
meani... |
using System.Collections.Generic;
using System.Linq;
using Bari.Core.Model;
using Bari.Core.Model.Parameters;
namespace Bari.Plugins.Fsharp.Model
{
public class FsharpFileOrder : IProjectParameters
{
private readonly IList<string> orderedFiles;
public string[] OrderedFiles
{
... |
import { R4_DomainResource } from './R4_DomainResource';
export enum R4_GraphCompartmentUseEnum{
CONDITION = 'condition',
REQUIREMENT = 'requirement',
}
|
export interface IUser {
id:string,
email:string,
first_name:string,
last_name:string,
profile_built:boolean,
}
export interface AuthState {
token: string | null;
user: any;
isAuthenticated: boolean | null;
loading: boolean | null;
isLawyer: boolean | null;
error: any;
trialPeriod: number | nul... |
package main
import "fmt"
// "defer" will always run at the very end
func main () {
defer printTwo()
printOne()
}
func printOne() { fmt.Println(1) }
func printTwo() { fmt.Println(2) }
|
class User < ApplicationRecord
has_secure_password
has_many :ratings
has_many :senators, through: :ratings
end
|
---
title: Order Report
---
## Order Report
!!! missing "TODO"
This section requires further work
|
#!/bin/bash
if [ -f /etc/at.deny ]; then
rm /etc/at.deny
fi
|
export interface Agenda {
id: string;
name: string;
interval: string;
imageUrl: string;
businessId: string;
intervals: any;
}
|
// This module is necessary, because the `arbitrary` crate removed all public interfaces
// from `Gen` which could interlink with the API stability guarantees of `rand`.
//
// As a result, the exposed random value generation APIs are somewhat limited.
// If they ever find a suitable way of re-exposing them, this module... |
use expect_test::{expect, Expect};
use crate::tests::completion_list;
fn check(ra_fixture: &str, expect: Expect) {
let actual = completion_list(ra_fixture);
expect.assert_eq(&actual);
}
#[test]
fn only_param() {
check(
r#"
fn foo(file_id: usize) {}
fn bar(file_id: usize) {}
fn baz(file$0) {}
"#,
... |
import { useAuth0 } from "@auth0/auth0-react";
import React from 'react';
export const Profile: React.FC = () => {
const { user, isAuthenticated } = useAuth0()
console.log(user);
const profile = isAuthenticated ? (
<div>
<img className="profile-image" src={user.picture} alt={... |
// FarNet plugin for Far Manager
// Copyright (c) Roman Kuzmin
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
namespace FarNet
{
/// <summary>
/// INTERNAL
/// </summary>
public class XmlAttributeInfo
{
/// <sum... |
//你有一套活字字模 tiles,其中每个字模上都刻有一个字母 tiles[i]。返回你可以印出的非空字母序列的数目。
//
// 注意:本题中,每个活字字模只能使用一次。
//
//
//
// 示例 1:
//
// 输入:"AAB"
//输出:8
//解释:可能的序列为 "A", "B", "AA", "AB", "BA", "AAB", "ABA", "BAA"。
//
//
// 示例 2:
//
// 输入:"AAABBC"
//输出:188
//
//
//
//
// 提示:
//
//
// 1 <= tiles.length <= 7
// tiles 由大写英文字母组成
//
// Related Topics... |
package stringCalculator
import (
"fmt"
"strconv"
"strings"
)
const commonDelimiter = "_"
// Add calculate sum the numbers as string. In case the negative numbers, show an error message and returned -1.
func Add(numbers string) int {
if containsCustomDelimiter(numbers) {
customDelimiter := extractCustomDelimit... |
package org.guiVista.gui.dialog
import org.guiVista.gui.widget.WidgetBase
/** A convenient message window. */
public expect class MessageDialog : DialogBase {
/**
* Returns the message area of the dialog. This is the box where the dialog’s primary, and secondary labels are
* packed. You can add your own... |
/*
* Copyright (C) 2016-2019, Roberto Casadei, Mirko Viroli, and contributors.
* See the LICENSE file distributed with this work for additional information regarding copyright ownership.
*/
package demos
/**
* Demo 3
* - Client/server system
* - (Dynamic) "Spatial" network
* - Sensors are attached to devices
*... |
#include "Syscall.hpp"
#include "PageDirectory.hpp"
#include "TaskManager.hpp"
#include "DescTables.hpp"
#include "Cpu.hpp"
#include "Elf.hpp"
#include <array>
#include <functional>
#include <flix/stat.h>
XLL_LOG_CATEGORY("core/syscall");
extern "C" void syscall_entry();
namespace sys
{
static std::array<SyscallHan... |
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: cache.h
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 09-23-97 jbanes Ported over SGC stuff from NT 4 ... |
wordpress-docker
===========
> this is a fork of https://github.com/jbfink/docker-wordpress but with some different directories and configuration.
---
# Usage for deploy a new instance
1. Clone this repository and walk into the directory.
1. You should edit docker-compose.yml and change where you want to persist the... |
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.Cast
{
using System.Linq;
/// <summary>
/// A domain for interacting with Cast, Presentation API, and Remote Pla... |
import os
class Source:
def __init__(self, source_dir):
# Check if source exists
if not os.path.exists(source_dir):
raise FileNotFoundError(f"\"{source_dir}\" doesn't exist")
# Store the source directory or file
self.source_dir = source_dir
self._igno... |
# <img src="skill_icon" alt="nebraska facts icon" width="36"> [nebraska facts](http://alexa.amazon.com/#skills/amzn1.echo-sdk-ams.app.032ebccb-b588-481c-b313-eb0260a5d905)

{
style = element_name;
color = background_color = unselected_color;
hover_color = selected_color;
callback = [this]{
toggle();
};
min_size = {20,20};
auto& outer_border = create_child<border>();
outer_border.set_color({0,0,0,0});
outer_bor... |
<?php
namespace Careship\Functional\Result;
final class Aborted extends Failure
{
public function ok(callable $f): Result
{
return $this;
}
public function fail(callable $f): Result
{
return $this;
}
}
|
import java.util.HashMap
fun mapToContact(map: Map<String, Any>): NativeContact {
val name = valueOrDefault(map["name"])
val company = valueOrDefault(map["company"])
val jobTitle = valueOrDefault(map["jobTitle"])
val website = valueOrDefault(map["website"])
val avatar = if (map["avatar"] != null) ... |
package org.tensorframes.dsl
import scala.languageFeature.implicitConversions
import scala.collection.JavaConverters._
import org.apache.spark.sql.{RelationalGroupedDataset, Row, DataFrame}
import org.tensorflow.framework.GraphDef
import org.tensorframes.{ExperimentalOperations, OperationsInterface, ShapeDescription... |
-- |
-- Module: GUI.BaseLayer.Depend0.Ref
-- Copyright: (c) 2017-2020 KolodeznyDiver
-- License: BSD3
-- Maintainer: KolodeznyDiver <KldznDvr@gmail.com>
-- Stability: experimental
-- Portability: portable
--
-- Набор простых функций несколько сокращающих запись операции со ссылками в монаде 'MonadIO'.
mo... |
import { GraphQLClient } from 'graphql-request'
import { Migration } from '@contember/schema-migrations'
import { ExecutedMigration, ExecutedMigrationInfo } from '../migrations'
export type MigrateError = {
readonly code: MigrateErrorCode
readonly migration: string
readonly message: string
}
export enum MigrateErr... |
package fr.nicoPaul.miniHearstone.jeux.carte.effect;
import fr.nicoPaul.miniHearstone.jeux.Plateau;
import fr.nicoPaul.miniHearstone.jeux.carte.AServiteur;
import fr.nicoPaul.miniHearstone.jeux.carte.AServiteurDecorator;
/**
* effet de cart
*
* @author nicolas paul
* @version 1
* @since 1
*/
public class Charge... |
import { Component, ElementRef, Input, Renderer2, ViewChild } from '@angular/core';
import { CardAnimations } from './card.animation';
import { IProject } from '../../models/IProject';
@Component({
selector: 'app-card',
templateUrl: 'card.component.html',
styleUrls: ['card.component.scss'],
animations: CardAni... |
/**
* Класс Игрового актера комнаты.
*
* Любой актер в команте - это динамический объект. Он может менять позицию, скорость или размер.
*
* Актер имеет свои координаты в комнате.
* Координаты спрайта актера - это центр для отрисовки спрайта.
*/
define(['actors/AnimatedSprite'], AnimatedSprite => class GameActor ... |
/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option)... |
require 'byebug'
require 'capybara-extensions'
require 'capybara_minitest_spec'
require 'minitest/autorun'
require 'minitest/reporters'
# string to test against
require 'string'
MiniTest::Reporters.use!
class MiniTest::Spec
class << self
alias :context :describe
end
end
module MiniTest::Expectations
infec... |
#include "Core/Quaternion.h"
#include <cfloat>
#include <cmath>
using namespace cyclone;
Quaternion::Quaternion(): i(0), j(0), k(0), a(1)
{
}
Quaternion::Quaternion(const real i, const real j, const real k, const real a): i(i), j(j), k(k), a(a)
{
}
Quaternion Quaternion::operator+(const Quaternion& q) const
{
r... |
# ThinkPHP 5.1 #
## 获取配置 ##
- 获取全部配置
$config=Config::get();
- 获取app下的配置项
$conapp=Config::get('app');
- 获取一级配置项
$configfirst=Config::pull('log');
- 获取二级配置项
$configsecond=Config::get('app.app_debug');
- app默认,可以不写
$configsecond=Config::get('app_dubug');
- 判断是否有这个配置项
$confighas=Config::has('defalut_lang');
-... |
#Hadoop 集群规划
```
Hadoop依赖的技术环境
Java,Linux(CentOS),数据库(MySQL,Postgresql, Oracle),Python 2.7.X\2.6.X
安全:Kerberos
JDK1.7.0_55, CentOS 6.5,建议Postgresql, Python 2.7.X,SSH
Hadoop软件:
MapR,Cloudera,Hortonworks
Hadoop常见安装方式:Yum,RPM,Parcels(Cloudera 特有)
硬件规划
服务器:管理节点,计算节点
... |
using System;
using System.Collections.Generic;
using System.Reflection;
using FarseerPhysics.Dynamics;
using GeneticTanks.Extensions;
using GeneticTanks.Game.Components.Messages;
using GeneticTanks.Game.Events;
using GeneticTanks.Game.Managers;
using log4net;
using Microsoft.Xna.Framework;
namespace GeneticTanks.Gam... |
<?php
/**
*
* * This is an iumio Framework component
* *
* * (c) RAFINA DANY <dany.rafina@iumio.com>
* *
* * iumio Framework, an iumio component [https://iumio.com]
* *
* * To get more information about licence, please check the licence file
*
*/
namespace iumioFramework\Core\Additional\Manager\Modul... |
const packages_ = {};
packages_.test_package = [
"do",
["def", "test_core_1", ["fn", ["&", "args"], ["list", { result: "Result 1" }, { new_bag: "New Bag 1" }]]],
["def", "test_core_2", ["fn", ["&", "args"], ["list", { result: "Result 2" }, { new_bag: "New Bag 2" }]]],
null,
];
module.exports = {
packages_: ... |
// <copyright file="TileSourceViewModel.cs" company="IIASA">
// Copyright (c) IIASA. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
namespace TileCacheService.Web.Models
{
using System;
using System.Collections.Generic;
usi... |
#!/bin/bash
ln -s scratch_GATKv4_jointgenotype_93667/ vcf_sb0001
ln -s scratch_GATKv4_jointgenotype_40484/ vcf_sb0002
ln -s scratch_GATKv4_jointgenotype_40486/ vcf_sb0003
ln -s scratch_GATKv4_jointgenotype_40488/ vcf_sb0004
ln -s scratch_GATKv4_jointgenotype_40490/ vcf_sb0005
ln -s scratch_GATKv4_jointgenotype_40493/ ... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using VIDE_Data;
public class VIDEDemoPlayer : MonoBehaviour
{
//This script handles player movement and interaction with other NPC game objects
public string playerName = "VIDE User";
//Reference to our diagUI script for qui... |
/** 基础组件 */
export declare class BasicControl {
/** 组件Id,即为Ref */
id?: string;
/** 编辑器组件 */
control: string;
/** 组件属性 */
attrs: Record<string, any>;
/** 组件属性 */
events: Record<string, any>;
/** 修改前的组件属性 */
propAttrs: Record<string, any>;
/** 组件默认属性 */
defaultAttrs?: Recor... |
[Back to the documentation](Readme.md)
# Contribution guide summary
1. Project overview
1. [Main files and directories](doc/hierarchy.md)
1. [Using the provided docker development environment](doc/docker/Readme.md):
1. How to install the docker enviroment
1. Quick access to the configuration guide of ... |
package com.github.nscala_time
package object time{
private[time] type Super = AnyVal
}
|
**Instructions to install, setup and use Rally**
1. Download rally: git clone https://git.openstack.org/openstack/rally
(Ensure install libffi-dev libssl-dev libxml2 are installed)
2. Run ./install_rally.sh with the -v option to install Rally in its
own virtual env. This should create a install dir - rally
3. U... |
---
template: spacs-ultimate-list
slug: /spacs_ultimate_list
title: SPAC Ultimate List
---
This page is used by template spacs-ultimate-list, to display graphql page query from AirTable. |
program rstest
use flips
use rand
! This program tests flips_resize in different situations
! Single precision real version
implicit none
type(flips_d) :: s1,s2,s3,s4
real(dp), dimension(:), allocatable :: amat,amat2,rr,meas2
real(dp), dimension(:), allocatable :: meas,erro
logical, dimension(:), ... |
/*
* 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 ... |
<?php
session_start();
include "connection.php";
if (isset($_SESSION['user'])) {
$query = "SELECT * FROM questions";
$run = mysqli_query($conn , $query) or die(mysqli_error($conn));
$total = mysqli_num_rows($run);
?>
<html>
<head>
<title>QuizApp</title>
<meta charset="utf-8">
<meta name="v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.