text stringlengths 27 775k |
|---|
package com.avito.k8s
import com.avito.android.Result
import com.avito.k8s.model.KubePod
import io.fabric8.kubernetes.api.model.apps.Deployment
public interface KubernetesApi {
public val namespace: String
public suspend fun deletePod(podName: String): Boolean
public suspend fun getPodLogs(podName: Str... |
---
layout: blog
title: Accelerating the journey to 1.0
author: nick
description: Version 1.0 is coming. Soon.
---
Our [roadmap to version 1.0](/blog/2017/07/17/roadmap-to-1-dot-0) was published
in July 2017. It described a set of themes we wanted to address within the project,
along with the functional items we decid... |
#! /bin/bash
set -o pipefail
set -o nounset
set -o errexit
export PATH=$PATH:.
BASEDIR="$HOME/basedir"
JDBC_HOST=127.0.0.1
JDBC_PORT=5432
JDBC_USERNAME=_owner
JDBC_PASSWD=welcome
JDBC_NAME=_database
envdir $BASEDIR/conf/env/test/test \
pg_select_now \
"${JDBC_HOST}" \
"${JDBC_PORT}" \
"... |
# -*- coding: UTF-8 -*-
from django.db import models
from apps.seguridad.models import Usuario, MotivoBloqueo
from apps.seguridad.audit import audit
@audit
class BloqueoLog(models.Model):
usuario = models.ForeignKey(Usuario)
motivo = models.ForeignKey(MotivoBloqueo)
fecha = models.DateField()
class M... |
(in-package #:sdl2)
(defvar *user-event-types* (make-hash-table))
(defvar *user-event-codes* (make-hash-table))
(defvar *user-events* (make-hash-table))
(defvar *user-event-id*
(c-let ((new-atomic sdl2-ffi:sdl-atomic-t))
(setf (new-atomic :value) 0)
new-atomic))
(defvar *event-loop* nil)
(defun new-event (&... |
package uk.gov.hmcts.reform.bulkscanprocessor.model.out;
import com.fasterxml.jackson.annotation.JsonProperty;
public class NonScannableItemResponse {
@JsonProperty("document_control_number")
public final String documentControlNumber;
@JsonProperty("item_type")
public final String itemType;
pub... |
<?php
use Simples\Error\SimplesRunTimeError;
use Simples\Kernel\App;
if (!function_exists('server')) {
/**
* @param string $index
* @return mixed
*/
function server(string $index)
{
return filter(INPUT_SERVER, $index);
}
}
if (!function_exists('post')) {
/**
* @param s... |
# Deploying a Conformance Pack Using the AWS Command Line Interface<a name="conformance-pack-cli"></a>
You can deploy, view, update, view compliance status, and delete an AWS Config conformance pack using the AWS Command Line Interface \(AWS CLI\)\.
To install the AWS CLI on your local machine see, [AWS Config Confor... |
require 'postageapp'
if (defined?(ActionMailer))
require 'postageapp/mailer'
end
module PostageApp::Rails
def self.initialize
PostageApp.configure do |config|
if (defined?(::Rails.version))
config.framework = "Rails #{::Rails.version}"
end
if (defined?(::Rails.root))
conf... |
import 'package:animated_card/animated_card.dart';
import 'package:flutter/material.dart';
import 'package:flutter_slidable/flutter_slidable.dart';
import 'package:payflow/modules/delete_boleto/delete_boleto_controller.dart';
import 'package:payflow/shared/auth/auth_controller.dart';
import 'package:payflow/shared/mode... |
package pers.hyy.butian.conf
import org.springframework.context.annotation.Configuration
import org.springframework.data.mongodb.config.AbstractMongoClientConfiguration
@Configuration
class SpringMongoConfig: AbstractMongoClientConfiguration() {
@Override
override fun autoIndexCreation(): Boolean {
r... |
import 'package:flutter/material.dart';
import 'package:flutter_jsonform/src/extensions/text_style_attribute.dart';
extension FromJson on InputDecoration {
InputDecoration fromJson(dynamic jsonDefinition) {
Map<String, dynamic> json = jsonDefinition;
var style = new InputDecoration();
if (json.containsK... |
class Order
class Item < ActiveRecord::Base
belongs_to :order
belongs_to :product
has_one :product_detail, through: :product
end
end
|
<div class="flex p-20">
<div class="flex-1"></div>
<div class="flex-1 bg-indigo-300 p-5 rounded">
<form wire:submit.prevent="sendLink">
<div class="mb-4">
<label class="font-bold block mb-1" for="email">Email</label>
<input
id="email"
... |
/// <reference path="../typings/browser.d.ts" />
/// <reference path="./app.config.ts" />
/// <reference path="./app.constant.ts" />
/// <reference path="./app.run.ts"/>
import * as myModule from './my-module/my.module';
import * as appConstants from './app.constant';
import * as appRun from './app.run';
import * as a... |
#!/bin/bash
# Copyright 2018 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.
# Fast fail the script on failures.
set -e
pushd packages/devtools
echo `pwd`
# Print out the Dart version in use.
dart --version
# Add globa... |
from YOUR_API_KEY import key
import requests
import logging
import sys
import os
"""
API request to the Google Maps API
Imputs:
API key
"""
# logger = logging.getLogger(__name__)
# logger.setLevel(logging.DEBUG)
# formatter = logging.Formatter('%(levelname)s:%(name)s:%(message)s')
# file_handler... |
augment class Iterable {
# N.B.: methods defined in src/builtins/Iterable.pir
# .item
multi method Numeric() { $.elems.Int }
multi method Int() { $.elems.Int }
multi method Num() { $.elems.Num }
multi method Str() { $.list.Str }
multi method elems() { $.list.elems }
multi metho... |
import { Bytes } from '@cryptoeconomicslab/primitives'
import { Decision } from '../types'
import { DeciderManagerInterface } from '../DeciderManager'
export interface Decider {
decide(
manager: DeciderManagerInterface,
inputs: Bytes[],
substitutions: { [key: string]: Bytes }
): Promise<Decision>
}
|
import type { Size, AttributeCollection } from "./models/";
import "./PinkKoala.css";
export declare type PinkKoalaProps = {
drawing: any;
drawingProps: AttributeCollection | null;
layers: string[];
size: Size;
};
export declare const PinkKoala: (props: PinkKoalaProps) => JSX.Element;
|
package creg
package experiment
import scala.reflect.macros.blackbox.Context
import scala.language.experimental.macros
import scala.annotation.StaticAnnotation
private[experiment]
class defData extends StaticAnnotation {
def macroTransform(annottees: Any*): Any = macro defData.impl
}
private[experiment]
object def... |
# TypeScript & NodeJS
- [Setup](#setup)
- [Testing](#testing)
- [Resources](#resources)
## Setup
- `npm install typescript @types/node --save-dev`
- `tsc --init`
### `tsconfig.json`
```json
{
"compilerOptions": {
"target": "es5",
"lib": ["es2015"],
"rootDir": "src",
"outDir": "dist",
"module"... |
package de.loc.input;
import com.badlogic.ashley.core.Component;
public class ClickableComponent implements Component {
public boolean clicked = false;
public boolean marked = false;
}
|
using UnityEngine;
using System.Collections;
public class eatPlayer : MonoBehaviour {
public static bool killed = false;
private Transform player;
public Transform mouth;
Animator anim;
private Vector3 eatpos;
void Start() {
player = GameObject.FindGameObjectWithTag("Player").transform;
anim = GetComponen... |
# quic-uhip-analytics
QUIC project to analyse UHIP data.
The program takes spreadsheet of data and analyses the data.
This project is made specifically for Queen's University International Centre and their style of data.
|
package mmorihiro.matchland.controller
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.math.Interpolation
import com.badlogic.gdx.scenes.scene2d.actions.Actions
import com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeIn
import com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeOut
import com.badlogi... |
# dotnet-bluetooth-weight
Read the numbers of electronic balance via bluetooth.
#How to run
1. git clone https://github.com/souws/dotnet-bluetooth-weight
or
git clone git@github.com:souws/dotnet-bluetooth-weight.git
2. cd to dotnet-bluetooth-weight\BleBalanceReader\BleBalanceReader
3. dotnet run --project... |
use super::super::io::Sink;
use super::super::iter::Iterator;
use super::super::ptr;
use super::libc;
use super::OSError;
pub fn read(fd: i32, buf: *mut u8, count: usize) -> Result<usize, OSError> {
let mut length = 0;
let mut ptr = buf;
while length < count {
let size = unsafe { libc::read(fd, pt... |
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:wallpaperplugin/wallpaperplugin.dart';
import 'package:dio/dio.dart';
import 'package:path_provider/path_provider.dart';
import 'package:permission_handler/permission_handler.dart';
v... |
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
import { webhooksActions } from '../features/webhooks';
import { Webhook, WebhookRequest, WebhookRequestCoreInfo, WebhookWithDetails } from '../types';
import { webhookRequestActions }... |
# Spyfall
## About
Spyfall is a party game that never fails to entertain. Gather your friends and
enter a mysterious location, known to all, except one spy, who lurks among you,
hidden. Find the spy before they figure out where you are all located, before
time is up!
## Contributors
This project uses TypeScript, so... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Sock;
class SockController extends Controller
{
public function index()
{
return view('index');
}
public function about()
{
return view('about');
}
public function testmonial()
{
... |
import { Forest } from '../forest';
async function runTests () {
const forest = new Forest('nico@haenggi.ch', 'lpic11lpic11', null, null, 'http://localhost:8888');
await forest.login();
const plants = await forest.getAllPlantsSince(new Date().getTime() - 1000*60*60*24*30);
console.log(plants);
}
runTests(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlueLotus.ObjMas.Model
{
public class ObjMasModel
{
/*
ObjKy, PrntKy, ObjNm, ObjCaptn, ToolTip, UsrObjKy, Prnt2Ky,
DefaultValue, isFreeze, isEnable, Alignmen... |
package x64.directives;
/** Uses a label to be used as the target of jumps, calls, and offsets. */
public class LabelInstruction extends Directive {
public LabelInstruction(String name) {
super(name + ":");
}
}
|
### A Pluto.jl notebook ###
# v0.12.7
using Markdown
using InteractiveUtils
# ╔═╡ 6fd616f6-1ea1-11eb-3814-8bfb4a096c49
using Pkg, DrWatson
# ╔═╡ 6ffe2628-1ea1-11eb-24ea-57f985146a72
begin
@quickactivate "StatisticsWithJuliaPlutoNotebooks"
using DataFrames
using HCubature
end;
# ╔═╡ ed174bc4-1ea0-11eb-1e2f-a32874... |
import { Pipe, PipeTransform } from '@angular/core';
import { Player } from './player.model';
@Pipe({
name: 'positionFilter',
})
export class PositionFilterPipe implements PipeTransform {
transform(input: Player[], filterByPosition) {
var output: Player[] = [];
if(filterByPosition === "Jammer") {
for... |
<?php
namespace Tests\Unit\Flare\Values;
use App\Flare\Values\ItemEffectsValue;
use App\Flare\Values\ItemUsabilityType;
use App\Flare\Values\MaxCurrenciesValue;
use App\Flare\Values\NpcCommandTypes;
use App\Flare\Values\NpcTypes;
use Tests\TestCase;
class NpcCommandTypesTest extends TestCase {
public function t... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the License.txt file in the project root for full license information.
namespace Microsoft.AspNet.WebFormsDependencyInjection.Unity
{
using System;
using System.Web;
using global::Unity;
/// <summary>
... |
---
speaker: Sruthi Sekar (IISc Mathematics)
title: "Near-Optimal Non-malleable Codes and Leakage Resilient Secret Sharing Schemes"
date: 9 August, 2021
time: 2 pm
venue: Microsoft Teams (online)
series: Thesis
series-prefix: PhD
series-suffix: colloquium
---
Non-malleable codes (NMCs) are coding schemes that help in ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Restaurant;
use App\Type;
use App\Dish;
class RestaurantController extends Controller
{
public function show($id) {
// QUERY per trovare il ristorante di cui mi passo l'id come parametro
$restaurant = Restaurant::where('id', $id)->f... |
module Devbot.List
( runList
) where
import Data.List (intercalate, sort)
import Devbot.Internal.Common
import Devbot.Internal.Display
import Devbot.Event.Config (Config (..), Data (..), Event (..))
import qualified Devbot.Event.Config as E
impor... |
import React, { Component } from 'react';
import {
Text,
View,
StyleSheet,
TouchableOpacity,
Image,
ImageBackground,
StatusBar,
SafeAreaView,
Platform,
} from 'react-native';
export default class HomeScreen extends Component {
constructor(props) {
super(props);
this.state = {};
}
rende... |
import { useRecoilValue } from 'recoil'
import { initialStep } from 'lib/state/booking-flow/types'
import { useEffect } from 'react'
import { useRouter } from 'next/router'
import flowStepState, { useFlowStep } from 'lib/state/booking-flow'
import { getStepFromPath } from 'lib/utils/stepUtils'
import { useCartDataLoade... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using TerribleBankInc.Models.Enums;
namespace TerribleBankInc.Models.ViewModels
{
public class BankTransactionViewModel
{
[Required]
public int SourceClientId { get; set; }
... |
package exercises.ch04
object Ex04 {
def sequence[A](a: List[Option[A]]): Option[List[A]] = {
val newList = a.flatMap(a => a match {
case None => List();
case Some(aa) => List(aa)
})
if (newList.size < a.size) None else Some(newList)
}
def main(args: Array[String]): Unit = {
println... |
from rest_framework.generics import get_object_or_404
from django.http import HttpRequest
import access
from access.resources import Resources
from api.endpoint.project import ProjectPermission, ProjectResourceEndpoint
from db.models.jobs import Job
class JobEndpoint(ProjectResourceEndpoint):
queryset = Job.ob... |
<?php
declare(strict_types=1);
/**
* This file is part of the Invo.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Invo\Plugins;
use Phalcon\Acl\Adapter\Memory as AclList;
use Ph... |
#!/bin/bash
# Reset mmt-probe
WORKSPACE=/home/montimage/workspace
PUBLIC_PATH=$WORKSPACE/express-server/public/sdk
SRC=$WORKSPACE/montimage/mmt-sdk
TOHTML=$WORKSPACE/montimage/mmt-test/pythons/cppcheck2html.py
cd $SRC/
cppcheck --xml src/* 2> cppcheck_output.xml
mkdir -p cppcheck_$1
python $TOHTML --file=cppcheck_outpu... |
require 'spec_helper'
describe "The super keyword" do
it "should return s(:zsuper) when no arguments or parans" do
opal_parse("super").should == [:zsuper]
end
it "should return s(:super) for any arguments" do
opal_parse("super 1").should == [:super, [:lit, 1]]
opal_parse("super 1, 2").should == [:su... |
---
layout: default
---
Some [examples](math_prog) of mathematical programming.
[Some](http://vlmeg.eu3.biz/#) of my photos.
<!---
[Some](vlmeg.eu3.biz) of my photos.
--->
<!---
[...](test)
--->
<!---
Check here original theme
https://github.com/pages-themes/cayman#usage
--->
|
import 'package:flutter/material.dart';
import 'package:hacktoberfest_flutter/animations/bottom_animation.dart';
import 'package:hacktoberfest_flutter/util/restart_app.dart';
import 'package:hacktoberfest_flutter/widgets/custom_listTile.dart';
class Contributor extends StatelessWidget {
// Add your Full Name in this... |
'use strict';
require('../common');
// This test ensures that `addRequest`'s Legacy API accepts `localAddress`
// correctly instead of accepting `path`.
// https://github.com/nodejs/node/issues/5051
const assert = require('assert');
const agent = require('http').globalAgent;
// Small stub just so we can call addRequ... |
2020年10月19日17时数据
Status: 200
1.王祖蓝女儿2岁身高
微博热度:4291891
2.酸汤子中毒事件唯一幸存者去世
微博热度:2136231
3.佟丽娅被儿子嫌弃太瘦了
微博热度:2034054
4.倪妮锁骨
微博热度:1646581
5.韩国韵达
微博热度:1570642
6.微博电商直播
微博热度:1295152
7.酒店称未开除与辛巴起冲突保安
微博热度:783526
8.湖人创始人去世
微博热度:593376
9.中国驻斐济使馆回应
微博热度:567709
10.张若昀瘦了
微博热度:567425
11.四川一娃娃机里现真娃娃
微博热度:566736
1... |
package io.jenkins.plugins.analysis.core.history;
import java.util.Optional;
import io.jenkins.plugins.analysis.core.views.ResultAction;
import hudson.model.Run;
/**
* Selects a {@link ResultAction} from all registered actions in a given job.
*
* @author Ullrich Hafner
*/
public interface ResultSelector {
/... |
@TestOn('browser')
import 'package:test/test.dart';
import 'package:angular/src/security/dom_sanitization_service.dart';
import 'package:angular/src/security/dom_sanitization_service_impl.dart';
void main() {
final DomSanitizationService sanitizer = DomSanitizationServiceImpl();
const safeHtml = '<p>poodle power</... |
const { h, Component } = require('preact');
const styles = require('./scss/canvas.scss');
class aniCanvas extends Component {
render(props) {
return (
<canvas className={animationCanvas}></canvas>
);
}
}
module.exports = aniCanvas; |
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#define TV_FUNC_DEBUG
#define TV_FUNC_DEBUG_VERBOSE
#include <mtvmtl/core/data.hpp>
#include <mtvmtl/core/functional.hpp>
#include <vpp/vpp.hh>
#include <vpp/utils/opencv_bridge.hh>
int main(int argc, const char *argv[])
{
using namespace tvmtl;
Eigen::... |
#include <stdio.h>
#include <time.h>
int main (void)
{
time_t t0;
int i = 7;
int y;
t0 = time(NULL);
while (i > 0) {
i--;
y = 0xFFFFFFF;
while (y > 0)
y--;
}
printf("Executed in %lf seconds.\n", difftime(time(NULL), t0));
return 0;
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharpGL
{
/// <summary>
///
/// </summary>
public class TexStorage3D : TexStorageBase
{
private int width;
private int height;
private int depth;
internal static reado... |
# impala-client
请求 impala 并返回数据以表格形式显示
|
<?php
namespace Dykyi\CommandBus\Handler;
use Dykyi\CommandBus\Command\BuildRouteCommand;
use Dykyi\Response\ResponseFactory;
use Dykyi\Services\CardService\CardRequest;
use Dykyi\Services\CardService\CardService;
use Dykyi\Services\CardService\Clients\InMemoryCardClient;
use Dykyi\Services\CardService\Repository\InM... |
<?php
namespace Flow\Node;
use Flow\Node;
final class ForNode extends Node
{
private $seq;
private $key;
private $value;
private $body;
private $else;
public function __construct($seq, $key, $value, $body, $else, $line)
{
parent::__construct($line);
$this->seq = $seq;
... |
#ifndef JUDYLARRAY_H
#define JUDYLARRAY_H
/****************************************************************************//**
* \file judyLArray.h C++ wrapper for judyL array implementation
*
* A judyL array maps JudyKey's to corresponding memory cells, each containing
* a JudyValue. Each cell must be set to a non-zero ... |
<?php
session_start();
if(isset($_SESSION['username']))
{
include 'connectdb2.php';
$dispCategory = mysqli_real_escape_string($conn,$_GET['id']);
$querys = "SELECT * FROM volunteers WHERE category =?";
$st = mysqli_prepare($conn,$querys);
mysqli_stmt_bind_param($... |
package main
import (
"fmt"
"io"
"log"
"os"
"path/filepath"
"strings"
"github.com/hpcloud/tail"
stan "github.com/nats-io/go-nats-streaming"
)
func getEnv(key, fallback string) string {
value, exists := os.LookupEnv(key)
if !exists {
value = fallback
}
return value
}
func connectionCloser(c io.Closer) ... |
export type BadgeModifiers = "pill" | "filled";
export type BadgeTypes = "success" | "warning" | "error";
export type BadgeProps = {
className?: string;
customStyles?: { [x: string]: any };
disableStyles?: boolean;
modifier?: BadgeModifiers;
type?: BadgeTypes;
} & { [x: string]: any };
declare con... |
#!/bin/bash
psql
createuser --createdb --no-createrole --no-superuser --no-password openhrms
exit |
import { styled } from "@styles";
import { keyframes } from "styled-components";
import { getContentWindowHeight } from "@utils/styles";
const firstItem = keyframes`
0% {
left: 0;
}
12.5% {
left: 2rem;
}
25% {
left: 4rem;
}
37.5% {
left: 2rem;
}
50% {
left: 0;
}
100% {
le... |
cpio
===
用来建立、还原备份档的工具程序
## 补充说明
**cpio命令** 主要是用来建立或者还原备份档的工具程序,cpio命令可以复制文件到归档包中,或者从归档包中复制文件。
### 语法
```shell
cpio(选项)
```
### 选项
```shell
-0或--null:接受新增列控制字符,通常配合find指令的“-print0”参数使用;
-a或--rest-access-time:重新设置文件的存取时间;
-A或--append:附加到已存在的备份文档中,且这个备份文档必须存放在磁盘上,而不能放置于磁带机里;
-b或--awap:此参数的效果和同时指定“-ss”参数相同;
-B:将输... |
import { fromJS } from 'immutable';
import * as Actions from './actions';
const initialState = fromJS({
todos: [],
});
export default function todoReducer(state = initialState, action) {
let todoIndex;
switch(action.type){
case Actions.ADD_TODO:
return state.update('todos', (todos) => todos.push(fromJ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.Background;
namespace NittyGritty.Uwp.Activation.Operations
{
public abstract class BackgroundTask
{
public BackgroundTask(string name = null)
{
... |
/**
* Copyright (c) 2011-2016, James Zhan 詹波 (jfinal@126.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... |
# f_shake_animation_widget
原作者: https://pub.dev/packages/shake_animation_widget
## Getting Started
shake_animation_widget 空安全版本
### 抖动Widget: ShakeAnimationWidget
```dart
/// 抖动动画控制器
final ShakeAnimationController _shakeAnimationController =
ShakeAnimationController();
/// 构建抖动效果
ShakeAnimationWidget buildShakeA... |
#include <ssm_lht_ref.h>
int ssm_lht_cmp(void *va, void *vb)
{
ssm_lhtcmp a = va;
ssm_lhtcmp b = vb;
return memcmp(a->key, b, a->len);
}
|
<?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link https://phpdoc.org
*/
namespace phpDocumentor\Compiler\Linker;
use phpDocumentor\Compiler\CompilerP... |
#!/usr/bin/env python
from urllib.parse import urljoin
import httpretty
import os
import unittest
# import urlparse
import ari
import requests
class AriTestCase(unittest.TestCase):
"""Base class for mock ARI server.
"""
BASE_URL = "http://ari.py/ari"
def setUp(self):
"""Setup httpretty; cre... |
alias Euler
alias zerosd (reg) {
pxor reg, reg
}
alias reset () {
mov count, len
mov psrc, src
mov pdst, dst
alias zerosd (temp1)
}
Euler:
alias [linux] {
alias src, rdi
alias dst, rsi
alias len, edx
}
alias [windows] {
alias src, rcx
alias dst, rdx
alias len, r8d
}
alias EulerCount, xmm0
... |
# Docker Essentials Image
A Docker image with essential tooling for development and CI/CD.
## Installed Packages
- bash
- gawk
- sed
- grep
- bc
- coreutils
- openssh-client
- curl
- rsync
- ncftp
- git
|
<?php
// * @copyright OPENCART.PRO 2011 - 2017.
// * @forum http://forum.opencart.pro
// * @source See SOURCE.txt for source and other copyright.
// * @license GNU General Public License version 3; see LICENSE.txt
class ControllerExtensionModuleGoogleHangouts extends Controller {
public function index() {
$this->l... |
class Streams::ParentChild::LinksProcessor
def self.update_parent_and_sort_siblings(edition, parent_warehouse_id)
new(edition, parent_warehouse_id).update_parent_and_sort_siblings
end
def initialize(edition, parent_warehouse_id)
@edition = edition
@parent_warehouse_id = parent_warehouse_id
end
d... |
package com.github.roarappstudio.btkontroller.reports
import kotlin.experimental.and
import kotlin.experimental.or
@Suppress("EXPERIMENTAL_FEATURE_WARNING")
inline class ScrollableTrackpadMouseReport (
val bytes: ByteArray = ByteArray(7) {0}
) {
var leftButton: Boolean
get() = by... |
import logging
import os
import subprocess
import urllib.request
UNIT_FILE_PAYLOAD = """\
[Unit]
Description=C Camera Recorder Service
StartLimitInterval=400
StartLimitBurst=5
[Service]
Type=simple
ExecStart=/usr/local/bin/ccam
Restart=always
RestartSec=30
WatchdogSec=60
KillMode=process
User=pi
Group=pi
[Install]
Wan... |
# Scatterplot Charts
Basic Scatterplot Chart
```javascript
render() {
let data = [
[{
"title": "Amapá",
"rating": 4.47,
"episode": 0
}, {
"title": "Santa Catarina",
"rating": 3.3,
"episode": 1
}, {
"title": "Minas Gerais",
"rating": 6.46,
"episode": 2... |
package org.jetbrains.plugins.scala.lang.structureView.element
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.psi.PsiElement
import org.jetbrains.plugins.scala.lang.psi.api.statements.ScExtension
import org.jetbrains.plugins.scala.lang.psi.api.statements.params.ScParameterClause
import... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EquipmentManagement.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
namespace EquipmentManagement.Controllers
{
public class AutoClaveR... |
package cc.uncarbon.framework.rocketmq.core.serializer;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
/**
* 基于 Jackson JSON 的 MQ Message 序列化器
*
* @author Uncarbon
*/
@Slf4j
public class ... |
/*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.tools.nsc.symtab... |
<?php
namespace Admingenerator\GeneratorBundle\Builder\Admin;
use Admingenerator\GeneratorBundle\Generator\Column;
use Admingenerator\GeneratorBundle\Generator\Action;
use Admingenerator\GeneratorBundle\Generator\Action\Generic\ExcelAction;
/**
* This builder generates php for list actions
*
* @author cedric Lomb... |
package io.vaan.asare
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.http.request._
import scala.concurrent.duration._
import scala.util.Random
class LoadSimulation extends Simulation {
import LoadSimulation.genRebalanceV3Request
val users = System.getProperty("users", "1").... |
package slogo.exceptions;
import slogo.visualcontroller.ErrorSeverity;
/**
* Exception is thrown when there is an Invalid XML Configuration file, for configuring aesthetics.
* @author Alex Xu
*/
public class InvalidXMLConfigException extends LogicalException {
private static final String message = "Could not ... |
# Represents a path in an SVG drawing
class Plottr::Path < Plottr::Object
tag_type "path"
attr_accessor :d, :fill, :stroke
options :d, :fill, :stroke
def initialize(hsh={})
self.d = ""
super(hsh)
end
def origin= p
self.d = "M#{p[0]},#{p[1]}"
end
def line p
self.d += " L#{p[0]},#{p[1]... |
/*
* MIT License
*
* Copyright (c) 2020-2021 KhoaTran Programmer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
using Common;
namespace Server.Services
{
class PingService : IServiceModule
{
public string AnswerCommand(string command) => Ping.Pong(command);
}
}
|
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
internal class MoveBackTest {
// 延迟初始化属性与变量
lateinit var area: Area
@BeforeEach
fun setUp()... |
/* eslint-disable semi */
/* eslint-disable fp/no-unused-expression */
/* eslint-disable no-magic-numbers */
import { describe, it } from 'mocha'
import { expect } from 'chai'
// eslint-disable-next-line sort-imports
import { BitSmush } from '@johntalton/bitsmush'
describe('BitSmush', () => {
describe('#smushBits',... |
#include "astar.hpp"
#include <iostream>
#include <vector>
#include <ctime>
/**
* @brief A 2D node.
*/
struct Node : public astar::Neighbour<Node *>
{
Node(int x, int y, bool accesable)
: x_(x), y_(y), accesable_(accesable), path_(false)
{
}
int x_;
int y_;
bool accesable_;
bool... |
package com.pointr.tcp.util
//import org.json4s.DefaultFormats
//import org.json4s._
//import org.json4s.jackson.Serialization
//import org.json4s.jackson.Serialization.read
//import org.json4s.native.JsonMethods._
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFact... |
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE
*/
import { type ComputedRef, type Ref, computed } from 'vue'
import { type VKey } from '@idux/cdk/utils'
import { type TablePagination, type... |
<?php
return [
"client" => "http://localhost",
"port" => "8000"
]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.