text stringlengths 27 775k |
|---|
;;; -*- Mode: Lisp; Package: Maxima; Syntax: Common-Lisp; Base: 10 -*- ;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; The data in this file contains enhancments. ;;;;;
;;; ;;;;;
;;; Copyrig... |
import login from "./login"
import refreshToken from "./refreshToken"
import getDevices from "./getDevices"
import sendText from "./sendText"
import sendURL from "./sendURL"
import sendNotification from "./sendNotification"
import sendImage from "./sendImage"
export default {
login,
refreshToken,
getDevices,
sendT... |
package restUC
import (
"errors"
"github.com/alhamsya/boilerplate-go/domain/models/request"
"github.com/alhamsya/boilerplate-go/domain/models/response"
"github.com/alhamsya/boilerplate-go/infrastructure/external/omdb"
"github.com/alhamsya/boilerplate-go/lib/helpers/config"
"net/http"
"reflect"
"testing"
"git... |
import 'package:codefest/src/models/_types.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';
part 'lecture_data.g.dart';
@JsonSerializable()
class LectureData {
@JsonKey(nullable: false)
final String id;
@JsonKey(nullable: false)
final String title;
@JsonKey(defa... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { TransportFrameComponent } from './transport-frame.component';
import { routerArray } from '../../config/global/config-router';
import { PlBillingResolver } from '../../shared/ut... |
D:\Install\Patches\psexec \\P300017 -i 2 notepad.exe
-u domain\user1
|
import * as React from 'react';
import c from 'classnames';
type IGalleryProps = {
images: Array<string>
}
export const Gallery: React.FC<IGalleryProps> = (props) => {
const [curImage, changeImage] = React.useState(0);
return (
<div className="product__images">
<div className="product__image product__image_... |
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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... |
const utils = require('./utils');
const mongoose = require('mongoose');
const Community = mongoose.model('Community');
module.exports = (options) => {
return async (req, res, next) => {
const userInfo = req.payload;
if(userInfo) {
if(options.community) {
cons... |
#!/bin/bash
version=6.0.9
sudo apt install make cmake pkg-config -y
wget -c https://mirrors.huaweicloud.com/redis/redis-$version.tar.gz
tar -zxvf redis-$version.tar.gz
cd redis-$version/
make -j$(cat /proc/cpuinfo| grep "processor"| wc -l) && sudo make install
redis-server -v
# /etc/redis/redis.conf
# /usr/loca... |
-module(kanren_test).
-include_lib("proper/include/proper.hrl").
-include_lib("eunit/include/eunit.hrl").
-import(kanren,[fail/1, succeed/1, disj/1, disj/2, conj/1, conj/2,
is_lvar/1, ext_s/3, lookup/2, unify/3,
eq/2, membero/2, conso/3, appendo/3,assq/2,lookup_deep/2,
run/1, run/2]).
fo... |
<?php
namespace myBookPlans\app\models;
use myBookPlans\app\components\Db;
use PDO;
class Library
{
/**
* Get id user library
*
* @param int $userId
*
* @return mixed
*/
public static function getIdUserLibrary($userId)
{
$db = Db::getConnection();
$sql = "SEL... |
/*
*
* Copyright 2021 Orange
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* /
*/
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(com.o... |
using UnityEngine;
public class GPUSkinningBetterList<T>
{
public T[] buffer;
public int size = 0;
private int bufferIncrement = 0;
public T this[int i]
{
get { return buffer[i]; }
set { buffer[i] = value; }
}
public GPUSkinningBetterList(int bufferIncrement)
{
... |
<!-- DataTables -->
<script src="{{asset('public/admin/bower_components/datatables.net/js/jquery.dataTables.min.js')}}"></script>
<script src="{{asset('public/admin/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js')}}"></script>
<script>
$(function () {
$('#example1').DataTable()
$('#ex... |
#include <bindings.dsl.h>
#include <git2.h>
module Bindings.Libgit2.Odb where
#strict_import
import Bindings.Libgit2.Common
import Bindings.Libgit2.Types
import Bindings.Libgit2.Oid
import Bindings.Libgit2.OdbBackend
#ccall git_odb_new , Ptr (Ptr <git_odb>) -> IO (CInt)
#ccall git_odb_open , Ptr (Ptr <git_odb>) -> CS... |
## 算法1
**(双指针移动)*O(n)***
1. 如果nums的长度是0,直接返回0;
2. 初始令pos为0,i从位置1开始遍历,若发现nums[i]和nums[pos]不相等,则说明找到新的元素,并且nums[++pos]赋值为nums[i];
3. i向后移动直到末尾;
```CPP
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int n = nums.size();
int pos = 0;
for (int i = 0; i < n; i ++)
{
... |
export declare function equalProps<T extends object>(oldProps: T, newProps: T): boolean;
|
class ApplicationController < ActionController::Base
#include ApplicationHelper
helper_method :current_user, :logged_in?
private
def current_user
@current_user ||= User.find_by_id(session[:user_id])
end
def logged_in?
current_user
end
def login_redirect
if !logged_in?
redirect... |
#pragma once
namespace rslog
{
extern std::ostream info;
extern std::ostream error;
std::ostream& info_ts();
std::ostream& error_ts();
void InitLog();
void CleanupLog();
} |
module Exercise04
(
aPlusAbsB
) where
{- Exercise 1.4
-- Observe that our model of evaluation allows
-- for combinations whose operators are compound
-- expressions. Use this observation to describe
-- the behavior of the following procedure:
(define (a-plus-abs-b a b)
((if (> b 0) + -) a b))
-}
-- if... |
class Array
#Destructive version of Enumerable#squeeze
def squeeze!
replace(squeeze)
end
end
|
codeunit 18244 "GST Journal Line Validations"
{
var
CustGSTTypeErr: Label ' You can select POS Out Of India field on header only if GST Customer/Vednor Type is Registered, Unregistered or Deemed Export.';
VendGSTTypeErr: Label 'You can select POS Out Of India field on header only if GST Vendor Type ... |
Proposal to authorize
- `5oynr-yl472-mav57-c2oxo-g7woc-yytib-mp5bo-kzg3b-622pu-uatef-uqe`
for subnet
- `snjp4-xlbw4-mnbog-ddwy6-6ckfd-2w5a2-eipqo-7l436-pxqkh-l6fuv-vae`
|
module Admin
class LevelQuizzesController < AdminController::Base
include Breadcrumbs
before_action :add_breadcrumbs
authorize_resource
expose(:level_quiz, attributes: :level_quiz_params)
expose(:level_quizzes) {
LevelQuiz.order(created_at: :desc)
}
expose(:contents) {
Neur... |
#ifndef __itkLinearHeadEddy3DCorrection_h
#define __itkLinearHeadEddy3DCorrection_h
#include <iostream>
#include "itkMatrix.h"
#include "itkTransform.h"
#include "itkExceptionObject.h"
#include "itkMacro.h"
#include "itkVersorRigid3DTransform.h"
#include "itkLinearEddyCurrentTransform.h"
namespace itk
{
template <
... |
package io.kinoplan.scalajs.react.material.ui.core
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import japgolly.scalajs.react.ReactEvent
import japgolly.scalajs.react.facade.React
import japgolly.scalajs.react.vdom.html_<^._
import io.kinoplan.scalajs.react.bridge.{ReactBridgeComponent, WithPr... |
# movie-lens-dataset-analysize
First project assignment of System Recommendation course in Taiwan, NDHU
----
## Movielens-Movie-Recommendation
MovieLens data sets were collected by the GroupLens Research Project
at the University of Minnesota.
This data set consists of:
* 100,000 ratings (1-5) from 943 users on 1... |
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
public float Speed;
private Rigidbody rb;
public string PlatTag;
private Vector3 Movement;
public bool OnGround;
public float Sensitvity;
public bool Jumpable;
public float movementSpeed;
public float Ju... |
// Copyright 2014 Cloudera, Inc.
//
// 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 ... |
=head1 LICENSE
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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/l... |
#include <iostream>
bool is_vowel(char c) {
return c == 'u' || c == 'e' || c == 'o' || c == 'a' || c == 'i';
}
int main() {
std::string input, output;
std::cout << "Enter a string: ";
std::cin >> input;
int i = 0;
while (i < input.size()) {
if (i < input.size() - 1 &&
... |
//!# Errors and Error-Handling
//!
//!# Catcher
//![`get_catcher`] should be registered in order to transform errors into Json.
//!```
//!#[launch]
//!fn rocket() -> _ {
//! rocket::build()
//! .mount("/", routes![]).
//! register("/", vec![rocketjson::error::get_catcher()])
//!}
//!```
//!# Output
//!... |
# frozen_string_literal: true
require_relative "abbyy/version"
require_relative "abbyy/client"
require_relative "abbyy/config"
require 'thor'
module Abbyy
class Runner
def initialize
# Hydrate from environment
config = Config.configure do |conf|
raise "APP_ID must be specified" unless ENV['... |
using Album.Syntax;
namespace Album.CodeGen
{
public interface ICodeGenerationStrategy {
void GenerateCodeForSong(LineInfo line);
bool SupportsLineType(LineType type);
}
} |
#shellcheck shell=sh
ksh_workaround_loaded() {
# for ksh93 and ksh2020
# These shells do not allow functions defined outside of the subshell
# to be redefined within the subshell. a hack using aliases avoids this.
shellspec_redefinable shellspec_puts
shellspec_redefinable shellspec_putsn
shellspec_redefina... |
<?php
namespace App\Helpers;
use Core\Utility;
use Exception;
class Access_control
{
public static function visitors_only(): void
{
if (isset($_SESSION['id'])) {
Utility::redirect('/');
}
}
public static function logged_only(): void
{
if (
!empty(... |
<!-- Copyright (C) 2020 by Landmark Acoustics LLC -->
# pypowerlawnoise
Generate power law noise with autoregressive models
|
package com.irondnb.chat.server.routes
import com.irondnb.chat.server.Connection
import com.irondnb.chat.server.models.Server
import com.irondnb.chat.server.messageHandler
import io.ktor.application.*
import io.ktor.http.cio.websocket.*
import io.ktor.routing.*
import io.ktor.websocket.*
fun Route.chatRoute(server: S... |
<?php
namespace Database\Seeders;
use App\Models\Vendor;
use App\Models\Priority;
use App\Models\Product;
use App\Models\Order;
use App\Models\User;
use Illuminate\Database\Seeder;
class globalSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
... |
require 'spec_helper'
describe ActiveFedora::Base do
before(:each) do
class Foo < ActiveFedora::Base
has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"foostream" do|m|
m.field "foostream", :string
end
has_metadata :type=>ActiveFedora::QualifiedDublinCoreDatastream, :name=>"dcs... |
import getBullQueue from 'bull'
import config from 'src/config'
/**
* NOTE: this service's functions are exported the way they are to enable
* certain stubbing functionality functionality for testing that relies on the
* way the module is cached and later required by dependent modules.
*/
export default {
getQu... |
:construction:
This repo is under construction! Please check the /dev branch for the latest!
Last updated: Feb 26, 2021
|
# DOM Connector library
Tiny library to draw connections between DOM element.
Still proof of concept, under development.
## NPM scripts
- `npm t`: Run test suite
- `npm start`: Runs `npm run build` in watch mode
- `npm run test:watch`: Run test suite in [interactive watch mode](http://facebook.github.io/jest/docs... |
---
title: Baseline4FixedCost Property, Project - [vbapj.chm131481]
keywords: vbapj.chm131481
f1_keywords:
- vbapj.chm131481
ms.prod: office
ms.assetid: 756f51d3-30ca-4e18-9c83-274722353b78
ms.date: 06/08/2017
ms.localizationpriority: medium
---
# Baseline4FixedCost Property, Project - [vbapj.chm131481]
Hi there! Yo... |
/*
基础数据类型。
整形:
分有符号和无符号两种类型,两种类型分别对应 int8, int 16, int 32, int 64
和 无符号 uint8, uint 16, uint32, uint64大小不同类型。
int16: -32768 到 +32767
int == int32
表示数值范围: -2,147,483,648 到 +2,147,483,647,有符号整数
int64: -9,223,372,036,854,775,808 到 +9,223,372,036,854,775,807
uint则是不带符号的,表示范围是:2^32即0到4294967295
*/
package mai... |
#!/bin/bash
g++ *.cpp ../Src/*/*.cpp -m64 -std=c++14 -O2 -o test |
#[macro_use]
extern crate rstest;
use std::time::Duration;
use bevy::asset::AssetPlugin;
use bevy::prelude::*;
use bevy_core::CorePlugin;
use benimator::*;
#[rstest]
fn repeated(mut app: App) {
let animation = app
.world
.get_resource_mut::<Assets<SpriteSheetAnimation>>()
.unwrap()
... |
package io.github.paulgriffith.tagkreator.gui.tree
import javax.swing.Icon
class SimpleValueNode(
override val text: String,
override val icon: Icon? = null,
override val parent: Node,
) : Node() {
override val children: List<Node> = emptyList()
}
|
package dfake;
public class Assert {
public static void isNotNull(Object o) {
if (o == null) {
throw new DFakeException("Object unexpectedly null");
}
}
public static void isTrue(boolean b) {
if (!b) {
throw new DFakeException("Assertion failed");
}
}
public static void isFalse(boolean b) {
if ... |
object FormUserAdd: TFormUserAdd
Left = 0
Top = 0
BorderIcons = [biSystemMenu]
Caption = 'FormUserAdd'
ClientHeight = 189
ClientWidth = 306
Color = clBtnFace
Constraints.MinHeight = 200
Constraints.MinWidth = 300
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.N... |
@extends('layouts.home')
@section('content')
<div style="width: 100%; border: 1px solid #d9edf7;padding: 10px;">
<h1>Here I have completed This problem by using laravel and upload it github</h1>
</div>
@endsection
|
@extends('master.templates.master')
@section('404error')
<div class="content-bg ">
<p class="spaced"><strong>Oh Fiddle Sticks, We Have Couldn't Find that Car...</strong></p>
<p>Did you mean to search for one of these?</p>
<div class="row">
<div class="col-sm-4">
<a href="{{URL::abs('/')}... |
#!/bin/bash
rm client.exe
rm *.o
rm response.pb.*
rm request.pb.*
rm *.exe
rm *.so
rm libRest-2.0.cc
rm -rf libraries
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.Azure.Management.Storage
{
public class OperationResult
{
public bool IsSuccessStatusCode { get; set; }
public string StatusMessage { get; set; }
}
}
|
<?php
/*
*
* (c) Yaroslav Honcharuk <yaroslav.xs@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Yarhon\RouteGuardBundle\Tests\Security\Test;
use PHPUnit\Framework\TestCase;
use Yarhon\RouteGuardBundle\Securi... |
package com.uchuhimo.konf.source.toml
import com.uchuhimo.konf.source.Source
import com.uchuhimo.konf.source.base.MapSource
class TomlMapSource(
map: Map<String, Any>,
context: Map<String, String> = mapOf()
) : MapSource(map, "TOML", context) {
override fun Any.castToSource(context: Map<String, St... |
// https://codeforces.com/contest/1196/problem/B
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int q;
cin >> q;
while(q--)
{
int n, k;
cin >> n >> k;
vector<int> arr(n, 0);
int count_odds = 0;
for (int i = 0; i < n; ++i)
{
cin >> arr[i];
count_odds += (arr[i] & 1);
}
... |
// Decompose the Toffoli gate into CNOT, H, T, and Tdagger gates. """
import { tuple } from '@/libs/util';
import Gates, { H, NOT, T } from '@/ops/gates';
import { CNOT } from '@/ops/shortcuts';
import { DecompositionRule } from '@/cengines/replacer/decompositionrule';
import { ICommand } from '@/interfaces';
const { ... |
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::FileDropper
... |
package org.grakovne.mks.impl.reader
import org.grakovne.mks.api.model.MachineState
import scala.language.higherKinds
trait StateReader[F[_]] {
def readState(): F[MachineState]
}
|
import wx
from gui import frame_alpr
myALPR = wx.App()
guiFrame = frame_alpr()
guiFrame.Show()
myALPR.MainLoop() |
---
slug: "2018-06-06-s03250-bo-be-trai-phoi-quan-kaki"
title: "Đồ bộ bé trai thun coton phối quần kaki giả jean"
cover: "https://cf.shopee.vn/file/75f373d2586a444ece717186f9497adb"
thumb1: "https://cf.shopee.vn/file/a837c30962ab3a60266b8f30a709088e"
thumb2: "https://cf.shopee.vn/file/201b9f13ea1da60481dff9bc3c4b43ed"
... |
#!/usr/bin/env bash
## THIS SCRIPT ONLY WORKS IF QMCKL HAS BEEN BUILT CORRECTLY
gfortran -c qmckl_f.f90
gfortran -ffree-line-length-none -c qmckl_test_f.f90
gfortran -o qmckl_test_f qmckl_test_f.o -L. -lqmckl
export LD_LIBRARY_PATH=../../qmckl/src/.libs:/opt/intel/oneapi/compiler/2021.3.0/linux/compiler/lib/intel64_l... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollowCollision : MonoBehaviour {
public GameObject target;
public Vector3 offset;
public float back = 0.2f ;
bool colliding = false;
Vector3 lastPosition;
// Use this for initialization
void Start () {
}
... |
'use strict'
class AbortError extends Error {
constructor (message) {
super(message)
this.code = 'FETCH_ABORTED'
this.type = 'aborted'
Error.captureStackTrace(this, this.constructor)
}
get name () {
return 'AbortError'
}
// don't allow name to be overridden, but don't throw ... |
module Pione
module Util
# ID is a set of ID generators.
module TaskID
# Make a task id by input data names and parameters.
def generate(inputs, params)
# NOTE: auto variables are ignored
param_set = params.delete_all(["I", "INPUT", "O", "OUTPUT", "*"])
inputs = inputs.map ... |
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/).
## [0.6.0.0] - TBA
### Change
- Support QuickCheck 2.7 and 2.8.... |
#!/bin/bash -xe
# This script is run within a docker container to generate release notes.
/generate_reno_report.sh $NEW_TAG reno_report.md
cat reno_report.md > all_notes.md
|
import inject from "./inject";
test("injection", () => {
const context: any = {
issue: () => ({ owner: "user", issue_number: 1, repo: "test" }),
payload: {
issue: { value: "old issue" },
pull_request: { value: "old pr" },
installation: { id: 123 },
},
github: { something: () => {} },
};
const data... |
CREATE TABLE report (
author VARCHAR(25),
command VARCHAR(15),
message VARCHAR(50),
fixed BOOLEAN
);
|
java_import 'org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader'
module Velocity
class MySqlVelocityLauncher
include VelocityLauncher
def initialize connection
loader = DataSourceResourceLoader.new
loader.setDataSource(MySqlDataSource.new "jdbc:mysql://#{connection['server']}/#... |
import { Component, OnInit } from '@angular/core';
import { LoadingController, NavController} from 'ionic-angular';
import { Geolocation } from 'ionic-native';
import { Observable } from 'rxjs/Observable';
/*
Generated class for the Map component.
See https://angular.io/docs/ts/latest/api/core/index/ComponentMeta... |
#pragma once
#include "CoreTypes.h"
#include "Misc/Guid.h"
// Custom serialization version for changes made in Dev-Framework stream
struct FFactoryGameCustomVersion
{
enum Type
{
// Before any version changes were made
BeforeCustomVersionWasAdded = 0,
// 2017-06-02: Moved mNumItems and mPickupClass into mPick... |
import { Component } from "@angular/core";
@Component({
selector: "app-notification",
template: `
<button
mat-icon-button
class="matero-toolbar-button"
[matMenuTriggerFor]="menu"
>
<mat-icon>notifications</mat-icon>
<span class="badge bg-red-500">5</span>
</button>
<m... |
# frozen_string_literal: true
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module EE
module Admin
module DashboardController
extend ActiveSupport::Concern
extend ::Gitlab::Utils::Override
LICENSE_BREAKDOWN_USER_LIMIT = 100_000
override :index
def index
super
... |
require 'spec_helper'
describe "fs_files", dbscope: :example do
let(:site) { cms_site }
let(:user) { cms_user }
let(:file) do
basename = ::File.basename(filename)
SS::File.create_empty!(
site_id: site.id, cur_user: cms_user, name: basename, filename: basename,
content_type: "image/png", model... |
# This generator converts all umlauts äÄöÖüÜ and ß in its correct html equivalent
# ü = ü Ü = Ü
# ä = ä Ä = Ä
# ö = ö Ö = Ö
# ß = ß ẞ = ẞ
# Author: Arne Gockeln
# Website: http://www.Webchef.de
module Jekyll
class UmlautsGenerator < Generator
safe true
priority :highe... |
package com.quickbirdstudios.surveykit.backend.views.questions
import android.content.Context
import android.text.InputType
import androidx.annotation.StringRes
import com.quickbirdstudios.surveykit.AnswerFormat
import com.quickbirdstudios.surveykit.R
import com.quickbirdstudios.surveykit.StepIdentifier
import com.qui... |
use strict;
use warnings;
use Data::Dumper;
use Test::More;
use Test::File::ShareDir
-share => { -dist => { 'Mail-DMARC' => 'share' } };
use lib 'lib';
use_ok('Mail::DMARC::PurePerl');
use_ok('Mail::DMARC::Result');
my $pp = Mail::DMARC::PurePerl->new;
my $result = Mail::DMARC::Result->new;
isa_ok( $result, ... |
-- Compute the powerset of a set (represented as a list)
--
-- e.g. docker run --rm -v `pwd`:/work -w /work haskell:8.0 runhaskell powerset.hs
ps :: [a] -> [[a]]
ps (x:xs) = rs ++ map (x:) rs where rs = ps xs
ps [] = [[]]
main :: IO ()
main = putStrLn $ show $ ps "abcd"
|
// later versions of Unity have a better version of this so
// comment this struct out if your version has it...
public struct Vector2Int
{
public int x;
public int y;
public Vector2Int(int x = 0, int y = 0)
{
this.x = x;
this.y = y;
}
}
|
package com.haoliang.freshday.cart.service;
/**
* @author zhouhaoliang
* @Description
* @date 2021 年 04 月 15 日 20:18
*/
public interface CartService {
}
|
package org.decaf.distributed
package common {
// Classes provide better semantics for fqcns over the wire.
class WireMessage
}
|
pub mod api;
pub mod args;
pub mod dist;
pub mod pager;
pub mod rpc;
pub mod telemetry;
pub mod types;
#[derive(Clone)]
pub struct State {
pub pool: sqlx::Pool<sqlx::postgres::Postgres>,
pub static_dir: String,
pub rpc_client: rpc::Client,
}
impl State {
pub async fn from_args(src: &args::Args) -> Sta... |
/**
* @file Gaussian.cxx
* @brief Implementation for the (1D) Gaussian class
* @author J. Chiang
*
* $Header$
*/
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include "optimizers/dArg.h"
#include "optimizers/ParameterNotFound.h"
#include "optimizers/Gaussian.h"
namespace optimizer... |
---
title: Jan 31, 2018
ref: "Discussion"
---
Good morning. And welcome to everyone who’s joining us on the Internet.
Yesterday was a day that a lot of people gave attention to—not just in
the United States but around the world as well—because a State of the
Union message was delivered.
People list... |
Dummy::Application.routes.draw do
mount HumanPower::Rails::Engine => "robots.txt"
get "sitemap.xml" => "nothing#here", as: :sitemap
get "admin" => "nothing#here", as: :admin
get "login" => "nothing#here", as: :login
resources :products
end
|
#ifndef __usb_descr_h__
#define __usb_descr_h__
#include <stdint.h>
#include "usb.h"
typedef struct _usb_decriptor_header_t
{
uint8_t bLength;
uint8_t bDescriptorType;
} __attribute__ ((packed)) usb_descriptor_header_t;
typedef struct _usb_configuration_descriptor_t
{
uint8_t bLength;
uint8_t bDescriptorType;
... |
class LocationsSearch
include ActiveData::Model
PAGE = 1
PER_PAGE = 30
attribute :zipcode, type: String
attribute :keywords, type: String
attribute :org_name, type: String
attribute :category_ids, type: Array
attribute :tags, type: String
attribute :page, type: String
attribute :per_page, type: St... |
export { default as Sidebar } from './side_bar.svelte'
export { default as SidebarController } from './controller'
// export{Sidebar, SidebarController}
// export default Sidebar
|
# ReadMe
为了方便第三方开发者快速集成微博 SDK,我们提供了以下联系方式,协助开发者进行集成:
**QQ群:284084420(此群已满)**
**263989257(IOS 请加此群)**
**邮箱:sdk4wb@sina.cn**
**微博:移动新技术**
另外,关于SDK的Bug反馈、用户体验、以及好的建议,请大家尽量提交到 Github 上,我们会尽快解决。
目前,我们正在逐步完善微博 SDK,争取为第三方开发者提供一个规范、简单易用、可靠、可扩展、可定制的 SDK,敬请期待。
# 概述
微博 IOS 平台 SDK 为第三方应用提供了简单易用的微博API调用服务,使第三方客... |
--
-- lo schema default per H2 è PUBLIC
--
CREATE TABLE PERIODO (
PERID INTEGER GENERATED BY DEFAULT AS IDENTITY,
PERANNOCOMP VARCHAR(4),
PERDESCR VARCHAR(100) NOT NULL,
PERNOTE VARCHAR(255),
PERQUOTA DECIMAL(10, 2) NOT NULL,
PERQUOTARID DECIMAL(10, 2) NOT NULL,
PRIMARY KEY (PERID));
CREATE TABLE Q... |
package com.jiang.graph.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class BaseController {
protected Logger log = LoggerFactory.getLogger(getClass());
}
|
module Resugan
class Context
def initialize(namespace = '')
@namespace = namespace.to_s
@events = {}
end
def namespace
@namespace
end
def register(event, params = {})
event = event.to_sym
payload = { params: params }
if @events[event]
@events[event] <<... |
"use strict";
var _electron = require("electron");
_electron.remote.require('./lib/proxy'); |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:talao/app/interop/secure_storage/secure_storage.dart';
import 'package:talao/app/shared/widget/base/button.dart';
import 'package:talao/app/shared/widget/base/page.dart';
import 'package:talao/l10n/l10n.dart';
impor... |
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SqlNado.Utilities;
namespace SqlNado.Tests
{
[TestClass]
public class Dictionary
{
[TestMethod]
public void PersistentDictionary_create()
{
using (var dic = new PersistentDictionary<string, int... |
@include('frontend.partials.header')
<div class="wrapper-blog">
<div id="content-con">
<div class="maincontent">
<div id="primary">
@yield('content')
</div>
<!-- primary -->
</div>
<!-- maincontent -->
</div>
@include('frontend.partials.left-sidebar')
@include('frontend.partials.right-sidebar')
... |
require "rails_helper"
RSpec.feature "mock creation", :type => :feature, :js => true do
scenario "User creates a new mock" do
visit '/'
fill_in 'mock_body', with: "{'hello':'world'}"
click_button 'Create mock now!'
expect(page).to have_content 'Mock created successfully'
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.