text
stringlengths
1
1.05M
#!/bin/bash # predeploy_tar.sh - Made for Puppi # Sources common header for Puppi scripts . $(dirname $0)/header || exit 10 # Show help showhelp () { echo "This script unpacks (tar) file from the download dir (storedir) to the predeploydir" echo "It has the following options:" echo "\$1 (Required) - Name ...
#!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy # resources to, so e...
#!/bin/ksh -p # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.open...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
#!/bin/bash yum groupinstall -y "PHP Support" yum install -y php-mysql yum install -y nginx yum install -y php-fpm
#!/usr/bin/env bash # # Run GNA several times: fit JUNO model with different options to estimate NMO sensitivity # # Estimate the number of processors, may be changed manually nproc=$(nproc) # Running mode mode=${1:-echo}; shift force=${1:-0} echo Run mode: $mode # Define the output directory outputdir=output/2020....
class GroceryList { constructor() { this.items = []; } addItem(name, quantity) { this.items.push({name, quantity}); } removeItem(name) { this.items = this.items.filter(item => item.name !== name); } }
package net.runelite.api.events; import lombok.Data; import net.runelite.api.Actor; /** * @author Kris | 07/01/2022 */ @Data public class CombatLevelChangeEvent { private final Actor actor; private final int oldCombatLevel; private final int newCombatLevel; }
import Login from './Login' import { shallow } from 'enzyme' import React from 'react' it('renders correctly', () => { const wrapper = shallow(<Login />) expect(wrapper).toMatchSnapshot() }) it('renders correctly with mobile redirect', () => { const url = 'some.url' const wrapper = shallow(<Login downloadAppU...
import { Card, Spacer, Text } from '@nextui-org/react'; const Feature = ({ tag, title, desc }) => { return ( <Card color="primary" css={{ padding: '.5rem' }}> <Text h6 size={14} color="$blue200"> {tag} </Text> <Text h5 size={24} color="white"> {title} </Text> <Spacer...
TERMUX_PKG_HOMEPAGE=http://www.capstone-engine.org/ TERMUX_PKG_DESCRIPTION="Lightweight multi-platform, multi-architecture disassembly framework" TERMUX_PKG_LICENSE="BSD" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=4.0.2 TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/aquynh/capstone/archive/$TERMUX_P...
#!/bin/bash # The Python script accepts CONSOLE_VERSION and DEVELOPMENT env variables TAG="${1:-master}" if [[ -z "${DEVELOPMENT}" ]]; then dest=../../deploy/olm-catalog/next dest_file=${2:-$dest/ember-csi-operator.vX.Y.Z.clusterserviceversion.yaml} mkdir -p $dest else dest_file=./out.yaml fi podman pull quay...
class PostSerializer(serializers.ModelSerializer): class Meta: model = Post fields = ['title', 'content', 'author']
def sort_list(numbers): return sorted(numbers)
#!/bin/sh CC="../../kcc -x" if [ "$CC" = "" ]; then exit 1 fi do_test() { TARGET=$1 EXPECT=`basename ${TARGET%.*}`.expect if [ ! -f $EXPECT ]; then gcc $TARGET -o expect.exe > /dev/null 2>&1 ./expect.exe > $EXPECT echo Result:$?>> $EXPECT fi echo "#include <stdio.h>" > ...
#!/bin/sh # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. set -e ROOTDIR=dist BUNDLE="${ROOTDIR}/Qcoin-Qt.app" CODESIGN=codesign TEMPDIR=sign.temp TEMPLIST=${TEMPDIR}/signatur...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
package com.alibaba.sreworks.cmdb.common; import com.alibaba.sreworks.cmdb.common.exception.*; import com.alibaba.tesla.common.base.TeslaBaseResult; import com.alibaba.tesla.common.base.TeslaResultFactory; import com.alibaba.tesla.common.base.constant.TeslaStatusCode; import lombok.extern.slf4j.Slf4j; import org.spri...
def sort_input(input): '''Given the input, sort it and store it in an output array.''' if len(input) == 0: return [] else: pivot = input[0] less = [i for i in input[1:] if i <= pivot] more = [i for i in input[1:] if i > pivot] return sort_input(less) + [pivot] + sort_...
import { UserEntity } from '../model/user.entity'; export class UserPaginateQueryType { data:UserEntity[] limit:number page:number total:number }
const WINNING_SCORES = [7, 56, 73, 84, 146, 273, 292, 448]; const MINIMUM_SCORE = -10; const MAXIMUM_SCORE = 10; const isGameOver = (board) => { for (let i = 0; i < WINNING_SCORES.length; i++) { if ((board & WINNING_SCORES[i]) === WINNING_SCORES[i]) { return true; } } return false; }; const minim...
class Node: def __init__(self, role, action, args=[]): self.role = role self.action = action self.args = args def create_node(role, action, args=[]): return Node(role, action, args)
import React from "react"; import { Col } from "react-bootstrap"; import { Bill } from "../../interfaces/interfaces"; import Content from "./Content"; interface IProps { bill: Bill; } const BillComponent: React.FC<IProps> = ({ bill }) => { return ( <> <Col className='d-flex justify-content-between mt-3 ...
<filename>main.py import request_mod as reqmod import os.path from os import path print("thank you for ussing rectify if you have any sugestion head to https://github.com/Human-bio/Rectify")
<filename>sql/derived_tables/feesfines_accounts_actions.sql DROP TABLE IF EXISTS folio_reporting.feesfines_accounts_actions; -- Create a derived table that takes feesfines_accounts as the main table -- join all transaction data from the feesfines_actions table -- add patron group information from user_group table CREA...
package main import ( "fmt" "os" "strings" "github.com/urfave/cli/v2" "syreclabs.com/go/faker" "syreclabs.com/go/faker/locales" ) func main() { app := cli.App{ Name: "gnrate", Description: "Genrate fake data", Authors: []*cli.Author{ { Name: "<NAME>", }, }, Usage: "Generates fak...
class ChargingStation: def __init__(self, id, description, max_charge): self.id = id self.description = description self.max_charge = max_charge def check_status(self): if self.max_charge > 0: return "Charging station is available" else: return "C...
/* * Copyright (c) 2021 <NAME> * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https://www.apache.org/licenses/LICENSE-2.0...
#!/usr/bin/env bash git submodule update --recursive --init && ./scripts/applyPatches.sh if [ "$1" == "--jar" ]; then pushd Trove-Proxy mvn clean package fi
/** * Copyright 2005 Sakai Foundation Licensed under the * Educational Community 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.osedu.org/licenses/ECL-2.0 * * Unless required by applicable law or a...
def transform_ascii_art(ascii_art): # Split the input ASCII art into individual lines lines = ascii_art.strip().split('\n') # Rotate the ASCII art 90 degrees clockwise rotated_art = [''.join([lines[j][i] for j in range(len(lines)-1, -1, -1)]) for i in range(len(lines[0]))] # Flip the rotat...
<filename>cometchat/plugins/avchat/js/opentok.js<gh_stars>0 <?php /* CometChat Copyright (c) 2014 Inscripts CometChat ('the Software') is a copyrighted work of authorship. Inscripts retains ownership of the Software and any copies of it, regardless of the form in which the copies may exist. This license is not a s...
#!/bin/bash set -euo pipefail IFS=$'\n\t' # Swarm mode using Docker Machine (Taken from https://github.com/docker/labs) managers=1 workers=3 # create manager machines echo "======> Creating $managers manager machines ..."; for node in $(seq 1 $managers); do echo "======> Creating manager$node machine ..."; docker-m...
<filename>tests/test_api.py # Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT from datetime import timedelta, datetime from flexmock import flexmock from tokman import app from tokman.app import AppNotInstalledError def test_api_health(client): response = client.get("/api/health") ...
import {mxEnv} from 'Resources/helpers'; export default { profile: false, loaded: false, messageStatus: false, isPartner: false, bgShown: false, adminDetails: {}, env: mxEnv() };
import { get, post } from './http' const api = { getArticles(page, limit) { const params = { page, limit: limit || 5 } return get('/article', params) }, getArticle(id) { return get('/article/' + id) }, getCategories() { return get('/category') }, getTags() { return get...
<reponame>leongaban/redux-saga-exchange import * as React from 'react'; import { bind } from 'decko'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import block from 'bem-cn'; import { createSelector } from 'reselect'; import * as R from 'ramda'; import { Input, Icon } fr...
<gh_stars>1-10 import React from 'react'; import { Link } from 'gatsby'; import { Result, Button, Layout } from 'antd'; import Helmet from '@/components/Helmet'; import UFooter from '@/components/Footer'; import styles from './404.module.less'; const Content = Layout.Content; const Footer = Layout.Footer; class NotFo...
<filename>activitytree/views.py<gh_stars>1-10 # -*- coding: utf-8 -*- # Create your views here. from django.http import HttpResponse, HttpResponseRedirect, HttpResponseNotFound from django.http import JsonResponse from django.template.response import TemplateResponse from django.db.models import Avg, Count from djang...
<reponame>tanxujie/AKunZhuBaoZip<gh_stars>0 import { AppDetails, IApp, IClient, IPaginator, Response } from '../definitions'; export declare class App implements IApp { token: string; protected client: IClient; constructor(token: string, client: IClient); load(app_id: string): Promise<AppDetails>; l...
<reponame>leodotcloud/go-zendesk package zendesk // Code generated by mockery v1.0.0. DO NOT EDIT. import io "io" import mock "github.com/stretchr/testify/mock" // MockClient is an autogenerated mock type for the Client type type MockClient struct { mock.Mock } // AddUserTags provides a mock function with given fi...
/* * Copyright (C) 2015 Google 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 ...
#!/bin/bash set -exu for idx in 0 1 2 3 4 5 6 7 8 9; do # # generate the training & test data python multiple_domains.py $idx 1500 # # generate the adaptation data for data_size in 15; do python multiple_domains.py $idx $data_size cd ./1500_data_fixed_${idx}/ # # combine dialog log cat restaurant-MixSp...
/** * 主程序, 不包含手势, * 主要用来适配Mouse/Touch事件 * ==================== 参考 ==================== * https://segmentfault.com/a/1190000010511484#articleHeader0 * https://segmentfault.com/a/1190000007448808#articleHeader1 * hammer.js http://hammerjs.github.io/ * ==================== 流程 ==================== * Event(Mouse|Tou...
key: a key: b key: c
from PyQt5 import QtWidgets PLOT_STEP = 1 PLOT_YMIN = -100 PLOT_YMAX = 0 PLOT_BOTTOM = -80 class SignalProcessingSettings: def __init__(self): self._ref_level = QtWidgets.QSpinBox() self._ref_level.setSingleStep(PLOT_STEP) self._ref_level.valueChanged.connect(self._update_plot_y_axis) ...
#!/bin/bash data=$(curl -L https://curl.se/ca/cacert.pem) if [ ! -e cabundle ]; then mkdir cabundle fi cat << _EOT_ > cabundle/cabundle.go package cabundle import ( "unsafe" "reflect" "net/http" "crypto/x509" "crypto/tls" ) var strData = \`$data\` func pemData() []byte { var empty [0]byte sx := (*reflect....
#!/bin/bash -e set -o pipefail # set -x (bash debug) if log level is trace # https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper log-helper level eq trace && set -x # Reduce maximum number of number of open file descriptors to 1024 # otherwise slapd consumes two orders of magnitude more...
function isMAC48Address(inputString) { const strToArr = inputString.split("-"); if (strToArr.length !== 6) { return false; } return strToArr.filter(str => /^[0-9A-F][0-9A-F]$/.test(str)).length === 6; }
require "spec_helper" describe Jkf::Converter::Csa do let(:csa_converter) { Jkf::Converter::Csa.new } let(:csa_parser) { Jkf::Parser::Csa.new } subject { csa_parser.parse(csa_converter.convert(jkf)) } shared_examples(:parse_file) do |filename| let(:str) do if File.extname(filename) == ".csa" ...
package com.ap.stephen.videodrawerplayer.content; import android.graphics.Bitmap; import android.media.ThumbnailUtils; import android.provider.MediaStore; import java.util.HashMap; public class VideoItem { private final String name; private final String path; private final static HashMap<String, Bitmap> ...
def time_to_seconds(hours, minutes, seconds): return (hours * 3600) + (minutes * 60) + seconds result = time_to_seconds(2, 3, 4) print(result)
<reponame>wang-zhuoran/software-engineering-labs<filename>LAB4/music/music.js // pages/music/music.js Page({ /** * 页面的初始数据 */ data: {}, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { wx.playBackgroundAudio({ dataUrl: "http://www.ytmp3.cn/down/57642.mp3", title: "爱拼才会赢", ...
<filename>go/send-sms/main.go package main import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "strings" ) const ( senderName string = "Bosbec" baseUrl string = "https://api.mobileresponse.se/" message string = "Hello from Golang!" ) var ( recipients []string = []string{"+46705...
<reponame>webster6667/react-flaky-form import 'element-closest-polyfill'; import React, {useEffect, useState} from 'react'; import axios from 'axios' // import {useImmer} from 'use-immer' import {DEFAULT_FORM_SETTINGS, FORM_NAME} from "@const"; import {combineValidatorsSettingsLayers} from '@add-control-props-layer...
#!/bin/bash # ---- ICINGA INTEGRATION ---- # # 1- Icinga config lines to be added to contacts.cfg # # define contact { # contact_name upwork # alias Upwork # service_notification_period 24x7 # host_notification_period ...
#!/usr/bin/env bash ############### # Definitions # ############### # Shell PID top_pid=$$ # This script name script_name=$(basename $0) # Firmware file location fw_top_dir="/tmp/fw" ######################## # Function definitions # ######################## # Trap TERM signals and exit trap "echo 'An ERROR was fou...
/** * Copyright 2018-2020 Dynatrace LLC * * 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 ...
// Copyright 2019 Drone.IO Inc. All rights reserved. // Use of this source code is governed by the Drone Non-Commercial License // that can be found in the LICENSE file. package acl import ( "io/ioutil" "net/http" "net/http/httptest" "testing" "github.com/drone/drone/core" "github.com/drone/drone/handler/api/r...
import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'cm-studenti-container', templateUrl: './studenti-container.component.html', styleUrls: ['./studenti-container.component.scss'] }) export class StudentiContainerComponent implements OnInit...
#!/usr/bin/env bash set -ex # Download and unpack Gloo GLOO_VERSION=0.17.1 GLOO_CHART=gloo-${GLOO_VERSION}.tgz DOWNLOAD_URL=https://storage.googleapis.com/solo-public-helm/charts/${GLOO_CHART} wget $DOWNLOAD_URL # Create CRDs template helm template --namespace=gloo-system \ ${GLOO_CHART} --values values.yaml \ ...
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.com/docs/node-apis/ */ const createFrontPage = require( './create-pages/front-page' ); // const createAllPages = require( './create-pages/pages' ); // const createAllPosts = require( './create-pages/posts' ); // const createFrontPage...
<filename>src/routes/shadowBanUser.ts import {db, privateDB} from '../databases/databases'; import {getHash} from '../utils/getHash'; import {Request, Response} from 'express'; export async function shadowBanUser(req: Request, res: Response) { const userID = req.query.userID as string; const hashedIP = req.que...
/* * Copyright 2019 BROCKHAUS AG * * 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 applicabl...
#!/bin/bash # Module specific variables go here # Files: file=/path/to/file # Arrays: declare -a array_name # Strings: foo="bar" # Integers: x=9 ############################################### # Bootstrapping environment setup ############################################### # Get our working directory cwd="$(pwd)"...
/** * 游戏触屏事件 */ H7.Events = (function() { return { nodeList: [], /** * 注册事件 */ on: function(eventName, fn) { var t = this; if (window.addEventListener) { this.gamecanvas.addEventListener(eventName, function() { ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ export function getInternalDevToolsModule<TModule>(): TModule { throw new Error( "Can't require internal versi...
<filename>src/code_katas/proper_parenthetics.py """Check if a string of parens is balanced, open or brokend.""" from src.stack import Stack def proper_parens(str): """Return 0 if string of parens is balanced, 1 if open and -1 if broken.""" stack = Stack() for i in str: if i is '(': ...
#!/bin/sh java -cp lib/*:indexer/target/classes com.gitee.kooder.indexer.PathImporter $*
package Shop_Skins; import java.io.BufferedReader; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.htt...
<gh_stars>0 require 'sinatra/base' require 'twilio-ruby' require 'dotenv/load' require_relative 'send_sms.rb' class Takeaway < Sinatra::Base enable :sessions, :method_override set :public_folder, 'public' get '/' do erb :index end get '/confirmation' do time = Time.new hours_time = "#{(time.hou...
var dir_895bac71a5ab2f3f201ab1eda13a633d = [ [ "TestAdd.cpp", "_test_add_8cpp.xhtml", "_test_add_8cpp" ], [ "TestConcat.cpp", "_test_concat_8cpp.xhtml", "_test_concat_8cpp" ], [ "TestConvolution.cpp", "_test_convolution_8cpp.xhtml", "_test_convolution_8cpp" ], [ "TestDropout.cpp", "_test_dropout_8cpp.xh...
#!/bin/bash rm timings rm wallclock echo 'Linearising' echo 'Wallclock time for generating and solving PBES:' > wallclock echo 'mcrl22lps:' >> wallclock { time mcrl22lps -nf --timings=timings minepump.mcrl2 | lpssumelm > minepump.lps ; } 2>> wallclock echo 'lps2pbes:' >> wallclock echo 'Converting to PBES' { tim...
<gh_stars>1-10 package view /////////////////////////////////////////////////////////////////////////////// // Paragraph type Paragraph struct { ViewBaseWithId Class string Content View } func (self *Paragraph) IterateChildren(callback IterateChildrenCallback) { if self.Content != nil { callback(self, self.C...
<gh_stars>1-10 package com.example.blockchainapp.HelpRequest; public class HelpRequest { private String campaignName; private String username; private Long amount; private String message; public HelpRequest(String campaignName, String username, Long amount, String message) { this.campaignN...
#!/bin/bash java -jar lib/papaya-builder.jar $*
<filename>internal/ps/ps.go<gh_stars>0 package ps import ( "os/exec" "strconv" "strings" ) // Exec invokes ps -o keywords -p pid and returns its output func Exec(pid int, keywords string) (string, error) { out, err := exec.Command("ps", "-o", keywords, "-p", strconv.Itoa(pid)).Output() if err != nil { return "...
import React, {Component} from 'react'; class AudioPlayer extends Component{ static defaultProps = { fastForwardStep: 10, volumeStep: 0.05, minVolume: 0, maxVolume: 1, maxProgress: 100 } state = { progress: 0, volume: 0.5 } componentDidMount...
#!/bin/bash function bootloader() { # Install grub if [ $EFI -eq 1 ]; then grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck elif [ $EFI -eq 0 ]; then grub-install /dev/$INSTALLDISK fi grub-mkconfig -o /boot/grub/grub.cfg }
<reponame>NBNARADHYA/cl-judge const { pool } = require('../database') /** * * @param {*} param0 * @param {Object} param0.params * @param {Object} param0.body * @param {Object} param0.username * @return {Promise} * */ function addBranch({ params, body, username }) { return new Promise((resolve, reject) => { ...
SELECT COUNT(*) FROM Employee WHERE Salary > ( SELECT AVG(Salary) FROM Employee );
import { Column } from "./column.model"; /** * This class represents as boards of square */ export class Board { /** * this params for create a new board * @param name * @param columns */ constructor(public name: string, public columns: Column[]) {} }
package dev.webfx.kit.mapper.peers.javafxgraphics.gwt.html; import dev.webfx.kit.mapper.peers.javafxgraphics.SceneRequester; import dev.webfx.kit.mapper.peers.javafxgraphics.base.TextPeerBase; import dev.webfx.kit.mapper.peers.javafxgraphics.base.TextPeerMixin; import dev.webfx.kit.mapper.peers.javafxgraphics.gwt.html...
// @flow import { Trans } from '@lingui/macro'; import React, { Component } from 'react'; import Timer from '@material-ui/icons/Timer'; import FlatButton from '../../../UI/FlatButton'; import Checkbox from '../../../UI/Checkbox'; import Brush from '@material-ui/icons/Brush'; import PlayArrow from '@material-ui/icons/P...
<gh_stars>10-100 import { createLocalVue, mount } from '@vue/test-utils' import Vuex from 'vuex' import { DruxtRouter, DruxtRouterStore } from 'druxt-router' import { DruxtEntityComponentSuggestionMixin } from '../../src/mixins/componentSuggestion' const baseURL = 'https://demo-api.druxtjs.org' // Setup local vue i...
#!/bin/bash # Script to run ShellCheck (a static analysis tool for shell scripts) over a # script directory if [ -z "$1" ]; then echo "usage: $0 <directory>" echo "" echo " <directory> Directory to search for scripts" exit -1 fi search_directory="$1" command -v shellcheck >/dev/null 2>&1 || { echo -e >&2 \ ...
package flow import ( "errors" "github.com/JointFaaS/Client-go/client" ) type input struct { lastIndex int32 argsName string } type fcInvocation struct { inputFrom []*input funcName string args []byte ret []byte } type layer struct { fcs []*fcInvocation } type FcFlow struct { layers []layer } func New...
/* * GreatestLeast.sql * Chapter 4, Oracle10g PL/SQL Programming * by <NAME>, <NAME>, <NAME> * * This script demonstrates the Greatest and Least functions */ SET SERVEROUTPUT ON DECLARE v_char VARCHAR2(10); v_number NUMBER(10); BEGIN v_char := GREATEST('A', 'B', 'C'); v_number := GREATEST(1,2,3); ...
# -*- coding: utf-8 -*- """ Created on Sat Feb 22 21:47:18 2020 @author: bejin """ def load_res_data(filename): data_list = [] with open(filename, "r") as f: for line in f.readlines(): line = line.rstrip() if len(line) == 0: continue #data = np.arra...
<gh_stars>10-100 // Copyright (c) 2012-2019 The Elastos Open Source Project // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __ELASTOS_SDK_PRVNET_H__ #define __ELASTOS_SDK_PRVNET_H__ namespace Elastos { namespace ElaWal...
#include <iostream> using namespace std; int main() { int array[3][3] = {{1,2,3},{4,5,6},{7,8,9}}; int sum = 0; //Calculate sum for(int i=0; i<3; i++){ for(int j=0; j<3; j++){ sum += array[i][j]; } } //Print result cout << "Sum of elements is " << sum; return 0; }
import React from 'react' import { createBottomTabNavigator } from '@react-navigation/bottom-tabs' import Icon from 'react-native-vector-icons/FontAwesome5' import { Image } from 'react-native' import FavoriteNavigation from '../navigation/FavoriteNavigation' import PokedexNavigation from '../navigation/PokedexNavigati...
#/bin/bash # Jupyter-build doesn't have an option to automatically show the # saved reports, which makes it difficult to debug the reasons for # build failures in CI. This is a simple wrapper to handle that. # Use package from parent directory. export PYTHONPATH=$(realpath ..):$PYTHONPATH REPORTDIR=_build/html/rep...
# # Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of c...
<filename>packages/esbuild-plugin-starter/fixtures/build.ts import { build } from 'esbuild'; import { plugin } from '../src/plugin'; import path from 'path'; (async () => { await build({ entryPoints: [path.resolve(__dirname, './entry.ts')], plugins: [plugin()], outdir: './dist', }); })();
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.interestrate.payments.market; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import o...
import fetch from '../fetch'; import { getURL, getNewsURL } from '../utils'; import { IOptionsDocs } from '../typings'; export interface INewsItem { id: string; tag?: string; categories: string[]; placement?: string[] | null; type: string; date: string; title: string; abstract?: string; content: stri...
import 'reflect-metadata'; import { MFDeleteMode } from '../enums/mf-delete-mode.enum'; /** * Sets default deletion mode of the targetted DAO * * @param mode hard or soft mode (default: hard) */ export function DeletionMode(mode: MFDeleteMode): any { // eslint-disable-next-line @typescript-eslint/ban-types ret...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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...
#!/bin/sh FIXED_IMAGE=$1 MOVING_IMAGE_DIR=$2 ELASTIX_RESULT_FOLDER=$3 ELASTIX_PARAMETER_FOLDER=/elastix/out_parameters TMP_FOLDER = /elastix/tmp_out mkdir -p $ELASTIX_RESULT_FOLDER mkdir -p $ELASTIX_PARAMETER_FOLDER mkdir -p $TMP_FOLDER MOVING_IMAGE=$(ls $MOVING_IMAGE_DIR/*.nii.gz | head -1) echo elastix -f $FIXED_...