text stringlengths 27 775k |
|---|
package com.kylecorry.sol.science.astronomy.locators
import com.kylecorry.sol.science.astronomy.meteors.MeteorShower
import com.kylecorry.sol.science.astronomy.units.EquatorialCoordinate
import com.kylecorry.sol.science.astronomy.units.UniversalTime
import com.kylecorry.sol.science.astronomy.units.timeToAngle
interna... |
using Employees.Services.Interfaces;
using EmployeesMapping.App.Commands.Interfaces;
namespace EmployeesMapping.App.Commands
{
public class ManagerInfoCommand : ICommand
{
private readonly IEmployeeService empService;
public ManagerInfoCommand(IEmployeeService empService)
{
... |
module ExactTargetSDK
class TriggeredSend < APIObject
array_property 'Attributes'
array_property 'Subscribers'
property 'TriggeredSendDefinition', :required => true
property 'Client'
end
end
|
# Stereo Matching using CoEx with TensorRT in C++
Sample project to run Stereo Matching using CoEx
Click the image to open in YouTube. https://youtu.be/fCIdXr0Hpbk
[](https://youtu.be/fCIdXr0Hpbk)
* Test image data is "2011_09_26_drive_0005" from The KITTI Dataset
## Target Enviro... |
package com.signify.hue.flutterreactiveble.channelhandlers
import com.signify.hue.flutterreactiveble.ble.BleClient
import io.flutter.plugin.common.EventChannel
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.Disposable
import io.reactivex.disposab... |
#!/bin/bash
# This script runs kotlin test app compilation with ksp and kapt repeatedly to measure time spent for each of them.
# Each build is executed once first (to cache all other tasks), and then N times for just ksp/kapt tasks.
set -e
declare -A totals
declare -A taskTotals
function log {
echo $1
}
SCRIPT_DI... |
package template.base.extensions
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import timber.log.Timber
fun CoroutineScope.launchSafe(
action: suspend () -> Unit,
onError: (Throwable) -> Unit = {}
) {
launch {
try {
... |
Import-Module .\PSWriteHTML.psd1 -Force
$DataTable3 = @(
[PSCustomObject] @{
'Tree Parent?' = 'Testing Tree ?'
'Other Tree (Rigth)' = 'Ok You mean Me (Test)'
'Hierarchy Table Recaluculation interval (minutes)' = "\\*\NETLO... |
<?php namespace SmashPig\PaymentProviders\PayPal;
use LogicException;
use SmashPig\Core\Context;
use SmashPig\Core\Http\OutboundRequest;
class PayPalPaymentsAPI {
/**
* @param array $post_fields Associative array of fields posted to listener
* @return bool
*/
public function validate( $post_fields = [] ) {
... |
# Copyright 2020 Google, LLC
#
# 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 writing, ... |
SELECT e.`first_name`, e.`last_name`, e.`department_id`
FROM `employees` AS e,
(SELECT e.`department_id`, AVG(e.`salary`) AS 'avg_sal'
FROM `employees` AS e
GROUP BY e.`department_id`) AS avg_sal_res
WHERE e.`department_id` = avg_sal_res.`department_id` AND e.`salary` > avg_sal_res.`avg_sal`
ORDER BY e.`department_id`
... |
module Temperature (tempToC, tempToF) where
tempToC :: Integer -> Float
tempToC temp = (fromInteger temp - 32) / 1.8
tempToF :: Float -> Integer
tempToF temp = ceiling $ temp * 1.8 + 32
|
package me.unei.configuration.api;
import me.unei.configuration.api.exceptions.NoFieldException;
import me.unei.configuration.api.fs.NavigableFile;
import me.unei.configuration.formats.StorageType;
import java.util.List;
public interface IConfiguration extends IFlatConfiguration, NavigableFile {
/**
... |
package model.service
import model.domain.classification.ClassifierService
import org.apache.spark.mllib.classification.NaiveBayesModel
import org.apache.spark.mllib.feature.HashingTF
import org.apache.spark.{SparkConf, SparkContext}
class IsRelevantClassifier extends ClassifierService{
val conf: SparkConf = new S... |
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebClient.PizzaWaiterTestServiceReference;
using WebClient.Models;
namespace WebClient {
/// TODO : Replace dummie
public partial class ShowMenu : System.Web.UI.Pag... |
--------------------------------------------------------------------------------------------------------------------------------------
-- Export the original FAERS current and legacy source data from the staging tables as CSV files.
-- Export the standardized data tables produced by this ETL process as CSV files.
-- Co... |
import 'dart:async';
import 'package:bouncer/bouncer.dart';
import 'package:test/test.dart';
void main() {
Future<int> fastRequest() => Future.value(3);
Future<int> slowRequest() => Future.delayed(Duration(seconds: 3), () => 3);
test('NoBouncer lets everyone in', () {
final bouncer = NoBouncer();
var c... |
package states
import (
"io"
"bytes"
. "github.com/Ontology/common/serialization"
"github.com/Ontology/core/code"
"github.com/Ontology/smartcontract/types"
. "github.com/Ontology/errors"
)
type ContractState struct {
StateBase
Code *code.FunctionCode
VmType types.VmType
NeedStorage bool
Name ... |
/*
* Copyright (c) 2017 Tran Le Duy
*
* 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 agree... |
package models
import akka.http.scaladsl.util.FastFuture._
import env.Env
import org.joda.time.DateTime
import play.api.libs.json._
import storage.BasicStore
import scala.concurrent.duration.Duration
import scala.concurrent.{ExecutionContext, Future}
import scala.util.Try
case class BackOfficeUser(randomId: String,
... |
package poc
import "testing"
import "gopkg.in/nowk/assert.v2"
func TestPoc(t *testing.T) {
p := New()
go p.Write([]byte("Hello World!"))
b := make([]byte, 1024)
n, err := p.Read(b)
assert.Nil(t, err)
assert.Equal(t, "Hello World!", string(b[:n]))
}
func TestReadBuffers(t *testing.T) {
p := New()
go func() {... |
package s99.p01
object P01 {
def last[T](xs: List[T]): T =
xs match {
case List() => throw new NoSuchElementException("Last element in list " + xs + " does not exist")
case x :: List() => x
case _ :: t => last(t)
}
}
|
# encoding: utf-8
require File.join(File.dirname(__FILE__), 'helper')
class TestTls < MosquittoTestCase
def test_tls_set
client = Mosquitto::Client.new
assert_raises Mosquitto::Error do
client.tls_set(nil, nil, ssl_object('client.crt'), ssl_object('client.key'), nil)
end
assert_raises Mosquitt... |
DROP TABLE IF EXISTS `empty`;
CREATE TABLE `empty` (
`id` INTEGER PRIMARY KEY AUTO_INCREMENT,
`space` VARCHAR(255)
);
|
unit GlassContols;
interface
uses
GlassForm,
Windows, Messages, SysUtils, Variants, Classes, Graphics;
type
TGlassContols = class (TComponent)
private
FFont: TFont;
FBrush: TBrush;
FWidth: integer;
FTop: integer;
FHeight: integer;
FLeft: integer;
procedure SetHeight(const Value: i... |
###
# Class Region
#
# A Region object is a container for Areas. Regions logically segregate groups of Areas. A game server
# will usually only house one Region for its local Areas, but it is possible to define multiple Regions
# for various organizationsl purposes.
#
class Region < DMUDObject
attr_accessor :metada... |
---
title: Autoboxing and Unboxing
description: Autoboxing and Unboxing
header: Autoboxing and Unboxing
tags: [Java, Autoboxing, Unboxing]
---
Autoboxing과 Unboxing은 Java 5에서 소개되었다.
## Autoboxing
기본 데이터 유형(Primitive type)을 Wrapper 클래스로 변환하는 것을 말한다. 예를 들어 int를 Integer로 변환하거나 long을 Long으로 변환하는 것이다.
## Unboxing
Wrapp... |
# frozen_string_literal: true
require 'simp/cli/environment/omni_env_controller'
require 'simp/cli/environment/puppet_dir_env'
require 'simp/cli/environment/secondary_dir_env'
require 'simp/cli/environment/writable_dir_env'
require 'spec_helper'
require 'yaml'
describe Simp::Cli::Environment::OmniEnvController do
O... |
/** @file
Provides Mach-O parsing helper functions.
Copyright (c) 2016 - 2018, Download-Fritz. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License which accompanies this
distribution. The full text of the license may... |
<?php
namespace content_cms\visitor\chart;
class view
{
public static function config()
{
$myTitle = T_("Visitor chart");
$myDesc = T_('Check list of visitor and search or filter in them to find your visitor.');
\dash\data::page_title($myTitle);
\dash\data::page_desc($myDesc);
$args = [];
if(\dash\r... |
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("dw")
public class class120 extends DualNode {
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 1678979845
)
int field... |
- [Constructors & Destructors](Constructor_Destructor.md)
- Types Of Constructors:
- [Default Constructor](default-constructor.md)
- [Parametrized Constructor](parametrized-constructor.md)
- [Constructors in derived classes ](Constructors_in_Derived_Classes.md)
- [Advanced Destructor](Advanced-Destructor.md)
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
# Contributing to confkit
For branching management, this project uses
[git-flow](https://github.com/petervanderdoes/gitflow-avh). The `main` branch is
reserved for releases: the development process occurs on `develop` and feature
branches. **Please never commit to `main`.**
## Setup
### Local repository
1. Fork the... |
# persian-to-slug
Slugifies persian (simple and clean)
## Use
- CDN
```html
<script src="https://unpkg.com/persian-to-slug@latest/dist/persian-to-slug.js"></script>
```
- Npm
```javascript
const PersianToSlug = require("persian-to-slug");
/*
PersianToSlug(
input,
part = 6,
separat... |
// tslint:disable-next-line:variable-name
export const enum Locale {
pong = "pong",
config_action_title = "config_action_title",
collect_save_success = "collect_save_success",
collect_save_fail = "collect_save_fail",
collect_save_no_images_found = "collect_save_no_images_found",
initial_run_upload_sti... |
package io.github.mariazevedo88.travelsjavaapi.repository.travel;
import java.time.LocalDateTime;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype... |
import Vue from 'vue';
// import axios from 'axios';
// import VueAxios from 'vue-axios';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import config from '@/config';
import moment from 'moment';
import App from './App.vue';
import router from './router';
Vue.config.productionTip =... |
require 'test_helper'
require 'webmock/minitest'
require 'notifiers/maintainer_notifier'
require 'notifiers/notifier_with_rescue_handler'
WebMock.allow_net_connect!
Pushing::Base.logger = Logger.new(STDOUT)
Pushing.configure do |config|
config.fcm.server_key = ENV.fetch('FCM_TEST_SERVER_KEY')
config.apn.environ... |
package com.github.pekoto.fastfuzzystringmatcher;
/**
* A result returned after searching using the string matcher.
*
* @author Graham McRobbie
*
* @param <T> The type of data associated with each string keyword.
*/
public class SearchResult<T> {
private CharSequence keyword;
private T associatedData;
privat... |
describe("ShowcaseScreen", () => {
beforeEach(async () => await device.reloadReactNative());
test("should have first page at first", async () => {
// await element(by.text("⋙")).tap(); //晕, 这还找不到?! 我打印下view hierarchy, 发现text已经是"⋙"
await element(by.text("⋙")).tap();
await expect(element(by.text(... |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CozyKxlol.Engine.Tiled.Json
{
public class CozyTiledJsonParser
{
public object ParseWithFile(string filename)
{
string... |
// Copyright © Pixel Crushers. All rights reserved.
using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections.Generic;
namespace PixelCrushers.LoveHate
{
/// <summary>
/// This abstract class is the workhorse for GossipTrigger and GossipTrigger2D.
/// </summary>
public abstract cla... |
function _get(name,context) {
if (context) {
// if you pass in a 3rd argument, which should be an html element, then that is set as teh context.
// this ensures garbage collection of the values when that element is removed.
return $.data(context[0],name);
} else {
return $.data(document.body,name);
... |
---
to: package.json
inject: true
at_line: 1
eof_last: false
---
"name": "<%= name %>",
"version": "<%= version %>",
"license": "<%= license %>",
"author": "<%= author %>",
|
import { InjectionToken } from '@angular/core';
import { Observable } from 'rxjs';
import { Shop } from '@dsh/api-codegen/capi';
export const SHOPS = new InjectionToken<Observable<Shop[]>>('Shops');
|
#pragma once
#include <vector>
#include "Shape.h"
class FileSVG;
class FileEPS;
class Document
{
public:
void AddCircle();
void AddRectangle();
void RemoveShape(const Shape*) {}
Shape* GetShapeByCoord(int, int);
Shape* GetSelectedShape() { return m_selectedShape; }
void SelectShape(Sha... |
{-# LANGUAGE FlexibleContexts #-}
--------------------------------------------------------------------------------
-- |
-- Module : Network.OpenID.Authentication
-- Copyright : (c) Trevor Elliott, 2008
-- License : BSD3
--
-- Maintainer : Trevor Elliott <trevor@geekgateway.com>
-- Stability :
-- Portabil... |
ALTER TABLE client ADD COLUMN productoffersconfigurations jsonb;
CREATE TABLE IF NOT EXISTS productOffers (
clientId uuid PRIMARY KEY REFERENCES client (id),
hash text,
productOffers jsonb
); |
// @filename: a.ts
export default abstract class A {}
// @filename: b.ts
import A from './a'
|
# *****************************************************************************
# *****************************************************************************
#
# Name: generate.rb
# Author: Paul Robson (paul@robsons.org.uk)
# Date: 1st October 2021
# Reviewed: No
# Purpose: Generate include files
#
# *******... |
#include <fstream>
#include <iostream>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <vector>
using namespace std;
struct MyData {
uint16_t x;
uint16_t y;
std::vector<uint32_t> samples;
};
void serialize(std::vector<MyData> indata) {
size_t size{0};
size += sizeof(size_t); // add spac... |
from dataclasses import dataclass
from ..pieces import PieceManager
from .action import Action
@dataclass
class Batch:
commands : list[Action]
# def __len__(self):
# return len(self.commands)
def __iter__(self):
return iter(self.commands)
def execute(self, piece_manager : PieceManag... |
package diwan.fablab.gemals.graphics;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Affine2;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.CircleShape;
import com.badlogic.gdx.physics.box2d.Fixture;
import com.badlogic.gdx... |
#!/bin/bash
docker run --rm -v `pwd`:/home/myapp mono-pcqq:proto ./generate_stub.sh
|
require_relative "../kamayan"
# Diagram of a queue:
#
# New elements are added here
# |
# v
# +---+---+---+
# | x | y | z |
# +---+---+---+
# ^
# |
# Elements are removed from here
#
#
# Diagram of a queue as you run operations on it:
#
# +
# Empty queue: ... |
package org.wikipedia.feed.mostread;
import androidx.annotation.NonNull;
import org.wikipedia.json.annotations.Required;
import java.util.Date;
import java.util.List;
@SuppressWarnings("unused,NullableProblems")
public final class MostRead {
@Required @NonNull private Date date;
@Required @NonNull private L... |
#!/bin/bash
EXODUS_VERSION=$1
echo EXODUS_VERSION=$EXODUS_VERSION
#./googlecode_upload.py --help
#Usage: googlecode-upload.py -s SUMMARY -p PROJECT [options] FILE
#
#Options:
# -h, --help show this help message and exit
# -s SUMMARY, --summary=SUMMARY
# Short description of the fil... |
#[derive(Debug)]
#[derive(PartialEq)]
#[allow(non_camel_case_types)]
pub enum TokenType {
INSTRUCTION,
LABEL,
INTEGER,
DOUBLE,
STRING,
REGISTER,
METHOD,
VARIABLE_DECL,
VARIABLE,
INCLUDE,
CHAR
}
pub struct Token {
pub token_t: TokenType,
pub data: String
}
impl Token... |
"""
identify_condition(df::AbstractDataFrame,cols::Vector{Symbol},codes::Vector{String})
produces a vector of Boolean `true` or `false` depending on whether columns `cols` contain
any of the string values in `codes`. This function is designed to easily identify comorbid
conditions in inpatient or outpatient record... |
$: << File.dirname(__FILE__) + '/..'
require 'helper'
describe Clive::Argument::AlwaysTrue do
subject { Clive::Argument::AlwaysTrue }
it 'is always true for the method given' do
subject.for(:hey).hey.must_be_true
end
it 'is always true for the methods given' do
a = subject.for(:one, :two, :three)
... |
use serde::{Deserialize, Serialize};
use url::Url;
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct User {
pub id: String,
pub username: String,
pub links: UserLinks,
pub profile_image: UserProfileImage,
}
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct UserLinks {
pub html: S... |
INSERT INTO history
(
from_title,
description,
amount,
"date"
)
VALUES
($1,$2,$3,$4)
; |
use Test::Unit::HarnessUnit;
use lib qw(t/tlib);
my $r = Test::Unit::HarnessUnit->new();
$r->start( 'P4::Objects::Test::Connection' );
|
using System.Collections.Generic;
namespace Microsoft.TemplateEngine.Orchestrator.RunnableProjects
{
public interface ISymbolModel
{
string Type { get; }
string Binding { get; set; }
string Replaces { get; set; }
IReadOnlyList<IReplacementContext> ReplacementConte... |
require_relative "../../../../test_helper"
describe Restforce::DB::RecordTypes::Salesforce do
configure!
mappings!
let(:record_type) { mapping.salesforce_record_type }
describe "#create!", :vcr do
let(:database_record) do
database_model.create!(
name: "Something",
example: "Somethi... |
#!/bin/bash
if [ "$ROOT_DIR" = "" ]; then
exit "Must set ROOT_DIR!"
else
. $ROOT_DIR/bin/include.sh
fi
SIMNAME=$1
INTERVAL=$2
SIMDIR=$RESEARCH_DIR/$SIMNAME
LOGFILE=$SIMDIR/intraday.log
#JAVA_ARGS="-Xmx1500m"
JAVA_ARGS=""
rm -f $SIMDIR/calcres_intraday/*
$JAVA $JAVA_ARGS ase.apps.IntradayCalcresGenerator $SI... |
append([], A, A).
append([H|T], A, [H|R]) :-
append(T, A, R).
partition([H|T],Pivot,[H|LessThan],GreaterThan) :- H=<Pivot,
partition(T,Pivot,LessThan,GreaterThan).
partition([H|T],Pivot,LessThan,[H|GreaterThan]) :- H > Pivot,
partition(T,Pivot,LessThan,GreaterThan).
partition([],_,[],[]).
quicksort([],[])... |
<?php
namespace App\Http\Controllers;
use App\typeAbonner;
use Illuminate\Http\Request;
class TypeAbonnerController extends Controller
{
public function createType(Request $request) {
$request->validate([
'type' => 'required|string',
]);
$type = new typeAbonner();
$t... |
<?php
use fr\dieunelson\HeaderManager;
use fr\dieunelson\webservices\Request;
use fr\dieunelson\webservices\Response;
use fr\dieunelson\webservices\Route;
use fr\dieunelson\webservices\hello\Hello;
use fr\dieunelson\webservices\hello\HelloCtrl;
use fr\dieunelson\webservices\hello\HelloValidator;
Route::get("/hello/:v... |
export function promptCustomizationUpload() {
$('#config-upload').trigger('click');
}
export function init() {
$('#config-upload').on('change', function(){
$(this).closest('form').submit();
});
$('#toggle-json').on('click', function(){
$('#customization-json').toggle();
if ($(... |
package com.dev.nytimes.models.news
import android.os.Parcelable
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
/**
* Sub data class for sample response.
*/
@Parcelize
data class AllNewsResultImages (
@SerializedName("url")
... |
package it.nerdammer.spark
import it.nerdammer.spark.hbase.conversion.{FieldReaderConversions, FieldWriterConversions}
package object hbase
extends HBaseSparkContextConversions
with SaltingProviderConversions
with FieldReaderConversions
with Fiel... |
#!/bin/bash
nbDb2MemberVms=$1
nbDb2CfVms=$2
acceleratedNetworkingOnDB2=$3
nbGlusterfsVms=3
sudo bash -c "echo \"192.168.0.5 jumpbox\" >> /etc/hosts"
sudo bash -c "echo \"192.168.0.40 wcli0\" >> /etc/hosts"
sudo bash -c "echo \"192.168.0.60 witn0\" >> /etc/hosts"
db2servers=()
for (( i=0; i<$nbDb2MemberVms; i++ )... |
using System;
namespace InitializingArray
{
class MainApp
{
static void Main(string[] args)
{
string[] array1 = new string[3]{ "안녕", "Hello", "Halo" };
Console.WriteLine("array1...");
foreach (string greeting in array1)
Console.WriteLine($" ... |
#!/usr/bin/sh
count=`ls -t chr*.depth | wc -l | awk '{print $1}'`
for ((i=1;i<=$count;i++))
do
#fetch the file name
file=`ls -t chr*.depth | awk "NR==$i {print \$1}"`
#remove file ending from filename
chr=`echo $file | sed -e 's/.depth//'`
echo $file, $chr
#change R script to run on new file... |
---
title: "Distribution"
excerpt: "분포 확인하기"
categories:
- SQL_Query_Book
tags:
- 1
last_modified_at: 2021-07-23
toc: true
toc_label: "Table Of Contents"
toc_icon: "cog"
toc_sticky: true
use_math: true
---
<br>
- SQL 에서 바로 분포를 확인하기 위한 쿼리를 작성해 보았습니다.
# [Conti] Round 를 이용한 확인
```sql
SELECT bucket,
count(*)... |
# xnet
V port of Golang's [net/ip](https://github.com/golang/go/blob/master/src/net/ip.go).
## Development
```
$ git clone https://github.com/alexferl/xnet.git
$ cd xnet
$ make dev
```
To run the tests:
```
$ make test
```
|
Ill figure this out one day
20100206 13:47:49 nbsp Welcome to the Wiki. If you need help figuring this out, just ask. Users/JasonAller
|
package com.chinazyjr.githubapplication.ui.login.presenter
import android.app.Activity
import android.content.Context
import com.chinazyjr.haollyv2.base.BasePresenter
import com.chinazyjr.haollyv2.base.IBaseView
/**
* Created by shanghai on 2018/4/26.
*/
class EmptyPresenter(mContext: Activity) : BasePresenter<IBas... |
// #Sireum
package art
import org.sireum._
import art.Art.BridgeId
@ext object ArtTimer {
def setTimeout(bridgeId: BridgeId, eventId: String, wait: Art.Time, autoClear: B, callback: () => Unit): Unit = $
def clearTimeout(eventId: String): Unit = $
}
|
library computed_value_notifier;
import 'package:flutter/foundation.dart';
/// A class that can be used to derive a value based on data from another
/// Listenable or Listenables.
///
/// The value will be recomputed when the provided [_listenable] notifies the
/// listeners that values have changed.
///
/// ### Simp... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/3/28
* Time: 23:41
*/
namespace app\platformmanage\controller;
use think\Controller;
use think\db;
class Notesbg extends Controller
{
/**
* * 功能描述:显示遊記管理页面/可以模糊查询加分页
* 参数:无
* 返回:无
* 作者:min H
* 时间:18-4-4
**... |
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using SalesProject.Domain.Constants.Database;
using SalesProject.Domain.Entities;
namespace SalesProject.Infra.Mapping
{
public class InvoiceMap : IEntityTypeConfiguration<Invoice>
{
public void Configure(Entit... |
<?php
namespace Shopsys\FrameworkBundle\Model\Product\Availability;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Shopsys\FrameworkBundle\Model\Localization\AbstractTranslatableEntity;
/**
* @ORM\Table(name="availabilit... |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jan 02, 2017 at 04:52 PM
-- Server version: 5.6.33
-- PHP Version: 5.6.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE... |
using System;
using Xunit;
using TowersOfHanoi;
namespace HanoiTestsct1
{
public class UnitTest1
{
[Fact]
public void CanPeek()
{
//Arrange / Act
MyStack testStack = new MyStack(new Node() { Value = 5 });
//Assert
Assert.Equal("5", testSt... |
CONN xmlusr/xmlusr
BEGIN
DBMS_XMLSCHEMA.registerschema(
'emp.xsd',
'<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb">
<xs:element name="EMPLOYEE" type="EMP_TYP"/>
<xs:complexType name="... |
var GLOBALVAR = window.GLOBALVAR || {};
GLOBALVAR.credits = {};
GLOBALVAR.holidays = {};
require.config({
paths: {
'jquery': 'vendor/jquery.min',
'backbone': 'vendor/backbone-min',
'underscore': 'vendor/underscore-min',
'html5shiv': "vendor/html5shiv.min",
'text': 'vend... |
---
layout: reference
title: GetString.srv
package: oort_msgs
category: service-message
tags:
- oort
---
## Message Definition
```
---
string data
```
## Arguments
#### `data`
Returned string.
## Related Documentation
``/oort_ros_mapping/map/name``
``/oort_ros_mapping/map/state``
|
module DashboardTimeline
extend ActiveSupport::Concern
def setup_timeline(school_observations)
school_observations.visible.order('at DESC').limit(10)
end
end
|
package ru.intertrust.cm.core.gui.impl.markup.DialogBoxWidget;
/**
* Created with IntelliJ IDEA.
* User: lvov
* Date: 24.10.13
* Time: 14:49
* To change this template use File | Settings | File Templates.
*/
public class Entity {
boolean aBoolean;
String string;
String pop;
public Entity(boolea... |
{{rimport}}('__init__.r')
infile = {{i.infile | R}}
outfile = {{o.outfile | R}}
params = {{args.params | R}}
inopts = {{args.inopts | R}}
inparams = list(
file = infile,
header = as.logical(inopts$cnames),
row.names = if (as.logical(inopts$rnames)) 1 else NULL,
skip = if (is.null(inopts$skip)) 0 e... |
package de.quinesoft.checklist.model
import enumeratum._
import io.circe.Codec
import io.circe.generic.semiauto._
import scala.collection.immutable
sealed trait Role extends EnumEntry
object Role extends Enum[Role] with CirceEnum[Role] {
case object Admin extends Role
case object User extends Role
override ... |
<?php
namespace PonyFire\Core;
use Exception;
use PonyFire\Http\Request;
use PonyFire\Core\Exceptions\RouterProcessorException;
use PonyFire\Router\Exceptions\InvalidArgumentException;
use FastRoute\Dispatcher;
class RouterProcessor
{
/**
* @var string $method
*/
protected string $me... |
// SPDX-License-Identifier: Apache-2.0
package firrtlTests
import firrtl.testutils._
class NegSpec extends FirrtlFlatSpec {
"unsigned neg" should "be correct and lint-clean" in {
val input =
"""|circuit UnsignedNeg :
| module UnsignedNeg :
| input in : UInt<8>
| output ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class BuildingSpacePrice extends Model
{
/**
* {@inheritDoc}
*/
public static $types = [
'hourly' => '/jam',
'daily' => '/hari',
'weekly' => '/minggu',
... |
import { Request,
XHRBackend,
BrowserXhr,
ResponseOptions,
XSRFStrategy,
Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/catch';
import 'rxjs/add/observable/throw';
export class AuthConnectionBackend extends XHRBacken... |
use specs::prelude::*;
use specs::world::EntitiesRes;
use paddlers_shared_lib::prelude::*;
use paddlers_shared_lib::game_mechanics::town::*;
use crate::prelude::*;
use crate::game::town::Town;
use crate::net::graphql::query_types::HoboEffect;
use crate::game::units::attackers::insert_duck;
pub (crate) fn insert_build... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.