text stringlengths 27 775k |
|---|
// lifo storage
package lis
import (
"github.com/golang/protobuf/proto"
"github.com/logrusorgru/gopb3any/msg"
"encoding/binary"
"errors"
"github.com/logrusorgru/lifo"
"reflect"
)
var ErrNoOne = errors.New("lis.TypeRegister.Get: no one")
// TypeRegister - type register
type TypeRegister map[string]reflect.Type... |
package com.riteshakya.businesslogic.interactor.signup
import com.riteshakya.businesslogic.repository.student.StudentRepository
import com.riteshakya.businesslogic.repository.student.model.StudentModel
import io.reactivex.Completable
import javax.inject.Inject
class SignUpStudentInteractor
@Inject constructor(
... |
import 'package:bkci_app/widgets/BkIcons.dart';
import 'package:bkci_app/widgets/PFText.dart';
import 'package:flutter/material.dart';
import 'package:bkci_app/utils/util.dart';
class ViewItem extends StatelessWidget {
final Map viewItem;
final Function onTap;
final bool selected;
ViewItem({this.viewItem, thi... |
require 'generators/generators_test_helper'
require 'rails/generators/rails/migration/migration_generator'
class MigrationGeneratorTest < Rails::Generators::TestCase
include GeneratorsTestHelper
def test_migration
migration = "change_title_body_from_posts"
run_generator [migration]
assert_migration "d... |
package main
import (
"flag"
"fmt"
"image"
"image/png"
"log"
"net"
"os"
"strconv"
"golang.org/x/image/font/inconsolata"
"github.com/google/uuid"
"github.com/andrewtian/minepong"
"github.com/MinecraftXwinP/mcbanner"
)
var host string
var port int
var backgroundPath string
func init() {
flag.StringVar... |
//
// Copyright (c) 2006-2018 Erik Ylvisaker
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... |
---
layout: post
title: "[C5] Visual Fatigue Prediction and Its Visualization"
image: /images/gina-motes.jpg
categories: publication
authors: "Changjae Oh, Bumsub Ham, and Kwanghoon Sohn"
subtitle: "in <em>Proc. Global 3D Tech Forum,</em> Oct. 2013. (Best Paper Award)"
---
|
# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html
match 'projects/:id/hello', :to => 'example#say_hello', :via => 'get'
match 'projects/:id/bye', :to => 'example#say_goodbye', :via => 'get'
resources 'meetings'
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/gn/xcode_object.h"
#include <iomanip>
#include <sstream>
#include <utility>
#include "base/logging.h"
#include "base/macros.h"
#include ... |
<?php
/**
* @author: Vova Lando <vova.lando@gmail.com>
* @package: LoanPaymentsCalculator
* @subpackage:
* @created: 14/06/2017 16:31
*/
namespace cog\LoanPaymentsCalculator\Schedule;
use cog\LoanPaymentsCalculator\DateProvider\DateProvider;
use cog\LoanPaymentsCalculator\Period\Period;
class Schedule
{
/**
... |
using Nuuvify.CommonPack.Domain.ValueObjects;
using Xunit;
namespace Nuuvify.CommonPack.Domain.xTest.ValueObjects
{
public class EnderecoTests
{
[Fact]
public void EnderecoComTipoLogradouroComMinZero()
{
var endereco = new Endereco(
null,
"P... |
package com.example.androiddevfest.Fragments
import androidx.lifecycle.ViewModel
class MobileViewModel : ViewModel() {
} |
import pytest
from PyBall import PyBall
from PyBall.models.config import ScheduleEventType
@pytest.fixture(scope='module')
def test_schedule_event_types():
pyball = PyBall()
return pyball.get_schedule_event_types()
def test_get_schedule_event_types_returns_schedule_event_types(test_schedule_event_types):
... |
---
title: Persona 5 at Katsucon'19
layout: gallery_local
shoot_id: Katsu19.Persona_5
tags: cosplay
---
Akira cosplayed by chris_onyx; Follow them on [Instagram](https://www.instagram.com/chris_onyx)!
Ryuji cosplayed by omnisniper; Follow them on [Instagram](https://www.instagram.com/omnisniper)!
Ann cosplayed by w... |
<?php
/**
* Created by PhpStorm.
* User: Sin
* Date: 7/6/2020
* Time: 2:18 πμ
*/
namespace App\Utility;
use Illuminate\Redis\RedisManager;
/**
* Class CacheHelper
* @package App\Utility
*/
class CacheHelper
{
/**
* @var RedisManager
*/
protected $cacher;
/**
* CacheHelper constru... |
var classPmmh =
[
[ "Pmmh", "classPmmh.html#a14c283402cf7caf2b9e77efdf7ba1371", null ],
[ "~Pmmh", "classPmmh.html#ae2c67a65abf01f4eaefc6b56e3bcb952", null ],
[ "commenceSampling", "classPmmh.html#afa1bca7b86289c35cf2be286c4372a2d", null ],
[ "logLikeEvaluate", "classPmmh.html#aa521d90ee94e3ee8eea7dd33e... |
using Documenter, DynamicNLPModels
const _PAGES = [
"Introduction" => "index.md",
"Quick Start"=>"guide.md",
"API Manual" => "api.md"
]
makedocs(
sitename = "DynamicNLPModels",
authors = "David Cole, Sungho Shin, Francois Pacaud",
format = Documenter.LaTeX(platform="docker"),
pages = _PAG... |
package ir.androidexception.filepicker.model;
import android.graphics.drawable.Drawable;
import java.io.File;
public class Item {
private File file;
private Drawable imageResource;
private boolean selected;
public Item(File file, Drawable imageResource, boolean selected) {
this.file = file;
... |
import 'package:scribedart/src/com.sinyuk.scribedart/service/signature_service.dart';
/**
* plaintext implementation of [SinatureService]
*/
class PlaintextSignatureService extends SignatureService {
PlaintextSignatureService._();
static final PlaintextSignatureService _instance =
PlaintextSignatureService... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using DemoWebApi.DemoData.Client;
namespace IntegrationTests
{
public class SuperDemoFixture : Fonlow.Testing.DefaultHttpClient
{
public SuperDemoFixture()
{
... |
// Copyright 2022 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.
use super::*;
use fidl::endpoints::create_endpoints;
use fidl_fuchsia_net_mdns::*;
use fuchsia_async::Task;
use fuchsia_component::client::connect_to_proto... |
package com.kiss.www.kweather.common
import android.os.Build
import java.text.SimpleDateFormat
import java.time.LocalDateTime
import java.util.*
/**
* Created by Dre on 12/24/2017.
*/
object Utils {
private const val API_KEY = "540717bb25664e4ed48aede738fb520f"
private const val API_LINK = "https://api.ope... |
package LinkEmbedder::Link::Travis;
use Mojo::Base 'LinkEmbedder::Link';
has provider_name => 'Travis';
has provider_url => sub { Mojo::URL->new('https://travis-ci.org') };
has thumbnail_height => 501;
has thumbnail_url => $ENV{LINK_EMBEDDER_TRAVIS_THUMBNAIL_URL}
|| 'https://cdn.travis-ci.org/images/logos/... |
<?php
namespace Drupal\feeds_tamper\Form;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\feeds\FeedTypeInterface;
use Drupal\feeds_tamper\FeedTypeTamperManagerInterfac... |
enum FacialHairType {
Blank = 'Blank',
BeardMedium = 'BeardMedium',
BeardLight = 'BeardLight',
BeardMajestic = 'BeardMajestic',
MoustacheFancy = 'MoustacheFancy',
MoustacheMagnum = 'MoustacheMagnum'
}
export default FacialHairType
|
import 'dart:async';
import 'package:flip_card/flip_card.dart';
import 'package:flutter/material.dart';
import 'package:toast/toast.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
... |
<?php
namespace app\components;
use yii\base\Component;
use app\models\Activity;
use yii\helpers\FileHelper;
use yii\web\UploadedFile;
class ActivityComponent extends Component
{
public $activityClass;
public function init()
{
parent::init();
if (empty($this->activityClass)){
... |
///! Background thread that will poll the coordinator for signatures
use crate::daemon::{
control::{get_presigs, send_coord_sig_msg, wts_share_emer_signatures, CommunicationError},
database::{
actions::{db_mark_emer_shared, db_update_presigned_txs, db_update_vault_status},
bitcointx::RevaultTx,
... |
import { App } from '@/App';
import userEvent from '@testing-library/user-event';
import { render, screen, within } from '@testing-library/react';
import { server } from '@/mocks/testServer';
import { rest } from 'msw';
const setup = (shouldEnterName = true) => {
render(<App />);
if (shouldEnterName)
userEvent.ty... |
## **BakeBit**
[English](https://github.com/friendlyarm/BakeBit)
[汉语](https://github.com/friendlyarm/BakeBit/blob/master/README.zh_CN.md)
BakeBit 是一个基于 GrovePi 的开源平台, 它连接 NanoPi 上的 BakeBit 传感器.
当前支持的主板: NanoPi NEO, NanoPi NEO2, NanoPi NEO Air.
## 说明
它能够在FriendlyCore、Armbian或Ubuntu Core 系统的 Python3.x 环境工作.
基于尽量充分... |
using System;
namespace TriggersTools.DiscordBots.Commands {
/// <summary>
/// A struct representing a command example.
/// </summary>
public struct Example {
/// <summary>
/// Gets the example usage of the command parameters.
/// </summary>
public string Execution { get; }
/// <summary>
/// Gets an e... |
#!/bin/bash
# Simplify all MQ error files in spesified directory
# usage: mqercmpa.sh /var/mqm/errors/
fPath=$1
for fname in ${fPath}*.LOG; do
# echo "${fname}"
awk -f mqercmp.awk ${fname} > ${fname: -5:1}.txt
done
|
-module(hg_woody_handler_utils).
-include_lib("damsel/include/dmsl_payment_processing_thrift.hrl").
-type user_info() :: dmsl_payment_processing_thrift:'UserInfo'().
-type user_identity() :: woody_user_identity:user_identity().
-export([get_user_identity/0]).
-export([collect_user_identity/1]).
-export([set_user_ide... |
namespace Student
{
public interface IInformatie
{
string ToString();
}
} |
class Logger {
constructor() {}
log(statement: string) {
const timestamp = new Date().getTime();
const log = timestamp + ": " + statement;
console.log(log);
}
}
export default Logger;
|
export * from './PreferenceItem'
export * from './PreferenceSwitchItem'
export * from './PreferenceNavigtionItem'
export * from './PreferenceSelectionItems'
export * from './PreferenceSliderItem'
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Wishlist;
use App\WishlistItem;
class InviteeWishlistController extends Controller
{
//
public function wishlists(){
$wishlists = Wishlist::all();
return response()->json([
'wishlists' => $wishlists,
... |
package isc
// filter specificated item in a list
func ListFilter[T any](list []T, f func(T) bool) []T {
var n []T
for _, e := range list {
if f(e) {
n = append(n, e)
}
}
return n
}
func ListFilterNot[T any](list []T, f func(T) bool) []T {
var n []T
for _, e := range list {
if !f(e) {
n = append(n,... |
from django.db import models
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.conf import settings
from api.models.bigpicture import BigPicture
import datetime
import statistics
class Rating(models.Model):
target_bp = models.Fo... |
package ru.kapitoxa.mywallet.categorydetail
import org.junit.Assert
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockito.junit.MockitoJUnit
import org.mockito.junit.MockitoRule
import org.robolectric.RobolectricTestRunner
import ... |
// @flow
import React, { Component, Fragment } from 'react';
import { Link } from 'react-router-dom';
import { withTheme } from 'styled-components';
import ShoppingList from '../list';
import Total from '../../containers/total';
import {
CartWrapper,
Message,
} from '../../style';
import {
Button,
ButtonsContai... |
import doctest # NOQA
def are_pairwise_disjoint(it, raise_error=False):
"""
Determines whether a collection of elements are pairwise disjoint.
:param it: iterable of elements
:param raise_error: if a (descriptive) error shall be raised in case the
elements iterables are not disjoint
:return:... |
#!/bin/sh
#
# $1=$device [$2=keyfile|none [$3=keyslot|any [$4=size]]]
#
[ -d /sys/module/dm_crypt ] || modprobe dm_crypt
[ -d /sys/module/loop ] || modprobe loop
[ -f /tmp/reencrypted ] && exit 0
. /lib/dracut-lib.sh
# if device name is /dev/dm-X, convert to /dev/mapper/name
if [ "${1##/dev/dm-}" != "$1" ]; then
... |
#!/usr/bin/env bash
# Copyright (c) 2019 Egor Tensin <Egor.Tensin@gmail.com>
# This file is part of the "Sorting algorithms" project.
# For details, see https://github.com/egor-tensin/sorting-algorithms.
# Distributed under the MIT License.
set -o errexit -o nounset -o pipefail
script_dir="$( dirname -- "${BASH_SOUR... |
module MailSupport
## Mail Methods ## (Should be in elsewhere, move to /lib)
#
def prepare_email(debt, user, mailer, options = {})
date_first_email_sent = options.fetch :date_first_email_sent, 'fecha de primer aviso no encontrada'
display_attachments = options.fetch :display_attachments, true
if ... |
#!/bin/bash
# Script to
# - clean the tree from all compiled files
# - build
# - run path planning!
rm -rf build
mkdir build
cd build
cmake ..
make
./path_planning
|
nohup /dockerstartup/vnc_startup.sh --wait &
socat tcp-listen:$PORT,reuseaddr,fork tcp:localhost:6901
|
---
title: "Manually generating LetsEncrypt certificate"
date: 2020-06-07T00:20:25+08:00
tags: [sslcert, tlscert, manual, letsencrypt]
draft: false
---
In cases where you don't want to disrupt current production server, this is a good approach
```
mkdir /opt/letsencrypt
cd /opt/letsencrypt
wget https://dl.eff.org/cert... |
package com.lyncode.reflection;
import com.lyncode.reflection.model.bean.BeanMethod;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class ExecutableTest {
private final BeanMethod beanMethod = mock(BeanMethod.class);... |
You ERP is ready to be used
Please login using following link {{doc.domain}}
Login Credentials
User:- Administrator
Pwd:- Smile@123
It is strongly recommended to change this password on first login |
# frozen_string_literal: true
class ViewModel::Migration::OneWayError < ViewModel::AbstractError
attr_reader :vm_name, :direction
status 400
code 'Migration.OneWayError'
def initialize(vm_name, direction)
@vm_name = vm_name
@direction = direction
super()
end
def detail
"One way migration... |
# author:pengrk
# email:546711211@qq.com
# qq group:573283836
#创建系统账号
useradd -r haproxy
#创建配置文件
mkdir /etc/haproxy
cat > /etc/haproxy/haproxy.cfg <<EOF
#全局配置
global
#设置日志
log 127.0.0.1 local3 info
chroot /usr/local/haproxy
#用户与用户组
user haproxy
group haproxy
#守护进程启动
daemon
#最大连接数
... |
import 'dart:convert';
final jsonBase64 = json.fuse(utf8.fuse(base64Url));
String base64Unpadded(String value) {
if (value.endsWith('==')) return value.substring(0, value.length - 2);
if (value.endsWith('=')) return value.substring(0, value.length - 1);
return value;
}
String base64Padded(String value) {
fin... |
package com.example.dao;
import com.example.model.MyPay;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* Created by island on 2018/3/24.
*/
public interface PayRepository extends JpaSpecificationExecutor<MyPay>, JpaReposito... |
package com.work.lazxy.writeaway.common
/**
* Created by Lazxy on 2017/5/24.
*/
interface Constant {
class Common {
companion object {
const val PREVIEW_MAX_LENGTH = 100
const val REQUEST_CODE_NEW_NOTE = 0x16
const val REQUEST_CODE_UPDATE_NOTE = 0x32
const ... |
package leveldbcli
import (
"os"
"path"
"runtime/debug"
"strings"
"github.com/urfave/cli/v2"
)
func Main(args []string) error {
version := "(devel)"
if bi, ok := debug.ReadBuildInfo(); ok {
version = strings.TrimPrefix(bi.Main.Version, "v")
}
var lockFile string
app := &cli.App{
Name: "leveldb",
... |
namespace GoExpressTMS.CadastroBasico {
export interface EstadoRow {
EstadoId?: number;
Nome?: string;
Uf?: string;
Ibge?: number;
Ddd?: string;
PaisId?: number;
PaisNome?: string;
}
export namespace EstadoRow {
export const idProperty = 'Est... |
#include <cstdio>
#define _DEF(A, B) constexpr bool A () noexcept { return 1; }
#define DEF(A, B, C) template <class A> C(A, B)
DEF(Foo,, _DEF)
int main() { printf("%d\n", Foo<int>()); }
|
#!/bin/bash
gopass sync -s caos-secrets
./scripts/0_imagepull-secret.sh | kubectl apply -f -
./scripts/1_argocd-secrets.sh | kubectl apply -f -
./scripts/2_ops-repo-read-secret.sh | kubectl apply -f -
skaffold run -f ./build/skaffold/skaffold.yaml |
FactoryBot.define do
factory :registration do
lms_course_id { 1 }
lms_user_id { 1 }
created_at { Date.parse("2016-12-08") }
status { "PRESENT" }
score { 1 }
application_instance_id { 1 }
scorm_registration_id { 1 }
end
end
|
require 'dcell'
require 'dcell/registries/hazelcast_adapter'
require 'optparse'
# The DCell node_id
name = nil
# The local port for the 0MQ communication.
port = nil
registry = {:adapter => 'hazelcast', :env => 'test'}
OptionParser.new.tap { |options|
options.on('-n NAME', 'Node name') do |value|
name = value... |
import { DidProvider } from '../src/did-provider'
describe('DidProvider', () => {
let nextId = 0
async function expectRPC(provider, origin, req, res) {
const id = nextId++
return await expect(provider.send({ jsonrpc: '2.0', id, ...req }, origin)).resolves.toEqual({
jsonrpc: '2.0',
id,
...... |
package io.andrewohara.awsmock.s3.v2
import io.andrewohara.awsmock.s3.MockS3Backend
import io.andrewohara.awsmock.s3.MockS3V2
import org.assertj.core.api.Assertions.*
import org.junit.jupiter.api.Test
import software.amazon.awssdk.services.s3.model.Bucket
import java.time.Clock
import java.time.Instant
import java.tim... |
function main() {
re='^[0-9]+$'
if [ -z $2 ] || [[ ! $2 =~ $re ]]; then
echo "Usage: $0 <container name> <replica ID>"
exit 1
fi
id=$(docker ps -aqf "name=$1")
if [ ! -z "$id" ]; then
echo "Container name already exists"
exit 1
fi
my_contianer_name=$1
my_node_id=$2
docker pull bftsmart/fabric-o... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
module UnitfulOptim
using Unitful
import Unitful: Quantity, Units
import Optim: OptimizationResults
import Optim: optimize, minimizer, minimum
struct UnitfulOptimizationResults
opt::OptimizationResults
xunit::Units
funit::Units
end
function optimize(f, a::Quantity, b::Quantity; kws...)
c, d = promote... |
package practicaltest01var04.eim.systems.cs.pub.ro.practicaltest01var04;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
impo... |
require 'mkmf'
extension_name = 'keystone'
dir_config(extension_name)
have_library('keystone')
create_makefile(extension_name) |
-----------------------------------------------------------------------------
-- |
-- Module : CDTParser
-- Copyright : (c) Masahiro Sakai 2006,2009
-- License : BSD-style
--
-- Maintainer : masahiro.sakai@gmail.com
-- Stability : provisional
-- Portability : portable
--
---------------------------... |
package org.simple.clinic.newentry.clearbutton
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.times
import com.nhaarman.mockito_kotlin.verify
import io.reactivex.subjects.PublishSubject
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.simple.clinic.util.RxError... |
---
layout: watch
title: TLP1 - 18/07/2021 - M20210718_090430_TLP_1T.jpg
date: 2021-07-18 09:04:30
permalink: /2021/07/18/watch/M20210718_090430_TLP_1
capture: TLP1/2021/202107/20210717/M20210718_090430_TLP_1T.jpg
---
|
using System;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public enum ButtonState{
Active,
Pressed,
Inactive
}
public class ButtonView : MonoBehaviour, IPointerClickHandler {
public event Action<ButtonView> OnButtonClick;
[SerializeField] protected Col... |
using Newtonsoft.Json;
using Parsec.Extensions;
using Parsec.Readers;
using Parsec.Shaiya.Common;
using Parsec.Shaiya.Core;
namespace Parsec.Shaiya.Zon;
public class ZonRecord : IBinary
{
public byte Index { get; set; }
public byte P1 { get; set; }
/// <summary>
/// Present only if Format > 2
//... |
#!/bin/sh
echo "Compiling Dory"
gcc-10.2 Dory/Dory.c -O3 -fopenmp -pthread -o Dory/Dory.o
echo "Compiling DoryNS (Comb idx)"
gcc-10.2 Dory/Dory.c -O3 -fopenmp -pthread -D COMBIDX -o Dory/DoryNS.o
echo "Dragon, Dory 4 threads"
time Dory/Dory.o Datasets/Dragon/dragon2000_locs.csv 1000 1 4 Datasets/Dragon/Dory_th4_ 1 0 ... |
module.exports = {
hasNoToken: result => {
expect(result.body).to.not.have.a.deep.property('token');
},
hasToken: result => {
expect(result.body).to.have.property('token');
expect(result.body.token).to.exist;
},
invalidToken: result => {
expect(result.body).to.exist;
expect(result.body).t... |
<div class="illustration">
<div class="bs-callout bs-callout-warning" >
<p class="text-left" style="font-size: .14em;"><?=$message?></p>
</div>
</div> |
//! GraphQL lookup to get a user's role.
use crate::api::rcos::prelude::*;
use crate::api::rcos::send_query;
use crate::api::rcos::users::UserRole;
use crate::error::TelescopeError;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/rcos/schema.json",
query_path = "graphql/rcos/users/role_lookup.graphq... |
package com.sltb.kiosks.travelservice.travelservice;
import com.sltb.kiosks.travelservice.travelservice.repo.AccountRepo;
import com.sltb.kiosks.travelservice.travelservice.repo.LastCheckInRepo;
import com.sltb.kioskslib.library.model.Account;
import com.sltb.kioskslib.library.model.LastCheckIn;
import com.sltb.... |
### __init__.py
from CMGDB._cmgdb import *
from CMGDB.PlotMorseGraph import *
from CMGDB.PlotMorseSets import *
from CMGDB.LoadMorseSetFile import *
from CMGDB.ComputeBoxMap import *
from CMGDB.SaveMorseData import *
|
//
// editor.c
// Editor function to create new maps
// Mario_Sokoban
//
// Created by Romain GUICHERD on 25/01/2020.
// Copyright © 2020 Romain GUICHERD. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2_image/SDL_image.h>
#include "constants.h"
#include "files.... |
package com.github.squirrelgrip.scientist4k.http.server
import com.github.squirrelgrip.scientist4k.http.core.configuration.ServerConfiguration
import com.github.squirrelgrip.scientist4k.http.core.server.SecuredServer
class HttpExperimentServer(
serverConfiguration: ServerConfiguration,
httpExperimentHandler: ... |
from costar_task_plan.abstract import NullReward
from costar_task_plan.simulation.world import *
from costar_task_plan.simulation.camera import *
import pybullet as pb
import rospkg
import os
class AbstractTaskDefinition(object):
'''
Defines how we create the world, gives us the reward function, etc. This
... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace nCode.Models
{
public class HostMapping
{
[JsonProperty("hostname")]
public string Hostname { get; set; }
[JsonProperty("frontpagePath")]
public string Frontp... |
# Gallery / Encyclopedia
Let users publish their plant models into an online library of plant models.
## TODO:
- [ ] Fix thumbnail rendering
- [ ] Custom UI for import export
- [ ] Generate thumbnails on the server, with timeout for complex node trees?
## Q's:
Require login? → OAuth? Email?
|
/*
* Copyright (C) 2021 Sacred Sanctuary Inc.
*
* 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 la... |
package main
func main() {
// Declaration
var i int
var s string
var age1 int = 10
var name1 string = "Shin"
// Short declaration
var age2 = 20
var name2 = "Kim"
// var address // compiled error
age3 := 30
name3 := "Park"
// Multiple declaration
var x1, y1 int = 30, 50 // x = 30, ... |
import { createContext } from "react";
const MenuContext = createContext({
// eslint-disable-next-line no-unused-vars
registerNode: node => {},
dense: false
});
if (process.env.NODE_ENV !== "production")
MenuContext.displayName = "MenuContext";
export default MenuContext;
|
use std::collections::HashMap;
use std::error::Error;
use std::io::BufReader;
use std::path::PathBuf;
use tobj;
pub mod context_data;
pub mod data_index;
pub mod model;
pub mod polygon_context;
pub mod polygon_scene;
pub mod quad_scene;
pub mod timeline;
use intro_runtime::dmo_gfx::DmoGfx;
use crate::dmo_data::cont... |
#pragma once
#include "LandscapeMap.h"
LandscapeMap::LandscapeMap() : Map("assets/maps/landscape-1280x640.json")
{
}
LandscapeMap::~LandscapeMap()
{
} |
use bevy_app::{EventReader, EventWriter};
use bevy_ecs::prelude::*;
use crate::world::{
action::Action,
scripting::{
time::Timers, QueuedAction, RunInitScript, ScriptHooks, ScriptRun, ScriptRuns,
ScriptTrigger, TriggerEvent,
},
types::{room::Room, Contents, Location},
};
pub fn init_sc... |
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
import 'package:skeleton_text/skeleton_text.dart';
void main() {
test('Adds skeleton text animation to a Widget', () {
final skeletonText = SkeletonAnimation(
child: Container(
decoration: BoxDecoration(
... |
import _ from 'lodash';
import Crypto from 'client-crypto';
import uuid from 'uuid/v4';
import { isFormData } from './utils/form';
import { IAjax, IAjaxProcessDataAfterOptions, IParams, IMethod, IOptions } from './interface';
/**
* 签名扩展。
* 将会在请求头中添加字段sign,timestamp,app-nonce。
* sign:签名文本;
* timestamp(签名参数):UTC时间(用... |
package funcexprtype
type Type int
const (
STRING Type = iota
INTEGER
REF
ARRAYREF
FLOAT
FUNCTION
EXPRESSION
BOOLEAN
NIL
)
func (t Type) String() string {
switch t {
case STRING:
return "string"
case INTEGER:
return "integer"
case REF:
return "ref"
case ARRAYREF:
return "arrayRef"
case FLOAT:
... |
#pragma once
#include <tuple>
#include <array>
namespace wee {
//Read the last element of the tuple without calling recursively
template <std::size_t idx, class... T>
typename std::enable_if<idx >= std::tuple_size<std::tuple<T...>>::value - 1>::type
read_tuple(std::istream &in, std::tuple... |
import 'package:dio/dio.dart';
import 'package:mocktail/mocktail.dart';
class FakeDioError extends Fake implements DioError {
final DioErrorType _type;
final Response? _response;
FakeDioError(this._type, [this._response]);
factory FakeDioError.response([Response? response]) =>
FakeDioError(DioErrorType... |
package actions
import (
"encoding/binary"
"io"
"github.com/pkg/errors"
"github.com/tokenized/pkg/bitcoin"
)
// WriteDeterministic writes data from a ContractOffer in a deterministic way so the data can
// be used to sign an object. The data output can not be parsed back into an object.
func (a *ContractOffer) W... |
#!/bin/bash
mkdir -p rootfs
cd rootfs/
cp ../rootfs.cpio ./
echo "Extracting cpio image, it requires root privilege to create rootfs"
sudo cpio -ivdu < rootfs.cpio
rm rootfs.cpio
cd ../
|
-- | Type errors
module Statics.Error (
-- * Basic error functions
typeBug, typeBugError, typeError, typeError_, typeError', tassert,
-- * Messages
gotMessage, expMessage,
-- ** Specialized message functions
tErrGot, tErrGot_, tErrGot', tAssGot,
tErrExp, tErrExp_, tErrExp', tAssExp,
-- * Re-exports
... |
import threading
class ThreadHandler():
def __init__(self):
self.thread_list = list()
def spawn_thread(self, target_func_name, args):
t = threading.Thread(target=target_func_name, args=args)
self.thread_list.append(t)
t.start()
|
# Cucumber features for hub
How to run all features:
```sh
make bin/cucumber
bin/cucumber
```
Because this can take a couple of minutes, you may want to only run select files
related to the functionality that you're developing:
```sh
bin/cucumber feature/api.feature
```
The Cucumber test suite requires a Ruby deve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.