text
stringlengths
27
775k
#!/usr/bin/env Rscript # # This script does multiple linear regression stuff with sets of variants # and phenotypes. # library(magrittr) library(data.table) library(dplyr) library(dtplyr) library(MuMIn) impute = function(x) { apply(x, 2, function(x) { m = mean(x, na.rm=TRUE) x[is.na(x)] = m ...
#include "OutputFormat.hpp" #include <fstream> #include <iostream> #include <string> using std::ofstream; using std::string; void write_output(bool is_safePb, bool is_safeLR, double P_b) { ofstream outfile; outfile.open("log.txt", std::fstream::app); outfile << "function write_output called with inputs: ...
/* Copyright 2016 Mike Gleason jr Couturier. 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 writi...
'use strict' /** * dwell * Copyright(c) 2015-2015 Harminder Virk * MIT Licensed */ const regex = /(constructor|^function)\s*\w*\(([\s\S]*?)\)/ const replaceRegExp = /[ ,\n\r\t]+/ /** * @module dwell * @description Parses constructor method to get it's parameter */ let dwell = exports = module.exports = {} /**...
class ApplicationController < ActionController::Base protect_from_forgery with: :null_session before_action :destroy_session def destroy_session request.session_options[:skip] = true end end
package main import ( "bufio" "fmt" "log" "os" "regexp" "strconv" ) const ( lightsX = 1000 lightsY = 1000 ) var inputRegexp = regexp.MustCompile(`(turn off|turn on|toggle) (\d+),(\d+) through (\d+),(\d+)`) type lights struct { lights [lightsX][lightsY]int totalLitCount int totalBrightness int ...
import React from 'react'; import ReactDOM from 'react-dom'; import { mount } from 'enzyme'; import InfoBoxTransition from './'; import { Collapse } from 'react-collapse'; import InfoBox from 'components/InfoBox'; describe('InfoBoxTransition component', () => { it('renders without crashing', () => { const div =...
TODO ==== 1. Extract out `parse` functionality from `ini` - Support numeric values - requires regex for ints, floats, and sci notation - should we support hex? etc? 2.
import * as React from 'react'; import Drawer from '@synerise/ds-drawer'; import Button from '@synerise/ds-button'; import Tabs from '@synerise/ds-tabs'; import { action } from '@storybook/addon-actions'; import Typography from 'antd/lib/typography'; import Icon, { SearchM, CloseM, ArrowLeftM } from '@synerise/ds-icon'...
package com.github.bigdata.sql.parser.datax import cn.hutool.json.JSONUtil import com.github.bigdata.sql.parser.TableData import org.junit.Test /** * * Author: duhanmin * Description: * Date: 2021/12/28 15:53 */ class DataxParserTest { fun readText(path:String): String = DataxParserTest::class.java.getResour...
import { loadCultureFiles } from '../common/culture-loader'; /** * Tooltip smart position sample */ import { Tooltip } from '@syncfusion/ej2-popups'; import { Draggable } from '@syncfusion/ej2-base'; (window as any).default = (): void => { loadCultureFiles(); //Initialize Tooltip component let tooltip:...
using System; using System.Linq; using System.Threading.Tasks; using AutoMapper; using MarketingBox.Affiliate.Service.Grpc; using MarketingBox.Affiliate.Service.Grpc.Requests; using MarketingBox.AffiliateApi.Models.Country; using MarketingBox.Sdk.Common.Extensions; using MarketingBox.Sdk.Common.Models.RestApi; using Ma...
// Copyright 2015 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 "third_party/blink/renderer/platform/graphics/gpu/shared_context_rate_limiter.h" #include <memory> #include "base/memory/ptr_util.h" #include "...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
#!/bin/bash . ${ROOT_PATH}/utils/utils.sh load_configs usage() { echo "Usage:" echo " $ deploy rollback [ git-ref | --help ]" echo "" echo "Accepted git-ref:" echo " - Default (no git-ref passed): previous version;" echo " - Deploy version (e.g. v2);" echo " - Branch name (e.g. master);" echo " -...
import { Tweet, User } from 'src/social-integration/types' export function getTweetInfo(element: HTMLElement): Partial<Tweet> { const hashtags = [] const { name, screenName, tweetId, userId } = element.dataset const images = element.getElementsByClassName( 'Emoji Emoji--forText', ) as HTMLCol...
This playbook isolates a given endpoint via various endpoint product integrations. Make sure to provide the valid playbook input for the integration you are using. ## Dependencies This playbook uses the following sub-playbooks, integrations, and scripts. ### Sub-playbooks * Isolate Endpoint - Cybereason * FireEye HX ...
# two strings are same if they have same letters. def are_anagrams(s1: str, s2: str) -> bool: if len(s1) != len(s2): return False freq1 = {} freq2 = {} for ch in s1.lower(): if ch in freq1: freq1[ch] += 1 else: freq1[ch] = 1 for ch in s2.lower()...
plugins { id("de.itemis.mps.mps-wrapper-convention") } val mpsVersion : String by ext dependencies { compileOnly("com.jetbrains", "mps-openapi", mpsVersion) compileOnly("com.jetbrains", "mps-core", mpsVersion) compileOnly("com.jetbrains", "mps-tool", mpsVersion) compileOnly("com.jetbrains", "mps-m...
module Main where import Control.Exception.Base import Control.Monad.Except import Data.Aeson (encode) import qualified Data.Text as T import Network.Linklater import Network.Wai.Handler.Warp (run) import Text.Printf import Reminders import SlackConfig attendCmd:: Command -> IO T.Text attendCmd command = do printf "...
@extends('layouts.centered') @section('content') <div class="title m-b-md"> {{ config('app.name') }} </div> <div class="links"> @if (config('fileproxy.web.accept_file_upload')) <a href="{{ route('file.create') }}">Serve a file</a> @endif @if (config('fileproxy.web.accept_remote_creation')) <a href="{{...
alter table project alter column description type varchar(10000); alter table project alter column short_description type varchar(10000); alter table project alter column requirement type varchar(10000);
#include "case.h" #include "ccv_case.h" #include "ccv_nnc_case.h" #include <ccv.h> #include <nnc/ccv_nnc.h> #include <nnc/ccv_nnc_easy.h> #include "3rdparty/dsfmt/dSFMT.h" TEST_SETUP() { ccv_nnc_init(); } TEST_CASE("LSSC for natural image") { ccv_dense_matrix_t* image = 0; ccv_read("../../../samples/nature.png", &...
/**************************************************************************** * apps/nshlib/nsh_netcmds.c * * Copyright (C) 2007-2012, 2014-2015, 2017 Gregory Nutt. * All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modi...
package org.scalasteward.core.repoconfig import better.files.File import org.scalasteward.core.vcs.data.Repo import org.scalasteward.core.mock.MockContext.repoConfigAlg import org.scalasteward.core.mock.MockState import org.scalasteward.core.model.Update import org.scalasteward.core.util.Nel import org.scalatest.{FunS...
package de.westermann.robots.datamodel import de.westermann.robots.datamodel.util.Color import de.westermann.robots.datamodel.util.Track /** * @author lars */ interface IRobotClient { fun setForegroundColor() fun setBackgroundColor() fun resetMap() fun pid(enable: Boolean) fun speed(speed: Do...
--test with enum default values --TEST: [er] invalid default values create table def(t enum('a', 'b', 'c', 'd') default 'e'); create table def(t enum('a', 'b', 'c', 'd') default -1); create table def(t enum('a', 'b', 'c', 'd') default 10); --TEST: create with default value create table def( id int primary key aut...
import scala.io.StdIn object Solution { def main(args: Array[String]): Unit = { val n = StdIn.readInt() (0 until n).foreach(_ => { val a = StdIn.readLine() val b = StdIn.readLine() val aCharSet = a.toCharArray.toSet if (b.toCharArray.exists(aCharSet.contains(_))) println("Y...
# Paycorp International (a wholly owned subsidiary of Bancstac) Payment Gateway for Magento 2. [![Latest Stable Version][version-badge]][packagist] [![Total Downloads][downloads-badge]][packagist] [![License][license-badge]][packagist] The plugin provides seamless PCI DSS certified payment processing for credit card ...
<?php namespace App\Http\Controllers; use App\Models\Absent; use Carbon\Carbon; use App\Models\User; use App\Models\Attendance; use Illuminate\Http\Request; class DashboardController extends Controller { public function index() { $attendance = Attendance::where('user_id', auth()->id())->get()->last()...
{-# -fglasgow-exts #-} module DNS.Type (question, rquestion, putLine, enc, Bufi, Data, Question(Q), MayIO, RR(RR), RClass, RType, Name, satisfies, Zone(..), MayIOSt, Packet(..), converge, WState, PSt, errorPacket, emptyPacket, hashQuestion ) where import Data.Char import Data.Int (Int32) import Dat...
/* * Copyright (c) 2019 Håkan Edling * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * https://github.com/piranhacms/piranha.core * */ using System; namespace Piranha.Manager.Models { /// <summary> /// Page edit model. //...
extern float liftUp_TRANS[240]; extern float liftUp_POINT[3552]; extern short liftUp_QUAD[1184]; extern short liftUp_TRI[0]; extern char liftUp_VCOLOR[4736]; extern float liftUp_TEXCOORD[2368]; extern int liftUp_TEXLINKDAT[15]; extern int liftUp_TEXCNT; int liftUp_TEX[0]; extern int liftUp_POINTDATSZ[16]; ...
package com.shevelev.my_footprints_remastered.sync.gd_operations import com.shevelev.my_footprints_remastered.common_entities.sync.GoogleDriveFileId import com.shevelev.my_footprints_remastered.sync.footprint_meta_gd_crypt.FootprintMetaGoogleDrive interface GoogleDriveOperations { fun create(footprintMetadata: Fo...
//! This module contains `Block` structures for each state, it's transitions, implementations and related traits //! implementations. use crate::{ crypto::{self, KeyPair, Signatures}, merkle::MerkleTree, prelude::*, }; use iroha_derive::Io; use parity_scale_codec::{Decode, Encode}; use std::time::SystemTim...
package com.blueanvil.kerch.nestie import com.fasterxml.jackson.core.JsonParser import com.fasterxml.jackson.core.TreeNode import com.fasterxml.jackson.databind.DeserializationContext import com.fasterxml.jackson.databind.JsonDeserializer import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson....
require 'spec_helper' describe CogiEmail do subject { CogiEmail.new } VALID_EMAIL_ADDRESSES = [ "a+b@plus-in-local.com", "a_b@underscore-in-local.com", "user@example.com", " user@example.com ", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@letters-in-local.org", "01234567890@number...
2020年09月21日15时数据 Status: 200 1.虞书欣 我不是杨超越我的头比她大 微博热度:2745341 2.南师大学生校内死亡警方已介入调查 微博热度:2424090 3.高洁丝夜抛小内裤 微博热度:2296464 4.刘宇宁道歉 微博热度:2127284 5.方方 微博热度:1835613 6.成毅回应发糖少 微博热度:896302 7.极限挑战 国家二级保护植物 微博热度:844442 8.李心草案16名民警被问责处理 微博热度:783787 9.西安外国语大学 微博热度:770263 10.女大学生中奖1.4万个鸡蛋 微博热度:759239 11.周深萨顶顶隔了几条街...
import React from 'react'; import { BrowserRouter } from 'react-router-dom'; import { lightTheme, darkTheme } from '@strapi/design-system/themes'; import merge from 'lodash/merge'; import pick from 'lodash/pick'; import isFunction from 'lodash/isFunction'; import invariant from 'invariant'; import { Helmet } from 'reac...
## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## # Version 0.2 # 2016-04-20 # Andrew Horton # Moved patterns from passive fu...
import request from '@/utils/request' const categoryApi = { Category: '/cat/cats', // 获取文章或产品分类列表 AddCate: '/cat/push', // 新增文章或产品分类 UpdateCate: '/cat/updateCat', // 更新分类信息 CateDetial: '/cat/cat', // 获取分类详情 DelCate: '/cat/delCat', // 删除分类 DelCates: '/cat/delCats', // 批量删除分类 GetSortCats: '/cat/sortCats', ...
module Aokay::Helpers def last_sitecat_request Aokay::SitecatRequest.last end def last_google_analytics_request Aokay::GoogleAnalyticsRequest.last end end
# MeshSimple An assignment of 'Computer Graphics 2018 Spring' at UCAS. Mesh simplification method: `Surface Simplification Using Quadric Error Metrics` ## Environment: + Visual Studio 2015(Windows 10) + OpenGL3.3(GLFW, GLEW) ## Todo: (Welcome PR) - [ ] Textures and Resoures management - [ ] Lights - [ ] IMGUI: Obj...
# DeadBeat Because anyone can clap on beat! --- DeadBeat is a cute little game to help you get better at clapping on-beat. Proudly built using [Phaser](https://phaser.io). Also using [jQuery](https://jquery.com). --- Released under the terms of the MIT license. Have fun!
export interface CPUMetric { /** * Usage percentage */ usage: number, /** * Raw value returned by `process.cpuUsage()` */ raw: NodeJS.CpuUsage }
import './style.css' import Game from './game' import { addComponent, addEntity } from 'bitecs' import { AreaConstraint, DisplayObject, Drag, Player, setComponentXY, Transform, Velocity, } from './ecs/components' import { Sprite, Texture, Loader, Graphics } from 'pixi.js' import { PixiApp, SCREEN_HEIGHT, SCREEN_...
``` ini BenchmarkDotNet=v0.10.9, OS=Windows 10 Redstone 2 (10.0.15063) Processor=Intel Core i7-4900MQ CPU 2.80GHz (Haswell), ProcessorCount=8 Frequency=2728057 Hz, Resolution=366.5613 ns, Timer=TSC .NET Core SDK=2.0.0 [Host] : .NET Core 2.0.0 (Framework 4.6.00001.0), 64bit RyuJIT DEBUG [AttachedDebugger] Defa...
{----------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (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.mozilla.org/MPL/MPL-1.1.html...
sub_categories = @sub_categories if @sub_categories json.sub_categories sub_categories do |sub_category| json.sub_category_id sub_category.id json.name sub_category.name end else json.sub_categories [] end
 namespace Ct.App.Infrastructure.Interfaces { public interface IAgent<STATE> { STATE SendRequest(STATE state); } }
# cars-app Simple web app with rest api for manage collection of cars. Cars can be loaded from file through constructor in CarsService class. Format of input file must be JSON conform. REST API have only get methods to display collection of cars in json format (see javadoc) ### Installation and running - Proje...
""" homeassistant.components.device_tracker.geofancy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Geofancy platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.geofancy/ """ from homeassistant.const import (...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.II...
import DirectTxPool from './DirectTxPool'; import { ITxPool, ITxPoolTxDetails } from './ITxPool'; import TxPool from './TxPool'; export { DirectTxPool, TxPool, ITxPoolTxDetails, ITxPool };
import 'dart:ui'; class ChildLocation { //宽高 Size _size; //坐标 Offset _location; Size get size => _size; Offset get location => _location; ChildLocation(this._size, this._location); }
package com.xsolla.android.inventorysdkexample.util import android.os.SystemClock import android.view.View class RateLimitedClickListener(private val onRateLimitedClick: (View) -> Unit) : View.OnClickListener { private var lastClickTime = 0L override fun onClick(v: View) { if (SystemClock.elapsedRea...
# Generated by default/object.tt package Paws::MarketplaceCatalog::EntitySummary; use Moose; has EntityArn => (is => 'ro', isa => 'Str'); has EntityId => (is => 'ro', isa => 'Str'); has EntityType => (is => 'ro', isa => 'Str'); has LastModifiedDate => (is => 'ro', isa => 'Str'); has Name => (is => 'ro', isa...
const user = (state = null, action) => { switch (action.type) { case "LOGIN": if (action.payload.rememberMe) { localStorage.user = JSON.stringify(action.payload); } return Object.assign({}, state, action.payload); default: return state; } }; export default user;
package ru.byprogminer.modbot.storage import ru.byprogminer.modbot.Actor import ru.byprogminer.modbot.api.Chat import ru.byprogminer.modbot.api.User interface PluginStorage: Storage { operator fun get(user: User): PluginUserStorage operator fun get(chat: Chat): PluginChatStorage operator fun get(actor: A...
<?php try{ $con = new PDO('mysql:host=localhost;dbname=estudiantes', 'root', ''); $stmt = $con->prepare('SELECT nombre FROM estudiante'); $stmt->execute(); // print_r($stmt); while( $datos = $stmt->fetch() ){ echo $datos[0] . '<br/>'; } $stmt2 = $con->prepare('SELECT count(*) ...
const knex = require('knex'); const knexConfig = require('../knexfile.js'); const db = knex(knexConfig.development); module.exports = { findPlants, findPlantById, newPlant, update, remove }; function findPlants() { return db('plants'); } function findPlantById(id) { return db('plants') ...
// Serves latest V4L2 device frame via simple HTTP server // Copyright 2018 Chris Hiszpanski. All rights reserved. package main import ( "flag" "fmt" "log" "net/http" "sync" "syscall" "unsafe" "golang.org/x/sys/unix" ) var flagHttpPort int var flagVideoIn string func init() { flag.StringVar(&flagVideoIn, ...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { HttpserviceService } from 'src/app/services/httpservice.service'; @Component({ selector: 'app-circulars-all', templateUrl: './circulars-all.component.html', styleUrls: ['./circulars-all.component.css'] }...
import validateDiagnosis from '../../../patients/util/validate-diagnosis' describe('validate diagnosis', () => { it('should check for required fields', () => { const diagnosis = {} as any const expectedError = { name: 'patient.diagnoses.error.nameRequired', diagnosisDate: 'patient.diagnose...
package com.landoop.streamreactor.hive.it import java.util.concurrent.TimeUnit import org.apache.hadoop.fs.Path import org.scalatest.concurrent.Eventually import org.scalatest.matchers.should.Matchers import org.scalatest.time.{Millis, Span} import org.scalatest.wordspec.AnyWordSpec import java.time.Duration import s...
using System.Collections.Generic; using System.Collections.Immutable; namespace OmniSharp.Utilities { internal static class ImmutableArrayExtensions { public static ImmutableArray<T> EmptyIfDefault<T>(this ImmutableArray<T> array) => array.IsDefault ? ImmutableArray<T>.Empt...
import React, { useState } from "react"; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from "reactstrap"; import logoGoogle from "./images/logo-google.png"; import logoFacebook from "./images/logo-facebook.png"; const LoginModal = (props) => { const { buttonLabel, className } = props; const _hand...
package piece.of.lazy.gotowork.app.main import android.content.res.Configuration import android.os.Bundle import piece.of.lazy.gotowork.R import piece.of.lazy.gotowork.base.BaseActivity import piece.of.lazy.gotowork.firebase.FbAuth import javax.inject.Inject /** * @author piece.of.lazy */ class MainActivity : BaseA...
function Get-ConnectionString { <# .SYNOPSIS Build database connection string .DESCRIPTION Build a connection string according to provided database properties .NOTES File name: Backup-Schema.ps1 Author: Florian Carrier Creation date: 15/10/2019 Last modified: 21/01...
import * as React from 'react'; import * as PropTypes from 'prop-types'; import EditorActions from '../../actions'; export declare type EditorContextProps = { editorActions?: EditorActions; }; export default class EditorContext extends React.Component<EditorContextProps, {}> { static childContextTypes: { ...
{-# OPTIONS_GHC -fdefer-out-of-scope-variables #-} module Foo where import Data.Coerce f :: Bool f = coerce (k :: Int)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace AdventOfCode2016 { class Program { static void Main(string[] args) { Day11(); } private static void Day1()...
# personal playground **PLEASE DO NOT USE AS IS** ... because the examples are: + buggy + error prone ... and have: + no checks + no tests + no quality awareness
<?php namespace App\App\Domain\Traits; use App\App\Domain\Cart\Money; use Money\Currency; trait HasPrice { public function getPriceAttribute($value) { // the main value which is stored in the DB return new Money($value); } }
class WeatherNow::Weather attr_accessor :date, :weather, :daily_high, :daily_low, :url def self.current #Scrape weather.com, return forecasts via data #WeatherNow::WeatherScraper.new("http://www.weather.com") self.scrape_forecast end def self.scrape_forecast forecast = [] forecast << self.scrape_weather ...
# What does n-0 mean? "n-0" is part of a common nomenclature in the arcade scene referring to freshness of data. "n-0" (n minus zero) is the current game release, like a mathematical equation. "n-1" is the previous game release. Rarely you will see "n+1" where the next, unreleased version of a game is leaked early....
require 'resources_controller' require 'response_for' require 'response_for_rc/responses_module' require 'response_for_rc/actions' require 'response_for_rc/singleton_actions' if defined? ResourcesController ResourcesController.actions = ResponseForRc::Actions ResourcesController.singleton_actions = ResponseForRc::...
package cn.bearever.mingbase.chain.core; /** * AsyncChainRunnable 的包装类 * * @author : luoming luomingbear@163.com * @date : 2019/8/2 **/ public class AsyncChainRunnableWrapper { /** * 异步操作 */ public AsyncChainRunnable runnable; /** * 执行的线程 */ public int thread = ORIGINAL; ...
using Distributions # Support function @testset "polycor" begin function discretize(x, th) sum(th .< x) end # Gen sim data. Random.seed!(1234) raw = rand(MvNormal([0, 0], [1 .5; .5 1]), 10000)' τ1 = sort!(rand(Uniform(-2, 2), 3)) τ2 = sort!(rand(Uniform(-2, 2), 4)) obs = [discre...
# frozen_string_literal: true module SolidusKlarnaPayments module Spree module Admin module PaymentMethodsControllerDecorator def update validate_api_credentials if klarna_payment_method? super end private def klarna_payment_method_params par...
using Nop.Core.Domain.Catalog; namespace Nop.Data.Mapping.Catalog { public partial class ProductCategoryMap : NopEntityTypeConfiguration<ProductCategory> { public ProductCategoryMap() { this.ToTable("Product_Category_Mapping"); this.HasKey(pc => pc.Id); ...
# [726. Number of Atoms (Hard)](https://leetcode.com/problems/number-of-atoms/) <p>Given a chemical <code>formula</code> (given as a string), return the count of each atom. </p><p> An atomic element always starts with an uppercase character, then zero or more lowercase letters, representing the name. </p><p> 1 or more...
using System.Runtime.Serialization; namespace CrowdRestClient.Models { [DataContract(Name = "authentication-context", Namespace = "")] public class AuthenticationContext { [DataMember(Name = "username")] public string UserName { get; set; } [DataMember(Name = "password")] ...
import React from "react"; import DesktopInterface from "@web-desktop-environment/interfaces/lib/views/Desktop"; import { Client } from "@react-fullstack/fullstack-socket-client"; import { Component } from "@react-fullstack/fullstack"; import { withStyles, createStyles, WithStyles } from "@material-ui/styles"; import {...
--- layout: tag_page title: "Etiqueta: Robinson Crusoe" tag: "Robinson Crusoe" ---
UPDATE cloudFiles SET parentId = :parentId, name = :name, isFolder = :isFolder, -- no type and size createdAt = :createdAt, updatedAt = :updatedAt, updatedBy = :updatedBy, encryptedKey = :encryptedKey, publicKey = :publicKey, localPath = :localPath -- no fingerprint WHERE id = :id
#!/bin/bash # install the homebrew version of openssl!!! helpFunction() { echo "" echo "Usage: $0 -c clientname -i ipaddress -d domain" echo -e "\t-c Clientname" echo -e "\t-i IP Adress of the Client" echo -e "\t-d Domain name" exit 1 # Exit script after printing help } while getopts "c:i:d:" opt d...
package {{module.completeName}}.data.repository import arrow.core.Try import base.corelibrary.data.entities.User import base.corelibrary.presentation.CoreNavigation import com.github.icarohs7.unoxcore.tryBg class UserRepository { suspend fun logout(): Try<Unit> { return tryBg { User.clear() ...
package com.kylecorry.andromeda.signal import com.kylecorry.andromeda.core.sensors.Quality data class CellSignal( val id: String, val strength: Float, val dbm: Int, val quality: Quality, val network: CellNetwork ) data class CellNetworkQuality( val network: CellNetwork, val quality: Quali...
package at.shockbytes.dante.core.user import android.net.Uri import io.reactivex.Completable interface UserRepository { fun updateUserName(userName: String): Completable fun updateUserImage(imageUri: Uri): Completable }
import { Signal0 } from '@ash.ts/ash' import * as PIXI from 'pixi.js' export class WaitForStartView extends PIXI.Container { private readonly waitText: PIXI.Text private readonly clickToStart: PIXI.Text public click: Signal0 = new Signal0() public constructor() { super() console.log('init WFSV') ...
# 注意 1. Parcel9里:如果定义的是一个匿名内部类,并且希望它 使用一个在其外部定义的对象,那么编译器会要求其参数饮引用 是final的,也就是destination() 的参数。 只不过 String 本身就是final的,所以加不加都行。
require 'spec_helper_acceptance' describe 'python class' do context 'facts' do install_python = <<-EOS class { 'python' : pip => 'present', } EOS fact_notices = <<-EOS notify{"pip_version: ${facts['pip_version']}":} notify{"system_python_version: ${facts['system_...
#!perl #---------------------------------------------------------------------- =pod =head1 NAME iscsi-copy.pl =head1 USAGE perl iscsi-copy.pl =head1 DESCRIPTION Rsync /bin, /sbin, /usr, /lib, /root to /media/rootfs Rsync /home to /media/homefs Rsync /var to /media/varfs Unmount /media/rootfs Unmount /media/homefs...
use wasm_bindgen::prelude::*; macro_rules! constants { ($($name:ident: $type:ty = $value:expr);*) => { $( #[wasm_bindgen] #[allow(non_snake_case)] pub fn $name() -> $type { $value } )* }; } constants!( INT_MIN: i32 = i32::MIN; INT_MAX: i32 = i32::MAX ); constants!( FLOAT_EPSIL...
import unittest from typing import List, Dict, Tuple class Solution: def carPooling(self, trips: List[List[int]], capacity: int) -> bool: pick_up_dict, min_pick, _ = self.create_passenger_dict(trips, 1) drop_off_dict, _, max_drop = self.create_passenger_dict(trips, 2) passengers = 0 ...
import { ApiRes } from '../_index'; export class PdeHistory { Id: string; TraderAddressStr: string; ReceiveTokenIDStr: string; ReceiveTokenSymbol: string; ReceiveTokenName: string; ReceiveTokenDecimal: number; ReceiveTokenImage: string; ReceiverAmount: number; SendTokenIDStr: string; SendTokenSymbol...
namespace AuctionHub.Services.Contracts { using Data.Models; using Services.Models.Products; using System.Collections.Generic; using System.Threading.Tasks; public interface IProductService { Task CreateAsync(string name, string description, List<Picture> pictures, string ownerId); ...
import * as yup from "yup"; import { createSpecs } from "../../utils"; import { NOT_DEFINED } from "../../../src/config"; import { UnknownDict } from "../../../src/data/types"; import { ConditionalStrategy } from "../../../src/strategies"; import { objects } from "../../../src/strategies/common"; import { ConditionOp...
package dao; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import bancoDeDados.BancoDadosException; import bancoDeDados.BancoDeDados; import bancoDeDados.EBancoDa...