text
stringlengths
1
1.05M
<gh_stars>0 export const INDEX = '/'; export const NEW_CHAPTER = '/new-chapter'; export const EDIT_CHAPTER = '/edit-chapter/:chapterId'; export const QUIZ = '/quiz/:chapterId';
import re def check_valid_phone_number(string): pattern = r"^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$" if re.match(pattern, string): return True else: return False
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.4") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.8")
<reponame>tollesonpdx/Last_Minute_Camping_With_C // <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_campTreeTravPrint.c #include "headers.h" int campTreeTravPrint(struct campground* node, int p) { // go left if (node->left != NULL) { campTreeTravPrint(node->left, p); ...
/* * Copyright 2018-2021 Elyra 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 ...
#!/bin/sh # Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl> # # Permission to use, copy, modify, and/or 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 all copies. # # THE SOFTWARE IS PROVIDED "AS I...
<style> .dashboard { border: solid 2px #000; padding: 10px; border-radius: 20px; } </style> <div class="dashboard"></div>
module.exports = { 'Wat is je oogkleur?': 'eyeColor', 'Welke kleur kledingstukken heb je aan vandaag? (Meerdere antwoorden mogelijk natuurlijk...)': 'clothesWearingToday', };
<reponame>AriusX7/godfather<gh_stars>10-100 import NightActionsManager, { NightActionPriority } from '@mafia/managers/NightActionsManager'; import SingleTarget from '@mafia/mixins/SingleTarget'; import Townie from '@mafia/mixins/Townie'; import type Player from '@mafia/structures/Player'; class Retributionist extends ...
<gh_stars>0 from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Optional if TYPE_CHECKING: from .solid import SolidDefinition from .resource import ResourceDefinition class VersionStrategy(ABC): """Abstract class for defining a strategy to version solids and resources. When subclas...
<gh_stars>0 import { PassportStrategy } from '@nestjs/passport'; import { Strategy, VerifyCallback } from 'passport-google-oauth20'; import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { InjectModel } from '@nestjs/mongoose'; import { User, UserDocument } from 'src/user/s...
export class ConsentReviewStep { results: Array<any>; saveable: boolean; identifier: string; constructor(identifier: string, givenName: string, familyName: string) { this.results = [{ identifier: "consentDocumentParticipantSignature", consented: true, saveabl...
const dot = (color = '#ccc', outline = false) => ({ alignItems: 'center', display: 'flex', ':before': { backgroundColor: outline ? null : color, border: outline ? `1px solid ${color}` : null, borderRadius: 10, content: '" "', display: 'block', marginRight: 8,...
#!/usr/bin/env bash #set -x # Generates diff patches between MegaCarPack and current one source ../setEnv.sh CURRENT_DB_PATH=${TDUCP_PATH}/database/reference/Civicmanvtec-Milli-CarMegapack REFERENCE_DB_PATH=${TDUCP_PATH}/database/current echo "Getting diffs between current database and Civicmanvtec-Milli one, plea...
def bal_brackets(string): open_bracket = set('{[(') close_bracket = set('}])') matching_bracket = {('}', '{'), (')', '('), (']', '[')} stack = [] for i in string: if i in open_bracket: stack.append(i) elif i in close_bracket: if len(stack) == 0: return False elif (i...
function signup(){ $("#signupModal").modal(); } function reload(){ window.location.href = site_url+"/home"; } function load_signup_form(type){ $("#chose_type").empty(); var html = '<div class="form-group">' +'Họ tên: <input type="text" id="first_name" name="first_name" class="form-control" placeh...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package bft.util; import bftsmart.tom.util.KeyLoader; import java.io.IOException; import java.security.NoSuchAlgorithmException; impor...
#!/bin/bash set -e # Environment variables: # VANTA_KEY (the Vanta per-domain secret key) # VANTA_OWNER_EMAIL (the email of the person who owns this computer. Ignored if VANTA_KEY is missing.) PKG_URL="https://vanta-agent.s3.amazonaws.com/v1.5.9/vanta.pkg" # Checksum needs to be updated when PKG_URL is updated. CHECK...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
<reponame>peterobrien/edge-react-gui // @flow import { connect } from 'react-redux' import type { Dispatch, State } from '../../../../../ReduxTypes.js' // $FlowFixMe import UI_SELECTORS from '../../../../selectors' // $FlowFixMe import { updateRenameWalletInput } from '../../action' import WalletListRowOptions from '...
#!/bin/sh set -e sudo mv /etc/apt/sources.list.d/pgdg* /tmp sudo apt-get update sudo apt-get install -y software-properties-common python-software-properties sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable sudo apt-get update # Disable postgresql since it draws ssl-cert that doesn't install cleanly # post...
interface NotifyOptions { color?: string; zIndex?: number; message: string; context?: any; duration?: number; selector?: string; background?: string; safeAreaInsetTop?: boolean; } export default function Notify(options: NotifyOptions | string): void; export {};
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ListFamilyComponent } from './list-family.component'; describe('ListFamilyComponent', () => { let component: ListFamilyComponent; let fixture: ComponentFixture<ListFamilyComponent>; beforeEach(async(() => { TestBed.configure...
<filename>src/app/popups/book-options/book-options.component.ts<gh_stars>0 import { Component, Input, OnInit } from '@angular/core'; import { DataService } from 'src/app/services/data.service'; import { PopoverController } from '@ionic/angular'; import { ModalController } from '@ionic/angular'; import { AddBookPage } f...
<reponame>openeuler-mirror/radiaTest import configparser from pathlib import Path from kombu import Exchange, Queue ini_path = "/etc/radiaTest/messenger.ini" def loads_config_ini(section, option): config_ini = Path(ini_path) cfg = configparser.ConfigParser() cfg.read(config_ini) if not cfg.get(sect...
let person = { name: 'John Doe', address: '123 Main St.', occupation: 'Software Engineer' };
#!/bin/sh # 20210217 takeru nakazato, hiromasaono # SPARQL query QUERY="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX obo: <http://purl.obolibrary.org/obo/> PREFIX oboInOwl: <http://www.geneontology.org/...
#include "virgl_vk.h" int toto() { }
import React from 'react' import { Row, Button, Autocomplete } from 'react-materialize' import { connect } from 'react-redux' import { clearArticles } from '../../store/articles' import { clearVideos } from '../../store/videos' import { fetchArtistAutocompletions, clearCompletions } from "../../store/autocomplete" con...
/** * OLAT - Online Learning and Training<br> * http://www.olat.org * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unl...
#!/usr/bin/env bash # Create a temp dir and clean it up on exit TEMPDIR=`mktemp -d -t consul-test.XXX` trap "rm -rf $TEMPDIR" EXIT HUP INT QUIT TERM # Build the Consul binary for the API tests echo "--> Building consul" go build -o $TEMPDIR/consul || exit 1 # Run the tests echo "--> Running tests" go list ./... | PA...
#!/bin/sh eval $* exit 0
<filename>src/Jimdo/JimFlow/PrintTicketBundle/Resources/public/js/backend/PrinterForm.js $(function() { var $printerForm = $('#printer_edit_form'), $stateInput = $('#printer_edit_form').find('input[type=hidden].is-active'), state; $('#deactivate').on('click', function() { state = $stat...
import asyncio import aioredis from ..config.app import Config from ..types import IO def init_pool(loop: asyncio.AbstractEventLoop, config: Config) -> IO[aioredis.commands.Redis]: c = config.redis address = (c.host, c.port) pool = aioredis.create_redis_pool( address=address, ...
<filename>SampleBackend/src/main/java/test/backend/www/model/hotelbeds/basic/annotation/validators/ValidReviewFilterValidator.java /** * Autogenerated code by SdkModelGenerator. * Do not edit. Any modification on this file will be removed automatically after project build * */ package test.backend.www.model.hotelbe...
from flask_script import Manager from flask import Flask from models import Task, TaskManager app = Flask(__name__) manager = Manager(app) @manager.command def list_tasks(): task_manager = TaskManager() # Assuming TaskManager class exists tasks = task_manager.get_all_tasks() # Assuming get_all_tasks() metho...
def find_second_smallest(arr): smallest = arr[0] second_smallest = None for i in range(1, len(arr)): if arr[i] < smallest: second_smallest = smallest smallest = arr[i] return second_smallest arr = [9, 7, 4, 8, 2] second_smallest = find_second_smallest(arr) print("Secon...
package bluegrass.blues.config.definition; /** * * @author gcaseres */ public class RootNode extends CompositeNode { public RootNode() { } @Override public String getPath() { return "root"; } /* @Override protected void validateName(ConfigurationNode conf...
<reponame>Mac15001900/almuCards let SceneGallery = new Phaser.Class({ Extends: Phaser.Scene, initialize: function SceneGallery() { Phaser.Scene.call(this, { key: 'SceneGallery' }); }, preload: function () { console.log("Preload in gallery"); //...
public static List<List<Integer>> getSubsetsWithSum(int[] arr, int sum) { // list to hold the subsets List<List<Integer>> subsets = new ArrayList<>(); // compute subsets using backtracking recursion getSubsetsWithSum(arr, sum, 0, 0, new ArrayList<>(), subsets); return subsets; } public st...
package org.insightcentre.nlp.saffron.authors; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.File; import java.io.IOException; import java.util.AbstractCollection; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator...
#!/bin/bash # takes an argument like v1, v2, or v3 # finds the pod IP of the recommendation version # curls the found IP with verbose output export REC_IP=`oc get pod -n user1-tutorial -l "app=recommendation,version=v2" -o jsonpath='{.items[0].status.podIP}'` oc exec -n user1-tutorial $(oc get pod -n user1-tutorial ...
package com.heima.model.behavior.pojos; import lombok.Data; import lombok.Getter; import org.apache.ibatis.type.Alias; import java.util.Date; @Data public class ApBehaviorEntry { private Integer id; private Short type; private Integer entryId; private Date createdTime; public String...
export const FormItems = [ { formType: 'input', disabled: false, isRequired: false, key: 'channelname', label: 'input', colSpan: 8, placeholder: 'input', hasFeedback: true, }, { formType: 'inputNumber', disabled: false, isRequired: false, key: 'inputNumber', lab...
<filename>imageeditor/src/main/java/com/createchance/imageeditor/shaders/AngularTransShader.java package com.createchance.imageeditor.shaders; import android.opengl.GLES20; /** * Angular transition shader. * * @author createchance * @date 2018/12/30 */ public class AngularTransShader extends TransitionMainFragme...
//package ru.job4j.tracker; // //import org.junit.Test; // //import java.io.ByteArrayOutputStream; //import java.io.PrintStream; //import java.util.StringJoiner; // //import static org.hamcrest.core.Is.is; //import static org.junit.Assert.assertThat; // // //public class StartUITest { // // @Test // public void w...
#!/bin/sh set -e set -u set -o pipefail if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P...
def solve_problem(): count = 0 sunday_cycle = 6 # First Sunday in 1901 for year in range(1901, 2001): if sunday_cycle == 0: sunday_cycle = 7 if is_leap_year(year): count += get_sundays(sunday_cycle, True) sunday_cycle -= 2 else: ...
from functools import wraps from framework import UseInterceptors, UsePipes, ValidationPipe def validate_input(validation_schema): def decorator(func): @wraps(func) def wrapper(*args, **kwargs): # Apply UseInterceptors and UsePipes to utilize ValidationPipe for input validation ...
# Biggest – big3.sh echo -n "Give value for A B and C: " read a b c if [ $a -gt $b -a $a -gt $c ] then echo "A is the Biggest number" elif [ $b -gt $c ] then echo "B is the Biggest number" else echo "C is the Biggest number" fi
package app.javachat.Garage; import app.javachat.Logger.Log; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; public interface Sala { /** * Este método crear una nueva connexion para poder realizar operaciones con el servidor. * * @return socket creado */ ...
const main = async () => { const domainContractFactory = await hre.ethers.getContractFactory('WaifuGen'); const domainContract = await domainContractFactory.deploy( 'WaifuGen', 'WAIFUGEN', 'ipfs://bafybeigv5iojhntwdswb4zx4oyunncqjpcxwm6jlyf4xqakft5nnvyekgm/' ); await domainContract.deployed(); co...
<filename>changingInlineStyles/inlineStyles.js<gh_stars>0 var currentPos = 0; var intervalHandle; function beginAnimate() { document.getElementById("join").style.position = "absolute"; document.getElementById("join").style.left = "0px"; document.getElementById("join").style.top = "100px"; // cause the animateBox f...
#!/bin/bash export JENACONNECTIFIER_INSTALL_DIR=/Users/szd2013/git/vivo-import-data/vivo-import-data export HARVEST_NAME=delete-profile export DATE=`date +%Y-%m-%d'T'%T` export JENACONNECTIFIER_DIR=$JENACONNECTIFIER_INSTALL_DIR/src/main/resources/delete-profile # Add harvester binaries to path for execution # The too...
import time def timer_every_hour(): start_time = time.time() end_time = start_time + 86400 # 86400 = # of seconds in 24 hours while time.time() < end_time: func() time.sleep(3600) # 3600 = # of seconds in 1 hour
package mezz.jei.config; import net.minecraftforge.fml.common.eventhandler.Event; public class BookmarkOverlayToggleEvent extends Event { private final boolean bookmarkOverlayEnabled; public BookmarkOverlayToggleEvent(boolean bookmarkOverlayEnabled) { this.bookmarkOverlayEnabled = bookmarkOverlayEnabled; } pu...
var _quantizer_test_8cpp = [ [ "MinMaxRange", "_quantizer_test_8cpp.xhtml#a997e96288bdb106c922202e3f33d5d7b", null ], [ "MinMaxRangeMap", "_quantizer_test_8cpp.xhtml#a061aafb62b3769f55369845c3990ec7a", null ], [ "MinMaxRanges", "_quantizer_test_8cpp.xhtml#ac757baefa4b72b54c38f713f86418f8a", null ], [ "B...
package com.SentimentAnalysis.controller; import com.SentimentAnalysis.services.SentimentAnalysis; import com.SentimentAnalysis.data.PasswordRepository; import com.SentimentAnalysis.data.Review; import com.SentimentAnalysis.data.ReviewRepository; import com.SentimentAnalysis.model.*; import org.springframework.beans.f...
using System; using System.Linq; using System.Reflection; [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class AutoMapToAttribute : Attribute { private Type _targetType; public AutoMapToAttribute(Type targetType) { _targetType = targetType; } public void MapPropert...
class FinancialInstrument: def __init__(self, name, commercial_paper=0): self.name = name self.commercial_paper = commercial_paper def calculate_total_value(self): total_value = self.commercial_paper return total_value # Example usage instrument1 = FinancialInstrument('Instrume...
/* * */ package net.community.chest.swing.component.list; import java.util.Arrays; import java.util.Collections; import java.util.List; import javax.swing.ListSelectionModel; import net.community.chest.util.collection.CollectionsUtils; /** * <P>Copyright 2008 as per GPLv2</P> * * <P>Used to convert between <co...
<reponame>ACM-VIT/ACM-internals-Android<filename>app/src/main/java/com/acmvit/acm_app/ui/custom/OverlapItemDecorator.java package com.acmvit.acm_app.ui.custom; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.ContentResolver; import android.content.Context; import ...
<gh_stars>0 (function() { var FileSystemProxy, FileTransfer; FileSystemProxy = (function() { function FileSystemProxy() { this.__openFS(); } FileSystemProxy.prototype.resolveLocalFileSystemURL = function(path) { return new Promise((function(_this) { return function(resolve, reject)...
import {API} from "api"; import {passJoinRequestMiddleware} from "store/middleware/joinRequest"; import {ActionFactory} from "store/action"; import {MiddlewareAPI} from "redux"; jest.mock("api", () => ({ API: { acceptJoinRequests: jest.fn(), rejectJoinRequests: jest.fn(), }, })); beforeEach(() => { (API...
# platform = multi_platform_wrlinux,multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle {{{ bash_instantiate_variables("var_password_pam_unix_remember") }}} AUTH_FILES[0]="/etc/pam.d/system-auth" AUTH_FILES[1]="/etc/pam.d/password-auth" for pamFile in "${AUTH_FILES[@]}" ...
<gh_stars>10-100 package com.roadrover.sdk.utils; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.support.annotation.NonNull; /** * 与第三方应用通信的工具类 </br> * 一般第三方APP通讯都是通过广播,将广播流程封装 */ public abstract class Ba...
#!/bin/bash # Image name pattern: course/lab name/router name IMG='adr10/rede04/as100-r1' docker build -t $IMG .
@app.route('/time_zone') def time_zone(): location = request.args.get('location') time_zone = pytz.timezone(location) local_time = datetime.now(time_zone) utc_offset = local_time.utcoffset().total_seconds()/3600 return render_template('time_zone.html', location=location, utc_offset=utc_offset) // In the template ...
<filename>WebUI/src/app/components/booking/booking.component.ts<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { BookingService } from 'src/app/services/booking.service'; import { SessionService } from 'src/app/services/session.service'; import { Router } from '@angular/router'; import { Show } fr...
def calculate_loss_percentage(revenue, expenses): loss_percentage = ((expenses - revenue) / revenue) * 100 return round(loss_percentage, 2)
<filename>caps.js<gh_stars>0 "use strict"; const {fakeOrderHandler} = require('./clients/driver'); setInterval(() => { fakeOrderHandler(); }, 5000);
/* * Copyright 2017-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...
<reponame>seanmay/bombscrubber<gh_stars>0 import React, { useState } from "react"; import Title from "../../design-components/title"; import Text from "../../design-components/text"; import type { BoardWidth, BoardHeight } from "../../game/core.types"; import { createBoard } from "../../game/services/game-board.servi...
<filename>finalProject/src/FinalProject.java import java.util.Collections; import java.util.Scanner; import java.util.Vector; import org.apache.commons.lang3.*; /** * Task for the project * Napisz program, który pobierze od użytkownika napis – domyślnie pewną * liczbę. (PROTIP: czytaj strin...
package de.lmu.cis.ocrd.calamari; import de.lmu.cis.ocrd.ml.OCRWord; import de.lmu.cis.ocrd.util.Normalizer; class Word implements OCRWord { private final String normalized; private final String raw; private final String line; private final double[] charConfs; private final double conf; Word(...
<gh_stars>0 package services class Preference(val _mainColor: String, val _subColor: String) { val mainColor = _mainColor val subColor = _subColor }
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
'use strict' global.__base = __dirname + '/../' const path = require('path') const util = require('util') const config = {} config.libPath = path.join(__base, 'src', 'libs', 'angular-signature-pad') config.debugMode = true config.validPreset = 'angular' config.ci = {} config.ci.validState = 'passed' module.exports ...
def calculate_duration(self) -> float: num_frames = self.get_num_frames() sampling_frequency = self.get_sampling_frequency() duration = num_frames / sampling_frequency return duration
<reponame>wp1016/wlan const express = require('express') const path = require('path') const app = express() app.use(express.static('dist')) app.use(function (req, res) { res.sendFile(path.dirname(require.main.filename) + '/dist/index.html') }) const port = 8091 app.listen(port, () => { // eslint-disable-next-lin...
import { GamepadButtonCode, InputBinding } from '../../core'; import { InputControl } from '../InputControl'; export class SecondaryGamepadInputBinding extends InputBinding { constructor() { super(); this.setDefault(InputControl.Up, GamepadButtonCode.Up); this.setDefault(InputControl.Down, GamepadButto...
/** * Copyright (c) 2001-2017 <NAME> and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://robocode.sourceforge.net/license/epl-v10.html...
# Get twilio-ruby from twilio.com/docs/ruby/install require 'twilio-ruby' # Get your Account SID and Auth Token from twilio.com/console # To set up environmental variables, see http://twil.io/secure account_sid = ENV['TWILIO_ACCOUNT_SID'] auth_token = ENV['TWILIO_AUTH_TOKEN'] # Initialize Twilio Client @client = Twil...
#!/bin/bash # docker rm -f mysql-server docker rm -f zabbix_server
#!/bin/bash if [[ ! $INSTALL_SCRIPT ]]; then echo "(!) Error: You must use the installer script." exit fi echo "Installing Deploy (Shell)" cd $PROJECT_TEMP_PATH wget https://github.com/visionmedia/deploy/archive/master.zip unzip master.zip cd deploy-master sudo make install cd $PROJECT_TEMP_PATH rm -rf deploy...
<reponame>bonusly/bamboo-id module BambooId class StateCode def initialize(subdomain) self.subdomain = subdomain end def to_s Digest::MD5.hexdigest([Configuration.client_id, subdomain].join('')) end private attr_accessor :subdomain end end
#!/bin/sh set -e set -u set -o pipefail if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P...
<reponame>kiran1235/phalitha require "phalithacapcha/version" require 'rmagick' class Phalithacapcha def generate(Text,targetlocation) granite = Magick::ImageList.new('granite:') canvas = Magick::ImageList.new canvas.new_image(100, 50, Magick::TextureFill.new(granite)) text = Magick::Draw.new text.font_famil...
angular.module('feedbackModule', []) .factory('feedbackService', ['feedbackChannel', '$log', function (feedbackChannel, $log) { var service = { showAnswer: false, showKeyBoard: false, revealAnswer: function () { this.showAnswer = true; //$...
import { QueueManagerOptions } from '../queue.manager.options'; import { QueueAbstract } from '../queue.abstract'; export abstract class JobAbstract { protected options: QueueManagerOptions; constructor(options: QueueManagerOptions) { this.options = options; } public abstract async listen(queues: QueueAbs...
<reponame>maheshrajamani/stargate package io.stargate.grpc.service.streaming; import io.stargate.db.Persistence; import io.stargate.grpc.service.BatchHandler; import io.stargate.grpc.service.ExceptionHandler; import io.stargate.grpc.service.StreamingSuccessHandler; import io.stargate.proto.QueryOuterClass; /** * Han...
#!/usr/bin/env bash $JRE9_HOME/bin/java -jar app7.jar
#!/bin/bash # BSD 3-Clause License # # Copyright (c) 2018, Sébastien Huss # 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 no...
from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Product(Base): __tablename__ = 'product' id = Column(Integer, primary_key=True) name = Column(String) class Employee(Base): __tablename__ = 'employee' id = Column(In...
<reponame>guidiaalo/sdk-js<filename>src/modules/Account/devices.types.ts import { GenericID, GenericToken, Query, TagsObj, PermissionOption, ExpireTimeOption } from "../../common/common.types"; interface DeviceQuery extends Query< DeviceInfo, "name" | "visible" | "active" | "last_input" | "last_output" | "cr...
#!/usr/bin/env bash source /etc/profile now_dir=`pwd` cd `dirname $0` shell_dir=`pwd` cd .. cd echo-proxy-lib/ mvn -Pint -Dmaven.test.skip=true clean install cd .. cd echo-common/ mvn -Pint -Dmaven.test.skip=true clean install cd ${shell_dir} mvn -Pint -Pprod -Dmaven.test.skip=true clean package appassembler:asse...
def reversePrintArray(array): for i in range(len(array)-1, -1, -1): print(array[i])
#!/bin/sh cd "$(dirname $0)" for d in ../test_regression/test_*/ do echo "Beginning $(basename $d)" printf "\tTesting cxx driver..." if ! ../../util/cxx_interface/cxxsimple "$d/model.xml" "model" 0.1 100.0 100 300; then printf " error!\n" exit -1 fi printf " done\n" printf "\tTesting c driver..." if ! ../....
#!/bin/bash for file in $@; do events=`grep 'Events shown' $file` totals=`grep 'PROGRAM TOTALS' $file` FS=';' read -ra totals_arr <<< "$totals" Dr=` echo ${totals_arr[3]} | sed 's/,//g'` D1mr=`echo ${totals_arr[4]} | sed 's/,//g'` DLmr=`echo ${totals_arr[5]} | sed 's/,//g'` Dw=` echo ${t...
<filename>src/main.js document.addEventListener('DOMContentLoaded', () => { // 整理資料 const buildData = data => { return new Promise((resolve, reject) => { // 最後所有的資料會存在這 let arrayData = []; try { // 取 data 的第一個 Object 的 key 當表頭 let arrayTitle = Object.keys(data[0]); ...