text
stringlengths
3
1.05M
import Backbone from 'backbone'; import 'backbone-forms'; export default class ObjectListEditor extends Backbone.Form.editors.Base { get hasNestedForm() { return false; } constructor(options, ...params) { super(options, ...params); if (!this.form) throw new Error('Missing required option \'form"\''...
#!/usr/bin/env python3 """Combine logs from multiple bitcoin nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile. If no argument is provided, the most recent test directory will be used.""" import argparse from collection...
var test = require('tape') var aabb = require('../aabb') var allMethods = Object.keys(aabb) var handledMethods = [] test('aabb.create', function (t) { var min = [Infinity, Infinity, Infinity] var max = [-Infinity, -Infinity, -Infinity] t.deepEqual(aabb.create(), [min, max], 'should create a new abb') handledM...
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{463:function(e,s,t){"use strict";t.r(s);var a=t(44),n=Object(a.a)({},(function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("p",[e._v("Output ANSI codes to change color.")]),e._v(" "...
window.FontAwesomeCdnConfig = { autoA11y: { enabled: false }, asyncLoading: { enabled: false }, reporting: { enabled: false }, useUrl: "use.fontawesome.com", faCdnUrl: "https://cdn.fontawesome.com:443", code: "font" }; !function(){function a(a){var b,c=[],d=docu...
/* @flow */ export const emptyObject = Object.freeze({}) // These helpers produce better VM code in JS engines due to their // explicitness and function inlining. export function isUndef (v: any): boolean %checks { return v === undefined || v === null } export function isDef (v: any): boolean %checks { return v ...
module.exports = function(app, opts) { let service = {name: 'mockPlugin'}; return service; };
from plotly.basedatatypes import BaseTraceHierarchyType import copy class Contours(BaseTraceHierarchyType): # x # - @property def x(self): """ The 'x' property is an instance of X that may be specified as: - An instance of plotly.graph_objs.surface.contours.X ...
from django.contrib import admin from .models import Album, Song # Register your models here. admin.site.register(Album) admin.site.register(Song)
// @flow import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import ExportPaperWalletMnemonicVerificationDialog from '../../../../components/wallet/settings/paper-wallet-export-dialogs/ExportPaperWalletMnemonicVerificationDialog'; import ExportPaperWalletCertificateDialog from '../....
from jax import jit, partial class Preprocessor(): def __init__(self, backend='numpy'): self.backend = backend def fit_transform(self, X, th=.95, keep_dim=False): ''' retain th % (defalut 95%) power ''' if self.backend in ('numpy', 'jax'): return self._fit_...
exports.handler = function (context, event, callback) { callback(null, { name: "Twilio SMS Basic", description: "A way to send SMS messages from within your Jira application", key: context.APP_KEY, baseUrl: 'https://' + context.DOMAIN_NAME, authentication: { type: "none", }, modules:...
"use strict"; $(function() { $.contextMenu({ selector: '.context-menu-simple', callback: function(key, options) { var m = "clicked: " + key; window.console && console.log(m) || alert(m); }, items: { "edit": {name: "Edit", icon: "edit"}, ...
module.exports = { entry: './src/main.js', output: { filename: 'sandstorage.js', library: 'SandStorage', libraryTarget: 'umd', path: './build' }, module: { loaders: [ { exclude: ['node_modules', 'test'], loader: 'babel',...
# -*- coding: utf-8 -*- """ sphinx.directives.other ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from docutils import nodes from docutils.parsers.rst import Directive, directives from docutils.parsers.rst.directive...
""" Callables What are callables? Any object that can be called using the () # operator always return a value -> like functions and methods -> but it goes beyond these two... Many other objects in Python are also callable To see if an object is callable, we can use the builtin function: callable ...
import random def test_shift_left(): n = random.randint(1, 100) my_list = [random.randint(1, 100) for _ in range(n)] my_list_before = my_list.copy() for i in range(n): my_list.append(my_list.pop(0)) assert my_list_before == my_list # def test_key_schedule_core(): # pass # def test_e...
const resolveConfig = require("tailwindcss/resolveConfig"); const tailwindConfig = require("./tailwind.config.js"); const fullConfig = resolveConfig(tailwindConfig); module.exports = { siteMetadata: { title: `Get Hitched`, description: `Get Hitched Entertainment`, author: `Gatsboy Web <hello@gatsboy.com...
/**@preserve GeneXus Java 10_3_12-110051 on December 12, 2020 18:51:40.53 */ gx.evt.autoSkip = false; gx.define('himportatxt', false, function () { this.ServerClass = "himportatxt" ; this.PackageName = "" ; this.setObjectType("web"); this.setOnAjaxSessionTimeout("Warn"); this.hasEnterEvent = true; ...
import React, {Component} from 'react'; import Paper from '@material-ui/core/Paper'; import Button from '@material-ui/core/Button'; import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup'; import TextField from '@material-ui/core/TextField'; import { withStyles } from '@material-ui/core/styles'; import...
# # @lc app=leetcode id=204 lang=python3 # # [204] Count Primes # # https://leetcode.com/problems/count-primes/description/ # # algorithms # Easy (30.14%) # Likes: 1412 # Dislikes: 476 # Total Accepted: 287.8K # Total Submissions: 952.7K # Testcase Example: '10' # # Count the number of prime numbers less than a ...
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class BitlyAccount(ProviderAccount): def get_profile_url(self): return self.account.extra_data.get('profile_url') def...
const projects = [ { name: 'Driving Extended', link: 'https://www.gmodstore.com/market/view/740531242402512898', desc: "Driving Extended offers a better driving experience on your Garry's Mod server.", type: 'Commercial', license: 'Custom', language: 'Lua', favourite: true, }, { na...
import Wow from 'wow.js'; import '@fortawesome/fontawesome-free/js/all.js'; export default { init() { const wow = new Wow(); wow.init(); // JavaScript to be fired on all pages $( '.carousel-item' ).first().addClass('active'); }, finalize() { // JavaScript to be fired on all pages, after page ...
import Backbone from 'backbone'; import { bindAll, isElement, isUndefined, debounce } from 'underscore'; import { on, off, getUnitFromValue, isTaggableNode, getViewEl, hasWin } from 'utils/mixins'; import { isVisible, isDoc } from 'utils/dom'; import ToolbarView from 'dom_components/view/ToolbarView'; impor...
# This problem will be solved with functional programming # in which you have a function (interface) that accepts another function (implementation) and calls it as local # We have cons - high order function that accepts two integers and returns another function, # which accepts the third function that knows how to oper...
from django.db import models from django.template.defaultfilters import slugify from elasticsearch_dsl import field from djesrf.models import Searchable, Aggregateable class Channel(Searchable): name = models.CharField(max_length=255, unique=True) slug = models.SlugField(max_length=255) class Mapping(ob...
import{B as j}from"./TableImg.513742d5.js";import"./BasicForm.0ba2e15f.js";import{u as x}from"./useTable.6e5baa13.js";import{P as A}from"./index.ea14bdae.js";import{A as T,b0 as E,bb as b,as as g,bx as d,cs as _,br as c,a0 as s,B as v,a1 as y,a6 as e,w as u,H as n,ae as t}from"./vendor.5879c5ca.js";/* empty css ...
import React, { useEffect, useState } from 'react'; import io from 'socket.io-client'; import { Link } from 'react-router-dom'; import './Main.css'; import api from '../services/api'; import logo from '../assets/logo.svg'; import dislike from '../assets/dislike.svg'; import like from '../assets/like.svg'; import itsa...
# -*- coding: utf-8 -*- """Non-graphical part of the Set Cell step in a SEAMM flowchart """ import logging import pprint # noqa: F401 import set_cell_step import seamm from seamm_util import ureg, Q_ # noqa: F401 import seamm_util.printing as printing from seamm_util.printing import FormattedText as __ # In addit...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../..")); else if (typeof define == "function" && define.amd) // AMD define(...
# /bin/python import boto import boto.s3.connection import glob import ntpath import socket #import key from key import * import datetime from datetime import date, timedelta date_before=(datetime.date.today() - timedelta(1)).strftime("%Y%m%d") file_pattern = '/var/log/ceph/'+'*'+date_before+'.gz' listing = glob.glob(...
import React, { PureComponent } from 'react'; export default class BasicList extends PureComponent { componentDidMount() { // const { dispatch } = this.props; // dispatch({ // type: 'list/fetch', // payload: { // count: 5, // }, // }); } re...
""" Functions for training HMMs: forward-backward, alignments, state-tying, and mixing up """ import os, sys import util HEREST_CMD = 'HERest' #HEREST_CMD = '/u/arlo/bin/fast_htk/v0/HERest' def run_iter(model, root_dir, prev_dir, mlf_file, model_list, mix_size, iter, extra): """ Run an iteration of Baum-Welc...
import math import time import numpy as np from data import obstacles from data.Map import Map from data.plotting import plot_clear, plot_set_title, plot_map, plot_path, plot_show, \ plot_set_button_click_callback, plot_after_compute class PotentialField: def __init__(self, env, start, goal, k_att, k_rep, r...
var searchData= [ ['i2c_5fexported_5fconstants_4705',['I2C_Exported_Constants',['../d6/d9c/group___i2_c___exported___constants.html',1,'']]], ['i2c_5fexported_5ffunctions_4706',['I2C_Exported_Functions',['../dd/d69/group___i2_c___exported___functions.html',1,'']]], ['i2c_5fexported_5ftypes_4707',['I2C_Exported_Ty...
!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r...
#!/usr/bin/env python # # sema Time semaphore actions in PostgreSQL and print # wait/hold time as a histogram. For Linux, uses BCC, eBPF. # # usage: sema $PG_BIN/postgres [-p PID] [-d] from __future__ import print_function from time import sleep from bcc import BPF import argparse import ctypes as ct impo...
import typing import collections def prime_factorize( n: int, ) -> typing.Tuple[typing.List[int], typing.List[int]]: primes = [] count = [] for i in range(2, n + 1): if i * i > n: break if n % i: continue primes.append(i) cnt = 0 while n % i == 0: ...
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
function _Vb(){} evb(845,1,uRc,_Vb);_.Dc=function aWb(a){icc('\u062A\u0648\u0642\u0641 \u0639\u0646 \u0648\u0643\u0632\u064A!')};evb(846,1,xRc);_.lc=function eWb(){var a,b,c;Oxb(this.a,(a=new xnc,a.e[BXc]=10,b=new Oec('\u0632\u0631 \u0639\u0627\u062F\u064A',new _Vb),fyc(b.cb,dTc,'cwBasicButton-normal'),unc(a,b),c=new N...
a = 5 b = 4 c = (13 - 4) / 2 print(c) #4
/** * Checks for intersection between two lines as defined by the given start and end points. * If asSegment is true it will check for line segment intersection. If asSegment is false it will check for line intersection. * Returns the intersection segment of AB and EF as a Point, or null if there is no intersection. * ...
// @flow import type { Observable } from "rxjs"; import { from } from "rxjs"; import connectManager from "@ledgerhq/live-common/lib/hw/connectManager"; import type { Input, ConnectManagerEvent } from "@ledgerhq/live-common/lib/hw/connectManager"; const cmd = (input: Input): Observable<ConnectManagerEvent> => from(con...
// https://facebook.github.io/relay/docs/en/fragment-container.html // https://github.com/gatsbyjs/gatsby/tree/master/examples/gatsbygram import { graphql } from 'gatsby' export const siteMetadataFragment = graphql` fragment Index_siteMetadata on Site { siteMetadata { title description siteUrl...
/* * Copyright (c) 2012 Francisco Salavert (ICM-CIPF) * Copyright (c) 2012 Ruben Sanchez (ICM-CIPF) * Copyright (c) 2012 Ignacio Medina (ICM-CIPF) * * This file is part of JS Common Libs. * * JS Common Libs is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Li...
/** PURE_IMPORTS_START .._.._internal_Observable,.._.._internal_observable_race PURE_IMPORTS_END */ import { Observable } from '../../internal/Observable'; import { race as staticRace } from '../../internal/observable/race'; Observable.race = staticRace; //# sourceMappingURL=race.js.map
# -*- coding: utf-8 -*- import json import ConfigParser import requests def config_init(): """ :return: """ global SERVER config = ConfigParser.RawConfigParser() config.read('config.ini') SERVER = 'http://{}:{}'.format(config.get('server', 'host'), config.get('server', 'port')) def get_r...
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class InvoiceCredSerializer(BaseSchema): # CompanyProfile swagger.json password = fields.Str(required=False) username = fi...
const { ipcMain } = require('electron'); const { send: sendMainWindow } = require('./windows/main'); const { create: createControlWindow, send: sendControlWindow } = require('./windows/control'); const signal = require('./signal'); module.exports = () => { ipcMain.handle('login', async () => { const { code } = a...
const helper = { /** * true if field is missing. false otherwise * * @param {*} field */ isFieldMissing: (field) => { return typeof field === 'undefined' || field === null; }, }; export default helper;
import contextlib import sys import os.path from ebmlite import core def errPrint(msg): sys.stderr.write("%s\n" % msg) sys.stderr.flush() exit(1) @contextlib.contextmanager def load_files(args, binary_output=False): if not os.path.exists(args.input): sys.stderr.write("Input file does not ex...
/* eslint no-loop-func : 0 */ "use strict"; // deps const { join } = require("path"); const { stat } = require("fs"); const assert = require("assert"); const Model = require(join(__dirname, "..", "lib", "api", "model.js")); // consts const SOUNDS_DIRECTORY = join(__dirname, "..", "lib", "public", "sounds")...
const express = require('express'); const validate = require('express-validation'); const paramValidation = require('../../config/param-validation'); const studentCtrl = require('./student.controller'); const router = express.Router(); // eslint-disable-line new-cap router.route('/') /** GET /api/students - Get lis...
//imports const Block = require('./block'); const Blockchain = require('./blockchain'); const Validator = require('./validator'); const Miner = require('./miner'); const Transaction = require('./transaction'); //create the blockchain let blockchain = new Blockchain(); //create the miner let miner = new Miner(); //cr...
import React from 'react'; import { connect } from 'react-redux'; import { __, getFullZoneName } from '../../helpers/translation'; import { getCo2Scale } from '../../helpers/scales'; import { flagUri } from '../../helpers/flags'; import CircularGauge from '../circulargauge'; import Tooltip from '../tooltip'; import {...
import CoverSplit from "../components/CoverSplit"; import { Card } from "../components/Banner"; import { Commons } from "../components/Features"; const Index = () => { return ( <section className="home"> <CoverSplit url="/pricing" /> <Commons /> <Card /> </section> ); }; export default I...
const http = require('http'); const config = require('./config.js'); const PORT = process.argv[2] || config.port; const url = require('url'); const fs = require('fs'); const path = require('path'); const zlib = require('zlib'); const util = require('./util.js'); const mime = require('./mime.js'); const server = http.cr...
src =Split(''' networkapp.c ''') component =aos_component('networkapp', src) if aos_global_config.get("BENCHMARKS")==1: component.add_comp_deps("tools/benchmarks") component.add_global_macros("CONFIG_CMD_BENCHMARKS") dependencis =Split(''' kernel/yloop tools/cli network/netmgr '...
import { inject } from '@k-ramel/react' import { isCfpOpened } from 'store/reducers/data/events.selector' import { isRejected, isAccepted, isSubmitted, isConfirmed, isDeclined, isOutOfDateForEvent, } from 'store/reducers/data/talks.selector' import Status from './status' const mapStore = (store, { talkId,...
const { execSync } = require("child_process"); const path = require("path"); const { EOL } = require("os"); const run = (cmd) => { process.stdout.write(`> ${cmd}${EOL}`); execSync(cmd, { stdio: "inherit" }); }; const chdir = (dir, fn) => { const saved = process.cwd(); try { process.chdir(dir); fn(dir)...
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import pygame import sys from pygame.locals import * # inicjacja modułu pygame pygame.init() # szerokość i wysokość okna gry OKNOGRY_SZER = 800 OKNOGRY_WYS = 400 # kolor okna gry, składowe RGB zapisane w tupli LT_BLUE = (230, 255, 255) # powierzchnia do rysowania, czy...
import React from "react"; import FormGroup from "./FormGroup"; import "./Style.css"; class FormRadio extends React.Component { shouldDisplayError = () => { return this.props.showError && this.props.errorText !== ""; }; render() { return ( <div> <FormGroup id={this.props.id + "-g...
// Compiled by ClojureScript 1.10.773 {:static-fns true, :optimize-constants true} goog.provide('ajax.xhrio'); goog.require('cljs.core'); goog.require('cljs.core.constants'); goog.require('goog.net.EventType'); goog.require('goog.net.ErrorCode'); goog.require('goog.net.XhrIo'); goog.require('goog.net.XhrManager'); goog...
/** * @author Dimitry Kudrayvtsev * @version 2.0 */ d3.gantt = function() { var FIT_TIME_DOMAIN_MODE = "fit"; var FIXED_TIME_DOMAIN_MODE = "fixed"; var margin = { top : 20, right : 40, bottom : 20, left : 150 }; var timeDomainStart = d3.time.day.offset(new Da...
/* 게시글의 상단 부분 Component 게시글 유형에 따라 세 번째 버튼이 다르고 (구매/관심없음) 게시글을 쓴 유저의 정보를 요약해서 보여줌 */ import React, { useState } from "react"; import { useSelector } from "react-redux"; import User from "../user/User"; import "./Post.css"; import { customHistory } from "index"; import { CopyToClipboard } from "react-copy-to-clipboard...
var ReducerApp = require('../classes/ReducerApp'); var reducerApp = new ReducerApp(process.env.PORT, process.argv[2]).start();
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ """bn URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/to...
const readLine = require('readline-sync') const state = require('./states') function robot() { const content = { maximumSentences: 7 } content.searchTerm = askAndReturnSearchTerm() content.prefix = askAndReturnPrefixTerm() state.save(content) function askAndReturnSearchTerm() { ...
# Import libraries from bs4 import BeautifulSoup, SoupStrainer import requests import csv import pandas as pd data = [ "https://www.linkedin.com/learning/strategic-planning-foundations", "https://www.linkedin.com/learning/managerial-economics", "https://www.linkedin.com/learning/project-management-foundations-4", "htt...
'use strict'; /*eslint-disable no-use-before-define*/ var common = require('./common'); var YAMLException = require('./exception'); var DEFAULT_FULL_SCHEMA = require('./schema/default_full'); var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe'); var _toString = Object.prototyp...
function gMap () { if ($('.google-map').length) { $('.google-map').each(function () { // getting options from html var Self = $(this); var mapName = Self.attr('id'); var mapLat = Self.data('map-lat'); var mapLng = Self.data('map-lng'); var iconPath = Self.data('icon-path'); var mapZoom = Self....
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'table', 'id', { border: 'Ukuran batas', caption: 'Judul halaman', cell: { menu: 'Sel', insertBefore: 'Sisip Sel Sebelum', insertAfter: 'Sisi...
export const NETWORK_URLS = { mainnet: 'https://api.zilliqa.com', testnet: 'https://dev-api.zilliqa.com', }
import asyncio import logging from functools import wraps from typing import List, Optional, SupportsInt # noqa import aiomysql import pymysql from pypika import MySQLQuery from tortoise.backends.base.client import ( BaseDBAsyncClient, BaseTransactionWrapper, Capabilities, ConnectionWrapper, ) from t...
/** * Create by capricorncd * 2018/5/16 0016. * https://github.com/capricorncd */ import '../style/image-preview.styl' import util from './util' import dom from './dom' import ic from './img-controls' import keyboard from './keyboard' import broadcast from './broadcast' import { mouseWheel, filterOptions, fmt...
/*! bespoke-theme-mozilla-sandstone v0.0.2 © 2015 Benjamin Sternthal, MIT License */ !function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var a;"undefined"!=typeof window?a=window:"undefined"!=typeof global?a=global:"undefined"!=typeof self&&(a=self);v...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var printWarning = function() {}; if (process.env.NODE_ENV !== 'production') { var ReactPropTypesSecret = require('./l...
/* Tailwind - The Utility-First CSS Framework A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink), David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger). Welcome to the Tailwind config file. This is where you can customize Tailwind specifically for your project. Don't be intimidated by th...
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: encodings.utf_8 import codecs encode = codecs.utf_8_encode def decode(input, errors='strict'): return codecs.utf_8_decode(input, er...
import React, { useState } from 'react'; import { NavLink } from 'react-router-dom'; const Sidebar = ({ isOpen }) => { const [dropDowns, setDropDowns] = useState(false); const setMargin = isOpen ? '0' : '-60%'; return ( <div className="sidebar" style={{ marginLeft: setMargin }}> <div className="sideb...
import createBaseFor from './_createBaseFor'; /** * This function is like `baseFor` except that it iterates over properties * in the opposite order. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'link', 'sr', { acccessKey: 'Приступни тастер', advanced: 'Напредни тагови', advisoryContentType: 'Advisory врста садржаја', a...
from django.apps import AppConfig class UrlreduceConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'urlreduce'
'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var crypto = require('crypto'); var Subscriber = require('../newsletter/newsletter.model'); var authTypes = ['github', 'twitter', 'facebook', 'google']; var deepPopulate = require('mongoose-deep-populate')(mongoose); var UserSchema = new ...
"use strict"; const DBService = require("moleculer-db"); const CosmosAdapter = require("moleculer-db-adapter-cosmos"); module.exports = opt => { return { /** * Load DB Methods. More info: https://moleculer.services/docs/0.14/moleculer-db.html * This will extend `pages` service with DB handler...
'use strict' import yo from 'yo-yo' import showWhy from '../../../navigation/showWhy' import showDifference from '../../../navigation/showOurDifference' import showCommunity from '../../../navigation/showCommunity' module.exports = { template: yo` <ul class="nav row no-gutters justify-content-start" id="navbar-...
let board = Array( Array(0,0,0,0), Array(0,0,0,0), Array(0,0,0,0), Array(0,0,0,0) ); let score = 0; let n; let boardId = Array( Array("00","01","02","03"), Array("10","11","12","13"), Array("20","21","22","23"), Array("30","31","32","33") ); let dx = [-1, 0, 1, 0], dy = [0, 1, 0, -1]...
const { MessageEmbed } = require("discord.js") //HLHbZf4o5McSjVq3 module.exports = { commands: 'ping', description: 'Logs ping of current client and API.', category: 'info', callback: (message, arguments, text, bot) => { message.channel.send('**Testing ping...**').then(async result => { ...
# 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...
// Copyright 2009 the Sputnik authors. All rights reserved. /** * DecimalLiteral :: DecimalIntegerLiteral ExponentPart * * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js * @description ExponentPart :: e -DecimalDigits */ //CHECK#0 if (0e-1 !== 0) { $ERROR('#0: 0e-1 === 0'); } //CHECK#1 if (1e-1 !== 0.1) { $ERROR('#...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a ...
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import Ext_draw_Component from './Ext/draw/Component.js'; import ElementParser from './ElementParser.js'; var EWCDraw = /*#__PURE__*/ function (_Ext_draw_Component) { _inheritsLoose(EWCDraw, _Ext_draw_Component); function EWCDraw() { var _this...
require("ember-handlebars/ext"); require("ember-views/views/view"); require("ember-handlebars/controls/text_support"); /** @module ember @submodule ember-handlebars */ var get = Ember.get, set = Ember.set; /** The internal class used to create textarea element when the `{{textarea}}` helper is used. See [hand...
/*! * tangram.js framework source code * * static see.highlight.language * * Date: 2017-04-06 */ ; tangram.block([ '$_/see/highlight/highlight.xtd', '$_/see/highlight/languages/clike.xtd' ], function(_, global, undefined) { var document = global.document, location = global.location, hi...
require('bee-button-group/build/ButtonGroup.css'); module.exports = require('bee-button-group');
const controller = require('../controllers/postal') const validate = require('../controllers/postal.validate') const AuthController = require('../controllers/auth') const express = require('express') const router = express.Router() require('../../config/passport') const passport = require('passport') const requi...
import Ember from 'ember'; import WarnOnExitRouteMixin from '../mixins/warn-on-exit-route'; import FramePlayerRoute from '../mixins/frame-player-route'; // Adapted from Experimenter preview route https://github.com/CenterForOpenScience/experimenter/blob/develop/app/routes/experiments/info/preview.js export default Emb...
var LEVEL = { TRACE: 0, DEBUG: 1, INFO: 2, WARN: 3, ERROR: 4, FATAL: 5, }; var level = 'TRACE'; var logger = {}; function setLevel(newLevel) { if (!Object.keys(LEVEL).includes(newLevel)) { throw new Error('Unknown log level ' + newLevel); } Object.keys(LEVEL).forEach(function(l) { if (LEVE...
/* ========================================================================================= File Name: themeConfig.js Description: Theme configuration ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Aut...