text stringlengths 27 775k |
|---|
#![cfg_attr(feature = "strict", deny(warnings))]
use serum_common::client::Cluster;
use solana_client_gen::prelude::ClientGen;
use solana_client_gen::prelude::*;
use solana_client_gen::solana_client::rpc_config::RpcSendTransactionConfig;
use solana_client_gen::solana_sdk::commitment_config::CommitmentConfig;
// Creat... |
---
titulo: "Poetas castellanos del Sáhara"
subtitulo: "Artículo de Lola Huete publicado en El País Semanal el 24 de marzo de 2013. "
---
{{ imágen paraleer/poetassaharauis.jpg posición: izq }}_Sukeina Aali-Taleb,
Alí Salem Iselmu, Limam Boisha, Mohamed Alí Alí-Salem, Bahia Mahmud Awah (de
pie) y (tumbada) Zahara Hasna... |
/*
* Copyright (c) 2019 ChainFront 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 agr... |
module Agents
class LifxPulseLightsAgent < Agent
include LifxAgentable
description <<-MD
Performs a pulse effect by quickly flashing your [LIFX lights](http://lifx.com/) between the given colors.
To be able to use this Agent you need to authenticate with LIFX in the [Services](/servic... |
import os
import sys
import glob
import time
import traceback
from PythonQt import QtGui
class LocalTimeHelper(object):
def _getResolverFunction(self):
return lambda x: time.time()*1e6
class LookupHelper(object):
def __init__(self, lookups=()):
self._lookups = lookups
def __getitem__(self, i):... |
CREATE TABLE ad_account_matched_search_applications_edge_data (
app_id Nullable(String),
icon_url Nullable(String),
name Nullable(String),
search_source_store Nullable(String),
store Nullable(String),
unique_id Nullable(String),
url Nullable(String)
)
ENGINE = Log
|
# [179. Largest Number](https://leetcode.com/problems/largest-number/description/)

<details>
<summary style="color:#4FC3F7">Topics</summary>
* [`Sort`](https://leetcode.com/tag/sort)
</details>
<br />
Given a list of non negative integers, arrange the... |
package com.burtbeckwith.grails.plugins.dynamiccontroller;
import grails.util.Environment;
import groovy.lang.Closure;
import org.apache.log4j.Logger;
/**
* Base class for ClosureSource implementations. Caches the resolved closure
* (except in dev environment) and delegates to the concrete impl class to
* lazily ... |
<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Guru extends Authenticatable
{
protected $table = 'guru';
protected $primaryKey = 'username';
public $incrementing = false;
public function pelajaran()
{
return $this->hasMany(Mapel::class, 'pengaja... |
{-# LANGUAGE TupleSections #-}
module Rho.SessionState where
import Control.Concurrent
import Control.Monad
import Data.IORef
import Data.List (sortOn)
import qualified Data.Map as M
import Data.Maybe (fromJust)
im... |
import { createLinode } from '../../support/api/linodes';
describe('delete linode', () => {
it('deletes test nanode', () => {
cy.visitWithLogin('/linodes');
createLinode().then(linode => {
cy.server();
cy.route({
method: 'DELETE',
url: '*/linode/instances/*'
}).as('deleteLin... |
# frozen_string_literal: true
json.id @category.id.to_s
json.label @category.label
json.path @category.path
|
// Copyright 2020 The Merlin Authors
//
// 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... |
VERSION="1.2"
cd "$TM_PROJECT_DIRECTORY"
if [[ ! -d dist ]]; then
mkdir dist dist/vokseverk dist/zip
fi
# Copy files into dist dirs
cp src/*.css dist/vokseverk/
# cp src/*.js dist/vokseverk/
cp src/package.manifest dist/vokseverk/package.manifest
cp src/package.xml dist/vokseverk/package.xml
# Build the ZIP file
... |
using namespace System.IO; using namespace System.Text
[File].FullName System.IO.File
[StringBuilder].FullName System.Text.StringBuilder |
use strict;
use warnings;
use Test::More;
BEGIN { use_ok 'RestApi::Model::CodeBreaker' }
my $m = RestApi::Model::CodeBreaker->new;
my @text = (
'just another',
'test',
'1020304050',
);
foreach my $msg (@text) {
is($m->decrypt($m->encrypt($msg)), $msg, "D(E($msg)) == $msg");
}
done_testing();
|
package ui.login
class LoginPresenter(loginView: LoginView) {
var currentView : LoginView? = null
fun attachView (view : LoginView) {
if(currentView == null) {
currentView = view
}
}
fun dettachView() {
currentView = null
}
} |
# __variables__ with double-quoted values will be available in setup.py:
__version__ = "0.0.2"
from pytesser import *
|
package io.rektplorer64.pickerkt.builder.query.operator
import io.rektplorer64.pickerkt.builder.query.BinaryOperatorExpression
import io.rektplorer64.pickerkt.builder.query.Expression
import io.rektplorer64.pickerkt.builder.query.operand.Operand
import io.rektplorer64.pickerkt.util.foldFromFirst
@Suppress("Fun... |
CREATE SYNONYM [ssis].[projects] FOR [$(SSISDB)].[catalog].[projects]
|
//https://www.hackerrank.com/challenges/prison-transport
//See: https://www.hackerrank.com/contests/lambda-calculi-may14/challenges/prison-transport
import scala.collection.mutable._;
object Solution {
def main(args: Array[String]) {
val n: Int = readInt();
val m: Int = readInt();
val ... |
namespace WisdomLight.Model
{
/// <summary>
/// An universal class to create any necessary objects while debugging
/// </summary>
/// <typeparam name="TName">Type of name</typeparam>
/// <typeparam name="TValue">Type of value</typeparam>
public class Pair<TName, TValue>
{
public Pai... |
-- ********************************************************************************************
-- ********************************************************************************************
-- Create Sqlite3 tables
-- ********************************************************************************************
-- ***... |
package apptentive.com.android.feedback.payload
import apptentive.com.android.util.Result
class MockPayloadService(private val sendResult: ((PayloadData) -> Result<PayloadData>)? = null) :
PayloadService {
override fun sendPayload(payload: PayloadData, callback: (Result<PayloadData>) -> Unit) {
val re... |
---
layout: "text-content"
title: Press
url: "/press.html"
---
# Press
[Find material here](https://www.dropbox.com/sh/s3262f0d3neuqoi/AAAQIgVtJKvDF3TP-YpRNKrua?dl=0)
## Featured in
[Skånska Dagbladet](http://www.skd.se/2015/05/09/solskensamericana-fran-malmo/)
[Sydsvenskan/CITY](http://www.syd... |
<?php
namespace App\Http\ViewComposers;
use Illuminate\View\View;
use Illuminate\Support\Facades\Cache;
use App\Models\BlogPost;
use App\Models\User;
class ActivityComposer {
public function compose(View $view){
$mostcommented = Cache::remember('mostcommented', now()->addSeconds(10),function (){
... |
import { DataVerb } from "./DataVerb";
var xmpp = require('../node-xmpp/packages/client').xmpp;
var xml = require('../node-xmpp/packages/xml');
import {DataVerbToString} from './DataVerb';
export class CDO
{
public static Namespace:string = "urn:clayster:cdo";
public static GetBoolean(Element : any, Nam... |
import React from 'react'
import { GatsbyImage } from 'gatsby-plugin-image'
import { getShopifyImage } from 'gatsby-source-shopify'
import { graphql, Link } from 'gatsby'
import { Product } from '../../@types'
import { formatPrice } from '../../utils/format-price'
import {
productCardStyle,
productHeadingStyle,
... |
try:
import random
except ImportError:
import upy.fakerandom as random
import time
try:
import uuid
except ImportError:
import upy.uuid as uuid
APP_ID_WINDOWS = uuid.UUID("55C92734-D682-4D71-983E-D6EC3F16059F")
APP_ID_OFFICE14 = uuid.UUID("59A52881-A989-479D-AF46-F275C6370663")
APP_ID_OFFICE15 = uuid.UUID("0FF1CE1... |
# Exec
Node's Process spawning APIs beautified
## Installation
```sh
npm install --save sb-exec
```
## API
```js
type $Options = {
timeout?: number | Infinity,
stream?: 'stdout' | 'stderr' | 'both',
env: Object,
stdin?: ?string,
local?: {
directory: string,
prepend?: boolean
},
throwOnStdErr... |
# Let And Const
以下會比較ES6後出現的 `Let` and `Const`
* In ES5 Only `var`
* In ES6:`let`、`const`、`var`
參考資料:
1. [it邦幫忙-eyesofkids:let與Const](https://ithelp.ithome.com.tw/articles/10185142)
2. [Medium卡斯伯:ES6開始的新生活](https://wcc723.github.io/javascript/2017/12/20/javascript-es6-let-const/)
3. [ITREAD:let 與 const 用法這些就夠了](... |
%% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2012 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_search_app).
-behaviour(application).
%% Application callbacks
-export([start/2, s... |
// Copyright 2019 Yunion
//
// 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 writi... |
import {SettingsAdditionsType} from './settings-additions.entity';
import {Board} from 'modules/boards';
export function createBoardLink(board: Board): string {
return `https://miro.com/app/board/${board.id}`;
}
export function getAdditionsSettingsTypes(): SettingsAdditionsType[] {
return Object.values(SettingsAd... |
#!/bin/bash
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# get UBUNTU_CODENAME, ROS_DISTRO, REPO_DIR, CATKIN_DIR
source $SCRIPT_DIR/identify_environment.bash
if [ ! -d "$HOME/catkin_ws/src/ouster_example" ]; then
echo "ouster_example repository not detected"
cd "$HOME/catkin_ws/src"
... |
module CandidateInterface
class ApplicationStatusTagComponentPreview < ViewComponent::Preview
ApplicationStateChange.valid_states.each do |state_name|
define_method state_name do
provider = FactoryBot.build_stubbed(:provider)
course = FactoryBot.build_stubbed(:course, provider: provider)
... |
/*
*
* Copyright (C) 2020 iQIYI (www.iqiyi.com)
*
* 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 ... |
// (C) Copyright 2015 Moodle Pty Ltd.
//
// 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... |
#!/bin/bash
# Required packages: jq
usage(){
local opt=$(egrep -o '^ +\-([a-z])' $0 | tr -d ' \-\n')
echo "Usage: ${0##*/} -($opt) $*"
egrep '^ +\-' $0 | tr -s ')#' :
exit 1
}
elap(){
set - $(date -ud @$1 +"%j %R:%S")
[ $1 -gt 1 ] && echo -n "$(( $1 -1 ))day "
echo $2
}
. ~/.aws/aws-opt.ini
... |
%w(
openstack-cinder-scheduler
).each do |s|
describe service(s) do
it { should be_enabled }
it { should be_running }
end
end
describe port(8776) do
it { should be_listening }
its('protocols') { should include 'tcp' }
its('addresses') { should include '127.0.0.1' }
end
describe ini('/usr/share/cin... |
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Disable individual triggers', :js do
include_context 'project integration activation'
let(:checkbox_selector) { 'input[name$="_events]"]' }
before do
visit_project_integration(integration_name)
end
context 'integration has multiple s... |
---
layout: post
title: "intro"
date: 2016-05-26
tags: [sample post, readability, test]
comments: true
---
hello, my name is byung rok kim.
I live in korea.
|
module MiBridges
class Driver
class LiquidAssetsPage < FillInAndClickNextPage
def self.title
"Liquid Assets"
end
delegate(
:financial_accounts,
:primary_member,
:total_money?,
to: :snap_application,
)
def fill_in_required_fields
check... |
require File.expand_path(__FILE__ + '/../../spec_helper')
describe "Window Selection" do
it "selects and close popup windows" do
page.open "http://localhost:4444/selenium-server/tests/html/test_select_window.html"
page.click "popupPage", :wait_for => :popup, :window => "myPopupWindow", :select => true
p... |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
module SerializationTests (serializationSpec) where
import Control.Concurrent.STM
import Data.Aeson as JSON
import Data.Binary as Bin
import Data.Maybe
import Network.DHT.Kademlia.Def
import ... |
# encoding: utf-8
module SportDb
# collection of regex patterns for reuse (SportDb specific)
### todo: add a patterns.md page to github ??
## - add regexper pics??
TEAM_KEY_RE = %r{ \A
[a-z_][a-z0-9_]*
\z}x
TEAM_KEY_MESSAGE = "expected one or more lowercase letters a... |
/*
* Copyright (c) 2016 Haulmont
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package reactiveplatform.stream.rxjava
import io.reactivex.Flowable
import scala.annotation.unchecked.uncheckedVariance
/**
* @author kerr
**/
class RxJavaRStream[+Output](_flowable: Flowable[Output]) extends RStream [Output]{
override protected val underling: Flowable[Output @uncheckedVariance] = _flowable
}
|
import operate from '../operate';
describe('operate', () => {
it('expects 10 minus 18 to be -8', () => {
const firstValue = '10';
const secondValue = '18';
const operator = '-';
const result = operate(
firstValue, secondValue, operator,
);
expect(result).toEqual('-8');
});
it('ex... |
include language.util.LanguageUtil
include test.util.TestUtil
@class
LanguageUtilTest(){
@test
testToggleArticleVowelForm[false](){
local output=($(LanguageUtil toggleArticleVowelForm cba))
local result=(a cba)
${assertEquals} output result
}
@test
testToggleArticleVowelForm[true](){
local output=($(La... |
package com.canvas
import android.graphics.*
import android.graphics.drawable.Drawable
import androidx.core.graphics.toRectF
class CurvedDrawable constructor(
val backgroundColor: Int
) : Drawable() {
private val path = Path()
private val paint = Paint().apply {
isAntiAlias = true
color... |
require 'rubygems'
require 'daemons'
options= {:backtrace => true, :monitor => true}
Daemons.run('main_scenario.rb',options) |
cd /media/william/Storage/Github/investment
git add . -A
git commit -m "Added notes for $(date)"
git remote rm origin
git remote add origin git@github.com:williamlfang/investment.git
git push origin +gh-pages
git pull origin gh-pages
git push origin gh-pages
jekyll --server
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DerekHoneycutt.Data.BusinessModels
{
/// <summary>
/// Defines a Resume GitHub Page
/// </summary>
public class GitHubPage : Page
{
/// <summary>
/// Gets or Sets the original... |
module GBTiles
module GBR
module TileSet
module Objects
class TileImport < GBTiles::GBR::TileSet::Object
attr_accessor :tile_id
attr_accessor :file_name
attr_accessor :file_type
attr_accessor :from_tile
attr_accessor :to_tile
attr_accessor... |
<?php
/******************************************************************************
* An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
*
* Copyright (c) 2016 Richard Klees <richard.klees@rwth-aachen.de>
*
* This software is licensed under The MIT License. You should have received
* a copy of th... |
using UnityEngine;
using System.Collections;
public class Weak : MonoBehaviour {
public GameObject parent;
public GameObject bubbleExplosion;
public AudioClip[] deaths;
public int nutritionFact;
void OnCollisionEnter2D(Collision2D other) {
checkCollision(other);
}
void OnCollisionStay2D(Collision2D othe... |
#changelog
## 0.86.0
* retrieve now returns a File instance pointing to the cached resouce, and not a String.
## 0.85.2
* Added changelog.
* Update description to be shorter.
* Added missing await.
## 0.85.0
Initial Release
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using log4net;
using Tailviewer.BusinessLogic.Analysis;
using Tailviewer.BusinessLogic.LogFiles;
namespace Tailviewer.Core.Analysis
{
/// <summary>
/// Base class for <see cref="ILogAnalyser" />... |
CGAHeartA label byte
word C_BLACK
Bitmap <67,41,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0x00, 0x01, 0xfb, 0x00, 0x01, 0xee, 0x00
db 0x01, 0x03, 0x80, 0xfd, 0x00, 0x02, 0x01, 0x55,
0x00
db 0x01, 0x06, 0xc0, 0xfd, 0x00, 0x02, 0x01, 0xab,
0x00
db 0x01, 0x0c, 0x60, 0xfc, 0x00, 0x01, 0x... |
module Agents
include("Agents/BaseAgent.jl")
include("Agents/RandomChan.jl")
include("Agents/CooperativeQ.jl")
include("Agents/IndividualQ.jl")
include("Agents/OptHighestSNR.jl")
include("Agents/ContextAware.jl")
end |
package com.fanrong.frwallet.ui.import
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.basiclib.base.BaseActivity
import com.fanrong.frwallet.R
import com.fanrong.frwallet.dao.FrConstants
import com.fanrong.frwallet.dao.eventbus.WalletInfoChangeEvent
import com.fa... |
import {
FILTER_FAVOURITE,
FILTER_MONOCHROME,
FILTER_NEW,
FILTER_RECENT,
FILTER_RGB,
FILTER_UNTAGGED,
} from '../../consts/specialTags';
const filterTags = (activeTags) => (image) => {
const normalTags = activeTags.filter((tag) => (
![FILTER_MONOCHROME, FILTER_NEW, FILTER_RGB, FILTER_UNTAGGED, FILTE... |
<?php
namespace ABWebDevelopers\PinPayments\Tests\TestCase;
use ABWebDevelopers\PinPayments\Tests\Fixture\TestEntity;
use PHPUnit\Framework\TestCase;
use ABWebDevelopers\PinPayments\Tests\Fixture\ChildEntity;
class EntitySetterGetterTest extends TestCase
{
protected $entity;
protected function setUp()
{
... |
export { default as ReviewCreateInput } from './ReviewCreateInput';
export { default as ReviewUpdateInput } from './ReviewUpdateInput';
|
#!/bin/bash
# Exit immediately if any commands return non-zero
set -e
# Output the commands we run
set -x
cf push gov-au-ui-guide-develop -b staticfile_buildpack -p ./_site -i 1
|
<?php
namespace LuisUrrutia\TransbankSoap;
use DOMXPath;
use Exception;
use DOMDocument;
use \RobRichards\XMLSecLibs\XMLSecurityDSig;
class Validation
{
const NS_WSU = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';
const NS_ENVELOPE = 'xmlns:soap="http://schemas.xmlsoap... |
import 'package:csv/csv_settings_autodetection.dart';
import 'package:flutter/services.dart';
import 'package:csv/csv.dart';
class SLAssetService {
static Future<List<List<dynamic>>> loadCsv(String filename) async {
var s = await rootBundle.loadString(filename);
var d = new FirstOccurrenceSettingsDetector(
... |
---
title: Preprocessing Static Pages
url: /docs/static-page-preprocessing
type: docs
include:
- docs.sidebar
---
Sometimes you want to change the template depending on page contents
or load additional data into your page.
In zox.js this is done using custom `Renderable` elements.
If you haven't alrea... |
(in-package :lem)
(export '(modeline-format
modeline-add-status-list
modeline-remove-status-list
modeline-clear-status-list
modeline-write-info
modeline-name
modeline-mode-names
modeline-position
modeline-posline
convert-modeline... |
import foreign schema public except(diffs, fyles, commits, sloc_metrics, schema_migrations) from server openhub into public options(import_default 'true');
|
import { NgModule } from '@angular/core';
import { AppSkyModule } from './app-sky.module';
import { SkyAgGridModule } from '@skyux/ag-grid';
import { AgGridModule } from 'ag-grid-angular';
@NgModule({
exports: [
AppSkyModule,
SkyAgGridModule,
AgGridModule
]
})
export class AppExtrasModule { }
|
<?php
namespace App\Http\Controllers\api\Delegates;
use App\Client;
use App\ConnectUs;
use App\Http\Controllers\Controller;
use App\Order;
use Illuminate\Http\Request;
use Validator;
class MainController extends Controller
{
public function myOrders(Request $request)
{
$orders = $request->user()->or... |
<?php
if(isset($_POST['send'])){
$to = "courses@belluso.academy";
$from = $_POST['email'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$company = $_POST['company'];
$location = $_POST['location'];
$phone = $_POST['phone'];
$subject = "Enquire From Front Page Italy Course";
$message =... |
require 'helper'
require 'dnsruby'
module Dns
module CatalogZone
class TestMaster < Minitest::Test
def test_master
master = Master.new
master.add_address('192.168.0.2')
master.add_address('2001:DB8::2')
assert_includes master.addresses, '192.168.0.2'
assert_includes... |
# Data Maven Plugin
Plugin for [Apache Maven](https://maven.apache.org/) for
generating data archives.
**Status**: Early prototype.
This plugin adds support for making a Maven project with
`<packaging>data</packaging>`, where resources within its
`data/` folder are directly added to the output, a `.data.zip` file.
... |
use std::{
error::Error,
io::{Seek, SeekFrom, Write},
};
use parquet_format::{CompressionCodec, FileMetaData};
use thrift::protocol::TCompactOutputProtocol;
use thrift::protocol::TOutputProtocol;
use crate::{
error::{ParquetError, Result},
metadata::SchemaDescriptor,
read::CompressedPage,
FOO... |
import { useState, useEffect, useRef, useCallback } from 'react'
import { useOnScreen } from '../../hooks/useOnScreen'
import { Order } from '../../interfaces/orderInterface'
import { ordersRequest } from '../../utils/getOrders'
import OrderItem from './OrderItem'
import classes from '../../css/OrderList.module.css'
c... |
use std::io::Read;
fn main() {
let mut input = String::new();
std::io::stdin().read_to_string(&mut input).unwrap();
let mut mapping = ['\0'; 128];
mapping['(' as usize] = ')';
mapping['[' as usize] = ']';
mapping['{' as usize] = '}';
mapping['<' as usize] = '>';
let mut score = [0; 12... |
# Contributing to Deis
This project is part of Deis. You can find the latest contribution
guidelines [in our documentation](https://docs.teamhephy.com/contributing/overview/).
|
import pickle
import torch
from torch import nn
from PIL import Image
from torchvision import transforms
from torchero.models import (Model,
BinaryClassificationModel,
ClassificationModel,
RegressionModel)
from torchero.models.vi... |
import { SerializableObject } from '@openhps/core';
import { VerticalPassage } from './VerticalPassage';
@SerializableObject()
export class Elevator extends VerticalPassage {}
|
import type { RunTimeCommand } from '@opentrons/shared-data'
import type {
LoadModuleRunTimeCommand,
ModuleLocation,
} from '@opentrons/shared-data/protocol/types/schemaV6/command/setup'
interface ModuleInitialLoadInfo {
location: ModuleLocation
protocolLoadOrder: number
}
export const getModuleInitialLoadInfo... |
package es.cic.curso.curso06.ejercicio013;
import java.util.ArrayList;
import java.util.List;
public class Sala
{
private int numeroSala;
private int butacasTotales;
private List<Sesion> sesiones;
public Sala(int numeroSala, int butacasTotales){
this.numeroSala=numeroSala;
this.butacasTotales=butacasTotal... |
<?php
namespace Modules\Play\Http\Controllers;
use Illuminate\Support\Facades\Storage;
class PlayCacheController
{
public function getLeaderboard()
{
return Storage::disk("do_spaces")->get("/cache/play_leaderboard.json");
}
}
|
module.exports = (sequelize, DataTypes) => {
const Goods = sequelize.define("Goods", {
gd_code: {
type: DataTypes.STRING,
unique: true,
allowNull: false,
},
gd_name: {
type: DataTypes.STRING,
allowNull: false,
},
gd_manufacture: DataTypes.STRING,
gd_tp_code: DataT... |
import React from 'react';
import MediaQuery from 'react-responsive';
import { FormattedMessage } from 'react-intl';
import Lenkepanel from 'nav-frontend-lenkepanel/lib';
import { Undertekst } from 'nav-frontend-typografi';
import KonfoluttIkon from '../ikoner/KonfoluttIkon';
import { lenker } from '../../utils/lenker... |
#!/bin/bash
#test:disabled
# Create a function and trigger it using Kafka
# This test requires Kafka & MQ-Kafka component of Fission installed in the cluster
set -euo pipefail
set +x
nodeenv="node-kafka"
goenv="go-kafka"
producerfunc="producer-func"
consumerfunc="consumer-func"
log() {
echo $1
}
export -f log
t... |
### 2.2 Release Note
### Changes
- Testing
- Add more assertion type to Assert class
- Move test cases under ZKWeb and ZKWebStandard project to distinct assembly
- Improve error message for test failure
- Add Scenario class for BDD
- Rewrite some tests in BDD style for readability
- Small Fixes
- Us... |
namespace Oliviann.Configuration
{
#region Usings
using System;
using System.Collections.Generic;
using Oliviann.Collections.Generic;
using Oliviann.Configuration.Providers;
using Oliviann.Properties;
#endregion Usings
/// <summary>
/// Represents a configuration builder for addi... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class PaymentsSubsystemController extends Controller
{
public function showPurchaseInformation($imageId, $userId, $action)
{
$image = DB::table('images')->find($imageId);
$collection = DB::t... |
/*
* Copyright 2014 Midokura SARL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Class for camera to follow the players location with specific offset and angle for top-down perspective.
/// Contains methods for locating the player and updating position to match player position.
/// </summary>
public c... |
module Hdo
module Search
module FacetSearch
extend ActiveSupport::Concern
included do
attr_reader :query
attr_writer :size
# defaults
search_param :q, title: 'Søk'
search_param :page
end
module ClassMethods
def paginates_per(n = nil)
... |
package com.gushenge.atools.demo.activity.util
import android.graphics.Color
import android.os.Bundle
import com.gushenge.atools.demo.activity.BaseActivity
import com.gushenge.atools.demo.ui.titlebar
import com.gushenge.atools.ui.arcButton
import com.gushenge.atools.util.ARandom
import com.gushenge.atools.util.AView
i... |
import 'package:dart_board_core/dart_board_core.dart';
import 'package:dart_board_widgets/dart_board_widgets.dart';
import 'package:dart_board_locator/dart_board_locator.dart';
import 'package:flutter/material.dart';
class CartFeature extends DartBoardFeature {
final String itemPreviewRoute;
CartFeature({this.ite... |
// SkillTomes.h
//
#pragma once
#include "XmlLib\DLMacros.h"
class SkillTomes :
public XmlLib::SaxContentElement
{
public:
SkillTomes(void);
void Write(XmlLib::SaxWriter * writer) const;
protected:
XmlLib::SaxContentElementInterface * StartElement(
const XmlLib::Sax... |
// Copyright by Barry G. Becker, 2016-2017. Licensed under MIT License: http://www.opensource.org/licenses/MIT
package com.barrybecker4.simulation.trading.model.generationstrategy
import com.barrybecker4.ui.components.NumberInput
import javax.swing._
import java.awt._
import SineStrategy._
object SineStrategy { // r... |
import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import { stripesConnect } from '@folio/stripes/core';
import {
makeQueryFunction,
StripesConnectedSource
} from '@folio/stripes/smart-components';
import UDPs from '../components/views/UDPs';
import urls from '../util/url... |
import IOwner from './IOwner';
export default interface IRepository {
name: string;
full_name: string;
owner: IOwner;
archived: boolean;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.