text
stringlengths
1
1.05M
#!/bin/sh -l sh -c "echo Hello world my name is $That_1_Bull"
#!/usr/bin/env sh echo "[luacheck]" echo luacheck $@ .
module.exports = { defineTemplateBodyVisitor: require("./utils/defineTemplateBodyVisitor"), getAttributeName: require("./utils/getAttributeName"), getAttributeValue: require("./utils/getAttributeValue"), getElementAttribute: require("./utils/getElementAttribute"), getElementAttributeValue: require("./utils/ge...
<filename>data/brand/colorData.js import Image from 'next/image' import BrandBadExample from '@/components/brand/BrandBadExample' import ColourExample from '@/components/brand/ColourExample' import { primaryColors, secondaryColors, spotColors } from '@/data/colors' const badexamples = [ { src: '/images/br...
module RailsTypedSettings module Types class Float < Base def self.===(value) ::Float === value end def self.coerce(value) return nil if value.nil? if [::String, ::Integer, Fixnum].include? value.class return value.to_f end value end ...
const DrawCard = require('../../../drawcard.js'); class BearIsland extends DrawCard { setupCardAbilities(ability) { this.reaction({ when: { onCardEntersPlay: event => event.card.getType() !== 'plot' && event.card.controller === this.controller && event.card.isLoyal() && event.pl...
const request = require('request'); request('https://financialmodelingprep.com/api/v3/stock/real-time-price', function (error, response, body) { let data = JSON.parse(body); console.log('Current Stock Prices'); data.forEach(function (company) { console.log(company.ticker + ': ' + company.price); }); });
#!/bin/bash filename='myfile.txt' # Get the file extension extension="${filename##*.}" if [[ "${extension}" == "txt" ]] then echo "File extension is valid" else echo "File extension is invalid" fi
package solidtxsample; import org.binarybabel.solidtx.TxException; import org.binarybabel.solidtx.TxFn; import org.binarybabel.solidtx.TxStack; public class Main { public static void main(String[] args) { TxStack.debug = true; Stack s = new Stack(); s.callObject(Person.class, 1, new TxFn...
<reponame>FrankT-WP/nodejs-boilerplate import { createController, generateRequiredSchemaItems } from "./helper" import { JobModel } from "../models/job.schema" import { Collection } from "../utilities/database" import { tokenKey } from "../config" import { pipe, zip, of } from "rxjs" import { mergeMap } from "rxjs/oper...
<filename>src/store.js<gh_stars>0 import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); function uuidv4() { return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => ( c ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4))) ).toString(16) ); } const state = { ...
<filename>source/infrastructure/lib/custom-resource/custom-resources.ts // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import { CfnCondition, CfnCustomResource, CustomResource, Duration, Stack } from 'aws-cdk-lib'; import { Effect, Policy, PolicyDocument, P...
<filename>core/src/main/java/io/machinecode/then/core/DeferredImpl.java /* * Copyright 2015 <NAME> and other contributors * as indicated by the @authors tag. 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. ...
<reponame>xeqlol/musicql import { GraphQLObjectType, GraphQLInt, GraphQLString, GraphQLList, GraphQLSchema, GraphQLFloat } from 'graphql'; import Album from './album'; const Artist = new GraphQLObjectType({ name: 'Artist', description: 'Artist', fields: () => { return { ...
# https://github.com/tadija/AEDotFiles # my.sh alias ssh-reload="cd ~/.ssh && fd -e pub -x ssh-add -K {.} && cd -" function my-radio() { echo "configuring radio..." cd ~/Downloads curl http://tadija.net/random/radio.zip > radio.zip unzip -qq radio.zip yes | cp -rf Radio.app /Applications rm radio.zip rm...
#!/usr/bin/env bash set -e DOC_FOLDER="docs" SITE_FOLDER="site" MAIN_BRANCH="master" UPSTREAM="https://$GITHUB_TOKEN@github.com/$TRAVIS_REPO_SLUG.git" MESSAGE="Rebuild doc for revision $TRAVIS_COMMIT: $TRAVIS_COMMIT_MESSAGE" AUTHOR="$USER <>" if [ "$TRAVIS_PULL_REQUEST" != "false" ];then echo "Documentation won't...
import mongoose from "mongoose"; export const HistoryModel = mongoose.model("History");
package chylex.hee.world.feature.stronghold.rooms.traps; import java.util.List; import java.util.Random; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.EnumDifficulty; import net.minecraft.world.World; import chylex.hee.entity.mob.EntityMobSilverfish; import chylex.hee.entity.technical.Enti...
class BankAccount: def __init__(self, initial_balance=0): self.balance = initial_balance self.total_transactions = 0 def deposit(self, amount): self.balance += amount self.total_transactions += 1 def withdraw(self, amount): if amount > self.balance: prin...
package cm.xxx.minos.leetcode; /** * 二叉树的最大深度 * Author: lishangmin * Created: 2018-08-23 10:16 */ public class Solution73 { public int maxDepth(TreeNode root) { if (root == null) return 0; return Math.max(maxDepth(root.left),maxDepth(root.right)) + 1; } }
$ twistd -ony AsyncBeatServer.py
#!/usr/bin/env bash set -ux -o pipefail function get-root-dir() { local dir=$(dirname "${BASH_SOURCE[0]}") (cd "${dir}" && pwd) } root="$(get-root-dir)" test -f "${root}"/../local.sh && source "${root}"/../local.sh source "${root}"/common.sh docker container prune --force --filter "until=${PRUNE_DURATION}" if ...
function startsWith(s, prefix) { return s.indexOf(prefix) === 0; } exports.startsWith = startsWith; function endsWith(s, suffix) { return s.indexOf(suffix, s.length - suffix.length) !== -1; } exports.endsWith = endsWith; function isNullOrEmpty(s) { return !s && s.length == 0; } exports.isNullOrEm...
from setuptools import setup setup( name="EEGAnalysis", version="1.0", packages=["EEGAnalysis"], include_package_data=True, install_requires=["PySimpleGUI"], python_requires='>=3.6', entry_points={ "console_scripts": [ "sleep_analysis=EEGAnalysis.__main__:main", ...
import 'aurelia-bootstrapper'; import 'aurelia-loader-webpack'; require('../node_modules/bootstrap/dist/css/bootstrap.css'); require('../node_modules/font-awesome/css/font-awesome.css'); require('../styles/styles.css'); export function configure(aurelia) { aurelia.use .standardConfiguration() .developmentL...
#!/bin/sh backup_regex=$2 if [ -z "$2" ] then backup_regex="jenkins-.*-backup.*" fi echo Querying S3 for buckets matching: ${backup_regex} if [ "$1" != "--force" ] then echo ...Doing dry run. Run script with '--force' to actually remove these buckets run_cmd="echo " else echo ...Forcing removal of mat...
<filename>test/4_api__company--find_company.js<gh_stars>0 const assert = require( 'assert' ); const request = require( 'supertest' ); describe( 'POST /companies', () => { it( 'Find a company from database by not giving full name', () => { return require( '../server/app' ) .then( ( app ) => { ...
#!/bin/bash snakemake \ --dryrun --summary --jobs 100 --use-conda -p \ --configfile config.yaml --cluster-config cluster.yaml \ --profile /home/etucker5/miniconda3/envs/S-niv-MAGs \ --cluster "sbatch --parsable --qos=unlim --partition={cluster.queue} \ --job-name=etucker5.{rule}.{wildcards} --mem={cluster....
SELECT * FROM books WHERE author = 'J.K. Rowling';
<filename>ax-boot-admin/src/main/java/com/chequer/axboot/admin/domain/file/CommonFileService.java package com.chequer.axboot.admin.domain.file; import com.chequer.axboot.admin.domain.BaseService; import com.chequer.axboot.core.code.AXBootTypes; import com.chequer.axboot.core.code.Types; import com.chequer.axboot.core....
<reponame>zanachka/scrapydd<gh_stars>1-10 from sqlalchemy import * from migrate import * meta = MetaData() def upgrade(migrate_engine): meta.bind = migrate_engine webhook_jobs = Table('webhook_jobs', meta, autoload=True) webhook_jobs_log = Column('log', Text) webhook_jobs_log.create(webhook_jobs) de...
package com.breakersoft.plow.scheduler.dao; import com.breakersoft.plow.rnd.thrift.RunningTask; public interface StatsDao { boolean updateProcRuntimeStats(RunningTask task); boolean updateTaskRuntimeStats(RunningTask task); }
<reponame>Soreine/hyper-gwent<filename>website/RandomCard.js // @flow /* @jsx h */ /* global document */ import { // eslint-disable-next-line h, render, Component } from 'preact'; import type { Card } from '../core/types'; const CHANGE_CARD_DELAY = 3000; // ms function getRandomCard(cards: { [CardID]...
import numpy as np from tqdm.notebook import tqdm def get_adj_matrix(data_df, path): As = [] for id in tqdm(data_df["id"]): a = np.load(f"{path}/bpps/{id}.npy") As.append(a) As = np.array(As) ## get adjacent matrix from structure sequence sequence_structure_adj = [] for i in tq...
package com.donfyy.viewexample.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Path; import android.graphics.Rect; import android.graphics.RectF; import android.uti...
#! /bin/sh export KSROOT=/koolshare source $KSROOT/scripts/base.sh eval `dbus export ssrserver_` mkdir -p $KSROOT/init.d cd /tmp cp -rf /tmp/ssrserver/scripts/* $KSROOT/scripts/ cp -rf /tmp/ssrserver/init.d/* $KSROOT/init.d/ cp -rf /tmp/ssrserver/webs/* $KSROOT/webs/ cp /tmp/ssrserver/uninstall.sh $KSROOT/scripts/uni...
#!/bin/bash DIRS="/lib /lib64 /usr/lib /usr/lib64" for dirPath in $DIRS; do find "$dirPath" -type d -exec chmod go-w '{}' \; find "$dirPath" -type f -exec chmod go+w '{}' \; done
<filename>src/main/java/xyz/brassgoggledcoders/opentransport/api/blockwrappers/IGuiInterface.java package xyz.brassgoggledcoders.opentransport.api.blockwrappers; import net.minecraft.client.gui.Gui; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import xyz.brassgoggledcoders...
import SwiftUI import Combine struct Repository { let name: String let url: String } class GithubViewModel: ObservableObject { @Published var repositories: [Repository] = [] private var cancellables = Set<AnyCancellable>() func fetchRepositories() { guard let url = URL(string: "h...
#!/bin/bash # coreos-osx-install.command # # DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "${DIR}"/functions.sh # create in "coreos-osx" all required folders and files at user's home folder where all the data will be stored mkdir ~/coreos-osx mkdir ~/coreos-osx/tmp mkdir ~/coreos-osx/...
<gh_stars>1-10 // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // #include <dlfcn.h> #include <stdio.h> #include "opensslshim.h" // Define pointers to all the use...
package com.yhy.alang.promise; import android.os.Handler; import android.os.Looper; /** * author : 颜洪毅 * e-mail : <EMAIL> * time : 2019-03-23 14:07 * version: 1.0.0 * desc : Promise链式回调 */ public class Promise<T, E> { private Executor<T, E> mExecutor; private Then<T> mThen; private Caught<E> mCa...
# tested on Ubuntu 20 with ESA SNAP 8.0 which demands java 8 # configure snappy by installing java 8 stuff, to build: # * jpy (python/java bridge) # finally then showing snappy where python is! tar xvf jpy-0.9.0.tar.gz sudo apt install openjdk-8-jre openjdk-8-jdk python3-pip maven # might need to insert these in ...
enum BufferElement { case integer(Int) case string(String) case array([Any]) case none } extension BufferElement { func extractData() -> Any? { switch self { case .integer(let data): return data case .string(let data): return data case .array(...
<html> <head> <title>My Timeline</title> <style> body { font-family: Arial; } .events { display: flex; flex-direction: column; padding: 0.5rem; } .year { font-style: italic; font-weight: bold; } .event { margi...
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // 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 without restriction, including without limitation the rights to use,...
<filename>lib/bulk_cancel_terms/end_coverage_csv_listener.rb module BulkCancelTerms class EndCoverageCsvListener def initialize(file_name, batch_id, submitted_at, submitted_by) @current_data = {} @current_row = 0 @current_listener = nil @file_name = file_name @batch_id = batch_id ...
<reponame>ykatieli/ducky-ml<filename>ducky/app/screens/HabitTracker.js<gh_stars>1-10 // HabitTracker.js import React, { Component } from 'react'; import { View, Text, Button } from 'react-native'; import { LinearGradient } from 'expo-linear-gradient'; import { AntDesign, Feather, MaterialCommunityIcons, FontAwesome } ...
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const { resolve } = require('path'); const root = (src) => resolve(process.cwd(), src); const postCSSOptions = { sourceMap: 'inline', plugins: [ require('postcss-smart-import')({ /* ...options */ }), require('precss')({ /* ...options */ }), ...
<gh_stars>1-10 import React from "react"; import { Row, Col } from "react-bootstrap"; import Image from "./Image"; import profilePic from "../public/images/ty-mick-full.jpg"; export default function Greeting({ h1 }: { h1?: boolean }) { const Hi = h1 ? "h1" : "div"; return ( <Row className="align-items-center ...
#!/bin/bash # Copyright 2012-2013 Karel Vesely, Daniel Povey # Apache 2.0 # Begin configuration section. nnet= # non-default location of DNN (optional) feature_transform= # non-default location of feature_transform (optional) model= # non-default location of transition model (optional) cl...
#!/bin/bash # Required parameters: # @raycast.schemaVersion 1 # @raycast.icon images/devutils.png # @raycast.title Cron Job Parser # @raycast.mode silent # @raycast.packageName DevUtils.app # Documentation: # @raycast.description Parse the cron job expression in clipboard (if it’s a valid cron expression) # @raycast....
package wayang import ( "context" "fmt" "log" "os" "github.com/go-rod/rod" "github.com/go-rod/rod/lib/cdp" "github.com/go-rod/rod/lib/defaults" "github.com/go-rod/rod/lib/launcher" "github.com/ysmood/kit" ) func NewRemoteRunner(client *cdp.Client) *Runner { ctx, cancel := context.WithCancel(context.Backgro...
#!/bin/bash #PBS -q gpu #PBS -l select=1:ncpus=1:mem=150gb:ngpus=1:scratch_local=80gb #PBS -l walltime=14:00:00 DATADIR=/storage/brno6/home/apprehension cd $DATADIR module add python-3.6.2-gcc module add python36-modules-gcc module add tensorflow-1.13.1-gpu-python3 module add opencv-3.4.5-py36 module add cuda-10.0 ...
#!/bin/bash # if [[ ! $1 ]] # then # echo "please specify a pipe name" # exit -1 # fi if [[ $# -ne 2 ]] then echo "please specify a pipe name and a filename to store the container PID" exit -1 fi #wait for server fifo_location="/dev/shm/${1}" server=dockerbuild.cern.ch port=8001 containerpid_location="/dev/shm/${2}...
int num_jewels_in_stones(char *j, char *s);
#!/bin/sh if [ "$TZ_SYS_RO_SHARE" = "" ]; then TZ_SYS_RO_SHARE="/usr/share" fi KEYMAP_FILE_PATH="${TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt" BASE_KEYSYM="0x10090000" TARGET_HEADER_FILE="./xkbcommon/tizen_keymap.h" TEMP_TEXT_FILE="./temp_file.txt" NEW_DEFINE_SYM_FILE="./new_define_sym.txt" KEYMAP_HEADER_FILE="./...
//chrome.exe -enable-file-cookies function createCookie(name, value, exdays) { // fonction qui cree/modifie un cookie var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie =...
#!/bin/sh set -eux IP=$(ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}') TEST_NAMESPACE=polyaxon TEST_URL=http://$IP:31811 kubectl create namespace $TEST_NAMESPACE helm install --name polyaxon-test --namespace $TEST_NAMESPACE polyaxon/polyaxon -f ./ci/test-config.yml echo "waiting for servers to ...
<gh_stars>0 /* * Copyright (c) 2015, 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 Les...
/* * 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 ...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // ------------------------------------------------------------ package kubernetes import ( "errors" kubeclient "github.com/dapr/components-contrib/authentication/kubernetes" ...
#!/bin/bash # file: /usr/local/cmassoc/bin/update-init.sh # Published 2005 by Charles Maier Associates Limited for internal use; # ==================================================================== # # -------------------------------------------------------------------- for folder in /home/build/{linux,cmassoc-sysv...
import YoutubeScreen from './YoutubeScreen'; import News from './News'; export { YoutubeScreen, News, }
<gh_stars>0 #ifndef DSFMT_PARAMS132049_H #define DSFMT_PARAMS132049_H /* #define DSFMT_N 1269 */ /* #define DSFMT_MAXDEGREE 132104 */ #define DSFMT_POS1 371 #define DSFMT_SL1 23 #define DSFMT_MSK1 UINT64_C(0x000fb9f4eff4bf77) #define DSFMT_MSK2 UINT64_C(0x000fffffbfefff37) #define DSFMT_MSK32_1 0x000fb9f4U #...
import re def fix_spelling(paragraph): words = paragraph.split() corrected_words = [] for word in words: corrected_words.append(re.sub(r'[aeiou]',r'[aeiou]', word)) return " ".join(corrected_words) print(fix_spelling("My favarite flowers are rose and tulples"))
public class EntityRoleParser { public com.microsoft.schemas.xrm._2011.contracts.EntityRole.Enum parseEntityRoleElement(org.apache.xmlbeans.XmlObject target) { // Extracting the "EntityRole" element as XML org.apache.xmlbeans.XmlObject entityRoleElement = target.selectPath("EntityRole"); ...
class LidarProcessor: def __init__(self, lidar_list, object): self.lidar_list = lidar_list self.object = object def process_lidar_data(self): self.object.transform.translation.y = 0.0 self.object.transform.translation.z = 0.0 self.object.transform.rotation.x = 0.0 ...
package analyzer_test import ( "os" "path/filepath" "testing" "github.com/egtann/exhaustivestruct/pkg/analyzer" "golang.org/x/tools/go/analysis/analysistest" ) func TestAll(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatalf("Failed to get wd: %s", err) } testdata := filepath.Join(filepath.Dir...
public static void main(String args[]) { int n1=0,n2=1,n3,i,count=10; System.out.print(n1+" "+n2); for(int i = 2; i < count; ++i) { n3=n1+n2; System.out.print(" "+n3); n1=n2; n2=n3; } }
var classarmnn_1_1_neon_stack_workload = [ [ "NeonStackWorkload", "classarmnn_1_1_neon_stack_workload.xhtml#aeb65cb0556b7a21b06f8bc9f025be5c5", null ], [ "Execute", "classarmnn_1_1_neon_stack_workload.xhtml#ae071e8822437c78baea75c3aef3a263a", null ] ];
<gh_stars>0 package thelm.rslargepatterns; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.ModMeta...
/* Copyright 2020 Freerware * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
<reponame>PiotrSikora/test-infra // Copyright 2018 Istio 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...
#ifdef __TIZENRT__ #include <tinyara/config.h> #include <tinyara/gpio.h> #endif #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include "ocf_mylight.h" struct light_resource { OCResourceHandle handle; bool value; char *uri; int gpio; }; static struct light_reso...
const minInHour = 60; function two(value) { return String(value).length < 2 ? `0${value}` : value; } export class Duration { h; m; constructor({ h, m }) { this.h = Number(h); this.m = Number(m); } toString() { return `${two(this.h)}h${two(this.m)}`; } valueOf() { return this.h * min...
<reponame>ssangervasi/oily<filename>oily/trash/risky_moon.py<gh_stars>0 ''' https://projecteuler.net/problem=353 Put on hold because adding the sphere calculations is a bit too time consuming. ''' import math from decimal import Decimal from typing import NamedTuple pi = Decimal(pi) def solve(): return Solution...
package com.cyosp.mpa.api.rest.homebank.v1dot2.model; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; import com.thoughtworks.xstream.annotations.XStreamOmitField; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; /** *...
#!/bin/bash echo Entering "$(cd "$(dirname "$0")" && pwd -P)/$(basename "$0")" # Fail the whole script if any command fails set -e # Optional argument $1 is one of: # downloadjdk, buildjdk # If it is omitted, this script uses downloadjdk. export BUILDJDK=$1 if [[ "${BUILDJDK}" == "" ]]; then export BUILDJDK=downl...
def getHeight(children): if children is None: return 0 else: root = children[0] maxHeight = getHeight(root.leftChildren) for child in root.rightChildren: maxHeight = max(maxHeight, getHeight(child)) return maxHeight + 1
button { font-family: 'Arial', sans-serif; font-style: bold; font-size: 20px; }
cd "/Users/pengzhenzhen/Desktop/majorlu/github/Hadoop_code/hadoop-2.7.2-src/hadoop-yarn-project/target" tar cf - hadoop-yarn-project-2.7.2 | gzip > hadoop-yarn-project-2.7.2.tar.gz
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2020 Datadog, Inc. // +build secrets package secrets import ( "fmt" "strings" yaml "gopkg...
import util/command namespace util/variable declare __declaration_type ## for Variable::ExportDeclarationAndTypeToVariables (?) Variable::Exists() { local variableName="$1" declare -p "$variableName" &> /dev/null } Variable::GetAllStartingWith() { local startsWith="$1" compgen -A 'variable' "$startsWith" || ...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
from naas.requests.subscribers import Subscriber from naas.requests.subscriber_email_addresses import SubscriberEmailAddresses from tests import BaseTestCase class TestRequestsSubscriberEmailAddresses(BaseTestCase): def test_list(self): response = SubscriberEmailAddresses.list() self.assertEqual(...
<filename>apps/frontend/src/components/questionnaire/components/entry.tsx /* eslint-disable react-hooks/exhaustive-deps */ import React, { FC, useContext, useEffect } from "react"; import { Element, Normaltekst, Undertekst, UndertekstBold } from "nav-frontend-typografi"; import { SelectionContext } from "../../../layou...
def reverse_string(my_string): """Function for reversing a string""" reversed_string = "" for i in range(len(my_string)): reversed_string+=my_string[-(i+1)] return reversed_string
<filename>src/Components/Guards/Auth.js import React, { useEffect, useState } from "react"; import { useDispatch } from "react-redux"; import PropTypes from "prop-types"; import SplashScreen from "../Misc/SplashScreen"; import { setUserData } from "../../Redux/account"; import { useAuthState } from "react-firebase-hook...
<reponame>paurosello/errorges<filename>errorges/errorges/doctype/errors/errors_list.js frappe.listview_settings['Errors'] = { }
package org.museautomation.ui.valuesource; /** * @author <NAME> (see LICENSE.txt for license details) */ public interface NameChangeListener { void nameChanged(NamedValueSourceEditor editor, String old_name, String new_name); }
ALTER TABLE dependencies DROP CONSTRAINT fk_dependencies_version_id;
def navigate_maze(maze): def is_valid_move(x, y): return 0 <= x < len(maze) and 0 <= y < len(maze[0]) and maze[x][y] == 0 def dfs(x, y): if x == len(maze) - 1 and y == len(maze[0]) - 1: return True if is_valid_move(x, y): maze[x][y] = -1 # Mark as visited ...
<reponame>xiaoandev/LostAndFoundOnCampus package com.example.lostandfoundoncampus.adapter; import android.content.Context; import android.text.style.AlignmentSpan; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; impor...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.dispatch forum_moved = django.dispatch.Signal(providing_args=["previous_parent", ]) forum_viewed = django.dispatch.Signal(providing_args=["forum", "user", "request", "response", ])
#!/bin/bash ############# author: Victor FAVREAU ############# # Fichier permettant de récupérer les 1000 premiers mots entouré d'espaces # et supprimant les mots de tailles deux, par exemple "de" ou "la". awk '{print " "$1" "}' $1 | awk 'length > 4' | head -1000 > $1;
# Copyright (c) 2017 The Bitcoin Core developers # Copyright (c) 2017 The BitcoinSubsidium Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. #network interface on which to limit traffic IF="eth0" #limit of the networ...
///////////////////////////////////////////////////////////// // ShareServiceImpl.java // gooru-api // Created by Gooru on 2014 // Copyright (c) 2014 Gooru. All rights reserved. // http://www.goorulearning.org/ // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and assoc...
#!/bin/bash java -jar /cinema/workspace/guns-cinema-0.0.1.jar for (( ; ; )) do sleep 5 done
# -*- coding: utf-8 -*- class IdentityNotValid(Exception): pass class RedirectStateInvalid(Exception): pass