text
stringlengths
3
1.05M
/** * Inline development version. Only to be used while developing since it uses document.write to load scripts. */ /*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */ /*globals $code */ (function(exports) { "use strict"; var html = "", baseDir; var modules = {}, expos...
(function (scope) { var ephox = scope.ephox = scope.ephox || {}; var bolt = ephox.bolt = ephox.bolt || {}; var def = function (deps, factory) { return factory.apply(null, deps); }; var kernel = bolt.kernel = bolt.kernel || {}; kernel.api = kernel.api || {}; kernel.async = kernel.api || {}; kernel.fp = ke...
import React, { Component } from "react"; import FeedContent from "./../post-feed/FeedContent"; import { Header, Icon, Segment } from "semantic-ui-react"; import { GlobalConsumer } from "./../../contexts"; class TagFeed extends Component { render() { const { tagName, context } = this.props; return ( <d...
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libxinerama(AutotoolsPackage, XorgPackage): """libXinerama - API for Xinerama extension to...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var component_1 = require("../common/component"); component_1.VantComponent({ field: true, relation: { name: 'radio-group', type: 'ancestor', linked: function (target) { this.parent = target; ...
import React from 'react'; import { shallow } from 'enzyme'; import About from '../About'; it('renders without crashing', () => { shallow(<About />); });
import Yoga from 'yoga-layout'; import Base from './Base'; import { fetchImage } from '../utils/image'; const SAFETY_HEIGHT = 10; // We manage two bounding boxes in this class: // - Yoga node: Image bounding box. Adjust based on image and page size // - Image node: Real image container. In most cases equals Yoga no...
# Time: O(m * n) # Space: O(m * n) try: xrange # Python 2 except NameError: xrange = range # Python 3 class Solution(object): def maxKilledEnemies(self, grid): """ :type grid: List[List[str]] :rtype: int """ result = 0 if not grid or not grid[0]:...
import Vue from 'vue' import VueI18n from 'vue-i18n' import swal from 'sweetalert2' Vue.use(VueI18n) const { locale, translations } = window.config const i18n = new VueI18n({ locale, messages: { [locale]: translations } }) swal.setDefaults({ reverseButtons: true, confirmButtonText: 'ok', cancelButton...
const sortColors = require('./01') test('排序 1', () => { expect(sortColors([2, 0, 2, 1, 1, 0])).toEqual([0, 0, 1, 1, 2, 2]) }) test('排序 2', () => { expect(sortColors([2, 0, 1])).toEqual([0, 1, 2]) }) test('排序 3', () => { expect(sortColors([0])).toEqual([0]) }) test('排序 4', () => { expect(sortColors([1])).toE...
// postcss.config.js module.exports = { plugins: [ require('postcss-import'), require('tailwindcss'), require('autoprefixer'), ], };
/* cron "30 21 * * *" jd_bean_change.js, tag:资产变化强化版by-ccwav */ //详细说明参考 https://github.com/ccwav/QLScript2. // prettier-ignore !function (t, e) { "object" == typeof exports ? module.exports = exports = e() : "function" == typeof define && define.amd ? define([], e) : t.CryptoJS = e() }(this, function () { var h, t,...
import Avatar from '@material-ui/core/Avatar' import ListItem from '@material-ui/core/ListItem' import ListItemText from '@material-ui/core/ListItemText' import { withStyles } from '@material-ui/core/styles' import Link from 'next/link' import React, { Component } from 'react' const styles = theme => ({ listItem: { ...
/** * @Author: Created By McChen * @Date: 2017/10/27 * @Mail: mcchen.club@gmail.com * @Version: V1.0.0 */ import Vue from 'vue' import loadingBar from './src/loading-bar.vue' // 实例对象 let instance // 定时器 let timer let LoadingBar = { create () { if (!instance) { // 组件构造器 const LoadingBarConstru...
import logging import typing as t from datetime import date, datetime import discord import feedparser from bs4 import BeautifulSoup from discord.ext.commands import Cog from discord.ext.tasks import loop from bot import constants from bot.bot import Bot PEPS_RSS_URL = "https://www.python.org/dev/peps/peps.rss/" RE...
const AWS = require('aws-sdk'); const { v4: uuidv4 } = require('uuid'); const chime = new AWS.Chime({ region: 'us-east-1' }); chime.endpoint = new AWS.Endpoint('https://service.chime.aws.amazon.com'); async function getMeetingAttendees(existingMeetingId) { console.log('Listing Attendees for MeetingID:', meetingId) ...
/** * @function main module for directives * @author julio_c.silva@outlook.com * @since 11/11/2017 * @returns */ (function __directives(){ 'use strict'; angular.module(modules.directives, []); })();
var exphbs = require('express-handlebars'); var path = require('path'); module.exports = function(app){ app.engine('hbs',exphbs({ extname: '.hbs', defaultLayout: 'main', layoutsDir: path.resolve("app/views/layouts/"), partialsDir: path.resolve("app/views/partials") })); app.set('view engine', 'hb...
"use strict" import request from './utils/request' import React from 'react' import App from './App/App.jsx' import Router, {Route} from 'react-router' import ProposalBoard from './ProposalBoard/ProposalBoard.jsx' import Proposal from './Proposal/Proposal.jsx' import Category from './Category/Category.jsx' import HTML ...
throw new Error("Bad esbuild configuration");
// @flow import express from 'express'; import { categoryService, type Category } from '../services/category-service'; const router: express$Router<> = express.Router(); /** * Category API handling */ // Get all categories router.get('/', (req, res) => { categoryService .getCategories() .then((rows) => ...
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
# 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, software # distributed u...
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import time import schedule dir = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0] sys.path.append(dir) from utilities.prompt_format import item from unosat_flood_portal_collect import collect as Collect def Wrapper(patch=False): '''Wrap...
import itertools import numba import numpy as np import scipy.sparse from ..compatibility import range, zip, zip_longest from ..utils import isscalar, equivalent, _zero_of_dtype def elemwise(func, *args, **kwargs): """ Apply a function to any number of arguments. Parameters ---------- func : Ca...
import Document, {Head, Main, NextScript} from 'next/document' import {ServerStyleSheet, injectGlobal} from 'styled-components' // How to inject global styles with Styled-components injectGlobal` html { background: #ebeff2; } body { font-family: "menlo", serif; line-height: 1.6; } `; export defau...
const { isPromisePending } = require('../../../lib/promisePredicates'); describe('lib/promisePredicates/isPromisePending', () => { it('should be a function', () => { expect(isPromisePending).to.be.instanceof(Function); }); it('should return true for pending promise', async () => { exp...
const { Post, User, Comment } = require('../../models'); const withAuth = require('../../a_utils/auth.js'); const router = require('express').Router(); router.get('/', (req, res) => { console.log(req.session); Post.findAll({ attributes: [ 'id', 'title', 'post_text',...
import React, { Component } from "react"; import { Container, Icon, Image, Grid, Header, Segment, Card } from "semantic-ui-react"; import Layout from "../Layout.js"; import '../../css/Profile.css'; import NoTextLogo from "../../img/logo-no-text-white.png"; import { jwt } from '../../tools/jwt'; import Parallax from "r...
var setting = { host : process.env.DB_HOST, port : process.env.DB_PORT, database : process.env.DB_NAME, user : process.env.DB_USER, password : process.env.DB_PASSWORD }; module.exports = { mongodb_dev: setting };
import asyncio from cProfile import label import json from idom import html, run, use_state, component, event import requests from sanic import Sanic, response from black import click from pages.utils import switch_state from components.input import Input, Selector2 from components.layout import Row, Column, Containe...
""" A tool for inspecting Python pickles AUTHORS: - Carl Witty (2009-03) The explain_pickle function takes a pickle and produces Sage code that will evaluate to the contents of the pickle. Ideally, the combination of explain_pickle to produce Sage code and sage_eval to evaluate the code would be a 100% compatible i...
import pytest from .pages.main_page import MainPage from .pages.basket_page import BasketPage from .pages.product_page import ProductPage import time @pytest.mark.login_guest class TestLoginFromMainPage(): def test_guest_should_see_login_link(self, browser): url = "http://selenium1py.pythonanywhere.com/" ...
{"response":[{"bookname":"James","chapter":"3","verse":"1","text":"Not many of you should become teachers, my brothers and sisters, because you know that we will be judged more strictly.","title":"The Power of the Tongue"},{"bookname":"James","chapter":"3","verse":"2","text":"For we all stumble in many ways. If someone...
'use strict' const Element = require('../object/Element'); // ================================================================================ // * Page <SDUDOC Server Plugin> // -------------------------------------------------------------------------------- // Designer: Lagomoro <Yongrui Wang> // From: SDU <Shan...
var expect = require('chai').expect; var AWS = require('../'); var fs = require('fs'); describe('S3 with baseBath', function () { AWS.config.basePath = __dirname + '/local/'; var s3 = AWS.S3(); var marker = null; it('should list files in bucket with less than 1000 objects and use Prefix to filter', function (...
# Copyright 2015 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...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
let kafka = require('kafka-node'), ConsumerOffsetOutOfSyncChecker = require('../healthCheckers/consumerOffsetOutOfSyncChecker'), KafkaThrottlingManager = require('../throttling/kafkaThrottlingManager'), _ = require('lodash'); module.exports = class KafkaStreamConsumer { init(config, logger){ le...
//@flow import * as React from "react"; import {render, screen} from "@testing-library/react"; // eslint-disable-next-line import/no-unassigned-import import "@testing-library/jest-dom/extend-expect"; import OptionItem from "../option-item.js"; import SingleSelect from "../single-select.js"; import userEvent from ".....
/* * http-test.js: Tests for basic HTTP server(s). * * (C) 2011, Nodejitsu Inc. * MIT LICENSE * */ var assert = require('assert'), http = require('http'), vows = require('vows'), request = require('request'), director = require('../../../lib/director'), helpers = require('../helpers'), ha...
const textArea = document.querySelector('#description'); const count = document.querySelector('.count'); textArea.addEventListener("keyup", e => { textArea.style.height = "auto"; let scrollHeight = e.target.scrollHeight; textArea.style.height = `${ scrollHeight }px`; }); function countLette...
Template.mainLayout.events({ "click paper-drawer-panel a": function(event, template){ template.find("paper-drawer-panel").closeDrawer(); }, "iron-overlay-closed": function(event, template){ FlowRouter.setQueryParams({dialog: null}); }, "iron-overlay-opened": function(event, template){ template.find("paper-di...
'use strict'; // To run the tests: $ mocha -R spec regtest/node.js var path = require('path'); var index = require('..'); var async = require('async'); var log = index.log; log.debug = function () { }; var chai = require('chai'); var bitcore = require('bitcore-lib-zcoin'); var rimraf = require('rimraf'); var node; ...
const UserModel = require("../models/UserModel"); const { body,validationResult } = require("express-validator"); const { sanitizeBody } = require("express-validator"); //helper file to prepare responses. const apiResponse = require("../helpers/apiResponse"); const utility = require("../helpers/utility"); const bcrypt ...
module.exports = { extends: [ 'eslint-config-airbnb-base', 'eslint-config-airbnb-base/rules/strict', '../.eslintrc.js', ], parserOptions: { ecmaVersion: 5, sourceType: 'script', ecmaFeatures: { impliedStrict: true, }, }, env: { ...
/*! ramp-theme-usability 05-06-2015 18:23:59 : v. 5.4.0 * * RAMP GIS viewer - Groundhog; Sample of an implementation of RAMP with Usability Theme **/ define(["dojo/_base/declare","dojo/topic","dojo/_base/lang","ramp/globalStorage","ramp/eventManager"],function(a,b,c,d,e){"use strict";function f(){h.on("navigation...
//Dependencies const { Command } = require('discord.js-commando'); const { MessageEmbed } = require('discord.js'); const mongoose = require('mongoose'); const _ = require('lodash'); //Init const Coupon = mongoose.model('Coupon'); const Profile = mongoose.model('Profile'); //Main module.exports = class RedeemCommand e...
(function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache ...
var async = require('async'); var keystone = require('../../../'); module.exports = function(req, res) { if (!keystone.security.csrf.validate(req)) { return res.apiError('invalid csrf'); } if (req.list.get('nodelete')) { return res.apiError('nodelete'); } var ids = req.body.ids || req.body.id; if (typeof ids...
import csv import os from collections import defaultdict import sys import re import numpy as np import random import math import sklearn.datasets from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.naive_bayes import MultinomialNB from ...
import React from 'react'; import PropTypes from 'prop-types'; import hljs from 'highlight.js/lib/index.js' import javascript from 'highlight.js/lib/languages/javascript' // This way is easy, but adds 170K gzipped to bundle since all langs are included. // import Highlight from 'react-highlight'; class CodeExample ex...
from django.conf.urls import url from data_research.views import ( MapData, MetaData, TimeSeriesData, TimeSeriesNational ) urlpatterns = [ url(r'^time-series/(?P<days_late>[3890-]*)/(?P<fips>[0-9non-]*)/?$', TimeSeriesData.as_view(), name='data_research_api_mortgage_timeseries'), url(r'^...
import clientPromise from "../../lib/mongodb" import { withSentry } from "@sentry/nextjs" const allowCors = fn => async (req, res) => { res.setHeader("Access-Control-Allow-Credentials", true) // let allowedOrigins = [ // "http://haperarity.io", // "http://haperarity.vercel.app", // "http://localhost:3000" //...
// --- Constructor for our Contact Items. Will be called for each Item to be added to the list. Contact=function() { this.company=false; this.salutation=0; this.companyName=""; this.firstName=""; this.lastName=""; this.address=""; this.notes=""; this.image=null; this.birthYear=1970...
var nodeData = JSON.parse(document.getElementById("nodeData").textContent); var untranslate = JSON.parse(document.getElementById("untranslate").textContent); var poptions = JSON.parse(document.getElementById("poptions").textContent); var ex_options = JSON.parse(document.getElementById("ex_options").textContent); var ex...
import matplotlib.pyplot as plt import numpy as np import random def draw_tree(xold,yold,theta,length): ratio= 0.6 xnew=xold+length*np.cos(theta) ynew=yold+length*np.sin(theta) if length>0.009: plt.plot([xold,xnew],[yold,ynew], '-r') draw_tree(xnew,ynew,theta+np.pi/5,length...
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. 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.ap...
import http from '../config/service.config' export default { getRuleData() { return http.get('/point/rule') }, updateCommonRule(args) { return http.post('/point/rule/common/update', args) }, addCustomRule(args) { return http.post('/point/rule/custom/add', args) }, up...
const merge = require('webpack-merge') const webpack = require('webpack') const baseWebpackConfig = require('./webpack.base.config'); module.exports = merge(baseWebpackConfig, { devtool: 'source-map', plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('developme...
import React, { Component } from "react"; import "./App.css"; import getWeb3 from "./getWeb3"; class App extends Component { state = { web3: null, accounts: null, challenge: null, signature: null }; async componentDidMount() { const web3 = await getWeb3(); const accounts = await web3.eth.getAccounts(); ...
import React from 'react'; import ToolHeader from '../../shared/tool-header'; import ToolContent from '../../shared/tool-content'; import ToolFooter from '../../shared/tool-footer'; const DownloadComponent = ({ raster, download }) => ( <div id='download-tool' className='tool'> <ToolHeader logoURL="/images/...
// @flow import React, { Component } from 'react'; import { observer } from 'mobx-react'; import classnames from 'classnames'; import { Checkbox } from 'react-polymorph/lib/components/Checkbox'; import { CheckboxSkin } from 'react-polymorph/lib/skins/simple/CheckboxSkin'; import { defineMessages, intlShape, FormattedHT...
import argparse import os import sys import numpy as np import torch.utils.tensorboard as tensorboard import torch.utils.data as torch_data import torch.nn.functional as F import torch.optim as optim import torch import pymia.data.assembler as assm import pymia.data.augmentation as augm import pymia.data.transformati...
/** * Alloy for Titanium by Appcelerator * This is generated code, DO NOT MODIFY - changes will be lost! * Copyright (c) 2012 by Appcelerator, Inc. */ var Alloy = require('/alloy'), _ = Alloy._, Backbone = Alloy.Backbone; var names = Alloy.Collections.name = Alloy.createCollection('name'); Alloy.Collections.info =...
/*! * FullCalendar v1.6.4 * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ (function(t,e){function n(e){t.extend(!0,Ce,e)}function r(n,r,c){function u(t){ae?p()&&(S(),M(t)):f()}function f(){oe=r.theme?"ui":"fc",n.addClass("fc"),r.isRTL?n.addClass("fc-rtl"):n.addClass("fc-ltr"),r.theme&&n.ad...
import ai.causalcell.utils.register as register from ai.causalcell.models.utils import * from ai.causalcell.models.autoencoder import AutoEncoder import ai.causalcell.utils.configuration as configuration import torch import torch.optim.adam @register.setmodelname('adv_AE') class AdversarialAutoEncoder(AutoEncoder): ...
describe("Service: ControllerModalHelper", () => { let $q; let $rootScope; let $uibModal; let ControllerModalHelper; let deferred; beforeEach(module("managerAppMock")); beforeEach(inject((_$q_, _$rootScope_, _$uibModal_, _ControllerModalHelper_) => { $q = _$q_; $rootScope...
/** * Sample for Polar Series with DrawType Line */ this.default = function () { var chart = new ej.charts.Chart({ //Initializing Primary X Axis primaryXAxis: { title: 'Months', valueType: 'Category', labelPlacement: 'OnTicks', interval: 1, ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[252],{3860:function(e,t,n){"use strict";n.r(t),n.d(t,"icon",(function(){return c}));n(12),n(4),n(2),n(6),n(3),n(10);var r=n(0),a=n.n(r);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.proto...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: senml.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_dat...
import { fireEvent, render, screen } from '@testing-library/react' import React from 'react' import Expand from 'react-ui-pack/Expand' // Setup test beforeEach(() => { jest.useFakeTimers() }) // Cleanup test afterEach(() => { jest.runOnlyPendingTimers() jest.useRealTimers() }) describe(`<${Expand.name}/>`, () ...
/** * 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 ...
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # To use a consistent encoding from codecs import open from os import path # Always prefer setuptools over distutils from setuptools import setup HERE = path.abspath(path.dirname(__file__)) # Get the l...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.24/esri/copyright.txt for details. //>>built define("esri/dijit/ElevationProfile/nls/vi/strings",{display:{elevationProfileTitle:"Th\u00f4ng tin \u0110\u1ed9 cao",showMe:"hi\u1ec3n th\u1ecb cho t\u00f4i",selec...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; const IRTransformer = require('../core/IRTransformer'); const areEqual = require('../util/a...
var PipeManager = {}; module.exports = PipeManager; /*** * get them pipes */ PipeManager.getPipe = function (pipe, options) { if (!pipe) { throw "PipeManager cannot get pipe. wrong language in fsm properties?"; } pipeObj = require('./' + pipe + '/' + pipe); if (typeof options !== 'undefined' && options) ...
/* Copyright 2021 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 applicable law or agree...
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Testcrud = mongoose.model('Testcrud'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credential...
""" Django settings for Stock project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ im...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function compareBN(a, b) { if (a.eq(b)) { return 0; } else if (a.lt(b)) { return -1; } else { return 1; } } exports.compareBN = compareBN; //# sourceMappingURL=bn.js.map
import { Title, } from 'bloomer' import React from 'react' import styled from 'styled-components' const StyledTitle = styled(Title)` color: #254a61 !important; margin-bottom: 1rem !important; font-size: 36px !important; font-weight: 'bold'; font-family: 'Lato-Black', sans-serif !important; ` const _H2 = ...
import React from 'react'; // import { withKnobs, text, boolean, number } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { SigninForm } from './SigninForm'; export default { title: 'organisms/SigninForm', component: SigninForm, includeStories: /.*Story$/ // decorators...
/** * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com> * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ OCA = OCA || {}; (function() { /** * @classdesc a Port Detector. It executes the auto-detection of the port * by the ownCloud ...
import warnings from functools import partial from typing import Callable, Any, Optional, List import torch from torch import Tensor from torch import nn from ..ops.misc import Conv2dNormActivation from ..transforms._presets import ImageClassification from ..utils import _log_api_usage_once from ._api import WeightsE...
# Copyright 2019 Atalaya Tech, 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, ...
var data = { "width": 661, "height": 20, "offX": 6, "offY": 1, "sourceW": 670, "sourceH": 23, "w": 1983, "h": 20, "y": 0, "file": "sprites.png", "frames": [ { "x": 0 }, { "x": 661 }, { "x": 1322 ...
const textureDict = require('../../src/loaders/ios/textureDict/textureDict.js'); let testTextureDict = new textureDict(); let cctestutils = require('cctestutils'); describe('textureDict when empty', () => { it('should fail well', (done) => { expect(testTextureDict.getTexture(testRes.test)).toBeNull(); expect...
mycallback( {"CONTRIBUTOR OCCUPATION": "Deputy General Counsel", "CONTRIBUTION AMOUNT (F3L Bundled)": "65.96", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Liberty Mutual", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "175 Berkeley St", "CONTRIBUTOR MIDDLE NAME": "P", "DONOR CANDIDATE FEC ID":...
import sys from autosar.parser.parser_base import ElementParser import autosar.datatype class DataTypeParser(ElementParser): def __init__(self,version=3.0): super().__init__(version) if self.version >= 3.0 and self.version < 4.0: self.switcher = {'ARRAY-TYPE': self.parseArrayT...
import collections.abc def make_iterable(obj): """Convert to an iterable object. Simply returns `obj` if it is alredy iterable. Otherwise returns a 1-tuple containing `obj`. `str`s are treated as _not_ iterable. """ if isinstance(obj, collections.abc.Iterable) and not isinstance(obj, str): ...
var app = new Vue({ el: '#reviews', data:{ auth:auth, page:page, comments: comments, product_id:product_id, all:false, }, // mounted() { // console.log(this.comments[0]); // }, methods: { format_date:function (created_at) { retu...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
import React, { useState, useLayoutEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'fundamental-react'; import ErrorBoundary from './ErrorBoundary'; import { Bold, Flex, JsonSchemaForm } from './styled'; const [draft04, draft06] = [ require('ajv/lib/refs/json-schema-draft-04.j...
({ // local representation of all CSS3 named colors, companion to dojo.colors. To be used where descriptive information // is required for each color, such as a palette widget, and not for specifying color programatically. //Note: due to the SVG 1.0 spec additions, some of these are alternate spellings for the same c...
const url = require('url'); const path = require('path'); const fs = require('fs'); const rewirePolyfills = require('react-app-rewire-polyfills'); // copied from 'react-dev-utils/WebpackDevServerUtils' function mayProxy(pathname) { const maybePublicPath = path.resolve("public", pathname.slice(1)); return !fs.exist...
from django import forms from .models import Informatika class InformatikaForm(forms.ModelForm): class Meta: model = Informatika fields = [ 'title', 'description', 'tags', ]
'use strict'; const generator = require('../../../lib/middleware/inflight/resource-provider-key-generator'); const scopes = require('../../../lib/middleware/inflight/scopes'); describe('resource-provider-key-generator tests', () => { const testReadClientScope = 'test-read-client-scope'; const testWriteClientScop...
var controlCajaApp = angular.module('controlCajaApp', ['ngRoute','ngCookies','ngResource']); controlCajaApp.config(['$routeProvider',function ($routeProvider) { $routeProvider .when('/', { controller: 'ControlCajaCtrl', controllerAs: 'controlCaja', templateUrl: 'total.ht...