text stringlengths 27 775k |
|---|
import * as React from "react";
import { parseFileRenameFormat } from "@/lib/context";
import { GameStartType } from "@vinceau/slp-realtime";
export const TemplatePreview: React.FC<{
template: string;
settings?: GameStartType,
metadata?: any,
}> = (props) => {
const parsedTemplate = parseFileRenameFor... |
# Xous Text to Speech Backend
API for Text-to-speech backends on Xous. Third party executables for TTS
that comply to this API can be used by Xous for doing text to speech
operations.
|
package akkeeper.common
private[akkeeper] object CliArguments {
val AkkeeperJarArg = "akkeeperJar"
val InstanceIdArg = "instanceId"
val AppIdArg = "appId"
val ConfigArg = "config"
val MasterAddressArg = "masterAddress"
val ActorLaunchContextsArg = "actorLaunchContexts"
val PrincipalArg = "principal"
}
|
public class HelloWorld{
HelloWorld(){
System.out.println("constructor added");
}
public static void main(){
System.out.println("Hello, Git");
}
public int subtract(int a , int b){
return a-b;
}
}
|
# Deep Gradient Compression [[arXiv]](https://arxiv.org/pdf/1712.01887.pdf)
```
@inproceedings{lin2018dgc,
title={{Deep Gradient Compression: Reducing the communication bandwidth for distributed training}},
author={Lin, Yujun and Han, Song and Mao, Huizi and Wang, Yu and Dally, William J},
booktitle={The Interna... |
package cmd
import "testing"
func Test_getS3Cse(t *testing.T) {
type args struct {
s3bucket string
s3object string
filedest string
}
tests := []struct {
name string
args args
wantErr bool
}{
{"Fail on garbage input", args{"nosuchbucket", "nosuchobject", "notafile"}, true},
}
for _, tt := ran... |
# frozen_string_literal: true
module ClickHouse
module Middleware
autoload :Logging, 'click_house/middleware/logging'
autoload :ParseCsv, 'click_house/middleware/parse_csv'
autoload :RaiseError, 'click_house/middleware/raise_error'
end
end
|
TQUEUE
==========
Time Delay Circular Queue Service, Base On Tornado Web Framework
Reference
------------
* Base On https://github.com/bufferx/tornado_webserver_demo
Usage
------------
* cd ./src/www/
* python service.py -env=debug
Test
------------
* http://localhost:8000/sayhi?name=bufferx
Requirements
--------... |
# ansible-files
Repo to place all ansible works
## How to run ?
```
ansible-playbook simplify/hjson2json.yml -e "input_file='/tmp/sample.hjson'" -e "output_file='/tmp/sample.json'
```
|
const assert = require("assert")
const geography = require("../../../sources/_lib/geography/index.js")
const maintainers = require("../../../sources/_lib/maintainers.js")
const parse = require("../../../sources/_lib/parse.js")
const transform = require("../../../sources/_lib/transform.js")
const _counties = [
"Adair... |
package skuber.apiextensions
import play.api.libs.functional.syntax.unlift
import play.api.libs.json.{JsPath, JsResult, JsSuccess, JsValue}
import skuber.ResourceSpecification.StatusSubresource
import skuber.{NonCoreResourceSpecification, ObjectEditor, ObjectMeta, ObjectResource, ResourceDefinition, ResourceSpecificat... |
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace Studio.JZY.Doc {
public partial cla... |
import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBookmark(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M34 6H14c-2.21 0-3.98 1.79-3.98 4L10 42l14-6 14 6V10c0-2.21-1.79-4-4-4z" />
</IconBase>
);
}
export default MdBookmark;
|
// Simple compiler test.
public final class Where implements support.Waldo
{
int WhereIsWaldo ()
{
// The compiler should find 'here' in support.Waldo.
return here;
}
}
|
import java.util.{Arrays, Properties}
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.apache.kafka.clients.producer.{KafkaProducer, ProducerRecord}
import org.apache.spark.streaming.kafka010.{ConsumerStrategies, KafkaUtils, LocationStrategies}
import org.apache.spark.streaming.{Seconds, StreamingCon... |
#![no_std]
/**
Copyright (c) 2020, Todd Stellanova
All rights reserved.
License: See LICENSE file
*/
// use chrono::{DateTime, FixedOffset, TimeZone};
mod fetcher;
// use fetcher::FileFetcher;
pub mod metadata;
use metadata::SignatureMethod;
use crate::metadata::{KeyContainer, SignatureContainer, MetadataFormat};
... |
package in.parsel.pvr.model;
import java.util.List;
/**
* Created by patch on 22/03/15.
*/
public class BaseOutput {
public static final String SUC_RESP_CODE = "1000";
public static final String FAL_RESP_CODE = "1001";
public static final String LOGIN_REQUIRED = "1002";
private String responseCode... |
function enviarDatos(document) {
var nombre = document.getElementById("nombre").value;
$.ajaxSetup({
headers:{
'X-CSRF-TOKEN':$('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
method: "POST",
url: "{{route('agregarorigen.index')}}",
data: {no... |
export class Errors {
public static ErrorMessages = {
INVALID_PASSWORD: 'Password is invalid',
INVALID_EMAIL: 'Provided email is invalid',
INVALID_ACCESS: 'Invalid Access',
INVALID_TOKEN: 'Invalid Token',
USER_NOT_FOUND: 'User not found',
USER_EXISTS: 'User already exists',
};
}
|
package config
import (
"github.com/akmamun/gin-boilerplate-examples/pkg/logger"
"github.com/spf13/viper"
)
type Configuration struct {
Server ServerConfiguration
Database DatabaseConfiguration
}
// SetupConfig configuration
func SetupConfig() error {
var configuration *Configuration
viper.SetConfigFile(".e... |
package com.example.internal.dummyRealization
import com.example.*
import com.example.models.ChatMessage
import com.example.models.SendMessageRequest
import java.util.*
class InMemoryMessageStorage(private val userStorage: UserStorage) : MessageStorage {
private val storage = hashMapOf<Participants, MutableList<Cha... |
################################################################################
## UTILITIES
################################################################################
function exec($cmd) {
& $cmd
if ($lastexitcode -ne 0) {
exit 1
}
}
#######################################################... |
using System.Text;
namespace Zektor.Protocol {
public abstract class ZektorControlCommand : ZektorCommand {
protected abstract string Command { get; }
public bool IsQueryResponse { get; protected set; }
public bool IsQueryRequest { protected get; set; }
protected override bool Par... |
#include <iostream>
#include <algorithm>
#include "spell.hpp"
namespace GitGud
{
bool SpellChecker::initSpellChecker(const std::string &aff, const std::string &dic)
{
if (m_initialised)
return false;
m_spell = new Hunspell(aff.c_str(), dic.c_str());
// std::cout << "Initialised spell checker"... |
#!/bin/bash
[[ $(id -u) = "0" ]] || { echo "Please run the script as root user. sudo $0"; exit; }
# Install dependencies
apt-get -y install python3 python3-rpi.gpio python3-serial apache2 apache2-utils libapache2-mod-wsgi-py3
# Enable module wsgi
a2enmod wsgi
# Copy api folder to /var/www/ (don't put it under html ... |
package org.community.scheduler.service.impl;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.community.scheduler.entity.TextEntity;
import org.community.scheduler.repository.api.ITextRepository;
import org.community.scheduler.service.api.ITextSe... |
#!/usr/bin/env bash
function suman_trap_and_kill_child_jobs {
trap 'jobs -p | xargs kill -9' SIGINT SIGTERM EXIT
}
|
-- 2021-03-11T14:27:57.620Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET DefaultValue='', IsMandatory='N',Updated=TO_TIMESTAMP('2021-03-11 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=573001
;
-- 2021-03-11T14:28:00.859Z
-- I forgot to set the DICTIONARY... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GalaxyGen.Model
{
public enum TypeEnum
{
Planet,
Ship,
Agent
}
}
|
/*
* keyring_overlay.go
*
* Copyright 2018-2021 Bill Zissimopoulos
*/
/*
* This file is part of golib.
*
* It is licensed under the MIT license. The full license text can be found
* in the License.txt file at the root of this project.
*/
package keyring
import (
"fmt"
"sync"
"github.com/billziss-gh/golib... |
$scriptPath = Split-Path $MyInvocation.MyCommand.Path -Parent
Import-Module (Join-Path $scriptPath 'out\module\TfsCmdlets.psd1')
Get-Module TfsCmdlets |
---
path: /carmodels
carimage: /img/bmw.jpg
title: BMW
text: >-
Bayerische Motoren Werke AG (FWB: BMW ) (BMW) er en tysk bil-, motorcykel- og
motorfabrikant som er grundlagt i 1916. BMW har hovedsæde i München, Tyskland.
Koncernen ejer også Minibilmærket og er moderselskab til Rolls-Royce Motor.
---
|
package hclu.hreg.dao
import java.util.UUID
import hclu.hreg.dao.sql.SqlDatabase
case class DocRecipient(docId: UUID, recipientId: UUID)
trait SqlDocRecipientSchema extends SqlContactSchema {
this: SqlDocSchema =>
protected val database: SqlDatabase
import database.driver.api._
protected val DocRecipien... |
import Vue from 'vue'
import MyTestableComponent from 'src/components/MyTestableComponent'
function getRenderedText (Component, propsData) {
const Ctor = Vue.extend(Component)
const vm = new Ctor({ propsData }).$mount()
return vm.$el.textContent
}
const component = new Vue(MyTestableComponent)
describe('MyTest... |
module Spree
module Admin
module OrdersControllerDecorator
def index
if params.dig(:q, :delivery_date_gt).present?
params[:q][:delivery_date_gt] = begin
parse_date_param(:delivery_date_gt).beginning_of_day
... |
import 'package:interactivesso_backendcore/interactivesso_backendcore.dart';
void main() {
print('example!');
}
|
#include "CameraMap.hpp"
#include "Stonk/OpenGl.hpp"
using Shay::CameraMap;
/**
* @brief Displays a map of murdoch with a pointer showing the player position
* @param screenWidth The current width of the screen
* @param screenHeight The current height of the screen
* @param xPos The x position of the player
* ... |
<?php
require_once "../setup.php";
init('../');
session_start();
if(!isset($_SESSION["rr_admin"]) || !$_SESSION["rr_admin"]){
header('Location: login.php');
exit();
}
echo '<html><head><meta name="viewport" content="width=device-width, initial-scale=1"></head><body>';
echo '<style>table {border-collaps... |
<?php namespace App\Commands;
use App\Image\Image;
use App\Commands\Command;
use App\Image\ImageRepositoryInterface;
Use Intervention\Image\Facades\Image as IntervetionImage;
use Illuminate\Contracts\Bus\SelfHandling;
class UploadImageCommand extends Command implements SelfHandling {
/**
* @var
*/
... |
/*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1 - MANTIS
Source Server Version : 50621
Source Host : 127.0.0.1:3306
Source Database : todoapp
Target Server Type : MYSQL
Target Server Version : 50621
File Encoding : 65001
Date: 2018-04-12 15:34:15
*/
SET FOREIGN_KEY_CHECKS... |
package muxes
import scala.math._
import chisel3._
import chisel3.Module
import chipsalliance.rocketchip.config._
import dandelion.config._
import util._
import dandelion.interfaces._
class TestMux(NReads: Int)(implicit val p: Parameters) extends Module with HasAccelParams {
val io = IO(new Bundle {
val ReadIn... |
# Tuning Component Settings
Helm Charts are a set of Kubernetes manifests that reflect best practices to deploy an application
or service. Helm is heavily influenced by [Homebrew](http://brew.sh/), including the
[formula model](https://github.com/Homebrew/homebrew-core). A Helm chart is to Helm as a Formula
is to Home... |
//! Module for all bucket aggregations.
//!
//! BucketAggregations create buckets of documents
//! [BucketAggregation](super::agg_req::BucketAggregation).
//!
//! Results of final buckets are [BucketResult](super::agg_result::BucketResult).
//! Results of intermediate buckets are
//! [IntermediateBucketResult](super::i... |
# Space Shooter #
## This is a simple 2D, console based space shooter made in c++ ##
### NOTE: This is only windows compatible ###
## ConsoleGameEngine ##
This code manages the console using windows.h
It has functions
* OnUserCreate() - called at the start of the program;
* OnUserUpdate() - called every cycle;
* O... |
import Template from './template.vue'
import { Component, Prop, Vue, Watch } from 'vue-property-decorator'
import {
evalutateTypeField,
fieldIsDisplayed
} from '../../utils/DictionaryUtils'
import { PanelContextType } from '../../utils/DictionaryUtils/ContextMenuType'
import {
IFieldReferencesType
} from '../../u... |
<#
.SYNOPSIS
Add proxy addresses to contacts in Office 365 for a list of Exchange contact.
.DESCRIPTION
Connect to Office 365
cd to working directory (import csv should be in working location and it will create the output file in this location.)
map input csv to fields
#>
$ContactListPath = "contacts.csv"
$OutputPat... |
jQuery.fn.outerHTML = function() {
return jQuery('<div />').append(this.eq(0).clone()).html();
};
var timestampToTimeString = function(timestamp) {
timestamp = Math.floor(timestamp);
var date = new Date(timestamp);
var hours = date.getHours();
var minutes = date.getMinutes();
minutes = minutes < 10 ? '0'+minutes... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Carbon\Carbon;
class Task extends Model
{
use SoftDeletes;
protected $fillable = [
'item',
'due_date',
'is_completed',
'owner_id'
];
public function owner()... |
package paperdoll.scalaz
import scalaz.Functor
import scalaz.OptionT
import paperdoll.core.effect.Effects
import scalaz.std.option._
import paperdoll.core.layer.Layer
import paperdoll.std.Option_
object OptionTLayer {
def sendOptionT[F[_]: Functor, A](ot: OptionT[F, A]): Effects.Two[Layer.Aux[F], Option_, A] =
... |
/**
* Copyright (C) 2017 Microbeans Software Jürgen Röder.
*
* 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... |
#!/usr/bin/env perl -w
use strict;
use XML::Simple;
use WWW::Curl::Easy;
use IO::Uncompress::Gunzip;
my %packages = (
'core' => 1,
'epel' => 1,
'ovirt' => 1,
);
my %baseurl = (
'core' => 'http://127.0.0.1/rpms/centos65/x86_64',
'epel' => 'http://127.0.0.1/rpms/epel/6/x86_64/',
'ovirt' => 'http:... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using System.Data;
using System.Data.SqlClient;
namespace DAL
{
public class SectionRoomSonDAL
{
List<SectionRoomSo> sw = new List<SectionRoomSo>();
public string SonInsert(SectionRoomSo s)
... |
@model MVCDemo.Models.CommonModel
<div class="easyui-panel" title="修改成功" style="width:500px;text-align:center;">
<dl>
<dt>@Model.Title 修改成功</dt>
<dd><a id="btn_close" href="#" class="easyui-linkbutton">关闭</a></dd>
</dl>
</div>
<script type="text/javascript">
$("#btn_close").click(function... |
<#
.SYNOPSIS
The "Invoke-GitPushFromOriginToMain" function is a wrapper for the 'git push origin main' command line.
.EXAMPLE
.NOTES
Name: Invoke-GitPushFromOriginToMain.ps1
Author: Travis Logue
Version History: 1.1 | 2021-10-08 | Initial Version
Dependencies: git.exe
Notes:
-
.
#>
... |
package uchiwa
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"github.com/palourde/auth"
"github.com/palourde/logger"
)
func deleteClientHandler(w http.ResponseWriter, r *http.Request) {
u, _ := url.Parse(r.URL.String())
i := u.Query().Get("id")
d := u.Query().Get("dc")
if i == "" || d == "" {
http.... |
# Salsa Verde
A Mexican sauce.
- Yields: 2 cups.
## Ingredients
- 1 pound (450g) tomatillos, husks removed.
- 1 clove garlic.
- 2 jalapeño or serrano chiles.
- 1/2 cup (26g) chopped onion.
- 3 Tbsp (40ml) oil.
- Cilantro.
## Instructions
1. Place tomatillos, garlic, and chilies in a medium saucepan and cover with... |
create function Metadata.fParameterDescription(@MajorId int, @MinorId int) returns table as return
select
d.*
from
Metadata.fParameterProperty(@MajorId, @MinorId) p inner join
Metadata.fDescription(@MajorId, @MinorId) d on p.MajorId = d.MajorId and p.MinorId = p.MinorId
|
import PropertyAnnotation from '../../model/PropertyAnnotation'
import Fragmenter from '../../model/Fragmenter'
class Strong extends PropertyAnnotation {}
Strong.type = "strong"
Strong.fragmentation = Fragmenter.ANY
export default Strong
|
package org.phoenix._03_BigInteger;
/*
* A prime number is a natural number greater than whose only positive divisors are and itself. For example, the first
six prime numbers are 2,3, 5, 7, 11, and 13.
Given a large integer, n, use the Java BigInteger class' isProbablePrime method to determine and print whether it... |
# frozen_string_literal: true
class Spinach::Features::PasswordReset < Spinach::FeatureSteps
step 'I am on the sign in page' do
visit new_session_path
end
step 'I click on forgot password link' do
click_link 'Forgot Password'
end
step 'I should be on the password reset page' do
current_path.mus... |
#!/usr/local/bin/perl
use AMOS::AmosLib;
while ($record = getRecord(\*STDIN)){
my ($rec, $fields, $recs) = parseRecord($record);
if ($rec eq "FRG"){
my $sq = $$fields{seq};
my $nm = $$fields{src};
my @lines = split('\n', $nm);
$nm = join('',@lines);
if ($nm =~ /^\s*$/){
$nm = $$fields{acc};
... |
<?php
namespace Transbank\Webpay\Oneclick\Exceptions;
use Transbank\Webpay\Exceptions\WebpayRequestException;
class InscriptionFinishException extends WebpayRequestException
{
}
|
# hello-world
I can reverse engineer anything, give me a challenge!
I love anime!
I'm a huge car enthusiast!
|
### Zones
Appliance Zones are used to isolate traffic. A Management System discovered by an EVM
Appliance in a specific zone gets monitored and managed in that zone. All jobs,
such as a SmartState Analysis or VM start, dispatched by an EVM Appliance in a
specific EVM Zone can get processed by any EVM Appliance assig... |
use strict;
use warnings;
# [0, 2, 7, 0], each position is a memory bank with n blocks.
# Find the one with most blocks, if tie, then lower indexed
# position is the one with prevalence. At first, '7' (memory
# bank at pos 2) has the most blocks. Then the position is
# put to 0 and the 7 blocks will be spread one by o... |
# pylint:disable=unused-import
# pylint:disable=unused-argument
# pylint:disable=redefined-outer-name
import logging
import docker
import pytest
from pytest_docker import docker_ip, docker_services
log = logging.getLogger(__name__)
def is_responsive(url):
try:
docker_client = docker.from_e... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RespawnController : MonoBehaviour
{
public LeverLiftController[] LeverLiftControllers;
public float DropDelay = 3.0f;
public BallFactory BallFactory;
private void Start()
{
EventHub.Instance.OnResetR... |
# Validador de CPF / CPF validator
Site para validação de CPF seguindo regras de verificação para os últimos dois dígitos.
---
Site for CPF validation following verification rules for the last two digits.
# Construído com / Built with
- Bootstrap
- HTML
- CSS
- Javascript
*And dark theme of course :)*
## Licens... |
/**
* @author clzhu
* @createtime 2018/5/22 15:40
* @description
*/
import {BaseLoader, LoaderStatus, LoaderErrors} from './loader.js';
import {RuntimeException} from '../utils/exception.js';
/**
* 集成 QVBP2P 的loader
*
* 关于回退的说明, qvbp2p.rollback和 TLoader中onStateChange调用的_rollback方法实现其中一个即可, 但请务必实现其中的一个
*
* 触发的... |
#![feature(test)]
extern crate test;
use std::time;
use hdrhistogram::serialization;
use hdrhistogram::serialization::interval_log;
use hdrhistogram::*;
use rand::SeedableRng;
use test::Bencher;
use self::rand_varint::*;
#[path = "../src/serialization/rand_varint.rs"]
mod rand_varint;
#[bench]
fn write_interval_l... |
using System;
namespace MetafileDumper
{
public class MetafileReader
{
public MetafileReader(byte[] buffer, int index)
{
Buffer = buffer;
CurrentIndex = index;
}
public byte[] Buffer { get; }
public int CurrentIndex { get; set; }
publi... |
using System.ComponentModel;
namespace Domain.Common.Errors
{
public enum CommonErrors
{
[Description("{PropertyName} should not be empty")]
ShouldNotBeEmpty,
[Description("{PropertyName} should be unique")]
ShouldBeUnique,
[Description("{PropertyName} should be great... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
---
id: D1cWYKUE3fEH7l7H1X0J0
title: Admin
desc: ''
updated: 1643950336753
created: 1643922281465
---
|
# Joyent Authentication Library
Utility functions to sign http requests to Joyent Triton and Manta services.
This library is meant to be used internally by other libraries and tools as in
the [`triton`](https://github.com/joyent/node-triton) and
[Manta](https://github.com/joyent/node-manta) repositories.
If you only ... |
#!/bin/bash
irissession $ISC_PACKAGE_INSTANCENAME -U USER <<EOF
sys
sys
Do \$System.OBJ.Load("/tmp/deps/src/community/fhirAnalytics/samples/Setup.cls", "ck")
Do ##class(community.fhirAnalytics.samples.Setup).Run()
halt
EOF |
#!/bin/sh
TERMWIN="xfce4-terminal"
CMD="url"
# Use with url_externalapp firefox extension
# Idiotic parsing of data sent by Firefox (see
# https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#App_side)
t=$(cat | dd bs=1 skip=4 | tr -d '"')
xdotool search --onlyvisible "Terminal - ... |
# rhelsearch
See which packages are "officially" packaged in RHEL by using the Fedora
Infrastructure's
[JSON files](https://infrastructure.fedoraproject.org/repo/json/pkg_el7.json).
## How it works
We cache the JSON files in `~/.cache/rhelsearch/`. If the file is over a week
old, we pull the latest files before doin... |
# mip-toggle 显示隐藏
提供显示/隐藏元素的功能。
标题|内容
----|----
类型|通用
支持布局|responsive,fixed-height,fill,container,fixed
所需脚本|https://c.mipcdn.com/static/v1/mip-toggle/mip-toggle.js
## 示例
### 基本使用
你可以使用事件 `toggle`, `show` 或 `hide` 以控制 `mip-toggle` 组件的显示与隐藏。
```html
<button on="tap:my-mip-toggle-1.toggle">显示/隐藏</button>
<button on... |
---
title: Plots
parent: Display Widgets
has_children: true
nav_order: 10
---
## {{page.title}}
This section describes different widgets
that are available for the graphical display of data.
|
import express from "express";
import chalk from 'chalk';
import http from 'http';
import { middlewares } from 'middleware';
//apis
import swaggerJsDoc from 'swagger-jsdoc';
import swaggerUi from 'swagger-ui-express'
import { swaggerOptions } from 'docs/swagger';
//loaders y middleware
import useLoaders from "config/lo... |
# GitHub GraphQL Demo
> An example GitHub dashboard implemented using REST & GraphQL for comparison
[](https://gr2m.github.io/github-graphql-demo)
This static HTML dashboard is to showcase the benefits of GitHub’s [GraphQL API](https://developer.github.com/v4/)
over its [REST API]... |
<?php
namespace App\Rabbit\Validator\Traits;
use App\Rabbit\Validator\AbstractValidator;
trait ValidatorAwareTrait
{
/**
* @var AbstractValidator
*/
protected $validator;
protected function setValidator(AbstractValidator $validator): void
{
$this->validator = $validator;
}
... |
using System;
using Meta.Numerics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NetComplex = System.Numerics.Complex;
namespace Test
{
[TestClass]
public class ComplexInteropTest
{
[TestMethod]
public void ComplexNetToMy ()
{
NetComplex netComplex = new ... |
;; -*-lisp-*-
;;
;; p22.lisp
;; P22 (*) Create a list containing all integers within a given range.
;; If first argument is smaller (??? they must have meant "bigger")
;; than second, produce a list in decreasing order.
;; Example:
;; * (range 4 9)
;; (4 5 6 7 8 9)
(defun my-range (n k)
(cond ((eql n k) (list k))
... |
/**
* @file sys.c
* @date Tue Jul 20 16:19:46 2010
*
* @brief Code to call kernel time routines and also display server statistics.
*
*
*/
#include "../ptpd.h"
int
isTimeInternalNegative(const TimeInternal * p)
{
return (p->seconds < 0) || (p->nanoseconds < 0);
}
int
snprint_T... |
using System.Diagnostics.CodeAnalysis;
namespace Grauenwolf.TravellerTools
{
[SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue")]
public enum Edition
{
Classic = 1997,
MegaTraveller = 1986,
NewEra = 1992,
T4 = 1996,
Gurps = 1998,
T20 = 20... |
package com.vivint.ceph.kvstore
import akka.Done
import akka.stream.OverflowStrategy
import akka.stream.scaladsl.SourceQueueWithComplete
import java.io.File
import java.util.concurrent.Executors
import scala.collection.immutable.Seq
import scala.concurrent.{ ExecutionContext, Future, Promise }
import akka.stream.scal... |
package ank.service;
public class UserAssistorService {
private UserAssistorService () {
}
public static UserAssistorService init(String[] args){
ArgValidator argValidator = ArgValidator.init(args).va
}
}
|
// "Migrate lambda syntax in whole project" "true"
val a = { <caret>(): Int ->
val b = { (): Int -> 5 }
b()
} |
"""
Utilities for real-case harvesting scenario
"""
from collections import Mapping
import os
import json
HARVEST_SOURCE_NAME = 'dummy-harvest-source'
class HarvestSource(Mapping):
"""
Provides dict-like access to harvest sources
"""
# Default harvest source..
source_name = HARVEST_SOURCE_NAME... |
package in.clouthink.daas.sbb.account.rest.dto;
import in.clouthink.daas.sbb.account.domain.model.Gender;
import in.clouthink.daas.sbb.account.domain.model.User;
import in.clouthink.daas.sbb.shared.util.DateTimeUtils;
import io.swagger.annotations.ApiModel;
import org.springframework.beans.BeanUtils;
import java.util... |
package tin.thurein.data.local.daos
import androidx.room.*
import io.reactivex.Flowable
import io.reactivex.Maybe
import io.reactivex.Single
import tin.thurein.data.local.DatabaseConstants
import tin.thurein.data.local.entities.JobEntity
@Dao
abstract class JobDao {
@Insert(onConflict = OnConflictStrategy.REPLACE... |
#! /usr/bin/perl
#
# jquery_perl/create/xml_perl_create.pl
#
#
# May/20/2011
#
# ----------------------------------------------------------------------
use strict;
use warnings;
use utf8;
#
use Encode;
use XML::Simple;
#
use lib '/var/www/data_base/common/perl_common';
use file_io;
use xml_manipulate;
#
# --------... |
// Copyright 2017-2018 the authors. See the 'Copyright and license' section of the
// README.md file at the top-level directory of this repository.
//
// Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
// the MIT license (the LICENSE-MIT file) at your option. This file may not be
// copied, ... |
package presenters
import (
"github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/connector/internal/api/dbapi"
"github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/connector/internal/api/public"
)
func ConvertConnectorClusterRequest(from public.ConnectorClusterRequest) dbapi.ConnectorCluster {
return... |
#!/bin/bash
host=$1
key_base=$2
epoch=$(date "+%s")
value=$(expr $(od -vAn -N4 -tu4 < /dev/random) % 60)
echo $epoch
echo $value
redis-cli -h $host --eval insert_into_buckets.redis.lua $key_base , $epoch $value
|
# Security Policy
## Supported Versions
| Version | Supported |
| ------- |:------------------:|
| Latest | :white_check_mark: |
| Anything below latest | :x: |
## Reporting a Vulnerability
Open an issue at https://github.com/LilyAsFlora/reddit-fetch/issues.
You can expect the vulnera... |
# Goggle-bots
# Uploaded implants that help create persistence.
Pre-compiled binaries.
# Functionality:
- TBD
|
fastlane documentation
================
# Installation
Make sure you have the latest version of the Xcode command line tools installed:
```
xcode-select --install
```
Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`
# Available Actions
### install_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.