text
stringlengths
2
1.04M
/** Copyright (c) 2018 Uber Technologies, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* eslint-env node */ require('./cli/dev'); require('./cli/test'); require('./cli/build'); require('./compiler/api'); require(...
'use strict'; var WalletClient = require("../WalletClient"); var _debug = require('debug'); var debug = _debug('MvsSdk:block'); function Block(apiUrl, accountName, accountAuth) { this.WalletClient = new WalletClient(apiUrl, accountName, accountAuth); } Block.prototype.init = function() { var _this = this...
const versionManager = require('./bean/version.manager.js'); const beanSettings = require('./bean/bean.settings.js'); module.exports = app => { const beans = { // version 'version.manager': { mode: 'app', bean: versionManager, }, // global settings: { mode: 'ctx', bean: be...
// app code goes here // matrix.init().... // // have fun
export function account(value) { if (!value) return "请输入用户名"; if (!/^[a-zA-Z]\w{5,19}$/.test(value)) return "字母开头且6-20个字符"; return true; } export function password(value) { if (!value) return "请输入密码"; if (!/^[a-zA-Z0-9]{6,24}$/.test(value)) return "密码是6-24个字符"; return true; } export function mobile(value) {...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
// @flow module.exports = { connections: [ { port: '$env.PORT', }, ], registrations: [ { plugin: { register: __dirname, }, }, ], };
const Alexa = require('ask-sdk-core'); const LaunchRequestHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'LaunchRequest'; }, handle(handlerInput) { const speechText = 'Hello! Welcome to Cake Walk. That was a piece of cake! Bye!'; return ha...
const { src, dest, parallel, series, watch } = require('gulp') const loadPlugin = require('gulp-load-plugins') const plugins = loadPlugin() const del = require('del') const browserSync = require('browser-sync') const bs = browserSync.create() const cwd = process.cwd() const path = require('path') let config = { //...
export { default } from './Select'; export { default as Select } from './Select';
import React, {useState} from 'react' import './styles.css' import searchIcon from './../../assets/search.png' import closeButton from './../../assets/close.png' const SearchComponent = ({searchWeather, clearHandler}) => { const [cityName, setCityName] = useState(''); const onInputChangeHandler = (e) => { ...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Any modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Licensed to Ela...
goog.provide('clojure.string'); goog.require('cljs.core'); goog.require('goog.string'); goog.require('goog.string.StringBuffer'); clojure.string.seq_reverse = (function clojure$string$seq_reverse(coll){ return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3(cljs.core.conj,cljs.core.List.EMPTY,coll); }); clojure.string.r...
/* eslint-env node */ 'use strict'; var path = require('path'); var Funnel = require('broccoli-funnel'); module.exports = { name: 'ember-bootstrap', included() { this._super.included(...arguments); this.import('vendor/ember-bootstrap/bootstrap.js'); }, treeForVendor() { return new Funnel( ...
import React from 'react'; import ResourceLinks from 'gatsby-theme-carbon/src/components/LeftNav/ResourceLinks'; const links = [ { title: 'IBM Cloud', href: 'https://cloud.ibm.com/', }, { title: 'IBM Cloud Paks', href: 'https://www.ibm.com/cloud/paks/', }, { title: 'IBM Edge Application M...
/** * Created by heavenduke on 9/27/15. */ exports.user = require('./user'); exports.story = require('./story'); exports.epic = require('./epic');
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
import React from 'react'; import Img from "gatsby-image"; import { graphql, StaticQuery } from 'gatsby'; import "./navigation.css"; const query = graphql` query { squareLogo: file(relativePath: {eq: "square-logo.png"}) { childImageSharp { fixed(width: 50) { base64 tracedSVG aspect...
'use strict'; const { match } = require('../helpers/node-matcher'); const Rule = require('./base'); const ERROR_MESSAGE = 'A block named "default" is not valid'; const BLOCK_PARAM_KEYWORDS = ['has-block', 'has-block-params', 'hasBlock', 'hasBlockParams']; function isYield(node) { return match(node, { type: 'PathE...
//# sourceMappingURL=normalize.f9b08773dafeb4ef7362.js.map
/** This file is part of KCFinder project * * @desc Miscellaneous functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource...
module.exports = async (context, { cartItems = [], totals = [] }) => { const depositTotal = cartItems.reduce((total, cartItem) => { const { product = {} } = cartItem const { separatedDepositAmount = 0 } = product return total + separatedDepositAmount }, 0) if (!depositTotal) { return { totals } ...
#!/usr/bin/env node process.argv.push('--cwd');//配置当前工作空间 process.argv.push(process.cwd()); process.argv.push('--gulpfile'); process.argv.push(require.resolve('..')) //配置gulpfile.js的路径为package.json中指定的main字段 require('gulp/bin/gulp')
import { createStyles } from '@material-ui/styles'; import images from '../../theme/images'; export default ({ spacing, typography, palette, shape, breakpoints }) => createStyles({ root: { display : 'flex', alignItems : 'center', justifyContent: 'center', flexDirection : 'column', boxSiz...
import { TriMetModeIcon } from "@opentripplanner/icons"; import React, { Component } from "react"; import PropTypes from "prop-types"; import { isMicromobility, isTransit } from "@opentripplanner/core-utils/lib/itinerary"; import { configuredCompanyType, configuredModesType } from "@opentripplanner/core-utils/l...
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["search-appearance-partials-pro-CustomFields-vue"],{e11a:function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-sa-ct-custom-fields"},[e("core-settings-row",{attrs:{name:t.strings.c...
import { Fragment, useState, useEffect } from 'react'; import Link from 'next/link'; import Image from 'next/image'; import PropTypes from 'prop-types'; import * as Yup from 'yup'; import { toast } from 'react-hot-toast'; import { Formik, Form } from 'formik'; import { Dialog, Transition } from '@headlessui/react'; imp...
// Copyright (c) 2021, omar jaber and contributors // For license information, please see license.txt frappe.ui.form.on('Cleaning Master Tasks', { setup: function(frm) { frm.set_query("object_type", function() { return { filters: { "object_category": frm.doc.object_category } } })...
import "./assets/css/datatables.bundle.scoped.css" import "./assets/css/plugins.bundle.scoped.css" import "./assets/css/style.bundle.scoped.css" import 'react-bootstrap-range-slider/dist/react-bootstrap-range-slider.css'; import RangeSlider from 'react-bootstrap-range-slider'; import React, {useEffect, useState} from "...
let data = { "body": "<path d=\"M10.86 15.37c-.69-.77-1.16-1.69-1.31-2.72c-.3.46-.55.96-.73 1.5c-.92 2.75.68 6.18 3.4 7.18c2.34.78 4.97-.61 6.7-2.13c.26-.35 2.31-2.16 1.29-2.36c-3.02 1.55-7.02 1.11-9.35-1.47m.6-5.81c1.04-.01.04-.43-.39-.75c-1.04-.57-2.26-.85-3.44-.85C3.78 8 .995 10.41 2.3 14.4c.94 3.88 4.31 7 8.29 7.5...
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(11)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){c...
require("dotenv").config(); const HDWalletProvider = require("@truffle/hdwallet-provider"); const web3 = require("web3"); const PRIVATE_KEY = process.env.PRIVATE_KEY; const NODE_API_KEY = process.env.INFURA_KEY || process.env.ALCHEMY_KEY; const isInfura = !!process.env.INFURA_KEY; const FACTORY_CONTRACT_ADDRESS = proc...
// @flow import * as React from 'react' import { useSelector } from 'react-redux' import { Box, Text, FONT_SIZE_BODY_1, FONT_WEIGHT_SEMIBOLD, SPACING_2, SPACING_3, } from '@opentrons/components' import * as SystemInfo from '../../system-info' import { U2EDriverWarning } from './U2EDriverWarning' import { ...
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import { composeWithDevTools } from 'redux-devtools-extension'; import { productListReducer, productDetailsReducer, } from './reducers/productReducers'; import { cartReducer } from './reducers/cartReduc...
import React from 'react'; import FC from '../../experiments/fc'; import PropTypes from 'prop-types'; class QuizWrapper extends React.Component { render() { return ( <div> {this.props.userInfo.profile && ( <ListenerQuiz user={this.props.userInfo.profile} mountCurr...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '../../StyledIconBase'; export var UniversalAccess = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createE...
/** * Auto-generated action file for "Magento Enterprise" API. * * Generated at: 2019-06-06T13:12:39.897Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / magento-com-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are license...
var test=require("tap").test,glob=require("../");process.chdir(__dirname);var lag=5;glob.Glob.prototype._stat=function(e){return function(n,t){arguments;setTimeout(function(){e.call(this,n,t)}.bind(this),lag+=5)}}(glob.Glob.prototype._stat),test("mark, with **",function(e){glob("a/*b*/**",{mark:!0},function(n,t){if(n)t...
/** * 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...
/* #THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */ module.exports = require('./lib/helpers/autoNumberedSections');
require({cache:{ 'url:p3/widget/templates/WorkspaceController.html':"<div>\n\t<span style=\"float:right;\">\n\t\t<div data-dojo-type=\"p3/widget/UploadStatus\" style=\"display:inline-block;\"></div>\n\t\t<div data-dojo-type=\"p3/widget/JobStatus\" style=\"display:inline-block;\"></div>\n\t</span>\n</div>\n "}}); define...
module.exports = { siteUrl: `https://motivat.io/n`, postsPerPage: 12, siteTitleMeta: `motivat.io/n`, siteDescriptionMeta: `Your daily dose of motivation`, shareImageWidth: 1000, // Change to the width of your default share image shareImageHeight: 523, // Change to the height of your default s...
import AMissile from "/game/model/objects/AMissile.js"; /** * @abstract * @class * @extends AMissile */ export default class MissileA extends AMissile { /** * @private * @type {IMovingStrategy} */ #moving; /** * @constructor * @param {IMovingStrategy} moving * @param {Po...
/* callback function for getCurrentLocation */ var locationCallback = null; /** * * @param {Object} _lat * @param {Object} _lng * @param {Object} _callback */ function reverseGeocoder(_lat, _lng, _callback) { var title; Ti.Geolocation.purpose = "Wiley Alloy App Demo"; // callback method converting lat lng...
import express from 'express' import userController from '../controllers/userController' import canUpdateProfile from '../middleware/canUpdateProfile'; import isAdmin from '../middleware/isAdmin'; import Validate from '../middleware/validator' const router = express.Router(); /** * @swagger * /api/v1/users: * po...
taskName = "Problem 3. Underage people"; function Main(bufferElement) { var people, result; people = makePeople(10); result = people.filter(function (item) { return item.age >= 18; }); result.forEach(function(item) { item.print(); }); function makePerson(fname, l...
import React, { useRef, useEffect } from 'react'; import { graphql } from 'gatsby'; import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import sr from '@utils/sr'; import { srConfig } from '@config'; import { Layout } from '@components'; import { IconGitHub, IconExternal } from '@components/icons...
/** @jsx jsx */ import React, { useState, useEffect } from 'react'; import useMaker from '../hooks/useMaker'; import { Text, jsx, Grid, Box, Flex, Link as SLink } from 'theme-ui'; import BigNumber from 'bignumber.js'; import Moment from 'react-moment'; import { etherscanLink, formatAddress } from '../utils'; import Mi...
import React, { PropTypes } from 'react' import { Provider } from 'react-redux' import { Router } from 'react-router' import ReduxToastr from 'react-redux-toastr' export default class Root extends React.Component { static propTypes = { history: PropTypes.object.isRequired, routes: PropTypes.element.isRequire...
var tape = require('tape') var a = [] a[0]="410028020021014100200146044041042201210205410021020b200120006a2103410020033602002003240020010b"; a[1]="4100200046044041a70121010541002102200041004804402000417f6c210305200021030b2003220521042004210620004100460440410122022101050340410020064704402006410a6d2106410120026a220221010...
class Farmer { fid; firstName; lastName; mobileNumber; email; password; } export default Farmer;
// Copyright 2014 Cubane Canada, Inc. All rights reserved. // See LICENSE for details. /*--- es6id: S25.4.4.3_A7.1_T3 author: Sam Mikes description: Promise.race([p1, p2]) settles when first settles includes: [promiseHelper.js] flags: [async] ---*/ var sequence = []; var p1 = new Promise(function() {}), p2 = Prom...
import request from 'supertest'; import mongoose from 'mongoose'; import app from '../../app'; import models from '../../models'; import testData from '../testData'; const { User, Team, Fixture } = models; const { user, admin, teamTest1, teamTest2 } = testData; let userToken; let adminToken; let team1Id; let tea...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { isFunction } from 'underscore'; import { createComponent, StyleProvider, styleUtils } from '../StyleProvider'; import { LoadingSpinIcon, BrokenImageIcon } from '@versionone/icons'; import { Tooltip } from '../Tooltip'; import { Space...
import React from 'react' import Helmet from 'react-helmet' import Layout from '../components/layout' import pic01 from '../assets/images/spotted/vietnam/flag.jpg' import pic02 from '../assets/images/spotted/vietnam/hands.jpeg' import bgPic from '../assets/images/spotted/vietnam/door.jpg' class Vietnam extends React....
function part1(data) { const instructions = data.split("\n"); let dependencies = parseDependencies(instructions); const nodes = getUniqueNodes(dependencies); const order = getOrder(nodes, dependencies); return Array.from(order).join(""); } function parseDependencies(instructions) { return inst...
import { request } from '@/utils/request' let path = '/Common' export function VerifyCode (option) { return new Promise((resolve, reject) => { request({ url: `${path}/VerifyCode`, method: 'GET' }).then(res => { var arr = [ false, false ] try { let base64 = atob(res.data) ...
var moment = require('../../moment'), symbolMap = { '1': '!', '2': '@', '3': '#', '4': '$', '5': '%', '6': '^', '7': '&', '8': '*', '9': '(', '0': ')' }, numberMap = { '!': '1', '@': '2', '#': '3', ...
/** * Module dependencies. */ var express = require('express'), connect = require('connect'), MemoryStore = require('connect/middleware/session/memory'); // Prevent reap timer var memoryStore = new MemoryStore({ reapInterval: -1 }); module.exports = { 'test #isXMLHttpRequest': function(assert){ ...
//IEE 754-2008 let num1 = 0.7; let num2 = 0.1; num1 += num2;//.8 num1 += num2;//.9 num1 += num2;//1.0 num1 = num1.toFixed(2); num1 = parseFloat(num1);//Ou Number(num1) console.log(num1); console.log(Number.isInteger(num1)); //console.log(num1.toString() + num2); //console.log(typeof num1); //num1 = num1.toString();...
import React, {Component} from 'react' import autobind from 'autobind-decorator' import L from 'leaflet' import 'leaflet/dist/leaflet.css' const css = { height: '500px', marginBottom: '80px', zIndex: 1, } export default class Leaflet extends Component { static propTypes = { markers: React.PropTypes.array, } ...
(window.webpackJsonpLIB=window.webpackJsonpLIB||[]).push([[18],{412:function(e,o,t){"use strict";t.r(o),t.d(o,"Modals",(function(){return r})),t.d(o,"ModalAbort",(function(){return c}));var a=t(95),n=t(202),d=t(158),i=t(201),l=a.b`#background{ display: none; } #background[active]{ background: rgba(0, 0, 0, 0.75...
'use strict' Options.Triggers.push({ zoneRegex: /^Eden's Promise: Litany \(Savage\)$/, timeline: ` ### Party Mitigation 89 "R2 Mitigation" 227 "R2 Mitigation" 430 "R2 Mitigation" 620 "R2 Mitigation" 89 "T2 Mitigation" 105 "T1 Mitigation" 196 "T2 Mitigation" 21...
module('regression'); asyncTest('parameters must pass correctly in xhr event handlers (T239198)', function () { var request = new XMLHttpRequest(); // NOTE: check XHR is wrapped ok(request.hasOwnProperty('addEventListener')); request.addEventListener('progress', function (event) { ok(event.ta...
// some of them: ALLUSERSPROFILE: "C:\ProgramData" APPDATA: "C:\Users\NYC\AppData\Roaming" COMPUTERNAME: "NYC-PC" ComSpec: "C:\Windows\system32\cmd.exe" CommonProgramFiles: "C:\Program Files\Common Files" CommonProgramFiles(x86): "C:\Program Files (x86)\Common Files" CommonProgramW6432: "C:\Program Files\Common Files"...
'use babel'; import React from 'react' import IconBase from './IconBase' export default function Emoji_1f49e(props) { return ( <IconBase viewBox="0 0 64 64" {...props}> <g><path fill="#FF7190" d="M27.859 53.791c-2.481.271-5.093.084-7.482-.575a19.077 19.077 0 0 1-6.563-3.23 17.747 17.747 0 0 1-4.674-5.329 ...
/** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof deconcept=="undefined"){ var deconcept=new Object(); } if(typeof deconcep...
import * as d3 from 'd3' const DATA_PATH_BASE_2018 = 'data/2018/' class DataLoader { static async loadTextAsArray (url) { const response = await window.fetch(url) const text = await response.text() const array = text.split('\n') return array } static async loadCSV (url) { return d3.csv(url)...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Dock = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElement...
import template from './lgw-toolbox-base.html.twig'; const { Component } = Shopware; const { mapState, mapGetters } = Shopware.Component.getComponentHelper(); Component.register('lgw-toolbox-base', { template, inject: [], mixins: [], data() { return {}; }, created() {}, comput...
import {expect} from 'chai' // Testing module import isObject from '../../src/validators/isObject' describe('validators/isObject', () => { it('Should be a function', () => { expect(isObject) .to .be .instanceOf(Function) }) it('Should return true', () => { expect(isObject({})) .to .be .true ...
var React = require('react'); var ReactDOM = require('react-dom'); var {Thumbnail, ControlLabel, Button, ButtonGroup, FormControl, Checkbox, Modal, Image, Popover, Panel, Glyphicon} = require('react-bootstrap'); var CreateClass = require('create-react-class'); var intl = require('./translate.js'); var ChangeLog = requi...
import Vue from 'vue' import Vuex from 'vuex' import { state } from './state' const actions = require('./actions.js').default import { getters } from './getters' import * as mutations from './mutations' import plugins from './plugins' Vue.use(Vuex) const store = new Vuex.Store({ actions, state, getters, mutat...
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.13.1(dee295ce5964a7aeddfe417c4970283b364554f1) * Released under the MIT license * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt *------------------------------------...
const Joi = require('joi'); const bcrypt = require('bcrypt'); const _ = require('lodash'); const passwordComplexity = require('joi-password-complexity'); const {User} = require('../models/user'); const express = require('express'); const router = express.Router(); router.post('/', async (req, res) => { const { error...
'use strict'; //Dependencies let gulp = require('gulp'), $ = require('gulp-load-plugins')({ pattern: ['gulp-*', 'del', 'run-sequence'] }), config = require('./config.json'), tsConfig = require('../tsconfig.json'); /** * Create typescript project build reference for incremental compilation under watch ta...
shadow$provide.module$node_modules$content_hash$src$index=function(global,require,module,exports){const multiC=require("module$node_modules$multicodec$src$index"),{hexStringToBuffer,profiles}=require("module$node_modules$content_hash$src$profiles");({cidV0ToV1Base32:global}=require("module$node_modules$content_hash$src...
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML element id ...
import PropTypes from 'prop-types'; import { useEffect } from 'react'; import { Link as RouterLink, useLocation } from 'react-router-dom'; // material import { styled } from '@material-ui/core/styles'; import { Box, Link, Button, Drawer, Typography, Avatar, Stack } from '@material-ui/core'; // components import Logo fr...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". // //////////////////...
import { getSuccessData } from '../../base'; // import { getRandomNumber } from '../../util'; export default function getResult() { return getSuccessData({ uid: 10, name: 'Jim-0', age: 22 // age: getRandomNumber(), }); }
import React, { useEffect } from "react"; import classnames from "classnames"; import * as d3 from "d3"; import drawAxis from "../../common/axis"; import drawTooltip from "../../common/tooltip"; import drawLine from "./drawLine"; import "./index.scss"; import merge from "lodash-es/merge"; import { defaultAxisConfig, ...
import Immutable from 'immutable'; import groupRows from '../RowGrouper'; const rows = [{ colOne: 'v1', colTwo: 'b1' }, { colOne: 'v2', colTwo: 'b2' }, { colOne: 'v1', colTwo: 'b3' }]; const grpDetails = { oneCol: ['colOne'], expRows: {}, multiCol: ['colOne', 'colTwo'] }; describe('Row Grouper', () => { it('It...
import React, { Component } from "react"; class Contact extends Component { render() { if (this.props.data) { var message = this.props.data.contactmessage; } return ( <section id="contact"> <div className="row section-head"> <div className="two columns header-col"> ...
(function(a){"object"===typeof exports&&"undefined"!==typeof module?module.exports=a():"function"===typeof define&&define.amd?define([],a):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).jschardet=a()})(function(){return function(){function a(d,b,c){function f...
// Copyright (c) 2021, GreyCube Technologies and contributors // For license information, please see license.txt frappe.ui.form.on('City CT', { // refresh: function(frm) { // } });
export default /* glsl */` float VSM$(sampler2D tex, vec2 texCoords, float resolution, float Z, float vsmBias, float exponent) { vec3 moments = texture2D(tex, texCoords).xyz; return calculateEVSM(moments, Z, vsmBias, exponent); } float getShadowVSM$(sampler2D shadowMap, vec3 shadowParams, float exponent) { ...
const { execSync } = require('child_process'); const dayjs = require('dayjs'); const path = require('path'); module.exports = (options) => { const dir = options.dir ?? 'build'; const siteConfig = require(path.resolve(dir, '..', 'site.config.json')); let { username, repo, branch } = siteConfig.deploy; try { ...
/* * jQuery pager plugin * Version 1.0 (12/22/2008) * @requires jQuery v1.2.6 or later * * Example at: http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html * * Copyright (c) 2008-2009 Jon Paul Davies * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://ww...
import * as THREE from 'three'; import { OrbitControls } from './OrbitControls.js'; import { LDrawLoader } from './LDrawLoader.js'; import { Water } from './Water.js'; import { Sky } from './Sky.js'; import { OBJLoader } from './OBJLoader.js'; import mapboxgl from 'mapbox-gl'; let container; let camera, scene, rende...
let idade = 16; if(idade >= 18 ){ console.log("voto obrigatorio"); }else if(idade >= 16){ console.log("seu voto é opcional"); }else if(idade <= 15){ console.log("ainda nao pode votar"); }
const express = require("express"); const render = require("../controllers/render"); const router = express.Router(); router .get("/", render.getHome) .post("/", render.postHome) .get("/checkout", render.getCheckout) .post("/checkout", render.postCheckout) .get("/offline", render.getOffline) ....
/*global defineSuite*/ defineSuite([ 'Scene/ImageryLayerCollection', 'Core/Cartesian3', 'Core/Ellipsoid', 'Core/Event', 'Core/GeographicTilingScheme', 'Core/Matrix4', 'Core/Ray', 'Core/Rectangle', 'Core/WebMercatorProjection', 'Core/WebMerc...
let imageModule = (function () { let columns = Array.from(document.querySelectorAll('.column')); // 数据绑定 function bindHTML(data) { // 根据服务器返回的图片的宽高,动态计算出图片放在230容器中,高度应该怎么缩放 // 因为我们后期要做图片的延迟加载,在没有图片之前,我们也需要知道未来图片要渲染的高度,这样才能又一个容器先占位 data = data.map(item => { let { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.signature = signature; exports.functionNameMetadata = functionNameMetadata; exports.localNameMetadata = localNameMetadata; exports.moduleMetadata = moduleMetadata; exports.identifier = identifier; exports.valtype = valtype; exports....
// COPIA AQUI EL CODIGO DEL OBJETO PARA RENDERIZARLO EN ESCENA //MATERIALS --------------------------------- var SKYmaterial = new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture('images/skyHD.jpg'),color: 0xFFFFFF, side: THREE.DoubleSide } ); var asphaltTexture = THREE.ImageUtils.loadTexture( "ima...
'use strict'; /** * Module dependenices */ var isObject = require('is-plain-object'); var clone = require('shallow-clone'); var typeOf = require('kind-of'); var forOwn = require('for-own'); /** * Recursively clone native types. */ function cloneDeep(val, instanceClone) { switch (typeOf(val)) { case 'objec...
/* * Copyright 2018 ThoughtWorks, 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 agr...
'use strict' const utils = require('./utils') const config = require('../config') const isProduction = process.env.NODE_ENV === 'production' const sourceMapEnabled = isProduction ? config.build.productionSourceMap : config.dev.cssSourceMap module.exports = { loaders: utils.cssLoaders({ sourceMap: s...