text stringlengths 27 775k |
|---|
<?php
namespace spaf\simputils\generic;
use spaf\simputils\models\Box;
use spaf\simputils\models\InitConfig;
use spaf\simputils\special\CodeBlocksCacheIndex;
use spaf\simputils\special\CommonMemoryCacheIndex;
/**
*
*/
abstract class BasicInitConfig extends SimpleObject {
const REDEF_PD = 'pd';
const REDEF_BOX =... |
<?php
include('admin/connect.php');
$get_id=$_GET['id'];
mysqli_query($dbcon,"delete from order_details where orderid='$get_id'")or die(mysqli_error());
header('location:user_cart.php');
?>
|
package com.texastoc.module.game.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.anno... |
import 'package:chainmore/config/api_service.dart';
import 'package:chainmore/config/provider_config.dart';
import 'package:chainmore/json/collection_bean.dart';
import 'package:chainmore/json/domain_bean.dart';
import 'package:chainmore/model/domain_creation_page_model.dart';
import 'package:chainmore/model/domain_det... |
shared_examples 'a system email' do
it 'is from the default email' do
expect(mail.from).to eq [AppConfig.env.email_from]
expect(mail[:from].display_names).to eq [AppConfig.env.email_from_display_name]
end
end
# expects there to be a let(:user) in scope
shared_examples 'an email that respects user email loc... |
module ResourceMQ
class Service
class CollectionResponse < Response
end
end
end
|
# ImageColorizer
Uses InstColorization to colorize images.
https://github.com/ericsujw/InstColorization
## Usage
```
from imagecolorizer.imagecolorizer import *
ImageColorizer().colorize("examples/image.jpg")
```
## Variations wanted
- From image in memory
- To image in memory
## License
This work is licensed un... |
//
// XQScreenshotViewController.h
// EasyFamily
//
// Created by mac-2016 on 17/3/29.
// Copyright © 2017年 GXQ. All rights reserved.
//
#import <UIKit/UIKit.h>
@class XQScreenshotViewController;
@protocol XQScreenshotViewControllerDelegate <NSObject>
@optional
-(void)xq_screenshotViewController:(XQScreenshotVi... |
use std::ops::Range;
use bio_types::genome::Interval;
#[cfg(test)]
use mockall::automock;
pub use crate::core::counting::nuccounts::NucCounts;
use crate::core::workload::ROIWorkload;
mod flatbuf;
mod roibuf;
pub use flatbuf::FlatBuffer;
pub use roibuf::ROIBuffer;
#[derive(Eq, PartialEq, Clone, Debug)]
pub struct R... |
import type { Prisma } from '@prisma/client'
import type { ResolverArgs } from '@redwoodjs/graphql-server'
import { db } from 'src/lib/db'
export const projects = () => {
return db.project.findMany()
}
export const project = ({ id }: Prisma.ProjectWhereUniqueInput) => {
return db.project.findUnique({
where: ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BH.Framework.Utility;
namespace BH.Domain.Commands.Category
{
/// <summary>
/// 创建分类树命令
/// </summary>
public class AddCategoryFamilyCmd
{
/// <summary>
/// 编码
... |
<?php namespace Devise\Users\Groups;
use Mockery as m;
class GroupManagerTest extends \DeviseTestCase
{
public function setUp()
{
parent::setUp();
// $this->DvsGroup = new \DvsGroup;
// $this->GroupManager = new GroupManager($this->DvsGroup);
}
public function test_it_has_cre... |
package isoquant.plugins.processing.annotation;
public enum AnnotationMode
{
all, unique, razor;
public static AnnotationMode fromString(String mode)
{
mode = mode.trim().toLowerCase();
return (mode.startsWith("uni")) ? unique : (mode.startsWith("raz")) ? razor : all;
}
}
|
<div class="row">
<a class="link-default" style="border-bottom: 1px solid #333" href="{{ route('home') }}">Inicio</a>
<hr>
</div>
<br>
<div class="row">
<a class="link-default" style="border-bottom: 1px solid #333" href="{{ route('timeline')}}">Mis viajes</a>
<hr>
</div> |
describe App do
before do
DB[:sessions].truncate
USER_DB[:userdetails].truncate
end
describe "certificate post-auth logging with POST" do
shared_examples "logging" do
let(:request_body) do
{
username: username,
cert_name: cert_name,
mac: nil,
call... |
require File.expand_path('../../spec_helper', __FILE__)
describe "The error message caused by an exception" do
it "is not printed to stdout" do
out = ruby_exe("this_does_not_exist", args: "2> #{dev_null()}")
out.chomp.empty?.should == true
out = ruby_exe("end #syntax error", args: "2> #{dev_null()}")
... |
require 'rails_helper'
describe "Post", type: :view do
subject { page }
it_should_behave_like "index view", Post
it_should_behave_like "show view", Post do
let(:h1_text) { resource.title }
end
it_should_behave_like "new view", Post do
let(:fill_ins) { { "Title" => "Title", "Content" => "C... |
using Reline.Compilation.Symbols;
using static Reline.Tests.BinderTestUtilities;
namespace Reline.Tests.BinderTests;
public class Basic {
[Fact]
public void LineNumbers() {
const int lines = 200;
string source = new('\n', lines - 1);
var (r, model) = Compile(source);
r.Node<ProgramSymbol>();
{
for (... |
# frozen_string_literal: true
module ZendeskAppsSupport
class AppRequirement
CUSTOM_OBJECTS_KEY = 'custom_objects'
CUSTOM_OBJECTS_TYPE_KEY = 'custom_object_types'
CUSTOM_OBJECTS_RELATIONSHIP_TYPE_KEY = 'custom_object_relationship_types'
TYPES = %w[automations channel_integrations custom_objects macro... |
# drink-water-chat-webhook
A node js server which reminds me to drink water every hour using google chat's incoming webhooks
# Setup
## Prequisites
Make sure Node.js is installed in your machine
## Clone the repository
```sh
git clone git@github.com:sampathBlam/drink-water-chat-webhook.git
```
## Configure incom... |
#!/bin/sh
if [ -f ./minimal_movidius ]; then
rm ./minimal_movidius
fi
g++ -std=c++11 -g -O0 movidiusdevice.cpp main.cpp -lcrypto -lmvnc -o minimal_movidius
|
# Waar Zijn Die Engeltjes
* Category: other
* Richel's rating: 9/10 (HKM)
* Richel's favorite lyric: 'wie helpt me uit al die winterkleren'
```
Hale-hale-ha-le-le, hale-hale-ha-lele [1]
Hale-hale-ha-le-le, waar zijn die engeltjes
Hale-hale-ha-le-le, hale-hale-ha-lele
Hale-hale-ha-le-le, waar zijn die engeltjes
Ik... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
# Details
Date : 2021-12-07 15:10:35
Directory /Users/shan.yu/workspace/yusank/godis
Total : 50 files, 4152 codes, 225 comments, 907 blanks, all 5284 lines
[summary](code_counter.md)
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [.github/workflows/... |
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
} from '@nestjs/common';
import { InvoiceService } from './invoice.service';
import { CreateInvoiceDto } from './dto/create-invoice.dto';
import { UpdateInvoiceDto } from './dto/update-invoice.dto';
import { get } from 'http';
@Con... |
use ghost2zola::extract_archive;
use std::path::PathBuf;
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
struct Opt {
/// Path to a possibly-compressed tar archiving a ghost blog
#[structopt(parse(from_os_str))]
archive_path: PathBuf,
/// Path to the base directory into which the ghost blog shou... |
---
layout: service
title: To-Do
inshort: To-do list for life & work [Wunderlist]
groups: Task Management
xlinkadmin:
xlinkdev:
link: https://todo.microsoft.com/?app
xlinkbusiness:
xmarketing:
source: https://todo.microsoft.com
---
From work to play, To-Do is the easiest way to get stuff done, every day.
|
package dsl05.localFun
import io.kotlintest.matchers.*
import io.kotlintest.specs.StringSpec
import java.net.URI
import java.util.*
class LinkSpec: StringSpec() {
init {
val linkList = listOf<Link>(
"relation".link(URI("address")),
"relation".link {
URI(... |
package t1001919
object Ticket1001919 {
def doNothingWith(that: Any): Unit = {}
def doNothingWith(that: String): Unit = {}
}
class Ticket1001919 {
import Ticket1001919.doNo /*!*/
} |
package highperfscala
package orderbook
import highperfscala.orderbook.Commands._
import highperfscala.orderbook.Events._
import scala.annotation.tailrec
import scala.collection.immutable.{Queue, TreeMap}
// http://web.archive.org/web/20110312023826/http://www.quantcup.org/home/howtohft_howtobuildafastlimitorderbook... |
#ifndef PUZZLES_DAY_20_BIT_SQUARE_H_
#define PUZZLES_DAY_20_BIT_SQUARE_H_
#include <cstddef>
#include <cstdint>
#include <vector>
#include "util/check.h"
namespace aoc2020::jigsaw {
class BitSquare {
public:
BitSquare() = default;
explicit BitSquare(std::size_t dim)
: dim_(dim), rep_((dim * dim + 63) / ... |
var bodyParser = require('body-parser')
var cors = require('cors')
module.exports = function(app,env,cache){
return [cors(),bodyParser.json()]
}
|
// MvxPropertyInjectorOptions.cs
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
namespace MvvmCross.Platform.IoC
{
public class MvxPropertyInjectorOptions : IMvxPropertyI... |
import "jest-extended";
import { SecondSignatureBuilder } from "../../../src/builder/transactions/second-signature";
import { client } from "../../../src/client";
import { TransactionTypes } from "../../../src/constants";
import { crypto } from "../../../src/crypto/crypto";
import { feeManager } from "../../../src/mana... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... |
Stardust::GraphQL.define_types do
object :item do
description "An example item"
field :id, :id, null: false
field :name, :string, null: false
end
end
|
import * as JsStore from "jsstore";
import { hash, sign, verify } from "./crypto";
import * as Id from "./identity";
import * as Db from "./db";
export enum PostVerificationState {
SUCCESS,
FAILURE,
PENDING,
}
export interface PostDescriptor {
id: string;
timestamp: number;
}
export class Post {... |
// https://www.facebook.com/hackercup/problem/1153996538071503/
// Facebook Hacker Cup 2018 Qualification Round
// Ethan Searches for a String
#include <iostream>
#include <string>
#include <map>
using namespace std;
string s;
int len;
map<char, int> m;
bool contains(char c) {
auto it = m.find(c);
return it ... |
package walkie
import (
"fmt"
"io"
"os"
"path/filepath"
"sync"
"github.com/Sirupsen/logrus"
"github.com/fsnotify/fsnotify"
)
var Version = "X.X.X"
// Walkie service
// We expect Directory to always be synced
type Walkie struct {
path string
Directory *Directory
// hashmap
directories map[string]*Direct... |
package com.smaho.eng.esptouch;
import android.content.Context;
import android.util.Log;
import com.espressif.iot.esptouch.task.EsptouchTaskParameter;
import java.util.Map;
import io.flutter.plugin.common.EventChannel;
import io.flutter.plugin.common.PluginRegistry.Registrar;
/** EsptouchPlugin */
public class Esp... |
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use cosmwasm_std::{CanonicalAddr, HumanAddr, StdResult, Storage};
use cosmwasm_storage::{ReadonlySingleton, Singleton};
pub static CONFIG_KEY: &[u8] = b"config";
/// Config struct
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub... |
#!/usr/bin/env bash
# Set up NVM
export NVM_DIR="/home/dotnet-bot/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install $1
npm uninstall typescript
npm uninstall tslint
npm install
npm update
npm test
|
//! Integration tests
use super::{
ExtWrite,
ExtRead,
//CompWState,
CompRState,
CompExtR,
CompExtW,
CompW,
CompR,
//MultiW,
//MultiR,
MultiWExt,
new_multiw,
MultiRExt,
new_multir,
};
use std::io::{
Write,
Read,
Cursor,
Result,
//Error,
//ErrorKind,
};
use rand::thread_rng;
use... |
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-default">
<div class="panel-body" style="background-color:#bfbfbf;">
{{Form::open(['url'=>'prestamo/modificar/'.$prestamo->id, 'id'=>'frmCredito'])}}
<div class="row">
<div class="col-xs... |
/*
Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
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 co... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Post;
use Validator;
use App\Category;
class PostController extends Controller
{
function validation(Request $request){
$validator = Validator::make($request->all(),[
"title" => "required",
"snapshort" => "... |
<!--
* @Author: Kingtous
* @Date: 2020-04-05 00:03:45
* @LastEditors: Kingtous
* @LastEditTime: 2020-04-06 19:38:23
* @Description: Kingtous' Code
-->
#### Arduino ESP8266 程序
### 适配配置
- 芯片:`ESP8266 (NodeMcu、CH340)`
- 显示器:`SSD1306OLED SW I2C`
- 语言:C++ 17
### 功能
- 未连接成功,自动开始AP和WebServer,访问 `192.168.4.1` 即可设置WiFi、... |
from time import sleep
'''
Laço/iteração = uma estrutura de repetição.
for contar in range(1, 7): # contar é uma variável
print(contar)
print('FIM..')
for contar in range(6, 0, -1): # o -1 é o modo como ela vai contar, nesse casso é de 6 a 0 tirando 1.
print(contar)
print('FIM..')
for... |
package Traveller::HexCodes;
use strict;
use Exporter;
use warnings;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw(%HexCodes GetValue ValidHexCode);
@EXPORT_OK = ();
%EXPORT_TAGS = ( DEFAULT => [qw(%HexCodes GetVa... |
---
layout: default
---
## General Resources
### Main
* _[AESVI](http://aesvi.it/)_
* _[IndieDB](http://www.indiedb.com/)_
* _[GameDevMap](https://www.gamedevmap.com/)_
### Publishing
* _[Itch.io](https://itch.io/)_
* _[Indiexpo](https://www.indiexpo.net/it)_
* _[FreeGamePlanet](http://freegameplanet.tumblr.com/)_... |
namespace Trill.Services.Stories.Core.Exceptions
{
public class MissingAuthorNameException : DomainException
{
public MissingAuthorNameException() : base("Author name is missing.")
{
}
}
} |
package com.tencent.angel.graph.embedding.node2vec;
import com.tencent.angel.ml.matrix.psf.get.base.GetResult;
import com.tencent.angel.psagent.matrix.ResponseType;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import scala.Tuple3;
public class PullAliasResult extends GetResult {
private Long2ObjectO... |
# in Fancy we use the BlockEnvironment as Block
Block = Rubinius::BlockEnvironment
class Block
def _fancy_call_(args)
call(*args)
end
alias_method :":call", :call
alias_method :"call:", :_fancy_call_
end
|
; Test data prefetching.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
declare void @llvm.prefetch(i8*, i32, i32, i32)
@g = global [4096 x i8] zeroinitializer
; Check that instruction read prefetches are ignored.
define void @f1(i8 *%ptr) {
; CHECK-LABEL: f1:
; CHECK-NOT: %r2
; CHECK: br %r14
call void... |
package net.avicus.compendium;
import java.util.*;
/**
* Pagintes a collection of items.
*/
public class Paginator<T> {
private Collection<T> collection;
private int perPage;
/**
* @param collection The full collection of items.
* @param perPage The number of items per page.
*/
p... |
package mainpackage;
import java.util.Scanner;
public class switchFile {
static Scanner reader=new Scanner(System.in);
public static void main(String[] args){
System.out.print("enter index:");
int index=reader.nextInt();
switch(index)
{
case 1: //block of code
System.out.println(" he is male");
br... |
(function () {
'use strict';
var fs = require("fs"),
port = process.env.PORT || 9000,
express = require("express"),
app = express(),
handlebars = require("express-handlebars");
// Set up for proxing behind apache/nginx
app.enable('trust proxy');
app.engine('hbs', han... |
#!/bin/sh
set -ex
if [ "$TESTSUITE" = "STACK" ]; then
cd hs
stack test
else
npm test
fi
|
// TODO: remove jquery.
import $ from 'jquery';
/**
* This function determines if the element specified is currently in the
* browser window (i.e. "in view").
* @param {string} selector - The selector for the element specified.
* @returns {boolean} Whether or not the element is in the viewport.
*/
function isElem... |
/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... |
import {useState} from 'react';
import {Button, ButtonProps, Form} from 'react-bootstrap';
import {Controller, useForm} from 'react-hook-form';
import {useRejectPurchaseRequest} from '../../../Api';
import {useRootState} from '../../../store';
import ErrorInfo from '../../@ui/ErrorInfo';
import ModalContainer from '..... |
import qualified Test.Hspec as H
import qualified Pipend.Policy as Policy
import Control.Monad (ap)
makeCan can p r l = H.it (show r ++ " should have " ++ show l ++ " permission") $ can r l p
makeCant can p r l = H.it (show r ++ " should not have " ++ show l ++ " permission") $ not (can r l p)
ownerHasAllAccess can =... |
using System;
using System.IO;
using System.Threading.Tasks;
namespace Archivist.Core.Operations.Local
{
public class DeleteFolder : AbstractOperation
{
public DeleteFolder(Guid id) : base(id)
{
}
public override string Name => "rd";
public override string Description... |
/// <reference types="@fastly/js-compute" />
import indexPage from "./index.html";
import baseStyle from "./style.css";
import darkStyle from "./dark.css";
import lightStyle from "./light.css";
// https://github.com/w3ctag/design-reviews/issues/632
// https://web.dev/user-preference-media-features-headers/
fastly.enab... |
using System.Runtime.Serialization;
namespace Indicia.HubSpot.Core.Paging
{
[DataContract]
public class HubSpotPaging
{
[DataMember(Name = "next")]
public HubSpotPagingNext Next { get; set; }
}
} |
print('\033[32mCalcule seu IMC!\033[m ')
peso = float(input('Digite seu peso: '))
altura = float(input('Digite sua altura: '))
imc = peso / (altura ** 2)
if imc<18.5:
print(f'Seu IMC é de {imc:.1f}! Isso significa que você está abaixo do peso!')
elif imc>=18.5 and imc<25:
print(f'Seu IMC é de {imc:.1f}! Isso si... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using ValueType = Website.Common.Enums.ValueType;
namespace Website.Common.Models
{
public class Group : Model
{
public ValueType Type { get; set; }
public string Label { get; set; }
[InversePropert... |
using System.Collections.Generic;
namespace LINGYUN.Abp.SettingManagement
{
public class SettingGroupDto
{
public string DisplayName { get; set; }
public string Description { get; set; }
public List<SettingDto> Settings { get; set; } = new List<SettingDto>();
public SettingG... |
package com.github.wakingrufus.mastodon.config
import java.util.*
data class ConfigData(val identities: Set<AccountConfig> = HashSet()) {
} |
/* GTK - The GIMP Toolkit
* Copyright (C) 2020, Red Hat, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later versi... |
package ru.scar.yandex_checkout.until
import ru.yandex.money.android.sdk.Amount
import ru.yandex.money.android.sdk.MockConfiguration
import ru.yandex.money.android.sdk.TestParameters
import java.math.BigDecimal
import java.util.*
import kotlin.collections.HashMap
@Suppress("UNCHECKED_CAST")
class MockParser{
comp... |
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
//
// Created by Alexander Galilov on 26.05.2019.
// E-Mail: alexander.galilov@gmail.com
#include "ws2812b/Led.h"
#include "ws2812b/RGB.h"
int NUM_LEDS = 30;
WS2812B::Led leds(0, NUM_LEDS);
void setPixelColor(int pixelNumber, int r, int g, int b);
void setPixelColor(int pixelNumber, int r, int g, int b){
WS2812B... |
#!/bin/bash
# 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 ... |
type TEnum = (one, two, three);
type TSet = set of TEnum;
type TObj = class
class function Set : TSet; begin Result := [ two ]; end;
class function Set2(a : Boolean) : TSet; begin if a then Result := [ one, two ] else Result := [ two, three ]; end;
end;
for var e in TObj.Set do PrintLn(e.Name);
PrintLn('-'... |
/**
* PropertyEditor.cpp
* Manages the property editor dialog box.
*
* @author Nathan Campos <nathan@innoveworkshop.com>
*/
#include "PropertyEditor.h"
#include "Constants.h"
#include "resource.h"
extern "C" {
void *lpPropertyEditorThis;
}
/**
* Initializes an empty object.
*/
PropertyEditor::PropertyEditor(... |
package com.efalone.barbershop
import android.os.Bundle
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.efalone.barbershop.fragments.DetailFragment
import com.efalone.barbershop.fragments.HomeFragment... |
# -*- coding: binary -*-
module Msf
module Exploit::Remote::SMB::Server
module Share
module Command
require 'msf/core/exploit/smb/server/share/command/close'
require 'msf/core/exploit/smb/server/share/command/negotiate'
require 'msf/core/exploit/smb/server/share/command/nt_c... |
namespace SimpleExtension
{
/// <summary>
/// Enum ObjectToStringTypes
/// </summary>
public enum ObjectToStringTypes
{
/// <summary>
/// The properties
/// </summary>
Properties,
/// <summary>
/// The properties and fields
/// </summary>
... |
-- aas_hist_metrics.sql
-- jared still - 2015-07-16
--
-- jkstill@gmail.com
set pause off
set echo off
set timing off
set trimspool on
set feed off term off echo off verify off
clear col
clear break
clear computes
btitle ''
ttitle ''
btitle off
ttitle off
set newpage 1
set pages 0 lines 200
col value format 9... |
import { IsEmail, IsEmpty, IsString, Validate } from 'class-validator';
import { Player } from '../player.entity';
import { OmitType } from '@nestjs/mapped-types';
import { isValidObjectId } from 'mongoose';
export class CreatePlayerDTO extends OmitType(Player, [
'ranking',
'position',
'_id',
'createdAt',
'u... |
#!/bin/bash
set -euo pipefail
echo "--- yarn install"
yarn install --frozen-lockfile
echo "--- yarn validate"
yarn validate |
namespace Plugin.Fingerprint.Abstractions
{
/// <summary>
/// Indicates if a fingerprint authentication can be performed.
/// </summary>
public enum FingerprintAvailability
{
/// <summary>
/// Fingerprint authentication can be used.
/// </summary>
Available,
... |
import { default as React, Component } from 'react';
import { connect } from 'react-redux';
import Header from '../../components/Header';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../../actions';
import './assets/main.scss'
class Main extends Component {
componentWillMount() {
... |
import express, { Request, Response, NextFunction } from 'express';
import Level from '../models/Level';
import Time from '../models/Time';
import User from '../models/User';
export class LevelController {
/**
* get a specific level
* param('id') - isNumeric - the id of the level to grab
*/
public static... |
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
use Illuminate\Http\Request;
class TrustHosts extends Middleware
{
public function handle(Request $request, $next)
{
// check the ip adress
$ip = $request->ip();
$hosts = $this->hosts();
... |
// SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
// SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
//
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { fireEvent, render, screen } from '@testing-library/react';
import { ButtonText } from '../... |
import datetime
import json
class User:
def __init__(self,
email: str,
created_time,
updated_time
):
self._email = email
self._created_time = datetime.datetime.now().strftime("%y_%m_%d")
self._updated_time = self._created_... |
package com.github.pshirshov.izumi.fundamentals.platform.bytes
import java.nio.ByteBuffer
import scala.language.implicitConversions
object IzBytes {
implicit def toRichByteBuffer(bytes: ByteBuffer): IzByteBuffer = new IzByteBuffer(bytes)
implicit def toRichByteArray(bytes: Array[Byte]): IzByteArray = new IzByte... |
#!/bin/sh
cd ./bin
rm -R ./org/hy/common/net/junit
rm -R ./org/hy/common/net/plugins
jar cvfm hy.common.net.jar MANIFEST.MF META-INF org
cp hy.common.net.jar ..
rm hy.common.net.jar
cd ..
cd ./src
jar cvfm hy.common.net-sources.jar MANIFEST.MF META-INF org
cp hy.common.net-sources.jar ..
rm hy.common.net-sou... |
SELECT
PL21001, --supplier code
PL01002,
PL21002,
PL21003,
PL21004, --invoice number
PL21005,
PL21006, --transaction date
PL21007,
PL21008,
PL21009,
PL21010,
PL21011, --payment sent
PL21012,
PL21013,
PL21014,
PL21015,
PL21016
--, PL21020 --payment rema... |
# BSUIR_CHESS
OOP проект. Шахматы и шашки в стилистике БГУИР
|
<?php
/**
* @package Joomla.Platform
* @subpackage GitHub
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* GitHub API Forks class for the Joomla Pla... |
using System;
using System.Globalization;
using System.Windows.Forms;
using SDRSharp.Radio;
namespace SDRSharp.FUNcube
{
public partial class FCDControllerDialog : Form
{
private bool _updating;
private readonly FunCubeIO _owner;
public FCDControllerDialog(FunCubeIO owner)... |
buildscript {
var kotlinVersion: String by extra
kotlinVersion = "1.4.10"
repositories {
jcenter()
google()
mavenCentral()
// maven {
// url = java.net.URI("https://dl.bintray.com/mobilesolutionworks/release")
// }
// maven {
// url = java.... |
fChess = fChess || {};
fChess.PawnPromotionModal = (function () {
'use strict';
var PawnPromotionModal = function () {
fChess.Modal.prototype.constructor.apply(this, arguments);
this.pieceChoices = [
{ name: 'Queen', imageUrl: ko.observable(''), isSelected: ko.observable(false) },... |
import { InstruccionConOptimizacion } from "./instruccion_con_optimizacion";
import { Optimizaciones } from "./optimizaciones";
import { Optimizacion } from "./optimizacion";
export class AsignacionTresDirecciones extends InstruccionConOptimizacion {
linea: string;
codigo: string;
dir1: string;
dir2: string;
... |
# show
## title_2
texttext**bold**texttext*italic*....
- t1
- t2
1. t21
2. t22
- t3
[njucs](http://cs.nju.edu.cn)
- ##123##
- [njujiaowu](http://jw.nju.edu.cn)
|
#!/bin/bash
if [ "x$OMD_SITE" != "xdemo" ]; then
echo "ERROR: this script should be run as demo user only."
exit 3
fi
echo "building... "
mkdir -p var/tmp/build
rsync -av --exclude=.git/ /src/. var/tmp/build/.
cd var/tmp/build && \
make build && \
echo "build OK" && \
sleep 1 && \
omd restart apac... |
#!/bin/sh
# make sure we're up to date with the latest version
bzr up
# generate the documentation for each module
pydoc -w Pd
pydoc -w PdParser
# create the tar file
bzr export PyPd-`bzr revno`.tar.gz .
# export the documentation from our modules into text files
python -c "from Pd import Pd; print Pd.__doc__" > Pd... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.