text
stringlengths
27
775k
// Comp_04_0299 import React from 'react'; import { incModCount } from '../modCount'; import Comp_05_1495 from './Comp_05_1495'; import Comp_05_1496 from './Comp_05_1496'; import Comp_05_1497 from './Comp_05_1497'; import Comp_05_1498 from './Comp_05_1498'; import Comp_05_1499 from './Comp_05_1499'; const Comp_04_0299...
#!/bin/bash set -xe # Add the route back ip route add "${DOCKER_NETWORK_RANGE}" via "${VPNCLUSTERIP}" # We do not want to exit, so ... tail -f /dev/null
# HTTP Streaming Source Description ----------- This plugin reads data from HTTP/HTTPS pages periodically. Paginated APIs are supported. For paginated APIs plugin reads available data and than waits for new pages to appear. Data in JSON, XML, CSV, TSV, TEXT and BLOB formats is supported. Properties ---------- ### Ge...
# frozen_string_literal: true require 'rails_helper' RSpec.describe User do let!(:account_user) { create(:account_user) } let(:agent_destroy_service) { double } before do allow(Agents::DestroyService).to receive(:new).and_return(agent_destroy_service) allow(agent_destroy_service).to receive(:perform).a...
; This is the kernel's entry point. We could either call main here, ; or we can use this to setup the stack or other nice stuff, like ; perhaps setting up the GDT and segments. Please note that interrupts ; are disabled at this point: More on interrupts later! [BITS 32] ; Multiboot macros to make a few lines later mor...
Content from: http://www.greenbuttondata.org/greentest.aspx - Testing TEST YOUR GREEN BUTTON DATA FILE Use this test to evaluate and analyze the inner structure of a Green Button data file. 1) Select the scope of your Green Button data file: 2) You can override and make additional selections of Function Blocks to ...
package com.x.organization.assemble.authentication; import com.x.base.core.container.EntityManagerContainer; import com.x.base.core.project.instrument.Instrument; import com.x.organization.assemble.authentication.factory.BindFactory; import com.x.organization.assemble.authentication.factory.PersonFactory; import com.x...
#!/bin/sh # git git config --global user.name Bruno git config --global user.email zettca@gmail.com git config --global status.hints false git config --global core.editor vim # npm npm config set prefix ~/.local
import turtle def draw_square(t, sz): """make turtle draw square.""" for i in range(4): t.color('red') t.forward(sz) t.left(90) wn = turtle.Screen() wn.bgcolor('lightgreen') wn.title('Alex meets a function') tess = turtle.Turtle() tess.pensize(3) size = 50 tess.speed(10) for i in rang...
# Asynchronous message queues for Pip.Services in Python Changelog ## <a name="3.1.0"></a> 3.1.0 (2021-05-11) ### Bug Fixes * fixed imports in tests ### Features * Added connect and test package * Update MemoryMessageQueue * To build added IMessageQueueFactory, MessageQueueFactory * To queues added CachedMessageQueu...
@extends('layouts.master') @section('title') @php $title = "Download Studnet Doc"; @endphp @php echo $title; @endphp | EMC @endsection @section('content') <!-- Add data model --> <div class="card text-center"> <div class="card-body"> <div class="row"> <div class="col-md-3"> </div> <div...
package io.github.config4k import com.typesafe.config.ConfigValue import kotlin.reflect.KClass import kotlin.reflect.full.memberProperties import kotlin.reflect.full.primaryConstructor internal fun getConfigMap(receiver: Any, clazz: KClass<Any>): Map<String, *> = clazz.primaryConstru...
using System; using System.Runtime.InteropServices; using Microsoft.Extensions.DependencyInjection; namespace CameraCli.Devices { public static class CameraManagerExtensions { public static IServiceCollection AddCameraManager(this IServiceCollection services) { services.AddSingleto...
import { InfiniteQueryConfig, InfiniteQueryResult, QueryFunction, QueryKey, TypedQueryFunction, TypedQueryFunctionArgs, } from '../core/types' import { getQueryArgs } from '../core/utils' import { useBaseQuery } from './useBaseQuery' // TYPES export interface UseInfiniteQueryObjectConfig<TResult, TError> ...
require 'spec_helper' describe Like, :type => :model do # pending "add some examples to (or delete) #{__FILE__}" context "migration" do it { should have_db_column(:user_id)} it { should have_db_column(:likable_id)} it { should have_db_column(:likable_type)} end context "validations" do it { sh...
#!/bin/bash -e ctx logger info "Stopping RabbitMQ Service..." sudo systemctl stop cloudify-rabbitmq.service
# blog At last I have a blog, I'm gonna be productive now! Done with gatsbyJS, tailwindCSS, netlify Check it out [here](https://midnight.netlify.com/)
CREATE USER pord WITH ENCRYPTED PASSWORD 'root'; CREATE DATABASE cost_management_api; GRANT ALL PRIVILEGES ON DATABASE cost_management_api TO pord;
/* @migen@ */ /* **============================================================================== ** ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT. ** **============================================================================== */ #include <ctype.h> #include <MI.h> #include "XYZ_Widget.h" #i...
package org.whitneyrobotics.ftc.teamcode.subsys; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.Servo; import org.whitneyrobotics.ftc.teamcode.lib.util.Toggler; public class canister { private Servo canisterServo; public void canister(HardwareMap hardwareMap){ ...
#pragma once #include "depthai-shared/common/optional.hpp" #include "depthai-shared/properties/Properties.hpp" namespace dai { /** * Specify properties for NeuralNetwork such as blob path, ... */ struct NeuralNetworkProperties : PropertiesSerializable<Properties, NeuralNetworkProperties> { /** * Blob bina...
import java.awt.event.{KeyAdapter, KeyEvent} import javax.swing.{JFrame, JLabel, WindowConstants} object KeyboardMacroDemo extends App { val directions = "<html><b>Ctrl-S</b> to show frame title<br>" + "<b>Ctrl-H</b> to hide it</html>" new JFrame { add(new JLabel(directions)) addKeyListener(new KeyAdap...
<?php /** * @author Rodion Smakota <rsmakota@gmail.com> * @copyright 2017 Ortofit LTD */ namespace Ortofit\Bundle\BackOfficeBundle\EntityManager; use Ortofit\Bundle\BackOfficeBundle\Entity\ServiceGroup; /** * Class ServiceGroupManager * * @package Ortofit\Bundle\BackOfficeBundle\EntityManager */ class Ser...
/* * @Author: huyu * @Date: 2019-05-28 10:12:29 * @Last Modified by: huyu * @Last Modified time: 2021-04-13 19:01:57 */ // 错误边界组件 // 捕获子组件的js错误,以及React.lazy+Suspense未加载成功时抛出的错误 // 官方文档:https://zh-hans.reactjs.org/docs/error-boundaries.html import React, { Component } from 'react' import { Row, Col, Button, Card ...
require 'gibberish/localize_ext' require 'gibberish/gibberish_rails' module GibberishRails extend Helper end
package com.eudycontreras.calendarheatmaplibrary.extensions import android.view.View import android.view.ViewGroup /** * Copyright (C) 2020 Project X * * @Project ProjectX * @author Eudy Contreras. * @since April 2020 */ internal tailrec fun View.findMaster(): ViewGroup? { val parent: ViewGroup = this.pare...
/** * Predict module Controller. * * @author: Hefei Li * @apiVersion 1.0.0 */ 'use strict' angular.module('SimulationApp') .controller('SimulationCtrl', ['$scope', '$http', '$sce', '$rootScope', function ($scope, $http, $sce, $rootScope) { const me = this me.name = 'Simulation' }])
use super::*; #[derive(Clone)] pub struct VariableExpr { pub name: String, } impl VariableExpr { pub fn new(name: String) -> Expression { Box::new(Self { name }) } } impl Expr for VariableExpr { fn as_any(&self) -> &dyn std::any::Any { return self } fn evaluate(&self, ctx: &m...
<?php namespace App; /** * Class ServiceContainer * @package app * * Service container */ class ServiceContainer extends Singleton { /** * List of initialized services * * @var array */ protected $services = []; /** * Add new service to container * * @param string $...
require File.expand_path(File.join(File.dirname(__FILE__),'..','inherited-hash.rb')) class Module include InheritedHash end
CREATE DATABASE IF NOT EXISTS `zhimablog` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `zhimablog`; -- MySQL dump 10.13 Distrib 5.6.11, for Win32 (x86) -- -- Host: localhost Database: zhimablog -- ------------------------------------------------------ -- Server version 5.6.14 -- -- Table structure for table `z_pos...
import os if __name__ == '__main__': # Make sure we have access to the utils and checksum import sys sys.path.append( os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import uuid from pathlib import Path from typing import Optional, Type, Union import checksum from ded...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [ExecuteInEditMode] public class SPUM_SpriteEditManager : MonoBehaviour { #if UNITY_EDITOR public SPUM_SpriteList _spriteObj; // public Sprite _hair; // public Sprite _mustache; // public Sprite _helm...
const ListHeader = require('./ListHeader') const EmptyList = require('./EmptyList') const ListItem = require('./ListItem') const React = require('react') class List extends React.Component { constructor(props) { super(props) } getListOfItemIds(items) { return Object.keys(items) } getTotalNumberOf...
import Hostname from 'Common/Types/API/Hostname'; import Email from 'Common/Types/Email'; import Port from 'Common/Types/Port'; export const InternalSmtpUser: string = process.env['INTERNAL_SMTP_USER'] || ''; export const InternalSmtpPassword: string = process.env['INTERNAL_SMTP_PASSWORD'] || ''; export const In...
import { render, screen } from '@testing-library/react'; import RoundScore from './RoundScore'; describe('RoundScore', () => { afterEach(() => { jest.resetAllMocks(); }); it('creates snapshot', () => { const { asFragment } = render(<RoundScore score={80} />); expect(asFragment()).toMatchSnapshot();...
import { News, NewsKey } from './news'; export interface NewsState { news: { ids: string[]; byId: { [id: string]: News; }; lastEvaluatedKey?: NewsKey; lastFetch: number; }; }
MODULE force_sub_module use parallel_module, only: myrank use polint_module use spline_module implicit none real(8),allocatable :: SH_Y1(:,:,:,:),SH_Y2(:,:,:,:),SH_Y3(:,:,:,:) real(8),allocatable :: C_ijLM(:,:,:,:,:,:) logical :: isFirstSHY=.true.,isFirstC=.true. logical :: isFirst_irad=.true. int...
--- title: "user174" no_index: true --- * Projects: * [ocaml-freetds](/projects/ocaml-freetds/) * [pgocaml](/projects/pgocaml/)
//Use Node.js MongoDB Driver var mongoClient = require('mongodb').MongoClient; /* *This is for mongodb running *Change the last part to reflect the name of your database */ var connection_string = 'mongodb://meetatmidpointUser:meetatmidpointiscool@ds113566.mlab.com:13566/meetatmidpoint' //Global variable of the co...
# Shitaji.CSS ## Site https://shitajicss.qranoko.jp ## About 「Shitaji.CSS」は、Web 制作用の下地リセット CSS です。 ## Detail - クロスブラウザのバグフィックスを随時反映([sanitize.css](https://github.com/10up/sanitize.css)など) - 見出しやタップハイライトなどの不要なスタイルを解除 - フォーム関連はブラウザデフォルトでも機能させる - すべての案件に使えるよう CC0 で配布 - SCSS ファイルとして npm でインポートすることを想定 ## How To Use ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : Fighter { Vector2 cntrl; void Update () { cntrl = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical")); if(cntrl.x != 0) sr.flipX = cntrl.x < 0; ...
export const convertRomanToInteger = 'CONVERT_ROMAN_TO_INTEGER' export const convertRomanToIntegerSuccess = 'CONVERT_ROMAN_TO_INTEGER_SUCCESS' export const convertRomanToIntegerError = 'CONVERT_ROMAN_TO_INTEGER_ERROR' export const convertIntegerToRoman = 'CONVERT_INTEGER_TO_ROMAN' export const convertIntegerToRomanSuc...
package k8s // Certificate is the template for the cluster TLS certificate. const Certificate = `{{with $spec := $}}apiVersion: cert-manager.io/v1alpha2 kind: Certificate metadata: name: {{$spec.Domain | yamlify}} spec: secretName: {{$spec.Domain | yamlify}}-tls issuerRef: name: letsencrypt kind: Cluster...
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt -cost-model -analyze -mtriple=thumbv8.1m.main-none-eabi -mattr=+mve.fp < %s | FileCheck %s --check-prefix=CHECK-MVE-RECIP ; RUN: opt -cost-model -analyze -mtriple=thumbv8m.main-none-eabi < %s | FileCheck %s --check-prefix=CHECK...
package com.dinhhuy258.vintellij.comrade import com.intellij.notification.NotificationDisplayType import com.intellij.notification.NotificationGroup import com.intellij.notification.NotificationType import com.intellij.notification.Notifications import com.intellij.openapi.application.ApplicationManager import com.int...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package bsh; import java.io.PrintStream; import java.io.Reader; public interface ConsoleInterface { void error(Object obj); PrintStream getErr(); Reader getIn(); PrintStream getOut(); void print(Object obj); void println(Object obj); }
//! Tests for the `cargo logout` command. use cargo_test_support::install::cargo_home; use cargo_test_support::{cargo_process, registry}; use std::fs; use toml_edit::easy as toml; #[cargo_test] fn gated() { registry::init(); cargo_process("logout") .masquerade_as_nightly_cargo() .with_status(1...
<?php /** * Created by PhpStorm. * User: WytheHuang * Date: 2020/3/17 * Time: 22:28 */ declare(strict_types=1); namespace Wythe\Redis\Chapter3\src; use Wythe\Redis\Client; class FIFOQueue { private $key = ''; private $client = null; public function __construct(Client $client, string $key) { ...
'use strict'; var async = require('async'); module.exports = { name: 'Creating Global moderators group', timestamp: Date.UTC(2016, 0, 23), method: function (callback) { var groups = require('../../groups'); async.waterfall([ function (next) { groups.exists('Global Moderators', next); }, function (...
# frozen_string_literal: true # Add `each_even` to Array class class Array def each_even is_even = true each do |object| yield(object) if is_even is_even = !is_even end end end fruits = %w[apple bad\ apple cherry durian] fruits.each_even do |fruit| puts "Yum! I just love #{ fruit } pi...
#pragma once #ifndef __AVX2__ #else #define PXART_SUPPORT_SIMD256_MSWS #include <immintrin.h> namespace pxart::simd256 { struct msws { using uint_type = uint64_t; using result_type = uint32_t; using simd_type = __m256i; static constexpr size_t simd_size = 8; static simd_type _mm256_square_epi64(simd_type ...
import {Controller, Get, Next, Use, UseAfter, UseBefore, UseBeforeEach} from "@tsed/common"; @Controller("/") @UseAfter(MdlwCtrlAfter) @UseBefore(MdlwCtrlBefore) @UseBeforeEach(MdlwCtrlBeforeEach) @Use(MdlwCtrl) export class MyCtrl { @Get("/") @UseBefore(MdlwBefore) @Use(Mdlw) @UseAfter(MdlwAfter) endpointA...
package com.deflatedpickle.justdimensionkeys.common.event.handler import com.deflatedpickle.justdimensionkeys.JustDimensionKeys import com.deflatedpickle.justdimensionkeys.common.item.ItemDimensionKey import net.minecraft.item.Item import net.minecraft.world.DimensionType import net.minecraftforge.event.RegistryEvent ...
#!/usr/bin/env bash IGNORE_NODES="tbdelay tunnel external" SSHARGS="-o ConnectTimeout=1 -o PasswordAuthentication=no -o StrictHostKeyChecking=no" while getopts :e:i:h opt; do case $opt in e) EXP=$OPTARG ;; i) IGNORE_NODES="$IGNORE_NODES $OPTARG" ;; h) echo $(basename $0) [-pe] command ...
namespace WordsGeneratorSample.Configuration { public enum DataSourceType { File } }
import 'package:get/get.dart'; import '../../utils/api_connect_provider.dart'; class TypeService extends ApiConnectProvider { @override String get api => 'types'; Future<Response> byCode(String typecd) { return get('$api/by-code', query: {'typecd': typecd}); } }
namespace Coretech9.Kafkas; /// <summary> /// Kafka topic consumer implementation /// </summary> /// <typeparam name="TMessage">Consuming message type</typeparam> public interface ITopicConsumer<TMessage> { /// <summary> /// Executes a message consume operation /// </summary> /// <param name="consumeC...
require "euphoria/playlist_item" class Playlist < Array attr_reader :container attr_accessor :selected def initialize(xmms, on_cur_item_changed) super() @xmms = xmms @on_cur_item_changed = on_cur_item_changed @ee = nil @eet = nil @container = nil @selected = [] @xmms.playlist.entries.not...
// // Author: // Aaron Bockover <abock@xamarin.com> // // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using Xamarin.Interactive.Core; namespace Xamari...
# Sistam de Login - Vue + Express ## FRONT END 1. Criar Páginas + Página de Login - Notificar erro de Login - Spinner + Página de Cadastrar + Página de Sem Sessão ## BACK END - Express LINKS: + https://imasters.com.br/back-end/autenticacao-json-web-token-jwt-em-node-js + https://scotch.io/tutorials/vue-aut...
class Release BRANCH_PREFIX = 'release/v' BUILD_NAME = 'rc' PUBLISH_TAG = 'next' LIVE_TAG = 'latest' include Mongoid::Document include Mongoid::Timestamps include Nameable include Workable include Versionable include Archivable include Queueable field :uid, type: String field :due_date, ty...
package eu.the5zig.mod.listener; import eu.the5zig.mod.The5zigMod; import eu.the5zig.mod.event.EventHandler; import eu.the5zig.mod.event.TickEvent; import eu.the5zig.mod.util.GLUtil; import eu.the5zig.mod.util.IVariables; import eu.the5zig.util.Utils; import org.lwjgl.opengl.GL11; public class CrossHairDistanceListen...
<?php namespace App\Observers; use App\Model\User; use Illuminate\Support\Facades\File; class UserObserver { /** * Handle the User "updating" event. * * @param \App\Model\User $user * @return void */ public function updating(User $user) { if ($user->picture != $user->getOriginal('picture')...
/** * Copyright (C) 2016 Hurence (support@hurence.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 a...
## Hive commands ### List databases ```SQL SHOW databases; ``` ### Exit PSQL console ```SQL \q ``` Or <kbd>quit;</kbd> Or <kbd>exit;</kbd> Or <kbd>Ctrl</kbd> + <kbd>d</kbd> ### Connect to a database ```SQL USE db_name; ``` ### List all tables of a database ```SQL SHOW tables; ``` ### Run a HiveQL statement on c...
package com.gym.user.dto; import java.util.Date; /** * 请假时间段 * * */ public class LeaveTime { private Date startTime; private Date endTime; private String reason; public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = star...
<?php declare(strict_types = 1); namespace Arrays; /** * Extracts a slice of $array, starting from $offset and with a length of $length, * or to the end of the array if length is not provided. */ function slice(array $array, int $offset, ?int $length = NULL): array { return \array_slice($array, $offset, $length...
package com.lucas.movies.home.presentation internal sealed class MoviesViewAction { object ShowLoading : MoviesViewAction() object HideLoading : MoviesViewAction() object Default : MoviesViewAction() }
cd /user/a0393608/files/work/code/vision/ti/bitbucket/algoref/caffe-jacinto/build/tools/caffe.bin /user/a0393608/files/work/code/vision/ti/bitbucket/algoref/caffe-jacinto/build/tools/caffe.bin train \ --solver="training/cityscapes5_jsegnet21v2_2017-09-16_10-06-43/initial/solver.prototxt" \ --weights="training/imagenet_...
from R_wrapper import * from imageviewer import * def lof(): print "after execution of R script" k=get_files_list() print k viewfiles(k) executeR("lofd.r")
package kz.sozdik.advertisement.presentation import android.content.Context import android.content.Intent import android.net.Uri import android.util.AttributeSet import android.view.View import android.widget.FrameLayout import androidx.core.view.isVisible import com.facebook.drawee.backends.pipeline.Fresco import com...
module TempoIQ class Query attr_reader :search, :action, :pipeline def initialize(search, action, pipeline = nil) @search = search @action = action @pipeline = pipeline end def to_hash hash = { "search" => search.to_hash, action.name => action.to_hash } ...
class Armrest::CLI class StorageAccount < Armrest::Command desc "check_name_availability", "Check availability of storage account" long_desc Help.text("storage_account/check_name_availability") def check_name_availability(name) result = Armrest::Services::StorageAccount.new(options).check_name_avail...
package com.melihcelenk.seslekontrol; import com.melihcelenk.seslekontrol.modeller.KonfigurasyonData; import com.melihcelenk.seslekontrol.modeller.NodeData; import com.melihcelenk.seslekontrol.modeller.SinyalGonderData; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.ht...
package test; /** * @author wuhao * @date 2020/11/20 11:08 */ public class TTTest { public static void main(String[] args) { String date = "2020-01-01"; date=date.replaceAll("-", "/"); System.out.println(date); } }
#include <stdio.h> #include <vector> #include <algorithm> #include <string> #include <sstream> #include <iostream> #include "NetworkUtil.h" #pragma comment(lib, "ws2_32.lib") static const enum {PORT_BUF_SIZE = 65}; using namespace NetworkUtil; NetworkMapper::NetworkMapper(void){ char szHostnam...
/** * @param {Object} config * @param {ReturnType<typeof import('./add-all').createAddAll>} config.addAll */ export function createAdd({ addAll }: { addAll: ReturnType<typeof import('./add-all').createAddAll>; }): (path: string | CID, options?: import("ipfs-core-types/src/pin").AddOptions | undefined) => Promise...
# frozen_string_literal: true RSpec.describe AndroidInAppBilling::SignatureVerifier do let(:raw_inapp_purchase) { build(:android_in_app_billing_raw_inapp_purchase) } let(:data) { raw_inapp_purchase[:data] } let(:signature) { Base64.decode64(raw_inapp_purchase[:signature]) } subject { described_class.new(data: ...
import { Injectable } from '@angular/core'; import { ILogger } from './../../utils/index'; import { IValidationService } from './i-validation-service'; @Injectable() export abstract class ObjectValidationService<TObject> implements IValidationService<TObject> { /// injected dependencies protected logger: ILogge...
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE LambdaCase #-} -------------------------------------------------------------------------------- -- | -- Module : Database.EventStore.Internal.Connection -- Copyright : (C) 2017 Yorick Laupa -- License : (see the file LICENSE) -- -- Maintainer : Yorick Laupa <yo.e...
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -O2 \ ; RUN: -ppc-gpr-icmps=all -ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s \ ; RUN: --implicit-check-not cmpw --implicit-check-not cmpd --implicit-check-not ...
# enable color support of ls and also add handy aliases if __nidus_has dircolors; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias dir='dir --color=auto' alias vdir='vdir --color=auto' fi alias grep='grep --color=auto' alias fgr...
import styled from "styled-components"; export default styled.div` grid-column: 3; grid-row: 2; padding-left: 20px; padding-right: 20px; display: flex; flex-direction: column-reverse; overflow-y: auto; font-size: 15px !important; background-color: #fff; /* width */ ::-webkit-scrollbar { width...
#include <iostream> #include <type_traits> enum Color { red, green, blue }; struct Complex { double rel; double img; }; union reward { int i_val; double d_val; }; int main() { std::cout << "is_enum\n"; std::cout << std::is_enum<Color>::value << " "; std::cout << std::is_enum<Complex>::value <...
use super::*; #[cfg(feature = "rtu")] pub mod rtu; use core::{fmt, mem, convert::TryInto}; #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum DecodeError { InsufficientInput, InvalidInput, InvalidData, } impl fmt::Display for DecodeError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result ...
# Summary * *What is this task about, what problem does it solve?* * *Why do we need this task?* * *Who does it help?* # How / What * *What are we going to do?* * *How are we going to do it?* # Tests * *Which test must be done to assess the issue resolution?* *Link to a MR once it's opened.* /label ~task
package org.kurochan.scaptive_portal.controller.flow import akka.NotUsed import akka.stream.scaladsl.Flow import org.kurochan.scaptive_portal.controller.model.{ControllerMessage, ServerMessage} import org.kurochan.scaptive_portal.controller.service.MessageProcessingService object MessageProcessingFlow { def apply(...
package pixbuf type RasterCursor struct { X int Y int } func (cursor *RasterCursor) Reset() { cursor.X = 0 cursor.Y = 0 } type Raster struct { fgColor RGBA32 bgColor RGBA32 }
#!/bin/bash # Copyright (c)2015 - 2016 Oasis LMF Limited # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # Redistributions of source code must retain the above copyright # notice, this list o...
require 'http/parser' require 'uri' module Kage module Connection attr_accessor :master_backend, :session_id # http://eventmachine.rubyforge.org/EventMachine/Connection.html#unbind-instance_method def close_connection(*args) @server_side_close = true super end def unbind if !@...
#!/bin/sh set -x VERSION=$(cat config/version.go | grep 'Version.*=.*v[0-9]' | cut -d '"' -f 2 | sed -r 's/v//g') export VERSION echo "Creating release v${VERSION}" go get github.com/mitchellh/gox || true go get -u -v github.com/aktau/github-release || true gox -osarch="linux/arm64" gox -osarch="linux/amd64" gox -osar...
import logging, os, pyTigerGraphBeta as tg from typing import Optional logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) TIGERGRAPH_CONNECTION_VERSION = '3.1.0' def connect_to_tigergraph() -> Optional[dict]: if ('TIGERGRAPH_HOST' in os.environ and 'TIGERGRAPH_USERNAME' in os.environ an...
using System; using System.Linq; #if NETSTANDARD2_0 using System.Data.SqlClient; #elif NET5_0 using Microsoft.Data.SqlClient; #endif using Polly; namespace Bet.Extensions.Resilience.Data.SqlClient { public static class SqlPolicyExtensions { private static readonly Func<SqlException, bool> TransientS...
module Seahorse module Client module EventEmitter def initialize(*args) @listeners = {} super end def emit(event_name, *args, &block) @listeners[event_name] ||= [] @listeners[event_name] << block if block_given? end def signal(event, *args) ...
"""Check invalid value returned by __bytes__ """ # pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance import six from missing import Missing class FirstGoodBytes(object): """__bytes__ returns <type 'bytes'>""" def __bytes__(self): return b"...
/* * Generated by class-dump 3.3.3 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by Steve Nygard. */ @class ActivityAggregate, NSTimer; @interface ActivityAggregator : NSObject { NSTimer *_timer; ActivityAggregate *_in; ActivityAggregate *_out; ActivityAggrega...
@{ ViewBag.Title = "优秀案例展示"; } <style> h2{ text-align: center; } .news ul { padding: 0; } .news li { list-style-type: none; font-size: 20px; } .news a { color: black; } </style> <div class="row clearfix news"> <div class="col-md-8 column...
<?php namespace MkmScraper; use Illuminate\Database\Eloquent\Model; class Set extends Model { public function __toString(){ return $this->name; } public function cards(){ return $this->hasMany("\MkmScraper\Card","id_set"); } public function mythics(){ return $this->hasMa...