text stringlengths 27 775k |
|---|
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
import ClayTooltip from './Tooltip';
import ClayTooltipProvider from './TooltipProvider';
export {ClayTooltipProvider};
export default ClayTooltip;
|
import { Quadrants as EightBittrQuadrants } from "eightbittr";
import { FullScreenPokemon } from "../FullScreenPokemon";
/**
* Arranges game physics quadrants.
*/
export class Quadrants<Game extends FullScreenPokemon> extends EightBittrQuadrants<Game> {
/**
* Groups that should have their quadrants updated... |
# frozen_string_literal: true
module UiRules
class CartonsPerPalletRule < Base
def generate_rules
@repo = MasterfilesApp::PackagingRepo.new
make_form_object
apply_form_values
common_values_for_fields common_fields
set_show_fields if %i[show].include? @mode
edit_label_fields ... |
using Abp.Authorization.Users;
using Abp.NHibernate.EntityMappings;
namespace Abp.Zero.NHibernate.EntityMappings
{
public class UserClaimMap : EntityMap<UserClaim>
{
public UserClaimMap()
: base("AbpUserClaims")
{
Map(x => x.TenantId);
Map(x => x.UserId);
... |
package main
import (
"os"
controller "personal-blog/controller"
middleware "personal-blog/middleware"
docs "personal-blog/docs"
"github.com/gin-gonic/gin"
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
)
func main() {
docs.SwaggerInfo.Title = "Swagger Example API"
docs.... |
import camelCase from "./index.js";
import { addPrototype } from "../../utils.js";
declare global {
interface String {
camelCase(): string;
}
}
/**
* Converts the string to camelcase
* @memberof String.prototype
* @function camelCase
* @returns {String}
* @example
* "some_database_field_name".camelCase(... |
pub trait Day {
fn part1(&self, input:&str) -> String;
fn part2(&self, input:&str) -> String;
}
|
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../utils.sh"
export OH_MY_TMUX_LOCATION="$HOME/.local/oh-my-tmux"
print_in_purple "\n Oh my tmux\n\n"
if [ -f "$OH_MY_TMUX_LOCATION/.git/config" ]; then
print_success "oh-my-tmux"
else
execute "git clone https://github.com/gpakosz/.tmux.git '$OH_... |
:- dynamic running/2.
:- dynamic jobid/1.
jobid(0).
resource(node1, 1, linux).
resource(node2, 4, linux).
resource(node3, 1, macos).
current_jobs(Node, Jobs) :-
findall(J, running(Node, J), Jobs).
current_capacity(Node, Capacity) :-
resource(Node, Max_C, _),
current_jobs(Node, Jobs),
length(Jobs, Num_J),
... |
#!/bin/sh
cd code
git clone https://github.com/zhaomingli007/coinbase_price.git
#Extract and Talend data pipeline scripts
mkdir talend_runtime
unzip coinbase_price/data_ingestion/batch/Talend_run/main_pipeline_0.1.zip -d ./talend_runtime
chmod -R +rx ./talend_runtime
talend_runtime/main_pipeline/main_pipeline_run.sh -... |
class fun:
a=2
def __init__(self):
self.x=3
self.y=4
def display(self):
print(self.x,self.y)
def __del__(self):
print("object is deleted ")
def __cmp__(self,other):
if(self.x==other.x):
print("comparable")
... |
package com.work.lazxy.writeaway.mvpframe.concrete.planning
import android.util.Log
import com.work.lazxy.writeaway.entity.PlanningEntity
import com.work.lazxy.writeaway.mvpframe.base.BaseObserver
/**
* Created by Lazxy on 2017/2/22.
*/
class PlanningPresent : PlanningContract.Presenter() {
override fun getPlan... |
# rgooglefit 0.0.0.9000
* Add `get_sessions` to access sessions data.
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/customtabs/client_data_header_web_contents_observer.h"
#include "chrome/common/chrome_render_frame.mojom.h"
#include "co... |
struct FASTPIX3D_API Vertex
{
public:
Vector3f Position;
Vector3f Normals;
Vector2f TextureCoordinates;
Color VertexColor;
Vertex();
Vertex(Vector3f position);
Vertex(Vector3f position, Vector3f normals);
Vertex(Vector3f position, Vector3f normals, Vector2f textureCoordinates);
Vertex(Vector3f pos... |
using System;
using System.Linq;
using Isabelle.Ast;
namespace Isabelle.IsaPrettyPrint
{
public class TypeIsaPrettyPrinter : TypeIsaVisitor<string>
{
public override string VisitVarType(VarType t)
{
return IsaPrettyPrinterHelper.Parenthesis("\'" + t.Name);
}
... |
require './views/base'
module Views
class BidBox < Base
needs :current_player
needs :game
def content
props = {
id: 'bid_box',
style: inline(margin_top: '1em'),
}
bid = game.current_bid
game_form props do
price_props = {
id: 'bid_price',
... |
#include"RL_Voice68.h"
VOICE_68::VOICE_68(uint8_t pin){
_pin=pin;
}
void VOICE_68::begin(){
pinMode(_pin, OUTPUT);
}
void VOICE_68::send_data(uint8_t addr)
{ int i; digitalWrite(_pin , LOW);
delay(3); //>2ms
for (i = 0; i < 8; i++)
{ digitalWrite(_pin, HIGH);
if (addr & 1) {
dela... |
# Generated by Django 3.1.5 on 2021-02-05 14:37
from django.db import migrations
def createFirstThread(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
# version than this migration expects. We use the historical version.
Thread = apps.get_model('backend', 'Thread')
... |
#!/bin/bash
#
# Load project/RootBuild.scala and generates pom.xml for all the sub-projects.
# This should NOT normally be run by developers. Rather it is to be run once in a while
# by maintainers, and the resulting pom.xml checked into the repo for mvn use by developers.
#
BINDIR="`dirname $0`"
cd "$BINDIR"/..
SBT=... |
/*
* Copyright 2018-2019 The NATS 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 agreed ... |
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="utf-8">
</head>
<body>
<a href="{{ url('/') }}">
@if (TypiCMS::hasLogo())
@include('core::public._logo')
@endif
</a>
<h2>@lang('Thank you for your contac... |
package projection
import (
"encoding/json"
"io"
"sort"
"sync"
"github.com/inklabs/rangedb"
)
type aggregateTypeStatusData struct {
TotalEventsByAggregateType map[string]uint64 `json:"totalEventsByAggregateType"`
LatestGlobalSequenceNumber uint64 `json:"latestGlobalSequenceNumber"`
TotalEvents ... |
require "securerandom"
require "double_bag_ftps"
require "net/sftp"
require "net/ftp"
require 'streamio-ffmpeg'
module RestFtpDaemon
class InvalidWorkerNumber < BaseException; end
class QueueCantCreateJob < BaseException; end
class JobException < BaseException; end
class JobNotFound ... |
---
authorName: Xavier Abadia
canDelete: false
contentTrasformed: false
from: '"Xavier Abadia" <xabadiar@...>'
headers.inReplyToHeader: PGoyMDhjOStraTE2QGVHcm91cHMuY29tPg==
headers.messageIdInHeader: PGoyMHNrMitiaDZkQGVHcm91cHMuY29tPg==
headers.referencesHeader: .nan
layout: email
msgId: 2029
msgSnippet... |
using System;
using System.Threading.Tasks;
using Apollo.Api.Authorization;
using Apollo.Api.Controllers.Base;
using Apollo.Core.Dto;
using Apollo.Core.Interfaces;
using Apollo.Util;
using Apollo.Util.Logger;
using Microsoft.AspNetCore.Mvc;
namespace Apollo.Api.Controllers
{
public class UserController : ApiContr... |
package com.abilists.bean.model.join;
import java.io.Serializable;
public class MTechJoinUserTechModel implements Serializable {
private static final long serialVersionUID = 1L;
private int mtNo;
private String mtSkill;
private String mtName;
private String utKind;
private String utLevel;
public int getMtNo... |
package RapidApp::Template::Controller;
use strict;
use warnings;
use RapidApp::Util qw(:all);
use Try::Tiny;
use Template;
use Module::Runtime;
use Path::Class qw(file dir);
use URI::Escape;
# New unified controller for displaying and editing TT templates on a site-wide
# basis. This is an experiment that breaks wit... |
set -euxo pipefail
bash docker-build.sh
pushd ../nakama
bash docker-build.sh
kubectl delete -f kubernetes/04-nakama-deployment.yml
kubectl apply -f kubernetes/04-nakama-deployment.yml
popd
|
#!/bin/bash
./analyze_xproduct.sh path/to/log_file_excluding_extension num_agents
# eg for file pool3.log with a pool of 3 agents
# ./analyze_xproduct.sh path/to/pool3 3
|
package org.deta.tinos.hash;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import org.json.JSONObject;
import org.json.XML;
public class HashSwap{
public static String hashTableToJson(Gson gson
, Hashtable<String, Obj... |
namespace Dolittle.Serialization.Json.Specs.for_Serializer
{
using System;
using System.Collections.Generic;
using System.Linq;
using Machine.Specifications;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Dolittle.PropertyBags;
using Dolittle.Concepts;
using Serialization.... |
using System;
using System.Collections;
using NUnit.Framework;
using NUnit.Framework.Constraints;
#pragma warning disable 1584,1711,1572,1581,1580
namespace NUnit.StaticExpect
{
public static partial class Expectations
{
/// <summary>
/// Returns a constraint that tests whether a collectio... |
package net.slingspot.io
import java.io.File
import java.io.IOException
public class DefaultFileSystem : FileSystem {
override val separator: String = File.separator
override fun fileAt(path: String): FileRef {
return DefaultFileRef(path)
}
override fun textFileAt(path: String): TextFileRef ... |
const ajax = require('./ajax')
const FIX_URL = require('../utils').getFIX_URL()
exports.login = (data) => ajax('/login', data)
exports.getDynamic = (data) => ajax('/v2/getConditionDynamic', data)
exports.getDetailDynamic = (data) => ajax('/v2/getDetailDynamic', data)
exports.getConditionComment = (data) => ajax('/v... |
package aic.gas.mas.model;
import aic.gas.mas.model.metadata.DesireKey;
/**
* Contract defining method to be implemented by each class which wants enable user to get desire
* key associated with class
*/
public interface DesireKeyIdentificationInterface {
/**
* Returns DesireKey associated with this instance... |
"""
Senta model.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import json
import numpy as np
import paddle.fluid as fluid
class SentaConfig(object):
"""
Senta Config
"""
def __init__(self, config_path):
self._confi... |
// <Snippet1>
#define _WINSOCKAPI_
#include <windows.h>
#include <sal.h>
#include <httpserv.h>
// Create the module's global class.
class MyGlobalModule : public CGlobalModule
{
public:
GLOBAL_NOTIFICATION_STATUS
OnGlobalPreBeginRequest(
IN IPreBeginRequestProvider * pProvider
)
{
UNREF... |
package modbat.mbt
import modbat.config.ConfigMgr
import modbat.config.Version
import modbat.log.Log
object Main {
val config = new Configuration()
def main(args: Array[String]) {
Modbat.isUnitTest = false
System.exit(run(args))
}
def run(args: Array[String]): Int = {
var modelClassName: String ... |
<?php
/** @noinspection PhpUndefinedClassInspection */
namespace App\Http\Controllers;
use App\Models\Configs;
use App\Models\Logs;
use App\Models\Photo;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Config;
use Illuminate\View\View;
class ViewController extends Controller
{
/**
* Just the construc... |
import React, { useContext } from "react";
import { ActionTypes, ModalsContext } from "modules/explorer/ModalsContext";
import { useParams } from "react-router";
import { PrimaryButton } from "modules/explorer/components/styled/PrimaryButton";
import { TemplateHeader } from "modules/explorer/components/TemplateHeader";... |
from color import get_color_from_screen_pixel,set_color_board_horizontal
from . import utils
def light_screen_rainbow_horizontal(board):
color = get_color_from_screen_pixel()
set_color_board_horizontal(board.board,color)
utils.apply_light(board) |
/*
* Copyright 2016 Azavea
*
* 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 in wr... |
import { Provider } from "react-redux";
import store from "store/index";
import "./Katip.scss";
import Navigation from "../layout/Navigation";
import Footer from "../layout/Footer";
import ActionsMenu from "./actions-menu/ActionsMenu";
import Cirak from "./Cirak";
import LHSWidgets from "./LHSWidgets";
import NoteShe... |
export interface InterfaceAssetTest {
id?: string | null;
created_at?: Date;
updated_at?: Date;
completed_at?: Date;
asset_id: string;
answered_count: number;
capabilities: {[category_capability_id: string]: string};
}
|
<?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| ... |
Rails.application.routes.draw do
mount Nestedcomments::Engine => "/nestedcomments"
end
|
package exercises.part3concurrency
object JvmThreadLiveLock extends App {
case class Friend(name: String){
var side = "right"
def switchSide(): Unit = {
side = if (side == "right") "left" else "right"
}
def pass(other: Friend): Unit = {
while(this.side == other.side) {
println(... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
using SSBHLib.IO;
namespace SSBHLib.Formats.Meshes
{
public enum SsbVertexAttribFormat
{
Float = 0,
Byte = 2,
HalfFloat = 5,
HalfFloat2 = 8,
}
[SsbhFile("HSEM")]
public class Mesh : SsbhFile
{
public uint Magic { get; set; } = 0x4D455348;
publi... |
; Copyright (c) Rich Hickey, Reid Draper, and contributors.
; All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.... |
<?
$MESS["USER_TYPE_MONEY_NO_CURRENCY"] = "Empty currency";
$MESS["USER_TYPE_MONEY_NO_VALUE"] = "Empty sum";
?> |
---
layout: post
title: Weekly Meeting Minutes 2020-11-20
date: 2020-11-20 12:00:01 -0600
category: minutes
---
Weekly community meeting minutes.
No new issues.
Will propose idea of moving meeting time on dev@m.a.o
|
package org.jetbrains.plugins.scala.lang.resolve
import org.jetbrains.plugins.scala.base.ScalaLightCodeInsightFixtureTestAdapter
import org.jetbrains.plugins.scala.project.settings.ScalaCompilerConfiguration
import org.jetbrains.plugins.scala.{ScalaVersion, Scala_2_13}
class YimportsResolveTest extends ScalaLightCode... |
#!/bin/bash
#----------------------------------------
# OPTIONS
#----------------------------------------
DAYS_TO_KEEP=3 # 0 to keep forever
WWW_PATH='/var/www'
BACKUP_PATH='/backup/www'
#----------------------------------------
# Create the backup folder
if [ ! -d $BACKUP_PATH ]; then
mkdir -p $BACKUP_PATH
fi
#... |
namespace QFramework.GraphDesigner
{
public interface ICommandProgressEvent
{
void Progress(ICommand command, string message, float progress);
}
} |
//------------------------------------------------------------------------------
// This file is part of the DarkGlass game engine project.
// More information can be found here: http://chapmanworld.com/darkglass
//
// DarkGlass is licensed under the MIT License:
//
// Copyright 2018 Craig Chapman
//
// Permission is ... |
package org.babyfish.kimmer.sql.meta.config
data class Column(
val name: String = "",
val length: Int? = null,
val precision: Int? = null,
val scale: Int? = null,
val onDelete: OnDeleteAction = OnDeleteAction.NONE
): Storage |
JSString* py2js_jsstring_c(JSContext* cx, PyObject* str)
{
PyObject* encoded = NULL;
char* bytes;
Py_ssize_t len;
if(!PyUnicode_Check(str))
{
return NULL;
}
encoded = PyUnicode_AsEncodedString(str, "utf-16", "strict");
if(encoded == NULL)
{
return NULL;
... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class WardDischargesRecordController extends Controller
{
public function index()
{
$ward_discharges= DB::table('ward_discharges')
->join('ward_admissions','w... |
Switch Cover
============
Introduction
------------
This is a 3D printable switch cover that that covers a power strip switch and
hopefully offers a strong enough message to prevent people with itchy fingers
from turning them off.
I built this after someone switched my office server off for the umpteenth time.
If th... |
# bejson验证
json验证工具,同时可以json格式化操作。输入json数据,校验即可。

|
import { connect } from 'react-redux';
import {
signIn,
signUp,
verifyUser,
undoCodeVerification,
verifyCode,
forgotPassword,
resetPassword,
sendNewCode,
toggleLoading,
showNotification,
} from '../../actions';
import { AuthWithStyles } from './AuthWithStyles';
const mapStateToProps = (state: any) ... |
#include "coalitional_values_generator_trap.h"
void coalitional_values_generator_trap::reset(uint32_t n_agents, uint32_t n_tasks, int seed)
{
if (seed >= 0)
{
generator.seed(seed); // Used to generate samples.
}
task_trap_generators.resize(n_tasks);
for (uint32_t t = 0; t < n_tasks; ++t)
{
for (uint32_t i =... |
#include "processor.h"
// Return the aggregate CPU utilization
double Processor::Utilization() {
std::vector<string> v = LinuxParser::CpuUtilization();
if (!v.empty()) {
double total{1.0}, idle{1.0};
std::for_each(v.begin(), v.begin() + 8, [&](string s){ total += std::stod(s); });
std:... |
# prequel-examples
Source code examples written in [Prequel](https://prequel-lang.org).
|
(ns zookeeper-exp1.service-test
(:require [zookeeper-exp1.test-util :as tu]
[clojure.test :refer :all]
[zookeeper :as zk]
[zookeeper.util.zk :as util]
[zookeeper-exp1.service :refer :all]))
(use-fixtures :once tu/setup-embedded-zk)
(deftest a-test
(testing "FIXME, I... |
package DDG::Goodie::Constants;
# ABSTRACT: Various Math and Physics constants.
use DDG::Goodie;
use YAML::XS qw( LoadFile );
zci answer_type => "constants";
zci is_cached => 1;
name "Constants";
description "Provides the value, unit, symbol and other information for Mathematical and Scientific constants";
primary_... |
const { createFixture } = require('spire-test-utils');
const { stat, readFile } = require('fs-extra');
const { join } = require('path');
const configWithEslintPlugin = (options = {}) =>
JSON.stringify({
name: 'spire-plugin-eslint6-test',
spire: {
plugins: [[require.resolve('spire-plugin-eslint6'), opti... |
#!/usr/bin/env python
"""Scans for pages content and checks for errors."""
import logging
import requests
from bs4 import BeautifulSoup
import language_tool_python
# Global settings
logging.basicConfig(filename='mylog.log', encoding='utf-8')
tool = language_tool_python.LanguageTool('en-US') # use a local server (a... |
MATCH (ty:TYPE {type: "schema:CodeRepository"})
MATCH (tyt:TYPE {type: "TextualBody"})
MATCH (mv:MOTIVATION) WHERE mv.term="linking"
MATCH (aty:AGENTTYPE {type:"Person"})
MERGE (ob:OBJECT {id: toInteger($ghid),
url: $ghurl,
description: $ghdescription,
name: $ghname... |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Support for observing changes in model-view architectures.
*
* **Warning:** This library is ex... |
- Use [[CloudFront]] as bridge between customer and [[Lambda]]
![[Pasted image 20210701115028.png]] |
# Design Research
This folder acts to collate and point to information and feedback about the Design of the platform.
|
package leo.modules.relevance_filter
import leo.datastructures.tptp.Commons.AnnotatedFormula
import scala.collection.mutable._
/**
* Created by mwisnie on 3/9/16.
*/
class FuncFrequency {
val symbols : Map[String, Int] = HashMap[String, Int]()
/**
* Updates every smybol in a formula.
*
* @param ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB;
class AccountApproval extends Model
{
public function scopeGetAccount(){
$query = DB::table('users')
->where('is_approved', 0)
->select('user_id','first_name','last_name','email','created_at')
->get();
r... |
import { composable } from '../compose'
const prefix = composable('prefix', () => ({ $el: null }))
export default prefix
|
#!/usr/bin/env perl
#
# Module to parse Affymetrix binary data files.
#
# Tim Rayner 2004, ArrayExpress team, European Bioinformatics Institute
#
# $Id: GDAC_CDF.pm 2081 2008-06-14 22:00:45Z tfrayner $
#
=pod
=begin html
<div><a name="top"></a>
<table class="layout">
<tr>
<td class="whitetitle" wid... |
#!/usr/bin/env bash
(cd root-html-file && npm start) &
(cd navbar && ng serve --port 4203 --publicHost http://localhost:4203 --disable-host-check) &
(cd app1 && ng serve --port 4201 --publicHost http://localhost:4201 --disable-host-check) &
(cd app2 && ng serve --port 4202 --publicHost http://localhost:4202 --disable-... |
package client
import (
"context"
"fmt"
"github.com/google/go-github/github"
"github.com/pkg/errors"
"golang.org/x/oauth2"
)
type githubClient struct {
client *github.Client
}
// NewGitHub returns a github client implementation
func NewGitHub(token string) (Client, error) {
ctx := context.Background()
ts :... |
# docker-pytest-allure
Dockerfile for creating docker image for runing pytest with allure
## Usage Example
```shell
$ docker build -t pytest-alpine .
$ docker run --rm pytest-alpine python3 -m pytest --version
```
Once you have run this command you will get pytest version. Or use it interactivelly:
```shell
$ docker r... |
package astar
import kotlin.test.Test
import kotlin.test.assertEquals
class GridTest {
@Test
fun testNeighbors() {
val grid = GridMap(8, 8)
grid.neighbors(GridNode(0,0)).let {
assertEquals(3, it.size)
assertEquals(setOf(GridNode(1,0), GridNode(1,1), GridNode(0,1)), it.toSet()) // any order
... |
package io.stoys.spark.dq
import io.stoys.scala.{Arbitrary, Jackson}
import io.stoys.spark.test.SparkTestBase
import org.apache.spark.sql.functions.monotonically_increasing_id
class DqAggregatorTest extends SparkTestBase {
import DqAggregator._
import sparkSession.implicits._
test("DqAggregator") {
val inp... |
'use strict';
require('./toggle.scss');
require('./toggle.html');
angular
.module('app')
.component('toggle', require('./toggle.component.js'));
|
# Video Text Scanner
Scan a video file at defined frame or timespan for text.
## Algorithm
1. Read a video file to memory.
2. Declare an appendable data structure `FOUND_TEXT` for storing found text.
3. Iterate over the given timespan (single frame is handled as a timespan with
length of 1) with the set time inte... |
<?php
/**
* @link https://github.com/ixocreate
* @copyright IXOLIT GmbH
* @license MIT License
*/
declare(strict_types=1);
namespace Ixocreate\Admin\Config\Client;
final class ClientConfig implements \JsonSerializable
{
/**
* @var array
*/
private $config;
public function __construct(array... |
#include <iostream>
//#include <array>
#include <typeinfo>
using namespace std;
class Base
{
public:
Base()
{}
~Base(){}
void dis1()
{
cout<<"dis1"<<endl;
}
void dis2()
{
cout<<"dis2"<<endl;
}
};
class BaseA : private Base
{
public:
using Base::dis1; //需要在Bas... |
duilib-Ex-Debug
===============
DuiLib的Bug修正和扩展库,修正了原库中大量的bug和改善设计工具(提高其稳定性)。
@1:duilib-Ex-Debug 项目说明:
http://blog.csdn.net/x356982611/article/details/38781403
@2:常见错误的排除
http://blog.csdn.net/x356982611/article/details/30217473
最近写了一个虚拟键盘的程序,可以在xp win7上用,鼠标进入编辑框可自动弹出。
https://github.com/CodeBees/virtualkeyboard
添加一... |
use serde::{Deserialize, Serialize};
use std::convert::TryInto;
use std::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Sub, SubAssign};
use std::{
fmt::{Display, Formatter, Result},
mem::swap,
ops::{Index, IndexMut, Neg},
panic,
};
use crate::prelude::{transpose, Dot};
use super::super::utils:... |
/*dependencies */
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
/*components*/
import './App.css';
import LoginForm from './components/Login';
import PrivateRoute from './utils/PrivateRoute';
import Navigation from './components/Navigation';... |
package com.momentolabs.app.security.applocker.ui.newpattern
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import com.andrognito.patternlockview.PatternLockView
import com.... |
//
// ValidationError.h
// VrInteractiveTracking
//
// Created by 髙橋和成 on 11/10/18.
// Copyright © 2018 VideoResearch. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
検証例外クラス
*/
@interface ValidationError : NSException
/**
Custom Exception
@param msg メッセージ
@return NSException
*/
+ (NSExcepti... |
use expression::AsExpression;
use expression::helper_types::AsExprOf;
use expression::operators::{Escape, Like, NotLike};
use types::VarChar;
/// Adds the `escape` method to `LIKE` and `NOT LIKE`. This is used to specify
/// the escape character for the pattern.
///
/// # Example
///
/// ```rust
/// # #[macro_use] exte... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class voteController extends Controller
{
public function __construct(){
$this->middleware('auth');
}
public function index(){
return view('vote');
}
public function vote(Reques... |
<?php
namespace Mitosis\Order\Models;
use Konekt\Concord\Proxies\EnumProxy;
class OrderStatusProxy extends EnumProxy
{
}
|
Create table If Not Exists Prices (product_id int, start_date date, end_date date, price int);
Create table If Not Exists UnitsSold (product_id int, purchase_date date, units int);
Truncate table Prices;
insert into Prices (product_id, start_date, end_date, price) values ('1', '2019-02-17', '2019-02-28', '5');
insert i... |
<?php
use yii\widgets\LinkPager;
use yii\helpers\Url;
use yii\helpers\Html;
?>
<div class="col-md-12 manifestation_index_title">
<h2>Объявления</h2>
</div>
<?php foreach ($model as $row){ ?>
<div class="col-md-12 manifestation_index_content">
<div class="col-md-3 manifestation_index_content_image">
... |
# C3CTF 2017
[CTFtime Event](https://ctftime.org/event/544)
[CTFtime Writeups](https://ctftime.org/event/544/tasks/)
[CTFium](https://github.com/sajjadium/CTFium/tree/master/C3CTF/2017)
| Challenge | Info | Exploitation | Links |
|:-----------:|--------------------|----------------------... |
export async function postAnki(req: AnkiRequest): Promise<AnkiResponse> {
// TODO: Make this configurable.
const url = "http://localhost:8732/anki";
const response = await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(req),
});
return... |
import { QueryRegistry, WorkerMessage } from '../messaging';
import { BaseContext } from './BaseContext';
import { Work } from './Work';
/* eslint-disable @typescript-eslint/no-explicit-any */
export type WorkerMessageMiddleware<
TQueryRegistry extends QueryRegistry<{}>,
TContext extends BaseContext<TQueryRegi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.