text stringlengths 27 775k |
|---|
import { ParameterObject } from "openapi3-ts";
import * as _ from "lodash";
import { Optional } from "typescript-optional";
export interface PartOfPath {
/**
* Part of path, for example `:id`
*/
name: string;
/**
* Path parameter extracted from `name`, would be present and have `name: id` for `:id`.
... |
namespace DamageMeter.UI
{
internal interface ISkill
{
void Update(SkillAggregate skill);
string SkillNameIdent();
}
} |
#!/bin/bash
source "/vagrant/scripts/common.sh"
source /etc/profile.d/hadoop.sh
$HADOOP_YARN_HOME/bin/yarn --config $HADOOP_CONF_DIR --daemon start resourcemanager
$HADOOP_YARN_HOME/bin/yarn --config $HADOOP_CONF_DIR --daemon start --workers nodemanager
$HADOOP_YARN_HOME/bin/yarn --config $HADOOP_CONF_DIR --daemon sta... |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
module Expr where
import Data.Hashable
import Data.Sequence (Seq)
import Data.Text (Text)
import GHC.Generics
type Symbol = Text
data Expr
= Var Symbol
| App Expr Expr
| Lam Symbol Expr
| Prim Prim
| Func (M... |
<?php
class Session {
private static $_sessionStarted = false;
public static function init() {
if (self::$_sessionStarted == false) {
session_start();
self::$_sessionStarted = true;
// check timeout
self::checkTimeout();
}
}
private sta... |
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.java_vm import autoclass, JavaException
from indra.biopax import pathway_commons_client as pcc
from indra.biopax.processor import BiopaxProcessor
def process_pc_neighborhood(gene_names, neighbor_limit=1):... |
#!/bin/bash
make clean;
make;
valgrind --tool=memcheck --leak-check=yes ./list_main
|
# Setup Suave
On your Suave project, you reference the the shared API types:
```xml
<Compile Include="../Shared/SharedModels.fs" />
<Compile Include="Program.fs" />
```
Now you need to install the Suave-specific package: [Fable.Remoting.Suave](https://www.nuget.org/packages/Fable.Remoting.Suave/):
```
paket add Fable.R... |
import path from 'path';
import fs from 'fs';
import jsYaml from 'js-yaml';
import { ServerProcess } from './server-process';
// const resolveServerConfig = (server) => {}
// const resolveGatewayConfig = (gateway) => {}
class ReadYamlConfigServerProcess extends ServerProcess {
process() {
return new Promise(... |
var dir_233aed6dcda1586040aa2dea9dacd5c8 =
[
[ "UmfPackSupport.h", "UmfPackSupport_8h_source.html", null ]
]; |
use crate::{
math::{Point, VectorOps},
ray::{Hit, HitTest, Ray},
};
pub struct Sphere {
pub center: Point,
pub radius: f32,
}
impl HitTest for Sphere {
fn test(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option<Hit> {
let oc = ray.origin.as_vec() - self.center.as_vec();
let a = ra... |
function Get-CommitsForBranch {
[CmdletBinding()]
param (
[PSCredential]$credential,
[string]$Branch,
[string]$Repo
)
$server = Get-BitbucketConfigServer
$ProjectKey = Get-ProjectKey -repo $Repo -credential $credential
Write-Verbose "
Getting Commits:
RepoName: $Repo... |
using System;
namespace UniversalSplitScreen.SendInput
{
//https://docs.microsoft.com/en-gb/windows/desktop/inputdev/mouse-input-notifications
[Flags]
enum MouseInputNotifications : ushort
{
/// <summary>
/// https://docs.microsoft.com/en-gb/windows/desktop/inputdev/wm-mousemove
/// </summary>
WM_MOUSEMOV... |
package stan.androiddemo.project.petal.Module.UserInfo
import android.app.AlertDialog
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.AdapterView
import android.wid... |
// code-examples/DSLs/payroll/employee.scala
package payroll
case class Name(first: String, last: String)
case class Employee(name: Name, annualGrossSalary: Money)
|
module Pressy::EmptyPost
def self.build(options = {})
Pressy::Post.new(
"post_title" => options[:title],
"post_content" => "\n",
"post_status" => options.fetch(:status, "draft"),
"post_format" => options.fetch(:format, "standard"),
)
end
end
|
#include "smack.h"
#include <stdlib.h>
struct baz
{
struct baz* self;
};
struct baz* bar();
int zero() {return 0;}
void foo(struct baz* b)
{
struct baz *a = (struct baz*)malloc(sizeof(struct baz));
a->self = a;
if (zero())
b = a;
assert(b->self != NULL);
}
|
jQuery.fn.autohidebacktotop = function() {
if ($("html, body").height() <= $(window).height()) {
$("#autohidebacktotop").remove();
}
this.bind("click", function() {
$("html, body").animate({scrollTop:0});
return false;
});
};
jQuery(document).ready(function($) {
// Auto-handle direct jpeg links
$('a[href$=... |
#!/bin/sh
set -e
TARGET_DIR=$(pwd)
[ $# -eq 0 ] && >&2 echo "Usage: $0 [tweaktool source directory]" && exit 1
cd $@
SOURCE_DIR=$(pwd)
BUILD_DIR=$(mktemp -d -t ci-$(date +%Y-%m-%d-%H-%M-%S)-XXXXXXXXXX)
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake -DBUILD_GUI=ON -DPACKAGE_RPM=OFF \
-DCMAKE_BUILD_TYPE=Release -DCMAK... |
package sqlx_test
import (
"fmt"
"testing"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/johnnyeven/libtools/sqlx"
)
func TestWithTasks(t *testing.T) {
tt := assert.New(t)
dbTest := sqlx.NewDatabase("test_for_user")
defer func() {
err := db.Do(dbTest.Drop()).Err()
tt.NoError... |
module ApplicationHelper
def active_path?(path)
current_page?(path) ? "active" : ""
end
def display_strategies
if current_user
current_user.strategies.order(:updated_at).limit(10)
else
[]
end
end
end
|
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
class MyEditor implements ActionListener
{
JFrame jf;
JLabel jl;
JTextField jtf;
JTextArea jta,jta1;
JButton jbcompile,jbrun;
JScrollPane jsp,jsp1;
Runtime r;
String str="";
String fname="";
... |
using MED.Student.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace MED.Student.Infrastructure.Data.Mapping
{
public class StudentGuardianMapping : IEntityTypeConfiguration<StudentGuardianModel>
{
public void Configure(EntityTypeBuil... |
module ActivePattern
module Context
def self.[](context_class)
Module.new do
@@context_class = context_class
context_class.prepend(ActivePattern::Comparator)
def pattern(&pattern_proc)
PatternObject.new(@@context_class, pattern_proc)
end
end
end
end
end... |
module.exports = {
hello (event, context) {
return JSON.stringify({
message: 'Go Serverless v1.0! Your function executed successfully!',
url: event.extensions.request.url,
});
},
};
|
# Getting Started with Hypi cli Flutter
* [Available commands](#available-commands)
* [Getting started](#getting-started)
## Install hypi cli
```$ npm install -g @hypi/cli```
## Available commands
### `hypi login`
```hypi login```
Login with user name and password
```hypi login -d```
Login with organization n... |
extern crate cargo;
extern crate rustc_serialize;
use std::env;
use std::collections::HashMap;
use std::path::Path;
use cargo::core::Package;
use cargo::util::Config;
use rustc_serialize::json;
#[derive(RustcEncodable)]
struct Metadata {
package: Package,
authors: Vec<String>,
keywords: Vec<String>,
... |
package main
import (
"bytes"
"encoding/xml"
"strings"
)
var equipNameSpace = "http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/equipment/2004"
var contactNameSpace = "http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/contact/2004"
var miNameSpace = "http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/monumentInfo/2004"
... |
#!/bin/bash
/*
* Copyright 2020 Shashank Baghel under Apache-2.0 license
*/
echo -e "\e[1;32mCloning Toolchains\e[0m"
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9.git
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-... |
c*****************************************************************************
c
c Initialization routine
c
c******************************************************************************
c
SUBROUTINE SJINIT(NAMAX,NSMAX,NIW,NRW,ATOM,CHEM,IW,RW)
c
c Initialization routine
c------------------------------... |
package uk.nhs.nhsx.covid19.android.app.remote
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import uk.nhs.nhsx.covid19.android.app.di.MockApiModule
import uk.nhs.nhsx.covid19.android.app.remote.data.EpidemiologyRequest
class MockEpidemiologyDataApi : EpidemiologyDataApi {
private v... |
# 安装指南
## 安装
```bash
kubectl create ns captain-system
kubectl create clusterrolebinding captain --serviceaccount=captain-system:default --clusterrole=cluster-admin
kubectl apply -n captain-system -f https://raw.githubusercontent.com/alauda/captain/master/artifacts/all/deploy.yaml
```
### 使用主分支构建镜像
captain使用github的持... |
using System;
using System.IO;
namespace ClangCaster
{
class NamespaceOpener : IDisposable
{
System.IO.FileStream m_s;
public StreamWriter Writer { get; private set; }
public NamespaceOpener(FileInfo path, string ns, params string[] usingList)
{
m_s = ne... |
export {
default as CachingConfigurationProvider,
} from "./cachingConfigurationProvider.js";
export {
default as SPListConfigurationProvider,
} from "./spListConfigurationProvider.js";
|
import i18next from '../i18n';
const en = require('./../../public/locales/en.json');
i18next.addResourceBundle('en', 'translation', en, true, true);
const useMock = [k => k, {}];
useMock.t = k => i18next.t(k);
useMock.i18n = {};
module.exports = {
useTranslation: () => useMock,
}; |
#include <cassert>
#include <iostream>
#include <iterator>
#include <list>
#include "../test_helpers.hxx"
using namespace std;
using namespace pqxx;
// Test program for libpqxx. Define and use prepared statements.
#define COMPARE_RESULTS(name, lhs, rhs) \
PQXX_CHECK_EQUAL( \
rhs, \
lhs, \
"Executing " nam... |
package com.example.hades.dagger2._3_priority_of_module_and_inject;
import dagger.Component;
@Component(modules = StuModule.class)
public interface StuComponent {
void inject(TestPriorityActivity activity);
}
|
use anyhow::Result;
use crate::v8util::{create_uint8array_from_bytes, LocalValueExt};
pub fn api_encode(
scope: &mut v8::HandleScope,
args: v8::FunctionCallbackArguments,
mut retval: v8::ReturnValue,
) -> Result<()> {
let s = v8::Local::<v8::String>::try_from(args.get(1))?
.to_rust_string_lossy(scope)
... |
# Version 1.2.2 (April 11, 2019)
* Features:
* CHANGELOG for keeping track of changes
* Jlink Target
* Improvements:
* log_items and log_file kwargs for Qemu-Target
* Migration to Ubuntu 18.04 as test platform
* Ask user before writing to /etc/apt/sources/list in install scripts
* CI upgrades
... |
import { Observable } from './observable';
declare global {
export interface Object {
obs: Observable<Object>;
}
export interface BigInt {
obs: Observable<BigInt>;
}
export interface Boolean {
obs: Observable<boolean>;
}
export interface Function {
obs: Observable<Function>;
}
exp... |
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2017 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Psy\CodeCleaner;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ClassCon... |
#!/bin/sh
#
# script to generate a complete coverage report, by traversing sub-directoires
# collecting coverage information from each of them, and combining these
# into a single coverage report
#
RELDIR=`dirname $0`
BASEDIR=`cd $RELDIR/..; pwd`
DIRS=$(find $BASEDIR/src -maxdepth 1 -type d -not -name ".*" -not -n... |
/**
* Do not edit this file it is auto-generated by italia-utils / gen-api-models.
* See https://github.com/teamdigitale/italia-utils
*/
/* tslint:disable */
import { WithinRangeInteger } from "italia-ts-commons/lib/numbers";
import * as t from "io-ts";
import { withDefault } from "italia-ts-commons/lib/types";
/*... |
#[macro_use]
extern crate log;
pub mod hw;
pub mod block;
pub mod network;
pub mod serial;
#[cfg(feature = "entropy")]
pub mod entropy;
#[cfg(feature = "fs")]
pub mod fs;
#[cfg(feature = "system")]
pub mod system;
use futures::future::BoxFuture;
use std::time::Duration;
/// Context for device DMA operations.
///
/... |
<?php
namespace app\modules\v1\controllers;
use app\modules\v1\models\Komentar;
class KomentarController extends \yii\rest\ActiveController
{
public $modelClass = 'app\modules\v1\models\Komentar';
public function actions() {
$actions = parent::actions();
unset($actions['index']);
... |
require File.join(Rails.root, "app", "data_migrations", "migrate_plan_year")
# This rake task is to change the conversion ER's active or expired external plan year's status to migration expired state
# RAILS_ENV=production bundle exec rake migrations:migrate_plan_year feins='043576862 474730282 042104074 042876321 0432... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
# frozen_string_literal: true
require 'forwardable'
require_relative 'table_base'
# edge (term-point) of inter layer3-nodes link.
class L3Edge < EdgeBase
attr_accessor :node, :interface, :ips
# rubocop:disable Security/Eval
def initialize(node_interface, ips)
super()
# overwrite @node/@interface (writt... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { ArticleService } from './../../service/article.service';
import { Controller, Get, Query } from '@nestjs/common';
@Controller('webArticle')
export class WebArticleController {
constructor(private readonly articleService: ArticleService) ... |
import mapping
import pytest
import numpy as np
@pytest.mark.slow
@pytest.mark.parametrize('alpha, s, omega_c', [(1, 1, 1), (1, 2, 0.5), (1, 0.5, 2)])
@pytest.mark.parametrize('nof_coefficients', [20, 30])
@pytest.mark.parametrize('mapping_type', ['lan_bath', 'hou', 'sp_hes'])
def test_mappings(alpha, s, omega_c, nof... |
import { Convertor } from '../dist/index.js';
console.log("test start...");
console.log("usciToOibc start...");
if (Convertor.usciToOibc('91533400K312QNFQ3L') == 'K312QNFQ-3')
console.log('yes ~');
else throw new Error("cao !!!!")
console.log("usciToOibc end");
console.log("timeFormat start...");
if (Convertor.... |
---
pid: '142'
object_pid: '3040'
author: E.A. Honig
comment: "<p>This work does not appear in the 1979 Ertz catalogue nor the Honig Database.<br
/>There is the mark of Pieter Stas on the back of the copper panel.<br />In addition,
this work was reproduced as the frontispiece for the 2008 Ertz catalogue, volume
I... |
<?php
declare(strict_types=1);
namespace App\Api\DataTransformer;
use App\Api\Model\Input\AssetInput;
use App\Api\Model\Input\CollectionInput;
use App\Entity\Core\Asset;
use App\Entity\Core\Collection;
use App\Entity\Core\WorkspaceItemPrivacyInterface;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpExcepti... |
plugins {
java
`java-library`
}
description = "Swagger Coverage Rest-Assured"
repositories {
mavenCentral()
}
dependencies {
api(project(":swagger-coverage-commons"))
implementation("io.rest-assured:rest-assured")
implementation("io.swagger:swagger-compat-spec-parser")
testImplementation(... |
package com.unicorpdev.ktatract.fragments.tractList.list
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import com.unicorpdev.ktatract.fragments.tractList.parameters.DisplayMode
import com.unicorpdev.ktatract.fragments.tractList.parameters.TractLi... |
package host.heroku.bot.commands;
import java.util.*;
import java.util.*;
import org.javacord.api.DiscordApi;
import org.javacord.api.DiscordApiBuilder;
import org.javacord.api.entity.DiscordEntity;
import org.javacord.api.entity.Icon;
import org.javacord.api.entity.message.Message;
import org.javacord.api.en... |
// empty
// empty provides the identity for the Monoid in that when the value it
//provides is concated to any other value, it will return the other value. In
//the case of Any the result of empty is false. empty is available on both
//the Constructor and the Instance for convenience.
// Any.empty :: () -> Any
impor... |
class Api::ApiController < ActionController::API
include ApiCommonResponses
protected
def serialize_resource(resource, serializer, scope: nil)
JSON.parse(serializer.new(resource, scope: scope).to_json)
end
def serialize_resource_list(resources, serializer)
JSON.parse(ActiveModelSerializers::Seriali... |
{-
Copyright (c) 2014, Simon Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... |
mod args;
mod models;
mod output;
mod stats;
use crate::{
args::{ApplicationArgs, Format},
output::{JsonOutputFormatter, OutputGenerator, PrettyTableOutputFormatter},
stats::{Filter, PVSStatsNamespaceFilter, SummaryCollector, SummaryConverter},
};
use anyhow::{Context, Result};
use structopt::StructOpt;
#... |
<img src="https://github.com/bluetiger9/CoolSWITCH/raw/master/MQTT-Grafana/CoolSWITCH-grafana.png">
**docker-compose.yml**
- run Mosquitto, InfluxDB and Grafana
**mqttToInflux.py**
- listens for MQTT message sent by CoolSWITCH-s, and inserts the data into the InfluxDB
**CoolSWITCH-Grafana-Dashboard.json**
- grafa... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
//Task №5
public function author()
{
return $this->belongsTo(User::class, 'user_id');
}
public function image()
{
return $this->hasMany(Image::class, 'id');
}
public function com... |
namespace WinForm_Image_Editor
{
partial class ColorBSLControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary... |
#!/bin/bash
## using four cores here
limit=4
count=0
echo "[$(date)]: simulation started."
for ((process = 1; process < 1001; process++))
do
Rscript --vanilla fit-coxCure.R $process &
count=$(($count + 1))
echo "[$(date)]: process $process started."
if [[ $count -ge $limit ]]
then
wait
... |
# RemoteLab
Embedded Teaching Remote Laboratory of ZJU
#
||||
|-|-|-|
|目录|功能||
|router
|middleware|
|controller
|model |
var _CONF_SERVICES = '/fe';
function progressDescriptionBlock(current, max, targetDom, title, border) {
border = border || '';
var percent = 0;
if (max > 0) {
percent = Math.round((current / max) * 10000) / 100;
}
var color = 'text-green';
if (percent >= 50 && percent < 80) {
color = 'progress-bar-... |
package net.scalytica.symbiotic.api.types
import java.util.UUID
import scala.util.Try
object UUIDGenerator {
def generate(): UUID = UUID.randomUUID()
def generateOpt(): Option[UUID] = Try(UUID.randomUUID()).toOption
def fromString(s: String): Option[UUID] =
Try {
if (s.length != 36)
throw ... |
package cmd
import (
"context"
"errors"
"fmt"
"io"
"net/http"
"os"
"strings"
"time"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"google.golang.org/protobuf/encoding/protojson"
)
func init() {
dataStageCmd.Flags().String("ipfsrevproxy", "127.0.0.1:6002", "Powergate IPFS reverse proxy multiaddr")
d... |
require_dependency ComfortableMexicanSofa::Engine.root.join('app', 'models', 'comfy', 'cms', 'page.rb')
require Rails.root.join('lib', 'comfortable_mexican_sofa', 'extensions', 'is_taggable')
class Comfy::Cms::Page < ActiveRecord::Base
include ComfortableMexicanSofa::IsTaggable::ModelMethods
has_many :feedbacks,
... |
#include <bal/hw/fb.h>
MaybeError bal_fb_init(BalFb *self, int width, int height, GfxFmt fmt)
{
self->width = width;
self->height = height;
self->pitch = gfx_fmt_size(fmt) * width;
self->fmt = fmt;
return bal_mem_init(&self->mem, self->pitch * height);
}
MaybeError bal_fb_init_mobj(BalFb *self, Br... |
/*
* (C) Copyright IBM Corp. 2020, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package io.github.linuxforhealth.hl7.data;
import org.apache.commons.lang3.EnumUtils;
public enum SimpleDataTypeMapper {
BOOLEAN(SimpleDataValueResolver.BOOLEAN),
INTEGER(SimpleDataValueResolver.INTEGER),
STRING(SimpleData... |
<?php
declare(strict_types=1);
namespace Slim\Tests\Routing;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\UriInterface;
use Slim\Interfaces\CallableResolverInterface;
use Slim\Interfaces\RouteCollectorInterface;
use Slim\Interfaces\RouteInterface;
use Slim\Routing\RouteCollector;
use Slim\Routi... |
import test from 'ava';
import { signature, Dynamo, guard } from '../src';
import { AnyMxRecord } from 'dns';
const dynamo = new Dynamo({ types: false });
function StringLiteral<T>(name: T) {
class Type extends String {
@guard()
static is(x: unknown): x is Type {
return x === name;
}
... |
<?php
namespace App\Http\Controllers;
use App\Models\Tutoring;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use App\Exports\TutoringExport;
use Maatwebsite\Excel\Facades\Excel;
class TutoringController extends Controller
{
public function __construct()
{
$this->middleware('auth');... |
<?php
namespace ABCreche\Printer\Traits;
use ABCreche\Printer\Writing;
use ABCreche\Printer\Models\Image;
use Illuminate\Support\Collection;
use ABCreche\Printer\Models\PrintedView;
trait HasViews
{
/**
* An array of views which needs to be printed.
*/
protected $views = [];
/**
* Adds an... |
#include "json_utils.h"
#include "log.h"
namespace util
{
bool parse_json(std::istream & str, Json::Value & value)
{
try
{
str >> value;
return true;
}
catch (std::exception & e)
{
LOG_WARN("Failed to parse JSON: " << e.what());
... |
package dev.pimentel.rickandmorty.presentation.episodes
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.FragmentComponent
import dagger.hilt.android.scopes.FragmentScoped
@Module
@InstallIn(FragmentComponent::class)
object EpisodesModule {
@Provides
... |
@{
ViewData["Title"] = "TomatoLog";
List<string> projs = ViewBag.Projects;
}
<div class="container">
<h2> <span class="badge badge-secondary">Project List</span></h2>
<div class="row log-list">
@foreach (var p in projs)
{
var displayProject = p;
var lastIndex = p... |
/*
Post-Deployment Script Template
--------------------------------------------------------------------------------------
This file contains SQL statements that will be appended to the build script.
Use SQLCMD syntax to include a file in the post-deployment script.
Example: :r .\myfile.sql
... |
#include <stdio.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
bool czy_pierwsza(unsigned int n)
{
if (n <= 3)
return n > 1;
if (n % 2 == 0 || n % 3 == 0)
return false;
unsigned int i = 5;
while (i * i <= n)
{
if (n % i == 0 || n % (i + 2) == 0)
retu... |
---
permalink: /connect/
title: "Connect"
excerpt: "Connect with Princess Lyons"
layout: single
author_profile: true
sitemap: true
modified: 2019-10-25
---
Let's connect! Below is my contact information:
## Contact
Princess Lyons<br/>
Herbert Wertheim College of Engineering<br/>
Department of Electrical and Comput... |
<?php
/**
* Example Data
*/
class Example
{
private $_example;
private $_example_id;
private $_language;
private $_language_id;
private $_group_cd;
private $_group_name;
/**
* Constructor
*
* @param array $source data
*/
public function __construct(array $source)
... |
#!/bin/bash
# Backgroung wait for Pod reflecting VM to be reday then log console
until kubectl wait --for=condition=Ready pod -l kubevirt.io=virt-launcher --namespace default 2> /dev/null;
do echo "Still Waiting VM Pod to be in ready condition"; sleep 30;
done
LOGFILE="virtcl-console-$(date '+%Y-%m-%d-%H-%M-%S').log... |
package com.nativeboys.password.manager.ui.content.categoryChooser
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import androidx.navigation.NavController
import androidx.navigation.Navigation
import androidx.recyclerview.widget.LinearLayoutManager
import com.nativeboys.passw... |
//
// System.Net.NetworkInformation.NetworkInterface
//
// Authors:
// Eric Butler (eric@extremeboredom.net)
//
// Copyright (c) 2008 Eric Butler
//
// 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 ... |
# Generates various special numbers for Russian taxation system
# They have numbers for identification, for banks, for companies and entrepreneurs
class Forgery::RussianTax < Forgery
TYPES = Forgery::Extend([:person, :legal])
#bank identification
def self.bik
"04#{5.times.map { rand(9) + 1 }.join}#{rand(50)... |
# frozen_string_literal: true
module Gitlab
module Database
module BackgroundMigration
class BatchedMigration < SharedModel
JOB_CLASS_MODULE = 'Gitlab::BackgroundMigration'
BATCH_CLASS_MODULE = "#{JOB_CLASS_MODULE}::BatchingStrategies"
MAXIMUM_FAILED_RATIO = 0.5
MINIMUM_JOBS... |
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe HacktoberfestProjectQueryComposer do
# rubocop:disable Metrics/LineLength
describe '.compose' do
context 'When not given a cursor' do
it 'returns a project graphql json query for the first set of results' do
results_per_page = 1... |
import 'package:Minesweeper_Game_Flutter/components/field_widget.dart';
import 'package:Minesweeper_Game_Flutter/models/board.dart';
import 'package:Minesweeper_Game_Flutter/models/field.dart';
import 'package:flutter/material.dart';
class BoardWidget extends StatelessWidget {
final Board board;
final void Func... |
import * as Functions from './api';
import { Comparator, WaitType } from './enums';
import {
allMatchers,
elementMatchers,
expectElement,
expectGroup,
expectList,
expectMap,
expectPage,
listMatchers,
valueAllMatchers,
pageMatchers,
} from './matchers';
import * as arrayFunctions from './utility_func... |
Oro Sphinxdoc Integrity Check extension
=======================================
This extension allows to control content of rst document.
It can be useful to verify that examples in documentation with `literalinclude` of the files from code are still valid.
How to install
--------------
* Clone repository to any dire... |
use yew::prelude::*;
use yewtil::NeqAssign;
#[derive(Clone, Debug, Properties, PartialEq)]
pub struct ColumnsProps {
#[prop_or_default]
pub children: Children,
#[prop_or_default]
pub classes: Option<String>,
/// Align child columns vertically.
#[prop_or_default]
pub vcentered: bool,
///... |
import React from "react";
import useEvent from "react-use/lib/useEvent";
import nano from "./nano";
import App from "./App";
import Toaster from "./Toaster";
nano.putMany({
"*": {
boxSizing: "border-box",
fontFamily: "inherit",
margin: 0
},
html: {
touchAction: "manipulation"
},
input: {
... |
<?
class LOLService
{
public function tag($username, $post_id, $tag)
{
$username = urlencode($username);
$post_id = intval($post_id);
$tag = urlencode($tag);
$addr = $_SERVER['REMOTE_ADDR'];
$args = "who=$username&what=$post_id&tag=$tag&version=-1&addr=$addr";
... |
# frozen_string_literal: true
require "spec_helper"
require "dependabot/dependency"
require "dependabot/dependency_file"
require "dependabot/shared_helpers"
require "dependabot/elm/file_updater"
require_common_spec "file_updaters/shared_examples_for_file_updaters"
RSpec.describe Dependabot::Elm::FileUpdater do
it_b... |
using UnityEngine;
namespace Aspekt.PlayerController
{
public class ShootAbility : PlayerAbility
{
public float CooldownTimer = 0f;
public float ShootSpeed = 25f;
public Modes Mode;
public Bullet[] BulletPrefabs;
private IO.PlayerController controller;
private... |
package minify
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"regexp"
"strings"
"testing"
"github.com/tdewolff/test"
)
var errDummy = errors.New("dummy error")
// from os/exec/exec_test.go
func helperCommand(t *testing.T, s ...string) *exec.Cmd {
cs := []string{"-t... |
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cofoundry.Core.AutoUpdate
{
/// <summary>
/// Simple transaction abstraction for sqlserver db
/// framework
/// </summary>
public class SqlData... |
from datetime import datetime
from flask import current_app, session
from functools import wraps
import json
from app.cache import Cache
from app.queue import Queue
from app.clients import BaseAPIClient
from na_common.dates import get_nice_event_dates as common_get_nice_event_dates
def only_show_approved_events(func... |
# -*- coding: utf-8 -*-
from os.path import exists
from os.path import abspath
from os.path import join
from os import pardir
from urllib.request import urlopen
from cv2 import CascadeClassifier
class FaceDetector(object):
"""Face Detector
Face detection by Haar Feature-based Cascade Classifier in OpenCV.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.