text
stringlengths
3
1.05M
import { AppRegistry } from 'react-native'; import App from './App'; AppRegistry.registerComponent('RNInternationalizedDemo', () => App);
from django.conf.urls import url from ..views.admin import RecruitAdminAPI urlpatterns = [ url(r"^recruit/?$", RecruitAdminAPI.as_view(), name="recruit_admin_api"), ]
class Solution: def findLongestChain(self, pairs): """ :type pairs: List[List[int]] :rtype: int """ pairs.sort(key = operator.itemgetter(1)) #print(pairs) count=1 pre=pairs[0][1] for i in range(1,len(pairs)): cur=pairs[i][0] ...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'sourcearea', 'km', { toolbar: 'អក្សរ​កូដ' } );
/*global $ */ $(document).ready(function () { "use strict"; $('.menu > ul > li:has( > ul)').addClass('menu-dropdown-icon'); //Checks if li has sub (ul) and adds class for toggle icon - just an UI $('.menu > ul > li > ul:not(:has(ul))').addClass('normal-sub'); //Checks if drodown menu's li elemen...
# You are given N sticks, where the length of each stick is a positive integer. A cut operation is performed on the sticks such that all of them are reduced by the length of the smallest stick. # Suppose we have six sticks of the following lengths: # 5 4 4 2 2 8 # Then, in one cut operation we make a cut of length 2 ...
var rolldice = function() { return Math.floor(Math.random() * 6) + 1; } function player(throwdice, actingscore, totalscore) { this.diceroll =throwdice this.actingscore = actingscore; this.totalscore = totalscore; } var firstplayer = new player(0, 0, 0); var secondplayer = new player(0, 0, 0); player.prototype.firs...
const fs = require("fs"); const path = require("path"); const shelljs = require("shelljs"); const mkdir = require("./utils/mkdir.js"); function copySync(from, to) { mkdir(path.dirname(to)) fs.copyFileSync(from, to); } function removeSync(path) { shelljs.rm("-rf", path); } module.exports = { copySync...
from django import forms from django.forms import inlineformset_factory from .models import Event, Result, Feadback, Pay, Task, Price, Client # from main.models import from django.contrib.admin import widgets from django.contrib.auth.forms import AuthenticationForm class MyAuthenticationForm(AuthenticationForm): ...
$(document).ready(function(){ $('textarea').val(''); $('textarea').focus(); $('#click_me').click(function(){ sendValue($('#source').val()); }); if ($(window).width() <= 1060 || $(window).height() <= 570) { $('body').addClass('e_sm'); $('#ob').addClass('obes'); $('#obx1').addC...
export { default } from "./SuperEditModal";
import Vue from 'vue' import App from './App.vue' // // 统一加载 // import materiel from 'materiel-demo' // Vue.use(materiel) // 只加载component2 // import { component2 } from 'materiel-demo' // Vue.use(component2) Vue.config.productionTip = false new Vue({ render: h => h(App) }).$mount('#app')
var classarmnn_1_1_fully_connected_layer = [ [ "FullyConnectedLayer", "classarmnn_1_1_fully_connected_layer.xhtml#a88ae76d1f14ba0eaf81701eb38e3682a", null ], [ "~FullyConnectedLayer", "classarmnn_1_1_fully_connected_layer.xhtml#a9155d2ec7631b99587504b36ede2412a", null ], [ "Accept", "classarmnn_1_1_fully_co...
/******************************************************************* * * * Using SDL With OpenGL * * * * Tutorial by Kyle Foley...
# Copyright 2017 Intel Corporation # # 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 wri...
# ============================================================================== # Copyright 2018 Intel Corporation # # 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.apa...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Print/setting/nls/strings":{serviceURL:"adresa URL slu\u017eby",defaultTitle:"V\u00fd...
try: from setuptools import setup except ImportError: from distutils.core import setup import os.path import re VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""") BASE_PATH = os.path.dirname(__file__) with open(os.path.join(BASE_PATH, "fb_rate_limiter", "__init__.py")) as f: try: ver...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <inttypes.h> static const unsigned long SQUARE_ROOT_256[8] = { 0x6a09e667UL, 0xbb67ae85UL, 0x3c6ef372UL, 0xa54ff53aUL, 0x510e527fUL, 0x9b05688cUL, 0x1f83d9abUL, 0x5be0cd19UL }; static const unsigned long CUBE_ROOT_256[64] = { 0x428a2f98UL, 0x71...
/* * Copyright 2019 Maeve Automation * * 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, modify, merge, publis...
''' This module holds the constants used for specifying the states of the debugger. ''' from __future__ import nested_scopes STATE_RUN = 1 STATE_SUSPEND = 2 PYTHON_SUSPEND = 1 DJANGO_SUSPEND = 2 JINJA2_SUSPEND = 3 JUPYTER_SUSPEND = 4 class DebugInfoHolder: # we have to put it here because it can be set through ...
import logging import coloredlogs import sys from time import ctime def setup(): """Setups logging.""" FORMAT = u'%(levelname)-8s [%(asctime)s] %(message)s ### %(filename)s[LINE:%(lineno)d]' logger = logging.getLogger() logger.addHandler( logging.StreamHandler()) logger.addHandler( ...
#include <stdio.h> #include <ctype.h> #include <string.h> #define MAXWORD 100 #define NKEYS (sizeof keytab / sizeof(struct key)) struct key { char *word; int count; } keytab[] = { { "auto", 0 }, { "break", 0 }, { "case", 0 }, { "char", 0 }, { "const", 0 }, { "continue", 0 }, { "default", 0 }, { "do", 0 }, {...
/* * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. * All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #include <asn_internal.h> #include <ANY.h> #include <errno.h> #undef RETURN #define RETURN(_code) \ do { ...
'use strict'; const assert = require( 'assert' ); const LoginPage = require( 'wdio-mediawiki/LoginPage' ); const defaultFunctions = require( '../../../helpers/default-functions' ); describe( 'Nuke', function () { it( 'Should be able to see Special:Nuke page with a list of pages', function () { defaultFunctions.s...
# -*- coding: utf-8 -*- """Test configs.""" from app.app_config import AppConfig def test_app_config(): assert hasattr(AppConfig, 'SQLALCHEMY_DATABASE_URI')
import random import string from abc import ABCMeta, abstractmethod from datetime import datetime, timedelta from typing import Optional import jwt import pytz from django.conf import settings from apps.common.constants import BLOCKCHAIN_ETHEREUM, BLOCKCHAIN_EOS, BLOCKCHAINS from apps.users.models import RandomDataFo...
import sys import pandas as pd import numpy as np from sqlalchemy import create_engine from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.multioutput import MultiOutputClassifier from sklearn.ensemble...
#!/usr/bin/env python """ Test topology for CS488, Spring 2021, Project 1 Originally by Aaron Gember-Jacobson Modifieid by Jun Yuan """ from mininet.cli import CLI from mininet.net import Mininet from mininet.link import TCLink from mininet.topo import Topo from mininet.log import setLogLevel class AssignmentNetwor...
import React, { Component } from 'react'; export default class Rune extends Component { render(){ const version = this.props.version; const data = this.props.data; return ( <span className="lnd-rune"> <img src={`http://ddragon.leagueoflegends.com/cdn/img/${data.i...
import React from 'react' import {Image, Card, Header, Icon} from 'semantic-ui-react' export default class Brick extends React.Component { render() { return ( <Card fluid style={{ backgroundImage: "linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(\'https://placeimg.com/400/400/morning)", boxShadow...
import gzip import importlib import json import logging import sys import time import unittest import zlib import six if six.PY3: from unittest import mock else: import mock from engineio import exceptions from engineio import packet from engineio import payload from engineio import server original_import_m...
let map; const initMap = () => { map = new google.maps.Map(document.getElementById("map"), { center: { lat: -34.397, lng: 150.644 }, zoom: 8, }); };
# Receiver class Television(object): """docstring for Television""" def encender(): print('Encendida!') def apagar(): print('Apagada!') def cambiarCanal(numCanal): print('Cambiamos al canal'.format(numCanal)) def subirVolumen(): print('Subimos volumen!') def bajarVolumen(): print('Bajamos volumen!')...
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.3.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import warnings import bq_utils import utils.bq from n...
import re WHITE_RGBA = (255, 255, 255) BLACK_RGBA = (0, 0, 0) def _get_size(size): for m in _SIZE_RE: match = m[0].match(size) if match: return m[1](match.groupdict()) raise ValueError('Invalid size') def _get_RGBA(opt, index): if len(opt) > index + 6: return tuple(i...
let carts = []; const population = 100; let score = 0; let fit = null; let maxScore = 0; let generation = 1; let mutation_rate = 0.1; function child(brain, rate) { let newCarts = []; for (let i = 0; i < population; i++) { let brn = brain.mutate(rate); newCarts.push(new Cart(brn)); ...
import React from 'react'; import { NavLink } from 'react-router-dom' import { connect } from 'react-redux'; import { makeStyles } from '@material-ui/core/styles'; import { Card, CardActionArea, CardActions, CardContent, CardMedia, Button, Typography, Grid }from '@material-ui/core'; import { decrementRemoteData, loadin...
"""tango_with_django_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='...
"""Redis Store This back-end is heavily based on the FileStore from the python-openid package and sections are copied whole-sale from it. python-openid FileStore code is Copyright JanRain, under the Apache Software License. """ from past.builtins import cmp import logging import string import time from openid impor...
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
'use strict'; const Router = require('express').Router; const jsonParser = require('body-parser').json(); const debug = require('debug')('job-seeker:event-router'); const Company = require('../model/company.js'); const Event = require('../model/event.js'); const bearerAuth = require('../lib/bearer-auth-middleware.js'...
# -*- coding: utf-8 -*- """ @File : train.py @Time : 2019/12/4 下午7:47 @Author : yizuotian @Description : """ import argparse import os import sys import numpy as np import torch from tensorboardX import SummaryWriter from torch import optim from torch.nn import CTCLoss from torch.utils.data.dataloader i...
//const url = require("url"); const JSONRPC = {}; JSONRPC.Exception = require("./Exception"); JSONRPC.Plugins = {}; JSONRPC.Plugins.Client = require("./Plugins/Client"); JSONRPC.Utils = require("./Utils"); JSONRPC.OutgoingRequest = require("./OutgoingRequest"); const EventEmitter = require("events"); co...
import pytest from therandy.rules.cd_correction import match from therandy.types import Command @pytest.mark.parametrize('command', [ Command('cd foo', 'cd: foo: No such file or directory'), Command('cd foo/bar/baz', 'cd: foo: No such file or directory'), Command('cd foo/bar/baz', 'cd: can\'t ...
import {config} from "../../rate_chart"; $(document).ready(function (){ const rateReport = window.individualReport['area']['DM']['rate']; const ctx = document.getElementById("area_DM_rate").getContext('2d'); new Chart(ctx, config(rateReport)); });
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from flask import Blueprint, jsonify, request # type: ignore from flask import current_app as app # type: ignore from ...
var decoded; var gatt; function decode(d) { var value = d.getUint16(4,1); if (value&32768) value = -(value&32767); var flags = d.getUint8(0); var flags2 = d.getUint8(1); // mv dc 27,240 "11xxx" // mv ac 95,240 "1011xxx" // v dc 36,240 "100xxx" 36(2dp) 35(20dp) // v ac 100,240 "1100xxx"...
y = 5 def impure_foo(s): x = 1 y = x print(y) if s: print('foo') else: print('bar')
##################################################################### # # # /analysis_subprocess.py # # # # Copyright 2013, Monash University ...
# coding: utf-8 """ Sentiment APIs Japanese sentiment analyzer.<BR />[Endpoint] https://api.apitore.com/api/11 # noqa: E501 OpenAPI spec version: 1.0.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from setuptools import setup, find_packages # noqa: H301 NAME = "swagg...
#include <stdio.h> /*NBNCOMMENT*/ FILE abc; /*NBNCOMMENT*/ struct abc { int def; /*NBNCOMMENT*/ }; /*NBNCOMMENT*/ /* this file demonstrates why you need type recognition COMMENT in the lexical analyzer COMMENT COMMENT */
# Copyright 2017 The TensorFlow 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 the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
class Passthrough(Exception): '''Signal that we cannot handle the request, but expect the real server can.''' class EntityMissing(KeyError, Passthrough): '''Signal that a required entity does not exist in our schema.''' class FieldMissing(KeyError, Passthrough): '''Signal that a required field does not...
"""TF-IDF Perform Term Frequency - Inverse Document Frequency over a set of documents. See README for instructions. """ import math import operator import os import pickle from collections import Counter class TfIdf(): def __init__(self, compute_on_add=True): """Constructor Arguments: ...
"""Belinsky configuration for gunicorn.""" # pylint: disable=invalid-name,unused-argument import os import multiprocessing from loguru import logger from prometheus_client import multiprocess # Gunicorn config variables # Host configuration bind = "0.0.0.0:5000" # Resources configuration preload_app = True worker_cl...
function parseDir(e,t=null,s=null){let r=isDefined(t)?t.currentDirectory:"/";return!isDefined(s)&&isDefined(e)&&(s=e["@s"]),isDefined(s)&&(s=s.endsWith("/")?s.slice(0,-1):s,r=isTextEmpty(s)?"/":".."==s?r.split("/").slice(0,-1).join("/"):s.startsWith("/")?s:r+(r.endsWith("/")?"":"/")+s),!r.startsWith("/")&&(r="/"+r),r}s...
#!/usr/bin/python """ Determine whether the target is being run under QEMU. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import psutil import gdb import pwngef.events import pwngef.remote @pwngef.memoize.reset_on_stop def is_qemu(): ...
import os import torch import torch.nn.functional as F from models.criterions.General import General from utils.constants import RESULTS_DIR, OUTPUT_DIR, SNIP_BATCH_ITERATIONS class SNIP(General): """ Our interpretation/implementation of SNIP from the paper: SNIP: Single-shot Network Pruning based on C...
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
/* eslint-disable react/prop-types */ import React, { Component } from 'react'; import debounce from '../../debounce'; export default function withDebounce(WrappedComponent) { return class extends Component { constructor(props) { super(props); this.fieldRef = React.createRef(); ...
from __future__ import annotations import logging import sys from argparse import ArgumentParser, RawTextHelpFormatter, Namespace from dataclasses import dataclass, field, replace from pathlib import Path from typing import Optional, Dict, Any import toml from fran import __version__ from fran.common import parse_key...
# -*- coding: utf-8 -*- import math import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from torch import Tensor from typing import Tuple, Optional, Any from arizona_asr.models.modules import Linear class AdditiveAttention(nn.Module): """ Applies a additive attention (bahd...
#!/usr/bin/env python3.4 '''Author: Jonathan Rotter This module is required for motor2020 and surface2020 and thus needs to be on both motor pi and surface pi. It handles the websocket stuff for both those programs. How to use: start( 'motor' or 'surface', func ) if motor, func should take one string arg ...
export default { carLength(state) { return state.cartList.length; }, cartList(state) { console.log(state.cartList); return state.cartList } }
#!/usr/bin/python3 import re import serial import time def _fp_3string(num, scale): "rend a number as a fixed-point string of 3 digits" return f'{int(num*scale):0>#3}' class HCS: def __init__(self, port=None): self.sp = None self._model = None self._version = None if po...
# -*- coding: utf-8 -*- """ modules for universal fetcher that gives historical daily data and realtime data for almost everything in the market """ import os import sys import time import datetime as dt import numpy as np import pandas as pd import logging import inspect from bs4 import BeautifulSoup from functools i...
import unittest from collection_manager.services.history_manager import SolrIngestionHistory SOLR_URL = "http://localhost:8984/solr" DATASET_ID = "zobi_la_mouche" # TODO: mock solr and fix these tests class TestSolrIngestionHistory(unittest.TestCase): @unittest.skip("does not work without a solr server for histo...
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:43:41 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
# Princeton University licenses this file to You 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 writin...
from . import __path__ as datapath datapath = datapath[0] def lookup(x): """ :param x: :return: """ f = open(datapath + '/periodictable.txt', 'r') # open periodic table file data = f.readlines() f.close() # dictionaries d = {} ivd1 = {} ivd2 = {} # create dictionari...
from breathe.directive.base import create_warning from breathe.directive.file import DoxygenFileDirective, AutoDoxygenFileDirective from breathe.directive.index import DoxygenIndexDirective, AutoDoxygenIndexDirective from breathe.exception import BreatheError from breathe.finder.factory import FinderFactory from breath...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * Next, we will create a fresh Vue a...
from __future__ import unicode_literals import importlib from django.utils.crypto import get_random_string from admin_page_lock.settings import ( HANDLER_CLASS, MODEL ) def get_page_lock_class(class_path): module_name, class_name = class_path.rsplit('.', 1) try: module = importlib.import_mod...
from summarization.text_media_matching.text_media_matcher import \ TextMediaMatcher from tests.summarizer.text_media_input_fetcher import fetch_text_media_input # fetch test inputs test_input_dict = fetch_text_media_input() sentence_1 = test_input_dict["sentence_1"] media_related_to_sentence_1 = test_input_dict["m...
//############################################################################# // // FILE: i2c_ex2_eeprom.c // // TITLE: I2C EEPROM // //! \addtogroup driver_example_list //! <h1>I2C EEPROM</h1> //! //! This program will write 1-14 words to EEPROM and read them back. The data //! written and the EEPROM address writ...
module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { compile: { src: './assets/less/theme.less', dest: './assets/css/theme.css' } }, watch: { ...
import antdData from 'antd/lib/locale-provider/en_US' import localeData from 'react-intl/locale-data/en' const messages = { 'topBar.issuesHistory': 'Issues History', 'topBar.projectManagement': 'Project Management', 'topBar.typeToSearch': 'Type to search...', 'topBar.buyNow': 'Buy Now $24', 'topBar.bitcoin':...
var cur_url = window.location.href.split('/').pop(); cur_url = cur_url.split('?'); function ajaxActionServers(action, id) { var bad_ans = 'Bad config, check please'; $.ajax( { url: "options.py", data: { action_hap: action, serv: id, token: $('#token').val() }, success: function( data ...
""" create drug/product mixtures Example: https://www.wikidata.org/wiki/Q4663143 """ import time from collections import defaultdict from wikidataintegrator import wdi_core, wdi_login, wdi_helpers from scheduled_bots.local import WDPASS, WDUSER def make_ref(rxnorm): refs = [[ wdi_core.WDItemID(value='Q...
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
from iridauploader.gui.main_dialog import MainDialog
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket Ltd # # 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...
from __future__ import absolute_import class EqualityMixin(object): """Mixin for simple object equality testing -- ensures equality matches if all attributes match """ def __eq__(self, other): if other: return vars(self) == vars(other) return False class Snowflake(object)...
// This file is generated from `text/*` text files using `generated_textjs.js` TEXT_EN = `# Introducing MarkdownHan [MarkdownHan](https://github.com/zhenalexfan/MarkdownHan) (stylized as **M↓漢**) is another dialect of Markdown, attempting to enable features commonly used in Chinese and Japanese writing. Specifically...
import os, sys, time, inspect, datetime, json src_dir = os.path.dirname(inspect.getfile(inspect.currentframe())) arch_dir = '../../motion-leap/lib/x64' if sys.maxsize > 2 ** 32 else '../../motion-leap/lib/x86' leap_dir = '../../motion-leap/lib' module_dir = '../lib' sys.path.insert(0, os.path.abspath(os.path.join(src_...
/* * Class powers the OOP facilities of the library. Thanks to John Resig and Dean Edwards for inspiration! */ L.Class = function() {}; L.Class.extend = function(/*Object*/ props) /*-> Class*/ { // extended class with the new prototype var NewClass = function() { if (!L.Class._prototyping && this.i...
import React, { useState, useEffect } from 'react' import PutData from './query/fetch/PutData' const useTextValue = (check, page, comp) => { const [textValue, setTextValue] = useState([]) const [titleValue, setTitleValue] = useState([]) const handleTitleChange = (e) => { switch(e.target.name) { ...
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=redefined-builtin """Compiler Test.""" import unittest from unittest.mock import patch from qiskit impor...
#ifndef BAZADANYCH_H #define BAZADANYCH_H #include <QtSql> #include <QObject> #include <QWidget> class BazaDanych { private: QString dbType,pathToDbFile,status; QSqlDatabase mydb; public: BazaDanych(QString,QString); ~BazaDanych(); void startDb(); QString getStatus(); QSqlQueryModel * getDa...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import argparse import json import sys import configparser import os from io import open import requests from inscrawler import InsCrawler from inscrawler.settings import override_settings from inscrawler.settings import prepare_override_settings def us...
#!/usr/bin/env python2 # Copyright (c) 2014-2019 The Bitcoin Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test re-org scenarios with a mempool that contains transactions # that spend (directly or indirectly)...
import React from "react"; import styled from "styled-components"; import { Accordion as MuiAccordion, AccordionSummary as MuiAccordionSummary, AccordionDetails as MuiAccordionDetails, } from "@mui/material"; const Accordion = ({ className, expanded, onChange, square, expandIcon, title, content, })...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be ...
// Copyright (c) 2011-2016 The Deft developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_BANTABLEMODEL_H #define BITCOIN_QT_BANTABLEMODEL_H #include "net.h" #include <QAbstractTableModel> #include <QSt...
#!/usr/bin/env python # Copyright 2013 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. """Downloads and unpacks a toolchain for building on Windows. The contents are matched by sha1 which will be updated when the toolchain...
from phonopy.api_phonopy import Phonopy from phonopy.structure.atoms import PhonopyAtoms from phonopy.file_IO import parse_BORN import numpy as np # Subclassing PhonopyAtoms to include connectivity & atom types (for tinker) class PhonopyAtomsTinker(PhonopyAtoms): def __init__(self, **kwargs): # Extract co...
import React from "react" import { graphql, Link, useStaticQuery } from "gatsby" import { GatsbyImage } from "gatsby-plugin-image" const CaseStudyGrid = () => { const featuredCaseStudies = useStaticQuery(graphql` query FeaturedPosts { data: allFile( filter: {sourceInstanceName: {eq: "featured-posts"}, ...
""" A little package that I made to make my work with data a bit easier. It is mainly made up of little functions that are useful for exploring data, but are not part of any library (that I know of) Enjoy! :) """ """ simple_reg_model - Calculates r2 score, Root mean square error and cross-validates the dat...
// Copyright (c) 2015-2020 The BitcoinCore developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef FUJICOIN_ZMQ_ZMQPUBLISHNOTIFIER_H #define FUJICOIN_ZMQ_ZMQPUBLISHNOTIFIER_H #include <zmq/zmqabstractnotifier.h> cla...