content
stringlengths
10
4.9M
/** * @author Gunnar Hillert * @since 1.0 */ public class DocFlavorComparator implements Comparator<DocFlavor> { public int compare(DocFlavor docFlavor1, DocFlavor docFlavor2) { int comparison = docFlavor1.getMimeType().compareTo(docFlavor2.getMimeType()); if (comparison == 0) { return docFlavor1.getMedia...
<filename>commons/src/main/java/com/vizerium/commons/indicators/MovingAverageCalculator.java<gh_stars>0 /* * Copyright 2019 Vizerium, 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 Licen...
import { ValidatorResult } from "../validation/validatorresult"; import { User } from "../models/user"; import { ValidationError } from "../validation/validationerror"; import { UserDeleteValidator } from "../validation/user/validators/userdeletevalidator"; import { Database } from "../common/database"; import { Servic...
/* Test cli command to convert topology to providers and descriptors */ @Test public void testConvertTopology() throws Exception { outContent.reset(); Configuration config = new GatewayConfigImpl(); URL topologyFileURL = ClassLoader.getSystemResource("token-test.xml"); final File topologyFile = Paths....
a=int(input()) s=input() ans=[] score=0 from collections import defaultdict al=defaultdict(list) for i in range(len(s)): if(s[i]=='0'): score-=1 ans.append(score) al[score].append(i) else: score+=1 ans.append(score) al[score].append(i) ans=list(...
<reponame>linerxliner/ValCAT<filename>taattack/config.py import torch from pathlib import Path BASE_DIR = Path(__file__).parent DEVICES = [f'cuda:{i}' for i in range(torch.cuda.device_count())] if len(DEVICES) == 0: DEVICES = ['cpu'] * 2
One-dimensional ion-beam figuring solution from Brookhaven National Laboratory We demonstrate a novel One-Dimensional Ion-Beam Figuring (1D-IBF) solution from Brookhaven National Laboratory. Three improvements are introduced to the new 1D-IBF system. First, the misalignment of the coordinate systems between the metrol...
<filename>openstack/identity/v2/tokens/testing/requests_test.go package testing import ( "testing" "github.com/huaweicloud/huaweicloud-sdk-go" "github.com/huaweicloud/huaweicloud-sdk-go/openstack/identity/v2/tokens" th "github.com/huaweicloud/huaweicloud-sdk-go/testhelper" "github.com/huaweicloud/huaweicloud-sdk...
An Actor-Network Perspective on Collections Documentation and Data Practices at Museums The improvement of digital technology over recent decades has advanced the ability of museums to manage records of their collections and share them online. However, despite the rise of research in the area of digital heritage, less...
<gh_stars>1-10 """Tests for `pgsync` package.""" import psycopg2 import pytest from pgsync.base import subtransactions from .helpers.utils import assert_resync_empty @pytest.mark.usefixtures("table_creator") class TestUniqueBehaviour(object): """Unique behaviour tests.""" @pytest.fixture(scope="function")...
/** * Formats the date as a string with date and time. It respect the localization of device. * * @param context the application context * @param date the date to format * @return the formatted string */ @NonNull public static String formatDate(Context context, Date date) { ...
<filename>src/bulls_and_cows_lib/game_options.cpp<gh_stars>0 #include "game_options.hpp" #include "input.hpp" namespace bulls_and_cows { void display_game_options(std::ostream& output_stream, const GameOptions& game_options) { output_stream << "\nHere are the current game_options :\n"; output...
<gh_stars>0 import { shallow } from "enzyme"; import "jest-styled-components"; import React from "react"; import { InputLabel } from "."; describe("<InputLabel />", () => { it("exists", () => { const wrapper = shallow( <InputLabel labelBackground={"#FFF"} active={false}> This is input - check knob...
/* NAME BaseDaemon.hpp - Header file of the base daemon class. DESCRIPTION Simplify daemon program. */ #ifndef __BASE_DAEMON_HPP__ #define __BASE_DAEMON_HPP__ #include "Configure.hpp" #include <string> class BaseDaemon { public: static bool running; static bool daemon; void run(); protec...
/** * A type-based points-to relation query */ public class TypeBasedPtsToQuery implements IPtsToQuery{ private final boolean _allReachable; public TypeBasedPtsToQuery(boolean allReachable){ TypeBasedPointsToAnalysis.v(allReachable); _allReachable = allReachable; } public vo...
import React from 'react'; import { IAnimal, Gender } from '../../../../api/animals'; import './index.scss'; import noPhotoImage from './../../../../img/nophoto.jpg'; import { TI18n } from '../../../../i18n'; import { Link } from 'react-router-dom'; import { ButtonLike } from '../../../../components/ButtonLike'; import...
<filename>src/rules/warrior-rules.ts import * as yup from 'yup' import * as bcrypt from 'bcrypt' import Warrior from '@local/models/warrior-model' export const signUpRules = yup.object().shape({ name: yup .string() .trim() .required(), warriorname: yup .string() .trim() .required() .mi...
/* un-initialize simulator-specific state */ void sim_uninit(void) { }
// In the name of Allah the Most Merciful. #include<bits/stdc++.h> using namespace std; typedef long long ll; const int MAX = 1005; int lv1[MAX+9] , lv2[MAX+9]; int n , m , s , t; vector<int>edges[MAX+9]; bool vis[1005]; void bfs1(int s) { queue<int>current; lv1[s] = 0; vis[s] = 1; ...
The Click modular router Click is a new software architecture for building flexible and configurable routers. A Click router is assembled from packet processing modules called elements. Individual elements implement simple router functions like packet classification, queueing, scheduling, and interfacing with network ...
import urllib.request import urllib.parse import json url = "http://fanyi.baidu.com/v2transapi" headers = { "Accept": "*/*", "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8", "Cache-Control": "no-cache", "Connection": "keep-alive", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", ...
/* Method called by the LogConfig to indicate chage of properties. */ void configChange(final String propName, final Object oldValue, final Object newValue) { final String name = propName; if (name.equals(LogConfigImpl.MEM)) { resetMemorySize(((Integer) newValue).in...
<commit_msg>Remove urlparse import as not used and also renamed in Python 3 to urllib.parse <commit_before>from django.contrib.sites.shortcuts import get_current_site from urlparse import urljoin def site_url(request): scheme = 'https' if request.is_secure() else 'http' site = get_current_site(request) #dom...
#include<bits/stdc++.h> using namespace std; #define ll long long #define F first #define S second int main() { ll n,c,i,j,k,t,target,sum=0,m; cin>>t; ll arr[10]={0,45,40,45,40,25,40,45,40,45}; for(i=0;i<t;i++) { cin>>m>>n; ll nbm=m/n; ll mul=nbm/10; ll rest=nbm%10; n%=10; ll ans=0; ...
Located at the tip of the Baja Peninsula, the two small colonial towns of Cabo San Lucas and San José del Cabo have become the hottest vacation destinations in Mexico in recent years. With wide, pristine beaches, lively nightclubs, glam resorts, and a farm-to-table food scene, the oasis of Los Cabos is drawing tourists...
#ifndef LINEAROPERATOR_HPP #define LINEAROPERATOR_HPP //!\file //!\brief Base class for representing linear operators \f$R^{N} \to R^{M}\f$. #include <cstddef> #include <utility> namespace mgard { //! Linear operator with respect to some fixed bases. class LinearOperator { public: //! Constructor. //! //!\par...
// ValidateBattleUser func validates a users input to *Game Overwatch func (b *Blizzard) ValidateBattleUser(payload *models.Overwatch) error { logrus.Debug("ValidateBattleUser()") if payload == nil { return errors.New("no payload to ValidateBattleUser") } var regions = []string{"us", "eu", "asia"} var platforms ...
#include "stdafx.h" #include "Joycon.h" Joycon::Joycon(struct hid_device_info *dev) { if (dev->product_id == JOYCON_L_BT) { this->name = std::string("Joy-Con (L)"); this->left_right = 1; } else if (dev->product_id == JOYCON_R_BT) { this->name = std::string("Joy-Con (R)"); this->left_right = 2; } this->ha...
Bottas has been confirmed at Williams, Hulkenberg was re-signed with Force India and Monza is still under threat… but the biggest news in Formula One right now (as always) is that Lewis Hamilton has done a thing. Yes, the reigning champ has turned up to Monza with blonde hair. Blonde! Outrageous! And of course, like e...
/* This is dvipdfmx, an eXtended version of dvipdfm by <NAME>. Copyright (C) 2002-2016 by <NAME> and <NAME>, the dvipdfmx project team. Copyright (C) 1998, 1999 by <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
// PrepareOccurrences - prepares sample occurrences for testing based on number of test func PrepareOccurrences(num int) occ.Occurrences { occs := occ.Occurrences{} switch num { case 1: occs = append(occs, occ.Occurrence{Symb: 'д', Occurrences: 5}, occ.Occurrence{Symb: 'г', Occurrences: 6}, occ.Occurrence...
/* * write debug info buffer on stderr */ void dbg_flush(void) { if (dbg_used == 0) return; write(STDERR_FILENO, dbg_buf, dbg_used); dbg_used = 0; }
// GetPort returns the port to run the server on func (c *Config) GetPort() int { c.mu.RLock() defer c.mu.RUnlock() return c.Port }
import logging import time from datetime import datetime time = datetime.now() file_out = time.strftime("%Y-%m-%d %H:%M:%S") + ".log" logging.basicConfig( level = logging.INFO, filename = file_out, filemode = 'w', format = '%(asctime)s - %(name)s - %(process)d - %(levelname)s - %(message)s' ) logging.w...
<filename>tests/test_optimize_model.py import unittest import torch from src.dqn.optimize_model import ComputeLoss from src.dqn.dqn import DQN from src.util_types import Transition class TestComputerLoss(unittest.TestCase): def setUp(self): self.policy_net = DQN() self.target_net = DQN() g...
""" =================================================== Ammonia inversion transition: Hyperfine-only fitter =================================================== .. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> Module API ^^^^^^^^^^ """ import numpy as np import matplotlib.cbook as mpcb import copy import c...
<filename>LeftNavBarExample/LeftNavBarLibrary/src/main/java/com/example/google/tv/leftnavbar/TitleBarView.java<gh_stars>1000+ /* * Copyright (C) 2011 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...
<gh_stars>0 #ifndef LOCAL_FILES_H_ #define LOCAL_FILES_H_ #include <iostream> #include <fstream> #include <regex> #include <vector> #include <string> #include <opencv2/core.hpp> #include <opencv2/opencv.hpp> #include "slarray.h" class LocalFileDealer { public: LocalFileDealer() : length(0), width(0), hei...
import math import os import sys import re import itertools import functools import operator print(' '.join(input().replace('WUB', ' ').split()))
// Load Log Configuration And Build Logger // Notice that we need to load the configuration into a new struct // and test the creation of the logger, before we apply the updates // to the existing zap.Config. It is very important that the changes // are applied to the existing zap.Config rather than using the new // on...
/* Return TRUE or FALSE depending on whether the binary operator meets the appropriate constraints. */ int ix86_binary_operator_ok (enum rtx_code code, enum machine_mode mode, rtx operands[3]) { rtx dst = operands[0]; rtx src1 = operands[1]; rtx src2 = operands[2]; if (MEM_P (src1) && MEM_P (src2)) ...
export interface Authentication { auth: (params: Authentication.Params) => Promise<Authentication.Result> } export namespace Authentication { export type Params = { accountId: string userId: string role: string } export type Result = { accessToken: string } }
Democrat Elizabeth Warren ousted Republican incumbent Sen. Scott Brown in the Massachusetts Senate election Tuesday night, Fox News projects, ending one of the most dramatic races of the 2012 cycle. “This victory belongs to you. You did this,” Warren told her supporters Tuesday night in a speech echoing familiar stump...
<gh_stars>0 package org.swtk.eng.preprocess.patterns; import java.util.regex.Pattern; public class FigureAttributionsPatterns { /* Figure 16 * (Fig. 12A) * (Fig. 10F) * (Figs. 2B and 3) * Fig. 16 * Figs. 6 */ public static Pattern FIG_01 = Pattern.compile("\\(figure [0-9]+[a-z]*\\)", Pattern.CASE_INSE...
Denver, Colorado (CNN) -- When Shay Kelley lost her marketing job she got worried. When she lost her home and her car she got mad. "I went off into the woods and I started yelling at God," she says. "I didn't know why God would lead me up to this point in my life just to have me left with nothing." "I was like, 'Just...
//! Simple timer that adds the elapsed time to the given `double` upon //! destruction. class Timer { using Clock = std::chrono::high_resolution_clock; using Time = std::chrono::time_point<Clock>; using Duration = std::chrono::duration<double>; public: Timer(double &target) : target_{target} , s...
/* Move to the previous word in the prompt text. */ void do_statusbar_prev_word(void) { bool seen_a_word = FALSE, step_forward = FALSE; assert(answer != NULL); while (statusbar_x != 0) { statusbar_x = move_mbleft(answer, statusbar_x); if (is_word_mbchar(answer + statusbar_x, FALSE)) seen_a_word = TRU...
use dfn_candid::{candid, candid_one}; use dfn_protobuf::protobuf; use ed25519_dalek::Keypair; use ic_canister_client::Sender; use ic_nervous_system_common_test_keys::{ TEST_NEURON_1_OWNER_KEYPAIR, TEST_NEURON_1_OWNER_PRINCIPAL, TEST_NEURON_2_OWNER_KEYPAIR, TEST_NEURON_2_OWNER_PRINCIPAL, }; use ic_nns_common::pb...
# coding=utf-8 from flask import jsonify, g from . import api from .errors import bad_request, forbidden from .. import db from ..models import Comment from ..emails import send_comment_notification # noinspection PyShadowingBuiltins @api.route('/comments/<int:id>', methods=['PUT']) def approve_comment(id): comm...
<filename>Retirement Simulator/TaxBracketFormInfoCreator.h<gh_stars>0 // // TaxBracketFormInfoCreator.h // Retirement Simulator // // Created by <NAME> on 10/9/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "FormInfoCreator.h" @class TaxBracket; @interf...
<filename>src/components/Table/Table.types.ts import { Column, TableInstance, TableState, Row, TableOptions, TableHeaderProps, TableRowProps, TableCellProps, Cell, ColumnInstance, HeaderGroup, } from 'react-table'; export interface TableProps { data: object[]; columns: Column[]; pendingRequ...
package io.iron.ironworker.client.builders; import io.iron.ironworker.client.APIException; import java.util.HashMap; import java.util.Map; public class Params { public static Map<String, Object> create(Object... os) throws APIException { if (os.length % 2 != 0) { throw new APIException("Odd p...
Research of loss detection of optic path for laser ignition application We present some different kinds of the loss detection technologies of optic path for laser ignition application according to the recommend of reliability and security of the laser ignition system, such as single wavelength and dual wavelength. The...
import React from 'react' import ReactDOM from 'react-dom' import { Spin } from 'antd' import { SpinProps } from 'antd/es/spin' import { isHidden } from '~/utils' import { Content } from './styles' export const Loading: React.FC<SpinProps> = props => ( <Content> <Spin size="large" tip="数据加载中..." {...props} /> ...
Brief Reports Study on Early Retirement Decision * Early retirement1 has become an increasingly important phenomenon in America. . . . And, there have been substantial improvements in retirement-income-maintenance programs in recent years, improvements which have not been available to the great majority of previous ea...
/** * Asynchronous rollback of the transaction. * * @param callback async completion callback */ public void rollback(AsyncCompletionCallback callback) { try { verifyTransactionState(); } catch (QueueTransactionClosedException e) { callback.setException(e); ...
/** * A reference which will always retrieve the latest group from the appropriate group store. * * <p>Does not hold a reference to the group. */ public class DefaultGroupReference extends AbstractGroupReference { private final Item item; private final String groupId; /** New reference either from another ...
/* This function must be called after an update to server <srv>'s effective * weight. It may be called after a state change too. */ static void fas_update_server_weight(struct server *srv) { int old_state, new_state; struct proxy *p = srv->proxy; if (srv->state == srv->prev_state && srv->eweight == srv->prev_...
/** * Static methods to manipulate the f-x-y descriptors * * @author caron * @since Oct 25, 2008 */ public class Descriptor { public static String makeString(short fxy) { int f = (fxy & 0xC000) >> 14; int x = (fxy & 0x3F00) >> 8; int y = fxy & 0xFF; return makeString(f, x, y); } public sta...
<reponame>ifinanceCanada/edx-repo-health from pathlib import Path import pytest from repo_health import get_file_content from repo_health.check_setup_py import check_pypi_name, module_dict_key FAKE_REPO_ROOT = Path(__file__).parent / "fake_repos" @pytest.mark.parametrize("fake_repo, pypi_name", [ ("kodegail", "...
export { ProductAttributes, ProductAttributesProps } from './base/ProductAttributes/ProductAttributes'; export { Breadcrumbs, BreadcrumbsProps } from './base/Breadcrumbs/Breadcrumbs'; export { ProductReviews, ProductReviewsProps } from './base/ProductReviews/ProductReviews'; export { ProductActions, ProductActionsProps...
package conll; import static org.junit.Assert.*; import org.junit.*; public class TokenTest { private static final String INPUT_LINE = "10\ttror\t_\tV\tVA\tmood=indic|tense=present|voice=active\t_\t_\t_\t_"; private Token token = null; @Before public void setUp() { token = createTestToken(); } static Toke...
""" Copyright 2019 BBC. Licensed under the terms of the Apache License 2.0. """ from unittest.mock import Mock import pytest from google.cloud.bigquery import Client from foxglove.connectors.bigquery import BigQueryConnector @pytest.fixture def fake_bq_client(): return Mock(spec=Client(project='test_project')...
<filename>preprocessor.hpp #ifndef __SCHEME_PRE #define __SCHEME_PRE #include <string> #include <vector> #include <iosfwd> class SchemeUnit { private: bool inComment; enum MultilineCommentStatus { Neutral, CommentStart, CommentEnd }; void stripSemiColon(std::string& line); Multilin...
Scientainment for Sustainability: The Eco-Confessional as a New Approach for Life Cycle Thinking For educating a wide audience on the environmental impact of their daily life decisions, the Eco-Confessional has been developed as an interactive exhibit and a serious game. In this, the effectiveness of promoting sustain...
Feature Articles: A Relativistic Symmetry in Nuclei More than thirty years ago it was observed that certain quantum energy levels in atomic nuclei were almost degenerate in energy . The states that are almost degenerate (quasi-degenerate) have different radial quantum numbers and different orbital angular momenta, fe...
Advertisement Police say investigation shows child did not have cancer Share Shares Copy Link Copy Atlantic police said a mother has been charged after claiming her 5-year-old daughter had cancer, which she did not, and using the claim to raise money for the family.Watch video of this storyLeatha Kaye Slauson, 30, of ...
// FindByPodName returns a map of DanmEps which belong to the same Pod in a given namespace // If no Pod name is provided, function returns all DanmEps func FindByPodName(client danmclientset.Interface, podName, ns string) ([]danmtypes.DanmEp, error) { result, err := client.DanmV1().DanmEps(ns).List(meta_v1.ListOptio...
/* * A class that builds loadouts and Items. */ package engine.entities.items; /** * * @author Christopher */ public class InventoryBuilder { //For creating loadouts, I will likely reference http://en.wikipedia.org/wiki/Equipment_of_the_United_States_Army public static Inventory buildAH64ApacheL...
/** * Creates a form for specified identifier filled by data present in entity * @param entity Entity that contains form data * @param identifier Form identifier * @return A FormResponse of created form */ public static SimpleResponse createFormResponse(Entity entity, String identifier) { ...
Indian cities are not particularly known for their cleanliness and it is not the first time that someone has posted a picture of the filth on social media. Yet when Tavleen Singh posted a picture of garbage on her Twitter timeline, all hell broke loose. The picture didn’t present any unusual sight but in the eyes of T...
<gh_stars>10-100 package engineering.everest.lhotse.api.rest.responses; import lombok.Builder; import lombok.Data; import org.springframework.http.HttpStatus; import java.time.Instant; @Data @Builder public class ApiErrorResponse { private final HttpStatus status; private final String message; private f...
def post_event_sources_log_source_management_log_source_types_by_id(self, id, *, log_source_type_data, fields=None, **kwargs): function_endpoint = urljoin(self._baseurl, 'event_sources/log_source_manageme...
<reponame>allenyinx/ActionAgent<filename>src/main/java/com/airta/action/agent/context/WebdriverInitializr.java<gh_stars>0 package com.airta.action.agent.context; import com.airta.action.agent.config.DriverConfig; import com.airta.action.agent.utility.parser.HtmlParser; import com.airta.action.agent.utility.WebDriverSt...
Head Fusion: Improving the Accuracy and Robustness of Speech Emotion Recognition on the IEMOCAP and RAVDESS Dataset Speech Emotion Recognition (SER) refers to the use of machines to recognize the emotions of a speaker from his (or her) speech. SER benefits Human-Computer Interaction(HCI). But there are still many prob...
import common import music_queue import albums @route('/music/music/genres_menu') def GetGenresMenu(title): oc = ObjectContainer(title2=unicode(L(title))) oc.add(DirectoryObject( key=Callback(HandleMusicGenres, title=L('All Genres')), title=unicode(L('All Genres')) )) oc.add(D...
// wap to know which fonts are available in a local systems class Fonts { public static void main(String[] args) { GraphicsEnvironment ge= GraphicsEnvironment.getLocalGraphicsEnvironment(); String fonts[] =ge.getAvailableFontFamilyNames(); System.out.pr...
The Americleft Project: A Comparison of Short- and Longer-Term Secondary Alveolar Bone Graft Outcomes in Two Centers Using the Standardized Way to Assess Grafts Scale Objective To compare length of follow-up and cleft site dental management on bone graft ratings from two centers. Design Blind retrospective analysis of...
def write_card(elem): try: elem.write_card(size=8, is_double=False) except RuntimeError: elem.write_card(size=16, is_double=False) except Exception: print(elem.get_stats()) raise
import { bot } from "../../cache.ts"; bot.arguments.set("boolean", { name: "boolean", execute: function (_argument, parameters) { const [boolean] = parameters; if (["true", "false", "on", "off", "enable", "disable"].includes(boolean)) { return ["true", "on", "enable"].includes(boolean); } }, }...
NOW AVAILABLE Our book Biesik Jumiekan, a greatly expanded print version of this site, is published by Gnosophia Publishers under the Chuu Wod imprint. For bulk orders direct from the publisher, or otherwise available from Amazon. Wa Jumiekandem taak What Jamaicans speak Di habrij Jumiekan di taak wa deh taak deh k...
package gorgonia import ( "github.com/pkg/errors" "gonum.org/v1/gonum/graph" ) /* This file holds code for symbolic differentiation. The purpose of the symbolic differentiation is to analyze and prepare the nodes for automatic differentiation. The main function that does all the magic is in Backpropagate(). see ...
<gh_stars>1-10 package solus import ( "net/http" "net/http/httptest" "net/url" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestAllowInsecure(t *testing.T) { c := &Client{ HTTPClient: &http.Client{ Transport: &http.Transport{}, }, } AllowInsecure...
<filename>main.go package main import ( "encoding/json" "flag" "net/http" "strconv" "time" "github.com/boltdb/bolt" gfeeds "github.com/gorilla/feeds" "github.com/gorilla/mux" "github.com/ngaut/log" ) var ( addr = flag.String("addr", ":10086", "http server listen port") dbFile = flag.String("dbfile", ".a...
/** * @author ariscdc * Aris Dela Cruz * https://github.com/ariscdc * * The number of subsets for a given set is 2^k, where k is the number of elements in the set. * Example: * {} -> 2^1 -> 1 -> {} * {1} -> 2^2 -> 2 -> {}, {1} * {1,2} -> 2^3 -> 4 -> {}, {1}, {2}, {1,2} * {1,2,3} -> 2^4 -> 8 -> {}, ...
class HIN: """ HIN: Heterogeneous Information Network Object """ def __init__(self,filename=None,table=None,name=None,inverse_relations=True, verbose=False): # If there is no table, create from file if table is None: if filename is None: ra...
<gh_stars>1-10 #ifndef EXPONENTIALSCALESLIDER_H #define EXPONENTIALSCALESLIDER_H #include <QWidget> namespace Ui { class ExponentialSlider; } class ExponentialSlider : public QWidget { Q_OBJECT public: explicit ExponentialSlider(QWidget *parent = nullptr); ~ExponentialSlider(); fl...
<filename>src/ios_tools/chrome/browser/ui/bookmarks/bookmark_promo_cell.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_PROMO_CELL_H_ #define IOS_CHROM...
/** * This function will initial FM3 Easy Kit board. */ void rt_hw_board_init() { SysTick_Config(SystemFrequency/RT_TICK_PER_SECOND); }
// Copyright (c) 2010, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditi...
A girl celebrates equality, triumphantly jumping with a rainbow flag during a gay pride parade. Marriage equality came to Wisconsin Friday when a federal judge overturned the state's ban on same-sex marriage as unconstitutional. UPI/Mohammad Kheirkhah | License Photo MADISON, Wis., June 6 (UPI) -- United States Distri...
Real-time measurement of glomerular filtration rate Purpose of review Measurement of glomerular filtration rate is an essential tool for determining the health or dysfunction of the kidney. The glomerular filtration rate is a dynamic function that can change almost instantaneously in response to stressors. Despite its...
//findVolumeByName is trying to discover a volume by name. func (d *Driver) findVolumeByRequest(r volume.Request) (string, error) { volumeName := r.Options["volume_name"] if len(volumeName) > 0 { if r.Name != volumeName { return "", fmt.Errorf("Volume name %s and volume_name parameter %s have to be the same", r....
<filename>PythonChallenge/Ex19/19_01.py #!/usr/bin/env python3 # coding:utf-8 from base64 import b64decode f = open("please.txt", "rb") audio = open("indian.wav", "wb") for line in f.readlines(): audio.write(b64decode(line.strip())) f.close() audio.close()
// initSchema initializes the schema for the Postgresql database. func initSchema(db *sqlx.DB) error { file, err := ioutil.ReadFile(functionsFilePath) if err != nil { log.WithError(err).Error("Failed to read in sql file defining postresql functions.") return err } _, err = db.Exec(string(file)) if err != nil {...
#include<iostream> using namespace std; int mat[5][5]; int main() { int i,j,x,sum,s; bool ok; for(i=1;i<=3;i++) for(j=1;j<=3;j++) cin>>mat[i][j]; for(x=100000;x>=0;x--) { ok=true; mat[1][1]=x; sum=x+mat[1][2]+mat[1][3]; mat[2][2]=sum-mat[2][1]-mat[2][3]; mat[3][3]=sum-mat[3][1]-mat...
// // Attempts to resolve a command from a given argument string // Returns NULL if there is no match // Command* Command::ResolveCommand(const char* str) { for(Command* cmd = Command::g_cmds; cmd; cmd = cmd->NextElem()) { if(strcmp(cmd->Name(), str) == 0) { return cmd; } } return NULL; }
<reponame>HSSNPdS/xilogoritmo import React from 'react'; import { Text, View, StyleSheet, Image} from 'react-native'; import { RectButton } from 'react-native-gesture-handler'; import { useNavigation } from '@react-navigation/native'; const logoImg = require('../../assets/Logo.png'); const iebImg = require('../../asse...
Revitalising technical and vocational education and training in Africa: Issues outstanding One of the stark realities of Africa today is the crisis of youth unemployment. Every year,about 10–12 million poorly skilled young people exiting the various levels of the educationsystem enter the labour market (AfDB & OECD, 2...
// CreateSpaceIfNotExists creates a space in CloudFoundry using the V2 API // It uses an exponential backoff strategy, returning early if it successfully creates // a space or the space already exists func CreateSpaceIfNotExists(logger lager.Logger, cfClient *cfclient.Client, spaceName string, orgGUID string) (*cfclien...