text
stringlengths
1
1.05M
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-item-selector', templateUrl: './item-selector.component.html', styleUrls: ['./item-selector.component.css'] }) export class ItemSelectorComponent implements OnInit { items = ['Apple', 'Banana', 'Orange', 'Pineapple', 'Lemon']; selectedI...
<gh_stars>10-100 package com.telenav.osv.event.hardware; import com.telenav.osv.event.OSVEvent; /** * Created by Kalman on 07/11/2016. */ abstract class SensorEvent extends OSVEvent { }
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-SS-N-VB/model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-SS-N-VB/512+512+512-N-VB-FILL-1 --do_eval --per_d...
'use strict'; var Bank = require('../models/bank.js'); var logger = require('../../logger'); module.exports = { getAmount: function() { return new Promise(function(resolve, reject) { Bank.findOne({ name: 'aces' }, function(err, doc) { if (err) throw err; if (!do...
using System; [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] public class RangeValidationAttribute : Attribute { private readonly int _minValue; private readonly int _maxValue; public RangeValidationAttribute(int minValue, int maxValue) { _minValue = minValue; _maxV...
<gh_stars>0 import { types } from 'rjv' export type RjvFieldProps = { path: string; schema: types.ISchema; dependencies?: any[]; }
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------------------...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { environment } from 'environments/environment'; import { UserInfoModel } from 'app/models/user-info'; import { ReplaySubject } from 'rxjs/ReplaySubject'; @I...
#!/usr/bin/env bash set -e echo "" > coverage.txt golangci-lint run \ --exclude horizon.Account \ --exclude horizon.Problem \ --exclude horizon.Signer \ --exclude horizon.Transaction \ --exclude proto.MessageName \ --exclude github.com/golang/protobuf/proto \ --exclude github.com/golang/pr...
#!/bin/bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi sudo docker cp ezgen_api:/opt/app/ezgen.db ./api sudo docker cp ezgen_api:/opt/app/tmp/ ./tmp sudo docker cp ezgen_telegram:/opt/app/telegram.db ./telegram touch api/ezgen.db touch telegram/telegram.db docker-compose down docker-compose up ...
// JavaScript code const data = [100, 200, 300, 400]; // Initialize the chart let chart = new Chart(data); // Get chart data let labels = chart.getLabels(); let datasets = chart.getDatasets(); // Render the chart let ctx = document.getElementById('my-chart').getContext('2d'); let chart = new Chart(ctx, { type: 'ba...
export SECRET_KEY=c317606b09268da1062862b6e81f9616 export MAIL_USERNAME=realgirduj@gmail.com export MAIL_PASSWORD=keymoney20 python3.6 manage.py server
<gh_stars>0 ///////////////////////////////////////////////////////////////////////////// // Name: samples/webrequest.cpp // Purpose: wxWebRequest Sample // Author: <NAME> // Created: 2018-10-15 // Copyright: (c) 2018 wxWidgets development team // Licence: wxWindows licence ///////////////////...
<filename>src/popup/components/wallet-cards/__tests__/wallet-cards.spec.tsx import React from 'react'; import { shallow } from 'enzyme'; import { Link } from 'react-router-dom'; import WalletCards from '../wallet-cards'; import { CardConfigData, GiftCardsData } from '../../../../testData'; const GetBalanceReturnValue ...
<reponame>maohuang81/newrelic-cli /* * Copyright 2017-2018 IBM Corporation * * 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 r...
################################################################################ # Github: https://github.com/MaxInGaussian/GomPlex # Author: <NAME> (<EMAIL>) ################################################################################ import numpy as np import pandas as pd import matplotlib.pyplot as plt from s...
/* * Copyright 2014-2020 chronicle.software * * http://www.chronicle.software * * 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 * * Unl...
# Just print some boring stuff print "Mary had a little lamb." # strange stuff in here. And snow is just a string, not a variable print "Its fleece was white as %s." % 'snow' print "And everywhere that Mary went." # A lot of points print "." * 10 # what'd that do? # Lots of variables with characters end1 = "C" end2 = ...
<gh_stars>0 import React, {useEffect} from 'react' import './Prizes.css'; import AOS from 'aos'; import "aos/dist/aos.css"; const Prizes = () => { useEffect(() => { AOS.init(); AOS.refresh(); }, []); return ( <div> <h1 className="heading">PRIZES</h1> <div className="pri...
#!/usr/bin/env bash # Copyright 2020 Amazon.com Inc. or its affiliates. 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....
#!/usr/bin/env bash function getOutputValue() { local VARIABLES_FILE="$1" local VARIABLE_NAME="$2" local temp=$(grep "^export ${VARIABLE_NAME}=" ${VARIABLES_FILE} | awk -F "=" '{print $2}') temp="${temp%\"}" printf "${temp#\"}" } function assertEquals() { local MESSAGE="$1" local EXPECTED...
# 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/LICEMESE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
from global_covid_tracker.dataframes import deaths_dataframe import plotly.graph_objects as go def plot_deaths_by_country(country: str) -> go.Figure: data = deaths_dataframe(country) fig = go.Figure(data=[ go.Bar( x=data.index, y=data['new_deaths'], name='New Daily ...
#ifndef GAUSSIANBLURRING_HPP #define GAUSSIANBLURRING_HPP #include "smoothing.hpp" class GaussianBlurring : public Smoothing { public: GaussianBlurring() = default; virtual void smooth(cv::Mat& m) { cv::Mat dst; cv::GaussianBlur(m, dst,cv::Size(5,5),0); m = std:...
#!/bin/bash # Define the variables IMAGE_NAME="your_image_name" TAG="your_tag" # Pull the Docker image docker pull $IMAGE_NAME:$TAG # Start a shell within the container and execute the required commands docker run -it $IMAGE_NAME:$TAG sh -c 'eval `ssh-agent -s`; sh -l'
public class Matrix { // Create a 3x4 matrix private int[][] matrix = new int[3][4]; public void setCell(int row, int col, int value) { matrix[row][col] = value; } public int getCell(int row, int col) { return matrix[row][col]; } }
#!/bin/bash # Author: yeho <lj2007331 AT gmail.com> # BLOG: https://blog.linuxeye.com # # Notes: OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+ # # Project home page: # http://oneinstack.com # https://github.com/lj2007331/oneinstack export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbi...
<reponame>shlomif/quad-pres<filename>installer/t/data/p4n5/src/slidy.js /* slidy.js Copyright (c) 2005 W3C (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply, see: http://www.w3.org/Consortium/Legal/copyright-documents http://www.w3.org/Co...
#!/bin/bash path=$1 here=$(pwd) # Mark the project directory cd $path # Take the hours data from failed logins and convert it into addRow javascript lines cat ./*/failed_login_data.txt | awk '{print $3;}' | sort | uniq -c | awk '{print "data.addRow([\x27"$2"\x27, "$1"]);"}' > temp_addRow.txt # Concatenates the ...
#!/bin/bash # Check. ping -c2 www.google.com > /dev/null # $? is return code of previous latest command. # 0 is true. # non-zero is false. if [ $? != 0 ] then # Wait for AP finishes boot. sleep 40 # Turn off power management for RPi3 WiFi. sudo iw dev wlan0 set power_save off # RPi3 wifi dead af...
package cn.finalteam.rxgalleryfinalprovider.di.scope; import java.lang.annotation.Retention; import javax.inject.Scope; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Desction: * Author:pengjianbo * Date:16/5/18 下午5:09 */ @Scope @Retention(RUNTIME) public @interface MediaGridScope { }
<reponame>bpbpublications/Building-Server-side-and-Microservices-with-Go package data import ( "building-restful-web-services-with-go/chapter2/library/server/dbserver" "building-restful-web-services-with-go/chapter2/library/util" "building-restful-web-services-with-go/chapter2/library/values" "context" "time" ) ...
import axios from 'axios'; import type { AxiosResponse } from 'axios'; const BASE_URL = process.env.REACT_APP_API; const api = axios.create({ baseURL: BASE_URL, timeout: 3000, }); api.interceptors.request.use( (config) => config, (error) => Promise.reject(error) ); api.interceptors.response.use( (respons...
package openanonymizer.model.dataset; import openanonymizer.model.wrapper.EntityWrapper; import java.util.Iterator; /** * Container for empty data set. * * @version 0.1 * @since Open Anonymizer 1.0.0 */ public class EmptyDataSet implements PagedDataSet { public static EmptyDataSet build() { return ...
import { isGreaterThanLimit, isLessThanLimit, isLongerThanLimit, isMailInvalid, isNumberValid, isShorterThanLimit, isWrittenValueEmpty, errorDataHandler, } from 'simple-input-validators'; import { LiveValidator, ValidatorErrorProps, HookProps, ValidatorsRulesListInsideValidator } from '@common-...
<reponame>Erwanncf/orange-smart-display-v2 var myVar = setInterval(myTimer, 30000); var newDataFlag = 1; var temperatur = 'nc'; var Humidite='nc'; var PsAtmo= 'nc'; var Luminosite = 'nc'; var bruit = 'nc'; var Altitude = 'nc'; var tempCaf = 'nc'; var heure= 'nc'; var Message = 'nc'; var IP = 'nc'; var Box = 'nc'; var d...
#!/bin/bash set -e ######################################## # e.g. # # ./cabal.sh # # ./cabal.sh new build # ./cabal.sh old build # # ./cabal.sh new-repl # ./cabal.sh repl # # ./cabal.sh 802 # ./cabal.sh js # # ./cabal.sh --argstr compiler ghc802 # ./cabal.sh --argstr compiler ghcjs # # ./cabal.sh old 841 --arg isPro...
<filename>lib/deepComparator.js /** * This algorithm will be used to deep comparison of n-level nested objects. * * Created by <NAME> on 1/7/15. */ 'use strict'; var debug = require('debuglog')('comparator'); /** * This function will accept a n-level nested object as source and then return the flattened object ...
class Circle: """Class to calculate the area of a circle""" def __init__(self, radius): self._radius = radius def area(self): """Calculate the area of the circle""" return (self._radius**2) * 3.14 # Create an instance of circle circle = Circle(5) # Calculate and print the area of ...
<gh_stars>1-10 public class DecimalsTest { public static void main(String[] args) { Decimals.printDecimalDigits(37.2); } }
#!/usr/bin/env sh # generated from dynamic_reconfigure/cmake/setup_custom_pythonpath.sh.in PYTHONPATH=/home/chenz16/Desktop/Rover/devel/lib/python3/dist-packages:$PYTHONPATH exec "$@"
#!/bin/bash # This script forwards BOOKSTORE port 80 to local host port 8082 # shellcheck disable=SC1091 source .env backend="${1:-bookstore-v2}" thisScript="$(dirname "$0")/$(basename "$0")" if [ -z "$backend" ]; then echo "Usage: $thisScript <backend-name>" exit 1 fi POD="$(kubectl get pods --selector ...
<filename>videoEditSdk/src/main/java/com/video/process/preview/custfilter/GlSoulOutFilter.java<gh_stars>10-100 package com.video.process.preview.custfilter; import android.content.Context; import android.opengl.GLES20; import android.opengl.GLES30; import com.video.process.R; import com.video.process.preview.filter.F...
/* * Copyright (c) 2012, <NAME> * All rights reserved. * * 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 condition...
"""Leetcode 160. Intersection of Two Linked Lists Easy URL: https://leetcode.com/problems/intersection-of-two-linked-lists/ Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A1 -> A2 \ C1 -> C2 -> C2 ...
/** * 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...
"use strict"; class Player { constructor(environment, addMode = "immediate", badStates = {}, badStateCounts = {}, activeBadStateCounts = {}) { /** 治療回数 */ this.repairCount = 0; /** ドーピング回数 */ this.dopeCount = 0; /** 通常ステータス */ this.normalStatus = new PlayerNormalStatu...
def str_to_int(input_string): """Converts a given string to an integer.""" output = int(input_string) return output print(str_to_int("123"))
class SearchController < ApplicationController def search @results = lark_client.search(params.require(:q)) end end
#! /bin/sh envsubst < redis_orig.json > redis.json ls -la cat redis.json locust -f redis_get_set.py
/** * Copyright © 2015, University of Washington * All rights reserved. * * 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,...
<reponame>otuhs-r/sesame-ruby require 'spec_helper' RSpec.describe Sesame do let(:auth_token) { 'd015cf1353d21a14f392835bceb56d53649e447e3aebe440cef9d' } let(:device_id) { 'ABCD12345' } let(:client) { Sesame::Client.new auth_token: auth_token } it 'has a version number' do expect(Sesame::VERSION).not...
#include <iostream> #include <math.h> // Function to normalize a two-dimensional vector void normalize(int x[], int y[], int n) { for (int i = 0; i < n; i++) { float length = sqrt(pow(x[i], 2) + pow(y[i], 2)); x[i] /= length; y[i] /= length; } } int main() { int x[] = { 2, 3, 4 }; int y[] = {...
TERMUX_PKG_HOMEPAGE=https://nixos.org/patchelf.html TERMUX_PKG_DESCRIPTION="Utility to modify the dynamic linker and RPATH of ELF executables" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=0.13 TERMUX_PKG_SRCURL=https://github.com/NixOS/patchelf/archive/$TERMUX_PKG_VERSION.tar.gz TERMU...
/* $OpenBSD: control.c,v 1.8 2021/03/02 04:10:07 jsg Exp $ */ /* * Copyright (c) 2003, 2004 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in al...
<filename>build_scripts/copyStatic.js /* copyStatic.js Created by <NAME>. on Dec 20 2020. Copyright 2020 Vircadia contributors. Distributed under the Apache License, Version 2.0. See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html */ const fse = require('fs-extra'...
const app = getApp(); Page({ data: { value: '', label: '', key: '' }, onLoad(option) { const { label, value, key } = option; wx.setNavigationBarTitle({ title: label }); this.setData({value, labe...
#!/bin/bash # # author: J.L. Lanfranchi # # Copyright (c) 2014-2017, The IceCube Collaboration # # 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...
#!/bin/sh files="./*.hydla" log="./log_all.txt" rm ${log} for filepath in ${files} do echo ${filepath} >> ${log} ../bin/hylagi -t5 ${filepath} --nd >> ${log} done read wait
#!/usr/bin/env bash {{! Template adapted from here: https://github.com/chriskempson/base16-builder/blob/master/templates/gnome-terminal/dark.sh.erb }} # Base16 Edge Light - Gnome Terminal color scheme install script # cjayross (https://github.com/cjayross) [[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Edge Lig...
package gui; import javafx.geometry.Insets; import javafx.scene.control.DialogPane; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.VBox; import javafx.scene.text.Font; import javafx.scene.text.Text; import javafx.scene.text.TextAlignment; import statics.VersionInfo; p...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-HPMI/model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-HPMI/512+0+512-SS-N-VB-1 --do_eval --per_device_eval_bat...
#!/usr/bin/env bash ############################################################################# ## ## Integration script for XSB-MT ## Last updated on May 17, 2018 ## ## This file is part of Logtalk <https://logtalk.org/> ## Copyright 1998-2020 Paulo Moura <pmoura@logtalk.org> ## ## Licensed under t...
#!/bin/bash ##################################################################################### # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modi...
from django.shortcuts import resolve_url from django.test import TestCase class ViewsTest(TestCase): def test_admin(self): response = self.client.get(resolve_url('admin:login')) self.assertContains(response, 'Log in | Django site admin', html=True) self.assertEqual(response.status_code, 2...
# src/bash/qto/funcs/backup-postgres-db.test.sh doTestBackupPostgresDb(){ do_log "DEBUG START doTestBackupPostgresDb" # Action !!! bash src/bash/qto/qto.sh -a backup-postgres-db sleep "$sleep_interval" # there should be at least one file in the current daily dir which is not older than while read -...
#include <iostream> #include <stdexcept> class Rational { public: int numerator; int denominator; Rational(int num, int den) : numerator(num), denominator(den) { if (denominator == 0) { throw std::runtime_error("Denominator cannot be zero"); } } double to_double() cons...
python3 bridgeFiltering.py
def render_pos(pos): return 'line {}, column {}'.format(pos.line, pos.column) class CircuitryException(Exception): pass class NoSuchComponentType(CircuitryException): def __init__(self, ttype, pos): super().__init__( 'No such component type as "{}". '.format(ttype) + ren...
/* * Copyright 2016-present Open Networking Foundation * * 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 appli...
#!/usr/bin/env bash CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh url="http://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT_HTTP}/?session_id=test_01194" rnd=$RANDOM ${CLICKHOUSE_CURL} -sS "$url&query=SELECT+$rnd,1" > /dev/null ${CLICKHOUSE_CURL} -sS "$url&query=SELECT+$rnd,2" > /dev/null ...
package com.webcheckers.appl; import java.util.HashMap; import java.util.Map; import com.webcheckers.model.Game; public class GameList { private Map<Integer, Game> games = new HashMap<>(); private Map<String, Game> gamesString = new HashMap<>(); private int currentID = 0; /** * Adds a game to ...
def maxElement(arr): max = arr[0] for i in arr: if i > max: max = i return max arr = [5, 25, 10, 9] out = maxElement(arr) print(out)
/* eslint-disable no-alert */ import { wrapRootElement as wrap } from './wrap-root-element' export const wrapRootElement = wrap export const onServiceWorkerUpdateReady = () => { const answer = window.confirm(`Cette application a été mise à jour. recharger pour afficher la dernière version?`) if (answer === true) ...
import styled from 'styled-components'; import colors from './index'; export const Card = styled.div` padding: 16px; border-radius: 8px; color: ${colors.white}; &:hover { cursor: pointer; opacity: 0.9; background-color: ${colors.darkGrey}; } `;
#!/bin/bash -e # Copyright 2016-2017 Nitor Creations Oy # # 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 l...
#!/bin/bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 remove_archive=false if [ "$1" == --remove-archive ]; then remove_archive=true shift fi if [ $# -ne 3 ]; then echo "Usage: $0 [--remove-archive] <data-base> <url-base> <corpus-part>" echo "e.g.: $0 /export/a15/vpana...
<filename>ScalaExamples/src/main/scala/com/mblinn/mbfpp/oo/iterator/TheLambdaBarAndGrille.scala package com.mblinn.mbfpp.oo.iterator import com.mblinn.oo.iterator.Address; object TheLambdaBarAndGrille { case class Person(name: String, address: Address) case class Address(zip: Int) def generateGreetings(people:...
import { commands, ExtensionContext, workspace } from "vscode"; import { createUserProfile, editUserProfile, getUserProfile } from "./commands"; import { Profile } from "./models"; import { ProfileStatusBar as statusBar } from "./controls"; import * as constants from "./constants"; import { getCurrentConfig, isValidWor...
#!/bin/sh docker images | awk '{print $3}' | xargs --no-run-if-empty docker rmi
<gh_stars>1-10 package com.github.drakepork.opme.Utils; import com.google.inject.Inject; import com.github.drakepork.opme.Main; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; import java.io.File; import java.io.IOException; public class LangCreator { ...
<reponame>FredericW/privacy """Differentially private version of Keras optimizer v2.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import tensorflow as tf import tables import numpy as np import pandas as pd import tensorflow.experimental.num...
CREATE TABLE [dbo].[Linking] ( [PolicyId] INT NOT NULL, [PolicyInfoId] INT NOT NULL, [Description] VARCHAR (50) NULL, CONSTRAINT [PK_Linking] PRIMARY KEY CLUSTERED ([PolicyId] ASC, [PolicyInfoId] ASC) );
#!/bin/sh # # ____ _ _____ _ _ # | _ \ ___ | |_| ___(_) | ___ ___ # | | | |/ _ \| __| |_ | | |/ _ \/ __| # | |_| | (_) | |_| _| | | | __/\__ \ # |____/ \___/ \__|_| |_|_|\___||___/ # # DotFiles v0.2.447 # https://dotfiles.io # # Desription: Setup procedures for DotFiles v0.2.447. # # Copyright (c) Se...
set -e echo echo "*****************" echo Julienning system echo "*****************" apt-get update apt-get -y upgrade echo echo "************************" echo Deep frying dependencies echo "************************" apt-get -y install git-core g++ autoconf echo echo "***************" echo Parboiling Ruby echo "***...
'use strict'; const expect = require('chai').expect; const extractName = require('../../../name/name-source-spec-helper'); const NgRepeatNameSource = require('../../../../lib/angular/angular-js/name/ng-repeat-name-source'); describe('NgRepeatNameSource', () => { let source = new NgRepeatNameSource(); it('should ...
#!/bin/bash # Determine environment from hostname if [[ $HOSTNAME =~ "stg" ]] then environment="staging" elif [[ $HOSTNAME =~ "prd" ]] then environment="prod" else environment="dev" fi # rdbms2s3 deployment path rdbms2s3_install_dir="/space1/deploy/${environment}/rdbms2s3" # python3 conda environment for...
<reponame>lvonnied/Dsy_ChallengeTask<filename>backend/routes/index-routes.ts import express from 'express'; const router = express.Router(); import {indexController} from '../controller/index-controller'; router.get("/api", indexController.index); router.get("/switchTheme", indexController.switchTheme); router...
<reponame>catroll/mailx /*@ S-nail - a mail user agent derived from Berkeley Mail. *@ Dig message objects. TODO Very very restricted (especially non-compose) *@ Protocol change: adjust mx-config.h:mx_DIG_MSG_PLUMBING_VERSION + `~^' man. *@ TODO - a_dmsg_cmd() should generate string lists, not perform real I/O. *@ T...
<reponame>akoss/instapipe<filename>database.rb require "sequel" require "google/cloud/storage" class Database def self.database @_db ||= Sequel.connect(ENV["DATABASE_URL"]) unless @_db.table_exists?("stories") @_db.create_table :stories do primary_key :id String :ig_id String :...
#!/usr/bin/env bash set -e export PATH=${GOROOT}/bin:${PATH} go version export ASHERAH_SERVICE_NAME=service export ASHERAH_PRODUCT_NAME=product export ASHERAH_KMS_MODE=static export ASHERAH_METASTORE_MODE=memory # Test Go server echo "------------Testing clients using go server------------" cd ../../go export ASHER...
# Generated by Django 3.2.7 on 2021-09-08 06:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('invoice2', '0001_initial'), ] operations = [ migrations.AddField( model_name='invoice', name='invoice_status', ...
<filename>src/com/twu/biblioteca/BibliotecaApp.java package com.twu.biblioteca; import java.util.Scanner; public class BibliotecaApp { /** * Main function to run the whole application * * @param args */ public static void main(String[] args) { NewMainMenu menu = new NewMainMenu(Sy...
// Import packages const express = require('express'); const app = express(); // Set up body-parser const bodyParser = require('body-parser'); app.use(bodyParser.json()); // Set up the database const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/users_db'); // Create the model const User = mo...
<gh_stars>0 # (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from datadog_checks.checks import AgentCheck @pytest.fixture def aggregator(): from datadog_checks.stubs import aggregator aggregator.reset() return aggregator def test_i...
/* * Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved. This * code is released under a tri EPL/GPL/LGPL license. You can use it, * redistribute it and/or modify it under the terms of the: * * Eclipse Public License version 1.0 * GNU General Public License version 2 * GNU Lesser General ...
import logo from '@/images/logo.png' import logoFold from '@/images/logo_fold.png' const sysInfo = { title: '欧蕾克后台', logo: logo, logoFold: logoFold } export { sysInfo }
# frozen_string_literal: true ## # Check a solr ping via `Blacklight.default_index` # # This check should fail if the solr server is unreachable class Starlight::SolrPingCheck < OkComputer::Check def check if Blacklight.default_index.ping mark_message "Solr connection OK (ping)" else mark_failure...
<reponame>elernal-tree/elernal-tree import { Component, Input, OnInit } from '@angular/core'; @Component({ selector: 'app-atk', templateUrl: './atk.component.html', styleUrls: ['./atk.component.scss'], }) export class AtkComponent { constructor() {} @Input() magunaAtk: number; @Input() normalAtk: number; ...
manage_repository() { if [ ! -d "$master" ]; then echo ":: %F{red}ERROR%f: master worktree does not exist" return 1 fi files=( $(git -C $master ls-files -ci -X $repo/info/sparse-checkout) $(yadm diff --name-only --cached) ) yadm stash push -- ':/:'${^files} || return 1 yadm merge --no-edit master y...