text stringlengths 27 775k |
|---|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe PrometheusAlert do
let_it_be(:project) { build(:project) }
let(:metric) { build(:prometheus_metric) }
describe '.distinct_projects' do
let(:project1) { create(:project) }
let(:project2) { create(:project) }
before do
create(:... |
/********************************************************
Active Vet Query for Grok.
Restricted to Active flagged vets only
Excludes vetId 2 which is (see paper records)
srr 07.30.2019
********************************************************/
select vv.displayName as VetName
from snprc_ehr.validVets vv
where vv.stat... |
import React, { FormEvent } from 'react';
import TaskInboxToolbar from '../TaskInboxToolbar';
import { getWrapper } from '@kogito-apps/common';
import {
Select,
SelectOption,
Chip,
TextInputBase
} from '@patternfly/react-core';
import { act } from 'react-dom/test-utils';
import wait from 'waait';
import TaskCon... |
# See:
# https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e
import sys
from f2py_skel.frontend.f2py2e import main
sys.exit(main())
|
import styled from 'styled-components/native';
export const Container = styled.View`
flex: 1;
padding: 20px 20px;
background: #fff;
`;
export const Header = styled.View`
height: 100px;
flex-direction: row;
align-items: center;
`;
export const Avatar = styled.Image`
height: 68px;
width: 68px;
border... |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE CPP #-}
#define OPTIMIZE_WQO
module Language.REST.WQOConstraints.ADT where
import GHC.Generics (Generic)
import Debug.Trace
import... |
import { setData } from '@progress/kendo-angular-intl';
setData({
name: "pt-AO",
likelySubtags: {
pt: "pt-Latn-BR"
},
identity: {
language: "pt",
territory: "AO"
},
territory: "AO",
numbers: {
currencies: {
ADP: {
displayName: "Pese... |
# Importing Libraries
import tkinter as tk
from PIL import ImageTk, Image
# Defining Colors
root_color = '#224870'
input_color = '#2a4494'
output_color = '#4ea5d9'
# Defining Functions
def submit_name():
text = name.get()
if case_style.get() == 'normal':
name_label = tk.Label(output_frame, text=f'Hell... |
const Lab = require('@hapi/lab')
const lab = exports.lab = Lab.script()
const server = require('../test-server')
const Factory = require('@nearform/udaru-core/test/factory')
const { BuildFor, udaru } = require('../testBuilder')
const organizationId = 'WONKA'
function Policy (Statement) {
return {
version: '2016... |
package socket;
import java.io.IOException;
import java.net.*;
import socket.ServerThread;
public class server {
public static void main(String[] args)
{
try {
@SuppressWarnings("resource")
ServerSocket serverSocket =new ServerSocket(3333);
Socket socket=null;
while(true)
{
socket=... |
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_super_demo/flutter/animations/animations_page.dart';
import 'package:flutter_super_demo/flutter/cupertinoWidgets/cupertinoWidgets.dart';
import 'package:flutter_super_demo/flutter/laboratory/laboratory.dart';
import... |
const stream = require('stream');
const split2 = require('split2');
const pumpify = require('pumpify');
const EXTRA_DOCUMENTATION = require('./extra-documentation.js');
let constant_counter = 0;
const STATE_INIT = constant_counter++;
const STATE_HEADER_FOUND_SKIP_NEXT = constant_counter++;
const STATE_BODY = constant... |
#!/bin/sh
#
# Process raw data from NARCC and my listenings,
# and build readable report and configurations for handhelds.
#
./narcc-report.py \
-a my-listenings-santa-clara.txt \
narcc-south-bay.txt \
narcc-west-bay.txt \
narcc-east-bay.txt \
narcc-north-bay.txt \
unknown-repeaters-santa-clara... |
export INRIA_DATA_DIR="/home/bloodaxe/datasets/AerialImageDataset"
python -m torch.distributed.launch --nproc_per_node=4 fit_predict.py --fp16 -w 8\
-b 16 -m resnet101_unet64 --size 512\
-o RAdam -lr 3e-4 -wd 1e-5 -a hard\
-e 50 -s cos2\
--criterion bce 1\
--criterion dice 1\
--train-mode tiles --show --v... |
namespace Isles;
public abstract class ParticleEffect : BaseEntity
{
}
/// <summary>
/// Generate particles randomly within the specified area.
/// </summary>
public class AreaEmitter : ParticleEmitter
{
/// <summary>
/// Gets or sets the destination area.
/// </summary>
public Outline Area;
pub... |
using LinearAlgebra
using Statistics
include("algo_util.jl")
abstract type FirstOrder <: DescentDirectionMethod end
function solve(M::FirstOrder, f, ∇f, x, max_iters; num_eval_termination=true)
init!(M, f, ∇f, x)
x_hist = [x]
while true
x = step!(M, f, ∇f, x)
push!(x_hist, x)
if nu... |
---
layout: tag_page
title: "Tag: Rainbow Nation"
tag: Rainbow Nation
robots: noindex
---
|
use strict;
use warnings;
my $map = "p2P.s";
$map = $ARGV[1] if defined $ARGV[1];
my %p2P;
open A, "zcat $map|";
while (<A>){
chop();
my ($f, @ts) = split(/;/);
$p2P{$f} = join ';', @ts if $f ne $ts[0]; # don't store identity
}
my $printNoMatch = 1;
$printNoMatch = $ARGV[2]+0 if defined $ARGV[2];
my $col = $ARG... |
/*
* May-2020
*/
package com.breiter.movietowatchapp
import android.app.Application
import androidx.work.*
import com.breiter.movietowatchapp.data.repository.IMovieRepository
import com.breiter.movietowatchapp.data.util.Constants
import com.breiter.movietowatchapp.data.work.RefreshDataWorker
import kotlinx.coroutin... |
package network.model.tracklist
data class TrackListSongs(
val `data`: List<Song>
) |
using System.Collections.Generic;
using System.Linq;
using Dblp.Data.Interfaces.Entities;
namespace Dblp.Data.Interfaces
{
public interface IDblpDataStore
{
//IEnumerable<SearchResult> SearchResults { get; }
IQueryable<Conference> Conferences { get; }
IQueryable<Publication> Publicatio... |
1.2.2 (11/17/2021)
------------------
* Fix Std.is warning in Haxe 4.1
1.2.1 (01/01/2021)
------------------
* Fix line ending for `hxp` alias shell script
1.2.0 (12/21/2020)
------------------
* Added `hxml.getClassPaths`
* Added `Path.startsWith`
1.1.6 (12/19/2020)
------------------
* Fixed a regression in... |
import events
from structures import Response, Config
import os
import json
config = Config()
mime_types = json.load(open("mime_types.json"))
errors = {
404: b"",
403: b"",
500: b"",
}
@events.add_handle("http_request")
def normal_http(event):
request = event.request
if "Host" in request.headers and request.he... |
package com.peralex.utilities.ui.validatedtextfield;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParseException;
/**
*
* @author Noel Grandin
*/
public abstract class DecimalTextModel extends FormattedTextModel<NumberFormat>
{
protected DecimalTextModel(DecimalForm... |
* [Kafka【第一篇】Kafka集群搭建 - Mr.心弦 - 博客园 ](http://www.cnblogs.com/luotianshuai/p/5206662.html) |
package com.jeanboy.arch.data.net.entity;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
/**
* Created by 乔晓松 on 2018/6/1 15:32
*/
public class MilestoneEntity {
private long id;
private int number;
private String title;
private String description;
private UserInfoEn... |
package com.jakway.sqlpp.config.test.testconfig
object PrintConfig {
val numTabChars: Int = 5
val standardTab: String = " " * 5
}
|
part of meowtype.graph;
/// Undirected graph, Can create an edge and value between 2 nodes
abstract class UndirectedValueGraph extends UndirectedGraph
implements GraphGet {
factory UndirectedValueGraph() = FullGraph;
/// create an link between 2 nodes with value
///
/// Optional [tags] for setting tags
... |
# Homework 3: Bayes classifier and Perceptron





 |
namespace PocKafka.Api.Models.Events
{
public class ProduceRandomLocationsRequestModel
{
/// <summary>
/// Quantity of random Locations to produce.
/// </summary>
/// <example>10</example>
public int Quantity { get; set; } = 1;
}
}
|
use strict;
use Test::More;
use Test::Differences;
use String::Cushion;
use syntax 'qi';
use PPI;
use Pod::Weaver;
use Pod::Weaver::Section::Legal::Supplemented;
use Software::License::Artistic_1_0;
ok 1;
my $document = Pod::Elemental->read_string(inpod());
my $ppi_doc = PPI::Document->new(module_contents());
my $ass... |
/**
* Export body and header as two seperate functions
* Also export "headerize" as a way to remove the top array from the bottom
* Use tablize as a way to do both
*/
export const tablize = <T extends any>(twoDimentionalArray: T[][]): string => {
// This array will include the number that each column should be th... |
---
layout: post
title: Intellij IDEA for jekyll blogging
date: 2017-11-08 14:11
description: Here I show how the
comments: true
tags:
- jekyll idea
--- |
/*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... |
# encoding: utf-8
require 'spec_helper'
describe Yardstick::Measurement, '#puts' do
let(:document) { DocumentMock.new }
describe 'with no arguments' do
subject { @output }
before do
capture_stdout { described_class.new(rule).puts }
end
describe 'when the measurement is successful' do
... |
namespace MorseCode.RxMvvm.Observable.Collection
{
/// <summary>
/// Represents an item with an observed value.
/// </summary>
/// <typeparam name="T">
/// The type of the item.
/// </typeparam>
/// <typeparam name="TObserved">
/// The type of the observed value.
/// </typeparam>
... |
import { VantArea } from 'vant-weapp-typings';
type Area = React.ComponentType<VantArea>;
declare const Area: Area;
export default Area;
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package vpc
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides VPCs available to the user.
//
// ## Example Usag... |
// Copyright 2020 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
#ifndef __CLIENT_API_V1_TIPS_H__
#define __CLIENT_API_V1_TIPS_H__
#include <stdbool.h>
#include <stdint.h>
#include "client/api/v1/response_error.h"
#include "client/client_service.h"
#include "client/network/http.h"
#define STR_TIP_MSG_LEN 64
... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import numpy as np
from nearpy import Engine
from nearpy.hashes import RandomBinaryProjections
from paths import *
from datautils import *
from quality_metrics import QualityMetrics
import time
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats, math
import seaborn as sns
def mean_confidence_i... |
# chick-utils
js相关基础工具方法
ES6,做一些基础功能的封装,形成工具集,避免多种lib引用带来的代码臃肿
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from collections import namedtuple
from typing import List, Any, Dict, Callable, Optional
from .transports import ClientTransport
from .exc import RPCError
from .protocols import RPCErrorResponse, RPCProtocol, RPCRequest, RPCResponse, RPCBatchResponse
RPCCall ... |
/**
* Copyright (c) Dell Inc., or its subsidiaries. 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
*/
packag... |
---
title: The Bitcoin Cash Flippening
author: PipisCrew
date: 2017-11-13
categories: [news]
toc: true
---
http://www.bchflippening.com/
origin - http://www.pipiscrew.com/?p=11237 the-bitcoin-cash-flippening |
const {
prAlreadyExisted,
} = require('../../../lib/workers/branch/check-existing');
const defaultConfig = require('../../../lib/config/defaults').getConfig();
describe('workers/branch/check-existing', () => {
describe('prAlreadyExisted', () => {
let config;
beforeEach(() => {
config = {
...d... |
package networking
import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/test/e2e"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("[networking] network isolation", func() {
f1 := e2e.NewDefaultFramework("net-isolation1")
f2 := e2e.NewDefaultFramework("net-isolation2")
Specify("mul... |
---
layout: attachment
title: runserver
tags: []
---
|
---
company-name: Mediagra
domain: mediagra.com
home: http://mediagra.com/
---
|
import { Group } from "../groups/group";
import { FilterGroupByTypePipe } from './groupType.pipe';
describe('FilterGroupByTypePipe', () => {
let pipe: FilterGroupByTypePipe;
beforeEach(() => {
pipe = new FilterGroupByTypePipe();
});
it('filter arra of groups to get only groups that contain the requeste... |
import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
lifecycle,
mapProps,
onlyUpdateForPropTypes,
withHandlers,
} from 'recompose';
import { Helmet } from 'react-helmet';
import { Meteor } from 'meteor/meteor';
import throttle from 'lodash/throttle';
import uniq from 'lodash/uniq';... |
{!! Form::open(['action'=>['UserController@recover',$user->id],'method'=>'POST']) !!}
{!! csrf_field() !!}
<div class="modal fade" id="modalRecover{{$user->id}}" role="dialog" aria-labelledby="modalLabelprimary">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div cl... |
import { TemplateRef } from '@angular/core';
export declare class NzBreadCrumbComponent {
private _separator;
isTemplateRef: boolean;
nzSeparator: string | TemplateRef<void>;
}
|
package com.tagakov.userscreen.api
interface UserpicLinkProvider {
val userpic: String
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Media3D;
namespace Interlocked
{
// A point class that makes nearby points equal.
public class ClosePoint3D : IEquatable<ClosePoint3D>
{
public int Digits;
public double X, Y, ... |
---
title: "Verify Spectre / Meltdown protections remotely with Puppet Bolt on Windows"
shortTitle: "Detect Spectre/Meltdown with Bolt on Windows"
blogName: "Puppet Blog"
blogUrl: "//puppet.com/blog/verify-spectre-meltdown-protections-remotely-puppet-bolt-windows"
featureImage: img/logo_tagline_background.png
published... |
/******************************************
* Filename: pit.cpp
* Description: implementation file for pit class
* Input: header
* Output: default constructor, getters, setters
******************************************/
#include "pit.h"
using namespace std;
Pit::Pit()
{
message = "You feel a breeze";
encount... |
class BrewInstaller
def install(formula)
system "brew install #{formula}"
end
def uninstall(formula)
end
def cask_install(formula)
end
def cask_uninstall(formula)
end
def bundle(directory)
brewfile = File.expand_path('Brewfile', directory)
system("brew bu... |
#!/usr/bin/env bash
### Create, build & deploy Netlify
# https://app.netlify.com/start/deploy?repository=https://github.com/creio/awesome-arch/
# git clone https://github.com/creio/awesome-arch/
# cd awesome-arch
## edit mkdocs.yml url, repo
# site_url: https://awesome-arch.netlify.com/
# repo_name: creio/awesome-arch... |
package info.dvkr.screenstream.ui
import android.support.annotation.Keep
import rx.Observable
interface SettingsActivityView {
// From SettingsActivity to SettingsActivityPresenter
@Keep sealed class FromEvent {
@Keep data class MinimizeOnStream(val value: Boolean) : FromEvent()
@Keep data c... |
package com.alim.coroutinewithretrofit.network
import com.alim.coroutinewithretrofit.model.PostResponseDto
import retrofit2.http.GET
const val API_GATEWAY_BASE_URL = "https://jsonplaceholder.typicode.com"
interface ApiGateway {
@GET("/posts")
suspend fun getPosts() : List<PostResponseDto>
} |
package com.activepersistence.repository.arel;
import static com.activepersistence.repository.Arel.jpql;
import static com.activepersistence.repository.Arel.jpqlList;
import com.activepersistence.repository.arel.nodes.DeleteStatement;
import com.activepersistence.repository.arel.visitors.Visitable;
import java.util.Li... |
import { Component, OnInit } from '@angular/core';
import { BlogService } from '../../services/blog.service';
import { Blog } from '../../models/blog';
@Component({
selector: 'app-manage-blogs',
templateUrl: './manage-blogs.component.html',
styleUrls: ['./manage-blogs.component.css']
})
export class ManageBlogsC... |
# frozen_string_literal: true
require 'application_system_test_case'
class Practice::CompletionTest < ApplicationSystemTestCase
test 'not logging-in user can access show' do
visit "/practices/#{practices(:practice1).id}/completion"
assert_text '「OS X Mountain Lionをクリーンインストールする」'
end
test 'ogp image is ... |
#! /bin/bash
set -e
commands=(
akashic
akashic-new
)
rm -rf release
for executable in "${commands[@]}"; do
gox -verbose -output "release/${executable}_{{.OS}}_{{.Arch}}" ./$executable
done
cd release
for bin in akashic_*; do
args=()
for executable in "${commands[@]}"; do
if [[ "$bin" == *windows* ]]; t... |
## Finished
### 视图容器
- view
- scroll-view
### 基础内容
- icon
- text
- progress
## TODO
### 视图容器
- swiper
### 表单组件
- button
- checkbox
- form
- input
- label
- picker
- picker-view
- radio
- slider
- switch
- textarea
|
export * as Analyser from "./Analyser"
export * from "./FileAnalyser"
export * from "./HTTPLogLine"
export * as HTTPLogLineCompiler from "./HTTPLogLineCompiler" |
<table class="table">
<thead>
<tr>
<th>Folio</th>
<th>Estado</th>
<th>Cliente</th>
<th>Fecha/hora de entrada</th>
<th>Fecha/hora de entrega</th>
<th>Días en soporte</th>
<th>Tiempo para entrega</th>
<th>
<i class="fa fa-gears"></i>
... |
/*
* Copyright (C) 2019 Cisco Systems
*
* 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 service
import (
"context"
"encoding/json"
"go-common/app/job/main/videoup/model/archive"
"go-common/app/job/main/videoup/model/message"
"go-common/app/job/main/videoup/model/redis"
"go-common/library/log"
"strconv"
"time"
)
// sendBblog 发送粉丝动态databus
func (s *Service) sendBblog(a *archive.Result) {
... |
C
C Returns the interpolated value of the BFKL
C amplitude for hard color singlet exchange.
C It needs a file in which the exact values
C are stored in the chosen form.
C
C Modifications for PYTHIA:
C -gives result in GeV-2 instead of mb
C -not function of controll anymore
C ... |
require 'webrick'
class FakeUAAServer
attr_reader :thread, :server
def initialize(port)
@server = WEBrick::HTTPServer.new(
BindAddress: 'localhost',
Port: port,
AccessLog: [],
Logger: WEBrick::Log.new('/dev/null')
)
server.mount '/.well-known/openid-configuration', UAAIssuer
... |
<?php
namespace App\Http\Controllers\System;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\System\Companies\Company;
class CompaniesController extends Controller
{
public function getRecords(Request $request) {
return Company::getRecords($request->all());
}
pu... |
gitlab-runner-docker
====================
This is a role to install the GitLab Runner as a docker container.
Requirements
------------
The system must be Debian.
Role Variables
--------------
- `gitlab_runner_docker_debian_version`: The version of Debian you are running
(e.g. stretch)
- `gitlab_runner_docker_dat... |
<?php
/*
* This file is part of Badcow DNS Library.
*
* (c) Samuel Williams <sam@badcow.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Badcow\DNS\Tests\Rdata;
use Badcow\DNS\Rdata\UnsupportedTypeException;
use PHP... |
'use strict'
// This is an alternative to `import { server } from 'universal-webpack'`.
// https://github.com/catamphetamine/universal-webpack/issues/23#issuecomment-290201907
exports = module.exports = require('./build/server').default |
package pagedata
import (
"bytes"
"encoding/binary"
"io"
"log"
"minidb-go/parser/ast"
)
type RecordData struct {
size uint16
rows []*ast.Row
}
func NewRecordData() *RecordData {
return &RecordData{
size: 2 + 1,
rows: make([]*ast.Row, 0),
}
}
func (r *RecordData) Encode() []byte {
buf := new(bytes.Buff... |
import { LoggerWrapper } from '../LoggerWrapper';
import { debugBreak } from './DevelopmentHelper';
import { ParserInterface } from './ParserInterface';
export class TextStreamParser implements ParserInterface {
constructor(
private readonly log: LoggerWrapper,
rootProcessor: RootLineProcessor,
private r... |
#include <cstdio>
#include <algorithm>
#include <limits.h>
#include <iostream>
#define MAX 100000
using namespace std;
int matchsticksBuringTime[MAX];
int N;
void input_BurningTime (int l) {
for (int i = 0; i < l; i++)
scanf("%d", &matchsticksBuringTime[i]);
}
int maximumValue(int l, int r) {
int temp = 0;
f... |
#pragma once
#include "../hookFunctions.h"
#include <string>
class WidescreenFixes
{
public:
WidescreenFixes(HMODULE moduleReference, int Width, int Height);
void OverrideFOV(float HorizontalFOV);
float ConvertFOV(float DesiredFOVInDegrees, float AspectRatio);
void EnableHudCorrection();
~WidescreenFixes();
priva... |
module NatUtil where
import Numeric.Natural
import Util ((.|.))
repliconcat :: Natural -> [a] -> [a]
repliconcat = concat .|. replicat
replicat :: Natural -> a -> [a]
replicat = replicate . fromIntegral
|
class CreateStatusEstimationHistory < ActiveRecord::Migration[6.0]
def change
create_table :status_estimation_histories do |t|
t.datetime :updated_time
t.datetime :valid_until
t.float :status
t.bigint :store_id
t.datetime :old_created_at
t.datetime :old_updated_at
end... |
package com.xrbpowered.greenhouse.render;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.vector.Vector4f;
import com.xrbpowered.gl.res.buffers.OffscreenBuffers;
import com.xrbpowered.gl.res.buffers.RenderTarget;
import com.xrbpowered.gl.res.shaders.PostProcessShader;
import com.x... |
export { } // no need to worried about it (will discuss in upcoming videos)
function add(num1: number, num2: number): number;
function add(a: string, b?: string): string;
function add(a: any, b: any): any {
if (b) {
return a + b
} else return a
}
console.log(add(1, 2));
console.log(add("k", "c"... |
using System.Web.Http;
using Nyan.Core.Modules.Maintenance;
namespace Nyan.Modules.Web.Tools.Maintenance
{
[RoutePrefix("stack/tools/maintenance")]
public class StackMaintenanceController : ApiController
{
[Route("run")]
[HttpGet]
public IMaintenanceEventEntry DoMaintenance()
... |
echo "Setting up observer"
kubectl delete -f yaml/observer.yaml
kubectl apply -f yaml/observer.yaml
echo "Waiting for pods to ready..."
sleep 10
kubectl wait --for=condition=Ready pod --all -n kcontainer --timeout=20s
path=results/${1}
if [ ! -f ${path} ]; then mkdir -p ${path}; fi
echo "Results will be stored in ${pa... |
import java.io.{File, PrintWriter}
import org.apache.spark.ml.regression.LinearRegressionModel
import preprocess.PreProcessDataset
/**
* Common utils for the package.
*/
package object Utils {
val DatasetPath = "./dataset"
//val SavePath = "/D:";
//val SavePath = "./models"
var DefaultModel = "dt"
va... |
package wrapper
import external.vue.DirectiveFunction
import external.vue.DirectiveOptions
import external.vue.VNodeDirective
class VDirective : VNodeDirective
class VDirectiveOptions : DirectiveOptions {
fun bind(directiveFunction: DirectiveFunction) {
bind = directiveFunction
}
fun inserted(d... |
namespace DvsSapLink2
{
/// <summary>
/// Interaction logic for PrepareView.xaml
/// </summary>
public partial class PrepareView
{
public PrepareView()
{
this.InitializeComponent();
}
}
}
|
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:newz/models/sources.dart';
import 'package:newz/pages/News/bloc/channels_bloc.dart';
import 'package:newz/pages/News/component/filterChannel.dart';
import 'package:newz/pages/News/component/channelNewsList.dart';
im... |
#!/usr/local/bin/ruby -w
# Copyright (C) 2012 Kenichi Kamiya
puts ARGF.readlines.uniq |
removeAt :: Int -> [a] -> (a, [a])
removeAt 1 (x:xs) = (x, xs)
removeAt n (x:xs) = let (elem, ts) = removeAt (n - 1) xs
in (elem, x:ts)
|
package com.demanmath.dataandalgorithm.session
import com.demanmath.dataandalgorithm.base.ISolutionInterface
import com.demanmath.dataandalgorithm.data.linkedlist.ListNode
import java.lang.StringBuilder
/*
* @author demanmath
* @date 2020/9/17
输入一个链表,输出该链表中倒数第k个节点。为了符合大多数人的习惯,
* 本题从1开始计数,即链表的尾节点是倒数第1个节点。
* 例如,一... |
/*
* Properties.hh
*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_PROPERTIES_HH
#define _LOG4CPP_PROPERTIES_HH
#include "PortabilityImpl.hh"
#include <string>
#include <iostream>
#include <map>
namespace log4cpp {
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web.Compilation;
namespace RealPollSignalR
{
public class PluginAreaBootstrapper
{
public static readonly List<Assembly> PluginAssemblies = new List<Assembly>()... |
+++
title = "Advanced Compilers γ"
template = "home.html"
+++
# CS 6120: Advanced Compilers γ
**Instructor:** [Adrian Sampson][adrian]
**When:** Monday and Wednesday, 9:55am–10:05am
**Office hours:** by appointment (DM Adrian on [Zulip][] to find a time)
Read & [subscribe][rss] to our [course blog][blog]!
You can... |
using HyoutaTools.Tales.Vesperia.TSS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EndianUtils = HyoutaUtils.EndianUtils;
using NumberUtils = HyoutaUtils.NumberUtils;
namespace HyoutaTools.Tales.Vesperia.Credits {
public enum CreditsData {
Type = 0,
EntryNumber = 1,... |
const fs = require("fs")
const CJS = { type: "commonjs" }
const ESM = { type: "module" }
fs.writeFileSync("./dist/cjs/package.json", JSON.stringify(CJS))
fs.writeFileSync("./dist/esm/package.json", JSON.stringify(ESM)) |
## packageProfiles.js
Combines all profiles in the specified directory into a single bundle of profiles.
### Parameters
| Param | Description |
| ----- | ----------- |
| -d --directory | A directory to get each of the profiles from |
| -b --bundleFile | A file that represents a JSON bundle of all profiles that you wan... |
import paramiko
s = paramiko.SSHClient()
s.set_missing_host_key_policy(paramiko.AutoAddPolicy())
s.connect('192.168.0.22' ,22 ,'root' ,'fgoods.com')
stdin, stdout, stderr = s.exec_command ('date')
t1 = stdout.read().split(' ')
t1 = t1[4]
month = raw_input("Please Input you month(1~12) ")
if len(month) == 1:
month =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.