text
stringlengths
27
775k
package io.github.darealturtywurty.turtybot.managers.music; import java.util.List; import com.sedmelluq.discord.lavaplayer.player.AudioPlayer; import io.github.darealturtywurty.turtybot.commands.core.CommandCategory; import io.github.darealturtywurty.turtybot.commands.core.CoreCommandContext; import io.github.dareal...
CREATE DATABASE undefinedSpace; USE undefinedSpace; DROP TABLE IF EXISTS events; CREATE TABLE events ( id INT NOT NULL, description TEXT NOT NULL, PRIMARY KEY (id) ); INSERT INTO events (id, description) VALUES ('-1', 'NO_SNAPSHOT'); INSERT INTO events (id, description) VALUES ('0', 'IS_EMPTY'); INSERT...
using System; using CoreGraphics; using Foundation; using UIKit; namespace TransparentRegionInView { public partial class TransparentRegionInViewViewController : UIViewController { TransparentRegionView v; public TransparentRegionInViewViewController () : base ("TransparentRegionInViewViewController", null) ...
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CloudConsult.Consultation.Domain.Entities; [Table("DoctorTimeSlots")] public class DoctorTimeSlot { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public string Id { get; set; } [R...
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core'; import { User } from '../shared/user.interface'; import { Message, MessageId } from '../shared/notifications.service'; @Component({ selector: 'app-page-header', templateUrl: './page-header.component.html', ...
--- title: " The Gatsby Bootcamp" date: "15-02-2021" --- I am doing a new bootcamp! ## Topics Covered 1. Gatsby 2.GraphQl 3.React
package tools import ( "fmt" "os" "os/exec" "path" "runtime" "time" ) var Root = getRoot() func EchoLn() { fmt.Printf("\n") } func Echo(format string, args ...interface{}) { fmt.Printf(Now() + " " + format+"\n", args...) } func ErrorEcho(format string, args ...interface{}) { fmt.Fprintf(os.Stderr, Now() +...
require File.join('omniauth', 'strategies', 'azure_oauth2') require File.join('omniauth', 'strategies', 'azure_oauth2_v2')
class News < ActiveRecord::Base acts_as_seo_carrier acts_as_static_files_holder mount_uploader :preview, NewsPreviewUploader validates :title, :published_at, presence: true validates :slug, uniqueness: true after_initialize :set_defaults before_validation :prepare_slug scope :visibles, -> { where("...
--- layout: docu --- {% include_relative butterfly.md %}
// RarCodecsRegister.cpp #include "StdAfx.h" #include "../Common/RegisterCodec.h" #include "Rar1Decoder.h" #include "Rar2Decoder.h" #include "Rar3Decoder.h" #define CREATE_CODEC(x) static void *CreateCodec ## x() { return (void *)(ICompressCoder *)(new NCompress::NRar ## x::CDecoder); } CREATE_CODEC(1) CREATE_CODE...
# frozen_string_literal: true shared_examples 'users with note access' do it 'returns true' do users.each do |user| expect(note.system_note_with_references_visible_for?(user)).to be_truthy expect(note.readable_by?(user)).to be_truthy end end end shared_examples 'users without note access' do ...
extern crate olin; use olin::{log, runtime}; /// This tests for https://github.com/CommonWA/cwa-spec/blob/master/ns/runtime.md pub extern "C" fn test() -> Result<(), i32> { log::info("running ns::runtime tests"); log::info("expecting spec major=0 and min=0"); let minor: i32 = runtime::spec_major(); l...
(function() { 'use strict'; const PROJECT_NAME = 'myApp'; angular .module(PROJECT_NAME, [ 'ui.router', 'ngCookies', 'ngMaterial', 'ngMessages', 'ui.utils.masks', 'ui.mask', 'idf.br-filters', 'ng-currenc...
using System; using System.Collections.Generic; using TT = System.Threading.Tasks; namespace TaskEngine { public sealed class Task { private ExecMonitor currentStep; private volatile bool running; private sealed class WaitHandle : ITaskWaitHandle { private readonly ...
module Text.Pretty.Annotation where import Text.Pretty.Semantic class Annotation a where annotated :: a -> Doc -> Doc instance Annotation () where annotated () = id
import {closest} from 'shared/utils'; import Sensor from '../Sensor'; import {DragStartSensorEvent, DragMoveSensorEvent, DragStopSensorEvent} from '../SensorEvent'; const onMouseDown = Symbol('onMouseDown'); const onMouseUp = Symbol('onMouseUp'); const onDragStart = Symbol('onDragStart'); const onDragOver = Symbol('on...
(RSTOBJ::EAT-TYPED-RECORD) (RSTOBJ::EAT-TYPED-RECORDS) (RSTOBJ::TR-ALIST) (RSTOBJ::FIX-ALIST) (RSTOBJ::MAKE-$C-FIELDS) (RSTOBJ::DESTRUCTURE-DEFSTOBJ-FIELD-TEMPLATE) (RSTOBJ::MAKE-FTA) (RSTOBJ::MAKE-FTAS) (RSTOBJ::ADDITIONAL-EXEC-DEFS) (RSTOBJ::CREATOR-LOGIC-UPDATES) (RSTOBJ::SCALAR-FIXING-FUNCTION-THMS) (RSTOBJ::SCALAR...
package de.halfbit.knot3.sample.books2.model import de.halfbit.knot3.sample.books2.model.types.Book sealed class State { object Empty : State() object Loading : State() data class Content(val books: List<Book>) : State() data class Error(val message: String) : State() }
package com.kreait.slack.api.contract.jackson.group.conversations fun ConversationsSetPurposeRequest.Companion.sample() = ConversationsSetPurposeRequest("", "") fun SuccessfulConversationSetPurposeResponse.Companion.sample() = SuccessfulConversationSetPurposeResponse(true, "") fun ErrorConversationSetPurposeResponse...
This is a heavy modified fork of [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant). In your `pelican.conf` you need to do ```python from themes.purepelican.settings import * ``` Also the assets plugin is mandatory.
import * as mongoose from 'mongoose'; export const PigSchema = new mongoose.Schema( { _id: { type: String, length: 32, required: true }, shortId: { type: String, length: 10, required: true }, userId: { type: String, length: 32, required: true }, name: { type: String, length: 5, required: true }, ...
package com.rotanava.boot.system.api.module.system.vo; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.rotanava.framework.common.aspect.annotation.Dict; import lombok.Data; import java.io.Serializable; /** * 账户安全设置vo * * @author WeiQiangMiao * ...
<?hh // strict <<file: __EnableUnstableFeatures('coeffects_provisional')>> class A { <<__Rx>> public function __construct(public int $x) {} <<__Rx, __MaybeMutable>> public function f(): int { // OK to pass this as maybe mutable // OK to call maybe mutable method return $this->x + f($this) + $this->...
#!/bin/bash python test_kitti_all.py --drive 0001 python test_kitti_all.py --drive 0002 python test_kitti_all.py --drive 0005 python test_kitti_all.py --drive 0009 python test_kitti_all.py --drive 0011 python test_kitti_all.py --drive 0013 python test_kitti_all.py --drive 0014 python test_kitti_all.py --drive 0017 pyt...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file can.c * @brief This file provides code for the configuration * of the CAN instances. ****************************************************************************** * @...
package actions import ikuy_utils.{Utils, Variant} import overlord.Game import overlord.Instances.{InstanceTrait, ProgramInstance, SoftwareInstance} import java.nio.file.Path case class SoftSourceAction(override val phase: Int, cpus: Seq[String], srcPath: Path,...
import React from "react"; /** * Error page not found screen * @param {Function} t //translator i18n */ function NotfoundScreen({ t }) { return ( <div> <p data-testid="notfound-title">{t("ns404:info")}</p> </div> ); } export default NotfoundScreen;
package org.stepik.android.view.step_quiz.ui.factory import android.support.v4.app.Fragment import org.stepic.droid.persistence.model.StepPersistentWrapper import org.stepik.android.domain.lesson.model.LessonData interface StepQuizFragmentFactory { fun createStepQuizFragment(stepPersistentWrapper: StepPersistentW...
// // PersonStore.h // MVVMExample // // Created by Martin Richter on 02/05/16. // Copyright © 2016 Futurice. All rights reserved. // #import <Foundation/Foundation.h> #import <ReactiveCocoa/ReactiveCocoa.h> @interface PersonStore : NSObject - (RACSignal *)fetchPeople; @end
#ifndef CT_MATH_FLOOR_HPP #define CT_MATH_FLOOR_HPP #include <helper_functions.hpp> namespace floor_operator{ template <typename T> constexpr int checkOperator (const T a){ return ( ( (a<T(0)) && (T(static_cast<long long int>(a)) != a)) ? 1 : 0); } template <typename T> constexpr T floor...
require 'elasticsearch/dsl' module Cortex class GetContentItemsForContentTypeTransaction < Cortex::ApplicationTransaction include Elasticsearch::DSL step :search def search(params) tenant_id = params[:args][:tenant_id] || params[:active_tenant].id content_type_id = params[:content_type].id ...
require 'spec_helper' describe BestSellingBooks::Amazon do describe ".all_books" do it "stores all instances of the books that belong to it" do BestSellingBooks::Amazon.create_and_collect_books expect(BestSellingBooks::Amazon.all_books).not_to eql([]) end end end
/** * shift polify * * @method shift * @return {Object} (description_of_the_return_value) */ function shift() { "use strict"; if (this === null || this === undefined) { throw new TypeError("Array.prototype.shift called on null or undefined"); }; var returnVal = this[0], i = 1...
/* * 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...
#!/usr/bin/env ruby # # module MIDIMessage class Context attr_accessor :channel, :velocity def initialize(options = {}) @channel = options[:channel] @velocity = options[:velocity] end def note_off(note, options = {}) channel = options[:channel] || @ch...
// Copyright (c) The Starcoin Core Contributors // SPDX-License-Identifier: Apache-2.0 use crate::define_storage; use crate::storage::{CodecKVStore, ValueCodec}; use crate::{ContractEventStore, CONTRACT_EVENT_PREFIX_NAME}; use anyhow::Result; use crypto::HashValue; use scs::SCSCodec; use starcoin_types::contract_event...
using System; using System.IO; using System.Linq; using System.Text; using FluentAssertions; using Serilog.Sinks.AzureAppendBlob; using Xunit; namespace IntegrationTests { public class AzureAppendBlobSinkTests { [Fact] public void Generates_container_name_according_to_defaults() { ...
var fs = require('fs'); var url = require('url'); var tutorials = [ { title: "Karplus Strong", path: '/tutorials/1-karplus.zip', youtube: 'https://www.youtube.com/watch?v=5RYy8Cvgkqk', description: "Easy implementation of the Karplus Strong algorithm in Max" }, { title: "Step Sequencer", path: '/tutoria...
module InterfaceResponseHelper def fetch_interface_responses(interface_id = nil) redis_key = "interface_responses_#{interface_id}" interface_responses = $redis.get(redis_key) if interface_responses.blank? interface_responses = InterfaceResponse.where(:interface_id => interface_id).to_json ...
using UnityEditor; using UnityEngine; namespace HotBloodr.Editor { [CustomEditor(typeof(Transform)), CanEditMultipleObjects] public class TransformInspector : TransformResetter { private SerializedProperty m_position; private SerializedProperty m_rotation; private Seriali...
class UpdateUser include ActiveModel::Model attr_accessor :user, :email, :password def call user.update!(email: email, password: password) rescue ActiveRecord::RecordInvalid => invalid errors.merge!(invalid.record.errors) false end end
#!/usr/bin/python # Copyright 2017 Google Inc. All rights reserved. # 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 applica...
# Getting Started with the Deep Learning Toolkit for Splunk The documentation is divided into the following guides: - [User Guide](user/README.md) - [Administrator Guide](admin/README.md) - [Developer Guide](developer/README.md)
### Biyootiful dotfiles Just some basic config files that I grabbed from the web and customized - [bash](/bash) - [git](/git) - [tmux](/tmux) - [psql](/psql) - [ruby](/ruby) - [vim](/vim) MIT License
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NotificationsHandler : MonoBehaviour { static NotificationsHandler Instance; #region InstanceGetter public static NotificationsHandler NotificationsHandlerInstance { get { if (...
//File: VanHove_Labo6.cpp //Author: Timothee Van Hove //Date: 01.10.2021 //Description: Program that calculates the duration between 2 hours //Input(s) Dep. Hour [HH], Dep. minutes[MM], Arrival Hour [HH], Arrival minutes [MM] //Output(s) Duration [HH:MM] //Note(s) -Wsign-...
// The lrbody package holds the structs to be encoded as the body in POST and PUT calls // These structs are meant to serve as convenient measures assisting API calls provided by the Loginradius // Go SDK // All functions in this SDK takes interface{} as the body, but initiating your // data in the appropriate struct a...
package me.saket.dank.ui.post import dagger.Lazy import io.reactivex.Observable import io.reactivex.ObservableSource import io.reactivex.ObservableTransformer import io.reactivex.rxkotlin.Observables import io.reactivex.rxkotlin.ofType import io.reactivex.rxkotlin.withLatestFrom import me.saket.dank.ui.ReplayUntilScre...
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Commander # Copyright 2018 Keeper Security Inc. # Contact: ops@keepersecurity.com # from ldap3 import Server, Connection, ALL """Commander Plugin fo...
using System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace DatAdmin { [AttributeUsage(AttributeTargets.Class)] public class TreeExtenderAttribute : RegisterAttribute { } public interface ITreeExtender { void GetNodeExtendObjects(ITreeNode node, ...
;; $Id: errors.lisp,v 1.3 2007-01-20 18:17:55 alemmens Exp $ (in-package :rucksack) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Rucksack errors ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (define-condition rucksack-error (error) ((rucksack...
#include "workflow/WFTaskFactory.h" #include "workflow/WFFacilities.h" #include <signal.h> #include "wfrest/Compress.h" using namespace protocol; using namespace wfrest; struct CompessContext { std::string data; }; void http_callback(WFHttpTask *task) { const void *body; size_t body_len; task->get_re...
package dev.entao.kan.pinyin import android.app.Application import android.content.res.AssetManager //使用前先设置PinYin.app object PinYin { private val cacheMap = HashMap<Char, String>(25000) private var loaded: Boolean = false var app: Application? = null @Synchronized private fun preLoad() { ...
package game; import activity.Activity; import resources.ResourceManager; import resources.SimpleResourceManager; import tpa.application.Context; import java.util.HashMap; import java.util.Stack; /** * Created by germangb on 12/04/16. */ public class Game { private static Game ourInstance = new Game(); pu...
#include<stdio.h> int main() { int data[100],i,n,steps,temp; printf("Enter no. of elements to be sorted \n \t"); scanf("%d \t",&n); for(i=0;i<n;i++) { printf("%d enter element \t",i+1); scanf("%d \t",&data[i]); } for(steps=0;steps<n;++steps) { for(i=steps+1;i<n;++i) { if(data[steps]>data[i]) {...
import { ARTICLE_CHANGE_ORDER, ARTICLE_CHANGE_CATEGORY, ARTICLE_PUSH_LIST, ARTICLE_SET_LIST, ARTICLE_ADD_OFFSET, ARTICLE_INIT_PAGE } from '../actionTypes' export const initState = { category: 'frontend', order: 'heat', offset: 0, limit: 30, list: [], loadEnd: false } export default function (sta...
package com.github.jdmbotero.agendaview.model import android.graphics.Color import android.view.Gravity import java.util.* class Event { constructor(name: String = "", description: String = "", startDate: Calendar, timeInMinutes: Int = 30, color: In...
Ext.define('Jarvus.reader.Postgrest', { extend: 'Ext.data.reader.Json', alias: 'reader.postgrest', config: { totalProperty: null, successProperty: null, rootProperty: null, messageProperty: null }, buildExtractors: Ext.emptyFn, read: function(response) { ...
#!/bin/sh latex -synctex=1 -interaction=batchmode -output-directory output $1 dvips -q* -o output/$1-pics.ps output/$1.dvi ps2pdf output/$1-pics.ps $1-pics.pdf pdflatex -synctex=1 -interaction=batchmode -output-directory output $1
require_relative 'helpers' module Harfbuzz class TestFont < Minitest::Test include Setup def test_scale scale = @font.scale assert { scale.kind_of?(Array) } assert { scale.each { |v| v === Numeric && v > 0 } } end def test_ppem ppem = @font.ppem assert { ppem.kind_of...
import { InjectionToken, Provider } from '@angular/core'; import { ActionReducer, ActionReducerMap } from '@ngrx/store'; import { EntityLoaderState } from '../../../state/utils/entity-loader/entity-loader-state'; export declare function getReducers<T>(): ActionReducer<EntityLoaderState<T>>; export declare const reducer...
# frozen_string_literal: true class DeployService include ::NewRelic::Agent::MethodTracer attr_reader :user def initialize(user) @user = user end def deploy!(stage, attributes) deploy = stage.create_deploy(user, attributes) if deploy.persisted? send_sse_deploy_update('new', deploy) ...
<?php if (function_exists("tfbsql_test")){ echo "function tfbsql_test exists\n"; tfbsql_test(); }else{ echo "ERROR: function tfbsql_test does not exists\n"; } $link=null; if (function_exists("fbsql_connect")){ echo "function fbsql_connect exists\n"; $link = fbsql_connect("127.0.0.1","_system",""); echo ...
# Connect First Developer Resources * Slack Page: https://slack-files.com/T2K3YPA3D-FBN954J1E-1efab0f528 * Swagger Spec: https://portal.virtualacd.biz/api/swagger/#/ * Agent JS SDK: https://portal.vacd.biz/cfagent/doc/
import 'package:flutter/material.dart'; import 'package:nyc_experiments/app-level/helpers/constants.dart'; import 'package:nyc_experiments/app-level/screens/home.dart'; import 'package:nyc_experiments/provider/main.dart'; class Router { /// ---------------------------------------------------------- ///Creates the ...
<?php namespace App\Http\Controllers; use App\Evento; use App\Modelo; use Illuminate\Http\Request; use Inertia\Inertia; use stdClass; class HomeController extends Controller { // public function index() { $destaques = Modelo::where('ativo',1)->whereRaw("LENGTH(sobre) > 50")->orderBy('id','DESC')-...
/* * Copyright (C) 2011 The Android Open Source Project * * 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...
{- - Copyright © 2017-2018 The Charles Stark Draper Laboratory, Inc. and/or Dover Microsystems, Inc. - All rights reserved. - - Use and disclosure subject to the following license. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation fil...
#include "rpi_lib/rpi.h" #define GPFSEL1 0x20200004 #define GPSET0 0x2020001C #define GPCLR0 0x20200028 #define GPLEV0 0x20200034 #define GPPUD 0x20200094 #define GPPUDCLK0 0x20200098 int main(void){ rpi_init(); // All Input *(volatile unsigned int *)GPFSEL1 = 0; // GPIO16をOutputにセット *(volatile unsigned...
require "rails_helper" RSpec.describe Pledge, type: :model do subject(:pledge) { FactoryGirl.create(:pledge_with_campaign_and_pledger) } context "associations" do it "has a campaign" do expect(pledge.campaign).to be_a Campaign end it "has a pledger" do expect(pledge.pledger).to be_a Pledg...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
@file:Suppress("EXPERIMENTAL_API_USAGE") package org.knowledger.ledger.core.serial import kotlinx.serialization.KSerializer import kotlinx.serialization.Serializer import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.des...
package com.haishinkit.media.codec interface ByteConverter { fun convert(input: ByteArray): ByteArray }
using dropkick.Tasks.Registry; using Microsoft.Win32; using NUnit.Framework; namespace dropkick.tests.Registry { [TestFixture] [Category("Registry")] public class CreateRegistryKeyTaskTest { [Test] [Explicit] public void CanCreateRegistryKey() { const string REGISTRY_KEY = @"Software\Drop...
class Util::LinkChecker def self.check_url(url) info_log "Checking #{url}" conn = Faraday.new do |b| b.use FaradayMiddleware::FollowRedirects, limit: 3 b.adapter Faraday.default_adapter end uri = Addressable::URI.parse(url) res = conn.head(uri.normalize) do |req| req.headers['U...
<?php namespace Anavel\Crud\Tests\Models; use Illuminate\Database\Eloquent\Model; class UserTranslations extends Model { }
using System.Collections; namespace SvaSorcery.Patterns.Enterprise.InputOutput.UpdateFactory.Types { public interface IUpdateFactory<T> where T : IUpdatable { Hashtable NewUpdate(T model); } }
import React, { useState, Component } from 'react'; import {View, Text, StyleSheet, Image, TouchableOpacity, ScrollView, Button, Alert, Dimensions} from 'react-native'; import GoBack from '~assets/icons/drawable/goback.svg'; import Share from '~assets/icons/drawable/share.svg'; // temporary hardcoded data const img =...
object frmMain: TfrmMain Left = 0 Top = 0 Caption = 'TB2RightClick Example' ClientHeight = 332 ClientWidth = 510 Color = clAppWorkSpace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] OldCreateOrder = False Position = poDefault ...
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:onehour/pages/home/bloc/bloc.dart'; import 'package:onehour/widgets/TimerItem.dart'; class ListScreen extends StatefulWidget { final PageController pageController; ListScreen({this.pageController}); @overri...
<?php namespace ItsRD\Scaffy\Commands; use ItsRD\Scaffy\Generator; use Illuminate\Console\Command; class Scaffolder extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'scaffy:scaffold {name} {--template=default}'; /** ...
import { Component } from '.'; type RadioGroup = Component & { Sizes: { MEDIUM: string; NONE: string; NOT_SET: string; SMALL: string; }; displayName: 'RadioGroup'; }; export default RadioGroup;
DROP TABLE IF EXISTS user_item; DROP TABLE IF EXISTS item; DROP TABLE IF EXISTS room; DROP TABLE IF EXISTS user; CREATE TABLE user( user_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, openid VARCHAR(255) NOT NULL, nickname VARCHAR(255) NOT NULL, sex INT NOT NULL, city VARCHAR(255) NOT NULL, provin...
<?php namespace Application\Controllers; use Application\Interfaces\ViewInterface; /** * Class BaseController * @package Application\Controllers */ class BaseController { /** * @var Twig */ protected $view; /** * BaseController constructor. * * @param ViewInter...
/// <reference path="datafilter.ts" /> /// <reference path="dataviewfactory.ts" /> /// <reference path="entityinfo.ts" /> namespace net.ndrei.json { export const entityMinerRegistry: { [key: string]: EntityMiner } = {}; export abstract class EntityMiner { abstract digIntoEntity(entity: EntityInfo) : E...
--- title: 一行命令创建和删除 git 分支 date: 2017-12-04 10:16:27 description: 管理 git 分支 tags: - git --- ```sh git push origin master:v1.2.61 #创建分支 git push origin --delete v1.2.61 #删除分支 ```
/// /// Copyright (C) 2018 Andrious Solutions /// /// This program 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 Foundation; either version 3 /// of the License, or any later version. /// /// You may obtain a copy o...
[@sitecore-jss/sitecore-jss-nextjs](../README.md) / AxiosDataFetcher # Class: AxiosDataFetcher ## Table of contents ### Constructors - [constructor](AxiosDataFetcher.md#constructor) ### Properties - [instance](AxiosDataFetcher.md#instance) ### Methods - [delete](AxiosDataFetcher.md#delete) - [fetch](AxiosDataFe...
import { Injectable } from '@nestjs/common'; import { InjectEntityManager } from '@nestjs/typeorm'; import { EntityManager } from 'typeorm'; import { assertDefined } from '@marxan/utils'; import { ProjectsCrudService } from '@marxan-api/modules/projects/projects-crud.service'; import { Project } from '@marxan-api/modul...
/* ## STL 7. In a given collection(list/vector) of elements, count no.of elements smaller than their mean count no.of elements larger than their mean and return the absolute difference between both the counts */ #include<iostream> #include<vector> #include<cstdlib> using namespace std; int...
### How to improve your image builds using advance Docker build Nicholas Dille, quien es ingeniero DevOps y trabaja para Houfe Group en Alemania, habló de cómo mejorar las compilaciones de imagen de nuestro contenedor usando BuildKit. Docker sigue siendo la herramienta estándar para crear imágenes de contenedores. Du...
/** * 作者:刘灿 * 创建时间:2019/12/26 13:39 * 版本:[1.0, 2019/12/26] * 版权:LC * 描述:<#描述#> */ #import <UIKit/UIKit.h> @interface XMNavigationController : UINavigationController @end
package name.oshurkov.books.api.book import name.oshurkov.books.api.* import name.oshurkov.books.api.author.* import name.oshurkov.books.api.file.* import name.oshurkov.books.api.genre.* import name.oshurkov.books.api.sequence.* import org.hibernate.annotations.* import org.hibernate.annotations.OnDeleteAction.* impor...
// Copyright 2018 The Fuchsia 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 <fuchsia/cobalt/llcpp/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <lib/async-loop/loop.h> #include <...
CREATE TABLE IF NOT EXISTS posts ( id VARCHAR(26) PRIMARY KEY, createat bigint, updateat bigint, deleteat bigint, userid VARCHAR(26), channelid VARCHAR(26), rootid VARCHAR(26), parentid VARCHAR(26), originalid VARCHAR(26), message VARCHAR(65535), type VARCHAR(26), props V...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\authentication; class UserController extends Controller { public function Datos(){ } //Petición y codificación URL public function getJson (){ /* ===Construción del Nonc...
/* <div class="col-xl-12" id="id_m_stock_view_loader_ui"> <div class="row"> <div class="col-lg-12" style="text-align:center;"> <h4>Loading...</h4> </div> </div> </div> <div class="col-xl-12"> <div id="id_stocks_loading_progressbar"></div> </div> ModuleStockAppend.prototype.Hid...
package day3.designPatterns.flyweight; public class Client { public static void main(String[] args) { Integer a = Integer.valueOf(200); Integer b = Integer.valueOf(10); Integer c = Integer.valueOf(201); System.out.println(System.identityHashCode(a)); System.out.println(System.identityHashCode(b)); ...
/* PropertyList.cpp (c)2005 Palestar Inc, Richard Lyle */ #include "Debug/Assert.h" #include "Reflection/PropertyList.h" #include "Reflection/TypeCopy.h" #include "Standard/StringHash.h" //---------------------------------------------------------------------------- PropertyList::PropertyList( Type * pType, Type * ...