text
stringlengths
27
775k
import React from 'react' import { Tablist, Tab } from 'evergreen-ui' import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light' import js from 'react-syntax-highlighter/dist/languages/javascript' import syntaxStyle from './syntaxStyle' import styles from './App.css' registerLanguage('ja...
<?php namespace App\Containers\Applies\Data\Repositories; use App\Ship\Parents\Repositories\Repository; /** * Class AppliesRepository */ class AppliesRepository extends Repository { /** * @var array */ protected $fieldSearchable = [ 'id' => '=', 'company_id' => '=', 'seek...
#include <iostream> #include <vector> #include <algorithm> using namespace std; class Solution { public: bool searchMatrix(vector<vector<int> >& matrix, int target) { if (matrix.empty()) return false; if (matrix.size() == 1) return binary_search(matrix.front().begin(), matr...
class Lista attr_reader :cabeza, :cola include Enumerable def initialize(nodes) for i in 0..nodes.length-1 do nodes[i]=Node.new(nodes[i],nil,nil) end j = nodes.length j -= 1 @cola = nodes[0] @cabeza = nodes[j] if j > 1 @cola.next = nodes[1] for i in 1..j-1 do...
#!/usr/bin/env bash defaults write otest CKFTPTestURL MockServer defaults write otest CKWebDAVTestURL MockServer defaults write otest CKSFTPTestURL MockServer
export class CD{ constructor(nome,artista,faixas,anoLancamento){ this._nome=nome; this._artista=artista; this._anoLancamento=anoLancamento; this._faixas=faixas; ouvidoPorInteiro=false; faixasOuvidas=0; } get nome(){ return this._nome; } ...
// Copyright (C) MongoDB, Inc. 2014-present. // // 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 package mongoimport import ( "io" "testing" "...
// tslint:disable:no-bitwise export interface IPersonaProfile { id: string; displayName?: string; jobTitle?: string; department?: string; email?: string; businessPhone?: string; imAddress?: string; officeLocation?: string; city?: string; companyName?: string; } export enum Sho...
<?php namespace App\Http\Controllers; use App\Models\todolist; use Illuminate\Http\Request; use Illuminate\Validation\Validator; class TodolistController extends Controller { public function showAllData(){ return view('fetchedData')->with('todoArray', todolist::paginate(10)); } public function d...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MemeticApplication.MemeticLibrary.Heuristics { public enum AvailableHeuristics { SIMULATED_ANNEALING = 0 // default heuristics } }
--- title: '接口和数据安全' --- ## MD5、SHA1的引用场景 ## 接口幂等性的实现方法 ## 对称加密和非对称加密的算法原理 ## 保证通信安全又哪些手段:请求防篡改、Https、IP验证、终端校验 ## Web API接口安全手段:认证和鉴权、加密和签名、访问频次限制、漏洞、注入攻击、敏感数据泄露、越权访问
main :: IO () main = do contents <- readFile filename case drop 6 $ lines contents of [] -> error "File has less than seven lines" l:_ -> putStrLn l where filename = "testfile"
2021年01月03日11时数据 Status: 200 1.于正 微博热度:4778736 2.小伙因买内衣不合适迎亲被拒 微博热度:3480205 3.王力宏说王一博这孩子不得了 微博热度:2416361 4.易烊千玺两部电影里都剃了光头 微博热度:1663000 5.夏东海的儿子都喜欢戴头套 微博热度:1567742 6.新冠病毒疫苗接种须知 微博热度:1466564 7.河北疫情 微博热度:1118986 8.爱尔眼科 微博热度:1091044 9.数百人不戴口罩参加特朗普跨年派对 微博热度:1085878 10.广东从英国输入病例发现B.1.1.7突变株 微博热度:1084700 ...
/** * ap - Abstract product * Declares an interface for a type of product object. */ package com.gof.creational.abstract_factory.ap;
package ru.proshik.english.quizlet.telegramBot.queue import org.apache.log4j.Logger import org.springframework.stereotype.Component import java.util.concurrent.LinkedBlockingDeque @Component class NotificationQueue : Queue { companion object { private val LOG = Logger.getLogger(NotificationQueue::class....
<?php /* * File: * src/Templates/Admin/Dashboard/index.ctp * Description: * Administration - Dashboard * Layout element: * -- */ // Page title $this->assign('title', __d('elabs', 'Dashboard')); // Breadcrumbs $this->Html->addCrumb($this->fetch('title')); echo $this->element('layout/dev_block');
// // BXCommentView.h // BXlive // // Created by bxlive on 2019/5/6. // Copyright © 2019 cat. All rights reserved. // #import <UIKit/UIKit.h> #import "BXHMovieModel.h" #define CommentViewTag 10099 @protocol DynCommentViewDelegate <NSObject> //关闭 - (void)deleteCommentView; //点击头像和昵称跳转个人主页 - (void)toPersonHomeWit...
from reportlab.pdfgen import canvas from reportlab.platypus import SimpleDocTemplate class NumberedCanvas(canvas.Canvas): def __init__(self, *args, **kwargs): canvas.Canvas.__init__(self, *args, **kwargs) self._codes = [] def showPage(self): self._codes.append({'code': self._code, 'stac...
<?php namespace FilippoToso\Travelport\GDSQueue; class Criteria { /** * @var anonymous1188 $Order */ protected $Order = null; /** * @var anonymous1189 $Type */ protected $Type = null; /** * @param anonymous1188 $Order * @param anonymous1189 $Type */ public...
(ns p4f.routes.auth (:require [p4f.resources.auth :refer [signup]] [compojure.core :refer [ANY]])) (def auth-routes (ANY "/signup" [] (signup)))
#!/bin/bash chmod +x * source ./hash_id.conf awk '{ print $0 }' | python ./hash_id.py ${TEST_HASH_NUM}
fname = '/home/dmalt/Data/cognigraph/data/Koleno.vhdr' # --------- prepare channels ------------ # ch_path = '/home/dmalt/Data/cognigraph/channel_BrainProducts_ActiCap_128.mat' ch_struct = loadmat(ch_path) kind = ch_struct['Comment'][0] chans = ch_struct['Channel'][0] ch_locs = np.empty([len(chans), 3]) ch_types = [...
import { Matrix, MatrixArrayTypes } from '../core/matrix'; import { NeuralFunction } from './function'; import { NeuralSigmoidFunction } from './functions/sigmoid'; import { NeuralLayer } from './layer'; /** * All neural input types. */ export type NeuralInputTypes = MatrixArrayTypes | number[]; /** * Neural netwo...
/* gg_shape.c -- Gaia shapefile handling version 4.3, 2015 June 29 Author: Sandro Furieri a.furieri@lqt.it ------------------------------------------------------------------------------ Version: MPL 1.1/GPL 2.0/LGPL 2.1 The contents of this file are subject to the Mozilla Public License Version 1.1 (th...
using Api.Models; using Microsoft.EntityFrameworkCore; namespace Api.Data { public class TwitterContext : DbContext { public TwitterContext(DbContextOptions<TwitterContext> options) : base(options) { } public DbSet<Tweet>? Tweets { get; set; } public DbSet<User>? Use...
(defproject com.xn--lgc/pure-conditioning "0.2.0-SNAPSHOT" :description "A simple, fast, purely functional condition / restart system for Clojure" :url "https://www.xn--lgc.com/pure-conditioning" :license {:name "MIT" :url "https://opensource.org/licenses/MIT"} :dependencies [[org.clojure/clojure "...
# frozen_string_literal: true RSpec.describe Clavius::Configuration do subject(:configuration) { described_class.new do |c| c.weekdays = weekdays c.included = included c.excluded = excluded end } let(:weekdays) { %i[mon wed fri] } let(:included) { [Date.new(2015, 1, 1), Date.new(2015...
import { tabsTypeAnchor, tabsTypeButton } from './const'; /** tabs union type */ export type TabsType = typeof tabsTypeAnchor | typeof tabsTypeButton; export interface ITabsItem { /** tab title */ title: string; /** optional tab id */ id?: string; /** optional path for router */ path?: string; /** activ...
import MainScreen from './mainScreen/MainScreen'; import SecondScreen from './secondScreen/SecondScreen'; export { MainScreen, SecondScreen };
\! echo 'Articles -80 be_read' USE articles/-80; SELECT * FROM be_read LIMIT 20;
CREATE DATABASE `xtracker`; USE `xtracker`; DROP TABLE IF EXISTS `user_accounts`; CREATE TABLE `user_accounts` ( `accountId` INT(10) NOT NULL, `email` VARCHAR(100) NOT NULL, `password` VARCHAR(100) NOT NULL, `first_name` VARCHAR(50) NOT NULL, `last_name` VARCHAR(50) NOT NULL, ...
SET IDENTITY_INSERT [dbo].[Company] ON; INSERT INTO [dbo].[Company] ( [CompanyID], [CompanyName], [FloThruFee], [MaxVisibleRatePerHour], [IsHavingFTAlumni] ) VALUES (1, 'Company One', 3, 100, 1), (2, 'Company Two', 3, 100, 0), (3, 'Company Three', 3, 100, 0), (4, 'Company One Division 1', 3, 100, 0); SET IDENTITY_I...
package com.android.sipdemo.listener /** * Created by zhoujian on 2017/3/20. */ interface OnStateChangedListener { fun onChanged(state: Int, o: Object?) }
import { Injectable } from '@angular/core'; import { Router, Resolve, RouterStateSnapshot, ActivatedRouteSnapshot } from '@angular/router'; import { HomeService } from '../../services'; import { Home } from '../../models'; @Injectable() export class HomeResolver implements Resolve<Home> { construct...
export type Magical<T> = { /** * Summon the up-to-date magical state. */ accio: () => T, /** * Extend an extendable ear into the Magic, and you'll hear when changes happen. * @param spell The spell to perform when the extendable ear hears changes. */ extendEar: (spell: Spell<T>) => number, /** ...
/** * * @版权 : Copyright (c) 2017-2018 *********公司技术开发部 * @author: 作者姓名(一般是写姓名的拼音) * @E-mail: 邮箱 * @版本: 1.0 * @创建日期: 2019年9月21日 下午11:21:52 * @ClassName GoodsController * @类描述-Description: TODO(这里用一句话描述这个方法的作用) * @修改记录: * @版本: 1.0 */ package controller; import org.springframework.stereotype.Controller; impo...
-- file:plpgsql.sql ln:4597 expect:true CREATE FUNCTION transition_table_level1_ri_parent_upd_func() RETURNS TRIGGER LANGUAGE plpgsql AS $$ DECLARE x int
def cons(x, y) ->(m) { m.call(x, y) } end def car(z) z.call(->(p, q) { p }) end def cdr(z) z.call(->(p, q) { q }) end puts car(cons(3, 10)) puts cdr(cons(3, 10))
// To parse this JSON data, do // final cast = castFromJson(jsonString); import 'dart:convert'; class Cast { final int castId; final String character; final String creditId; final int gender; final int id; final String name; final int order; final String profilePath; Cast({ this.castId, thi...
--- title: Mere letter: M permalink: "/definitions/bld-mere-3.html" body: L. Fr. Mother. JBle, mere, flllc, grandmother, mother, daughter. Brltt c. 89. En ventre sa mere, in its mother's womb published_at: '2018-07-07' source: Black's Law Dictionary 2nd Ed (1910) layout: post ---
# frozen_string_literal: true require "much-rails-pub-sub" require "much-rails-pub-sub/event" class MuchRailsPubSub::Publisher include MuchRails::CallMethod attr_reader :event def initialize(event_name, event_params:) @event = MuchRailsPubSub::Event.new(event_name, params: event_params) end def on_ca...
package com.twitter.scrooge.backend import com.twitter.scrooge.testutil.Spec import com.twitter.scrooge.{HasThriftStructCodec3, ThriftStructCodec3} import thrift.test._ class HasThriftStructCodec3Spec extends Spec { "All ThriftStructs" should { "have a codec method via HasThriftStructCodec3" in { val str...
# frozen_string_literal: true require 'jiji/configurations/mongoid_configuration' require 'jiji/utils/pagenation' module Jiji::Model::Logging class Log include Enumerable include Jiji::Utils::Pagenation def initialize(time_source, backtest_id = nil) @backtest_id = backtest_id @time_source ...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50536 Source Host : localhost:3306 Source Database : absence Target Server Type : MYSQL Target Server Version : 50536 File Encoding : 65001 Date: 2016-07-06 20:13:12 */ SET FOREIGN_KEY_CHECKS=0; -- --...
<?php namespace Home\Model; use Think\Model; class WayModel extends Model{ //所有互动的经验 public function allway(){ $way = M('way'); $data = $way->order('wid desc')->select(); return $data; } //添加经验的业务数据模型 public function addway($wtitle,$wcontent,$wuserid,$wdate){ $way = M('way'); $data = array( 'wtitle...
RSpec.describe Mas::Cms::Connection do subject(:connection) { described_class.new(cache) } let(:cache) { spy(:cache) } describe '.new' do let(:config) { Mas::Cms::Client.config } let(:options) do { url: config.host, request: { timeout: config.timeout, open_timeou...
tinyMCE.addI18n("cs.coffelli_contextmenu",{ coffelli_contextmenu_insertpbefore_desc:"Vlož odstavec PŘED aktuální element", coffelli_contextmenu_insertpafter_desc:"Vlož odstavec ZA aktuální element", coffelli_contextmenu_insertpbeforeroot_desc:"Vlož odstavec PŘED aktuální KOŘENOVÝ element", coffelli_contextmenu_insertpa...
package com.hector.engine.graphics; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL43; public class FrameBuffer { private int width, height; private int id; public FrameBuffer(int width, int height) { this.width = width; ...
package it.carminepat.systeminfo; import com.fasterxml.jackson.databind.ObjectMapper; /** * * @author carminepat */ public class TestInformation { /** * @param args the command line arguments */ public static void main(String[] args) throws Exception { ObjectMapper mapper = new ObjectMap...
<h1 align="center"> Portfolio build with Gatsby. </h1> <p align="center"> See live at <a href="http://handcraftedweb.dev/"> http://handcraftedweb.dev/ </a> </p>
/* vim: set sw=8 ts=8 sts=8 expandtab: */ #include "ewl_base.h" #include "ewl_icon_theme.h" #include "ewl_macros.h" #include "ewl_private.h" #include "ewl_debug.h" #ifdef BUILD_EFREET_SUPPORT # include <Efreet.h> #endif static int ewl_icon_theme_is_edje = 0; static Ecore_Hash *ewl_icon_theme_cache = NULL; static Eco...
import argparse import sys from utils import get_reverse_complement, read_from_file def parse_args(): parser = argparse.ArgumentParser() parser.add_argument( '-f', '--fn_input', help='input file, can be .txt or .fasta' ) args = parser.parse_args() return args def process_seqs_for_g...
@extends('emails.master') @section('content') <div> <p> @lang('emails.hi')<br/> </p> <p> @lang('emails.design.congrates') @if (isset($design->design_name)) <b>{{ $design->design_name }}</b> / @endif @lang('emails.design.with.code') <b>{{$design->...
import { BooleanFilter } from './BooleanFilter' import { IdFilter } from './IdFilter' import { KeywordFilter } from './KeywordFilter' import { OrderFilter } from './OrderFilter' import { PageFilter } from './PageFilter' import { PageSizeFilter } from './PageSizeFilter' import { SelectFilter } from './SelectFilter' impo...
package com.open.capacity.security.controller; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.google.common.collect.Lists; import com.open.capacity.security.annotation.LogAnnotation; import com.open.capacity.security.dao.PermissionDao; import com.open.capacity.security.dao.Se...
package com.github.mdr.mash.ns.git import com.github.mdr.mash.functions.{ BoundParams, MashFunction, ParameterModel } import com.github.mdr.mash.runtime.MashList import scala.collection.JavaConverters._ object PullFunction extends MashFunction("git.pull") { val params = ParameterModel.Empty def call(boundParam...
# Just a tiny component to standardize How we display related_urls, a link # with a little external link icon. # # Takes a String URL # # <%= render UrlDisplay.new("https://example.com/foo/bar") %> # class ExternalLinkComponent < ApplicationComponent attr_reader :url def initialize(url) @url = url end ...
require 'routemaster/dirty/state' require 'routemaster/config' module Routemaster module Dirty # Service object, filters an event payload, only include events that reflect # an entity state that is _more recent_ than previously received events. # # Can be used to Ignore events received out-of-order (e...
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from open_pgp.djinni #pragma once #include <memory> #include <string> namespace ProtonMail { class IGender { public: virtual ~IGender() {} virtual std::string getGender() = 0; virtual std::string getText() = 0; static std::sh...
[Cookiecutter](https://github.com/audreyr/cookiecutter) template for python3 cli application. ```sh cookiecutter https://github.com/thawk//cookiecutter-python-cli ```
package com.dongtronic.diabot.logic.`fun` import com.dongtronic.diabot.exceptions.NoSuchEpisodeException import com.rometools.rome.feed.synd.SyndEntry import com.rometools.rome.io.FeedException import com.rometools.rome.io.SyndFeedInput import com.rometools.rome.io.XmlReader import java.io.FileNotFoundException...
var animation = new Walkway({ selector: '#loader', duration: '4000', easing: function(t){ return t * t; } }); animation.draw(); var animation_1 = function(){ var t = new TimelineMax({ repeat: 0, yoyo: false }); var graph = document.getElementById('graph'); t.timeScale(2); t.to([graph], 4, {...
/* * Copyright 2022 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...
// Package vboolean implements the boolean type. package vboolean import "hawx.me/code/vodka/types" // A boolean value, either `true` or `false`. type VBoolean struct { value bool } // String returns the string value of the VBoolean. func (v *VBoolean) String() string { if v.value { return "true" } return "fal...
package de.flapdoodle.photosync.sync import de.flapdoodle.photosync.progress.Progress import de.flapdoodle.photosync.ui.sync.SyncGroup import de.flapdoodle.photosync.ui.sync.SyncGroupID import de.flapdoodle.photosync.ui.sync.SyncList interface Synchronizer { fun sync( set: SyncList, enable...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; session(['filtros' => '']); class UsodeApi extends Controller { public function InicioApi(Request $request) { //Array para almanecar datos obtenidos como respuesta del api. //Separar marcas, modelos, tipo y año para la carga de los filtr...
package com.jhlabs.map.proj; import java.awt.geom.Point2D; import com.jhlabs.map.Ellipsoid; public class CoordinateSystemToCoordinateSystem { private final static double PI_OVER_2 = Math.PI / 2; /** * cosine of 67.5 degrees */ private final static double COS_67P5 = 0.38268343236508977; /** * Toms...
import React from 'react' import PropTypes from 'prop-types' export class AddTodo extends React.Component { state = { title: '' } onTitleChange = (e) => this.setState({ [e.target.name]: e.target.value }) onSubmit = (e) => { e.preventDefault(); if (this.state.title !== '') { this.props.addTodoItem(this....
class CustomView < UIView # not very custom, is it!? attr_accessor :custom_attr end
@extends('layouts.base') @section('content') {!! Alert::render() !!} <div class="row"> <div class="col-md-8"> <div class="portlet box green"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-table"></i> Usuarios </div> </div> <div class="portlet-body"> {!!Form::botonmod...
// Copyright 2015 CoreOS, 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 in...
package com.example.angluswang.superflashlight.view; import android.app.Dialog; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Shader; import android.graphics.SweepGradient; import android.graphics.drawable.ColorDraw...
namespace Outracks.IO { public static class RenamePath { public static IAbsolutePath Rename(this IAbsolutePath path, string newName) { return path.MatchWith( (AbsoluteFilePath file) => (IAbsolutePath)file.Rename(new FileName(newName)), (AbsoluteDirectoryPath dir) => (IAbsolutePath)dir.Rename(new Direc...
module Revok class Config MODULES_DIR = File.expand_path("../modules", File.dirname(__FILE__)) MSG_QUEUE_USER = ENV["MSG_QUEUE_USER"] != nil ? ENV["MSG_QUEUE_USER"] : "user" MSG_QUEUE_PASSWORD = ENV["MSG_QUEUE_PASSWORD"] != nil ? ENV["MSG_QUEUE_PASSWORD"] : "p@ssword" MSG_QUEUE_HOST = ENV["MSG_QUEUE_HOST"] !=...
package com.zaita.aliyounes.zaitafc.activities import android.os.Bundle import android.support.design.widget.BottomNavigationView import android.support.v4.app.Fragment import android.support.v7.app.AppCompatActivity import android.view.MenuItem import com.zaita.aliyounes.zaitafc.R import com.zaita.aliyounes.zaitafc....
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.IIS.Administration.WebServer.HttpRequestTracing { using System; using Web.Administration; public sealed class TraceProvide...
package io.github.Cnly.WowSuchCleaner.WowSuchCleaner.commands; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import io.github.Cnly.Crafter.Crafter.framework.commands.AbstractCrafterCommand; import io.github.Cnly.Crafter.Crafter.framework.locales.ILocaleManager; import io.github.Cnly.WowSuc...
import * as React from 'react' import FormInput from '../../FormInput' import FormSubmit from '../../FormSubmit' import { DispatchLoginContext, LoginContext } from '../../LoginProvider' import unlockActions from './actions' const DeviseUnlocksNew: React.FC = () => { const dispatchLogin = React.useContext(DispatchL...
#pragma warning disable 1591 namespace StarCitizen_API_Wrapper.Models.Organization { /// <summary> /// The different archetypes of organizations. /// </summary> public enum OrganizationArchetypes { Corporation, PMC, Faith, Syndicate, Organization, Und...
#!/bin/bash # # Anime Lineup Server startup script # # chkconfig: 345 80 20 # description: Anime Lineup Server # processname: anime_lineup_server # Source function library. . /etc/rc.d/init.d/functions lock=/var/lock/subsys/anime_lineup start() { su - web -c 'cd ~/anime_lineup; unicorn_rails -c config/unicorn...
package redis_test import ( "testing" genPlayer "sr/gen/player" redisUtil "sr/redis" "sr/test" ) type Basic struct { Name string } type WithRedisFlag struct { FieldOne string `notredis:"field1"` FieldTwo int `redis:"field3"` } type AvailableKeys struct { Int8 int8 Int16 int16 Int32 int32 Int64 ...
/***************************************************************************//** * @file drv_spi.h * @brief Arduino RT-Thread library SPI device driver header * @author onelife <onelife.real[at]gmail.com> ******************************************************************************/ #ifndef __DRV_SPI_H__ #de...
module SearchableExchange extend ActiveSupport::Concern included do searchable do text :title string :type integer :poster_id integer :last_poster_id integer :category_id boolean :trusted boolean :closed boolean :sticky time :created_at time ...
from .ast import BlankNode class BlankNodeFactory: def __init__(self, initial_counter: int = 0): self.counter = initial_counter def __call__(self): node = BlankNode(self.counter, self) self.counter += 1 return node
## Linked List ### Usage ```php use function Phantasy\DataTypes\LinkedList\{Cons, Nil}; use Phantasy\DataTypes\LinkedList\{LinkedList, Cons, Nil}; ``` ### Description A purely functional linked list implementation. ### Methods #### static fromArray (array $arr) : LinkedList Used to convert a php array into a LinkedList...
/* * Copyright 2013-2022 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
--- title : BOJ - 15734 - 명장 남정훈 categories: - BOJ --- ```python import sys L, R, A = map(int, sys.stdin.readline().split()) print(min(L+A, R+A, L+R+A >> 1) * 2) ``` https://www.acmicpc.net/problem/15734
# == Schema Information # # Table name: legislations # # id :bigint not null, primary key # title :string # description :text # law_id :integer # slug :string not null # geography_id :bigint # created_at :datetime no...
package ad.kata.aoc2021.day05 fun main() { val hydrothermalVentsField = hydrothermalVentsFromInput("day05.input") println("--Day 5: Hydrothermal Venture --") /* part 1 */ val pointsOfOverlaps = hydrothermalVentsField.filterNoDiagonals().pointsOfOverlaps() println("number of points where at least 2...
// t0142.cc // operator+ // turn on operator overloading int dummy(); // line 5 void ddummy() { __testOverload(dummy(), 5); } struct A { operator void* (); }; typedef int (*FuncPtr)(); struct B { operator FuncPtr (); }; struct C { operator C* (); }; struct D { operator int (); }; str...
# FarmBot Ext OTP App the `farmbot_ext` OTP app contains extended FarmbotCore functionality. This includes mostly network functionality that isn't possible to do in `farmbot_core`. ## Bootstrap subsystem Subsystem responsible for bootstrapping a connection to the FarmBot network services. This includes authenticatin...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Net.Http; using System.Reflection; using System.Text; using Lark.Core.Context; using Lark.Core.Reflect; using Lark.Core.Enum; using System.Linq; using Lark.Core.Attributes; namespace Lark...
#include "drink.hpp" #include <iostream> #include <string> using std::cin; using std::cout; using std::string; using std::endl; //---------------------------- // File: baseCoffeeShack.cpp // By: Nolan LaDuke // Date: 3/30/2021 //------------------------------------------------------------------------------ // Functio...
// BLAS level 2 // TNT arrays #include <iostream> #include <boost/numeric/bindings/atlas/cblas1.hpp> #include <boost/numeric/bindings/atlas/cblas2.hpp> #include <boost/numeric/bindings/traits/tnt.hpp> #include "utils.h" #include "tnt_utils.h" namespace atlas = boost::numeric::bindings::atlas; using std::cout; using...
$ $MERLIN single type-enclosing -position 4:11 -verbosity 0 \ > -filename ./record.ml < ./record.ml | jq ".value[0:2]" [ { "start": { "line": 4, "col": 10 }, "end": { "line": 4, "col": 11 }, "type": "float", "tail": "no" }, { "s...
CREATE TABLE IF NOT EXISTS "dirs" ( "path" text, "indexed_at" datetime, PRIMARY KEY ("path") );
require File.join(File.dirname(__FILE__), "..", "test_helper") require 'mocha/no_yields' class NoYieldsTest < Test::Unit::TestCase include Mocha def test_should_provide_parameters_for_no_yields_in_single_invocation parameter_group = NoYields.new parameter_groups = [] parameter_group.each do |param...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Testing submitForm with an adjacent form</title> </head> <body> <form id="form-1" method="POST" action="/form/complex"> <input type="text" name="first-field" value="Ptitsa" /> <input id="submit1" type="submit" value="submit" /> </form> <...
import type { BsConfig } from './BsConfig'; /** * There are some bugs with chokidar, so this attempts to mitigate them */ export declare class Watcher { private options; constructor(options: BsConfig); private watchers; /** * Watch the paths or globs * @param paths */ watch(paths: s...
using System; namespace OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup { public static class LookupNavigatorFactory { public static LookupNavigator Create(LookupDirection direction, LookupArguments args, ParsingContext parsingContext) { if (args.ArgumentDataType == Looku...