text
stringlengths
3
1.05M
import os import random import time import pickle import torch as th import torch.optim as opt from torch.nn.functional import mse_loss, l1_loss os.environ['DGLBACKEND'] = 'pytorch' from dgl import backend as F from dgl.dataloading import GraphDataLoader from graph import GraphConstructor from datasets import get_dat...
import React from 'react'; import { Col } from 'antd'; import getEnum from '@/utils/enum'; import AppCore from '@/utils/core'; import {AppConst} from '@/utils/const'; import styles from './Schedule.less'; function renderImg(data) { let url = data.list_pic; if (url && url.indexOf('http') !== 0 && AppCore.HOST) {...
(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{1125:function(e,t,n){"use strict";n.r(t),n.d(t,"icon",(function(){return s}));n(9),n(8),n(2);var i=n(0);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,...
#!pip install deepface from nearface.basemodels import VGGFace, OpenFace, Facenet, FbDeepFace from nearface.commons import functions import matplotlib.pyplot as plt import numpy as np #---------------------------------------------- #build face recognition model model = VGGFace.loadModel() #model = Facenet...
# # Copyright (c) 2020 jintian. # # This file is part of CenterNet_Pro_Max # (see jinfagang.github.io). # # 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. ...
import os def setup_dev_mode(): """ Create the scancode development mode tag file. """ from scancode import root_dir with open(os.path.join(root_dir, 'SCANCODE_DEV_MODE'), 'wb') as sdm: sdm.write('This is a tag file to notify that ScanCode is used in development mode.') setup_dev_mode()
function getPreco(imposto = 0, moeda = 'R$'){ return `${moeda} ${this.preco * (1 - this.desc) * (1 + imposto)}` } const produto = { nome : 'Notebook', preco: 4589, desc: 0.15, getPreco } console.log(produto.getPreco()) const carro = {preco: 49990, desc: 0.20} console.log(getPreco.call(carro)) co...
function loadTexture(path) { return new Promise((resolve) => { const img = new Image() img.src = path img.onload = () => { resolve(img) } }) } function createEnemies(ctx, canvas, enemyImg) { // TODO draw enemies } window.onload = async () => { canvas = document.getElementById('canvas') ...
# Zurich Instrument HDAWG stub # # For the real implementation, please look into the package zhinst-qcodes # at https://github.com/zhinst/zhinst-qcodes try: from zhinst.qcodes import HDAWG except ImportError: raise ImportError( """ Could not find Zurich Instruments QCodes drivers. Plea...
const test = require('ava'); const {createDefaultContainer} = require('./helpers/createDefaultContainer'); const {executeContainerCommand} = require('../src/docker'); test('response includes stdout, stderr, and inspectOutput with ExitCode 0', async (t) => { const container = await createDefaultContainer(); try { ...
# SPDX-License-Identifier: Apache-2.0 import re import warnings import pprint import numpy as np from onnx import onnx_pb as onnx_proto from onnxconverter_common.data_types import ( # noqa DataType, TensorType, FloatType, Int64Type, StringType, DictionaryType, FloatTensorType, # noqa Int64TensorType...
# -*- coding: utf-8 -*- import warnings from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext as _ from cms.app_base import CMSApp from cms.exceptions import AppAlreadyRegistered from cms.utils.conf import get_cms_setting from cms.utils.django_load import load, iterload...
'use strict'; const Rule = require('./rule'); const GoogleSheetRepository = require('../storage/googleSheetRepository'); const lodash = require('lodash'); // Domain-independent rule that is defined by one or more conditions class GenericRule extends Rule { constructor(source, id, conditions, isCorrect, concept...
var autoprefixer = require('gulp-autoprefixer'), connect = require('gulp-connect'), debug = require('gulp-debug'), del = require('del'), ghPages = require('gulp-gh-pages'), gulp = require('gulp'), jsonImporter = require('node-sass-json-importer'), runSequence = require('run-sequence'), s...
import json from datetime import datetime, date from django.contrib.auth.models import User from tests.test_case import AppTestCase from wagtailstreamforms.serializers import FormSubmissionSerializer class TestSerializer(AppTestCase): def test_serialized(self): data_to_serialize = { "model"...
export { default as Item } from "./Item";
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import React, {Component} from "react"; import Navbar from "./NavBar"; import HistoryAPI from "../utils/HistoryAPI" import QueryActions from "../actions/QueryActions"; import SettingsStore from "../stores/SettingsStore"; class History extends Component { constructor(props) { super(props); this.s...
'use strict' const { func } = require('./symbols') const numberPredicates = { positive: (value) => (value > 0), negative: (value) => (value < 0), nonNegative: (value) => (value >= 0), integer: (value) => (value === (value | 0)), [func]: { is: (fn) => fn, eq: (v) => (value) => (value === v), gt:...
// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved. /* * TableRangeView.h * * Created on: Jan 14, 2013 * Author: jwust */ #pragma once #include "storage/AbstractTable.h" #include "helper/SharedFactory.h" namespace hyrise { namespace storage { /* * provides ...
from __future__ import print_function from .vimgdb import Vimgdb import sys try: vimgdb = Vimgdb() if "--version" in sys.argv: print("Version {0}".format(vimgdb.Version())) else: if not vimgdb.Running(): vimgdb.StartVim(sys.argv[1:]) else: vimgdb.StartGdb(sys...
def SUM (*args): value = 0.0 for a in args: value += float (a) return value def SUB (arg1, arg2): return (arg1 - arg2) def MEAN (*args): return SUM (*args) / float (len (args)) def NONZERO (arg): if arg == 0: return None else: return arg '''def makeCount (src): ...
import PropTypes from "prop-types"; import React, { useState } from "react"; import { Link } from "react-router-dom"; import { multilanguage } from "redux-multilanguage"; import { connect } from "react-redux"; import { setCategoryID, setPageNumber } from "../../redux/actions/productActions"; import { setContent } from...
void MatMatMult(double* A, double* B, double* C, int m, int n, int p) { register int i,j,k; /*@ begin PerfTuning ( def performance_params { param TC[] = range(32,65,32); param BC[] = range(14,28,14); param UIF[] = range(1,3); param PL[] = [16,48]; param C...
#pragma once #ifdef _WIN32 #include <Windows.h> #else #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <stdio.h> #include <string.h> typedef unsigned char BYTE; typedef unsigned int UINT; #endif #include <cstdio> class FileSystem { public: // create the save directory if it...
import React from "react" //import { Link } from "gatsby" import { useStaticQuery, graphql } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" import { TiCalendarOutline } from "react-icons/ti" const EducacionPage = () => { const data = useStaticQuery(graphql` query Educ...
from pentest.command import JarvisCmd import sys __name__ = "http" def main(): args_config = { "passthrough_args": ["--help"], } cmd = JarvisCmd(sys.argv) cmd.set_recordable(True) cmd.set_args_config(args_config) cmd.run()
//https://github.com/bryanwoods/autolink-js (function(){var a,b=[].slice;a=function(){var j,i,d,f,e,c,g,h;c=1<=arguments.length?b.call(arguments,0):[];g=/(^|\s)(\b(https?):\/\/[\-A-Z0-9+&@#\/%?=~_|!:,.;]*[\-A-Z0-9+&@#\/%=~_|]\b)/ig;if(c.length>0){e=c[0];i=e.callback;if((i!=null)&&typeof i==="function"){j=i;delete e.ca...
/* Debugging with contracts; simulating cc0 -d * Enable with gcc -DDEBUG ... * * 15-122 Principles of Imperative Computation * Frank Pfenning */ /* Unlike typical header files, "contracts.h" may be * included multiple times, with and without DEBUG defined. */ #include <assert.h> #ifdef DEBUG #define ASSERT(C...
var searchData= [ ['bufferdata_0',['bufferdata',['../class_mesh_resource.html#a795643e2bd50a90bee351ea0575089b6',1,'MeshResource']]] ];
import torch import torch.nn as nn import torch.nn.functional as F class ConvPredictor(nn.Module): def __init__(self, input_dim, output_dim, groups): super(ConvPredictor, self).__init__() self.feature_maps = input_dim self.groups = groups self.output_dim = output_dim self.co...
from lb_types import application_type as app_type class FactoryLoadBalancerType(): def __init__(self, load_balancer_type): self.load_balancer_type = load_balancer_type def get(self): if self.load_balancer_type == 'application': return app_type.ApplicationType() # Re...
import { connect } from 'react-redux' import { requestSearchItems } from '../actions' import SearchBox from '../components/SearchBox.js' const mapStateToProps = (state, ownProps) => { return { } } const mapDispatchToProps = (dispatch, ownProps) => { return { onKeyDown: (text, event) => { if (event.key...
import glob import os import json import re import pytest from recognizers_text.culture import Culture def split_all(path): all_parts = [] while True: parts = os.path.split(path) if parts[0] == path: # sentinel for absolute paths all_parts.insert(0, parts[0]) break ...
#ifndef KISS_FFT_H #define KISS_FFT_H #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #ifdef __cplusplus extern "C" { #endif /* ATTENTION! If you would like a : -- a utility that will handle the caching of fft objects -- real-only (no imaginary time component ) FFT ...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017 The Cryptomiles Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """BlockStore and TxStore helper classes.""" from .m...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyMonotonic(PythonPackage): """An implementation of time.monotonic() for Python 2 & < 3.3"...
import os, sys from interop import interop,interop2,sign_separate_interop from multiprocessing import Pool from missing_cds import missing_cds from rev_interop import fasta_op # program to process operon_prediction file from molquest to give initial transcription units def interoper(org,ncbid): interop(org) interop2...
""" WSGI config for GoldMiner project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "GoldMiner.settings.production") from...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include "include/algorithm.h" #include "include/input.h" #include "include/process.h" int main() { calcula(receberInput()); return 0; }
from classes_1.ex_conta.conta import Conta conta = Conta('João', 123456, 0, 1000) conta.deposita(999) conta.saca(99) conta.extrato() print() conta2 = Conta('Silvio', 1234, 0, 1000) conta2.deposita(100) print() conta2.transfere_para(conta2, 100) print() conta.extrato() conta2.extrato()
from pyecharts import options as opts from pyecharts.charts import Bar from pyecharts.faker import Faker c = ( Bar() .add_xaxis(Faker.choose()) .add_yaxis("商家A", Faker.values(), gap="0%") .add_yaxis("商家B", Faker.values(), gap="0%") .set_global_opts(title_opts=opts.TitleOpts(title="Bar-不同系列柱间距离")) ...
const typeDef = require("./typeDef"); const { resolvers } = require("./resolvers"); module.exports = { typeDef, resolvers };
#ifndef SEQLIB_BAM_RECORD_H #define SEQLIB_BAM_RECORD_H #include <stdint.h> //#include <cstdint> //+11 #include <vector> #include <iostream> #include <sstream> #include <cassert> #include <algorithm> extern "C" { #include <htslib/hts.h> #include <htslib/sam.h> #include <htslib/bgzf.h> #include <htslib/kstring.h> #inc...
// Node.js built-in: const path = require('path'); // External imports: const { info, warn, error } = require('console'); // default execa object const execaDefault = require('execa'); // default fs object const fsExtra = require('fs-extra'); const jsonfile = require('jsonfile'); // default reactNativeInit funct...
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
import {Blockchains} from './Blockchains'; export default class Network { constructor(_name = '', _protocol = 'https', _host = '', _port = 0, blockchain = Blockchains.GXC, chainId = '') { this.name = _name; this.protocol = _protocol; this.host = _host; this.port = _port; thi...
/***************************************************************************** * * * OpenNI 2.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. * * ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg...
import torch from collections import OrderedDict def inflate_from_2d_model(state_dict_2d, state_dict_3d, skipped_keys=None, inflated_dim=2): if skipped_keys is None: skipped_keys = [] missed_keys = [] new_keys = [] for old_key in state_dict_2d.keys(): if old_key not in state_dict_3d.k...
assignments = [] rows = 'ABCDEFGHI' cols = '123456789' def cross(A, B): return [s+t for s in A for t in B] boxes = cross(rows, cols) row_units = [cross(r, cols) for r in rows] column_units = [cross(rows, c) for c in cols] square_units = [cross(rs, cs) for rs in ('ABC','DEF','GHI') for cs in ('123','456','789')] ...
// @ts-check import { defineConfig } from 'vite'; import solid from 'vite-plugin-solid'; export default defineConfig({ plugins: [solid()], optimizeDeps: { include: [], }, build: { polyfillDynamicImport: false, target: 'esnext', }, });
#include "tasklist.h" #include <parser.h> #include <render.h> #include <html.h> #include "ext_scanners.h" typedef enum { CMARK_TASKLIST_NOCHECKED, CMARK_TASKLIST_CHECKED, } cmark_tasklist_type; // Local constants static const char *TYPE_STRING = "tasklist"; static const char *get_type_string(cmark_syntax_extensi...
from django.apps import AppConfig class IntegrationsConfig(AppConfig): name = 'integrations'
$( document ).ready(function() { // hide .navbar first $("#header").hide(); if ($(window).width() > 768) { // fade in .navbar $(function () { $(window).scroll(function () { // set distance user needs to scroll before we fadeIn navbar if ($(this).scrollTop() > 480) { $('#header').fadeIn(); ...
from .base import Platform __all__ = ['OSMesaPlatform'] class OSMesaPlatform(Platform): """Renders into a software buffer using OSMesa. Requires special versions of OSMesa to be installed, plus PyOpenGL upgrade. """ def __init__(self, viewport_width, viewport_height): super(OSMesaPlatform, ...
/* * Based on arch/arm/include/asm/atomic.h * * Copyright (C) 1996 Russell King. * Copyright (C) 2002 Deep Blue Solutions Ltd. * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published b...
# Adapted with permission from the EdgeDB project. import asyncio import contextvars from asyncio import taskgroups import unittest # To prevent a warning "test altered the execution environment" def tearDownModule(): asyncio.set_event_loop_policy(None) class MyExc(Exception): pass class MyBaseExc(Base...
import os import re import codecs import datetime import numpy as np import ujson as json import xml.etree.ElementTree as ET from tqdm import tqdm def unzip_files(): files = os.listdir(f"{ROOT_DIR}/LDC2015T03/Data/avocado-1.0.2/data/text/") for file in files: os.system(f"unzip {ROOT_DIR}/LDC2015T03/Da...
// $(document).ready(function(){ // $('.post-preview').click(function(){console.log('lbitch')}); // $('.post-preview').on( // { // mouseenter: function() // { // $(this).find('.project-summary').slideUp(); // console.log('hover open'); // }, // mousel...
#!/usr/bin/env python import time from utils.data_loader import MRI_Loader from utils.callbacks import Metrics_Conversion_Risk, LR_Plateau from utils.preprocess import Stratified_KFolds_Generator, Train_Test_Split, One_Hot_Encode from utils.models import MudNet_pre_trained from tensorflow.keras.utils import to_categ...
/* ************************************************************************** */ /* */ /* :::::::: */ /* tk_instruction_line.c :+: :+: ...
# -*- coding: utf-8 -*- from odoo import models, api from odoo.exceptions import UserError class ChangeActiveCustomer(models.Model): _inherit = 'res.partner' @api.multi def update_force_assign(self): # list_id = ['SO1391', 'SO1484', 'SO1622', 'SO1623', 'SO1624', 'SO1625', 'SO1626', 'SO1627', 'SO1...
# Hayden Riewe # CoordinateMapMaker # v 0.1 # hrcyber.tech # www.github.com/hriewe import os import sys from urllib.request import pathname2url import folium import webbrowser import PySimpleGUI as sg # Set default GUI options sg.SetOptions(button_color=('white','#475841'), font=('Helvetica', 20)) #Build the layout ...
/* eslint no-use-before-define:0 */ import { isEqual } from 'underscore'; import { isDOMComponent, findDOMNode, childrenToArray, } from './react-compat'; import { REACT013, REACT014, } from './version'; export function propsOfNode(node) { if (REACT013 && node && node._store) { return (node._store.props...
import React from 'react'; import { REMOVE_FROM_CART, UPDATE_CART_QUANTITY } from "../../utils/actions"; import { idbPromise } from "../../utils/helpers"; // import useDispatch from react-redux import { useDispatch } from 'react-redux'; const CartItem = ({ item }) => { // refactor code to change useContext to useDispa...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0; exports.RED = '#ee0a24'; exports.BLUE = '#1989fa'; exports.WHITE = '#fff'; exports.GREEN = '#07c160'; exports.ORANG...
from configparser import ConfigParser config = ConfigParser() config.read('config.ini') discord = config['discord'] token = discord['token'] status = discord.get('status')
import pytest import requests import requests_mock from syncgateway.client import Client def mock_session(): session = requests.Session() adapter = requests_mock.Adapter() session.mount(url(), adapter) add_session_endpoint(adapter) add_user_endpoint(adapter) add_role_endpoint(adapter) ret...
# -*- coding: utf-8 -*- """ Script to execute example multi task GP with task-specific features (Bonilla 2008). The model invokes the IndependentMMGP class. Inputs: Data training and test sets (dictionary pickle) Data for example: - normalised solar data for 50 sites for 15 minute forecast - N_train = 210000...
#!/usr/bin/env python # BEGIN ALL #!/usr/bin/env python import rospy from std_msgs.msg import Int32 # BEGIN CALLBACK def callback(msg): print msg.data rospy.loginfo(rospy.get_caller_id() + ' I heard ticks (x/1000 = y hours) %s ', msg.data) # END CALLBACK rospy.init_node('topic_subscriber') # BEGIN SUBSCR...
$(function () { $('#register_btn').click(function (e) { e.preventDefault(); // 表单数据格式化 var formData = $('#reg_form').serializeObject(); formData['r'] = Math.random(); if (formData.pass.length < 6) { layer.msg('密码长度不得小于6', {icon: 0}); return false; ...
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
""" Copyrigt Dendi Suhubdy, 2018 All rights reserved """ import torch from torch.nn import functional as F def loss_function(recon_x, x, mu, logvar): BCE = F.binary_cross_entropy(recon_x, x.view(-1, 784), reduction='sum') # see Appendix B from VAE paper: # Kingma and Welling. Auto-Encoding Variational ...
from typing import Union class GenericCharacteristicFunction: """Реализум базовый набор функций для работы с характеристиками любого обЪекта игры. """ # вот тут немного эксперемента, хотел поэксперементировать как это работает CHARACTERISTIC = '.__dict__[list(self.__dict__)[0]]' def calculate...
/***************************************************************************** Copyright (c) 2014, Intel Corp. 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 cod...
# 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. class TracingController(object): def __init__(self, tracing_controller_backend): """Provides control of the tracing systems supported by telemetry.""" ...
/***************************************************************************** * * Author: Xilinx, Inc. * * This text contains proprietary, confidential information of * Xilinx, Inc. , is distributed by under license from Xilinx, * Inc., and may be used, copied and/or disclosed only pursuant to ...
import itertools import numpy as np import pytest from numpy.testing import assert_almost_equal, assert_array_equal from scipy.spatial import distance from skimage._shared._warnings import expected_warnings from skimage.metrics import hausdorff_distance, hausdorff_pair def test_hausdorff_empty(): empty = np.zer...
var t={columnDefs:[{orderable:!1,targets:[9]}],dom:"t",info:!1,order:[[3,"asc"],[0,"asc"]],paging:!1,stateSave:!0,stateDuration:0},e='<table width="100%"><tbody><tr><td><span class="fshBlue"><input id="fshHideMoves" type="checkbox">&nbsp;Hide Matches for Completed Moves</span></td><td align="right"><span class="fshBlue...
# Copyright 2017-present Kensho Technologies, LLC. """Front-end for GraphQL to database queries compiler. High-level overview of the GraphQL ingestion process that outputs the compiler's internal representation (IR) via the graphql_to_ir() function: - The function receives a GraphQL string and a GraphQL schema. ...
"use strict"; const { validatePermissions, PRESETS } = require('./src/Components/permissions.js'); const { exec_command } = require('./src/Components/switch.js'); const { printToTerminal, validateCommand } = require('./src/Components/util.js'); const { updateActivity, callbackFn } = require('./src/Events/activity.js');...
$(document).ready(function(){ var scrollUp = function() { // Get link var link = $('#scrollUp'); $(window).scroll(function() { // If the user scrolled a bit (150 pixels) show the link if ($(this).scrollTop() > 150) { link.fadeIn(100); } else { link.fadeOut(100); ...
export default function flatten(gj) { switch ((gj && gj.type) || null) { case "FeatureCollection": gj.features = gj.features.reduce(function(mem, feature) { return mem.concat(flatten(feature)); }, []); return gj; case "Feature": if (!gj.geometry) return gj; return flatten...
#ifndef PROCPS_PROC_WCHAN_H #define PROCPS_PROC_WCHAN_H #include "procps.h" EXTERN_C_BEGIN extern const char * lookup_wchan (int pid); EXTERN_C_END #endif
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
module.exports = ` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Koa Server Html</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" cros...
""" Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. set(key, value) - Set or insert the value if the key is not already ...
#include <string.h> #include <stdlib.h> #include <stdint.h> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <stdint.h> // portable: uint64_t MSVC: __int64 typedef struct timeval { long tv_sec; long tv_usec; } timeval; int gettimeofday (struct timeval *tp, struct timezone *tzp) { // Note...
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; /* Copyright 2012 Igor Vaynberg This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License...
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
#!/usr/bin/env python # # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. # Dart SDK promote tools. import imp import optparse import os import subprocess ...
# python import lx, lxifc, lxu.command class CommandClass(lxu.command.BasicCommand): def __init__(self): lxu.command.BasicCommand.__init__(self) self.dyna_Add('cmd', lx.symbol.sTYPE_STRING) self.dyna_Add('label', lx.symbol.sTYPE_STRING) self.dyna_Add('recommended', lx.symbol.sTYPE...
/** * EasyUI for jQuery 1.8.7 * * Copyright (c) 2009-2019 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ /** * draggable - EasyUI for jQuery * */ (function($){ fu...
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["lingallery"]=e(require("vue")):t["lingallery"]=e(t["Vue"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e...
#ifndef TIME_UTILS_H #define TIME_UTILS_H unsigned long long getMillisecondsSinceEpoch(); #endif
const util = require('util') const moment = require('moment') const getDublinBikesData_derilinx = async url => { const fetch = require('node-fetch') try { const response = await fetch(url) const json = await response.json() // console.log("\n******\nExample Dublin Bikes data from Derilinx: " + JSON.stri...
/** * WEB-Service Boilerplate * Created on 2020.09.03 by @toyota-m2k * Copyright (c) 2020 @toyota-m2k. All rights reserved. */ var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource'); }); module.exp...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...