text stringlengths 27 775k |
|---|
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
namespace Antijank.Debugging {
[ComImport, Guid("31BCFCE2-DAFB-11D2-9F81-00C04F79A0A3"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMetaDataDispenserEx : IMetaDataDispenser {
new... |
using Microsoft.Extensions.Options;
using MongoDB.Driver;
using vt_encrypchat.Data.Configuration;
using vt_encrypchat.Data.Contracts.MongoDB;
namespace vt_encrypchat.Data.MongoDB
{
public class MongoContext : IMongoContext
{
public MongoContext(IOptionsMonitor<MongoDbConfig> mongoOptionsMonitor)
... |
#!/usr/bin/env bash
declare -A GROUP_TITLE=( ["fix"]="Bug fixes" ["chore"]="Maintenance" ["feat"]="Features" )
tags=$(git tag --list --sort='-version:refname' --merged HEAD)
set -- $tags
echo "# Changelog"
echo
echo "All notable changes to this project will be documented in this file."
while (( "$#" > 1 )); do
da... |
package com.ctc.wstx.dtd;
import javax.xml.stream.XMLStreamException;
import com.ctc.wstx.io.WstxInputData;
import com.ctc.wstx.sr.InputProblemReporter;
import com.ctc.wstx.util.PrefixedName;
/**
* Specific attribute class for attributes that contain (unique)
* identifiers.
*/
public final class DTDNmTokensAttr
... |
;
; void asm_swap(void *a, void *b)
;
BITS 64
SECTION .text
GLOBAL asm_swap
asm_swap:
;MOV RCX, [RSI]
;MOV RDX, [RDI]
;MOV [RSI], RDX
;MOV [RDI], RCX
; OR
PUSH QWORD [RSI]
PUSH QWORD [RDI]
POP QWORD [RSI]
POP QWORD [RDI]
_end:
RET
|
# I prefer Markdown to reStructuredText. PyPi does not. This allows people to
# install and not get any errors.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = (
"Tavi (as in `Rikki Tikki Tavi "
"<http://en.wikipe... |
package io.kommons.designpatterns.cqrs.domain.model
import io.kommons.AbstractValueObject
import io.kommons.ToStringBuilder
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
import javax.persistence.Id
import javax.persistence.MappedSuperclass
@MappedSuperclass
abstract class LongEntity:... |
<?php
namespace AppBundle\Manager;
use AppBundle\Entity\User;
use AppBundle\Repository\AdminRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\EntityManagerInterface;
class AdminManager
{
/**
* @var EntityManagerInterface
*/
pri... |
/**
* @module Timer
*/
export default class Timer {
private callback;
private interval;
private state;
private intervalId;
private timeoutId;
private startTime;
private remaining;
constructor(cb: () => void, interval: number);
start(): void;
pause(): void;
res... |
# Laravel-Snippets
Misc useful tidbits i'm always searching across projects for. Figured I'd start putting them where I can find them.
### Install
Install and usage instrcutions are included with each individual snippet.
|
## 感知机
1. 线性分类
```
import pandas as pd
import numpy as np
from sklearn.datasets import load_iris
import matplotlib.pyplot as plt
#%matplotlib inline
class Model:
def __init__(self):
self.w = np.ones(len(data[0]) - 1, dtype=np.float32)
self.b = 0
self.l_rate = 0.1
# self.data = d... |
import { Loop } from "../../../loop.js";
/** @hidden */
declare function loop(g: SVGGElement, loop: Loop): SVGElement[];
export { loop };
|
package shuttle.coordinates.domain.usecase
import kotlinx.coroutines.flow.Flow
import shuttle.coordinates.domain.CoordinatesRepository
import shuttle.coordinates.domain.model.CoordinatesResult
class ObserveCurrentCoordinates(
private val repository: CoordinatesRepository
) {
operator fun invoke(): Flow<Coord... |
var album={};
$(document).ready(function(){
$('.modal-hall-form').submit(function(){return false;});
$(document).delegate('.modal-hall__button','click',function(){
var
text=[
$('#address-town').val(),
$('#address-street').val(),
$('#address-hou... |
FactoryGirl.define do
factory :admin_user do
email "basicadmin@mvmanor.co.uk"
password "p"
password_confirmation "p"
end
factory :addition do
booking_id 1
extra_id 1
end
# :name, :description, :size, :capacity, :price, :picture, :rmcat_id
factory :room do
name "The New Room"
d... |
from os import system
import sqlite3
import time
db = sqlite3.connect("books.sqlite")
imlec = db.cursor()
imlec.execute("CREATE TABLE IF NOT EXISTS library (author, name)")
imlec.execute("CREATE TABLE IF NOT EXISTS users (id, password, isWorker)")
class Book():
def __init__(self, name, author):
... |
# Задача 4. Вариант 44.
# Напишите программу, которая выводит имя, под которым скрывается Борис Николаевич Бугаев.
# Дополнительно необходимо вывести область интересов указанной личности, место рождения,
# годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти).
# Для х... |
describe('render-jsx', () => {
require('../common/test');
require('../renderer/test');
require('../component/test');
require('../dom/test');
});
|
package uk.co.hasali.epubreader.zip
import java.io.ByteArrayInputStream
import java.io.InputStream
import java.util.zip.ZipInputStream
internal class ZipInputStream(inputStream: InputStream) : IZipFile {
private val mZipInputStream = ZipInputStream(inputStream)
private val mEntries: MutableMap<String, IZipEn... |
import {expectType} from 'tsd';
import camelcaseKeys from './index.js';
expectType<Array<Record<'foo-bar', true>>>(camelcaseKeys([{'foo-bar': true}]));
expectType<Record<'foo-bar', true>>(camelcaseKeys({'foo-bar': true}));
expectType<Record<'foo-bar', true>>(
camelcaseKeys({'foo-bar': true}, {deep: true})
);
expec... |
using System;
using System.Collections.Generic;
using System.Text;
using Nom.Language;
namespace Nom.TypeChecker
{
public class UnaryOpInstruction : AValueInstruction
{
public IRegister Arg { get; }
public Parser.UnaryOperator Operator { get; }
public UnaryOpInstruction(IRegister arg, ... |
#!/usr/bin/env bash
# Combined dist_train.sh and train-drone.sh
MMDET=$HOME/Github/mmlab/mmdetection
export PYTHONPATH=$PYTHONPATH:$MMDET
PYTHON=${PYTHON:-"python"}
GPUS=$1 # CONFIG=$1
CURDIR=`dirname "$0"`
cd $CURDIR
CURDIR=$PWD
CONFIG=`ls $CURDIR/*.py`
LOGFILE=$CURDIR/log.txt
WORK_DIR=$CURDIR
CHECKPOINT_FILE=$CU... |
use core::ops::{Index, IndexMut};
pub struct NameTable {
inner: [u8; 0x800],
}
impl NameTable {
pub fn new() -> NameTable {
NameTable {
inner: [0u8; 0x800],
}
}
pub fn addr(&self, addr: u16) -> usize {
let addr = addr as usize;
addr & 0x3FF + if addr < 0x2800 ... |
{-# LANGUAGE TypeSynonymInstances, RecordWildCards #-}
module PrettyPrint where
import qualified Data.ByteString.Lazy as B
import Text.Printf
import Data.List
import Data.Maybe
import qualified Data.Map as M
import Types
-- Pretty printing
lineHex bytes l = prettyHex $ extract (lineOffset l) (lineLength l) bytes
e... |
import { ASObject } from '@awayfl/avm2';
export class AutomationAction extends ASObject {
constructor () {
super();
}
// Static JS -> AS Bindings
// Static AS -> JS Bindings
// Instance JS -> AS Bindings
_type: string;
type: string;
// Instance AS -> JS Bindings
} |
import { Injectable } from '@angular/core';
import {DataService} from '../data.service'
import { HttpParams, HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class UploadFileService {
constructor(private dataService:DataService) { }
uploadfile(file, vehileId, imageType, ed... |
class Solution {
Map<Character, Character> pairs = new HashMap<Character, Character>();
private void loadPairs() {
this.pairs.put('(', ')');
this.pairs.put('{', '}');
this.pairs.put('[', ']');
}
public boolean isValid(String s) {
this.loadPairs();
... |
<?php
namespace App;
use App\Http\Resources\Post\PostsResource;
use App\Http\Resources\User\UsersResource;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Auth;
class Post extends Model
{
protected $fillable = ['title', 'content', 'user_id'];
public function user()
{
$this... |
export {default as connect} from './connect'
export {default as formize} from './formize'
export {when} from './listener'
|
#!/bin/bash
gcc pi-lace.c -o lacepi.out -lm -llace -llace14 -lpthread
|
!
! This PMMF is used in the convecting vortex regression test.
!
module pmmf_sinusoidal_convecting_vortex
#include <messenger.h>
use mod_kinds, only: rk,ik
use mod_constants, only: ZERO, HALF, ONE, TWO, THREE, FOUR, FIVE, EIGHT, PI
use type_prescribed_mesh_motion_function, only: prescribed_mesh_moti... |
import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core";
import { NwbDialogConfig, NwbDialogService } from "@wizishop/ng-wizi-bulma";
import { Router } from "@angular/router";
import { FriendsService } from "src/app/services/friends.service";
import { AlertService } from "src/app/services/alert.s... |
@extends('layout.app')
@push('on_ready')
$("#rankings").addClass('active');
@endpush
@section('title')
| Rankings
@endsection
@section('pagetitle')
<h1>{{season()->year}} {{league()->name}} Rankings
@if($rankings)
<small>Week {{$rankings->week->number}}</small>
@endif
</h1>... |
/*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... |
import java.util.*;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import static java.util.Comparator.comparingInt;
public class Boise extends AlternativeWay {
private static final int synX1125int = 1;
private static final int synX1124int = 0;
private static final int synX1123int = 0;
... |
module Ethereum::Base
module Secp256K1
N = 115792089237316195423570985008687907852837564279074904382605163141518161494337
UINT_MAX = 2**256 - 1
end
end
|
import { assertType, replaceProperty, ReplaceProperty } from '..'
test('replaceProperty()', () => {
const subject = { a: 1, b: 2 } as const
const actual = replaceProperty(subject, 'a', () => 1)
assertType<{ a: () => 1, b: 2 }>(actual)
expect(actual.a()).toBe(1)
})
test('ReplaceProperty<>', () => {
const sub... |
/*=====
testing script for procedure silly_shout
by: Sharon Tuttle
last modified: 2020-01-30
=====*/
prompt
prompt ************************
prompt TESTING silly_shout
prompt ************************
prompt
set serveroutput on
prompt ===================
prompt test passes if it shows 3 "shouts" of HOWDY!!:
pr... |
class TGAccessMatrixVO {
String? key;
int? roleId;
String? module;
String? access;
bool? create;
bool? delete;
bool? update;
bool? read;
TGAccessMatrixVO(
{this.key,
this.roleId,
this.module,
this.access,
this.create,
this.delete,
this.update,
this.read... |
---
layout: project_single
title: "Tiles, colors and contours shape a gorgeous Mediterranean kitchen"
slug: "tiles-colors-and-contours-shape-a-gorgeous-mediterranean-kitchen"
parent: "mediterranean-decor-idea"
---
Tiles, colors and contours shape a gorgeous Mediterranean kitchen - Decoist |
use crate::*;
use crate::register::{SvmReg, SvmReg160, SvmReg32, SvmReg512, SvmReg64};
use std::ffi::c_void;
use svm_storage::traits::PageCache;
use svm_storage::PageSliceCache;
use crate::ctx_data_wrapper::SvmCtxDataWrapper;
use log::debug;
/// The number of allocated `SvmReg32` registers for each `SvmCtx`
pub co... |
//! The module contains a number of reusable components for implementing the client side of an
//! HTTP/2 connection.
use std::net::TcpStream;
use std::io;
use std::fmt;
use std::error;
use http::{HttpScheme, HttpResult, StreamId, Header, HttpError, ErrorCode};
use http::transport::TransportStream;
use http::frame::{... |
package systems.opalia.commons.core.mathx
def log(base: Double, value: Double): Double =
math.log(value) / math.log(base)
def digitCount(base: Double, value: Double): Int =
math.floor(log(base, value)).toInt + 1
def round(value: Double, pos: Int): Double = {
val factor = math.pow(10d, pos)
math.round(fact... |
<?php
/*
* Copyright (C) 2018 OpenSIPS Project
*
* This file is part of opensips-cp, a free Web Control Panel Application for
* OpenSIPS SIP server.
*
* opensips-cp is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundati... |
class AdminRole
include Mongoid::Document
include Mongoid::Timestamps
has_many :users
end
|
<?php
namespace app\modules\rbac\controllers;
use yii\rbac\Item;
use yii2mod\rbac\base\ItemController;
use amnah\yii2\user\models\Role;
use Yii;
use yii2mod\rbac\models\AuthItemModel;
use yii\db\IntegrityException;
/**
* Class RoleController
*
* @package yii2mod\rbac\controllers
*/
class RoleController extends I... |
---
layout: post
title: "[Python] Jupiter Notebook을 이용한 파이썬의 리스트와 튜플에 대한 간단한 설명"
subtitle: "파이썬 리스트와 튜플의 사용"
categories: dev
tags: python
comments: true
---
> 파이썬의 튜플과 리스트를 쥬피터 노트북을 통해서 복습
## 파이썬의 리스트와 튜플
### 파이썬의 리스트와 튜플
+ 리스트:변경가능[]
+ 튜플 : 변경불가능()
```python
## (1) 22, 44, 11 요소의 리스트 a_data 생성
## (2) 길자, 길동... |
// run-fail
// error-pattern:quux
// ignore-emscripten no processes
fn foo() -> ! {
panic!("quux");
}
fn main() {
foo() == foo(); // these types wind up being defaulted to ()
}
|
/*----------------------------------------------------------------
// auth: Windragon
// date: 2018
// desc: None
// mdfy: None
//----------------------------------------------------------------*/
using System;
using System.Drawing;
namespace WLib.Data.Calculate
{
/// <summary>
/// 提供角度的相关操作
/// </summ... |
RailsCldr::Engine.routes.draw do
namespace :numbers do
scope "(:locale)", :locale => /#{RailsCldr::Engine.config.locales[:numbers].join("|")}/ do
resource :currencies, format: :json, only: :show
resource :numbers, format: :json, only: :show
end
end
namespace :calendars do
scope "(:loca... |
<?php
namespace Concerto\PanelBundle\Repository;
/**
* MessageRepository
*/
class MessageRepository extends AEntityRepository {
}
|
package com.mysugr.sweetest.framework.base
import com.mysugr.sweetest.framework.context.DependenciesTestContext
import com.mysugr.sweetest.framework.context.StepsTestContext
import com.mysugr.sweetest.internal.Steps
import com.mysugr.sweetest.usecases.getDependencyDelegate
import com.mysugr.sweetest.usecases.getStepsD... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/container/v1/cluster_service.proto
package com.google.container.v1;
public interface HttpLoadBalancingOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.container.v1.HttpLoadBalancing)
com.google.protobuf.Message... |
import {seq, opt, tok, star, alt, Expression, IStatementRunnable} from "../combi";
import {InstanceArrow, StaticArrow} from "../tokens/";
import {NewObject, ArrowOrDash, ComponentName, FieldChain, MethodCall, Cast} from "./";
import {ClassName} from "./class_name";
export class MethodCallChain extends Expression {
p... |
#启动管理后台前端
cd litemall-admin
cnpm run dev
cd ..
|
module load perl
module load stajichlab
module load maker/2.31.8
module load snap
module load augustus/2.7
mkdir retrain
ln -s ../MAKER/Mn35.all.functional.gff
mkdir snap
cd snap
#maker2zff Mn35.all.functional.gff
maker2zff -c 0 -e 0 Mn35.all.functional.gff
fathom -categorize 1000 genome.ann genome.dna
fathom -expor... |
import 'package:gssuite/apis/api.dart';
import 'package:url_launcher/url_launcher.dart';
mailto() async {
final url = mail;
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch';
}
}
|
#!/usr/bin/env bash
cd "$(dirname "$0")" || exit 10
rm -r ./dist
rm -r ./build
python setup.py sdist bdist_wheel || exit 13
echo "Do you want to install package? (y|Y to install)"
read answer
if [[ "$answer" == "y" || "$answer" == "Y" ]]
then
pip install "$(ls ./dist/*.whl)"
fi
|
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [ -z "$1" ]
then
echo "Need parameter with git repo url"
exit -1
fi
echo "$1 -> $($SCRIPTDIR/../repo-to-pipeline.sh $1)"
|
package Catalyst::Model::Factory::PerRequest;
use strict;
use warnings;
use MRO::Compat;
use base 'Catalyst::Model::Factory';
our $VERSION = '0.10';
sub ACCEPT_CONTEXT {
my ($self, $context, @args) = @_;
my $id = '__'. ref $self;
return $context->stash->{$id} ||= $self->next::method($context, @args);
}
... |
// SPDX-License-Identifier: GPL-2.0-only
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
/* USB QSCR... |
-- phpMyAdmin SQL Dump
-- version 4.2.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 06, 2015 at 06:17 AM
-- Server version: 10.0.17-MariaDB
-- PHP Version: 5.6.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
using System;
namespace ZoomNet.Models.Webhooks
{
/// <summary>
/// This event is triggered when an attendee joins a meeting.
/// </summary>
public class MeetingParticipantJoinedEvent : MeetingEvent
{
/// <summary>
/// Gets or sets the date and time at which the participant joined the meeting.
/// </summary... |
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* lib/elements/dom-repeat.js
*/
import {PolymerElement} from '../../polymer-element.js';
import {Template... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OliDemos.Shop.Model;
using OliDemos.Shop.Repository;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using NSwag.Annotations;
using OliDemos.Shop.Services;
using Microsoft.AspNetCore.Authorization... |
# RequestQuery
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**language** | **string** | The query language in which the query is written. | [optional] [default to null]
**userQuery** | **string** | The exact search request typed in by the user | [optional... |
---
layout: post
title: "npm package.json"
date: 2020-02-23
tags: [npm,package.json]
excerpt: ""
etc: true
comments: true
---
[docs](https://docs.npmjs.com/files/package.json)
## npm 작성방법
JavaScript 객체 리터럴이 아니라 실제 JSON이어야합니다.
## name
패키지를 공개하려는 경우 package.json에서 가장 중요한 것은 `name`과 `version` 필드가 필요하다는 것입니다.
`n... |
ori $ra,$ra,0xf
addu $6,$4,$2
multu $0,$1
sll $3,$3,14
addiu $0,$6,28752
divu $4,$ra
addiu $5,$1,-12106
srav $4,$4,$3
mflo $6
mult $3,$0
mtlo $1
lui $4,40975
addiu $4,$1,-30801
addiu $4,$4,-18330
mtlo $0
ori $5,$1,32393
mflo $4
lui $1,47290
ori $5,$5,10774
div $4,$ra
lb $2,13($0)
sb $0,7($0)
mtlo $4
lb $4,1($0)
mtlo $0... |
#!/usr/bin/env bash
# 验证指定程序是否有效 或者是否能够在PATH中找到
in_path(){
# 找给定的命令 找到 返回 0
# 没找到 返回 1
# 函数执行完成后 恢复
#IFS是internal field separator 的缩写,shell的特殊环境变量。ksh根据IFS存储的值,可以是空格、tab、换行符或者其他自定义符号,来解析输入和输出的变量值。
# 具体请查看 http://xstarcd.github.io/wiki/shell/IFS.html
cmd=$1 ourpath=$2 result=1
oldIFS=$IFS IFS=":"
for directory... |
import sbt.Keys.organization
val V = new {
val Scala = "3.1.0"
val laminar = "0.13.1"
val http4s = "0.23.4"
val sttp = "3.3.13"
val circe = "0.14.1"
val decline = "2.1.0"
val weaver = "0.7.6"
val doobieVersion = "1.0.0-RC1"
val log4jVersion = "2.14.1"
}
scalaVersion := V.Scala
name := "fluvii"
version := "0... |
from typing import Optional
from src.rest_client.groups.groups import GroupRestClient
from src.rest_client.utils import with_rest_client, external_call
@with_rest_client(GroupRestClient)
async def get_all_groups(
client: GroupRestClient,
query: Optional[str] = None,
faculty: Optional[int] = None,
**k... |
//! # algorand-rs
//!
//! This crate is a WORK IN PROGRESS!
//!
//! **algorand-rs** aims at becoming a rusty algorand sdk.
//!
//! ```rust
//! use algorand_rs::Algod;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let algod = Algod::new()
//! .bind("http://localhost:4001")
//! .au... |
@extends('layout/app')
@section('title', 'Edit Buku')
@section('content')
<div class="container mt-2">
<div class="col-md-8 manage-wrapper bg-light me-1">
<h3><i class="uil uil-edit me-1"></i> Update Book</h3>
<p>
Update data buku dengan benar dan tepat! Data anda
akan diakses oleh... |
mod block;
mod expr;
mod item;
mod stmt;
pub(crate) use block::parse_block;
pub(crate) use expr::parse_expr;
pub(crate) use item::parse_item;
pub(crate) use stmt::parse_stmt;
|
<?php
namespace TYPO3\CMS\Core\Mail;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information... |
import { ZipFileUnzipped } from "./ZipFileUnzipped"
import stream from "stream"
import { createAssertNode, ScriptError, PathInfo } from "../utility"
test("assert", async () => {
const container = {
interpolator: (node) => node.value,
fs: {
ensureDir: jest.fn(async (dirPath) => {
expect(typeof d... |
package top.cnzw.kotlin.mc.iwq
import taboolib.common.platform.Plugin
import taboolib.common.platform.function.console
import taboolib.common.platform.function.getDataFolder
import taboolib.module.lang.sendLang
import top.cnzw.kotlin.mc.iwq.util.DataBaseHandler
import top.cnzw.kotlin.mc.iwq.util.WebSocketClient
objec... |
package ru.stonks.entity.bot
case class BotCommandWithInput(
botCommand: BotCommand,
userInput: Option[String]
)
|
# What did the king say he would do for the person or people who revealed the dream to him and interpreted it?
The king said he would give that person or persons gifts, a reward, and great honor.
|
#region WatiN Copyright (C) 2006-2011 Jeroen van Menen
//Copyright 2006-2011 Jeroen van Menen
//
// 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.... |
<?php
//IMathAS. Records tags/untags for messages
//(c) 2007 David Lippman
require("../init.php");
if (!isset($_GET['threadid'])) {
exit;
}
$ischanged = false;
$stm = $DBH->prepare("UPDATE imas_msgs SET isread=(isread^8) WHERE msgto=:msgto AND id=:id");
$stm->execute(array(':msgto'=>$userid, ':id'=>$_G... |
import Alt from './'
import ActionListeners from '../utils/ActionListeners'
import AltManager from '../utils/AltManager'
import DispatcherRecorder from '../utils/DispatcherRecorder'
import atomic from '../utils/atomic'
import connectToStores from '../utils/connectToStores'
import chromeDebug from '../utils/chromeDebu... |
package com.jiangkang.gradle.kotlin
object Versions {
//project settings
const val compileSdkVersion = 28
const val buildToolsVersion = "28.0.3"
const val minSdkVersion = 21
const val targetSdkVersion = 28
const val versionCode = 3
const val versionName = "3.0"
}
|
<head>
<style>
.kotak {
border-radius: 25px;
border: 2px solid #73AD21;
padding-top: 0px;
padding-left: 20px;
padding-right: 0px;
width: 300px;
height: 250px;
}
.button {
border-radius: 25px;
background-color: #4CAF50;... |
import React, { useState, useEffect } from "react";
import Permissions from 'react-native-permissions';
import {
View,
Text,
TouchableOpacity,
Image,
StyleSheet,
Alert
} from "react-native";
import { LinearGradient } from 'expo-linear-gradient';
import FontAwesome from "react-native-vector-icons... |
################################################################################
# catimg script by Eduardo San Martin Morote aka Posva #
# http://posva.net #
# ... |
import 'package:flutter/material.dart';
import 'package:flutter_const/src/constant/color.dart';
ThemeData darkTheme = ThemeData(
brightness: Brightness.dark,
// Colors
scaffoldBackgroundColor: FcColor.scaffoldBackgroundDark,
backgroundColor: FcColor.backgroundDark,
cardColor: FcColor.cardDark,
primaryColo... |
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Document;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using TestUtility;
using Xunit;
using Xunit.Abstractions;
namespace OmniSharp.Ls... |
#!/bin/bash
go get -u github.com/jstemmer/go-junit-report
oc login -u ${OCP_CRED_USR} -p ${OCP_CRED_PSW} --server=${OCP_API_URL} --insecure-skip-tls-verify=true
go test -timeout 3h -run ${TEST_CASE} -v 2>&1 | tee >($HOME/go/bin/go-junit-report > results.xml) test.log
echo "#Testing Completed#"
sleep 300 |
// Copyright 2022 VaultOperator Authors
//
// 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 ag... |
/**
@Name:全局配置
@Author:十万马
@Site:http://www.layui.com/admin/
*/
layui.define(['laytpl', 'layer', 'element', 'util'], function (exports) {
exports('setter', {
container: 'LAY_app' //容器ID
, base: layui.cache.base //记录layuiAdmin文件夹所在路径
, views: layui.cache.base + 'views/' //视图所在目录
... |
package com.github.cuzfrog.nodejs
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|
@js.native
@JSImport("child_process", JSImport.Namespace)
object ChildProcess extends js.Object {
def execSync(command: String, options: js.UndefOr[js.Object] = js.undefined): js.Object | ... |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MusicPrimitives;
using RhythmCat;
namespace RhythmCatTests {
[TestClass]
public class TestLarsonExpectedness {
[TestMethod]
public void TestExpectationVecto... |
require 'safemode'
require 'erb'
module ActionView
module TemplateHandlers
class SafeErb < TemplateHandler
include Compilable
extend SafemodeHandler
def self.line_offset
0
end
def compile(template)
src = template.source
filename = template.filename
... |
#!/usr/bin/perl
use strict;
use warnings;
use Benchmark qw( cmpthese timethese );
our $VERSION = '1.00';
my $wanttime = $ARGV[1] || 5;
use JSON qw( -support_by_pp -no_export ); # for JSON::PP::Boolean inheritance
use JSON::PP ();
use JSON::XS ();
use utf8;
my $pp = JSON::PP->new->utf8;
my $xs = JSON::XS->new->... |
<?php
use App\Models\Article;
use App\Models\Cart;
use App\Models\Client;
use App\Models\Commande;
use App\Models\Location;
use App\Models\Paiement;
function cardData($user_id)
{
$cart_data = Cart::where("client_id", $user_id)
->where("status", false)
->get();
return $cart_data;
}
function ge... |
import React from "react";
import { Icon, IconProps } from "./index";
import { withKnobs, color, select } from "@storybook/addon-knobs";
import styled from "styled-components";
import { icons } from "../shared/icons";
export default {
title: "Components/Icon",
component: Icon,
decorators: [withKnobs],
};
export co... |
import React from "react";
import { Container, Row, Col } from "react-bootstrap";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import SignupForm from "./SignupForm";
const HomeSection = () => {
return (
<header id="home-section">
<div className="dark-overlay">
<Container>
... |
# framework
require "harvesting/version"
require "harvesting/enumerable"
require "harvesting/errors"
require "harvesting/models/base"
require "harvesting/models/harvest_record"
require "harvesting/models/harvest_record_collection"
# harvest records
require "harvesting/models/client"
require "harvesting/models/user"
req... |
# Returns a comma-seperated list of all binaries with setuid
Facter.add(:privileged_commands) do
confine :kernel => "Linux"
setcode do
binaries = Facter::Util::Resolution.exec('find / -xdev -type f -perm -4000 -o -type f -perm -2000 2>/dev/null')
binaries && binaries.split().join(',')
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.