text
stringlengths
3
1.05M
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development 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 limi...
/** * Given an array of integers, return indices of the two numbers such that they add up to a specific * target. * <p> * You may assume that each input would have exactly one solution, and you may not use the same * element twice. * <p> * Example: * <p> * Given nums = [2, 7, 11, 15], target = 9, * <p> * Bec...
"use strict"; exports.__esModule = true; var proofUtil_1 = require("../util/proofUtil"); var fieldVector_1 = require("../linearAlgebra/fieldVector"); var bigInteger_1 = require("../bigInteger/bigInteger"); var utils_1 = require("../elliptic/lib/elliptic/utils"); var vectorBase_1 = require("../linearAlgebra/vectorBase")...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
#!/usr/bin/env python3 # oop03.py.py # ----------------------------- class Kiste: anzahl = 0 # Statische Klassenvariable Anzahl der Instanzen def __init__(self): self._breite = 0 # hier jetzt privat=> _breite self._hoehe = 0 self._tiefe = 0 self._vol = -1 ...
// Returns a random integer between min (included) and max (excluded) // Using Math.round() will give you a non-uniform distribution! function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } function make_slides(f) { var slides = {}; // preload( // ["images/bathrobe.png","images...
""" This file offers the methods to automatically retrieve the graph Streptosporangium roseum. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 20...
import React from 'react' import ReactDOM from 'react-dom' ReactDOM.render( <React.StrictMode> <div className="app">1</div> </React.StrictMode>, document.getElementById('root') )
''' Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17. Bonus: Can you do this in one pass? ''' input = [10, 15, 3, 7] k = 18 def solution_1(lst_input, k): # n*n complexity solution ...
// @flow import * as React from 'react'; import { graphql, createFragmentContainer } from '@kiwicom/margarita-relay'; import type { ItineraryReturn_itinerary as ItineraryType } from './__generated__/ItineraryReturn_itinerary.graphql'; import SectorDetail from '../../sectorDetail/SectorDetail'; type Props = {| +iti...
import cx_Oracle import datetime as dt from typing import Optional, Union def updateUserKeyword(appDbConnStr: str, keywords_user: str, docid: int, kid: int, userid: int) -> bool: """inserts a generic code into the app db Returns: bool: returns true if proces...
// @ts-check const path = require('path'); const webpack = require('webpack'); const merge = require('webpack-merge'); const webpackBaseConfig = require('../webpack-base-config'); /** * @type {webpack.Configuration} */ const featureAppConfig = merge.smart(webpackBaseConfig, { entry: path.join(__dirname, './feature...
Alloy.Globals.viewContainerPrincipal = []; Alloy.Globals.WinInitContainer; Alloy.Globals.ViewActive = []; Alloy.Globals.ActualContainer; Alloy.Globals.ActualSection; Alloy.Globals.IsLoading; Alloy.Globals.Header; Alloy.Globals.Menu; Alloy.Globals.CloseSession = 'false'; //Paleta de Colores Alloy.CFG.GREY = "#87...
//= require active_admin/base //= require_tree ./diyjs/
# -*- coding: utf-8 -*- ''' Send events from Docker events :Depends: Docker API >= 1.22 ''' # Import Python Libs from __future__ import absolute_import import json import logging import traceback import salt.utils.event # pylint: disable=import-error try: import docker import docker.utils HAS_DOCKER_P...
import React from 'react'; import { Link } from 'gatsby'; import footerCSS from '../css/footer.module.css'; const Footer = () => { return ( <footer className={footerCSS.footer}> <div className={footerCSS.contenido}> <nav className={footerCSS.navegacion}> <Link to={'/'}>Inicio</Link> ...
import React from 'react'; import { Button, Text, View, ActivityIndicator, StyleSheet, StatusBar, } from 'react-native'; import { createAppContainer, createStackNavigator } from 'react-navigation'; import { EventRegister } from 'react-native-event-listeners'; import DropdownAlert from 'react-native-dropdownalert'; im...
/** * ownCloud * * @author Vincent Petry * @copyright 2014 Vincent Petry <pvince81@owncloud.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the Licens...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange...
const path = require("path"); const HtmlWebPackPlugin = require("html-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const cssLoaders = (extra) => { const load...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
$.oc.module.register('cms.editor.extension.documentcontroller.layout', function() { 'use strict'; const DocumentControllerBase = $.oc.module.import('editor.extension.documentcontroller.base'); const treeviewUtils = $.oc.vueComponentHelpers.treeviewUtils; class DocumentControllerLayout extends Documen...
import Editor from './editor.vue'; export const page = { module: "page", Viewer: { inheritAttrs: false, render(h, props) { // 测试修改其他模块失焦时(非同步修改),是否作用到page上 return ( <span>{ this.$attrs.name }</span> ); } }, Editor, // 初始数据 data: { // for draggable w: window.screen.width, h: window.scre...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fas'; var iconName = 'signal-4'; var width = 640; var height = 512; var ligatures = []; var unicode = 'f68f'; var svgPathData = 'M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-...
/* * File: PwaInstaller.js * Desc: pwa手动触发安装 * File Created: 2018-11-07 21:13:18 * Author: chenghao * * Copyright 2018 - present, chenghao */ import React, { Component } from 'react'; class PwaInstaller extends Component { state = { installed: true, }; componentDidMount() { window.a...
const schemas = require('../lib/schemas') const { JWK } = require('jose') function jwk (domain) { const key = JWK.generateSync('RSA', 1024, { use: 'enc' }).toJWK(false) key.kid = `${domain}/jwks/${key.kid}` return key } describe('schemas', () => { let jwtDefaults beforeEach(() => { jwtDefaults = { ...
#!/usr/bin/python # # This file is part of Ansible # # Ansible 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 option) any later version. # # Ansible is distribut...
require('dotenv').config({ path: `.env`, }) const prismicHtmlSerializer = require('./src/gatsby/htmlSerializer') const website = require('./config/website') const pathPrefix = website.pathPrefix === '/' ? '' : website.pathPrefix module.exports = { /* General Information */ pathPrefix: website.pathPrefix, si...
// @preserve /*\ title: $:/plugins/felixhayashi/tiddlymap/js/CallbackManager type: application/javascript module-type: library @preserve \*/ import utils from '$:/plugins/felixhayashi/tiddlymap/js/utils'; /** * Makes it possible to register callbacks for tiddler changes. */ class CallbackManager { constructor...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2013-2020 Wind River Systems, Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License...
/* * Copyright 2009-2013 Roland Huss * * 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 agr...
// @flow import type { Config } from "./config"; const http = require("http"); const chalk = require("chalk"); const createServer = require("fs-remote/createServer"); const showSpinnerForPromise = require("./showSpinnerForPromise"); const makeClientBundle = require("./makeClientBundle"); const internalFileServer = req...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/procesos/Form.vue?vue&type=script&lang=js&": /*!*********************************************************************************************...
import datetime import time from threading import Thread from central.placaBase.configuracao import config from central.models import AlarmeTipo, Alarme, Ambiente from central.log import log """ Cria um novo tipo de alarme """ def newAlarmeTipo(_codigo, _mensagem, _prioridade): try: at = AlarmeTipo(codigo...
new Vue({ el:'body', });
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css' import App from './components/App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); serviceWorker.unregister();
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import React, { Component } from 'react'; import MenuBar from '../CountHeader/MenuBar'; class Layout extends Component { constructor(props) { super(props); this.state = { page: 'index.js', description: 'Main layout' }; } render() { return ( <div> <div> ...
var socket = io.connect( '/' ); var raids = []; var raidConfigs = []; var selectedRaidsArray = []; var beepsSoundNotif = new Audio( '/assets/Beeps_Appear.wav' ); var lilyRingRingSoundNotif = new Audio( '/assets/Lily_Event_RingRing.mp3' ); var andiraOniichanSoundNotif = new Audio( '/assets/Andira_Oniichan.mp3' ); var t...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['th']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"กด ALT 0 หากต้องการความช่วยเหลือ","browseServer":"เปิดหน้าต่า...
var x = 1; { var __result1 = Math.acos(x) !== + 0; var __expect1 = false; }
YUI.add("demo-templates-bar",function(e,t){var n=e.Template.Handlebars.revive(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression;return s+="<p>Handlebars template body content: ",(o=n.tellme)?o=o.call(t,{hash:{},data:i}):(o=t.tellme,o=t...
/** * Copyright 2019 Adobe. All rights reserved. * This file is licensed 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 appl...
const mongoose = require('mongoose'); const musicSchema = mongoose.Schema({ title: { type: String }, artist: { type: String }, album: { type: String } }); module.exports = mongoose.model('Music', musicSchema, 'musics');
""" Implements GPs for Euclidean spaces. -- kandasamy@cs.cmu.edu -- kvysyara@andrew.cmu.edu """ from __future__ import division import numpy as np from argparse import Namespace # Local imports from . import gp_core, mf_gp from . import kernel as gp_kernel from ..utils.ancillary_utils import get_list_of_floats...
'use strict'; const assert = require('assert') const fixtures = require('haraka-test-fixtures'); const Address = require('address-rfc2821').Address; const btoa = require('btoa'); const constants = require('haraka-constants'); const pool = require('../pool'); function _set_up (done) ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _SvgContainer = require('./SvgContainer'); var _SvgContainer2 = _interopRequireDefault(_SvgContainer); function _interopRequireDefault(obj) { return obj &...
import { createRouter, createWebHistory } from "vue-router"; import Dashboard from "../view/Dashboard.vue"; import Login from "../view/Login.vue"; import Register from "../view/Register.vue"; import SurveyView from "../view/SurveyView.vue"; import DefaultLayout from "../components/DefaultLayout.vue"; import AuthLayout ...
var Fynx=function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";var r=e(2),i=e(3);t.exports={createAction:r,createActions:e(6),createAsyncAction:r....
a = [1,1,2,2,2,3,4,5] c=[] d=[] for entry in a: if entry not in c: c.append(entry) d.append(entry) print "----" print c print d print "----" pass if entry in c and entry in d: print d d.remove(entry) print c print d
"""Console script for nifi.flowfile.""" import os import click import configparser from .stream import FlowFileStreamReader @click.group() def flowfile(): """NiFi's FlowFile Stream v3 Pack/Unpack.""" return 0 @flowfile.command() def pack(): """packs content.""" return 0 @flowfile.command() @clic...
// @flow // This file uses comment type because we want to import it in Webpack configs /* eslint-disable spaced-comment */ /*:: import type { ModuleCode, Semester } from 'types/modules'; */ const config = require('../config/app-config.json'); class NUSModsApi { static ayBaseUrl(academicYear /*: string */ = config...
/** * # layout/base * * Base constructor for the canvas layout managers. Used to determine * canvas dimensions and to place sprites without intersections (overlap) * * > http://draeton.github.io/stitches<br/> * > Copyright 2013 Matthew Cobbs<br/> * > Licensed under the MIT license. */ define([ "wrap/jquer...
// @ts-check const path = require('path'); const webpack = require('webpack'); const yargs = require('yargs'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const CircularDependencyPlugin = require('circular-dependency-plugin'); const outputPath = path.resolve(__dirname, 'lib'); const { mode } = yargs.opt...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; var gDeviceList = null; // handle Bluetooth settings navigator.mozL10n.once(function deviceList() { var _ = navigator.mozL10n.get; var settings = window.navigator.mo...
import numpy as np import pandas as pd import scipy.stats import scipy.interpolate import arviz import bilby from tqdm import tqdm import argparse import seaborn import matplotlib import matplotlib.pyplot as plt matplotlib.use("agg") c = seaborn.color_palette("colorblind") fig_width_pt = 750.0 # Get this from LaTe...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Client = void 0; /* eslint-disable @typescript-eslint/no-unused-vars */ /* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...
from rest_framework.pagination import ( LimitOffsetPagination, PageNumberPagination, ) class PostLimitOffsetPagination(LimitOffsetPagination): default_limit = 10 max_limit = 10 class PostPageNumberPagination(PageNumberPagination): page_size = 12
deepmacDetailCallback("38f7cdd00000/28",[{"d":"2020-03-18","t":"add","s":"ieee-mam.csv","a":"Neumann-Neander-Str. 6-8 Düren Deutschland DE 52355","c":"DE","o":"Macherey-Nagel GmbH & Co. KG"}]);
const ytdl = require('ytdl-core'); const catchHandler = require('./catchHandler.js'); // add stealth plugin and use defaults (all evasion techniques) const cheerio = require('cheerio'); const request = require('request'); //Following function downloads Youtube videos using YTDL core function YoutubeDL(req, cb...
// Copyright Jon Williams 2017-2018. See LICENSE file. import './_emotion-hydrate'; import 'client/^'; // Note: Inheritance import
var searchData= [ ['sample',['SAMPLE',['../a00665.html#acb9fa31a4d774b3e8a3091c21486fa7a',1,'cluster.h']]], ['seamdecpair',['SeamDecPair',['../a01550.html#ac79ab0d2ef73225372ad8bc160f05bb8',1,'findseam.h']]], ['seampair',['SeamPair',['../a01550.html#ae7f82456c8e7ab23b2a7e9525a096248',1,'findseam.h']]], ['seampi...
/** * Copyright: E2E Technologies Ltd */ "use strict"; var bpmnProcesses = require('../../../../lib/process.js'); var BPMNProcessDefinition = require('../../../../lib/parsing/processDefinition.js').BPMNProcessDefinition; var BPMNTask = require("../../../../lib/parsing/tasks.js").BPMNTask; var BPMNStartEven...
import React, { useContext } from 'react'; import { Wrapper } from '../Wrapper'; import { Context } from '../../Context'; import { meta } from '../../helper/meta'; import { Main } from '../Main'; import Sidebar from '../Sidebar'; import { ShareButtons } from '../Share'; export default function Equipment() { const {...
import Ember from 'ember'; export default Ember.Route.extend({ titleToken: function() { return this.get('i18n').t('title.login'); } });
"use strict"; /******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl...
define('question-answer/tests/unit/routes/favorites-test.jshint', ['exports'], function (exports) { 'use strict'; QUnit.module('JSHint - unit/routes/favorites-test.js'); QUnit.test('should pass jshint', function (assert) { assert.expect(1); assert.ok(true, 'unit/routes/favorites-test.js should pass jshin...
var weatherCommon = require('./weather'); // "public" functions module.exports.getWeather = getWeather; module.exports.getWeatherFromCoords = getWeatherFromCoords; module.exports.getForecast = getForecast; module.exports.getForecastFromCoords = getForecastFromCoords; function getWeather(weatherLoc) { var apiKey = ...
import pytest import io from pipscoin.util.ints import int8, uint8, int16, uint16, int32, uint32, int64, uint64, uint128, int512 class TestStructStream: def _test_impl(self, cls, upper_boundary, lower_boundary): with pytest.raises(ValueError): t = cls(upper_boundary + 1) with pytest...
from utils import ListNode, createList, compareList class Solution: def removeElements(self, head: ListNode, val: int) -> ListNode: """ Time O(n) Space O(1) """ # 找到第一个不是 val 的节点 while head is not None: if head.val != val: break ...
/** * Copyright 2016, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ const expect = require('expect'); const { SELECT_FEATURES, selectFeatures } = require('../featuregrid'); d...
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import torch import torch.nn as nn from IPython import embed def conv_bn(inp, oup, kernel, stride, padding = 1): return nn.Sequential( nn.Conv2d(inp, oup, kernel, stride, padding, bias=False), nn.BatchNorm2d(oup), nn.ReLU(...
#!/usr/bin/env python3 # © 2015 James R. Barlow: github.com/jbarlow83 from ocrmypdf import pageinfo from reportlab.pdfgen.canvas import Canvas from PIL import Image from tempfile import NamedTemporaryFile from contextlib import suppress import os import shutil import pytest import img2pdf import pytest import sys if...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** http 发送前 */ exports.HttpBeforeSend = `[http before send]`; /** http 发送中 */ exports.HttpSending = `[http sending]`; /** http 发送结束 */ exports.HttpEnd = `[http end]`;
import React from 'react'; function Image(props) { return ( <div className="col-sm-10 col-lg-4 mx-auto"> <figure> <img src={props.src} alt={props.alt} className="m-auto my-3 rounded-circle img-thumbnail" /> <figcaption className="mx-auto">{props.caption...
""" Module for converting Google Earth Engine (GEE) JavaScripts to Python scripts and Jupyter notebooks. To convert a GEE JavaScript to Python script: js_to_python(in_file out_file) To convert all GEE JavaScripts in a folder recursively to Python scripts: js_to_python_d...
const defaultSettings = { elements_selector: "img", container: document, threshold: 300, data_src: "src", data_srcset: "srcset", data_sizes: "sizes", class_loading: "loading", class_loaded: "loaded", class_error: "error", load_delay: 0, callback_load: null, callback_error: null, callback_set: null, callba...
import os import math import stat import zipfile import requests import platform import click from tqdm import tqdm from functools import partial green_fg = partial(click.style, fg='green') yellow_fg = partial(click.style, fg='yellow') magenta_fg = partial(click.style, fg='magenta') cyan_fg = partial(click.style, fg='...
# coding=UTF-8 """Unit tests for cartoframes.utils""" import unittest import warnings from collections import OrderedDict import requests import numpy as np from cartoframes.utils.utils import (camel_dictionary, cssify, debug_print, dict_items, importify_params, snake_to_camel, d...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/components/jj-messagebox/alert/jj-button"],{ /***/ 105: /*!**********************************************************************************************************!*\ !*** /Users/weiqu/Documents/GitApp/jj-uni-messagebox/pages/components/jj-messa...
const path = require('path') //create pages dynamically exports.createPages = async ({graphql, actions}) => { const { createPage } = actions const result = await graphql(`query GetProducts { products:allContentfulProduct{ nodes{ slug } } } `) result.data.products.nodes.forEach((product...
import ctypes import pathlib import numpy as np from numpy.ctypeslib import ndpointer try: import lsml util = pathlib.Path(lsml.__file__).parent / 'util' name = list(util.glob('masked_gradient*'))[0] _masked_gradient = ctypes.cdll.LoadLibrary(str(name)) except Exception: raise ImportError('Could ...
import copy from authlib.common.encoding import json_loads from didcomm.core.utils import parse_base64url_encoded_json from didcomm.unpack import unpack, Metadata from tests.test_vectors.common import TTestVector from tests.test_vectors.didcomm_messages.messages import TEST_MESSAGE def decode_and_remove_jws_signatu...
"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ Object.defineProperty(exports, "__esModule", { value: true }); /** The root of the ANTLR exception hierarchy. In general, ANTLR tracks...
# Copyright (c) IOTIC LABS LIMITED. All rights reserved. Licensed under the Apache License, Version 2.0. from iotics.lib.identity.api import * # noqa: F403,F401 from iotics.lib.identity.error import * # noqa: F403,F401 from iotics.lib.identity.register.resolver import * # noqa: F403,F401 from iotics.lib.identity.re...
#!/usr/bin/env python import rospy import tf import numpy as np from visualization_msgs.msg import Marker from sensor_msgs.msg import JointState # robot module import from capacity.robot_solver import RobotSolver # capacity visualisation utils import capacity.capacity_visual_utils as capacity_utils # initial joint po...
function MMO_Scene_Title() { this.initialize.apply(this, arguments); } MMO_Scene_Title.prototype = Object.create(Scene_Base.prototype); MMO_Scene_Title.prototype.constructor = MMO_Scene_Title; MMO_Scene_Title.prototype.initialize = function() { Scene_Base.prototype.initialize.call(this); }; MMO_Scene...
from objects.color import Color from utils import set_button_color class Key: def __init__(self, name, button, led_offset): self.name = name self.button = button self.led_offset = led_offset self.color = Color(255, 255, 255) def set_color(self, color): self.color = colo...
from Data_processing import * import numpy as np from sklearn import ensemble def initial_guess(featurevec): feat_list=featurevec toret=0 for feat in feat_list: toret=toret+feat return toret def function_h(clfvec, featurevec): """Thids defines the function 'h'""" iters...
/** * Created with JetBrains PhpStorm. * User: xuheng * Date: 12-8-8 * Time: 下午2:09 * To change this template use File | Settings | File Templates. */ (function () { var me = editor, preview = $G("preview"), preitem = $G("preitem"), tmps = templates, currentTmp; var initPre...
/** Shortcut.JS is a micro-library I'm building specifically for making games in the Processing.js coding enviroment on Khan Academy. **/ var Canvas = function () { this.log = function () { var str = Array.prototype.slice.call(arguments).join(' ');//joins all the arguments with a space println(str);...
/** * @flow * @providesModule RNSSegmentedControl */ import React from 'react'; import { Text, StyleSheet, TouchableOpacity, View, Platform, } from 'react-native'; const RNSSegmentedControl = props => { const segments = props.values.map((value, index) => ( <Segment type={props.type} key...
/** * * Dashboard * */ import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { useInjectSaga } from 'utils/injectSaga'; import { useInjectReducer } ...
/******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; /*!**************************************!*\ !*** ./resources/js/shared pages.js ***! \**************************************/ /******/ })() ;
import config from "../utils/config.js"; import {colors} from "../../../utils/colors.js"; const xmlns = "http://www.w3.org/2000/svg"; export default function contactMapSVG(id, data={x: [], y: [], data: {}}, setting={}, options={}) { let opt = Object.assign({}, config, options); let svg = document.getElementById(i...
module.exports = { // Uncommenting the defaults below // provides for an easier quick-start with Ganache. // You can also follow this format for other networks; // see <http://truffleframework.com/docs/advanced/configuration> // for more details on how to specify configuration options! // networks: { ...
import { css } from 'emotion'; const header = css` width: 100%; min-height: 80px; background-color: #f64060; text-align: center; padding: 60px 20px 0; h1 { color: #fff; margin: 0; padding: 0; color: 32px; } `; const filters = css` width: 90%; max-width: 800px; height: 70px; margin: 0 auto; positi...
var searchData= [ ['mfile',['mFile',['../classDallasTempSensorDS18ErrorBase.html#a565aa7d1f2a85d0fda5f1e2644e51193',1,'DallasTempSensorDS18ErrorBase']]], ['mfunc',['mFunc',['../classDallasTempSensorDS18ErrorBase.html#afb8bccc1bd665c4273992e7aa0cb2758',1,'DallasTempSensorDS18ErrorBase']]], ['mline',['mLine',['../c...
var path = require('path') var appRoot = require('app-root-path') var LodashModuleReplacementPlugin = require('lodash-webpack-plugin') var webpack = require('webpack') module.exports = { entry: path.join(String(appRoot), 'src/index.js'), output: { path: path.join(String(appRoot), 'dist'), filename: 'rate-limite...
'use strict'; function startGame(){ var sumCorrect = 0; //added to keep track of correct answers. var game = confirm('Would you like to start the game?'); if(game === true){ console.log('true'); alert('All questions are either yes or no. They can be answered with either yes or no, y or n. Capitalization does...