text stringlengths 27 775k |
|---|
# Laravel-OCI8 CHANGELOG
## [Unreleased]
## [v8.5.0] - 2021-09-18
- Allow top-level application to dynamically set its own database `$config[]` parameters [#667]
- Fixed checkMultipleHostDsn SERVICE_NAME using inconsistent database config bugs. #670
## [v8.4.1] - 2021-07-10
- Fix non-existent global constants. #66... |
require 'nokogiri'
require 'minitest/autorun'
def find_posts(dir)
posts = []
Dir.each_child(dir) do |child|
posts += find_posts(dir + "/#{child}") if File.directory?(dir + "/#{child}")
posts.append(dir + "/#{child}") if child.end_with?('.html')
end
posts
end
class TestTags < Minitest::Test
def test_... |
// code-examples/AdvOOP/ui3/button.scala
package ui3
class Button(val label: String) extends Widget with Clickable {
def click() = {
// Logic to give the appearance of clicking a button...
}
def draw() = {
// Logic to draw the button on the display, web page, etc.
}
override def toString(... |
import os
import json
import numpy as np
import pandas as pd
import FeaturesStack as FS
def calculate_gmdh_model(img_f):
if task_type == "1":
if sensor_type == "convex":
prob = (
-0.946477
+ img_f["std_vert"] * np.cbrt(img_f["P95(1)_vert"]) * 0.01712... |
UPGRADE FROM 1.x to 2.0
=======================
### Exceptions namespaces
All exceptions of this bundle was moved to `Debril\RssAtomBundle\Exception` namespace.
Feed exceptions are now on `Debril\RssAtomBundle\Exception\FeedException` namespace.
Before:
```php
use Debril\RssAtomBundle\Driver\DriverUnreachableResou... |
for (study in c("SDY212", "SDY400", "SDY404")) {
fn.ge = file.path(PROJECT_DIR, "generated_data", "HIPC",
paste0(study, "_GE_matrix_gene.txt"))
dat = fread(fn.ge, data.table = F)
fn.si = file.path(PROJECT_DIR, "generated_data", "HIPC",
paste0(study, "_sample_info.txt... |
{-|
Module : Test.Problem.ProblemExpr.Class
Description : The ProblemExpr Class tests
Copyright : (c) Andrew Burnett, 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : -
Exports the testing functionality of the ProblemExpr Class
-}
module Test.Problem.ProblemExpr.Class (
... |
window.onload = function() {
var m1 = new Matrix($('#matrix1'), 20, 20);
m1.construct();
var s1 = new Snake(m1, 200);
s1.setSnake();
var m2 = new Matrix($('#matrix2'), 20, 20);
m2.construct();
var s2 = new Snake(m2, 200);
s2.setSnake();
/*var m3 = new Matrix($('#matrix3'), 20, 20);
m3.construct();
... |
let cosmos = require('../../cosmos');
let generateToken = () => {
let ALPHA_NUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";
let token = '';
for (let i = 0; i < 16; ++i)
token += ALPHA_NUM.charAt(Math.floor(Math.random() * ALPHA_NUM.length));
return token;
};
let getNodeDetails = (... |
// Copyright 2021 bilibili-base
//
// 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 i... |
import logging
from flask_sqlalchemy import sqlalchemy
from init import DecorationForm, config
from utilities.scm_enums import ErrorCodes
from utilities.scm_exceptions import ScmException
from utilities.scm_logger import ScmLogger
class DecorationFormRepository:
logger = ScmLogger(__name__)
def __init__(sel... |
## listbox filtered by entry
If there is no text in entry then it display all items

If there is text in entry then it displays only matching elements
It check matching in any place in item (like `"%TEXT%"` in database)

... |
---
layout: mobile-pe
title: ThingsBoard PE Mobile Application
description:
---
<section id="intro">
<main>
<h1><a href="/docs/pe/mobile/">ThingsBoard PE Mobile Application</a> is an open-source <a href="https://github.com/thingsboard/flutter_thingsboard_pe_app">project</a> based on Flutter</h1>
<h... |
export * from './product-deletion.model.ts';
export * from './product-dto.model';
export * from './product-modifitaction.model';
export * from './product.model';
|
function createmesh!(data::Dict{Symbol, Any}, params::Parameters)
el = 0
seg = data[:segments]
sgmedium = data[:media][data[:medium]] / 231. # in [in^3]
for i in 1:length(seg)
mat = data[:materials][seg[i].material]
radius = seg[i].od / 2.0
dm2 = seg[i].od^2 - seg[i].id^2
dm4 = seg[i].od^4 -... |
<?php
namespace Riconect\MailerBundle\Service;
/**
* Class MongoDBSpool
*/
class MongoDBSpool extends \Swift_ConfigurableSpool
{
/**
* @abstract object $dm
*/
protected $dm;
/**
* @var string $documentClass
*/
protected $documentClass;
/**
* @var boolean $k... |
package cz.tacr.elza.dataexchange.input.sections.context;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import cz.tacr.elza.core.data.RuleS... |
{-# LANGUAGE CPP #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeOperators #-}
-- | Resources used by node and ways to deal with them.
module Pos.Launcher.Resource
(
-- * Full resources
NodeResources (..)
, hoistNodeResources
, allocateNodeResources
, relea... |
class Questionnaire < ActiveRecord::Base
attr_accessible :parent_id, :question
def self.get_root_question_id
1 #should actually get root instead of hard code
end
end |
#!/bin/bash
if which flow>/dev/null 2>&1 ;
then
echo 0 > ~/install-exit-status
else
echo "ERROR: Open Porous Media (OPM) is not found on the system. The flow binary could not be found in the PATH. Binaries for RHEL / Ubuntu and download instructions can be found @ https://opm-project.org/"
echo 2 > ~/install-exit-s... |
from HRMSystem.models import HRMSystem
from django.contrib import admin
@admin.register(HRMSystem)
class HRMSSystemAdmin(admin.ModelAdmin):
pass
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2022/5/23 14:05
Desc: 东方财富网-数据中心-特色数据-停复牌信息
http://data.eastmoney.com/tfpxx/
"""
import pandas as pd
import requests
def stock_tfp_em(date: str = "20220523") -> pd.DataFrame:
"""
东方财富网-数据中心-特色数据-停复牌信息
http://data.eastmoney.com/tfpxx/
:param date: ... |
package com.example;
import net.thauvin.erik.semver.Version;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.text.SimpleDateFormat;
@Version(properties = "version.properties")
//@Version(
// properties = "example.pr... |
ALTER TABLE `lh_chat_online_user`
ADD `device_type` tinyint(1) NOT NULL DEFAULT '0',
COMMENT='';
ALTER TABLE `lh_abstract_proactive_chat_invitation`
ADD INDEX `show_on_mobile` (`show_on_mobile`); |
PROGRAM TSRFAC
C
C Define the error file, the Fortran unit number, the workstation type,
C and the workstation ID to be used in calls to GKS routines.
C
C PARAMETER (IERRF=6, LUNIT=2, IWTYPE=1, IWKID=1) ! NCGM
C PARAMETER (IERRF=6, LUNIT=2, IWTYPE=8, IWKID=1) ! X Windows
C PARAMETER (IERRF=6, L... |
#include "usr_misc.h"
#include "shell.h"
#include "string.h"
#include "mpconfigport.h"
#if MICROPY_PY_THREAD
#include "mpthreadport.h"
#endif
#ifdef MICROPY_USING_FILESYSTEM
#include <vfs_fs.h>
#include "vfs_fs.h"
#include "vfs_posix.h"
#include "usr_general.h"
#endif
#ifdef MICROPY_USING_AMS
#include "ams.h"
#ifndef... |
mod fixtures;
use assert_cmd::prelude::*;
use assert_fs::fixture::TempDir;
use fixtures::{port, tmpdir, Error};
use rstest::rstest;
use std::process::{Command, Stdio};
use std::thread::sleep;
use std::time::Duration;
#[rstest(headers,
case(vec!["x-info: 123".to_string()]),
case(vec!["x-info1: 123".to_string()... |
#!/bin/bash
nodes=1
ppn=4
let nmpi=$nodes*$ppn
tstamp=`date +%m_%d_%H_%M_%S`
#--------------------------------------
cat >batch.job <<EOF
#BSUB -o %J.out
#BSUB -e %J.err
#BSUB -R "span[ptile=${ppn}]"
#BSUB -R "select[ngpus=6] rusage[ngpus_shared=20]"
#BSUB -R "select[type=RHEL7_4]"
#BSUB -env "LSB_START_JOB_MPS=N"
#B... |
package enterpriseAndMobile.dto;
import enterpriseAndMobile.model.Round;
import java.util.List;
public class QuizDto {
private String name;
private boolean enabled;
private List<Round> rounds;
public QuizDto() {
}
public QuizDto(String name, boolean enabled) {
this.name = name;
... |
//
// UITextView_twPlaceHolder.h
// TWTool_Example
//
// Created by TW on 2021/3/11.
// Copyright © 2021 tanwang11. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
IB_DESIGNABLE
//IB_DESIGNABLE 让你的自定 UIView 可以在 IB 中预览。
//IBInspectable 让你的自定义 UIView 的属性出现在 IB 中 Attributes inspector 。
@in... |
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
# @file
# @author Neil Vaytet
import pytest
from pathlib import Path
from tempfile import TemporaryDirectory
import numpy as np
import scipp as sc
from ..factory import make_dense_data_array, make_dense_dataset, \... |
package com.kotlinconf.library.domain.repository
import com.github.aakira.napier.Napier
import dev.bluefalcon.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import com.kotlinconf.library.d... |
http POST localhost:8080/player email=andrewrademacher@gmail.com fortune="Where is Waldo?"
http localhost:8080/fortune/trade/andrewrademacher@gmail.com/andrewrademacher@gmail.com
http localhost:8080/fortune/trade/andrewrademacher@gmail.com/andrewrademacher@gmail.com
|
using System;
using NUnit.Framework;
using Shouldly;
using SqlPad.Oracle.DatabaseConnection;
using SqlPad.Oracle.DataDictionary;
#if ORACLE_MANAGED_DATA_ACCESS_CLIENT
using Oracle.ManagedDataAccess.Types;
#else
using Oracle.DataAccess.Types;
#endif
namespace SqlPad.Oracle.Test
{
public class MiscellaneousTest
{
[... |
---
title: Agenda
inshort: To-do list untuk hidup & bekerja [Wunderlist]
translator: Microsoft Cognitive Services
---
Dari pekerjaan untuk bermain, agenda adalah cara termudah untuk mendapatkan barang dilakukan, setiap hari.
|
import router from './router';
import getQueryStringParams from '../shared/getQueryStringParams';
import seserializeParam from '../shared/serializeParam';
import serializeSearch from '../shared/serializeSearch';
import segments, {resetSegments} from './segments';
const paramsProxyHandler = {
set(target, name, value)... |
import 'package:flutter/material.dart';
import 'package:tool/widgets/decoration.dart';
extension IntExtensions on int? {
/// Validate given int is not null and returns given value if null.
int validate({int value = 0}) {
return this ?? value;
}
/// Leaves given height of space
Widget get height => Sized... |
module TIPS.RowColumn where
import qualified Data.ByteString.Char8 as B
import Data.Maybe (fromJust)
import Control.Monad (replicateM)
import Data.List (transpose)
getInts :: IO [Int]
getInts = map (fst . fromJust . B.readInt) . B.words <$> B.getLine
--input
--3 5 4
--11100
--10001
--00111
main = do
[h,w,k] <- get... |
#pragma once
#include "demhandlers.h"
#include "base/array.h"
namespace DemMsg
{
struct Dem_DataTables
{
static const int DATA_MAX_LENGTH = 256 * 1024;
Array<uint8_t> data;
};
}
DECLARE_DEM_HANDLERS(Dem_DataTables);
|
use super::*;
/// A rectangle around some area.
///
/// By convention, coordinates **include** the top-left and **exclude** the
/// bottom-right.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(C)]
pub struct RECT {
pub left: LONG,
pub top: LONG,
pub right: LONG,
pub bottom:... |
---
layout: post
comments: true
title: "WeeChat: easy instructions for using SASL"
category: [english]
tags: [irc, english]
redirect_from:
- /weechat-sasl.html
- /english/2015/03/26/weechat-sasl-simply.html
---
This seems to confuse many WeeChat users, so I will try to explain it more
simply as I am repeating myse... |
package me.toptas.fancyshowcase
import android.view.animation.AlphaAnimation
internal class FadeInAnimation : AlphaAnimation(0f, 1f) {
init {
fillAfter = true
duration = 400
}
} |
package chat.rocket.android.authentication.signup.ui
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.core.view.ViewCompat
import androi... |
package io.github.voidcontext.easyvalidator
import DSL._
import org.scalatest._
import scala.util.{Try}
class DSLSpec extends FlatSpec with TryValues {
def testValidValue[T](result: Try[T], num: T) = assert(result.success.value == num)
def testInvalidValue[T](result: Try[T], errMsg: String) = assert(
result.... |
class Guest
def name
'Guest Visitor'.freeze
end
def email
'unknown@domain.com'.freeze
end
def appear
end
def disappear
end
def away
end
end
|
module Docks
module Tags
class Link < Base
def initialize
@name = :link
@synonyms = [:see]
@multiline = false
@multiple_allowed = true
end
def process(symbol)
symbol.update(@name) do |links|
Array(links).map { |link| OpenStruct.new name_and_pare... |
// Generated on Thu Nov 09 17:15:14 MSK 2006
// DTD/Schema : http://www.springframework.org/schema/jee
package com.intellij.spring.model.xml.jee;
import javax.annotation.Nonnull;
import com.intellij.psi.PsiClass;
import com.intellij.util.xml.DomElement;
import com.intellij.util.xml.GenericAttributeValue;
import ... |
import tensorflow as tf
import config
def load_dataset():
mnist = tf.keras.datasets.mnist
train, test = mnist.load_data(path=config.DATA_PATH)
return train, test
|
RSpec.describe XLSXToHTML do
let(:xlsx_path) { fixture_path('with_static_headers.xlsx') }
it 'has a version number' do
expect(described_class::VERSION).not_to be nil
end
it '.convert' do
expect { described_class.convert(xlsx_path) }.not_to raise_error
end
end
|
subroutine getvort()
!Calculates the vorticity on the edge of the object.
!The vorticity is taken to be a constant on the surface:
! vortcoeff on the top edge, and -vortcoeff on the bottom edge
use vars
use parallel
implicit none
integer :: i, j
call getv() !get the velocity
do j=1,ny
... |
package com.amsavarthan.apps.media_toolbox.whatsapp.home
interface OnClickDownloadListener {
fun onClickDownload()
} |
#!/bin/sh
# Create Package
aws cloudformation package \
--template-file template.yml \
--output-template-file template-output.yml \
--s3-bucket alexa-sounds-of-rain-package \
--profile xblood
# Deploy
aws cloudformation deploy \
--template-file template-output.yml \
--stack-name alexa-sounds-of-rain-sam \... |
import 'package:app/app/route/approute.dart';
import 'package:app/common/utils/resultutils.dart';
import 'package:app/generated/l10n.dart';
import 'package:app/module/minus/result/data/model/resultitemmodel.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:intl/intl.dart';
c... |
<?php
namespace App\Http\Controllers;
use App\Services\ShopService;
class ShopController
{
private $shopService;
public function __construct(ShopService $shopService)
{
$this->shopService = $shopService;
}
public function enterShop()
{
$items = $this->shopService->getShopa... |
#!/usr/bin/env bash
set -x
CONFIG_FILE="configs/video/cityscapes/memory_cam_4_r50-d16_769x769_80k_cityscapes_video.py"
CONFIG_PY="${CONFIG_FILE##*/}"
CONFIG="${CONFIG_PY%.*}"
WORK_DIR="./work_dirs/${CONFIG}_k64_s4_concat"
#WORK_DIR="./work_dirs/test"
#WORK_DIR="./work_dirs/memory_r18-d16_769x769_80k_cityscapes_video_... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Zmora.Queue where
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BL
import Data.Int (Int64)
import Data.ProtocolBuffers
import ... |
package isamrs.tim21.klinika.dto;
import java.util.List;
import isamrs.tim21.klinika.domain.Sifarnik;
public class PosetaDTO3 {
private String opis;
private Long posetaId;
private Sifarnik bolest;
private List<Sifarnik> lekovi;
private String dioptrija;
private String krvnaGrupa;
private Integer visina... |
var classv8_1_1internal_1_1_s_c_table_reference =
[
[ "SCTableReference", "classv8_1_1internal_1_1_s_c_table_reference.html#a3d27c68aadf4366d32e8391634559250", null ],
[ "address", "classv8_1_1internal_1_1_s_c_table_reference.html#a9ef72f9ebe8c83cf2706d426b8cb942e", null ],
[ "StubCache", "classv8_1_1intern... |
<?php
namespace App\Http\Livewire\Importer;
use Elasticsearch\ClientBuilder;
use Illuminate\Http\File;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use Livewire\Component;
class Import extends Component
{
public $csvUrl;
public $supportedColumns = [
'date',
... |
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getx_route_navigation/home.dart';
import 'package:getx_route_navigation/next.dart';
import 'package:getx_route_navigation/unknown_route.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const M... |
package havis.middleware.ale.core.manager;
import org.junit.Assert;
import org.junit.Test;
public class ACTest {
@Test
public void getStandardTest(){
Assert.assertEquals("1.1", AC.getStandardVersion());
}
}
|
package openfoodfacts.github.scrachx.openfood.features.changelog
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import openfoodfacts.github.scrachx.openfood.R
class ChangelogAdapter(private val i... |
<?php
declare(strict_types = 1);
namespace app\modules\dynamic_attributes\models\references;
use app\components\pozitronik\references\models\CustomisableReference;
use app\models\relations\RelUsersAttributesTypes;
/**
* This is the model class for table "ref_attributes_types".
*
* @property int $id
* @property s... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Why_choose;
use Illuminate\Http\Request;
use Carbon\Carbon;
use Image;
class Why_chooseController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
// view page
... |
package pattern
import models.{Customer, Employee}
import scala.util.Random
object PatternMatchingExample extends App {
val x = Random.nextInt(8)
x match {
case 0 => println("zero")
case 1 => println("one")
case 2 => println("two")
case 3 => println("three")
case _ => println("more than two")... |
#!/bin/bash
# Set up vnc server
# https://askubuntu.com/questions/328240/assign-vnc-password-using-script
myuser="econ-ark"
mypass="kra-noce"
echo "$mypass" > /tmp/vncpasswd # First is the read-write password
echo "$myuser" >> /tmp/vncpasswd # Next is the read-only password (useful for sharing screen with students... |
namespace AlbedoTeam.Sdk.Authentication.Internals
{
using System;
using System.Linq;
using Abstractions;
internal class AuthenticationConfigurator : IAuthenticationConfigurator
{
public IAuthenticationOptions Options { get; private set; }
public IAuthenticationConfigurator... |
(cl:defpackage cacc_msgs-msg
(:use )
(:export
"<CACCCONTROLPACKET>"
"CACCCONTROLPACKET"
"<CACCMPCPARAM>"
"CACCMPCPARAM"
"<CACCMPCSTATE>"
"CACCMPCSTATE"
"<CACCSENSORPACKET>"
"CACCSENSORPACKET"
"<CACCSTATEPACKET>"
"CACCSTATEPACKET"
"<PRARXPARAM>"
"PRARXPARAM"
))
|
import {Vessel} from "../../../../backend-api/identity-registry/autogen/model/Vessel";
import {VesselAttribute} from "../../../../backend-api/identity-registry/autogen/model/VesselAttribute";
import AttributeNameEnum = VesselAttribute.AttributeNameEnum;
import {EnumsHelper} from "../../../../shared/enums-helper";
expo... |
# Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
name = 'raiutils'
_major = '0'
_minor = '0'
_patch = '1'
version = '{}.{}.{}'.format(_major, _minor, _patch)
|
import autocomplete, { AutocompleteItem } from 'ag-grid-autocomplete-editor/autocompleter/autocomplete'
describe('autocomplete end-to-end autoselect tests', () => {
it('should not autoselect first when outside click is detected', function () {
const inputText = 'United'
cy.fixture('selectDatas/united.json')... |
package io.homeassistant.companion.android.domain.authentication
enum class SessionState {
ANONYMOUS,
CONNECTED,
} |
# 3.1.1 为域适配持久化
在将对象持久化到数据库时,通常最好有一个惟一标识对象的字段。Ingredient 类已经有一个 id 字段,但是需要向 Taco 和 Order 添加 id 字段。
此外,了解何时创建 Taco 以及何时放置 Order 可能很有用。还需要向每个对象添加一个字段,以捕获保存对象的日期和时间。下面的程序清单显示了 Taco 类中需要的新 id 和 createdAt 字段。
{% code title="程序清单 3.3 向 Taco 类添加 id 和 timestamp 字段" %}
```java
@Data
public class Taco {
private Long ... |
// Copyright 2020 The SQLFlow Authors. All rights reserved.
// 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 applicab... |
const pipe: import('ts-functionaltypes').Pipe = (...functions) => (arg) => functions.reduce(
(result, fn) => fn(result),
arg
);
export default pipe;
|
package csc207.fall2018.gamecentreapp.slidingtiles;
import android.support.annotation.NonNull;
import java.util.NoSuchElementException;
import java.util.Observable;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
/**
* The sliding tiles board.
*/
public class... |
from data_processing import DataProcessing as DP
if __name__ == '__main__':
dp = DP(cut_level='word')
dp.dataset_dir('usrfiles', 'newfiles')
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.myKeyBindingFn = undefined;
exports.findInlineTeXEntities = findInlineTeXEntities;
exports.changeDecorator = changeDecorator;
var _draftJs = require('draft-js');
var hasCommandModifier = _draftJs.KeyBindingUtil.hasCommandModifier;... |
import React, { Component } from 'react';
import Searchbar from '../components/Eventspage/Searchbar/Searchbar'
import Actionsbar from '../components/Actionsbar/Actionsbar'
import ProcessEventList from '../components/Eventspage/Eventslist/ProcessEventList'
class Eventspage extends Component {
state = {
activeTab... |
package net.ndrei.teslacorelib.netsync
import net.minecraftforge.fml.common.network.simpleimpl.IMessage
/**
* Created by CF on 2017-06-28.
*/
interface ITeslaCorePackets {
fun send(message: IMessage)
fun sendToServer(message: IMessage)
} |
<?php
require 'view/template/nav.php';
require 'view/template/header.php';
?>
<article>
<h3 class="text-center my-4">Votre compte et vos dernières opérations</h3>
<div class="container">
<div class="row">
<div class="card col-10 col-md-5 mx-auto my-4" style="width: 18rem;">
<div class="card-heade... |
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.finitedifference;
/**
* @param <T> The type of the PDE coefficients
*/
public interface PDE1DSolver<T extends PDE1DCoefficients> {... |
import React, { Component } from 'react';
import { Button, Form, Grid, Header, Message, Segment, Icon } from 'semantic-ui-react'
import { connect } from 'react-redux';
import { fetchPiece } from '../store/piece'
import { updatePieceThunk, deletePieceThunk, fetchAllPieces } from '../store/pieces'
class Modal extends Co... |
#!/bin/bash
helpstr="$0 <tarball> (fedora|centos) <output-dir>"
if [ $# -ne 3 ]; then
echo $helpstr
exit 1
fi
tarball=$1
dist=""
case $2 in
"fedora")
dist="fedora-24-x86_64"
;;
"centos")
dist="epel-7-x86_64"
;;
*)
echo "Unknown dist $2"
echo $helpstr
exit 1
;;
esac
outdir=... |
#!/bin/bash
# Copyright 2012 Cloudera 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 law or agreed to in... |
package wallet
import (
"fmt"
"time"
"github.com/bitmark-inc/bitmark-wallet/tx"
"github.com/boltdb/bolt"
"github.com/bitmark-inc/bitmarkd/util"
)
var (
ErrAccountBucketNotExisted = fmt.Errorf("account bucket is not existed")
ErrUTXOBucketNotExisted = fmt.Errorf("utxo bucket is not existed")
)
func packUT... |
module SkypekitPure
class Request
def initialyze
@tokens = ['B']
@encoders = {}
@encoders['i'] = encode_varint
@encoders['u'] = encode_varuint
@encoders['e'] = encode_varuint
@encoders['o'] = encode_varuint
@encoders['O'] = encode_objectid
@encoders['S'] = enco... |
export {UploadContainerComponent} from './component';
export {FileUploadComponent} from './file-upload/component';
export {UploadService} from './service';
export * from './types';
|
import { promiseError } from '@kwsites/promise-result';
import { createTestContext, newSimpleGit, SimpleGitTestContext } from '../__fixtures__';
describe('progress-monitor', () => {
let context: SimpleGitTestContext;
beforeEach(async () => context = await createTestContext());
it('detects successful comple... |
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
import { User, PROFILES } from '../../Entitity/User'
import {FormGroup, FormBuilder, Validators} from '@angular/forms'
import { HttpClient } from '@angular/common/http'
@Component({
selector: 'app-create-user',
templateUrl: './create-user.co... |
#Concatenate
##Description
Concatenates the two supplied strings.
##Inputs
###a
The first string.
###b
The second string.
##Outputs
###result
The string representing the combination of **first** + **second**.
##Detail
|
# Create a new dashboard with free_text widget
require "datadog_api_client"
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
body = DatadogAPIClient::V1::Dashboard.new({
title: "Example-Create_a_new_dashboard_with_free_text_widget",
description: nil,
widgets: [
DatadogAPIClient::V1::Widget.new({
... |
using Android.App;
using Android.Content;
namespace LocalNotifications.Droid
{
[BroadcastReceiver(Enabled = true, Label = "Reboot complete receiver")]
[IntentFilter(new[] { Android.Content.Intent.ActionBootCompleted })]
public class BootReceiver : BroadcastReceiver
{
public override void OnRec... |
package com.annimon.ownlang.modules.forms;
import com.annimon.ownlang.lib.Arguments;
import com.annimon.ownlang.lib.Value;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.BoxLayout;
/**
* Functions for working with layout managers.
... |
#!/bin/bash
num_vms=$num_vms
remote_script='vm_remote_update_hostname_script.sh'
port=3022
for i in `seq 1 $num_vms`; do
sshpass -p "password" rsh -o "StrictHostKeyChecking no" -p $port user@127.0.0.1 "echo password| sudo -S bash "$remote_script" "$i
port=`expr $port + 1`
done
|
# Partitura Tutorial
A quick introduction to symbolic music processing with partitura:
## Installation
The easiest way to install the package is via ``pip`` from the `PyPI (Python
Package Index) <https://pypi.python.org/pypi>`_::
```shell
pip install partitura
```
This will install the latest release of the packa... |
package hydra.prototyping
import hydra.core.*
def freeVariables[a](term: Term[a]): Set[Variable] = {
def free(bound: Set[Variable], t: Term[a]): List[Variable] = term.data match
case Expression.application(Application(t1, t2)) => free(bound, t1) ++ free(bound, t2)
case Expression.literal(_) => List()
ca... |
<?php
namespace App\Controller;
use App\Utils\MarkdownContext;
use App\Utils\MarkdownConverter;
use Embed\Embed;
use Embed\Exceptions\InvalidUrlException;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
us... |
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
describe 'is_a function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
it 'should match a string' do
pp = <<-EOS
if 'hello world'.is_a(String) {
notify { 'output correct': }
}
EOS
apply_manifest(pp, :ca... |
namespace HandyControlDemo.UserControl;
public partial class ToolBarDemoCtl
{
public ToolBarDemoCtl()
{
InitializeComponent();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.