text
stringlengths
1
1.05M
#!/bin/sh DATA_DIR="data" DATASET_URL="https://shapenet.cs.stanford.edu/media/modelnet40_normal_resampled.zip" DATASET_ORIGINAL_NAME="modelnet40_normal_resampled" DATASET_NAME="ModelNet40" # option 1: download directly to your project folder cd .. mkdir $DATA_DIR && cd $DATA_DIR wget $DATASET_URL --no-check-certificat...
#!/usr/bin/env bash # PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here # will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent # changes to this script, consider a proposal to conda-smithy so that other feedstocks can also # benefit from...
#!/bin/bash #add 1 network card nmtui-modify name to [ens7], not select [Automatically connect],nmtui-active cd /etc/sysconfig/network-scripts/ sed -i 's/BOOTPROTO=dhcp/BOOTPROTO=none/g' ifcfg-ens7 cd - systemctl restart network ip a #add floating ip port ovs-vsctl add-br br-eth1 ovs-vsctl add-port br-eth1 ens7 ovs-v...
import * as React from 'react'; import styled from 'styled-components'; import { NavList } from './Navbar'; import links, { icons } from '../../utils/mix'; import AniLink from 'gatsby-plugin-transition-link/AniLink'; interface Props { title: string; } const StyledFooter = styled.footer` padding: 1rem 0.5rem; dis...
create table B_SONET_GROUP_SUBJECT ( ID int not null, SITE_ID char(2 CHAR) not null, NAME varchar2(255 CHAR) not null, SORT int default '100' not null, primary key (ID) ) / CREATE SEQUENCE SQ_B_SONET_GROUP_SUBJECT INCREMENT BY 1 NOMAXVALUE NOCYCLE NOCACHE NOORDER / CREATE TABLE B_SONET_GROUP_SUBJECT_SITE ( ...
<reponame>mkovaltest/softwareTesting.JavaLearning<gh_stars>0 package ru.stqa.pft.addressbook.tests; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.*; import java.io.File; import java.util.Collection; import java.util.HashSet; import static org.ham...
#!/usr/bin/env bash declare SCRIPT_DIR SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) source ${SCRIPT_DIR}/common.sh declare ALL_PIPELINES=($(get_versioned_pipelines)) function pipeline_to_args() { local -r pipeline=${1} local -r env=${2} local -r test=${3} local -r truth=${4} ...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for USN-2673-1 # # Security announcement date: 2015-07-20 00:00:00 UTC # Script generation date: 2017-01-27 21:05:58 UTC # # Operating System: Ubuntu 12.04 LTS # Architecture: i386 # # Vulnerable packages fix on version: # - thunderbird:1:31.8.0+build1-0ubuntu0.1...
<gh_stars>0 package org.gbif.pipelines.ingest.java.transforms; import java.util.List; import java.util.Map; import org.gbif.api.model.registry.MachineTag; import org.gbif.pipelines.io.avro.ExtendedRecord; import org.gbif.pipelines.parsers.ws.client.metadata.MetadataServiceClient; import org.gbif.pipelines.transforms....
<reponame>wolfchinaliu/gameCenter package weixin.guanjia.account.controller; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; impo...
/* Jameleon - An automation testing tool.. Copyright (C) 2006 <NAME> (<EMAIL>) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or...
package org.museautomation.ui.taskinput; import javafx.scene.*; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.scene.paint.*; import org.museautomation.core.*; import org.museautomation.core.task.*; import org.museautomation.core.task.input.*; import org.museautomation.ui.extend.glyphs.*; ...
// Create the icon image for the navigation bar button let icon = UIImage(named: "backIcon") // Define the action selector for the button let action = #selector(goback(sender:)) // Set the left bar button item with the icon, action, and target self.navigationItem.leftBarButtonItem = UIBarButtonItem(image: icon, lands...
#!/bin/sh sudo chown -R nginx:nginx /var/www/html sudo systemctl start nginx
package malte0811.controlengineering.gui.panel; import malte0811.controlengineering.blockentity.panels.PanelDesignerBlockEntity; import malte0811.controlengineering.controlpanels.PlacedComponent; import malte0811.controlengineering.gui.CEContainerMenu; import malte0811.controlengineering.gui.misc.LambdaDataSlot; impor...
<gh_stars>0 import React, { useState,useEffect } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // @material-ui/icons // core components import GridContainer from "components/Grid/GridContainer.js"; import GridItem from "components/Grid/GridItem.js"; import CustomIn...
<reponame>wangjiegulu/MVPArchitecture<filename>library/src/main/java/com/wangjiegulu/mvparchitecture/library/presenter/Presenter.java package com.wangjiegulu.mvparchitecture.library.presenter; import com.wangjiegulu.mvparchitecture.library.contract.OnViewerDestroyListener; import com.wangjiegulu.mvparchitecture.librar...
dotfiles () { cd $PROJECTS/dotfiles/ vim . }
<reponame>mrken277/Cutternet<gh_stars>1-10 /*** * Copyright (C) <NAME>. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root * for full license information. * * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ * * For relate...
<reponame>trevorhein-matc/theTwistedLeafSite import React from 'react' import HeadingBase from '../HeadingBase' const JumbotronHeading = props => ( <HeadingBase fontSize={[1, 2, 3]} {...props} /> ) export default JumbotronHeading
States = ('NNP', 'NN', 'VBD', 'TO', 'DT', 'NN') Start Probability = {'NNP': 0.5, 'NN': 0.5} Transition Probability = { 'NNP' : {'NN': 0.5, 'VBD': 0.5}, 'NN' : {'TO': 0.5, 'DT': 0.5}, 'VBD': {'TO': 1.0}, 'TO' : {'DT': 1.0}, 'DT' : {'NN': 1.0}, 'NN' : {None: 1.0} } Emission Probability = { ...
class Inventory: def __init__(self): self.inventory = {} def add_item(self, item_name, quantity, unit_price): self.inventory[item_name] = {'quantity': quantity, 'unit_price': unit_price} def remove_item(self, item_name): if item_name in self.inventory: del self.inventor...
<reponame>marcosbaima/eat-tasty import { Router } from 'express'; import { celebrate, Segments, Joi } from 'celebrate'; import ProfileController from '../controllers/ProfileController'; import ensureAuthticated from '../middlewares/ensureAuthenticate'; const profileRouter = Router() const profileController = new Pr...
<reponame>fylein/fyle-netsuite-app /* tslint:disable */ import { CategoryMapping } from "./category-mapping.model"; export type CategoryMappingsResponse = { count: number; next: string; previous: string; results: CategoryMapping[]; };
#!/bin/bash echo "================== Help for cqlsh =========================" echo "DESCRIBE tables : Prints all tables in the current keyspace" echo "DESCRIBE keyspaces : Prints all keyspaces in the current cluster" echo "DESCRIBE <table_name> : Prints table detail information" echo "he...
package com.github.muirandy.docs.living.log.restful; import com.github.muirandy.docs.living.api.Log; import com.github.muirandy.docs.living.api.Logs; import javax.ws.rs.*; import javax.ws.rs.core.Response; @Consumes("application/json") @Produces("application/json") public interface LoggerClient { @POST @Path...
set -e echo "Current version:" $(grep version package.json | sed -E 's/^.*"(4[^"]+)".*$/\1/') echo "Enter beta version e.g., 2 will generate 4.0.0-beta.2: " read BETA VERSION="4.0.0-beta.$BETA" read -p "Releasing v$VERSION - are you sure? (y/n)" -n 1 -r echo # (optional) move to a new line if [[ $REPLY =~ ^[Yy]$ ]...
// Copyright 2020 // // 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 writing, softwar...
# -*- coding: utf-8 -*- # FeedCrawler # Projekt von https://github.com/rix1337 # Enthält Code von: # https://github.com/Gutz-Pilz/pyLoad-stuff/blob/master/SJ.py from urllib.error import HTTPError from urllib.parse import urlencode from urllib.request import urlopen, Request import simplejson as json from feedcrawler...
#!/bin/bash # # script to build HermitCore's bootstrap compiler # # $1 = specifies the target architecture # $2 = specifies the installation directory BUILDDIR=build CLONE_DEPTH="--depth=50" PREFIX="$2" TARGET=$1 NJOBS=-j"$(nproc)" PATH=$PATH:$PREFIX/bin ARCH_OPT="-mtune=native" export CFLAGS_FOR_TARGET="-m64 -O3 -ftr...
import './Prosign.css'; import { Link } from 'react-router-dom'; function Prosign() { return ( <div className ="fullscreen-signin"> <div className ="header-signin"> </div> <div className ="content-signin"> <div className ="boxchatlogo-signin"> ...
#include <string> // student class class Student { private: std::string name; float grades; public: // constructor Student(std::string name, float grades): name(name), grades(grades) {} // getters std::string getName() const { return name; } float get...
$(document).ready(function () { var grid_selector = "#jqGrid"; var pager_selector = "#jqGridPager"; //resize to fit page size $(window).on('resize.jqGrid', function () { $(grid_selector).jqGrid( 'setGridWidth', $(".page-content").width() ); }) //resize on sidebar collapse/expand var parent_column = $(grid_sel...
#!/bin/bash set -e pipefail # Utils scripts . ./.bash_utils log "\nUpdating config to your PC...\n" copy .bash_aliases $BASH_ALIASES_PATH copy .bash_profile $BASH_PROFILE_PATH copy .bashrc $BASHRC_PATH copy .gitconfig $GIT_CONFIG_PATH copy .tmux.conf $TMUX_PATH copy .vimrc $VIM_PATH copy .zshrc $ZSH_PATH if [[ "$OS...
<gh_stars>1000+ package org.apache.directory.api.ldap.model.entry; public interface Value<T> { }
def add_user(user, guild): # Check if the user does not already exist in the guild if len(get_user(user, guild, no_null=True)) == 0: # Add the user to the guild # Your implementation to add the user to the guild goes here # For example, you might use an ORM to insert the user into the da...
<reponame>zouvier/BlockChain-Voting export declare function createProject(): Promise<void>; export declare function confirmTelemetryConsent(): Promise<boolean | undefined>; //# sourceMappingURL=project-creation.d.ts.map
from typing import Union, Dict from werkzeug.exceptions import abort def process_query_results(vis, query) -> Union[Dict, None]: if vis is not None: vis_dict = vis.to_dict() else: vis_dict = None qr = query.latest_query_data if qr is None: abort(400, message="No Results for thi...
let multiplexing_config = { let mut mplex_config = mplex::MplexConfig::new(); mplex_config.max_concurrent_streams(100); mplex_config.enable_stream_prioritization(); mplex_config.max_buffer_size(1024); mplex_config };
<reponame>karolsluszniak/cloudless-box<gh_stars>10-100 node.override['erlang']['esl']['version'] = "18.3-1" node.override['elixir']['version'] = "1.2.5" if (elixir_apps = applications.select(&:elixir?)).any? include_recipe 'elixir::default' end
<gh_stars>1-10 import sys import logging import time def initiate_logger(log_path: str) -> logging.Logger: """ Initialize a logger with file handler and stream handler """ logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s %(levelname)-s: %(message)s', d...
def inverse_sort_0s_and_1s(arr): s = sorted(arr, reverse=True) return s
<filename>index.d.ts import { CondItem, KeyValuePair } from './src/types' export namespace G { export function isDefined(subject: any): boolean export function ifDefined<T = any>(subject: any, then: (subject: T) => void): T export function call(fn: Function): void export function T(): void export function ha...
# Import modules import socket from http.server import HTTPServer from http.server import BaseHTTPRequestHandler # Define server IP address and port number HOST_NAME = "localhost" PORT_NUMBER = 80 # Create the server object server = HTTPServer((HOST_NAME, PORT_NUMBER), BaseHTTPRequestHandler) # Start the web se...
// // Copyright (c) 2015-2020 Microsoft Corporation and Contributors. // SPDX-License-Identifier: Apache-2.0 // // // Created by maharrim on 5/18/2020. // #ifdef ANDROID #include <android/log.h> #endif #include "common/Common.hpp" #include "common/MockIRuntimeConfig.hpp" #include "common/MockIOfflineStorageObserver.hpp...
<gh_stars>100-1000 /* * Copyright © 2019 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modi...
import * as ts from 'typescript'; import { ICompilerOptions } from './compiler-helper'; import { ICollectedTypeInfo } from './type-collector-snippet'; export interface IApplyTypesOptions extends ICompilerOptions { /** * A prefix that will be added in front of each type applied. You can use a javascript comment...
class SecuritySystem: STATE_ALARM_DISARMED = "disarmed" STATE_ALARM_ARMED_HOME = "armed_home" STATE_ALARM_ARMED_AWAY = "armed_away" STATE_ALARM_TRIGGERED = "triggered" DEVICE_ALARM_MODE = "alarm_mode" def __init__(self): # Initialize the security system with a default state of "disarme...
#!/bin/bash set -e NC='\033[0m' # No Color Light_Green='\033[1;32m' echo (){ command echo -e $1 } STARTMSG="${Light_Green}[ENTRYPOINT_POSTFIX]${NC}" POSTFIX_PATH="/etc/postfix" POSTFIX_CONFIG="$POSTFIX_PATH/main.cf" SMTP_AUTH="$POSTFIX_PATH/smtp_auth" GENERIC="$POSTFIX_PATH/generic_misp" # Set Environment V...
TERMUX_PKG_HOMEPAGE=https://lxqt.github.io TERMUX_PKG_DESCRIPTION="Library providing components to build desktop file managers" TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>" TERMUX_PKG_VERSION=0.17.1 TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL="https://github.com/lxqt/libfm-qt/rel...
/* TITLE Colored Starlike patterns Chapter12Exercise13.cpp Bjarne Stroustrup "Programming: Principles and Practice Using C++" COMMENT Objective: Draw starline patterns by connecting points on a superellipse. Add color. Input: - Output: Graph on screen. Author: <NAME> ...
namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Souscategorie extends Model { use HasFactory; protected $fillable = ['name']; public function categorie() { return $this->belongsTo(Categorie::class); } }
#!/bin/bash . path.sh format=pdf # pdf svg output= . utils/parse_options.sh if [ $# != 3 ]; then echo "usage: $0 [--format pdf|svg] [--output <path-to-output>] <utt-id> <lattice-ark> <word-list>" echo "e.g.: $0 utt-0001 \"test/lat.*.gz\" tri1/graph/words.txt" exit 1; fi uttid=$1 lat=$2 words=$3 tmpdir=$...
<gh_stars>10-100 #!/usr/bin/env python from PySide import QtCore, QtGui, QtXmlPatterns import schema_rc from ui_schema import Ui_SchemaMainWindow try: # Python v2. unicode def encode_utf8(ba): return unicode(ba, encoding='utf8') def decode_utf8(qs): return QtCore.QByteArray(str(qs...
const { defaults } = require('jest-config') module.exports = { preset: defaults.preset, verbose: process.env.NODE_ENV !== 'production', moduleFileExtensions: ['ts', 'js', 'json', 'vue'], transform: { '^.+\\.vue$': 'vue-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform...
<reponame>elibri/elibri_onix module Inspector def attribute_for_inspect(attr_name) value = self.send(attr_name) if value.is_a?(String) && value.length > 50 "#{value[0..50]}...".inspect elsif value.is_a?(Date) || value.is_a?(Time) %("#{value.to_s(:db)}") else value.inspect end ...
import style from './style.module.css' const AboutPage = () => { return ( <> <div className={style.wrap}>AboutPage</div> </> ) } export default AboutPage
#!/bin/bash hugo server --disableFastRender
def is_anagram(str1, str2): # convert strings to lowercase str1 = str1.lower() str2 = str2.lower() # remove whitespaces from strings str1 = str1.replace(" ", "") str2 = str2.replace(" ", "") # initiliase a boolean to be returned anagram = False # Check if the length o...
<reponame>BriceMichalskiStudent/LivLyon_sources<gh_stars>0 function displayMap(){ var x = document.getElementById("mapid"); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; ...
def list_reverse(sequence): if len(sequence) == 0: return [] else: return list_reverse(sequence[1:]) + [sequence[0]]
import pygments from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import TerminalFormatter def can_colorize(s: str): """True if we can colorize the string, False otherwise.""" if pygments is None: return False return True def colorize_string(s: s...
import java.beans.Transient; import java.lang.annotation.*; import java.lang.reflect.Field; import java.lang.reflect.Method; public final class AnnotationTest { public static enum TestElement { FIRST, SECOND } @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public static...
# Import the flask package from flask import Flask # Create a new Flam instance app = Flask(__name__) # create a new route for the API that accepts a search string for a books @app.route('/api/search/<string:search>', methods=['GET']) def search(search): # Here would go code to query a database for books matching...
package com.cumbari.dps.protocol; public class CategoryHits { private final int numberOfCoupons; private final String categoryId; public CategoryHits(String categoryId, int noHits ) { this.categoryId = categoryId; this.numberOfCoupons = noHits; } public int getNumberOfCoupons() { return numbe...
<gh_stars>0 // // NSString+ZWTime.h // QQMusic // // Created by 郑亚伟 on 2016/12/29. // Copyright © 2016年 郑亚伟. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (ZWTime) + (NSString *)stringWithTime:(NSTimeInterval)time; @end
#!/usr/bin/env bash # shellcheck disable=SC2002,SC2155 # Copyright 2019 Kohl's Department Stores, 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/licens...
import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { AuthenticationService } from 'src/app/services/authentication.service'; @Component({ selector: 'app-user', templateUrl: './user.component.html', styleUrls: ['./user.component.scss'] }) export class UserComponent ...
pkg_name=mysql-client pkg_origin=core pkg_version=5.7.32 pkg_maintainer='The Habitat Maintainers <humans@habitat.sh>' pkg_license=('GPL-2.0') pkg_source=http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-${pkg_version}.tar.gz pkg_shasum=1f4b59b43f82de4ccf4ba9cfce087318a192012a752aee8f66ca16f73bb082c9 pkg_upstream_url=h...
/* * Copyright (c) 2019-2021 GeyserMC. http://geysermc.org * * 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, copy,...
def evenOddDifference(arr): # Initialize difference diff = 0 # Calculate sum of all even elements evenSum = 0 for i in range(0, len(arr), 2): evenSum += arr[i] # Calculate sum of all odd elements oddSum = 0 for i in range(1, len(arr), 2): oddSum += arr[i] ...
package splitmix64_test import ( "testing" "github.com/db47h/rand64/v3/splitmix64" ) const ( SEED1 = 1387366483214 ) var values = [...]uint64{ 0xDDE04155BF79DF63, 0xFCFED2E9D540B529, 0x4C5AA74B9BE7FF3E, 0xA38A0EF197E488D9, 0xEDA0BA12AA8B5343, 0x94AC0EE844BA7CB6, 0x644375EBE6F55AAF, 0xBD7DF1EF1C84093D, 0...
def logarithm(number): if number <= 0: return None else: return math.log(number)
/* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (C) 2009 - 2011 <NAME> (i-net software) * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public...
#!/bin/bash set -ex VERSION="$(git describe --abbrev=8)" ## Collect files pushd package/win/elm-format tar zxvf "elm-format-${VERSION}-win-i386.tgz" zip "elm-format-${VERSION}-win-i386.zip" elm-format.exe popd cp -v package/win/elm-format/elm-format-"${VERSION}"-win-i386.zip ./ for i in elm-format-${VERSION}-{ma...
#!/usr/bin/env /bash set -e pip install -r requirements-dev.txt python setup.py doc mv doc/html doc/"$CI_COMMIT_REF_NAME"
const verifyAPIToken = require('../../middle/clusterFunctions').verifyAPIToken; const verifyNodeToken = require('../../middle/nodeFunctions').verifyNodeToken; const mongoose = require('mongoose'); const Meta = require('../../models/meta'); const Cluster = require('../../models/cluster'); const Boom = require('boom...
import { CONFIG_GENERAL_FUNCTION_COMPONENT_KEYS } from './componentConstants.js'; import prettifyComponentConfigError from './prettifyComponentConfigError.js'; import validateKeyValues from '../util/validateKeyValues.js'; import validateComponentName from './validateComponentName.js'; import validatePropertiesConfig fr...
<filename>node_modules/@chakra-ui/theme/dist/types/components/editable.d.ts declare const _default: { parts: ("preview" | "input")[]; baseStyle: Partial<Record<"preview" | "input", import("@chakra-ui/styled-system").RecursiveCSSObject<import("@chakra-ui/styled-system").CSSWithMultiValues>>>; }; export default _...
<filename>kernel/contract/bridge/xbridge.go package bridge import ( "fmt" "io" "path/filepath" "github.com/xuperchain/xupercore/kernel/contract" "github.com/xuperchain/xupercore/kernel/ledger" "github.com/xuperchain/xupercore/protos" ) // XBridge 用于注册用户虚拟机以及向Xchain Core注册可被识别的vm.VirtualMachine type XBridge str...
#!/bin/bash # Copyright 2014 Google Inc. 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.0 # # Unless required by applic...
#!/usr/bin/env bash # Azure Environment export RESOURCEGROUP_NAME=<my-resourcegroup> export WEBAPP_NAME=<my-webapp-name> export WEBAPP_PLAN_NAME=${WEBAPP_NAME}-appservice-plan export REGION=westus # Supply these secrets for PostgreSQL export POSTGRES_SERVER_NAME=<my petstore-db name> export POSTGRES_SERVER_ADMIN_LOG...
// ou somente export {setCookie, getCookie, checkLoginAdmin, doLogoutAdmin, checkLogin, doLogout} from './Authentication'; //export { default as AccordionGroup } from "./AccordionGroup";
<filename>js/search_qbank.js function updateQueryStringParameter(uri, key, value) { var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i"); var separator = uri.indexOf('?') !== -1 ? "&" : "?"; if (uri.match(re)) { return uri.replace(re, '$1' + key + "=" + value + '$2'); } else { return u...
<reponame>healer1064/Gimbal import fs from 'fs'; import path from 'path'; import program from 'commander'; import readPkg from 'read-pkg'; import updateNotifier from 'update-notifier'; import { preparseOptions } from '@/command'; import audit from '@/command/audit/program'; import Config from '@/config'; import process...
#!/usr/bin/env bash openssl req -x509 -out fullchain.pem -keyout privkey.pem \ -newkey rsa:2048 -nodes -sha256 \ -extensions EXT -config openssl.conf
<reponame>Head8che/CMPUT404-project-socialdistribution<filename>src/components/LogInModal.js import React from "react" import { Button, Modal, Form, InputGroup } from "react-bootstrap" import { useForm } from "react-hook-form" import { yupResolver } from "@hookform/resolvers/yup" import { FontAwesomeIcon } from "@forta...
"use strict"; exports.__esModule = true; var random_1 = require("./random"); var MIN_INT_1 = require("../number/MIN_INT"); var MAX_INT_1 = require("../number/MAX_INT"); /** * Returns random number inside range */ function rand(min, max) { min = min == null ? MIN_INT_1["default"] : min; max = max == null ? MAX...
<gh_stars>0 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.fhwa.c2cri.messagemanager; import java.util.ArrayList; /** * The Interface MessageInterface defines all methods that a Message class must implement. * * @author TransCore ITS, LLC * Last Up...
<reponame>DossierSansTitreEx/MiaouOS #ifndef _ISO646_H #define _ISO646_H 1 #if !defined(__cplusplus) # define and && # define and_eq &= # define bitand & # define bitor | # define compl ~ # define not ! # define not_eq != # define or || # define or_eq |= # define xor ...
def parse_names(string): names = [] for word in string.split(): if word[0].isupper(): names.append(word) return names
# Generated by Django 3.1.1 on 2020-10-21 10:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('loginsignup', '0001_initial'), ] operations = [ migrations.AddField( model_name='beaver', name='college', ...
<gh_stars>1-10 package com.benmu.framework.extend.module; import com.benmu.framework.model.WeexEventBean; import com.taobao.weex.annotation.JSMethod; import com.taobao.weex.bridge.JSCallback; import com.taobao.weex.common.WXModule; import com.benmu.framework.manager.ManagerFactory; import com.benmu.framework.manager.i...
<filename>blingfirecompile.library/inc/FAMultiMap_judy.h /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #ifndef _FA_MULTI_MAP_JUDY_H_ #define _FA_MULTI_MAP_JUDY_H_ #include "FAConfig.h" #include "FAMultiMapA.h" #include "FAMap_judy.h" #include "FAA...
#!/bin/bash # Ensure cron is running, so sentinel is run periodically crond if [ -z ${RPC_HOST+x} ]; then echo "ENV RPC_HOST must be defined in order to run sentinel." exit 1; fi if [ -z ${RPC_PORT+x} ]; then echo "ENV RPC_PORT must be defined in order to run sentinel." exit 1; fi if [ -z ${RPC_USER...
package io.github.rcarlosdasilva.weixin.model.response.comment; import java.util.List; import com.google.gson.annotations.SerializedName; import io.github.rcarlosdasilva.weixin.model.response.comment.bean.Comment; public class CommentListResponse { private int total; @SerializedName("comment") private List<C...
CREATE TABLE bookings ( id INT PRIMARY KEY, room_category_id INT NOT NULL, date_from DATE NOT NULL, date_to DATE NOT NULL );
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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 re...
import requests import json # OpenWeatherMap API key API_KEY = 'your_api_key' # City Name city_name = 'Paris' def get_weather_data(city_name): # URL for the OpenWeatherMap API url = 'http://api.openweathermap.org/data/2.5/weather?q={}&appid={}'.format(city_name, API_KEY) # Make a request to the API and ...
package io.vertx.ext.auth.webauthn; import io.vertx.core.json.JsonObject; import io.vertx.core.json.JsonArray; import io.vertx.core.json.impl.JsonUtil; import java.time.Instant; import java.time.format.DateTimeFormatter; import java.util.Base64; /** * Converter and mapper for {@link io.vertx.ext.auth.webauthn.Relyin...