text
stringlengths
3
1.05M
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.13. 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 # Bu...
# Copyright 2021 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import Bootstrap from 'react-bootstrap'; import Jumbotron from 'react-bootstrap/lib/Jumbotron'; import Panel from 'react-bootstrap/lib/Panel'; import Input from 'react-bootstrap/lib/Input'; import Label from 'react-bootstrap/lib/L...
# 1.Follow Link and Enable Less Secure Applications (If you have two factor authentication it must be removed) # Link: https://myaccount.google.com/lesssecureapps # 2. Set up Enviroment variables. This is done differently for each operating system (Mac OS, Windows 10, Linux, etc.) # On Big Surr this is done by editing...
#ifndef _ARIES_EXPLICIT_FUNCTION_PATH_DEPENDENT_H #define _ARIES_EXPLICIT_FUNCTION_PATH_DEPENDENT_H #include <aries/utility/ExplicitFunction.h> #include <aries/utility/ParameterSet.h> #include <cstdlib> #include <iostream> #include <string> namespace aries { class EFPathDependent: public ExplicitFunction<_float_t, _...
import { Meteor } from 'meteor/meteor'; import { LinksCollection } from '/imports/api/links/Link'; import { PhoneNumbers } from '/imports/api/phonenumber/PhoneNumber'; import { Seals } from '/imports/api/seal/Seal'; import { Turtles } from '/imports/api/turtle/Turtle'; import { Birds } from '/imports/api/bird/Bird'; im...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:25:05 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by E...
"use strict"; module.exports = { "default": require("core-js/library/fn/number/max-safe-integer"), __esModule: true }; //# sourceMappingURL=max-safe-integer.js.map
# LSTM for sequence classification in the IMDB dataset import numpy from keras.datasets import imdb from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM, Convolution1D, Flatten, Dropout from keras.layers.embeddings import Embedding from keras.preprocessing import sequence fro...
import * as d3 from "d3"; import "./bar-chart.scss"; const FONT_SIZE = "14px"; const TEXT_COLOR = "#929292"; const GRID_COLOR = "#282828"; const yStrokeDash = "6, 3"; const BAR_COLORS = [ "#311415", "#331313", "#361414", "#3a1414", "#3d1313", "#411415", "#441313", "#481313", "#4b1414", "#4d1313", ...
const Command = require('../../controller/commands'); const USERS = require('../../controller/users'); const IMAGES = require('../../controller/images') module.exports = class extends Command { constructor(...args) { super(...args, { name: 'cat', category: 'Images and Memes', description: 'Sends a random ...
# Copyright 2016 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...
from setuptools import setup, find_packages with open("README.md", "r") as fh: readme = fh.read() setup(name='edopi', version='1.0.0', url='https://github.com/luansimoes/edopi', license='MIT License', author='Flavia Elias e Luan Simões', long_description=readme, long_description...
import getTranslate from '../getTranslate'; function floor(num) { return num < 0 ? Math.ceil(num) : Math.floor(num); } export function format(date, mask) { const addZero = (num) => (num < 10 ? '0' + num : num); const months = getTranslate('months'); const tokens = { // год (nnnn; nn) yyyy: () => date...
import sys import os import re import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import io import io import json from subprocess import * import subprocess import dateutil.parser from warnings import warn from BaseSpacePy.model import * from BaseSpacePy.api.BaseSpaceEx...
"""Script used to interfact with some Junos gear""" from nornir import InitNornir from nornir_napalm.plugins.tasks import napalm_configure from nornir_utils.plugins.functions import print_result from nornir_utils.plugins.tasks.data import load_yaml from nornir_jinja2.plugins.tasks import template_file def load_vars(t...
// var myCircle = null; var myContent = null; var myResults = null; var myX = null; var myY = null; var myRX = null; var myRY = null; var myBX = null; var myBY = null; var myCX = null; var myCY = null; var myEX = null; var myEY = null; var myTE = null; var myConsole = null; var drFired = false; var app = { self ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.2.15_A1_T24; * @section: 15.10.2.15; * @assertion: The internal helper function CharacterRange takes two CharSet parameters A and B and performs the * following: * I...
""" Copyright 2021 Charles McMarrow """ # backrooms from backrooms.translator import StringHandler NAME = "h_vector" SCRIPT = """ %utils # WS[...] -> WS[size, ...] ~SIZE />rs"_SIZE"hcphr ~_SIZE />ri0ri9hr # WS[item, ...] -> WS[...] ~APPEND />rs"SIZE"hck0dfrs"_START"hg-zisk1fzrs"utils"rs"NEW"hlfs1rs"utils"rs"K...
#pragma once #include "LeapHand.h" #include "LeapEventInterface.generated.h" UINTERFACE(MinimalAPI) class ULeapEventInterface : public UInterface { GENERATED_UINTERFACE_BODY() }; class ILeapEventInterface { GENERATED_IINTERFACE_BODY() public: //Hands UFUNCTION(BlueprintImplementableEvent, meta = (DisplayNam...
var formatRelativeLocale = { lastWeek: "'ôfrûne' eeee 'om' p", yesterday: "'juster om' p", today: "'hjoed om' p", tomorrow: "'moarn om' p", nextWeek: "eeee 'om' p", other: 'P' }; export default function formatRelative(token, _date, _baseDate, _options) { return formatRelativeLocale[token]; }
'use strict' var reusify = require('reusify') function fastqueue (context, worker, concurrency) { if (typeof context === 'function') { concurrency = worker worker = context context = null } var cache = reusify(Task) var queueHead = null var queueTail = null var _running = 0 ...
const debug = require('debug')('yup-by-example:generators:BooleanGenerator'); const BaseGenerator = require('./BaseGenerator'); class BooleanGenerator extends BaseGenerator { generate({ chance, schema }) { const value = this.hasWhitelist(schema) ? this.oneOf(chance, schema.whitelist) : chance.bool(...
/* * * Copyright 2015, 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 condi...
/* Node unit quick reference: * * ok(value, [message]) * - Tests if value is a true value. * equal(actual, expected, [message]) * - Tests shallow, coercive equality with the equal comparison operator ( == ). * notEqual(actual, expected, [message]) * - Tests shallow, coercive non-equality with the not equ...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
import React from 'react' import ReactDOM from 'react-dom' import DictionaryInfluencersContainer from './components/DictionaryInfluencers/DictionaryInfluencersContainer' ReactDOM.render( <DictionaryInfluencersContainer />, document.getElementById('react-app') )
/** * Just a dummy file */
export default { cartLength(state) { return state.cartList.length }, cartList(state) { return state.cartList }, totalPrice(state){ if(state.cartList.length) { return state.cartList .filter( item=> item.checked ) .reduce( (preValue...
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2022- John Muradeli # # Distributed under the terms of the MIT License # (see wavespin/__init__.py for details) # ----------------------------------------------------------------------------- from .nu...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
# Copyright 2020 University of Groningen # # 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 i...
/** * External dependencies */ import TestRenderer, { act } from 'react-test-renderer'; import { createRegistry, RegistryProvider } from '@wordpress/data'; import { Component as ReactComponent } from '@wordpress/element'; import { COLLECTIONS_STORE_KEY as storeKey } from '@woocommerce/block-data'; /** * In...
import React from 'react' import { Box, Button, Layer, Text, Heading, Meter, } from 'grommet' const Modal = (props) => { const { showModal, onClose, displayWord, wordCount, count, isRunning, setIsRunning } = props return( <> {showModal && <Layer position="center" ...
""" Test lldb logging. This test just makes sure logging doesn't crash, and produces some output. """ import os, time, string import unittest2 import lldb from lldbtest import * class LogTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) append_log_file = "lldb-commands-log-append.txt" truncat...
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # 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...
import { group } from 'd3'; export default function processData() { let chart = this; let config = this.config; //get list of all groups let allgroups = d3.merge( chart.raw.map(function(m) { return [ { group: m[config.group1_col], count: m[config.denominator1_col] }...
""" ============== modelr.web ============== This module contains the Web specific parts of modelr. """
"use strict"; Object.defineProperty(exports, "__esModule", { value: true, }); exports.RichTextEditorUnderline = void 0; var _litElement = require("lit"); var _richTextEditorPromptButton = require("./rich-text-editor-prompt-button.js"); function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.it...
(() => { angular .module('app.components') .factory('Login', Login); /* @ngInject */ Login.$inject = ['$resource']; function Login($resource) { return $resource('ws/login', {}, { login: { method: 'POST', params: {}, is...
import { hasOwn } from 'uni-shared' import { promisify } from 'uni-core/helpers/promise' import { initSubNVue, initPostMessage } from '../sub-nvue' import { initTitleNView } from '../title-nview' import * as apis from './api' export default function initUni (uni, nvue, plus, BroadcastC...
import numpy, h5py from scipy.signal import fftconvolve from westtools import WESTTool, WESTDataReader, IterRangeSelection import westpa from west.data_manager import (weight_dtype, n_iter_dtype, vstr_dtype) from west.we_driver import NewWeightEntry import mclib from westpa import h5io fluxentry_dtype = numpy.dtype(...
#!/usr/bin/env python3 # Copyright (c) 2014-2017 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 running perfectcoind with the -rpcbind and -rpcallowip options.""" import sys from test_framewor...
/* RCP Vista Demonstrator Author: Chris Casey Copyright 2013 CPC Computer Solutions 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-...
#!/usr/bin/env node /*! * Script to run vnu-jar if Java is available. * Copyright 2017-2021 The Bootstrap Authors * Copyright 2017-2021 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ 'use strict' const childProcess = require('child_process') const vnu = require('vnu-...
# Copyright (c) 2017, Udacity # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the fol...
#!/usr/bin/python import multiprocessing import optparse import StringIO import os import random import string import sys import time import logging # Install the Python unittest2 package before you run this script. import unittest2 USAGE = """%prog -s SDK_PATH -t TEST_PATTERN Run unit tests for App Engine apps. The ...
import React from 'react' import { Link } from "gatsby"; import Head from '../components/head' import Layout from '../components/layout' const NotFound = () => { return ( <Layout> <Head title="About" /> <h1>Page not found</h1> <p><Link to="/">Return to home page</Link></p> ...
from collections import OrderedDict expected = OrderedDict( [ ("type", "quote"), ("text", [OrderedDict([("type", "paragraph"), ("text", u"content")])]), ] )
import os import jinja2 from jinja2.sandbox import SandboxedEnvironment __all__ = ("ENVOPS_DEFAULT", "JinjaRender") ENVOPS_DEFAULT = { "autoescape": False, "keep_trailing_newline": True, } class JinjaRender: def __init__(self, src_path, data=None, filters_=None, **envops): self.src_path = str(...
import os from src.data_management.New_DataSplitter_leave_k_out import New_DataSplitter_leave_k_out from src.data_management.RecSys2019Reader import RecSys2019Reader from src.data_management.RecSys2019Reader_utils import merge_UCM from src.data_management.data_preprocessing import apply_feature_engineering_ICM, apply_...
ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode...
const assert = require('assert'); const { ZipFile } = require('yazl'); const streamToBuffer = require('./fs/stream-to-buffer.js'); class Lambda { constructor({ zipBuffer, handler, runtime, environment, }) { this.type = 'Lambda'; this.zipBuffer = zipBuffer; this.handler = handler; this.runtime =...
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "...
# -*- coding: utf-8 -*- class StandardReprMixin(object): u""" Used to add an implementation of '__repr__' that is generally useful for debugging. >>> class Foo(StandardReprMixin): ... def __init__(self): ... self.name = "blé" >>> >>> f = Foo() >>> f.frobble = 1 >>>...
"""Demo Threshold One-Way Hash Chains. This MPyC demo shows how to generate and reverse one-way hash chains in a multiparty setting. The seed for a hash chain, which serves as the private key, is generated jointly at random such that no party learns any information about it. Subsequently, the hash chain is built and r...
# python show image from IPython.display import Image Image("http://scikit-learn.org/dev/_static/ml_map.png", width=800)
import sys, argparse import pdb from operator import itemgetter from argparse import RawTextHelpFormatter from random import randint parser = argparse.ArgumentParser(description="Given a prefix and an int, appends the prefix to the int from 0 to int and assigns each a random colour, to output a dictionary that adjust ...
/**************************************************************************** * arch/arm/src/lpc54xx/lpc54_rng.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permit...
import datetime import math import discord from jinja2 import Environment, FileSystemLoader from configurations import CONFIG from game_constants import RARITY_COLORS from search import _ from translations import LANGUAGE_CODE_MAPPING from util import chunks, flatten class Views: WHITE = discord.Color.from_rgb(...
/*** Metronic AngularJS App Main Script ***/ /* Metronic App */ var MetronicApp = angular.module("MetronicApp", [ "ui.router", "ui.bootstrap", "oc.lazyLoad", "ngSanitize" ]); /* Configure ocLazyLoader(refer: https://github.com/ocombe/ocLazyLoad) */ MetronicApp.config(['$ocLazyLoadPro...
# Generated by Django 2.2 on 2019-12-07 23:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('courses', '0022_auto_20191207_2321'), ] operations = [ migrations.RemoveField( model_name='coursehomework', name='asthr', ...
import time import tempfile import shutil import os import unittest from . import math_is_hard import instrument from instrument.output.csv import CSVFileMetric, CSVDirMetric def read_csv(fname): with open(fname, newline='') as fh: return fh.read() class CSVFileMetricTestCase(unittest.TestCase): d...
import React, { Component } from 'react'; import { Line, Chart as ReactChart } from 'react-chartjs-2'; import 'chartjs-plugin-streaming'; var chartColors = { red: 'rgb(255, 99, 132)', orange: 'rgb(255, 159, 64)', yellow: 'rgb(255, 205, 86)', green: 'rgb(75, 192, 192)', blue: 'rgb(54, 162, ...
class Solution: def XXX(self, nums: List[int]) -> List[List[int]]: result = [] for i1 in range(0, len(nums) - 2): for i2 in range(i1 + 1, len(nums) - 1): for i3 in range(i2 + 1, len(nums)): if nums[i1] + nums[i2] + nums[i3] == 0: ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { Divider, Display1, Headline, Body1, Body2, Colors as CUIColors, connectTheme, gu } from 'carbon-ui'; import { pushState } from 'react-stack-nav'; import createLeafOrchestrator from '../../../common/createLeafOrchestrato...
var dataSistema = new Date(); angular.module('myApp', ['ngRoute', 'rw.moneymask']) .config(function ($routeProvider, $locationProvider) { $routeProvider.when('/home', { templateUrl: 'partials/home.html', controller: 'homeController' }) .when('/login', { templateUrl: 'partials/login...
/* eslint-disable eslint-comments/no-unused-disable */ /* eslint-disable no-unused-vars */ import axios from "axios"; import { getItem } from "./AsyncUtils"; import { Strings, APIUrls } from "../Constants"; //===============Stagging============= // let BASE_URL = ''; //==========Local System==================== let B...
/* fft/c_pass_n.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your optio...
self.addEventListener('install', function(event) { event.waitUntil( caches.open('v1').then(function(cache) { return cache.addAll([ '/daegil/', '/daegil/index.html', '/daegil/css/style.css', '/daegil/css/fontello.css', '/daegil/js/index.js', '/daegil/d.mp3', ...
import React from "react" import Img from "gatsby-image" import { ParallaxLayer } from "react-spring/renderprops-addons.cjs" export default function({ layers }) { var MYLights = [...Array(10).keys()] return ( <section id="MY-canvas"> {layers.map((layer, index) => ( <ParallaxLayer offse...
from tkinter import * def poli5(): root=Tk() head=Frame(root,width=1366,height=45,bg='#3b5998') head.place(x=0,y=0) heading=Label(head,text="Platform Policies",bg='#3b5998',fg='white',font=('Segoe UI',20,'bold'),justify="center") heading.place(x=5,y=5) text = Label(root, text='\nCAPTCHA i...
#pragma once #include <glbinding/nogl.h> #include <glbinding/gl/functions.h> namespace gl21ext { using gl::glAccumxOES; using gl::glAcquireKeyedMutexWin32EXT; using gl::glActiveProgramEXT; using gl::glActiveShaderProgram; using gl::glActiveStencilFaceEXT; using gl::glActiveTextureARB; using gl::glActiveVaryingNV...
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup setup_args = generate_distutils_setup( packages=['lane_controller', ], package_dir={'': 'include'}, ) setup(**setup_args)
/** * Copyright 2022 University of Adelaide * * 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...
(function(name,data){ if(typeof onTileMapLoaded === 'undefined') { if(typeof TileMaps === 'undefined') TileMaps = {}; TileMaps[name] = data; } else { onTileMapLoaded(name,data); } if(typeof module === 'object' && module && module.exports) { module.exports = data; }})("isometric_grass_and_water", { "height"...
/*========================================================================= Library: TubeTK/VTree3D Authors: Stephen Aylward, Julien Jomier, and Elizabeth Bullitt Original implementation: Copyright University of North Carolina, Chapel Hill, NC, USA. Revised implementation: Copyright Kitware Inc., Carrboro, NC, US...
// Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) // Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly. export default 'M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 ...
/****************************************************************************** * Code generated with sympy 0.7.6 * * * * See http://www.sympy.org/ for more information. * ...
#!/usr/bin/env python3 import rospy from std_msgs.msg import String from googletrans import Translator translator = Translator() def translate(data): rospy.loginfo(data.data + '-->' + translator.translate(data.data, src='ja', dest='fr').text) def main(): print('日本語をフランス語に翻訳します。') rospy.Subscriber('words...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY. (function(global) { global.ng = global.ng || {}; global.ng.commo...
import axios from "axios"; const api = axios.create({ baseURL: "http://130.211.216.31:8080/api" }); export default api;
import { app } from './context' import World from './World' import Rewards from './Rewards' import Scoreboard from './Scoreboard' import InputManager from './InputManager' import GameManager from './GameManager' import Synth from './Synth' import Sky from './Sky' import InstancedObjs from './InstancedObjs' module.exp...
import Vue from 'vue' import '@/plugins/axios' import vuetify from '@/plugins/vuetify' import '@/plugins/veevalidate' import '@/plugins/common' import '@/plugins/googleAnalytics' import i18n from '@/plugins/i18n' import App from '@/App.vue' import router from '@/router' import { store } from '@/store' import VuetifyCon...
from sympy import nextprime import random import math class PerfectHashDict(object): def __init__(self, possible_keys): print("this is possible keys", possible_keys) self.keys = possible_keys # prime number of buckets that is reasonably large self.num_buckets = self.chooseNumBucke...
const _ = require("lodash"); const StyleDictionary = require("style-dictionary").extend("./config.json"); function isSize(prop) { return prop.attributes.category === 'size' && !isTextSize(prop) && !isWeightSize(prop); } function isTextSize(prop) { return prop.attributes.type === 'text' && prop.attributes.category...
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #384. Shuffle an Array #Shuffle a set of numbers without duplicates. #Example: #// Init an array with set 1, 2, and 3. #int[] nums = {1,2,3}; #Solution so...
# Copyright (c) 2021 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
// WebSockets Audio API // // Opus Quality Settings // ===================== // App: 2048=voip, 2049=audio, 2051=low-delay // Sample Rate: 8000, 12000, 16000, 24000, or 48000 // Frame Duration: 2.5, 5, 10, 20, 40, 60 // Buffer Size = sample rate/6000 * 1024 (function (global) { var defaultConf...
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(80)},function(e,t,n){"use strict";var r=n(0),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arg...
const express = require('express'); const path = require('path'); const bodyparser = require('body-parser'); const cookieparser = require('cookie-parser'); const auth = require('./controller/authController.js'); const game = require('./controller/gameController.js'); const highScore = require('./controller/highScore...
/*! * filename: ej.pivotschemadesigner.min.js * version : 15.1.0.37 * Copyright Syncfusion Inc. 2001 - 2017. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be...
// // MKAnnotationView.h // MapKit // // Copyright 2009-2010 Apple Inc. All rights reserved. // #import <UIKit/UIKit.h> // Post this notification to re-query callout information. UIKIT_EXTERN NSString *MKAnnotationCalloutInfoDidChangeNotification; #if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED enum { MK...
var fs = require('fs'); var esprima = require('esprima'); var normalizer = require(__dirname + '/lib/normalizer'); var astutil = require(__dirname + '/../common/lib/ast.js'); var last_fun_offset = -1; function find_suspicious(nd) { if(!nd) return; if(nd.type === 'FunctionExpression' && nd.attr.pos) { last_...
import React from 'react'; import { CircularProgress, makeStyles } from "@material-ui/core"; const useStyles = makeStyles({ loader: { display: 'flex', position: 'absolute', width: '100%', height: '100%', background: 'rgba(0,0,0,0.03)', justifyContent: 'center' }, spinner: { marginTop:...
const menubar = require('menubar') const path = require('path') const url = require('url') const mb = menubar({ index: url.format({ pathname: path.join(__dirname, '../../static/menubar.html'), protocol: 'file:', slashes: true }) }) mb.on('ready', function ready () { console.log('app is ready') // ...
/** * * Witchcraft Compiler Collection * * Author: Jonathan Brossard - endrazine@gmail.com * ******************************************************************************* * The MIT License (MIT) * Copyright (c) 2016-2022 Jonathan Brossard * * Permission is hereby granted, free of charge, to any person obtaining a co...
layui.use(['form', 'layer', 'layedit', 'upload'], function () { const form = layui.form, layer = parent.layer === undefined ? layui.layer : top.layer, upload = layui.upload, layedit = layui.layedit, $ = layui.jquery; //创建一个编辑器 const editIndex = layedit.build('content', { ...