text
stringlengths
1
1.05M
const fs = require('fs'); const Discord = require('discord.js') module.exports = { name: 'reload', description: 'Reloads a command', args: true, execute(message, args) { const commandName = args[0].toLowerCase(); const command = message.client.commands.get(commandName) || message.client.commands.find(cmd =>...
#!/bin/bash #on container start #1. import report from latest code #2. start tomcat7 mkdir -p /usr/local/tomcat/conf/Catalina/localhost/ cp /data/config/jasperserver-pro.xml /usr/local/tomcat/conf/Catalina/localhost/ cp /data/config/js.jdbc.properties /code/deploy/scripts/jasper55/build_conf/default/ mkdir -p /home/r...
#!/usr/bin/env bash # # Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condi...
<reponame>hafijur2584/blog_with_laravel_vue export default { namespaced: true, state: { token: null, user: null }, getters: { authenticated(state) { return state.token && state.user }, user(state) { return state.user } }, ...
#!/bin/sh sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev g++ g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev sudo apt install nodejs sudo apt install npm npm install lix -g lix scope create lix install haxe 4.1.5 ./fnfsetup.sh
<reponame>philip-h-dye/docpt-parser import sys import os import io import re from contextlib import redirect_stdout from dataclasses import dataclass from prettyprinter import cpprint as pp import arpeggio import arpeggio.cleanpeg from arpeggio import ( Terminal, NonTerminal, StrMatch, SemanticActionResults, Parse...
<filename>fiscoflex-rest/src/main/java/mx/fiscoflex/contabilidad/exception/CredencialesValidasException.java package mx.fiscoflex.contabilidad.exception; public class CredencialesValidasException extends BusinessException{ /** * */ private static final long serialVersionUID = 1L; public CredencialesValidasEx...
<?php class CustomHttpResponse { public const BACKUP_CODE = 303; public const CLIENT_CODE = 400; public const REGION_CODE = 304; protected ?int $http_code = null; public function __construct(?int $http_code) { $this->http_code = $http_code; } public function get_response_code(): ?...
<reponame>SamVerschueren/bragg-kinesis<gh_stars>1-10 'use strict'; module.exports = opts => { opts = opts || {}; return ctx => { if (!ctx.path && ctx.req.Records && ctx.req.Records.length > 0 && ctx.req.Records[0].eventSource === 'aws:kinesis') { const first = ctx.req.Records[0]; const streamName = first.eve...
<reponame>acidicMercury8/xray-1.5 //---------------------------------------------------- // file: BuilderGame.cpp //---------------------------------------------------- #include "stdafx.h" #pragma hdrstop #include "Builder.h" #include "Scene.h" #include "../../xrServerEntities/LevelGameDef.h" #include "Soun...
<reponame>Schucz/tools-page const rule = { test: function(url) { return /#_/.test(url); }, use: function(url) { const hashIndex = url.indexOf("#"); const hashPrefix = url.substr(0, hashIndex); const hash = url.substr(hashIndex); return hashPrefix + hash.replace("$", "/$").replace(/([^\/])_/g...
#! /bin/bash set -x set -e if [ "$(uname)" == "Darwin" ]; then export CC=/usr/local/opt/llvm@8/bin/clang export CXX=/usr/local/opt/llvm@8/bin/clang++ else export CC="clang-8" export CXX="clang++-8" fi # check for local cmake build created by setup.sh if [ -d "../cmake_build" ]; then if [ "$(uname...
pkg_name=p11-kit pkg_origin=core pkg_version="0.23.10" pkg_description="Provides a way to load and enumerate PKCS#11 modules." pkg_upstream_url="https://p11-glue.github.io/p11-glue/p11-kit.html" pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_license=('BSD-3-Clause') pkg_source="https://github.com/p11-...
import static org.junit.Assert.*; import java.awt.Component; import java.awt.event.KeyEvent; import org.junit.Test; import org.junit.Before; public class TestGameOverModel extends Component { private ModelController modelController; private ViewController viewController; private GameOverModel gameOve...
use std::collections::{HashMap, HashSet}; fn resolve_dependencies(components: &[&str], dependencies: &[(String, String)]) -> Vec<&str> { let mut graph: HashMap<&str, HashSet<&str>> = HashMap::new(); let mut in_degree: HashMap<&str, usize> = HashMap::new(); let mut result: Vec<&str> = Vec::new(); for c...
#!/usr/bin/env node const path = require('path'), fs = require('fs'), log = console.log var data, fileName, bk = { max: 5, title: '1', UrlKey: '' }, i=1 function all() { var files = fs.readdirSync('./data-bak') files.forEach((file) => { fileName = path.join(__dirname, 'data-bak', file) ...
/* ------------------------------------------------------- */ /* ----- Custom Add Manual Activity File Attachment ------ */ /* ------------------------------------------------------- */ // Tested with v8.4.3.2016 and Chrome v67 + IE11 // Author: <NAME>, Innofactor // Description: Lists File Attachments of Manual activi...
function maxSubarraySum(array, K) { let currentSum = 0; let maxSum = 0; // Calculte the sum of first 'K' elements for (let i = 0; i < K; i++) { currentSum += array[i]; } // Slide the subarray and update the maxSum for (let i = K; i < array.length; i++) { currentSum += array[i] - array[i - K]; maxSum = Mat...
<gh_stars>0 import makeLoader from "./utilities" import { rolesRequest, rolesSuccess, rolesFailure } from "../actions/roles" export const tagUserDelete = makeLoader({ defaults: { method: "DELETE", kind: "tags" }, actionCreators: { actionsRequest: [tagsRequest], actionsSuccess: [tagsSuccess], actions...
<reponame>mindhashnl/roomsignage from django.http import HttpResponse, HttpResponseRedirect from django.template import loader from mysign_app.models import DoorDevice def index(request): if request.COOKIES.get('screen_secret'): device = DoorDevice.objects.filter(secret=request.COOKIES.get('screen_secret...
<reponame>hispindia/BIHAR-2.7<gh_stars>0 package org.hisp.dhis.reporting.tablecreator.action; /* * Copyright (c) 2004-2012, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met:...
<reponame>shuiruge/LGD #!/usr/bin/env python3 # -*- coding: utf-8 -*- """A raw implementation of the algorithm in the "READMD.md". REMARK: * I do NOT think this can be implemented by inheriting `tf.train.Optimizer`, since it is a function (or say, `Op`-constructor), i.e. the function `make_loss_and_gradients...
SELECT movie_id, rating FROM ratings WHERE rating > 4;
<reponame>dehora/nakadi-java-examples<filename>examples/src/main/java/nakadi/examples/oauth/OAuthScopesMain.java package nakadi.examples.oauth; import nakadi.BusinessEventMapped; import nakadi.EventMetadata; import nakadi.EventResource; import nakadi.NakadiClient; import nakadi.examples.events.PriorityRequisition; pu...
#!/bin/bash #. _DEBUG.sh # # One-line description of what this script does # # # Usage: $0 PARM1 PARM2 --[no]parm3 PARM4 \ # --parm5[=do_this_once] --parm6=do_this_often \ # [ PARMNm1 ] PARMN # ######################################################################## #############...
#!/bin/sh ./yapt2 python dochart.py --format="pdf" > plot.pdf open plot.pdf
<filename>packages/core/service/discord-handler.service.ts import { Injectable } from '@nestjs/common'; @Injectable() export class DiscordHandlerService { callHandler( instance: unknown, methodName: string, params: any ): void { instance[methodName](...params); } }
def checkBitmaskSubset(bitmask, subset): for flag in subset: if not bitmask & flag: return False return True
<filename>web/ui/typings.d.ts declare var process: Process; interface Process { env: { [key: string]: string } }
if [[ $__p9k_sourced != 10 ]]; then >&2 print -P "" >&2 print -P "[%F{1}ERROR%f]: Corrupted powerlevel10k installation." >&2 print -P "" if (( ${+functions[antigen]} )); then >&2 print -P "If using %Bantigen%b, run the folowing command to fix:" >&2 print -P "" >&2 print -P " %F{2}antigen%f reset"...
#!/bin/bash -f #********************************************************************************************************* # Vivado (TM) v2021.1 (64-bit) # # Filename : uart_bmpg_0.sh # Simulator : Aldec Active-HDL Simulator # Description : Simulation script for compiling, elaborating and verifying the project sour...
/* * Copyright (C) 2016 <NAME> * * 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...
#!/bin/bash # https://documentation.commvault.com/commvault/v11/article?p=108828.htm # https://github.com/rubrikinc/ansible-role-aws-vmimport-role aws iam create-role --role-name vmimport --assume-role-policy-document file://files/trust-policy.json # provide access key / secret aws iam put-role-policy --role-name ...
<html> <head> <title>Product Catalogue</title> <style> table { width: 100%; } table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; } table tr:nth-child(even) { background-color: #f2f2f2; } table th { background-color: #4CAF50; color: white; } </style> </he...
package com.tao.download; import com.tao.util.FtpUtils; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Path; import java.nio.file.Paths; import java.util.regex.Pattern; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache....
package com.banano.kaliumwallet.ui.intro; import android.content.Context; import android.databinding.DataBindingUtil; import android.graphics.Rect; import android.os.Bundle; import android.text.Editable; import android.text.InputType; import android.text.TextWatcher; import android.view.KeyEvent; import android.view.L...
package hackerrank.circular_array_rotation; /** * https://www.hackerrank.com/challenges/circular-array-rotation */ public final class SolutionCore { private SolutionCore() { } protected static int query(final int n, final int k, final int[] array, final int index) { return array[(index + n - (k ...
"""Module implements pytest-bdd steps for authorization and mounting oneclient. """ __author__ = "<NAME>" __copyright__ = "Copyright (C) 2015 ACK CYFRONET AGH" __license__ = "This software is released under the MIT license cited in " \ "LICENSE.txt" import multi_auth_steps from tests.utils.acceptance_uti...
from .bar import bar from .animation import animation __version__ = '0.0.3'
#include <iostream> class LinearKnob { private: double start_frame; double end_frame; double end_val; public: LinearKnob(double start_frame, double end_frame, double end_val) : start_frame(start_frame), end_frame(end_frame), end_val(end_val) {} bool isActive(double frame) { retur...
<reponame>firelayer-io/firelayer export const JavascriptModel = (model) => `const { db, Firemodel } = require('../firebase/index') exports = class MODEL_NAME extends Firemodel { constructor(id) { super(id) } get collection() { // REPLACE _ with correct path to collection return db().collection('_') ...
import React from 'react'; import Dashboard from '../components/Dashboard'; import Layout from '../components/Layout'; import Nights from '../components/Nights'; import SignIn from '../components/SignIn'; import Targets from '../components/Targets'; import Typography from '@material-ui/core/Typography'; import { MuiP...
window.$keyboard = null; window.showTouchKeyboard = function() { if(window.preventOnScreenKeyboard) return; if(!window.useWindowsBuiltInKeyboard) return; if(typeof process == "undefined") return; const exec = require('child_process').exec; exec('start /d "C:\\Program...
#Import libraries import tensorflow as tf from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten # Create data generator train_datagen = ImageDataGenerat...
# This workflow script contains all commands required to generate the # taxonomic weights found in readytowear/data/gtdb/*/ # Note that temporary files are removed at the end of this workflow. # Remove the last line of this script to save temporary files. # move your current working directory to readytowear/ o...
# /* ************************************************************************** # * * # * (C) Copyright <NAME> 2014. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt or copy ...
import {CCEntity} from './cc-entity'; export class DefaultEntity extends CCEntity { private settings; getAttributes() { const out = {}; Object.keys(this.settings).forEach(key => { out[key] = { type: 'Unknown' }; }); return out; } getScaleSettings() { return null; } protected setupType(s...
<filename>components/mip-group-selection/mip-group-selection.js import './mip-group-selection.less' const { util, viewer, templates, Services, CustomElement } = MIP const log = util.log('mip-group-selection') const {fixedElement} = viewer const {dom, css, event} = util const CustomStorage = util.customStora...
/* This algorithm generates a random string of 8 characters. The string is generated using an array of randomly selected characters. */ // Declare an array of characters let charactersArray = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'.split(''); // Declare an empty string let randomString ...
package com.yin.springboot.mybatis.server; import java.util.List; import com.yin.springboot.mybatis.domain.CmsTopicComment; public interface CmsTopicCommentService{ int deleteByPrimaryKey(Long id); int insert(CmsTopicComment record); int insertOrUpdate(CmsTopicComment record); int insertOrUpdateSe...
package com.asadmshah.moviegur.models; import android.os.Parcelable; import auto.parcel.AutoParcel; @AutoParcel public abstract class BackdropPath implements Parcelable { public static BackdropPath of(String path) { return new AutoParcel_BackdropPath(path); } public abstract String path(); }
#!/bin/bash # # Copyright 2010, Capgemini # Authors: Antoine Mercadal - capgemini # Franck Villaume - capgemini # Jean-Michel Maisonnave - capgemini # # This file is part of ActivForge. # # ActivForge is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pu...
#!/usr/bin/env bash # Copyright (c) 2016-2017 Bitnami # # 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...
<gh_stars>0 import Overview from './components/Overview'; // import './style.css'; window.Overview = Overview;
def find_keywords(sentence): words = sentence.split() keywords = [] for word in words: if word.isalnum(): keywords.append(word) return keywords sentence = "This is a sample sentence with multiple words." keywords = find_keywords(sentence) print(keywords)
#!/bin/bash -f #********************************************************************************************************* # Vivado (TM) v2018.1 (64-bit) # # Filename : blk_mem_gen_0.sh # Simulator : Cadence Xcelium Parallel Simulator # Description : Simulation script for compiling, elaborating and verifying the pr...
#!/bin/bash decode_path=$1 eval_script=`dirname $0`/../python/asclite_libricss_batch.py python $eval_script --decode_root $decode_path --sctkpath $SCTKPATH/bin
PKG_NAME="zlib-1.2.11" PKG_TARBALL="$PKG_NAME.tar.gz" PKG_URL="http://zlib.net/$PKG_TARBALL" # Download, extract, and compile source code $ORI_EXE newfs $TEST_FS $ORIFS_EXE $TEST_FS $TEST_FS sleep 1 cd $TEST_FS # Download & compare sources wget "$PKG_URL" tar xvf "$PKG_TARBALL" # Compile cd $PKG_NAME ./configure ...
package com.NumCo.numberconverter.History; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.graphics.Color; import android.graphics.Typeface; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; impor...
def absolute_difference_sum(ints): n = len(ints) sum = 0 for i in range(n): for j in range(i + 1, n): sum += abs(ints[i] - ints[j]) return sum result = absolute_difference_sum([3, 8, 2, 7]) print(result)
#!/bin/sh testname=$1 if test ! -f simx.log; then echo "FAIL: $testname - no log file" else n_fails=`grep "FAIL: $testname" simx.log | wc -l` n_pass=`grep "PASSED" simx.log | grep '1 test' | wc -l` no_tests=`grep "0 test" simx.log | wc -l` if test $n_fails -gt 0; then echo "FAIL: $testname" elif test...
<gh_stars>0 import { LoginForm } from "../../src/forms/LoginForm.js"; (async function () { const request = await fetch("../../index.html"), doc = await request.html(), head = doc.querySelector("head"), body = doc.querySelector("body"); document.head.append(...head.childNodes); doc...
<filename>src/m365/app/commands/permission/permission-list.ts import { Application, AppRole, AppRoleAssignment, OAuth2PermissionGrant, PermissionScope, RequiredResourceAccess, ResourceAccess, ServicePrincipal } from '@microsoft/microsoft-graph-types'; import { AxiosRequestConfig } from 'axios'; import { Cli, Logger } f...
#!/bin/sh # # 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 ...
#!/bin/sh tap=$1 echo "/tmp/qemu_machine_$tap.log"
<filename>src/__tests__/parse-escaped.spec.ts import { markdownToQuillDelta } from '../parser' jest.mock('../environment.ts', () => ({ IS_DEV: true, IS_PROD: false, })) describe(`markdownToQuillDelta-escaped`, () => { it('should parse: bold', () => { const md = 'test *bo\\*ld*' expect(markdownToQuillDel...
################################ Logistic ODE ################################ ode=LogisticODE # change noise level seed_arr=( 0 50 ) noise_arr=( 0.01 0.02 0.03 0.05 0.07 0.09 0.1 0.15 0.2 0.25 0.3 0.5 0.7 0.9 1.1 1.3 ) n_seed=50 freq=5 for seed in "${seed_arr[@]}" do for noise in "${noise_arr[@]}" do ...
<gh_stars>1-10 import React, { useState } from 'react' import { useTrail, a } from '@react-spring/web' import styles from './styles.module.css' const Trail: React.FC<{ open: boolean }> = ({ open, children }) => { const items = React.Children.toArray(children) const trail = useTrail(items.length, { config: { m...
package test; class A { }
<gh_stars>0 package main import ( "Ingress/src/app" "Ingress/src/models" "log" ) func main() { log.Println("Starting up") config := new(models.StartupConfiguration) a := new(app.App) a.Initialize(config) a.Run() }
#!/bin/bash # @Function # convert to Absolute Path. # # @Usage # # print Absolute Path of current directory. # $ ./ap # # print Absolute Path of arguments. # $ ./ap a.txt ../dir1/b.txt # # @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-ap-and-rp # @author Jerry Lee (oldratlee...
#!/bin/sh # Sets up a docker credential helper so docker login credentials are not stored encoded in base64 plain text. # Uses the pass secret service as the credentials store. # If previously logged in w/o cred helper, docker logout <registry> under each user or remove ~/.docker/config.json. # Tested on Ubuntu 18.04...
// evmone: Fast Ethereum Virtual Machine implementation // Copyright 2021 The evmone Authors. // SPDX-License-Identifier: Apache-2.0 #include "eof.hpp" #include "instructions_traits.hpp" #include <array> #include <cassert> #include <limits> namespace evmone { namespace { constexpr uint8_t MAGIC[] = {0xef, 0x00}; con...
class Product { // Class definition for Product } class AccessControl { const CREATE = 'CREATE'; const EDIT = 'EDIT'; public function checkAccess($attribute, $subject): bool { if (!in_array($attribute, array(self::CREATE, self::EDIT))) { return false; } if (!$subjec...
package org.allenai.ml.sequences.crf.conll; import lombok.extern.slf4j.Slf4j; import org.allenai.ml.linalg.DenseVector; import org.allenai.ml.linalg.Vector; import org.allenai.ml.sequences.StateSpace; import org.allenai.ml.sequences.crf.CRFFeatureEncoder; import org.allenai.ml.sequences.crf.CRFModel; import org.allena...
import org.apache.spark.SparkConf import org.apache.spark.streaming.{Seconds, StreamingContext} // Create a Spark configuration and set the app name val conf = new SparkConf().setAppName("RealTimeWordCount") // Create a StreamingContext with a batch interval of 1 second val ssc = new StreamingContext(conf, Seconds(1)...
#!/bin/bash # # This scripts switches features and state spaces # # TLS_TYPE, DEMAND_TYPE, python jobs/run.py git commit -a -m 'CENTRALIZED, CONSTANT DEMAND, SPEEDCOUNT' # B) EXPERIMENT: INTER, DELAY sed -i "s/tls_type = centralized/# tls_type = centralized/" config/train.config sed -i "s/#tls_type = rl/tls_type = rl...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 29 15:35:50 2020 @author: rohithbhandaru """ from threading import Thread from flask import current_app from flask_mail import Message from . import mail def send_async_email(appContext, msg): with appContext.app_context(): mail.sen...
// // ZCHelper.h // ZCNetwork // // Created by yier on 2019/10/22. // Copyright © 2019 yier. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ZCHelper : NSObject + (NSString *)idfa; + (NSString *)idfv; + (NSString *)platform;///<iphone or ipad + (NSString *)clientV...
import i18n from '@dhis2/d2-i18n' export default ({ content }) => ({ key: 'data-display', label: i18n.t('Display'), content, })
$("#sidebar-btn-header").click(function(e) { e.preventDefault(); $("#container-sidebar").toggleClass("toggled"); }); $("#sidebar #btn-container").click(function(e){ e.preventDefault(); if($("#container-sidebar").hasClass("hide-container") && $("#container-sidebar").hasClass("mini") && $("#...
#!/bin/bash source /root/miniconda3/etc/profile.d/conda.sh conda activate xray python /root/xray_detection_client/app.py
#!/usr/bin/bash set -ex patch_file="/tmp/${PATCH_LIST}" while IFS= read -r line do # each line is in the form "project_dir refsspec" where: # - project is the last part of the project url including the org, # for example openstack/ironic-inspector # - refspec is the gerrit refspec of the patch we want...
<filename>rules/fen.go package rules import ( "bytes" "strconv" "strings" "unicode" ) const startingPositionFEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" // Forsyth–Edwards Notation // https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation type FEN struct { buffer *bytes.Buffer squa...
<filename>dataStructure/CAnalyse/src/GNU/getExecDirectory.cpp /********************************************* * @Author : Daniel_Elendeer * @Date : 2020-12-30 15:56:11 * @LastEditors : Daniel_Elendeer * @LastEditTime : 2020-12-30 16:45:36 * @Description : ********************************************...
<reponame>clushie/xunit-viewer import React from 'react' import SuiteOptions from './suite-options' import renderer from 'react-test-renderer' test('renders suite options', () => { const tree = renderer.create(<SuiteOptions count={100} total={999} />).toJSON() expect(tree).toMatchSnapshot() })
Page({ data: { offwork: true, time: '', location: '', winWidth: '', winHeight: '', }, onLoad: function (options) { wx.getSystemInfo({ success: (res) => { this.setData( { winWidth: res.windowWidth, winHeight: res.windowHeight, errM...
package oss import ( "bufio" "crypto/md5" "fmt" "github.com/raythorn/zebra/context" "github.com/raythorn/zebra/log" "io" "net/http" "os" "path" "regexp" "strconv" "strings" ) func ServeContent(ctx *context.Context) { respath := ctx.Get(OssPathKey) if len(respath) == 0 || !isExist(respath) { ctx.NotFo...
#!/bin/bash rm -rf build/ west build -b nrf52840dk_nrf52840 samples/basic/blinky west flash rm -rf build/ west build -b nrf52840dk_nrf52840 samples/bluetooth/throughput west flash
<filename>sources/Tests/tests/graphics/animation.cpp #include "animation.h" Skeleton generateTestSkeleton() { std::vector<Bone> bones; bones.emplace_back("root", Bone::ROOT_BONE_PARENT_ID, glm::inverse(MathUtils::getTranslationMatrix({1.0f, 0.0f, 0.0f}))); bones.emplace_back("spin", uint8_t(0), glm::inverse...
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. 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...
#!/bin/bash apt -y install octavia-api octavia-health-manager octavia-housekeeping octavia-worker python3-ovn-octavia-provider # get default working directory dwd="$PWD" cd $ASSETS/gitrepos/octavia/bin ./create_dual_intermediate_CA.sh # return to default working directory cd $dwd mkdir -p /etc/octavia/certs/privat...
import sys # Read input from standard input input_lines = sys.stdin.readlines() # Process each input line for line in input_lines: # Split the line into variable name and value parts = line.strip().split('=') variable_name = parts[0].split(' ')[1] value = parts[1] # Output the formatted result ...
import matplotlib.pyplot as plt data = [23, 12, 40, 14, 25] plt.hist(data) plt.title("Histogram") plt.xlabel("Values") plt.ylabel("Frequency") plt.show()
@mixin grid($cols: 3){ $baseWidth: 100%/$cols; $gap: 1%; .grid { &:after { content: ""; display: table; clear: both; } } .grid-col { float: left; width: $baseWidth - $gap; margin-right: $gap; &:last-of-type { margin-right: 0; } @media(min-width: 400px...
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. package protocol import ( "bytes" "net" "github.com/elastic/beats/v7/x-pack/fil...
public static int sum(int max) { int sum = 0; int increment = max / 10; if (increment == 0) { increment = 1; } for (int i = 0; i <= max; i += increment) { sum += i; } return sum; }
def strider1(p, n): return [list(p[i::n]) for i in xrange(n)]
<filename>cascade/src/main/java/com/github/robindevilliers/cascade/modules/completeness/StandardCompletenessStrategy.java package com.github.robindevilliers.cascade.modules.completeness; import com.github.robindevilliers.cascade.Completeness; import com.github.robindevilliers.cascade.Scenario; import com.github.robind...
<filename>config/env/all.js 'use strict'; module.exports = { app: { title: 'Faculty Recruitment System', description: 'Application for Candidates, Faculty and Staff of DUSON', keywords: 'Duke, Duke University, FRS, Faculty Recruitment' }, port: process.env.PORT || 3000, templateEngine: 'swig', se...