text
stringlengths
1
1.05M
import { Injectable } from '@nestjs/common'; import {InjectRepository} from "@nestjs/typeorm"; import {Repository} from "typeorm"; import {Filter} from "./filter.entity"; @Injectable() export class FiltersService { constructor(@InjectRepository(Filter) private filterRepository: Repository<Filter>) { } async f...
def get_integer_input(msg: str) -> int: while True: try: n = int(input(msg)) return n except ValueError: print("Invalid input! Please enter an integer.")
source '../redis/plan.sh' pkg_name=redis4 pkg_origin=core pkg_version="4.0.10" pkg_description="Persistent key-value database, with built-in net interface" pkg_upstream_url="http://redis.io" pkg_license=("BSD-3-Clause") pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_source="http://download.redis.io/r...
StartTest({ defaultTimeout : 90000 }, function (t) { var popup = window.open("html-page/popup-content.html", '_blank', "left=10,top=10,width=500,height=500") // in our experience, IE sometimes fails to open a popup. This happens sporadically even if popups are enabled // in the browser,...
def expression(x): return 3 * x + 5 print(expression(7))
package table import ( "bytes" "fmt" "strings" "github.com/elgopher/noteo/date" "github.com/elgopher/noteo/notes" "github.com/elgopher/noteo/output" "github.com/juju/ansiterm" "golang.org/x/crypto/ssh/terminal" ) var mapping = map[string]column{ "FILE": fileColumn{}, "BEGINNING": beginningColumn{}, "...
<reponame>tarachandverma/ngx-openidc #ifndef DOC_PARSER_UTILS_H_ #define DOC_PARSER_UTILS_H_ #include <config-core/config_bindings_shm.h> char* docp_getRemoteResourcePath(pool* p, char* resource,cbs_service_descriptor *rs,char* homeDir,char**details); char* docp_getLocalResourcePath(pool*p,char* resource,char* homeDi...
#ifndef __WPA_COMMAND_BSS_HPP__ #define __WPA_COMMAND_BSS_HPP__ #include <cinttypes> #include <string> #include <vector> #include "wifi-telemetry/wifi/wifi_80211.hpp" #include "wifi-telemetry/wpa/wpa_command.hpp" #include "wifi-telemetry/wpa/wpa_command_response_parser.hpp" struct WpaCommandBssResponseParser : publ...
<filename>src/state/standard-request/auth.js // TODO: set this token on login // instead of using local storage export const authToken = () => JSON.parse(JSON.parse(window.localStorage.getItem("persist:root")).auth).token export const authHeaders = authToken => () => { return { Authorization: `Bearer ${authTo...
<filename>packages/server/http-server/prisma/migrations/20210616232339_alter_map_cancellation_created_at_column/migration.sql /* Warnings: - You are about to drop the column `canceled_at` on the `cancellations` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "cancellations" DROP COLUM...
// Define a trait for middleware trait Middleware { fn handle(&mut self, req: &mut Request, res: &mut Response); } // Implement the middleware system struct MiddlewareSystem { middlewares: Vec<Box<dyn Middleware>>, } impl MiddlewareSystem { fn new() -> Self { MiddlewareSystem { middlew...
import React, {Component} from 'react' import { hot } from 'react-hot-loader' import Root from './Root' class Dev extends Component { render() { return (<Root {...this.props} />) } }   export default hot(module)(Dev)
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/types/string_type.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/constants.hpp" #include <cstring> #in...
#!/bin/sh prefix="$(dirname "$0")" test_decompose_short_options() { eval set -- "$("$prefix"/option-decompose.sh -abc)" assert x"$1" = x"-a" assert x"$2" = x"-b" assert x"$3" = x"-c" } test_decompose_short_options_and_an_argument() { eval set -- "$("$prefix"/option-decompose.sh -abc arg)" ...
import random class Person: def __init__(self): self.age = random.randint(1, 100) self.gender = None def generate_greeting(self, lastname): title = "Mr." if self.gender == "male" else "Ms." return f"Hello, {title} {lastname}! You are {self.age} years old." # Example usage pers...
<reponame>FunMusicalIdeas/zdaubyaos export { thunkThirtyfiveSegments } from './segments' export { ThirtyfiveSegments, } from './types'
#!/bin/bash # # pkgver.sh - Check the 'pkgver' variable conforms to requirements. # # Copyright (c) 2014-2021 Pacman Development Team <pacman-dev@archlinux.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the...
package dolstats import ( "testing" "time" ) func TestUnmarshalFullMine(t *testing.T) { mock, err := loadMock("./testdata/full_mine_information/msha_mines.json") if err != nil { t.Error("Error loading FullMine mock data. Error was:", err) } a, err := unmarshalFullMine(mock) if err != nil { t.Error("Error ...
#!/bin/sh INPUT=$1 OUTPUT=$2 #insert colorize script here sleep 4 cp $INPUT $OUTPUT sips -f horizontal $OUTPUT rm $INPUT
public static void moveFirstToEnd(int[] arr) { int first = arr[0]; for (int i = 0; i < arr.length - 1; i++) { arr[i] = arr[i + 1]; } arr[arr.length - 1] = first; }
/** * Graphology Cycle Creation Checker * ================================== * * Function returning whether adding the given directed edge to a DAG will * create a cycle. * * Note that this function requires the given graph to be a valid DAG forest * and will not check it beforehand for performance reasons. */...
export interface IStarterWpWebPartPropspropertiesStarter { maxitems: string; }
<filename>docs/next.config.js const prod = process.env.NODE_ENV === "production" const withNextra = require('nextra')({ theme: 'nextra-theme-docs', themeConfig: './theme.config.js', // optional: add `unstable_staticImage: true` to enable Nextra's auto image import }) module.exports = withNextra({ // Gav...
/* * 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. */ if (!window.SITE) window.SITE = {}; SITE.PartEdit = function( mapa, interfaceParams ) { this.mapa = mapa; var ...
import { Express } from 'express'; import cookieSession from 'cookie-session'; import unless, { RequestHandler } from 'express-unless'; import * as config from '../config'; import authorizeRouter from './router.authorize'; import explorerRouter from './router.explorer'; import articleRouter from './router.article'; imp...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { AssessmentsProvider } from 'assessments/types/assessments-provider'; import { FeatureFlags } from 'common/feature-flags'; import { AssessmentStoreData } from 'common/types/store-data/assessment-result-data'; import ...
import logging class StreamManager: def __init__(self): self._stream = None self._connect_callbacks = None def connect(self, stream): self._stream = stream def disconnect(self): if self._connect_callbacks: self._connect_callbacks = None def raise_error(sel...
def my_function(N): list1 = [[i+j for j in range(N)] for i in range(N)] return list1
#!/usr/bin/env bash echo_time_step "[TODO] golang code style..." gofmt $gitlab_project_dir/*.go
#!/bin/bash # Function to insert a comma after every occurrence of a specific word in a file insert_comma_after_word() { file_path=$1 word_to_modify=$2 # Use sed to replace the word with the word followed by a comma sed -i "s/${word_to_modify}/${word_to_modify},/g" $file_path } # Example usage insert...
<gh_stars>1-10 from argparse import ArgumentParser from runners.utils import load_yaml import inspect import textwrap import os from src import logging def build_parser_for_yml_script(): """ Builds an ArgumentParser with a common setup. Used in the scripts. """ parser = ArgumentParser(add_help=False) ...
package com.semmle.js.ast; /** The common interface implemented by all AST node types. */ public interface INode extends ISourceElement { /** Accept a visitor object. */ public <C, R> R accept(Visitor<C, R> v, C c); /** Return the node's type tag. */ public String getType(); }
<filename>resolver-audioplayer/src/main/java/com/iflytek/cyber/resolver/audioplayer/service/model/ProgressReport.java package com.iflytek.cyber.resolver.audioplayer.service.model; import android.os.Parcel; import android.os.Parcelable; public class ProgressReport implements Parcelable { public long progressReport...
#!/usr/bin/env bash set -eu export LC_ALL=C ROOT=$(dirname "${BASH_SOURCE}") mkdir -p ${KUBE_ASSETS_DIR} source ${ROOT}/render-kubeconfig.sh source ${ROOT}/render-installer.sh source ${ROOT}/render-cluster-check.sh
<filename>src/interface/presentation/batatinha/BatatinhaRoutes.js module.exports = ({ batatinhaSchema, batatinhaController }) => { return [ { httpMethod: 'post', routePath: '/', schemaValidation: { headers: batatinhaSchema.common.headers, body: batatinhaSchema.createBatatinha.bod...
########################################################################################## #### CHECK THE SEASONAL FORECAST EXECUTION ############################################### #### ENSEMBLE MEMBER IS ALWAYS 1 FOR HINDCAST ############################################ ###############################################...
<reponame>vaniot-s/sentry import React from 'react'; import styled from '@emotion/styled'; import * as Sentry from '@sentry/browser'; import * as ReactRouter from 'react-router'; import {Location} from 'history'; import omit from 'lodash/omit'; import isEqual from 'lodash/isEqual'; import {Organization, GlobalSelectio...
<reponame>AltschulerWu-Lab/EnteroidSeg<filename>enteroidseg/segmentation.py """ Cell-type specific segmentation pipelines """ import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt plt.rcParams['image.cmap'] = u'Greys_r' import numpy as np import os from scipy import ndimage as ndi from skimage impo...
<gh_stars>1-10 // // WavefieldScanning.cpp // AxiSEM3D // // Created by <NAME> on 5/28/20. // Copyright © 2020 <NAME>. All rights reserved. // // wavefield scanning #include "WavefieldScanning.hpp" #include "SE_Model.hpp" #include "Domain.hpp" #include "inparam.hpp" #include "timer.hpp" #include "io.hpp" #incl...
<filename>belvo/resources/__init__.py from belvo.resources.accounts import Accounts # noqa from belvo.resources.balances import Balances # noqa from belvo.resources.incomes import Incomes # noqa from belvo.resources.institutions import Institutions # noqa from belvo.resources.invoices import Invoices # noqa from b...
import boto3 import csv import os if os.path.exists('InspectorFindings.csv'): os.remove('InspectorFindings.csv') print("Running Cleanup... Removing 'InspectorFindings.csv'...") else: print("File 'InspectorFindings.csv' does not exist to be removed") #AssessmentRunArn = 'fill in and uncomment this and line...
#!/bin/sh # # Copyright (c) 2016 Marcin Rataj # MIT Licensed; see the LICENSE file in this repository. # test_description="Test HTTP Gateway CORS Support" test_config_ipfs_cors_headers() { ipfs config --json Gateway.HTTPHeaders.Access-Control-Allow-Origin '["*"]' ipfs config --json Gateway.HTTPHeaders.Access-...
require File.dirname(__FILE__) + '/../spec_helper' describe "Eye::Dsl" do it "fully empty config" do conf = <<-E # haha E Eye::Dsl.parse(conf).to_h.should == {:applications => {}, :settings => {}, :defaults => {}} Eye::Dsl.parse_apps(conf).should == {} end it "empty config" do conf = ...
<reponame>tekton/icewall package main import ( "fmt" // "net" "net/http" "net/url" "net/http/httputil" "encoding/json" "time" "os" "io/ioutil" // "context" // "github.com/rs/xid" "github.com/spf13/viper" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ...
TERMUX_PKG_HOMEPAGE=https://nim-lang.org/ TERMUX_PKG_DESCRIPTION="Nim programming language compiler" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_VERSION=0.20.0 TERMUX_PKG_SRCURL=https://nim-lang.org/download/nim-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_SHA256=51f479b831e87b9539f7264082bb6a64641802b54d2691b3c6e68ac7e2699a90 TERMUX...
<filename>timwang-algorithm-leetcode/src/main/java/com/timwang/algorithm/leetcode/stack/MergeNumbers.java package com.timwang.algorithm.leetcode.stack; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /** * @author wangjun...
<reponame>TeKraft/smle<gh_stars>10-100 import { DynamicElementComponent } from './base/dynamic-element.component'; import { HostDirective } from './base/host.directive'; export const BASE_COMPONENTS = [ DynamicElementComponent, HostDirective ];
def longest_substring(s): '''This function calculates the length of the longest substring without repeating characters.''' longest_len = 0 start = 0 seen = {} for i, char in enumerate(s): if char in seen and start <= seen[char]: start = seen[char] + 1 else: ...
#!/bin/sh #SBATCH --partition general #SBATCH --mem 512 #SBATCH --job-name hello_world #SBATCH --output /replace/by/path/to/your/scratch/space/hello_world.%j.out echo Hello World from the cluster!
/* * 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 ...
const express = require("express"); const { d0_da_g3t } = require("./func"); const app = express(); const port = 8569; app.use(express.json()); app.post("/back_off_b1tch_u_dont_wanna_t3st_me", async (req, res) => { let resData = await d0_da_g3t(req.body); console.log(resData); res.json({ stats: resData }...
<reponame>kully-hmrc/cc-calculator /* * Copyright 2018 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
<filename>Ch09/ex09-04.sql CREATE FUNCTION concat_example_ansi( in_title VARCHAR(4), in_gender CHAR(1), in_firstname VARCHAR(20), in_middle_initial CHAR(1), in_surname VARCHAR(20)) RETURNS VARCHAR(60) BEGIN DECLARE l_title VARCHAR(4...
<filename>verification/src/main/java/nl/littlerobots/squadleader/verification/MyActivity.java package nl.littlerobots.squadleader.verification; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.webkit.JavascriptInterface; import com.f2prateek.dart.InjectExtra; import com....
<reponame>metaring/spring-boot-app-example<filename>src/main/java/com/metaring/springbootappexample/configuration/FF4JConfiguration.java package com.metaring.springbootappexample.configuration; import java.util.HashMap; import java.util.Map; import org.ff4j.FF4j; import org.ff4j.cache.InMemoryCacheManager; import org...
<filename>artifacts/adm/charts/src/main/java/net/community/apps/tools/adm/charts/MainFrame.java /* * */ package net.community.apps.tools.adm.charts; import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyListener; imp...
<filename>integer/digitsProduct_cf-45/betterSolutions.js function digitsProduct(product) { if (product == 0) return 10; if (product == 1) return 1; var divisor = 10, power = 1, result = 0; while (product > 1) { if (--divisor == 1) return -1; while (product % divisor == 0) { product /= divi...
package org.psem2m.isolates.loggers.impl; import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.psem2m.isolates.loggers.ILoggingCondition; import org.psem2m.utilities.CXStringUtils; import org.psem2m.utilities.json.JSONException; import org.psem2m.utilities.json.JSONObject; /...
#!/usr/bin/env bash set -e PYCMD=${PYCMD:="python"} if [[ $COVERAGE -eq 1 ]]; then coverage erase PYCMD="coverage run --parallel-mode --source torch " echo "coverage flag found. Setting python command to: \"$PYCMD\"" fi pushd "$(dirname "$0")" echo "Running core tests" $PYCMD test_core.py $@ echo "Ru...
class ValueDictionaryPersistentKey { public: // Constructor to initialize the persistent key ValueDictionaryPersistentKey(int key) : key_(key) {} // Getter method to retrieve the persistent key int getKey() const { return key_; } // Overriding the equality operator to compare two instances of ValueDictionar...
def non_negative_sum_of_squares(arr): result = 0 for num in arr: if num >= 0: result += num * num return result arr = [1,2,3,4,5] print(non_negative_sum_of_squares(arr)) # 55
<filename>ODFAEG/extlibs/headers/MySQL/conncpp/PreparedStatement.hpp /************************************************************************************ Copyright (C) 2020 MariaDB Corporation AB This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Genera...
/** * @fileoverview This file is generated by the Angular 2 template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties} */ /* tslint:disable */ import * as import0 from '@angular/core/src/linker/ng_module_factory'; import * as import1 from '../../../app/home/home.module'; import *...
#!/bin/bash #set /p ccomment="Enter Comment: " #echo "git" #echo %ccomment% git add . #git commit -m %ccomment% git commit -m "Kommentar" git push
from typing import List def generate_for_loop_command(items: List[str]) -> str: dsl_commands = [] dsl_commands.append("!fn --shellpen-private writeDSL writeln 'for $*'") dsl_commands.append("!fn --shellpen-private writeDSL writeln 'do'") dsl_commands.append("!fn --shellpen-private writeDSL --push 'done...
import { defaultReactVersion } from './shared/constants.ts' /** `VERSION` managed by https://deno.land/x/publish */ export const VERSION = '0.3.0-alpha.32' /** `prepublish` will be invoked before publish */ export async function prepublish(version: string) { const p = Deno.run({ cmd: ['deno', 'run', '-A', 'buil...
/** * https://github.com/larryli/u8g2_wqy */ #ifndef _U8G2_WQY_H #define _U8G2_WQY_H #include <stdint.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif #ifndef U8G2_USE_LARGE_FONTS #define U8G2_USE_LARGE_FONTS #endif #ifndef U8X8_FONT_SECTION #ifdef __GNUC__ # define U8X8_SECTION(name) __attribute__...
<?php $sample_array = [1, 2, 3, 4, 5]; $first_element = array_shift($sample_array); echo $first_element; ?>
cleaned_data = ["John 340 12th Street", "James 900 5th Avenue"]
"""Plugins for starting Vumi workers from twistd.""" from vumi.servicemaker import (VumiWorkerServiceMaker, DeprecatedStartWorkerServiceMaker) # Having instances of IServiceMaker present magically announces the # service makers to twistd. # See: http://twistedmatrix.com/documents/curren...
#!/bin/bash # Copyright (C) Microsoft Corporation. All rights reserved.​ # ​ # Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, # royalty-free right to use, copy, and modify the software code provided by us # ('Software Code'). You may not sublicense the Software Code or any use of it # (exce...
import ast def extract_dependencies(setup_content): dependencies = { 'regular': [], 'testing': [], 'dev': [] } # Parse the setup.py content as Python code setup_ast = ast.parse(setup_content) # Extract install_requires for node in ast.walk(setup_ast): if isinst...
from django.conf import settings # import the settings file def meta(request): return {'COMPANY_NAME': settings.COMPANY_NAME, 'PROJECT_NAME': settings.PROJECT_NAME, 'MALICIOUS': settings.MALICIOUS, 'SUSPICIOUS': settings.SUSPICIOUS, }
clj-kondo --lint "$(lein classpath)" | grep "dev.russell.batboy"
<reponame>thomastay/collectable import { SortedMapStructure } from '../internals'; import { has as _has } from '@collectable/map'; export function has<K, V, U = any> (key: K, map: SortedMapStructure<K, V, U>): boolean { return _has(key, map._indexed); }
const test = require('ava'); const cloudinaryResizeImage = require('./cloudinary-resize-image'); const redPng = '<KEY>'; test('no Cloudinary API key ', t=> { t.plan(1) return cloudinaryResizeImage('png',redPng,500) .then(results => { t.fail('should not succeed without API key') }) .catch(error => { ...
package com.roadrover.sdk.utils; import android.content.Context; import android.text.TextUtils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; /** * 文件的工具...
<filename>eventuate-tram-messaging-proxy-service/src/main/java/io/eventuate/tram/messaging/proxy/service/SubscriptionRequestManager.java package io.eventuate.tram.messaging.proxy.service; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.recipes.cache.TreeCache; import org.apach...
apiVersion: apps/v1 kind: Deployment metadata: name: web-app-deployment spec: replicas: 5 selector: matchLabels: app: web-app template: metadata: labels: app: web-app spec: containers: - name: web-app image: nginx --- apiVersion: v1 kind: Service metadata: name: web-app-s...
def stringToUpper(str): return str.upper() inputStr = "hello world" outputStr = stringToUpper(inputStr) print(outputStr)
#!/bin/bash # Script to configuring an ispconfig3 server in a Debian VPS # by calocen [at] gmail [dot] com # getting some enviromment values myhostname=`hostname -f` mydomain=`hostname -d` myip=`hostname -i` [ ! -x /usr/bin/geoiplookup ] && apt-get --assume-yes install geoip-bin mycountry=`geoiplookup $myip | cut -f4 ...
#! @shell@ set -eu -o pipefail +o posix shopt -s nullglob if (( "${NIX_DEBUG:-0}" >= 7 )); then set -x fi source @out@/nix-support/utils.bash if [ -z "${NIX_PKG_CONFIG_WRAPPER_FLAGS_SET_@suffixSalt@:-}" ]; then source @out@/nix-support/add-flags.sh fi if (( ${#role_suffixes[@]} > 0 )); then # replace env v...
<filename>src/network_flow/Boj11375.java package network_flow; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; /** * * @author minchoba * 백준 11375번: <NAME> * * @see https://www.acmicpc.net/problem/11375/ * */ public class Boj11375 { ...
<reponame>faizanu94/repeat-element 'use strict'; module.exports = function repeat(val, num) { var arr = []; while (num--) { arr[num] = val; } return arr; };
#!/bin/bash DEBTEST=`lsb_release -a 2> /dev/null | grep Distributor | awk '{print $3}'` if [[ "$DEBTEST" == "Ubuntu" ]]; then TYPE="debs" PYTHONPACK="/usr/lib/python2.7/dist-packages" elif [[ -f "/etc/redhat-release" ]]; then TYPE="rpms" PYTHONPACK="/usr/lib/python2.7/site-packages" else echo "Unknown Opera...
import { IAction, IPlainAction, IPlainFailAction } from 'shared/types/redux'; import { IAuthData, IChatMessage, IRoom } from './chatApi/namespace'; export type MessageType = 'message' | 'user_joined' | 'user_left' | 'unknown'; export interface IMessagesState { [roomId: string]: IChatMessage[]; } export interface I...
def calc_perimeter(width, height): return 2 * (width + height) perimeter = calc_perimeter(width, height) print("Perimeter of rectangle:", perimeter)
#include <vector> #include <queue> #include <algorithm> struct Edge { int src, dest, weight; }; struct Graph { int V, E; std::vector<Edge> edges; }; auto get_heap() noexcept { const auto compare = [](const Edge& lhs, const Edge& rhs) noexcept { return lhs.weight > rhs.weight; }; retu...
<gh_stars>0 import React from 'react'; import { mount } from 'enzyme'; import List from '../index'; describe('<List />', () => { // eslint-disable-next-line jest/expect-expect it('It should not crash', () => { mount(<List />); }); });
<reponame>MAMOUN-kamal-alshisani/horned-gallary import React from "react"; import 'bootstrap/dist/css/bootstrap.min.css'; import Card from 'react-bootstrap/Card' import Button from 'react-bootstrap/Button' import Imgselect from "./Imgselect"; class Beast extends React.Component{ constructor(props) { sup...
#!/bin/bash -e TOKEN=${1} TAG=${2} PROJECT=${3} CONTEXT=${4} echo ${TOKEN} | docker login -u oauth2accesstoken --password-stdin https://gcr.io docker build -t gcr.io/${PROJECT}/${TAG} ${CONTEXT} docker push gcr.io/${PROJECT}/${TAG}
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; @Component({ selector: 'ngx-add-new-compte', templateUrl: './add-new-compte.component.html', styleUrls: ['./add-new-compte.component.scss'], }) export class AddNewCompteComponent implements OnInit { @Input() account = { accoun...
<reponame>waricoma/my-first-zoom-app declare module 'vuejs-dialog'; // the vuetify.js has dialog feature. It's for my learning and memo. ( How to use plugin/outside plugin? )
<reponame>fanx-dev/fanx // // Copyright (c) 2009, <NAME> and <NAME> // Licensed under the Academic Free License version 3.0 // // History: // 24 Mar 09 <NAME> Creation // 20 May 09 <NAME> Refactor to new OO model // /** * Slot. */ fan.std.Slot = fan.sys.Obj.$extend(fan.sys.Obj); ////////////////////////////...
<filename>src/redux/reducers/userReducer.ts import { AnyAction } from "typescript-fsa"; import { addUser, deleteUser, editUser } from "../actions"; // const initState = [ // { // firstname: 'Gago', // lastname: 'Ka', // email: '<EMAIL>', // password: '<PASSWORD>', // avatar: '', // banner: '...
<filename>packages/web/modules/withEvent.js // @flow import { graphql, type OptionProps } from 'react-apollo'; import { gql } from 'graphql.macro'; import { EventDetailFragment } from './fragments'; import { type HOC, type Event } from '../utils/type.flow'; /** * Type (additional props) */ export type Response = Opt...
import React, { Component, PropTypes } from 'react'; var ReactPlayer = require('react-player') import { DropTarget } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { ItemTypes } from './Constants'; var Social = require('./Social'); import PlayByPlay from './PlayByPlay'; var PlayersOnField ...
import { Injectable } from '@nestjs/common'; import { CommandHelper } from 'src/shared/helpers/command.helper'; import { environment } from 'src/config/environments/environment'; import { TechnicalError } from 'src/shared/errors/technical.error'; import { ArgumentError } from 'src/shared/errors/argument.error'; import...
<gh_stars>0 # -*- coding: utf-8 -*- """ S3 Logging Facility @copyright: (c) 2014 Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software with...
<filename>sql/updates/18000_01_scripted_event_id.sql<gh_stars>0 RENAME TABLE scripted_event_id TO scripted_event;