text
stringlengths
27
775k
# flex-event-store <!-- 感谢coderwhy老师的细致讲解 --> An event-based global state management tool for vue, react, mini-program, etc. 一个基于事件的全局状态管理工具,可以在Vue、React、小程序等任何地方使用。 # 设计灵感 在项目中找到一个更加方便快捷的数据共享方案: * 后续会完善文档和增加更多好用功能; * 欢迎star、issue、pull requests,会进行更多改变; # 如何使用呢? ## 1、npm安装依赖 ```shell npm install flex-eve...
#include <bits/stdc++.h> using namespace std; #define SIZE 500010 long long int arr[SIZE]; int num[SIZE]; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int befNum, cityNum, qNum; cin >> befNum >> cityNum >> qNum; memset(num, 0, sizeof(num)); for (int i = 0; ...
import 'package:flutter/material.dart'; import 'dash_painter.dart'; class DashDecoration extends Decoration { final Gradient? gradient; final Color? color; final double step; final double span; final int pointCount; final double? pointWidth; final Radius? radius; final double strokeWidth; DashDeco...
insert into book (isbn, title, price, id) values ("001-JN", "A People's History", 32, 1);
#!/usr/bin/env bash set -o nounset set -o noclobber export LC_ALL=C export PATH="/bin:/sbin:/usr/bin:/usr/sbin:$PATH" readonly MYSELF="$(readlink -f $0)" readonly MYPATH="${MYSELF%/*}" . $MYPATH/../ammlib function testcb { typeset origin="$1"; shift echo "CB called for $origin: $@" } ammLib::HookRegister mycb ...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
#!/bin/bash # Generate docs using the docstrings sphinx-apidoc -o . ../galaxy_dive -e -f # Make the files make clean make html
<?php namespace Crwlr\Url; use Crwlr\Url\Exceptions\InvalidUrlException; /** * Class Resolver * * This class handles resolving a relative url to an absolute one given the url where the relative one was found. */ class Resolver { /** * Resolve any relative reference to an absolute url against a base url...
<?php defined('IN_SHUYANG') or exit('No permission resources.'); param::set_cookie('username', ''); param::set_cookie('userid', '');
#include "loadlib.hpp" #include <windows.h> #include <direct.h> char GoodSeparator = '/'; char BadSeparator = '\0'; const char ParentDirectory[] = "../"; const char CurrentDirectory[] = "./"; const char RelativePathToBin[] = "garrysmod/lua/bin/"; const char RelativePathToLibraries[] = "garrysmod/lua/libraries/"; st...
package com.hfm.innerclass; /** * @author hfm * @version 1.01 2020-04-04 16:00 * @date 2020/4/4 */ public class AnonymousTest2 { public static void main(String[] args) { new AnonymousTest2().callInner(new A() { //接口是不能new但此处比较特殊是子类对象实现接口,只不过没有为对象取名 @Override public v...
![Mass Effect: Andromeda](Images\mass_effect_andromeda.png "Shot by Originalnicodr") ## Summary Feature | Supported --|-- Vanilla Photo Mode | No Hotsampling | Yes DSR | Yes Custom Aspect Ratios | Yes ([limited](mass_effect_andromeda.htm#custom-aspect-ratios)) Reshade | Yes Ansel | Yes DirectX versions | DirectX 11...
part of '../ms_string_utils.dart'; String capitalizeWord(String value) { assert(value != null); final trimValue = value.trim(); if (trimValue.isEmpty) return value; return value.replaceAll(trimValue, trimValue[0].toUpperCase() + trimValue.substring(1).toLowerCase()); } String capitalizeWords(String valu...
#!/bin/sh OPTFLAGS="-O2 -march=native -mtune=native" : ${CLANG:=clang} : ${GCC:=gcc} cd "$(dirname "$0")/../.." echo "# clang" make clean all CC=${CLANG} OPTFLAGS="${OPTFLAGS}" > /dev/null make run make run make run echo "# gcc" make clean all CC=${GCC} OPTFLAGS="${OPTFLAGS}" > /dev/null make run make run make run...
use super::{BindingKind, Identifier, Literal, Node, Type}; use crate::expression::Operator; use std::collections::HashMap; #[derive(Debug, Clone)] pub enum Value { Let(BindingKind, Identifier, Box<Node>, Box<Node>), Follow(Box<Node>, Box<Node>), Assign(Box<Node>, Box<Node>), Apply(Box<Node>, Box<Node>...
--- layout: post title: "女实习生指控主持人朱军性骚扰(更新)" date: 2018-07-27 categories: Archive image_feature: "https://i.loli.net/2018/07/27/5b5b2c4c43fe3.jpg" tags: MeToo description: 女生称2014年在《艺术人生》实习期间遭朱军性骚扰,事后在老师、同学及律师陪同下报警,最终不了了之。 --- 原文来自【财新网】:~~[女实习生指控主持人朱军性骚扰(更新)](http://m.china.caixin.com/m/2018-07-27/101309136.ht...
program prog parameter(num1=1) parameter(num2=num1+1) integer nums(num2) write(6, *) nums, num1 end
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tlSmallDraw.asm AUTHOR: John Wedgwood, Dec 26, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date D...
w_flux Examples ================ To run the examples, open the root of this repository in a command-line terminal. 1. `pub run dart_dev examples` 2. Open Chromium/Dartium to `http://localhost:8080`
package de.jlnstrk.transit.api.hci.model.eco import de.jlnstrk.transit.api.hafas.HciModel import kotlinx.serialization.Serializable @HciModel("1.39") @Serializable public data class HciEco( public val co2: Double?, public val co2f: Double?, public val dist: Int?, public val mmhc: Double?, public v...
module MiqToolsServices class Github include ServiceMixin class << self attr_accessor :credentials end delegate :credentials, :to => self def self.configure return if @configured ::Github.configure do |config| config.login = credentials["username"] co...
module Menus module Admin class Comments < Menu::Group define do id :main parent Sites.new.build(scope).find(:comments) menu :left, :class => 'left' do item :comments, :action => :index, :resource => [@site, :comment] end end end end end
--- title: Căutați aplicația utilizând camera foto ms.author: pebaum author: pebaum manager: scotv ms.date: 04/21/2020 ms.audience: Admin ms.topic: article ms.service: o365-administration ROBOTS: NOINDEX, NOFOLLOW localization_priority: Normal ms.collection: Adm_O365 ms.custom: - gethelp ms.openlocfilehash: 73e4ac01293...
<?php /** * Sidebar * * @package Ground */ /** * Disable default WooCommerce sidebar * * @return void */ function ground_woocommerce_disable_woocommerce_sidebar() { remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); } add_action( 'init', 'ground_woocommerce_disable_woocommerce_sidebar' );...
package pt.um.lei.masb.blockchain.persistance.loaders class LoadFailedException( msg: String ) : Exception(msg)
// Copyright 2020 Parity Technologies (UK) Ltd. // This file is part of Tetcoin. // Tetcoin 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 // (at your option) any later ...
#pragma once #ifndef BLFCONVERT_H_ #define BLFCONVERT_H_ #ifdef __cplusplus #include <cstdint> #include <cstdlib> extern "C" { #else #include <stdint.h> #include <stdlib.h> #endif /*! \brief convert uint8_t array to float array */ void BLfconvert_r32_from_u8(BL1r32_t* dst, const BL1u8_t* src, size_t count);...
import { AxiosResponse } from "axios"; import { endpoints } from "../../helpers/constants"; import { Account } from "../../models/account"; import axiosRequest from "../../services/axiosRequest"; import { LoginRequest } from "./accountReducer"; export function handleLoginRequest(loginRequest: LoginRequest): Promise<...
use clap::App; use clap::Arg; use clap::ArgMatches; use clap::SubCommand; use slog::info; use slog::warn; use slog::Logger; use replicante_util_failure::failure_info; mod coordinator; mod replicante; mod stores; mod task_queue; use crate::utils::load_config; use crate::Interfaces; use crate::Result; pub const COMMA...
/*jslint onevar: false*/ /*global require, setTimeout, exports*/ require("sinon-nodeunit"); exports.testSomething = function (test) { test.expect(1); test.ok(true, "this assertion should pass"); test.done(); }; exports.testSomethingElse = function (test) { test.ok(false, "this assertion should fail");...
require 'net/https' require 'ruby-metrics/version' require 'ruby-metrics' module Metrics module Reporters class Librato attr_reader :api_token attr_reader :user API_URL = "https://metrics-api.librato.com/v1" def initialize(options = {}) @api_token = options[:api_token] @...
use crate::bxdf; use crate::math; #[derive(Copy, Clone, Debug)] pub struct Specular { color: math::Vec3, eta: f32, } impl Specular { pub fn new(color: math::Vec3, eta: f32) -> Self { Specular { color, eta } } } impl bxdf::BxDF for Specular { fn eval(&self, _: &math::Vec3, _: &math::Vec3, ...
'use strict'; var request = require('request'); module.exports.stubHttpReponseFor = function stubHttpReponseFor(sandbox, xhrOptions) { return { andRespondWith: function(statusCode, json, err) { // jshint -W074 var url = xhrOptions.url; var method = xhrOptions.method || 'get'; var options...
#!/bin/bash # this just takes php's date() function as a reference to check if week of year # is calculated correctly in the range from 1970 .. 2038 by brute force... SEQ="seq" SYSTEM=`uname` if [ "$SYSTEM" = "Darwin" ]; then SEQ="jot" fi for YEAR in {1970..2038}; do for MONTH in {1..12}; do DAYS...
<?php add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = array( 'title' => __( 'Meta Box Tabs 3', 'rwmb' ), 'taxonomies' => 'category', 'tabs' => array( 'bio' => __( 'Biography Description', 'rwmb' ), 'interest' => __( 'Interests and Hobbies', 'rwmb' ), 'job' =...
#ifndef CANSEND_H #define CANSEND_H #include <iostream> #include <string> #include <vector> #include <sstream> #include <iomanip> #include <algorithm> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <net/if.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <linux/can...
#ifndef __IPS_H__ #define __IPS_H__ int ips_patch( char *buf_rom, int len_rom, char *buf_ips, int len_ips ); #endif
import 'package:flutter/material.dart'; class CustomTabBarView extends StatefulWidget { int tabs_length; List<String> tabs_titles_list; TabController tabController; List<Widget> tab_children_layouts; CustomTabBarView( {required this.tabs_length, required this.tabs_titles_list, required thi...
/* * 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...
/* * Copyright (c) 2011-2015 Pivotal Software 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 * * Unles...
import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:mwb_connect_app/utils/colors.dart'; import 'package:mwb_connect_app/core/viewmodels/goals_view_model.dart'; import 'package:mwb_connect_app/core/viewmodels/steps_vi...
#!/bin/sh -f R=`which Rscript` infile=$1 target=$2 echo $infile echo $target echo $target.tsv echo $R ./scripts/convert_scaffoldDIA_to_PSMtab.py $infile $target.tsv $R ./scripts/run_probamr_gencode.R $target.tsv $target.sam cat ./data/sam_header $target.sam > _tmp.sam samtools view -S -b _tmp.sam > $target.bam samto...
let Matrix = require("./matrix.js") class Vector extends Matrix{ constructor(dim, elements){ super(dim, 1, elements); this.dim = dim; } get(i){ if(this.rows > this.cols){ return super.get(i, 1); }else{ return super.get(1, i); } } se...
# Copyright The OpenTelemetry 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 to in ...
// Copyright (c) Microsoft Corporation. All rights reserved. // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, // WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. // THE ENTIRE RISK OF U...
CWD=$(cd "$(dirname "$0")"; pwd) echo ${CWD} cd ${CWD} cd .. CWD=$(pwd) echo ${CWD} mkdir -p ${CWD}/data/test mkdir -p ${CWD}/data/tfrecords # generate tfrecords python3 ${CWD}/tools/write_tfrecords.py --dataset_dir=${CWD}/data/mnt/ramdisk/max/90kDICT32px/ \ --save_dir=${CWD}/data/tfrecords \ --char_dict_p...
package keys // #include <stdlib.h> // #include "SDL.h" import "C" import ( "unsafe" ) // Code represents keyboard keys using the current layout of the keyboard. // These values include Unicode values representing the unmodified character // that would be generated by pressing the key or a constant for keys that //...
create table Sailors ( sid char(4), sname varchar(10), rating number(3), age number(3), constraint Sailor_PK primary key(sid) ); insert into Sailors values('S001', 'Sherpa', 80, 32); insert into Sailors values('S002', 'Thukpa', 70, 24); insert into Sailors values('S003', 'Papa', 60, 36); insert into Sailors value...
FactoryBot.define do factory :farmware_env do device key { Faker::Games::Pokemon.move } value { Faker::Games::Pokemon.move } end end
#!usr/bin/env python from __future__ import print_function from multiprocessing.pool import ThreadPool import numpy as np import torch from python.basic_utils import str_hash from python.enclave_interfaces import GlobalTensor, SecretEnum from python.quantize_net import swalp_quantize, NamedParam, dequantize_op from p...
(ns depth-first-search) (defn depth-first-search ([graph at visited-nodes] (if (get visited-nodes at) visited-nodes (let [visited-nodes (assoc visited-nodes at true)] (reduce #(depth-first-search graph %2 %1) visited-nodes (get graph at))))) ...
using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Linq; using System.Text; using System.Threading; using RemoteFile; using Apx; namespace cs_apx { class Program { static Thread apxCoreThread; static Client apxClient; static ConcurrentQueu...
import { Injectable } from '@nestjs/common'; import { ResourceRepository } from '../../core/reposirories/resource.repository'; import { InjectModel } from '@nestjs/mongoose'; import { DEVICE_MODEL_NAME, GATEWAY_MODEL_NAME } from '../../utils/model-names'; import { Model } from 'mongoose'; import { DeviceDto } from '../...
#!/bin/sh export CAF_TMP_DIR=$CAF_OUTPUT_DIR/tmp export CAF_INPUT_DIR=$CAF_INPUT_DIR export CAF_OUTPUT_DIR=$CAF_OUTPUT_DIR export CAF_PROVIDERREG_DIR=$CAF_OUTPUT_DIR/providerReg export CAF_INVOKERS_DIR=$CAF_OUTPUT_DIR/invokers export CAF_PROVIDERS_DIR=$CAF_OUTPUT_DIR/providers export CAF_COMMONPACKAGES_DIR=$CAF_OUTPUT...
package co.mitoo.sashimi.models.jsonPojo; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; /** * Created by david on 15-03-09. */ @JsonIgnoreProperties(ignoreUnknown = true) public class Fixture implements Serializable ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "common.h" struct X { char *p; } x, y; TEST_CASE(fsccbug_L92) { char *p = malloc(sizeof(struct X)); x.p = malloc(1); *x.p = 12; memcpy(p, &x, sizeof(struct X)); memcpy(&y, p, sizeof(struct X)); TEST(*y.p == 12); }
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { withTheme } from '@material-ui/core/styles'; export class InvalidDrawWarning extends Component { render() { const { colors } = this.props.theme.eventkit; const style = { display: this.props.show ? 'i...
import java.util.* /** * https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/ */ class UniqueLetterString { fun uniqueLetterString(S: String): Int { val index = Array(26) { IntArray(2) } for (i in 0..25) Arrays.fill(index[i], -1) var res = 0 ...
--- title: conviva.connection_induced_rebuffering_ratio_timeseries brief: Real-Time/Live time series of connection induced rebuffering ratio metric_type: gauge --- ### conviva.connection_induced_rebuffering_ratio_timeseries Real-Time/Live time series of connection induced rebuffering ratio
# The `dataset` class :label:`object_detection_api` ```eval_rst .. currentmodule:: d8.object_detection .. autoclass:: Dataset ``` ## Adding and Getting Datasets The following functions list, add and get these datasets. ```eval_rst .. autosummary:: Dataset.list Dataset.get Dataset.add ``` ## Constr...
package org.tanukkii.reactive.snowflake import akka.remote.testkit.MultiNodeConfig import com.typesafe.config.ConfigFactory object MultiNodeIdGenerationTestConfig extends MultiNodeConfig { val worker1_1 = role("worker-1-1") val worker1_2 = role("worker-1-2") val worker2_1 = role("worker-2-1") val worker2_2 = ...
<!-- BEFORE SUBMITTING A NEW ISSUE... Please try a different theme to make sure the problem is not with the theme and is actually with the syntax. If you are not reporting a bug please remove this template and describe the issue in your own words. --> ### Environment - Editor and Version (VS Code, Atom, Sublime): -...
<?php //// Login a Member with a Password function Puff_Member_Password_Login($Connection, $Username, $Password) { global $Sitewide, $Time; //// Check Member Existence $Username = Puff_Member_Sanitize_Username($Username); $MemberExists = Puff_Member_Exists($Connection, $Username); if ( !$MemberExists ) { retur...
/* * Copyright (c) 2018-2019 The Decred developers * Use of this source code is governed by an ISC * license that can be found in the LICENSE file. */ package com.btcandroid.extensions import com.btcandroid.data.Account import com.btcandroid.data.Constants import com.btcandroid.data.parseAccounts import com.btcan...
CREATE TABLE [ASData_PL].[Fin_AccountTransfers] ( [Id] [bigint] NOT NULL, [SenderAccountId] [bigint] NOT NULL, [ReceiverAccountId] [bigint] NOT NULL, [ApprenticeshipId] [bigint] NOT NULL, [CourseName] [varchar](max) NOT NULL, [CourseLevel] [int] NULL, [PeriodEnd] [nvarchar](20) NOT NULL, [Amount] [decimal](1...
# # Copyright 2016 SUSE Linux GmbH # # 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 wri...
/* * Copyright (C) 2008 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...
#!/bin/bash NDELAY=5 DELAY=$(($1*$NDELAY + 120)) #DELAY=$(($1*2 + 60)) NODES=`scontrol show hostname $SLURM_NODELIST | head -$1` IBNODES=`for i in $NODES; do echo $i-ib0; done` MASTER=`for i in $IBNODES; do echo $i; exit; done` i=0 for nd in $IBNODES; do D=$(($DELAY - $i*$NDELAY)) echo Starting $nd after $D seconds...
package com.william.zup.transacao.consumer.DTO; import com.fasterxml.jackson.annotation.JsonProperty; import com.william.zup.transacao.api.Cartao; public class CartaoDTO { @JsonProperty("id") private String id; @JsonProperty("email") private String email; public CartaoDTO() { } @Overri...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\View\View; use TCG\Voyager\Models\Post; class ArticleController extends Controller { public function index() { $blogs = Post::with('authorId')->where('status','=','PUBLISHED')->paginate(10); return view('blog_li...
# Note: this must be run as admin! # This script patches the hosts file so that # 1. The game connects to gg-struggle via "ggst-game.guiltygear.com" # 2. We can still connect to arcsys via "ggst-game-real.guiltygear.com" # Install PsHosts for usability if (Get-Module -ListAvailable -Name PsHosts) { Write-Host "PsHos...
class ArticleOne < Article attribute :name, 'Article One' attribute :author, 'The author' attribute :rank, 2 attribute :important, false attribute :cover, Rails.root.join('public', 'articles', 'cover', 'article_one.jpg') reference :category, Category.find('Category One') end
2020年08月13日16时数据 Status: 200 1.张雨绮身材 微博热度:4084416 2.杜富国成为广播播音员 微博热度:2220983 3.杨幂魏大勋 微博热度:1788365 4.张若昀 胡编别人女儿小名什么爱好 微博热度:1627829 5.原来吃火锅还可以这样解说 微博热度:1198970 6.乐山大佛佛脚平台被淹 微博热度:710005 7.中国人民抗日战争胜利75周年 微博热度:664861 8.东部战区在台湾海峡实战演练 微博热度:579741 9.江西入室杀两人嫌犯又杀一人 微博热度:572252 10.易烊千玺粉雾海 微博热度:567687 11.脚艺人 微...
# -*- coding: utf-8 -*- =begin rdoc コールバック機能付きキュー。コンストラクタに渡したブロックが、pushされた値の集合を引数に呼ばれる。 コールバックは、以下の条件の何れかを満たしたときに動く。 1. キューの個数が _max_ を超えたとき 2. キューに _expire_ 秒以上値の追加が無かったとき =end require 'thread' require 'timeout' class TimeLimitedQueue < Queue extend Gem::Deprecate TLQGroup = ThreadGroup.new WaitingExpire = Cl...
using UnityEngine; using MoonBehavior.Memory; namespace MoonBehavior.BehaviorTrees.Actions { [Info(Category = "GameObject" , Description = "Rotates the transform to the specified forward direction" , Name = "Look Rotation")] public class LookRotation : Task { public MemoryItem ForwardVec...
#import <Foundation/Foundation.h> @interface _CDBatterySaver : NSObject + (id)batterySaver; - (int)getPowerMode; - (int)setMode:(int)arg1; @end @interface SBUIController : NSObject +(SBUIController *)sharedInstance; -(BOOL)isOnAC; -(int)batteryCapacityAsPercentage; @end
local foo = terralib.overloadedfunction("foo") foo:adddefinition(terra(a : int) return a end) foo:adddefinition(terra(a : int, b : int) return a + b end) local test = require("test") test.eq(foo:getdefinitions()[1](1) + foo:getdefinitions()[2](3,4), 8)
<?php /*gradients facebook '#3B5998','#2B4170' ; Google '#E64522','#C33219' ; Pinterest '#CB2027','#A0171C'*/ $skin = array( 'BODY' => array( // REQUIRED 'backgroundColor' => '#fff', // REQUIRED 'color' => '#000', ), 'A' => array( // REQUIRED 'color' => '#00f', ), ...
#include <bits/stdc++.h> using namespace std; /* 1 2 3 4 5 6 4 1 5 2 6 3 */ void transpose(vector<vector<int>> nums){ int n = nums.size(); int m = nums[0].size(); vector<vector<int>> res(m, vector<int> (n)); for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ //cout<<nums[j][i]<<" "; res[i][j] = nums...
using System; namespace OpenCvSharp { #if LANG_JP /// <summary> /// 基礎行列の計算手法 /// </summary> #else /// <summary> /// Method for computing the fundamental matrix /// </summary> #endif [Flags] public enum FundamentalMatMethod { #if LANG_JP /// <summary> /// 7-pointアル...
import 'bootstrap/dist/css/bootstrap.min.css'; import {LikeUnlikeFunc} from "./likeFunc"; import {FollowUnfollowFunc} from "./followFunc"; import {CommentFunc} from "./commentFunc"; window.likeUnlikePost = LikeUnlikeFunc.likeUnlikePost window.followUnfollow = FollowUnfollowFunc.followUnfollow; window.deleteComment ...
# Clear the screen cls # On error stop the script $ErrorActionPreference = "Stop" # Get the current folder of the running script $currentPath = (Split-Path $MyInvocation.MyCommand.Definition -Parent) # Import the PowerBIPS Powershell Module: https://github.com/DevScope/powerbi-powershell-modules I...
import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams, App } from 'ionic-angular'; import { HomePage } from '../home/home'; import { SearchPage, SearchType } from '../search/search'; import { SettingsPage } from '../settings/settings'; import { LoadingController } from 'ionic-angular';...
$ErrorActionPreference = 'Stop'; $packageName = $env:chocolateyPackageName $toolsPath = Split-Path $MyInvocation.MyCommand.Definition $pp = Get-PackageParameters $installDir = $toolsPath if ($pp.InstallDir) { $installDir = $pp.InstallDir } Write-Host "Cupscale is going to be installed in '$installDir'"...
# NewsFront!!!! OpenSource News Aggregrator [ Currently development has been abandoned ] Created by Udbhav.
library shared_models; export 'src/dictionary.dart'; export 'src/language.dart'; export 'src/utils.dart'; export 'src/word_entry.dart';
import React, { Component } from 'react'; import {Card, Row, Col, Statistic, Icon } from 'antd'; import StockChart from './StockChart'; import TotalChart from './TotalChart'; class UserResult extends Component{ render() { console.log("From UserResult"); console.log(this.props.result); const amount = this...
import React, { useRef } from 'react'; import { RiSearchLine } from 'react-icons/ri'; import { Flex, Input, Icon } from '@chakra-ui/react'; export function Search() { const searchInputRef = useRef(null); return ( <Flex as="label" bg="white" flex="1" h="10" px="2" mt="6" ...
# ChangeLog The following are lists of the notable changes included with each release. This is intended to help keep people informed about notable changes between versions as well as provide a rough history. We are using [semantic versioning](http://www.semver.org). ### [Unreleased] - YYYY-MM-DD ### [1.0.0] - 2016-...
package App::Benchmark::Accessors; use strict; use warnings; our $VERSION = '2.00'; #<<< package # hide from PAUSE WithMoose; use Moose; has myattr => ( is => 'rw' ); package # hide from PAUSE WithMooseImmutable; use Moose; has myattr => ( is => 'rw' ); __PACKAGE__->meta->make_immutable; package # hide ...
import { describe, expect, it } from "@jest/globals"; import { createStubOriginalConfigurationsData } from "../../settings.stubs"; import { createEmptyConfigConversionResults } from "./configConversionResults.stubs"; import { createESLintConfiguration } from "./createESLintConfiguration"; describe("createESLintConfig...
# frozen_string_literal: true module SidekiqUniqueJobs # The unique sidekiq middleware for the server processor # # @author Mikael Henriksson <mikael@mhenrixon.com> class Server DEATH_HANDLER = (lambda do |job, _ex| return unless (digest = job["lock_digest"]) SidekiqUniqueJobs::Digests.new.del...
<?php namespace Enqueue\Pheanstalk\Tests; use Enqueue\Pheanstalk\PheanstalkConsumer; use Enqueue\Pheanstalk\PheanstalkDestination; use Enqueue\Pheanstalk\PheanstalkMessage; use Enqueue\Test\ClassExtensionTrait; use Pheanstalk\Job; use Pheanstalk\Pheanstalk; use PHPUnit\Framework\TestCase; class PheanstalkConsumerTes...
let ethers = require('ethers'); const contract = require("@truffle/contract"); const Reserve = contract(require('./build/contracts/Reserve.json')); const Router = contract(require('./build/contracts/Router.json')); Reserve.setProvider(web3.currentProvider); Router.setProvider(web3.currentProvider); const asyncInterval...
use utf8; push our @EXPORT, qw( matrix_add_push_rule matrix_delete_push_rule matrix_get_push_rule matrix_get_push_rules matrix_set_push_rule_enabled matrix_set_push_rule_actions ); =head2 matrix_add_push_rule matrix_add_push_rule( $user, $scope, $kind, $rule_id, $rule, %params )->get scope: Either "g...
INSERT INTO gpt_collection VALUES ('01-00-00-00', 'Physical_Data'); INSERT INTO gpt_collection VALUES ('01-01-00-00', 'Physical_Data|Atmosphere'); INSERT INTO gpt_collection VALUES ('01-02-00-00', 'Physical_Data|Earth'); INSERT INTO gpt_collection VALUES ('01-03-00-00', 'Physical_Data|Ocean'); INSERT INTO gpt_collectio...
package AI import ( "helper" "math" "time" ) //------------------------------------------------ 持续生产的当前量 // Sustained Production // f(T) = Min(base(T0) + rate*(T-T0), MaxValue) func SP(base, max int, t0 int64, rate float32) int { t := time.Now().Unix() increment := int(float32(t-t0) * rate) quantity := increme...
import Propertie from '../infra/typeorm/entities/Propertie'; import ICreatePropertieDTO from '../dtos/ICreatePropertieDTO'; export default interface IPropertiesRepository { getByTitle(title: string, user_id: string): Promise<Propertie | undefined>; findById( propertie_id: string, user_id: string, ): Prom...
#!perl # vim:ts=4:sw=4:expandtab # # Please read the following documents before working on tests: # • https://build.i3wm.org/docs/testsuite.html # (or docs/testsuite) # # • https://build.i3wm.org/docs/lib-i3test.html # (alternatively: perldoc ./testcases/lib/i3test.pm) # # • https://build.i3wm.org/docs/ipc.html # ...
#!/usr/bin/env bash # installs apache httpd apt-get install -y apache2 # enable modules a2enmod rewrite # changes webroot if ! [ -L /var/www ]; then if ! [ -d /vagrant/www ]; then mkdir /vagrant/www cp -r /var/www/* /vagrant/www/ fi rm -rf /var/www ln -fs /vagrant/www /var/www fi