text stringlengths 27 775k |
|---|
---
title: VRT Sheet For Dia
source: //github.com/cryptofuture/vrt-sheet-for-dia
ppa: //launchpad.net/~hda-me/+archive/ubuntu/vrt-sheet-for-dia
date: 2015-04-17
display_date: Actual
---
*Sheets and shapes collection for Dia*
Based on [VRT extension](http://www.vrt.com.au/downloads/vrt-network-equipment) for LibreOffi... |
---
author: erikhopf
ms.author: erhopf
ms.service: cognitiveservices
ms.topic: include
ms.date: 08/16/2018
ms.openlocfilehash: 759a79d92a9594abb1be1c6461752420fea4a41e
ms.sourcegitcommit: 9ee0cbaf3a67f9c7442b79f5ae2e97a4dfc8227b
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 03/27/2020
ms.locfileid: "67... |
from .register import define
@define
def pipeline_ended(pipeline):
"""
Signal the pipeline and all non-daemon threads have ended and no further
action should be done by the pipeline itself.
The only thing pipeline will be doing after this hook is waiting for all
possible non-daemon thread callback... |
package eu.k5.soapui.streams.jaxb.model
import eu.k5.soapui.streams.jaxb.element.TestStepElement
import eu.k5.soapui.streams.model.test.SuuTestStepDelay
class TestStepDelayJaxb(
element: TestStepElement
) : TestStepJaxb(element), SuuTestStepDelay {
override var delay: Int
get() = element.config?.getV... |
<?php
$app->get( '/', 'HomeController@index' );
$app->get( '/{key}/{date}/{calendarId}/book', 'ClassesController@book' );
$app->post( '/{key}/{date}/{calendarId}/book', 'ClassesController@confirmBooking' );
|
#!/bin/bash
MYDIR=$PWD
START_TS=`date`
# Make sure we're up to date (works best in containers)
dnf -y update
rm -rf $HOME/rpmbuild
rm $MYDIR/build-output.txt
mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cp $PWD/*.patch $HOME/rpmbuild/SOURCES
#cp $PWD/*.conf $HOME/rpmbuild/SOURCES
cp $PWD/swift-lang.spec... |
export const defineEventListener = (
name: string,
handler: (e: any, payload: any) => void,
capture?: boolean,
): any => [name, handler, capture];
|
require "date"
class GoodDogJsonConverter
attr_reader :data
def initialize(data)
@data = data
end
def call
{
name: clean_string("Dog Name").titlecase,
breed: BreedCleaner.new(breed).call,
color_1: clean_string("Animal Dominant Color"),
color_2: clean_string("Animal Secondary C... |
package cn.tino.animatedwebp
import javafx.application.Application
import main.java.cn.tino.animatedwebp.Styles
import tornadofx.*
/**
* mailTo:guocheng@xuxu.in
* Created by tino on 2017 June 17, 18:00.
*/
class AnimatedWebpKt : App(MainScreen::class) {
init {
importStylesheet(Styles::class)
}
}
... |
import React from 'react';
import './App.css';
import Header from '../Header/Header';
import { AppStates } from '../../Common/State/ui';
import CardList from '../CardList/CardList';
import Movie from '../../Common/Models/Movie';
interface AppProps {
title: string;
}
class App extends React.Component<AppProps, App... |
#!/usr/bin/env bash
# ____ _ _
# | __ ) __ _| |__ (_)_ __ ___
# | _ \ / _` | '_ \| | '_ ` _ \
# | |_) | (_| | |_) | | | | | | |
# |____/ \__,_|_.__/|_|_| |_| |_|
set -e
# environment
export auser=${auser:-daemon}
export aguser=${aguser:-daemon}
export agid=${agid:-$auid}
export SERVER=${SERVER:-sona... |
package trading
import (
"testing"
"github.com/satori/go.uuid"
"github.com/stretchr/testify/require"
"github.com/tradsim/tradsim-go/models"
)
func TestAppendInvalidOrder(t *testing.T) {
require := require.New(t)
book := models.NewOrderBook()
ap := NewOrderAppender()
order := models.NewOrder(uuid.NewV4(),... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
/// <summary>
/// <a href="https://msdn.microsoft.com/en-us/library/windows/hardw... |
# Responsive-Portfolio
Basic About Me made with media queries
Responsive Portfolio assignment.
Content is the same as the Basic Portfolio except with the page is now responsive for different screen sizes.
3 different break points. 980px, 768px and 640px.
I adjusted the photos a little bit to ones I found while d... |
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
import "./styles.css";
import RenderProps from "./patterns/RenderProps";
import CompoundComponent from "./patterns/CompoundComponent";
import ControlProps from "./patterns/ControlProps";
import PropsCollection from "./patterns/PropsCollect... |
# VimeApi - it
SDK for russian server
# ВаймАпи - это
набор функций взаимодействующих с API сервера vimeworld.ru
# Links
https://vimeworld.github.io/api-docs/ - Official api docs
https://vimeworld.ru - Official site
|
import firebase from 'firebase'
import 'firebase/auth'
import 'firebase/firestore'
// firebase init - add your own config here
const firebaseConfig = {
apiKey: "AIzaSyAAOK_-ogfS6sfQoQNmqVDzDcaGNe3S0GA",
authDomain: "jvn-tracking-f31d2.firebaseapp.com",
databaseURL: "https://jvn-tracking-f31d2-default-rtdb.... |
# simple excercise that implements linear regression on a restaurants data set
import numpy as np
from numpy import linalg as la
import pandas as pd
# load data
data = pd.read_csv("http://www.stat.tamu.edu/~sheather/book/docs/datasets/MichelinNY.csv")
# split into features matrix and ground truth vector
X = ... |
# Hacktoberfest 2019 - IIM
! [hacktoberfest] (https://user-images.githubusercontent.com/1866496/65622596-4b382480-dfc6-11e9-9abf-29205789fb3f.png)
Unterstütze Open Source und verdiene ein limitiertes T-Shirt!
## Veranstaltungsdetails
Das Hacktoberfest® ist offen für alle in unserer globalen Community.
Egal, ob Sie ... |
use crate::types::{ Bit, Byte, Word, CpuFlag };
/// this trait provides an object creation function
pub trait Factory {
/// create a new instance of Self
fn new() -> Self;
}
/// this trait is used to control the state of the cpu and its memory: reset, step, run and load data
pub trait CpuController {
/// ... |
package hash
/**
* 给定一个二维平面及平面上的 N 个点列表Points,其中第i个点的坐标为Points[i]=[Xi,Yi]。请找出一条直线,其通过的点的数目最多。
设穿过最多点的直线所穿过的全部点编号从小到大排序的列表为S,你仅需返回[S[0],S[1]]作为答案,若有多条直线穿过了相同数量的点,则选择S[0]值较小的直线返回,S[0]相同则选择S[1]值较小的直线返回。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/best-line-lcci
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
*/
class Solu... |
<div class="form-group required">
{!! Form::label('email', 'Email', array('class' => 'control-label col-md-3')) !!}
<div class="col-md-9">
{!! Form::email('email', null, array('class' => 'form-control')) !!}
</div>
</div>
<div class="form-group required">
{!! Form::label('password', 'Password', ... |
#!/bin/env bash
set -e
read -r -p "You are about to change your keyboard layout to -> Programmer's Dvorak? [y|N]: "
if ! [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Aborting"
exit 1
fi
setxkbmap -layout us -variant dvp
echo "Done, Enjoy :)" |
var _ = require('lodash')
var chalk = require('chalk')
var cheerio = require('cheerio')
var Highlights = require('atom-highlightsjs')
var highlighter = new Highlights()
var languages = [
'atom-language-nginx',
'language-dart',
'language-rust',
'language-erlang',
'language-glsl',
'language-haxe',
'languag... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {ServerRequest} from "@romefrontend/core";
import {commandCategories} from "../../common/commands";
import {createServerCom... |
package com.hcanyz.android_kit.vendor.config
import android.content.Context
import android.content.SharedPreferences
import androidx.core.content.edit
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.startup.AppInitializer
interface IZConfig {
companion object {
... |
import { Component, OnInit } from "@angular/core";
import { Select, Store } from "@ngxs/store";
import { iif, NEVER, Observable, of } from "rxjs";
import { map, switchMap, tap } from "rxjs/operators";
import { AuthActions } from "./shared/auth.actions";
import { AuthService } from "./shared/auth.service";
import { AUT... |
import 'package:dart_wom_connector/src/core/data/http_helper.dart';
import 'package:dart_wom_connector/src/core/error/exceptions.dart';
import 'package:http/http.dart' as http;
abstract class ApiKeyRemoteDataSources {
Future<String> getRegistryKey(String domain);
}
class ApiKeyRemoteDataSourcesImpl extends ApiKeyRe... |
package com.lfo.dafu.tool
/**
* Created by home on 2017/8/16.
*/
class ToolBarHandler private constructor(){
private object Handler{val INSTANCE=ToolBarHandler()}
companion object {
val instance:ToolBarHandler by lazy { Handler.INSTANCE }
}
} |
<?php
namespace Cxsquared\HowzatCricketLeague\Api\Controller;
use Cxsquared\HowzatCricketLeague\Api\Serializer\TeamSerializer;
use Cxsquared\HowzatCricketLeague\Team\Team;
use Flarum\Api\Controller\AbstractShowController;
use Illuminate\Support\Arr;
use Psr\Http\Message\ServerRequestInterface as Request;
use... |
import Component from 'ember-component';
import computed from 'ember-computed';
import observer from 'ember-metal/observer';
export default Component.extend({
classNames: ['expandable-tree'],
treeClassNames: computed('root', 'selectedCategory.hash', 'node.hash', function() {
let node = this.get('node');
i... |
export * from "./hooks";
export * from "./server";
export * from "./ValidatedForm";
export * from "./validation/types";
export * from "./validation/withYup";
export * from "./validation/withZod";
|
using System.Collections.Generic;
namespace ZdravoKorporacija.Konverteri
{
public interface IKonverter<E, DTO>
where E : class
where DTO : class
{
DTO KonvertujEntitetUDTO(E entitet);
E KonvertujDTOuEntitet(DTO dto);
List<E> KonvertujDTOSuEntitete(IEnumerable<DTO> dto... |
# YouTube-Scraping-API
An easy-to-use YouTube API, without any kind of quota, and download any videos on youtube as much as you like. <br />
I'm still working on it, so stay tuned for more updates to come.
## Documentation
https://ytsa.thecodeblog.net
## Versions
### 0.0.1 (deleted)
- Not an official release (care... |
# Archidemus
Basado en the-plain (http://heiswayi.github.io/the-plain/)
### Licencia
[MIT](LICENSE.md)
|
<?php
namespace Autopilot\Exceptions;
use Exception;
class MethodNotImplementedException extends Exception
{
public static function create(string $method): self
{
return new static(sprintf(
'The %s method is not yet implemented',
$method
));
}
}
|
package opencv
import (
"bytes"
"io/ioutil"
"math"
"math/rand"
"os"
"path"
"runtime"
"syscall"
"testing"
"time"
"unsafe"
)
func init() {
// seed random number generator for
// creating random mask for TestAddSubWithMask below
rand.Seed(time.Now().Unix())
}
func TestLoadImage2(t *testing.T) {
// t.Erro... |
using AliceAppraisal.Application.Infrastructure;
using AliceAppraisal.Core.Engine;
using AliceAppraisal.Core.Engine.Services;
using AliceAppraisal.Core.Engine.Strategy;
using Serilog;
using System;
namespace AliceAppraisal.Application {
public sealed class ServiceFactoryBuilder {
private static readonly ServiceFac... |
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import React, { useMemo } from 'react';
import { indexOf } from 'lodash';
import Plotly from 'plotly.js-dist';
import { Plt } from '../../../plotly/plot';
import { NUMERICAL_FIELDS } from '../../../../../../common/constants/shared';
imp... |
namespace ImageResizer.Plugins.EPiFocalPoint {
internal class CropDimensions {
public int X1 { get; set; }
public int Y1 { get; set; }
public int X2 { get; set; }
public int Y2 { get; set; }
public override string ToString() {
return $"{X1},{Y1},{X2},{Y2}";
}
}
} |
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library dartdoc.html_generator;
import 'dart:async' show Future;
import 'dart:io' show File;
import '... |
package main
import (
"sort"
"github.com/paralin/go-underlords/protocol"
)
// IsValidMsg checks if the message is valid.
func IsValidMsg(msg protocol.EGCDACClientMessages) bool {
_, ok := protocol.EGCDACClientMessages_name[int32(msg)]
return ok && msg > 9000
}
func getSortedMsgIDs() []protocol.EGCDACClientMessa... |
using System;
using FlaUI.Core.AutomationElements;
using FlaUI.Core.Definitions;
using FlaUI.Core.Input;
using FlaUI.Core.Tools;
using FlaUI.Core.WindowsAPI;
using log4net;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestFramework
{
public class TextEditor
{
private static readonly I... |
use core::nonzero::NonZero;
use std::fmt::Debug;
use std::sync::Arc;
use raw::{Allocator, RawIobuf};
use impls::{AROIobuf, RWIobuf, UniqueIobuf};
use intlike::IntLike;
/// Input/Output Buffer
///
/// Have your functions take a generic IObuf when they don't modify the buffer
/// contents. This allows them to be used ... |
//go:build integration
// +build integration
// To enable compilation of this file in Goland, go to "Settings -> Go -> Vendoring & Build Tags -> Custom Tags" and add "integration"
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed wit... |
using System;
namespace funktio_4
{
class Program
{
static void Main(string[] args)
{
int maxNumber = 0;
int sequenceOfNumber = 0;
Console.WriteLine("ohjelma pyytää käyttäjältä 10 positiivista kokonaislukua ja palauttaa niistä isoimman");
string... |
package healthcheck
import (
"errors"
"fmt"
log "github.com/sirupsen/logrus"
"github.com/hashicorp/go-multierror"
"net"
"os/exec"
"time"
)
var healthCheckTypes map[string]func(Healthcheck) (HealthChecker, error)
func RegisterHealthcheck(name string, f func(Healthcheck) (HealthChecker, error)) {
if healthChec... |
Credits to https://github.com/dklein-net/docker-keycloak-nginx for providing the original module.
Provides Let's Encrypt support. |
/**
* Copyright (C) 2004-2009 Jive Software. 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 requir... |
/* eslint-disable @typescript-eslint/no-namespace */
import { Result, UseCaseError } from "@cloudposse/common";
export namespace SendSpaceliftEventsToSlackErrors {
export class InvalidSpaceliftSignatureError extends Result<UseCaseError> {
constructor() {
super(false, {
message: `The Spacelift signa... |
<?php
namespace BM\UserBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class BMUserBundle extends Bundle
{
}
|
package com.webcheckers.model;
import com.webcheckers.appl.Message;
import com.webcheckers.appl.MessageType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.mock;
import com... |
module HeartyDrinker
class WebsocketHandler
KEEPALIVE_TIME = 15
def initialize(app)
@app = app
@clients = []
end
def call(env)
if Faye::WebSocket.websocket?(env)
ws = Faye::WebSocket.new(env, nil, ping: KEEPALIVE_TIME)
ws.on(:open) do |event|
p [:open, ws.... |
# frozen_string_literal: false
module IsoBibItem
VERSION = '0.4.5'.freeze
end
|
## Take Advantage of Type Inference
Purposes:
* Less code
* Reduced cylomatic complexity
* No reinventing the wheel
-----
Before
``` csharp
var value = "123";
int id;
if (value != null && int.TryParse(null, out id)) // NO NEED TO NULL CHECK...
{
//
}
```
After
``` csharp
var value = "123";
int id;
if (int.T... |
@page
@using RazorPagesContacts.Data
@using Microsoft.AspNetCore.Mvc.RazorPages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject AppDbContext Db
@functions {
[BindProperty]
public Customer Customer { get; set; }
public async Task<IActionResult> OnPostAsync()
{
if... |
package model.executable.command.math;
import model.Environment;
import model.executable.Literal;
import model.executable.command.AbstractCommand;
public abstract class MathCommand extends AbstractCommand {
public MathCommand(int numParams) {
super(numParams);
}
@Override
public Literal execute(Environment e... |
void main() {
String name = 'Don';
int age = 23;
double height = 1.84;
var friends = ['Akku', 'Don', 'Albin', 'Maritta'];
var image = {
'tags': ['profile_pic'],
'url': '//path/wac/don.jpg'
};
print("Hello, I'm $name");
print("My Age is $age");
print("My Height is $height m");
print("${friends[1]}");
prin... |
// <copyright file="CombinedState.cs" company="VoxelGame">
// MIT License
// For full license see the repository.
// </copyright>
// <author>pershingthesecond</author>
using System;
using System.Collections.Generic;
using OpenToolkit.Windowing.Common.Input;
namespace VoxelGame.Input.Internal
{
internal re... |
package com.yong.user.service;
import com.yong.service.commons.core.exception.BusinessException;
import com.yong.user.dao.UserInfoDao;
import com.yong.user.entity.UserInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class UserService... |
package com.kangmin.app.interceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.lang.Nullable;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.htt... |
module Embulk
module Input
module InstagramAdsScope
require 'koala'
class GraphApiClient
def initialize(args)
@args = args
Koala.config.api_version = "v6.0"
@graph = Koala::Facebook::API.new(@args[:access_token])
end
def get_campaign_ids
... |
protoc --go_out=../model/proto/ auth.proto
protoc --go_out=../model/proto/ enum.proto
protoc --go_out=../model/proto/ room.proto
protoc --go_out=../model/proto/ model.proto
protoc --go_out=../model/proto/ ready.proto
protoc --go_out=../model/proto/ combat.proto |
# Google Meet Automation
This python script will help you to join daily repetitve classses easily.
### Getting Started
- Firstly clone the project to the desired location, and locate it in the terminal. You would have to download the required modules, you can do this by doing:
`pip install -r requirements.txt` ... |
package com.ye.scrollviewsuspensiontitle
import android.content.Context
import android.os.Handler
import android.os.Message
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.widget.ScrollView
/**
* Create Time : 2020-06-27
* Author : WoDong
* Desc : 自定义ScrollV... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
namespace Orbital7.Extensions
{
public static class ReflectionHelper
{
public static string GetExecutingAssemblyFolderPath()
{
string codeBase = Assembly.... |
/*
* Copyright The OpenTelemetry 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 a... |
# sh setup-for-test.sh
sudo -u postgres psql code4kc < install.sql
cp DelinquencyDataRequest-27-Apr-2018.xlsx /tmp
./load
|
import queue
class msg:
def __init__(self):
pass;
if __name__ == "__main__":
queueList = queue.Queue(maxsize=5)
queueList.put(str("a"))
print(type(queueList.get())) |
package util.plugins
import play.api.Play
import collins.provisioning.ProvisionerPlugin
object Provisioner {
def pluginEnabled: Option[ProvisionerPlugin] = {
Play.maybeApplication.flatMap { app =>
app.plugin[ProvisionerPlugin].filter(_.enabled)
}
}
def plugin: Option[ProvisionerPlugin] = pluginEn... |
Unit UnArc;
{$O+}
interface
Type
UnCompressFileProc = Procedure (ArcP:string);
UnCompressFileProc2 = Procedure;
UnCompressFileProc3 = Procedure (command,param:string);
Procedure LoadArchiveDef(fn:string);
Function UnCompressFile( filepath : String;
PreStats :... |
// Dependencies
var mongoose = require('mongoose');
var User = require('../models/model.js');
// Opens App Routes
module.exports = function(app) {
// GET Routes
// --------------------------------------------------------
// Retrieve records for all users in the db
app.get('/users', ... |
package cmd
import (
"fmt"
"log"
"os"
"path"
"strings"
"sync"
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
"github.com/pydio/cells-client/v2/rest"
)
var (
force bool
wildcardChar = "%"
)
var rmCmd = &cobra.Command{
Use: "rm",
Short: "Trash files or folders",
Long: `
DESC... |
---
block: cta-bar
content: ''
email_recipient: jonny@wgtwo.com
---
testing this out |
/*
* Copyright 2019 New Vector 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 agreed ... |
// import OSMFire_Core from 'MainCore'
import utils from 'utils'
'use strict'
const result = (function () {
class Name {
constructor (feature_templates) {
// console.log('name constructor() called')
this.feature_templates = feature_templates
}
destroy (removeComponent) {
console.log('... |
--+ holdcas on;
set system parameters 'compat_mode=mysql';
select acos(1) from db_root;
select acos(1.0001) from db_root;
select acos(0) from db_root;
select acos('123') from db_root;
select acos('a') from db_root;
select acos(NULL) from db_root;
select acos(123456789012345.12345) from db_root;
set system param... |
# herokudev-
ポートフォリオをherokuで作る。
css&html&JavaScript...
Create a portfolio and publish it on Heroku
https://glacial-sea-53305.herokuapp.com/
|
package com.polaris.blog.controller.portal;
import com.polaris.blog.response.ResponseResult;
import com.polaris.blog.services.CategoryService;
import com.polaris.blog.services.FriendLinkService;
import com.polaris.blog.services.LooperService;
import com.polaris.blog.services.WebSizeInfoService;
import org.springframew... |
class User < ApplicationRecord
has_secure_password
has_many :shows, dependent: :destroy
has_many :characters, through: :shows
validates :email, uniqueness: true, allow_blank: true
validates :password, length: { minimum: 4 }
validates :password, confirmation: true
validates :name, length: { minimum: 3 }... |
namespace ArangoDriver.Client.Query.Filter
{
public interface IAqlFilter : IAqlExpression<bool>
{
}
} |
/*
* Copyright 2014 Guillaume Masclet <guillaume.masclet@yahoo.fr>.
*
* 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 req... |
## [Networking]
- GKE has two networking modes: Routes-based and VPC-Native
- Let's see the differences between the two modes
[Networking]: https://cloud.google.com/kubernetes-engine/docs/concepts/alias-ips
---
## Routes-based
- Legacy mode
- Simpler (doesn't require specifying address ranges)
- Incompatible wi... |
/*
PROBLEM
=======
The person who applies the role may not have enough permissions to grant
the PMM user the permissions it needs.
SOLUTION
========
Having certain MariaDB permissions is necessary to create the pmm user in MariaDB,
thus it's necessary to run at least the PMM client i... |
<?php declare(strict_types=1);
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://swoft.org/docs
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
use Costalong\Swoft\Cache\Adapter\RedisAdapter;
use Costalong\Swoft\Cache\Cache... |
import 'package:get/get.dart';
import 'package:wandroid_flutter/data/providers/app_sp_service.dart';
import 'package:wandroid_flutter/data/providers/login_provider.dart';
import 'package:wandroid_flutter/pages/main/main_controller.dart';
/// 依赖注入
class DenpendencyInjection {
static Future<void> init() async {
//... |
import { WebSocketServer } from 'ws';
import crypto from 'crypto';
import RBush from './rbush.js';
const wss = new WebSocketServer( { port: process.env.PORT } );
wss.on( 'connection', ws => {
ws.on( 'message', message => {
try {
message = JSON.parse( message );
} catch ( e ) {
return;
}
consol... |
<?php
namespace App\Cloudsa9\Constants;
/**
* Class MobilePlatform
* @package App\Cloudsa9\Constants
*/
class MobilePlatform
{
const ANDROID = 'Android';
const IPHONE = 'iPhone';
/**
* @return array
*/
public static function all(): array
{
return [
self::ANDROID,
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: graphqlc/descriptor.proto
namespace Graphqlc;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>graphqlc.TypeDescriptorProto</c... |
export default args => {
if (
// children is MDXTag
args.children &&
// MDXTag props
args.children.props &&
// if MDXTag is going to render a <MathBlock>
args.children.props.name === 'MathBlock'
) {
return args.children.props;
}
};
|
class Zeli
class Parser
class HeaderParser
def initialize(option)
@option = option
end
def parse!(raw_curl, curl)
@raw_curl = raw_curl
@curl = curl
@curl.headers.merge!(headers)
end
def value
result = @raw_curl.scan(/\s#{@option}\ (.*)(\\)(\... |
package services
import models.Article
import play.api.Logger
import play.api.libs.ws.{WSClient, WSResponse}
import scala.concurrent.ExecutionContext
import scala.util.{Failure, Success}
/**
* Created with IntelliJ IDEA.
* User: zladovan
* Date: 08.08.15
* Time: 20:32
*/
class ArticlesUpdateFactory(ws: WSClient... |
package org.simple.clinic.bp.entry
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import org.junit.After
import org.junit.Test
import org.simple.clinic.TestData
import org.simple.clinic.mobius.EffectHandlerTestCase
import org.simple.clinic.util.TestUserClock
import org.simple.clinic.... |
# frozen_string_literal: true
module FetchSpamRepositoriesService
module_function
def call
create_new_spam_repos(spam_repo_ids)
remove_absent_repos(spam_repo_ids)
end
def spam_repo_ids
AirrecordTable.new.all_records('Spam Repos').map do |repo|
repo['Repo ID']&.to_i if repo['Verified?']
... |
package com.epicdima.theatraxity.domain.usecases.business.order;
import com.epicdima.theatraxity.domain.common.Codes;
import com.epicdima.theatraxity.domain.common.Common;
import com.epicdima.theatraxity.domain.common.HttpCodes;
import com.epicdima.theatraxity.domain.common.Result;
import com.epicdima.theatraxity.doma... |
json.array!(@intakes) do |intake|
json.extract! intake, :type, :volume, :unit
json.url intake_url(intake, format: :json)
end |
use crate::errors::SicImageEngineError;
use crate::operations::ImageOperation;
use rayon::iter::{IntoParallelRefMutIterator, ParallelIterator};
use sic_core::{
image::{self, DynamicImage, RgbaImage},
SicImage,
};
pub struct Threshold;
impl Threshold {
pub fn new() -> Self {
Self {}
}
}
impl I... |
namespace BoardCrud.Models
{
public class GameStateDto
{
public Player Player1 { get; set; }
public Player Player2 { get; set; }
}
} |
# EOS/REX Price Feed - dfuse GraphQL Streaming API
A Node.js example that uses dfuse GraphQL Streaming API to have a real-time feed of EOS/REX price
To run this example:
yarn install
DFUSE_API_KEY=<Your API Key here> yarn start
|
/*
Number of processes has been changed from 2 specified in web.config to 4 specified in node.config
*/
var iisnodeassert = require("iisnodeassert");
iisnodeassert.sequence([
iisnodeassert.get(10000, "/124_node_config_override/hello.js", 200, "Hello, world 1"),
iisnodeassert.get(2000, "/124_node_config_overri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.