text stringlengths 27 775k |
|---|
package main
// autoformat-ignore (gofmt chokes on invalid programs)
// Example file with a syntax error to demonstrate use of consistency queries
This is not a valid Go program
|
Rails.application.routes.draw do
resources:users
resources:products
resources:orders
end
|
### [UnrealEngine.Framework](./UnrealEngine-Framework.md 'UnrealEngine.Framework').[MaterialInstanceDynamic](./MaterialInstanceDynamic.md 'UnrealEngine.Framework.MaterialInstanceDynamic')
## MaterialInstanceDynamic.SetTextureParameterValue(string, UnrealEngine.Framework.Texture) Method
Sets the texture parameter valu... |
import mysql.connector.pooling
from util.db.config import config_dict
db_pool = mysql.connector.pooling.MySQLConnectionPool(**config_dict, charset="utf8mb4", pool_name="pool", pool_size=32)
|
import React from 'react'
import './style.css'
import { useTranslation } from 'react-i18next'
import Parser from 'html-react-parser'
const Foot = () => {
const { t } = useTranslation()
const links = t('foot.links', { returnObjects: true })
return (
<footer id="Foot">
<p>{Parser(t('foot.text'))}</p>
... |
#!/bin/bash
if [ -z ${PLUGIN_WEBHOOK+x} ]; then
if [ -z ${TEAMS_WEBHOOK+x} ]; then
echo "Need to set teams_webhook URL"
exit 1
else
WEBHOOK="$TEAMS_WEBHOOK"
fi
else
WEBHOOK="$PLUGIN_WEBHOOK"
fi
if [ "$DRONE_TAG" = "" ]; then
PROJECT_VERSION="$DRONE_COMMIT_SHA"
else
PROJ... |
# timeline
Timeline Techphoria 2018
Live preview: https://dinaskoding.github.io/timeline/
|
# Temp sensor poller for raspberry pi
This is an attempt to be a pure golang program to poll a temperature sensor on
a raspberry pi. This is designed to work with a DHT22/AM2302 sensor that can
sense temperature and humidity.
This program uses go channels for timeouts, because the underlying libraries
that I'm using... |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class creation_model extends CI_Model
{
public function ListOfAdmin(){
$this->db->select("*");
$this->db->from('admin');
$query = $this->db->get();
return $query->result();
}
var $table_... |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package net
import (
"os"
"syscall"
)
func FileConn(f *os.File) (c Conn, err os.Error) {
// TODO: Implement this
return nil, os.NewSyscallError("FileConn"... |
// Copyright (c) 2018 Blackfynn, Inc. All Rights Reserved.
package com.blackfynn.upload.acceptance
import java.security.MessageDigest
import akka.http.scaladsl.model.HttpRequest
import akka.http.scaladsl.model.StatusCodes._
import akka.http.scaladsl.testkit.ScalatestRouteTest
import akka.stream.scaladsl.Source
impor... |
module Main where
import Criterion.Main
import qualified Crypto.CBC as CBC
import Crypto.Hash
import Control.Monad
import Data.ByteArray (constEq, convert)
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
-- Compares the original implementation in @tls@ with constant-time handlin... |
package org.aion.p2p.impl;
import org.aion.p2p.INode;
import org.aion.p2p.IP2pMgr;
import org.aion.p2p.impl.zero.msg.ReqActiveNodes;
import org.slf4j.Logger;
/** @author chris */
public final class TaskRequestActiveNodes implements Runnable {
private final IP2pMgr mgr;
private final Logger p2pLOG;
priv... |
// @ts-nocheck
/* eslint-disable */
// Styles
import './VChipGroup.sass'
// Extensions
import { BaseSlideGroup } from '../VSlideGroup/VSlideGroup'
// Mixins
import Colorable from '../../mixins/colorable'
// Utilities
import mixins from '../../util/mixins'
/* @vue/component */
export default mixins(
BaseSlideGrou... |
// Copyright 2021 Fredrick Allan Grott. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:navbar_adaptive/src/prese... |
package p
func f() {
for {
x
}
switch x {
case 1:
y
case 2:
z
}
switch x.(type) {
case T:
y
case T1:
z
}
}
|
// =======================================================
// Author: Davain Pablo Edwards
// Email: core8@gmx.net
// Web:
// =======================================================
using Microsoft.Extensions.Options;
using System;
using Microsoft.EntityFrameworkCore;
using RESTfulAPI.Core.AppSettingsLayer;
na... |
/*
* Copyright (C) 2020 Google 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 ... |
package bar
/**
* Second class in second module description [foo.FirstClass]
* @author John Doe
* @version 0.1.3
* @param name Name description text text text.
*/
class SecondClass(val name: String) {
val firstProperty = "propertystring"
/**
* Second property in second module description [foo.FirstSub... |
using MediatR;
using System;
namespace CQRS_MediatR.Domain.Events
{
public class EmailAtualizadoComSucesso : IRequest
{
public string NomePessoa { get; set; }
public string NovoEmail { get; set; }
public DateTime DataHora { get; set; } = DateTime.Now;
}
}
|
# frozen_string_literal: true
module PagesCore
module Admin
module NewsPageController
extend ActiveSupport::Concern
included do
before_action :require_news_pages, only: [:news]
before_action :find_news_pages, only: %i[news new_news]
before_action :find_year_and_month, only: %... |
class Dessert
attr_accessor :name,:calories
# protected :name,:calories
def initialize(name, calories)
@name = name
@calories = calories
end
def healthy?
@calories < 200 && self.delicious?
end
def delicious?
true
end
end
class JellyBean < Dessert
def initialize(flavor)
@flavor = ... |
<?php
namespace App\Http\Controllers\Guest;
use App\Http\Controllers\Controller;
use App\Models\Post;
use App\Http\Resources\PostResource;
use App\Http\Resources\PostCollection;
use App\Http\Requests\PostFormRequest;
use App\Models\Comment;
class PostController extends Controller
{
public function index()
{
... |
import { useAtom } from '@dbeining/react-atom';
import { Button } from '@equinor/eds-core-react';
import { SignWithComment } from './SignWithComment/SignWithComment';
import { useScopeChangeContext } from '../../../../hooks/context/useScopeChangeContext';
import { actionWithCommentAtom, resetSigningAtom } from '../../A... |
## What is Cheque Management?
Cheque Management is an application Built using frappe framework and depends on ERPNext application.
Among other things, Cheque Management will help you to:
* Track all your Receivable and payable Cheques.
* Register all Cheque life cycle steps and track it.
> Tip: This Cheque Cycle... |
# Miscellaneous
## Entities
|Name|Description|
|---|---|
|[BrazilianElectronicReportingParameters](BrazilianElectronicReportingParameters.cdm.json)||
|[EFDocAuthorityState_BR](EFDocAuthorityState_BR.cdm.json)||
|[EFDocAuthority_BR](EFDocAuthority_BR.cdm.json)||
|[EFDocContingencyMode_BR](EFDocContingencyMode_BR.cdm... |
#! /bin/bash
###########################################
#
###########################################
# constants
baseDir=$(cd `dirname "$0"`;pwd)
appHome=$baseDir/..
registry=
imagename=chatopera/feishu
# functions
# main
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
cd $appHome
GIT_COMMIT_S... |
### Text Generation
naive Text generation using Recurrent Neural Network (RNN) in Tensorflow and Keras |
/*
* Copyright (c) 2017 大前良介 (OHMAE Ryosuke)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*/
package net.mm2d.dmsexplorer.util
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.animation.Animation
import android.view.anima... |
// @flow
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import github from '@fortawesome/fontawesome-free-brands/faGithub';
import withProps from 'recompose/withProps';
import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';
import DeveloperMode from '@material-ui/icons/DeveloperMode';
im... |
{-|
Module : Database.Relational.StandardUniverse
Description : A universe on which some standard features will be defined.
Copyright : (c) Alexander Vieth, 2015
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE AutoDeriveTypeable... |
//go:build !windows
package function
import (
"fmt"
"os"
"strconv"
)
func Chmod(file string, raw string) error {
stat, err := os.Stat(file)
if err != nil {
return err
}
mode := stat.Mode()
perm, err := fm.Parse(mode.Perm(), raw)
if err != nil {
return err
}
return os.Chmod(file, (mode>>9)<<9|perm)
}
... |
require 'rails_helper'
RSpec.describe User, :type => :model do
before do
Fabricate(:user)
end
it { should have_many :galleries }
it { should have_many(:photos).through(:galleries) }
it { should have_many :ads }
it { should have_many :artist_tags }
it { should have_many(:tags).through(:artist_tags) }... |
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore.Query;
using MUDhub.Core.Abstracts.Models.Rooms;
namespace MUDhub.Server.ApiModels.Muds.Rooms
{
public class CreateRoomRequest
{
[Required]
public string Name { get; set; } = string.Empty;
public s... |
package com.thebestdevelopers.find_my_beer.controller.pubControllerParam;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
public class createPubParam implements Serializable {
private String pubName;
public createPubPar... |
<form role="search" method="GET" class="search row align-items-center mb-3 mr-1">
<div class="input-group icon-search col-xl-6 my-2 my-md-0">
<span><i class="fas fa-search"></i></span>
<input type="search" name="q" value="{{$q}}" class="form-control" placeholder="Ingrese No. de Pedido a buscar">
</div>
<d... |
/*
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-25 10:42:47
* @LastEditTime: 2019-10-23 15:09:39
* @LastEditors: Please set LastEditors
*/
import { expect } from 'chai'
import { shallowMount } from '@vue/test-utils'
import Card from '../../../bs4/components/card/src/main.vue'
descr... |
<?php
declare(strict_types=1);
namespace App\Market\Domain\Exceptions;
use App\Shared\Exceptions\AppException;
class CreatePurchaseException extends AppException
{
protected string $errorMessage = 'Não foi possível fazer a compra.';
} |
const {vueComponentFilePath, vueTestFilePath} = require('./generators/file-path-generator');
const {generateFileContent, generateTestFileContent} = require('./generators/file-content-generator');
module.exports = {
generateComponentFile: (path, filename, typescript) => {
if (!path || !filename || typeof path !==... |
# Dryad2dataverse changelog
Perfection on the first attempt is rare.
## v.0.1.4 - 22 Sept 2021
**requirements.txt**
* Updated version requirements for `urllib3` and `requests` to plug dependabot alert hole.
**dryadd.py**
* Updated associated `dryadd.py` binaries to use newer versions of `requests` and `urllib3`
... |
package com.tuya.smart.android.demo.camera
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.util.Log
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import com.tuya.smart.android.camera.sdk.TuyaIPCSdk
import com.tuya.smart.android.demo.camera.d... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using kc3.d.tz.common;
public class TestSceneLoad : MonoBehaviour{
// Start is called before the first frame update
[SerializeField] FadeManager fadeManager;
public void SceneLoad() {
fadeManager.FadeInAndSceneLoad();... |
<?php
/**
* [NULLED BY DARKGOTH 2014]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
* Handles archives such as zip and tar.gz.
*
* Example to compress a ZIP archive:
* <code>
* Phpfox::getLib('archive', 'zip')->compress('foo', 'bar');
* </code>
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
... |
import Head from 'next/head'
import Link from 'next/link'
export default function Results() {
return (
<>
<Link href="/">
<a>Back to start</a>
</Link>
<h1>Results</h1>
</>
)
} |
module.exports = {
apps: [{
name: 'localtunnel-server',
script: './bin/server',
node_args: '-r esm',
args: '--port 1234 --secure true',
instances: 1,
exec_mode: "fork",
wait_ready: false,
watch: false,
}]
} |
use std::io::{BufWriter, Seek, SeekFrom, Write};
use sctk::seat;
use sctk::seat::keyboard::{self, Event as KeyboardEvent, KeyState, RepeatKind};
use sctk::shm::MemPool;
use sctk::window::{Event as WindowEvent, FallbackFrame};
use sctk::reexports::client::protocol::wl_shm;
use sctk::reexports::client::protocol::wl_sur... |
import * as React from 'react';
import { KeyboardAvoidingView, Text, View } from 'react-native';
import { Input, Button } from 'react-native-elements';
import { useForm, Controller } from 'react-hook-form';
import { StatusBar } from 'expo-status-bar';
import { Store } from '../../state/storeProvider';
import { iamClien... |
package osutil
import (
"fmt"
"github.com/rackspace/gophercloud"
"os"
)
var (
nilOptions = gophercloud.AuthOptions{}
// ErrNoAuthUrl errors occur when the value of the OS_AUTH_URL environment variable cannot be determined.
ErrNoAuthUrl = fmt.Errorf("Environment variable OS_AUTH_URL needs to be set.")
// ErrN... |
package com.discord.simpleast.code
import com.discord.simpleast.assertNodeContents
import com.discord.simpleast.core.node.Node
import com.discord.simpleast.core.node.StyleNode
import com.discord.simpleast.core.parser.Parser
import com.discord.simpleast.core.simple.SimpleMarkdownRules
import com.discord.simpleast.core.... |
package pregnaware.naming.entities
import java.time.LocalDate
case class WrappedBabyName(
nameId: Int, userId: Int,
suggestedBy: Int, suggestedByName: String, suggestedDate: LocalDate,
name: String, isBoy: Boolean)
|
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* 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 cop... |
---
title: "알기 쉬운 약리학"
date: 2021-08-15 04:43:37
categories: [국내도서, 전공도서-대학교재]
image: https://bimage.interpark.com/goods_image/3/3/4/7/315323347s.jpg
description: ● ● ▶ 이 책은 약리학을 다룬 이론서입니다.
---
## **정보**
- **ISBN : 9791189487560**
- **출판사 : 메디컬사이언스**
- **출판일 : 20190816**
- **저자 : Hitner, Henry**
------
## **요약**
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using OLEDB.Test.ModuleCore;
using XmlCoreTest.Common;
using Xunit;
namespace System.Xml.Tests
{
public class ... |
package sagan.renderer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
/**
* Application that renders lightweight markup languages
* and Spring guides content in... |
// Copyright 2020 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.
#ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_GROUPS_TAB_GROUPS_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_TAB_GROUPS_TAB_GROUPS_API_H_
#include <string>
... |
// constructor function for the Cat class
const net = require('net');
const IdGenerator = require('shortid');
var frameType = require('./Frame');
const { Transform } = require('stream');
var TCPPHY = function (port, host) {
this.upper_layer = null;
this.lower_layer = null;
this.port = port;
this.host ... |
# set_db_env_vars.inc.sh: Functions used by the set_db_env_vars script
set_db_env_vars () {
local config_file="${1}"
# Read in and export all name=value pairs where the name starts with PG
# unless we already have an env var with that value
# (NOTE: all whitespaces are removed from each line)
whil... |
package org.demo.archknife
import androidx.lifecycle.ViewModel
import archknife.annotation.ProvideViewModel
import javax.inject.Inject
@ProvideViewModel
class MainActivityViewModel
@Inject constructor(testObject: TestObject) : ViewModel() {
init {
testObject.doSomething()
}
} |
import React from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'
import FormPage from './FormPage'
import FormPostConfirmation from './FormPostConfirmation'
import Page2 from './Page2'
import Page3 from './Page3'
import Page4 from './Page4'
const Routes = () => (
<Switch>
<Route exact path="/" ... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
#include <pbdrv/config.h>
#include "pbinit.h"
#define MICROPY_HW_BOARD_NAME "LEGO MINDSTORMS EV3 Intelligent Brick"
#define MICROPY_HW_MCU_NAME "Texas Instruments AM1808"
#define PYBRICKS_HUB_EV3BRICK ... |
# ART
ART is a retained mode vector drawing API designed for multiple output modes.
There's also a built-in SVG parser. It uses Node style CommonJS modules.
The first line in your program should select rendering mode by requiring either:
- __art/modes/canvas__ - HTML5 Canvas
- __art/modes/svg__ - SVG for modern brow... |
package org.oso.core.services
import org.oso.core.entities.Emergency
import org.oso.core.entities.HelpProvider
interface EmergencyStatusService {
fun addStatus(emergency: Emergency, helpProvider: HelpProvider, status: String)
} |
package com.github.android.quick.core
/**
* Created by XuCanHui on 2021/1/23.
*/
class BaseActivity {
} |
/**
* support libraries
*/
object Support {
// material
const val material = "com.google.android.material:material:${Versions.material}"
// constraint layout
const val constraintLayout = "androidx.constraintlayout:constraintlayout:${Versions.constraintLayout}"
// appCompat
const val appComp... |
require 'cgi'
module Seahorse
module Client
module Plugins
class RestfulBindings < Plugin
# @api private
class Handler < Client::Handler
def call(context)
build_request(context)
@handler.call(context).on(200..299) do |response|
parse_respons... |
import AnswerHub, {Question} from "./AnswerHub";
import fs = require("fs");
import fetch from "node-fetch";
const MINIMUM_CONFIDENCE = 0; // TODO set this
const LAST_QUESTION_FILE = `${__dirname}/../data/last_question_timestamp.txt`;
const CONFIG_FILE = `${__dirname}/../config.json`;
/** How often to check the forums ... |
using AutoMapper;
using DIGNDB.App.SmitteStop.Domain.Db;
using DIGNDB.App.SmitteStop.Domain.Dto;
namespace DIGNDB.App.SmitteStop.API.Mappers
{
public class ApplicationStatisticsMapper : Profile
{
public ApplicationStatisticsMapper()
{
CreateMap<ApplicationStatistics, AppStatisticsD... |
// ctan_ex.c : ctan() example
// --------------------------------------------------------------------
#include <complex.h> // double complex ctan( double complex z );
// float complex ctanf( float complex z );
// long double complex ctanl( long double complex z );
#i... |
import {
DOMOutputSpec,
DOMSerializer,
Node as PmNode,
} from 'prosemirror-model';
import { EditorView, NodeView } from 'prosemirror-view';
import React from 'react';
import ReactNodeView, {
ForwardRef,
getPosHandler,
getPosHandlerNode,
} from '../../../nodeviews/ReactNodeView';
import { PortalProviderAPI }... |
#!/bin/bash
psql -U postgres -h localhost --set ON_ERROR_STOP=on businesses < businesses_backup.sql
|
import { SelectInputOption } from "../../../../../../../shared/components/inputs/select-input/interfaces";
export interface AddStudentFormValues {
firstName: string;
lastName: string;
email: string;
phone: string;
cpfCnpj: string;
}
|
#! /usr/bin/bash
# only for local test, not used for github action
nvim +'Vader! test/test_command.vader'
nvim +'Vader! test/test_keymap.vader'
nvim +'Vader! test/test_function.vader'
nvim +'Vader! test/test_floaterm_size.vader'
|
package com.mburakcakir.taketicket.ui.entry.login
import android.os.Bundle
import android.text.Editable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.m... |
/*
* 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, software
* distributed u... |
/**
* Created by liuxuwen on 18-11-17.
*/
import { Directive, ElementRef,HostListener,Input } from '@angular/core';
@Directive({
selector: '[inputNumber]'
})
export class InputNumberDirective {
@Input('inputNumber') max_number: number;
constructor(private el: ElementRef) {
}
@HostListener('key... |
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :reading do
temp 68
original_temp { temp }
outdoor_temp 40
association :user
association :twine
trait :day_time do
sequence(:created_at) { |n| Time.new(2014,03,01,15,40,n % 60,'-04:00') }... |
import { Dispatch } from 'redux';
import * as superagent from 'superagent';
import { IColorPayload, IgetColorListAction } from '../reducers-types/color-list-types';
export const GET_COLOR_LIST = 'GET_COLOR_LIST';
export const getColorList: (payload: IColorPayload) => IgetColorListAction = (
payload: IColorPayload,... |
# 题目描述
给定一个大小为 n 的数组,找到其中的众数。众数是指在数组中出现次数大于 ⌊ n/2 ⌋ 的元素。
你可以假设数组是非空的,并且给定的数组总是存在众数。
示例 1:
```
输入: [3,2,3]
输出: 3
```
示例 2:
```
输入: [2,2,1,1,1,2,2]
输出: 2
```
# 题解
题解1:统计每个数出现的次数,返回最多的即可.
题解2:
定义一个计数器count=0,一个当前值resValue=0.
```
依次遍历数组
当count=0的时候,resValue修改为当前数组的值.
如果下一个值不等于当前值,那么count-1;
如果下一个值等于当前值... |
import { IProjectSupportingChannel } from './project-supporting-channel';
export interface IProject {
id: string;
projectName: string;
siteName: string;
siteId: string;
rawChannelName: string;
rawChannelId: string;
finalChannelName: string;
finalChannelId: string;
supportingChannels?: IProjectSupport... |
#!/bin/sh
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release -B. -H..
cd ..
mkdir Debug
cd Debug
cmake -DCMAKE_BUILD_TYPE=Debug -B. -H..
cd ..
|
---
layout: page
title: About Me
subtitle: because why not?
---
I'm Aiswarya.
### My story
I love learning. I'm currently learning [Go](https://golang.org/).
|
((_pid, _app) => {
if(System.isMobile) {
_app.data('swinfo', System.serviceWorker ? `${System.serviceWorker.scope}で有効` : '無効');
} else {
_app.data('swinfo', 'モバイルではありません');
}
_app.event({
mobile() {
location.href = 'mobile.html'
},
desktop() {
location.href = 'index.html'
}
... |
import 'dart:ui';
import 'package:meta/meta.dart';
import '../components/component.dart';
import '../components/mixins/collidable.dart';
import '../components/mixins/draggable.dart';
import '../components/mixins/has_collidables.dart';
import '../components/mixins/hoverable.dart';
import '../components/mixins/tappable... |
import 'package:cricketeer/custom_widgets/player_page.dart';
import 'package:flutter/material.dart';
import 'package:cricketeer/utilities/team.dart';
class Players extends StatelessWidget {
static const routeName = 'Players';
Players({@required this.country});
final country;
final _pageController =
PageContr... |
## Hands-On Time
---
# Using Services To Enable Communication Between Pods
## Exposing Ports
---
```bash
cat svc/go-demo-2-rs.yml
kubectl create -f svc/go-demo-2-rs.yml
kubectl get -f svc/go-demo-2-rs.yml
kubectl expose rs go-demo-2 --name=go-demo-2-svc --target-port=28017 \
--type=NodePort
```
<!-- .sli... |
import React, { useState } from "react";
import { PRCommentCard, ButtonRow } from "./PullRequestComponents";
import MessageInput from "./MessageInput";
import { RadioGroup, Radio } from "../src/components/RadioGroup";
import { useDispatch, useSelector } from "react-redux";
import { CodeStreamState } from "../store";
im... |
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../lib/pedump')
require File.expand_path(File.dirname(__FILE__) + '/../lib/pedump/cli')
require 'digest/md5'
class CLIReturn < Struct.new(:status, :output)
def md5
Digest::MD5.hexdigest(self.outp... |
package com.semicolon.domain.enums
enum class NotificationType {
CHALLENGE, CHALLENGE_SUCCESS, CHALLENGE_EXPIRATION, EXERCIZE, NOTICE
} |
import freemarker.template.Configuration
import spark.Route
import spark.Spark.*
import java.io.File
import java.io.StringWriter
import java.util.*
fun main(args: Array<String>) {
port(8080)
externalStaticFileLocation("static")
get("/", "*", Route { request, response ->
try {
val confi... |
package com.shopapp.ui.account.router
import com.nhaarman.mockito_kotlin.mock
import com.shopapp.TestShopApplication
import com.shopapp.gateway.entity.Policy
import com.shopapp.ui.account.*
import com.shopapp.ui.address.account.AddressListActivity
import com.shopapp.ui.const.RequestCode
import com.shopapp.ui.home.Home... |
# Contributing
## Ways to Contribute
Some ways that you can contribute, in order of increasing involvement:
* Read [the documentation](https://pages.charlesreid1.com/boring-mind-machine)!
If you find a problem or can't understand something, open an issue (see below).
* Use boring mind machine! You can test it out... |
import { DataFrame, DataObject } from '../../data';
import { ObjectProcessingNodeOptions } from '../ObjectProcessingNode';
import { ProcessingNode } from '../ProcessingNode';
/**
* @category Flow shape
*/
export class ObjectFilterNode<InOut extends DataFrame> extends ProcessingNode<InOut, InOut> {
protected opti... |
// Copyright © 2018 650 Industries. All rights reserved.
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
EXSplashScreenHUDButton is a preconfigured button that notifies the user when the splash screen has been visible for too long
Its goal is to direct the user to documentation that might help them resolve the... |
//Chapter 18 Vektor Drill
//#include "std_lib_facilities.h"
#include <iostream>
#include <stdexcept>
#include <vector>
using namespace std;
vector<int> gv {1, 2, 4, 8, 16, 32, 64, 128, 256, 512};
void f(vector<int> v)
{
vector<int> lv(10);
lv = v;
for (auto& a : lv)
cout << a << ... |
---
title: 액션바 (ActionBar)
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionbar
contributors: [rigor789, eddyverbruggen]
---
액션바 컴포넌트는 안드로이드 액션바와 iOS NavigationBar의 네이티브-스크립트 추상화 입니다.
---
#### 제목 사용
```html
<ActionBar title="MyApp" />
```
#### 커스텀 제목 view
```html
<ActionBar>
<St... |
namespace iRLeagueApiCore.Server.Models.ResultsParsing
{
public struct ParseLivery
{
public int car_id { get; set; }
public int pattern { get; set; }
public string color1 { get; set; }
public string color2 { get; set; }
public string color3 { get; set; }
public int number_font { get; set; ... |
# frozen_string_literal: true
class Foo
def initialize(param)
@param = param
end
def set_param(value)
@param = value
end
def get_param
@param
end
def format_param
"Your parameter is : #{get_param}"
end
def miscellaneous_method
# :nocov:
raise "Don't call me!"
# :nocov:
... |
#include "pch.h"
#include "tdd_surface_instance.h"
#include "tdd_render.h"
using namespace std;
namespace TDD
{
std::optional<Location> SurfaceInstance::OnKeyDown(wchar_t c)
{
switch (c)
{
case input_esc:
render->EndSurfaceEditMode();
break;
}
return {};
}
std::optional<Location> S... |
import 'package:flutter/material.dart';
import 'typography.dart';
import 'themedata.dart';
class IndieduTheme {
// Theme data
static ThemeData kIndieduLightThemeData() => kLightThemeData();
static ThemeData kIndieduDarkThemeData() => kDarkThemeData();
// Text theme
static TextTheme kIndieduLightTextTheme() ... |
## Response Text
The response itself can be written with standard text without any special
formatting. However, if wishing to convey an action a robotic version of Clara
would take use the `*` symbol such as `*smiles*`. For now, this helps the user
further engage with conversations. However, in the future a physical ve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.