text
stringlengths
3
1.05M
/* eslint-disable no-unused-vars */ const Service = require('./Service'); /** * List available location identifers for the instance * List the locations available for the instance of the collection * * collectionId String Identifier (id) of a specific collection * instanceId String Identifier (id) of a specific instan...
/*! jQuery v1.10.2 -css,-effects,-offset,-dimensions | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,a=e.location,o=e.document,s=o.documentElement,l=e.jQuery,u=e.$,c={},p=[],d="1.10.2 -css,-effects,-offset,-dimensions",f=p.concat,h=p...
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- # codi...
"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]; })...
/* * Ext JS Library 3.0 RC2 * Copyright(c) 2006-2009, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.grid.RowSelectionModel=function(config){Ext.apply(this,config);this.selections=new Ext.util.MixedCollection(false,function(o){return o.id;});this.last=false;this.lastActive=false;this.ad...
from django.test import TestCase from django.contrib.auth import get_user_model from .claims import get_claims_provider UserModel = get_user_model() class ClaimProviderTests(TestCase): def setUp(self): self.test_user = UserModel.objects.create_user( "test_user", "test@example.com...
const { chooseExistedProviders } = require('../processor/providers'); const { generateMessageTemplate } = require('../processor/finance'); const FinanceModel = require('../../models/Finance'); const UserModel = require('../../models/Users'); const { getCallbackUserId } = require('../utils/common'); module.exports = bo...
import * as React from "react"; import Svg, { Path } from "react-native-svg"; function SvgArrowDropDownFill(props) { return ( <Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}> <Path fill="none" d="M0 0h24v24H0z" /> <Path d="M12 14l-4-4h8z" /> </Svg> ); } export default Sv...
'use strict'; var mod = module.exports = angular.module('main.apps.st2Rules', [ ]); var controller = require('./rules.controller.js'); var config = require('./rules.config.js'); var run = require('./rules.run.js'); mod .config(config) .controller(controller.name, controller) .run(run) ;
# https://leetcode-cn.com/problems/longest-increasing-subsequence/solution/zui-chang-shang-sheng-zi-xu-lie-dong-tai-gui-hua-2/ from typing import List class Solution: def lengthOfLIS(self, nums: List[int]) -> int: tails = [0] * len(nums) size = 0 for num in nums: i, j = 0, size while i != j:...
var group__orx_plugin = [ [ "orxPLUGIN_CORE_FUNCTION", "structorx_p_l_u_g_i_n___c_o_r_e___f_u_n_c_t_i_o_n.html", [ [ "eFunctionID", "structorx_p_l_u_g_i_n___c_o_r_e___f_u_n_c_t_i_o_n.html#a68d50c0559d42df703a428ac12afddfe", null ], [ "pfnDefaultFunction", "structorx_p_l_u_g_i_n___c_o_r_e___f_u_n_c_t_i_o...
'use strict'; // MODULES // var debug = require( 'debug' )( 'travis-ci-put:headers' ); // HEADERS // /** * FUNCTION: headers( opts ) * Returns request headers based on provided options. * * @param {Object} opts - provided options * @param {String} [opts.token] - access token * @param {String} [opts.accept] - media...
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import tushare as ts import pandas as pd from sklearn.preprocessing import MinMaxScaler #参数设置/parameter setting timesteps = seq_length = 20 #时间窗/window length data_dim = 5 #输入数据维度/dimension of input data output_dim = 1 #输出数据维度/dimension of outp...
# --- # jupyter: # jupytext: # cell_markers: '{{{,}}}' # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # {{{ {"raw_mimetype": "text/latex", "active": ""} # $1+1$ # }}} # {{{ {"raw_mimetype": "text/restructuredtext", "active": ""} # :math:`1+1` # }}} # {{{ {"raw_mim...
const {warmup1, warmup2, warmup3, warmup4, hh} = require('./solution'); describe('the havel hakimi algorithm', () => { it('warmup1: eliminating 0', () => { expect(warmup1([5, 3, 0, 2, 6, 2, 0, 7, 2, 5])).toEqual([5, 3, 2, 6, 2, 7, 2, 5]); expect(warmup1([4, 0, 0, 1, 3])).toEqual([4, 1, 3]); expect(warmup...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2020 Adobe Systems Incorporated ~ ~ 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 ~ ~ htt...
'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; const checkUser = app.middleware.checkUser(null, app); router.get('/auth/login', controller.auth.login); router.post('/auth/ok-check', controller.auth.authOkCheck); router.ge...
"""Phone number to time zone mapping functionality >>> import phonenumbers >>> from phonenumbers.timezone import time_zones_for_number >>> ro_number = phonenumbers.parse("+40721234567", "RO") >>> tzlist = time_zones_for_number(ro_number) >>> len(tzlist) 1 >>> str(tzlist[0]) 'Europe/Bucharest' >>> dual_number...
export default { showDevScreens: __DEV__, useFixtures: false, yellowBox: __DEV__, includeExamples: __DEV__, useReactotron: __DEV__, codepushStaging: false, hotwireDate: true, // force today to be the day of the conf hotwirePush: true, // force push notifications to happen in 5 seconds getAPI: ...
require('fs') .readdirSync(__dirname) .filter(file => file !== 'index.js') .filter(file => file !== 'functions.js') .forEach(filename => { const moduleName = filename.split('.')[0]; exports[moduleName] = require(`${__dirname}/${filename}`); });
// @flow import { SET_DETAILS } from './actionTypes'; import { getVpaasTenant, sendGetDetailsRequest } from './functions'; import logger from './logger'; /** * Action used to set the jaas customer details in store. * * @param {Object} details - The customer details object. * @returns {Object} */ func...
var carConstants = require("./car-constants.json"); module.exports = { worldDef: worldDef, carConstants: getCarConstants, generateSchema: generateSchema } function worldDef(){ var box2dfps = 60; return { gravity: { y: 0 }, doSleep: true, floorseed: "abc", maxFloorTiles: 200, mutable_floo...
import logging import os import platform import shutil from pathlib import Path from rotkehlchen.logging import RotkehlchenLogsAdapter logger = logging.getLogger(__name__) log = RotkehlchenLogsAdapter(logger) def get_xdg_data_home() -> Path: directory = os.environ.get('XDG_DATA_HOME', None) if directory is ...
import graphviz import matplotlib.pyplot as plt try: import cPickle as pickle except: import pickle # Draw neural network with arbitrary topology. def draw_net(net, filename=None, node_names={}, node_colors={}): node_attrs = { 'shape': 'circle', 'fontsize': '9', 'height': '0.2', ...
var models = require('../models/models.js'); // Autoload :id de comentarios exports.load = function(req, res, next, commentId) { models.Comment.find({ where: { id: Number(commentId) } }).then(function(comment) { if (comment) { req.comment = comment; next(); } else{ ...
import React, { Component } from 'react'; import twitterLogo from '../twitter.svg'; import './Login.css'; export default class Login extends Component { state = { username: '', }; handleInputChange = (e) => { this.setState({ username: e.target.value }); }; handleSubmit = e => { e.preventDefau...
"use strict";(self.webpackChunkdocusaurus_2=self.webpackChunkdocusaurus_2||[]).push([[5655],{3905:function(e,t,a){a.d(t,{Zo:function(){return c},kt:function(){return m}});var n=a(7294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t)...
import bs58check from 'bs58check'; import bip39 from 'bip39'; const utility = { b58cencode(payload, prefix) { const n = new Uint8Array(prefix.length + payload.length); n.set(prefix); n.set(payload, prefix.length); return bs58check.encode(Buffer.from(n, 'hex')); }, b58cdecode...
export { default } from './syntax-highlight';
/** * @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 */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angul...
const {transform} = require("@babel/core"); const dedent = require("dedent"); const ET = require("evomaster-client-js").internal.ExecutionTracer; const OR = require("evomaster-client-js").internal.ObjectiveRecorder; const ON = require("evomaster-client-js").internal.ObjectiveNaming; function runPlugin(code) { cons...
const getters = { sidebar: state => state.app.sidebar, device: state => state.app.device, token: state => state.user.token, avatar: state => state.user.avatar, name: state => state.user.name, //权限和菜单 menus: state => state.system.menus, permisaction: state => state.system.permisaction, //tagsView缓存 ...
import { PureComponent } from "react"; import PropTypes from "prop-types"; import HeadNext from "next/head"; class HeadError extends PureComponent { static propTypes = { statusCode: PropTypes.number.isRequired }; render() { const { statusCode } = this.props; return ( <HeadNext> <title>{`${s...
/* * MIT License * * Copyright (c) 2021 Oren Zhang * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modif...
// class import { Bluetooth } from './libs/core/class/Bluetooth' import { HttpHeader, Http } from './libs/core/class/Http' import { Mixin } from './libs/core/class/Mixin' import { Optimize } from './libs/core/class/Optimize' import { Pager } from './libs/core/class/Pager' import { Plus } from './libs/core/class/Plus' i...
// @flow import React, {Component} from 'react' import RemoteComponent from './remote-component' import {connect} from 'react-redux' import {onClose, startTimer, stopTimer, getProfile} from '../../actions/tracker' import type {TypedState} from '../../constants/reducer' import type {TrackerOrNonUserState} from '../../c...
import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import run from "ember-metal/run_loop"; import EmberView from "ember-views/views/view"; import ContainerView from "ember-views/views/container_view"; var parentView, view; QUnit.module("Ember.View#element", { teardown: ...
$(document).ready(function () { $("button").hover(function () { // over $(this).addClass("animated infiniti jello"); }, function () { // out $(this).removeClass("animated infiniti jello"); } ); $(".btn").hover(function () { // over $(this).addClass("animated i...
'use strict'; const _ = require('lodash'); class AwsCompileCodeCommitEvents { constructor(serverless) { this.serverless = serverless; this.provider = this.serverless.getProvider('aws'); this.hooks = { 'package:compileEvents': this.compileCodeCommitEvents.bind(this), }; } compileCodeCommi...
/** * Italian translation for bootstrap-datetimepicker * Enrico Rubboli <rubboli@gmail.com> */ ;(function($){ $.fn.datetimepicker.dates['it'] = { days: ["Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato", "Domenica"], daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab", "Dom"],...
import { GlButton, GlFormInput } from '@gitlab/ui'; import { createLocalVue, shallowMount, mount } from '@vue/test-utils'; import Vuex from 'vuex'; import CiEnvironmentsDropdown from '~/ci_variable_list/components/ci_environments_dropdown.vue'; import CiVariableModal from '~/ci_variable_list/components/ci_variable_moda...
/* eslint-disable import/no-named-as-default */ import React from 'react'; import PropTypes from 'prop-types'; import { Switch, NavLink, Route } from 'react-router-dom'; import HomePage from './HomePage'; import FuelSavingsPage from '../containers/FuelSavingsPage'; import AboutPage from './AboutPage'; import NotFoundPa...
import React, {Component, PropTypes} from 'react'; import { Container, Content, Header, Left, Body, Right, Item, Icon, Button, Input, List, ListItem, Text, Spinner } from 'native-base'; import InfiniteScrollView from 'react-native-infinite-scroll-view'; import Loader from '../../../../../com...
export const white = '#FFF';
// @flow import React, {Component} from 'react' import { Grid, Row, Col } from 'react-bootstrap' import * as signsActions from '../actions/signs' import ManagerPage from '../../common/components/ManagerPage' import CreateSign from '../components/CreateSign' import VisibleSignsList from '../containers/VisibleSignsList...
import Page from './Page'; class PreferencesMainContent extends Page { get formTextInput() { return browser.element('.rocket-form'); } get realNameTextInput() { return browser.element('input[name="realname"]'); } get userNameTextInput() { return browser.element('input[name="username"]'); } get emailTextInput() { r...
""" Copyright 2021-present Airbnb, 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 writing, sof...
// Auto-generated. Do not edit! // (in-package autoware_msgs.msg) "use strict"; const _serializer = _ros_msg_utils.Serialize; const _arraySerializer = _serializer.Array; const _deserializer = _ros_msg_utils.Deserialize; const _arrayDeserializer = _deserializer.Array; const _finder = _ros_msg_utils.Find; const _getB...
'use strict' const SERVICEID = require('../src/config.js').SERVICEID const path = require('path') function resolve (dir) { return path.join(__dirname, '..', dir) } const createLintingRule = () => ({ enforce: 'pre', test: /\.(js|vue)$/, exclude: resolve('node_modules'), include: resolve('src'), loader: 'es...
module.exports = (bearerToken) => { if(!bearerToken){ throw new Error('The Token is Missing'); } if(bearerToken.indexOf('Bearer ') === -1){ throw new Error('Token Invalid Format'); } let token = bearerToken.replace('Bearer ',''); return token; }
/** * @description 同步数据库,以修改数据表的方式,不会清空数据,比较安全 * @author */ const path = require('path') const simpleGit = require('simple-git') const seq = require('../seq') const { isDev } = require('../../../utils/env') // 获取所有 seq model require('require-all')({ dirname: path.resolve('src', 'models'), // src/models 中可能会有 m...
function(instance, properties, context) { /*global google*/ //Load gmapext instances let gmapext = instance.data.gmapext; let getMapAddress = instance.data.getMapAddress; //Load properties let addressField = properties.address_field; let idField = properties.id_field; let tooltipField = properties.tooltip_field; let...
/** * Copyright 2014 Telerik AD * * 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 ...
import React, { Fragment, useState } from 'react'; import { Link, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { login } from '../../actions/auth'; const Login = ({ login, isAuthenticated }) => { const [formData, setFormData] = useState({ ...
// https://www.hackerrank.com/challenges/mark-and-toys/problem /* * Complete the 'maximumToys' function below. * * The function is expected to return an INTEGER. * The function accepts following parameters: * 1. INTEGER_ARRAY prices * 2. INTEGER k */ function maximumToys(prices, k) { let toys = 0; let sor...
""" Functions for creating and restoring url-safe signed JSON objects. The format used looks like this: >>> signing.dumps("hello") 'ImhlbGxvIg:1QaUZC:YIye-ze3TTx7gtSv422nZA4sgmk' There are two components here, separated by a ':'. The first component is a URLsafe base64 encoded JSON of the object passed to dumps(). T...
from .base import * DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': "new_one", 'USER': "summerlabel", 'PASSWORD': "postgres", 'HOST': '127.0.0.1', 'PORT': '5432', } }
/** * The MIT License (MIT) * * Copyright (c) 2014-2018 Mickael Jeanroy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.0.16 (2019-09-24) */ (function (domGlobals) { 'use s...
import {combineReducers} from 'redux'; import food_reducer from './food_reducer'; import ajaxCallsInProgress from './ajaxReducer'; const allReducers = combineReducers({ foods: food_reducer, ajaxCallsInProgress: ajaxCallsInProgress }); export default allReducers;
import React from 'react'; import { Link } from 'react-router-dom'; import css from 'classnames'; export class VideoSection extends React.Component { renderButton() { const { pdf, restricted } = this.props; if (restricted) { return ( <Link to="/buy"> ...
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # # SPDX-License-Identifier: MIT import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names...
(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else { // Browser globals factory(jQuery); } }(function ($) { $.fn.CWCharCount = function(custom) { // Default plugin settings ...
# encoding: UTF-8 # Copyright 2016 Google.com # # 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...
ABC = [int(input()) for i in range(3)] sort_ABC = sorted(ABC)[::-1] for abc in ABC: print(sort_ABC.index(abc)+1)
import { configureStore } from "@reduxjs/toolkit"; import NotesReducer from "./Notes/notes"; export const store = configureStore({ reducer: { notes: NotesReducer, }, });
export const queries = [ ` WITH x AS (select a, b, c, d, whatevewr from table) select a, b+c as next_val, whatever from x `, ` WITH x as (select * from x0), y as (select count(*) as count, category from x0 INNER JOIN y0 ON y0.id = x0.y_id GROUP BY category) SELECT index, length...
'use strict'; var ComponentRegistry = require('../../lib/registry'); var ComponentRegistration = require('../../lib/registration'); describe('ComponentRegistration', function() { var path = 'test'; var registryStub; var singletonBuilder = sinon.stub(); var registration; var builder; beforeEach(function...
//Disable some of the JSLint warnings /*global window,console,Ext,mh*/ (function(){ //Make sure strict mode is on 'use strict'; let logHdr = '[PERMALINK]_s::,pink,', currentOrg = null; Ext.define('GridExamples.view.remoteGrid.RemoteGridController', { extend: 'Ext.app.ViewController', ...
const router = require("express").Router(); const projectsController = require("../../controllers/projectsController"); // Matches with "/api/posts" router .route("/") .get(projectsController.findAll) .post(projectsController.create); // Matches with "/api/posts/:id" router .route("/:id") .get(projectsContr...
import { fireEvent, render } from "@testing-library/react"; import CustomFormControl from "./CustomFormControl"; describe("Testing CustomFormControl Component", () => { describe('Int Input', () => { let displayValue, onValueChange, utils, input beforeEach(() => { displayValue = 999 onValueChange...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
# -*- coding: utf-8 -*- import sys if sys.version_info.major < 3: print("This program requires Python 3 and above to run.") sys.exit(1) __author__ = "Stavros Korokithakis" __email__ = "hi@stavros.io" __version__ = "0.11.0"
#!/usr/bin/python # -*- coding: UTF-8 -*- # coding=UTF-8 execfile("install_packages.py") jieba.dt.cache_file = 'jieba.cache.new' configParser = ConfigParser.RawConfigParser() configParser.read("config/config.ini") mode = configParser.get("config", "mode") separator = configParser.get("config", "separator") enable...
// ealmonte32 // v:edge browser.contextMenus.create({ "id": "id_checkVT", "title": "Send to checkVT", "contexts": ["selection", "link"] }); browser.contextMenus.onClicked.addListener(function(item, tab) { "use strict"; // if both a link and plaintext selection were detected, we remove the plaintext if ((item....
const chalk = require("chalk"); class Person { constructor(name, favoriteColor) { this.name = name; this.favoriteColor = favoriteColor; } speak() { console.log(chalk.hex(this.favoriteColor)(this.name)); } } module.exports = Person;
#!/usr/bin/env python """Simple script to auto-generate the index of notebooks in a given directory. """ import glob import urllib notebooks = sorted(glob.glob('*.ipynb')) tpl = ( '* [{0}](http://nbviewer.ipython.org/urls/raw.github.com/nborwankar/LearnDataScience/master/notebooks/{1})' ) idx = [ """ Notebooks at B...
from flask import Flask, render_template, jsonify, g from app import app, model import json #import sqlalchemy #from flask.ext.sqlalchemy import SQLAlchemy #from flask_sqlalchemy import SQLAlchemy from sqlalchemy import create_engine #from instance import config #from config import * USER="" PAS...
var reformController = new function () { this.viewAction = function () { $('.tab_pane > a').bind('click', function () { $('.tab_pane > a').removeClass('selected'); $(this).addClass('selected'); $('.content_pane').hide(); $('#pane_' + $(this).attr('rel')).show(); $(this).blur(); }); } this.create...
/* CyKIT model_epoc.js - 2018.Dec.26 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ Written by Warren [EPOC 1.0] Headset Model ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ */ function verify_script() { return "epoc"; } function process_EEG_data() { oldx = cy_x; if (scroll_check) { cy_x = canvasWidth - 1; ...
#!/usr/bin/python import sys from PyQt5.QtWidgets import * from PyQt5 import * from PyQt5.QtGui import * from zipfile import ZipFile class Window(QMainWindow): def __init__(self): QMainWindow.__init__(self) self.setWindowTitle('CBZ Reader') self.resize(800, 600) actOpen = QActio...
// Note: // window.MacMessengerVersion will be defined to a string e.g. to "0.1.2" // window.MacMessengerGitRev will be defined to a string e.g. "abc917" // (function () { function last(array) { return array[array.length-1]; } function elemInDOM(e) { return e && e.ownerDocument && e.ownerDocument.con...
import { AppRegistry } from 'react-native'; import App from './App'; AppRegistry.registerComponent('sobotsdkdemo', () => App);
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
const {Translate} = require('@google-cloud/translate').v2; const { MessageEmbed } = require('discord.js'); const projectId = 'thinh-nguyen-272809'; const translate = new Translate({projectId}); translate.key = process.env.trans module.exports = { config: { name: "translate", category: "api", ...
export const c_context_selector_m_full_height__toggle_before_BorderTopWidth = { "name": "--pf-c-context-selector--m-full-height__toggle--before--BorderTopWidth", "value": "0", "var": "var(--pf-c-context-selector--m-full-height__toggle--before--BorderTopWidth)" }; export default c_context_selector_m_full_height__t...
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
// TODO eventualno uraditi caching svih $jquery objekata // ------------------- Modal windows ------------------- // Fires up the modal and shows the passed title and description function showInformationModal(type, title, description) { $('#'+type+'-modal').velocity("fadeIn",{duration: 200}); $('#'+type+'-modal...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import _ from 'lodash'; import { AbstractStyleProperty } from './style_proper...
/* * This helper function returns a flag stating the current environment. * If an environment variable is found with NODE_ENV set to true, (e.g. in Heroku) * then it is a prod environment. * Otherwise, dev. */ export const isProduction = () => { return process.env.NODE_ENV === "production"; };
import React, { Component } from 'react' import { PropTypes } from 'prop-types' import moment from 'moment' //import 'moment/locale/zh-cn'; import Scheduler, { SchedulerData, ViewTypes, DATE_FORMAT, DemoData } from '../src/index' import Nav from './Nav' import ViewSrcCode from './ViewSrcCode' import withDragDro...
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will ...
# -*- 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 or...
define({ "visible": "Tampilkan inset peta secara default", "minWidth": "Lebar min", "minHeight": "Tinggi min", "maxWidth": "Lebar maks", "maxHeight": "Tinggi maks", "minText": "Minimal", "maxText": "maksimal", "attachText": "Tentukan pada sudut peta bagian mana widget ini akan ditempatkan.", "expandTe...
var searchData= [ ['total_5faliens_77',['TOTAL_ALIENS',['../classDiceInvaders_1_1AlienList.html#afbf5f3477524191e67d51ef879018055',1,'DiceInvaders::AlienList']]] ];
import React from "react" import { graphql } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" import Columns from "../components/columns" import Container from "../components/container" import Project from "../components/project" import Section from "../components/section" ...
'use strict' const { gql } = require('apollo-server-express') module.exports = gql` type Mutation { add_test( "The string value" value_string: String, "The number value" value_number: Int, "The boolean value" value_boolean: Boolean): Test @isTest } `
import { transKey } from './transKey' describe('test transkey.js', () => { it('should trans all key', () => { const obj = { 子: '老鼠', 丑: '老牛', 寅: '老虎' } const map = { 1: '子', 2: '丑', 3: '寅' } expect(transKey(obj, map)).toStrictEqual({ 1: '老鼠', 2: '老牛', 3: '老虎', }) }) })
/*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ /* */ const emptyObject = Object.freeze({}); // These helpers produce better VM code in JS engines due to their // explicitness and function inlining. function isUndef (v) { return v === undefined || v === null } function isDef...
var forEachBeautifiedFile = require("./forEachBeautifiedFile"); var diff = require("diff"); function normalizeNewLines(str) { return str.replace(/\r\n?/g, "\n"); } var errors = 0; forEachBeautifiedFile(function(item, callback) { var content = normalizeNewLines(item.content); var beautifiedContent = normalizeNewLi...