text
stringlengths
2
1.04M
( function ( $ ) { 'use strict'; var defs = { id: 'gaa-cqx', name: 'Ga - CQX replacement', description: 'Ga input method with C, Q and X replaced by Ŋ, Ɛ and Ɔ', date: '2016-06-23', URL: 'http://www.kasahorow.org/node/260', author: 'Amir E. Aharoni, based on Kasahorow Akan', license: 'GPLv3', version...
const errorFactory = require('../exceptions/newErrorFactory'); function extractRequestBody(keys, requestObject) { return new Promise((resolve, reject) => { const extractedObj = {}; for (let key of keys) { if (requestObject.hasOwnProperty(key)) { extractedObj[key] = reque...
import * as React from "react"; import * as Constants from "~/common/constants"; import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper"; import WebsitePrototypeHeader from "~/components/core/NewWebsitePrototypeHeader"; import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFo...
var searchData= [ ['broydenfletchergoldfarbshanno',['BroydenFletcherGoldfarbShanno',['../classalgo_1_1qn_1_1_broyden_fletcher_goldfarb_shanno.html#a988d0529e0bfd5a1ddb05ab1369fd50e',1,'algo::qn::BroydenFletcherGoldfarbShanno']]] ];
// // if (Ti.App.Properties.getString("myhome") == "MMF") { // fstHomeRadioCliked(); // } else { // sndHomeRadioCliked(); // } // Edited by Aryvart - open /* function Radio1Cliked() { $.sndRadio.image = "/images/radio_off.png"; $.trdRadio.image = "/images/radio_off.png"; $.fstRadio.image = "/images/radio_on.png"; ...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import {InputText} from '../inputtext/InputText'; import {Button} from '../button/Button'; import {CalendarPanel} from './CalendarPanel'; import DomHandler from '../utils/DomHandler'; import classNames from '...
import { erro } from '../helpers'; export default function (opts, ...args) { console.log(erro(...args)); }
/** * An object in charge of ID management * Provide IDs upon request * Recylce IDs of discarded objects */ O2.createClass('RCWE.IdManager', { _aAvailable: null, _nMin: null, _nMax: null, __construct: function() { this.reset(); }, reset: function() { this._aAvailable = []; if (this._nMin !== null &&...
const premenna = 'text aaa text bbb text aaa'; console.log(premenna.replace('aaa', 'bbb')); console.log(premenna.replace(/aaa/g, 'bbb'));
import currentContact from 'ducks/organization/currentContact'; import { applyMiddleware, combineReducers, createStore } from 'redux'; import { createLogger } from 'redux-logger'; import thunkMiddleware from 'redux-thunk'; import conversation from '../ducks/conversations'; const loggerMiddleware = createLogger(); con...
/******************************************** * REVOLUTION 5.0 EXTENSION - KEN BURN * @version: 1.3 (15.02.2017) * @requires jquery.themepunch.revolution.js * @author ThemePunch *********************************************/ (function($) { "use strict"; var _R = jQuery.fn.revolution, extension = { alias:"KenBurns...
/* Validator v1.1.0 (c) Yair Even Or https://github.com/yairEO/validator MIT-style license. */ var validator = (function($){ var message, tests, checkField, validate, mark, unmark, field, minmax, defaults, validateWords, lengthRange, lengthLimit, pattern, alertTxt, data, email_ille...
OLCS.ready(function() { "use strict"; function showTeamFieldset() { return OLCS.formHelper.isChecked("exception-details", "teamOrUser", "team"); } function showUserFieldset() { return OLCS.formHelper.isChecked("exception-details", "teamOrUser", "user"); } OLCS.cascadeForm({ cascade: false, ...
const traitInputAttr = { placeholder: 'متن را اینجا وارد کنید' }; export default { assetManager: { addButton: 'افزودن تصویر', inputPlh: 'http://path/to/the/image.jpg', modalTitle: 'انتخاب تصویر', uploadTitle: 'فایل را انتخاب کنید یا در این مکان رها کنید' }, // Here just as a...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import PropTypes from 'prop-types'; import {Tooltip, Overlay} from 'react-bootstrap'; import {FormattedMessage, injectIntl} from 'react-intl'; import classNames from 'classnames'; ...
import { forwardRef, useEffect, useMemo, useState } from 'react'; import { cn } from '../../../../../utils/bem'; import { FormField } from '../../FormField'; import { default as Label } from '../Label/Label'; import './Toggle.styl'; const Toggle = forwardRef(({ className, label, labelProps, description, checked, defau...
define(function (require) { var zrUtil = require('zrender/core/util'); var echarts = require('../echarts'); require('./pie/PieSeries'); require('./pie/PieView'); require('../action/createDataSelectAction')('pie', [{ type: 'pieToggleSelect', event: 'pieselectchanged', metho...
$(document).ready(function () { $tbody = $('#tcategorias > tbody'); // Cargamos el catálogo de categorías en la vista cargarCategorias(); // Vaciamos el formulario al momento de cerrar el modal de categorias $('#mcategorias').on('hidden.bs.modal', function (e) { $('#cve_categoria, #categoria, #resenia').val('');...
import { fetchRevokeToken, normalizeRevokeToken } from '../../cart/customer/revokeToken'; /** * Strapi: customer -> revokeToken */ export default async function revokeToken(token) { const rawData = await fetchRevokeToken(token); const data = normalizeRevokeToken(rawData); return { ...data, }; }
export const state = { serial_ports: [], zwave: {}, mqtt: {}, devices: [], gateway: {} } export const getters = { serial_ports: state => state.serial_ports, zwave: state => state.zwave, mqtt: state => state.mqtt, devices: state => state.devices, gateway: state => state.gateway } export const actio...
// noinspection JSUnresolvedVariable exports.owHandler = function (params) { let url; // search for image url in request if (params.hasOwnProperty("body") && params.body.hasOwnProperty("url")) { url = params.body.url; } else { throw new Error("Missing argument in image recognition"); ...
var searchData= [ ['back_0',['back',['../classoperations__research_1_1_domain.html#a431944fe258a149a4db1271b0cd85efb',1,'operations_research::Domain']]], ['begin_1',['begin',['../structoperations__research_1_1_domain_1_1_domain_iterator_begin_end.html#ad2c72cdd1e6aae5aca24e2d57c797237',1,'operations_research::Domai...
var Accessory = require('../').Accessory; var Service = require('../').Service; var Characteristic = require('../').Characteristic; var uuid = require('../').uuid; var http = require('http'); var ParsecRESTClient = require('../ParsecRESTClient'); var LightController = { name: "Room Light", //name of accessory pinc...
/*! * animsition v4.0.2 * A simple and easy jQuery plugin for CSS animated page transitions. * http://blivesta.github.io/animsition * License : MIT * Author : blivesta (http://blivesta.com/) */ ;(function (factory) { 'use strict' if (typeof define === 'function' && define.amd) { define(['jquery'], factory...
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:utility', 'Unit | Service | utility', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let service = this.subject(); assert.ok...
;(function(){ // CommonJS require() function require(p){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Error('failed to require "' + p + '"'); if (!mod.exports) { mod.exports = {}; mod.call(mod.exports, mod, mod.exports, require.relative(path)); } ...
class Route { constructor(path, method, controller, validator = null, middlewares = []) { this.path = path; this.method = method.toLowerCase(); this.controller = controller; this.validator = validator; this.middlewares = middlewares; } } export default Route;
const getParam = require('./params').getParam; let actions = {}; actions.rotate = require('./actions/rotate'); actions.docx = require('./actions/convert-docx'); let help_message = `Usage: node start action param1 param2... action rotate: node start rotate source dest direction Directions: east, west, south, north. ac...
{ "version":"0.4.2", "md5":"267cc702f8f8be79cb8924250368b15b" }
var mymap = L.map('mapid').setView([46.83, -71.31], 12); //TILE LAYER---------------------------- var OpenMapSurfer_Roads = L.tileLayer('https://maps.heigit.org/openmapsurfer/tiles/roads/webmercator/{z}/{x}/{y}.png', { maxZoom: 19, attribution: 'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research G...
import $ from 'jquery'; $(function() { $('#output').text('Jquery is here to help you!'); });
import { defineProperty, entries, freeze, getOwnPropertyDescriptor, getOwnPropertyDescriptors, objectHasOwnProperty, values, } from './commons.js'; import { constantProperties, sharedGlobalPropertyNames, universalPropertyNames, whitelist, } from './whitelist.js'; // Like defineProperty, but thro...
import React from 'react'; import { Link } from 'react-router-dom'; const JourneysTable = ({ journeys }) => { return ( <div className='table-responsive-lg my-4'> <table className='table table-hover table-lg'> <thead> <tr> <th scope='col'>#</th> <th scope='col'>Bus</th> <th scope='col'>...
/** * A small server to help test app update scenarios. This server serves a fake release manifest located at ./test_data/release.json. */ "use strict"; const fs = require("fs"); const http = require("http"); const path = require("path"); function getUrl() { return `http://localhost:${server.address().port}`; ...
// @flow import React, { Component } from 'react'; import { ACTION_SHORTCUT_TRIGGERED, createShortcutEvent, createToolbarEvent, sendAnalytics } from '../../../analytics'; import { openDialog, toggleDialog } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; import { IconC...
import { default as geoStream } from "../stream.js"; import boundsStream from "../path/bounds.js"; function fit(project, extent, object) { var w = extent[1][0] - extent[0][0], h = extent[1][1] - extent[0][1], clip = project.clipExtent && project.clipExtent(); project.scale(150).translate([0, 0]); if ...
export default `flf2a$ 6 5 25 0 9 0 ticksslant.flf (C) 1994 by Victor Parada (vparada@inf.utfsm.cl) 94/09/23. figlet 2.1 font based on ticks.flf, slanted using slantfigfont. Try option "-m 1" to smush one "_" between fonts. Latin fonts a' e' i' o' u' n~ and N~ replaces A" O" U" a" o" u" and B. ____@ ____ ...
import _curry1 from './internal/_curry1'; var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' + '\u2029\uFEFF'; var zeroWidth = '\u200b'; var hasProtoTrim = (typeof String.prototype.trim === 'function'); /...
const Fastify = require('fastify'); const mercurius = require('mercurius'); // const AltairFastify = require("altair-fastify-plugin"); const AltairFastify = require('../dist'); const app = Fastify(); const schema = ` type Query { add(x: Int, y: Int): Int } `; const resolvers = { Query: { add: async (_,...
import React, {useState} from 'react'; import "./scss/main.scss"; import Header from "./components/Header"; import Register from "./components/Register"; import Categories from './components/Categories'; import Difficulty from "./components/Difficulty"; import Tester from "./components/Tester"; function App() { co...
import { txClient, queryClient, MissingWalletError } from './module'; // @ts-ignore import { SpVuexError } from '@starport/vuex'; import { Loan } from "./module/types/loan/loan"; export { Loan }; async function initTxClient(vuexGetters) { return await txClient(vuexGetters['common/wallet/signer'], { addr: vu...
import axios from 'axios'; let base = ''; // 抵质押合同基础段 信息查询 export const getContractList = params => { return axios.get(`${base}/pledgeInfo/contractList`, { params: params }); }; // 抵质押合同基本 信息查询 export const getBasicInfoList = params => { return axios.get(`${base}/pledgeInfo/basicInfoList`, { params: params }); }; ge...
/** * purpose: ajax通用解决方案 * author: 仲强 * version: 1.9.2 * date: 2019-04-18 * email: gerry.zhong@outlook.com * update: --1.1 去除跨域请求头部设置 ==> author: keepfool (cnblogs) * --1.2 更新tool方法,完善结构 ==> author: pod4g (github) * --1.3 去除参数中...
/* eslint-disable func-names, prefer-arrow-callback */ /** * Allow test writers to build a shorthand for multiple keypresses. * This is a common part of keyboard navigation, especially when * users have to press TAB several times to move through a group * of checkboxes or form elements. * * ```javascript * thi...
import React from 'react'; import { NavLink, Link } from 'react-router-dom'; import { connect } from 'react-redux'; import NProgress from 'nprogress'; import { logout } from '../thunks/user'; import history from '../services/history'; export const Header = ({ logout, currentUser }) => { const handleLogOut = () => { ...
let idolRenderer; //Idol Renderer component let idolForm; //Idol Add Form Render Component let IdolFormClass; //Idol Form React UI class let IdolListClass; //Idol List React UI class const renderIdolList = function() { if(this.state.data.length === 0) { return ( <div className="idolList"> <h3 class...
//app.js App({ //全局数据,中文日期,供转换用 chineseDate:{ years:['零','一','二','三','四','五','六','七','八','九'], months:['一','二','三','四','五','六','七','八','九','十','十一','十二'] }, onLaunch: function () { } })
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/* globals jQuery */ //Catch Update button click and transform widgets post meta data before event is propagated. (function ($) { $('#publish').click( function (event) { var data = {}; var $el = $('#siteorigin-widgets-meta-box'); // This uses the exact same code to extract the model from the view as in the...
const CustomError = require("../extensions/custom-error"); module.exports = function calculateHanoi(disksNumber, turnsSpeed) { let operationsCount = 2 ** disksNumber - 1; let operationInSec = turnsSpeed / 3600; let operationsSeconds = Math.floor(operationsCount / operationInSec); let results = { turns: o...
// START CUSTOM REVEAL.JS INTEGRATION (function() { if( typeof window.addEventListener === 'function' ) { var hljs_nodes = document.querySelectorAll( 'pre code' ); for( var i = 0, len = hljs_nodes.length; i < len; i++ ) { var element = hljs_nodes[i]; // trim whitespace if data-trim attribute is present ...
/** * Bio component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import { useStaticQuery, graphql } from "gatsby" import Image from "gatsby-image" import { rhythm } from "../utils/typography" const Bio = () =...
function MorseNode(ac, rate) { // ac is an audio context. this._oscillator = ac.createOscillator(); this._gain = ac.createGain(); this._gain.gain.value = 0; this._oscillator.frequency.value = 750; this._oscillator.connect(this._gain); if(rate == undefined) rate = 20; this.setRate...
// @flow import { scale } from '../../lib/scaling' import THEME from '../../theme/variables/airbitz' const CryptoExchangeWalletSelectorModalStyles = { touchable: {}, underlayColor: THEME.COLORS.TRANSPARENT, container: { flex: 1, justifyContent: 'flex-end' }, activeArea: { width: '100%', back...
import React, { PureComponent } from 'react'; import _ from 'lodash'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { ext as applicationExt } from 'shoutem.application'; import { getFirstShortcut } from 'shoutem.application/shared/getFirstShortcut'; import NoScreens from '../screens/...
import { queryBuildByFilterObject } from '~/utils/helpers' export const state = () => ({ screenList: [], screenListLoading: false, screenListFetchError: null, screenListFilter: { name: '', group: { screen_group_id: '', name: 'All', }, status: { title: 'All', value: '', ...
var check = require('./lib/util/check') var extend = require('./lib/util/extend') var dynamic = require('./lib/dynamic') var raf = require('./lib/util/raf') var clock = require('./lib/util/clock') var createStringStore = require('./lib/strings') var initWebGL = require('./lib/webgl') var wrapExtensions = require('./lib...
import reduce from './function'; reduce.test = function (describe, it, assert) { describe('数字减法', function () { // test 1 it('1 - 1 === 0', function () { assert.equal(reduce(1, 1), 0); }); // test 2 it('1 - 2 === -1', function () { assert.equal(reduce(1, 2), -1); }); }); }; exp...
function loader (source) { // console.log('logger2-loader'); return '//log2\n' + source; } module.exports = loader;
import React, { useState, useEffect } from 'react'; import { Jumbotron, Container, Col, Form, Button, Card, CardColumns } from 'react-bootstrap'; // import hooks for mutatios and our mutations import { useMutation } from '@apollo/react-hooks'; import { SAVE_BOOK } from '../utils/mutations'; import Auth from '../utils...
import _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import{ParetoColumnDataset}from"../pareto";import{_checkPointerOverColumn}from"../_internal/column3d-utils";var createGroup=function createGroup(groupName,parentContainer,dataset){var animationManager=dataset.getFromEnv("animationManager");return animatio...
/** @jsx h */ import h from '../h'; export default function(plugin, change) { return change.normalize(); } export const input = ( <value> <document> <paragraph>Before</paragraph> <table>No Rows</table> </document> </value> ); export const expected = ( <value> ...
/* * /MathJax/jax/output/SVG/fonts/TeX/Typewriter/Regular/BasicLatin.js * * Copyright (c) 2009-2014 The MathJax Consortium * * 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 * * ...
/* * jQueryFileTree Plugin * * @author - Cory S.N. LaViska - A Beautiful Site (http://abeautifulsite.net/) - 24 March 2008 * @author - Dave Rogers - (https://github.com/daverogers/) * * Usage: $('.fileTreeDemo').fileTree({ options }, callback ) * * TERMS OF USE * * This plugin is dual-licensed under...
/* Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. Example: Given a binary tree 1 / \ 2 3 / \ ...
/* eslint-disable no-console */ // Static site configuration as set in the environment of the server // TODO: This is currently written under the assumption that this module // will be lazy-evaluated after the DOM is ready. This isn't necessarily // true and could lead to some bewildering debugging. const env = {}; co...
const defaultToggleEvents = ['touchstart', 'click']; export default (toggler, togglerFn) => { let unbindEvents; if ( typeof toggler === 'string' && typeof window !== 'undefined' && document && document.createElement ) { let selection = document.querySelectorAll(toggler); if (!selection.l...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["index-list"] = factory(); else root["cu...
// Generated by CoffeeScript 1.9.3 (function() { var path, transformTools; path = require('path'); transformTools = require('browserify-transform-tools'); module.exports = transformTools.makeStringTransform("shaderify", { includeExtensions: ['.glsl'] }, function(content, opts, done) { var result; ...
export const recommendNav = [ { name: "头条", content: { headerTab: [ { name: "关注" },{ name: "推荐" } , { name: "热榜" } , { ...
/*jshint undef: false */ describe('Text directive with basic conf', function() { var element, scope; beforeEach(function() { module('ncy-basic-conf'); }); describe('without template', function() { beforeEach(inject(function($rootScope, $compile) { element = angular.eleme...
export default function() { let query = window.location.search; if (query.indexOf('ticket') == -1) { return {}; } else { window.history.pushState({}, document.title, "/"); return (/^[?#]/.test(query) ? query.slice(1) : query) .split('&') .reduce((params, param...
/*! * * persian-date - 1.1.0 * Reza Babakhani <babakhani.reza@gmail.com> * http://babakhani.github.io/PersianWebToolkit/docs/persian-date/ * Under MIT license * * */
var classv8_1_1internal_1_1_alternative_generation = [ [ "AlternativeGeneration", "classv8_1_1internal_1_1_alternative_generation.html#a4fb448588d879af44db7805e2b0d2d99", null ], [ "after", "classv8_1_1internal_1_1_alternative_generation.html#a5640bb3e3f745d0b4705cd21ae741361", null ], [ "expects_preload", ...
var config = module.exports; config['My tests'] = { rootPath: '../', environment: 'node', // or 'browser' tests: [ 'examples/webdriverio.with.buster.js' ] };
import React from "react"; import { Link } from "react-router-dom"; import { fork } from "child_process"; const EventComp = ({ event_id, event_name, event_description, event_date_time, event_location, fullname_event_organiser, email_event_organiser, telephone_event_organiser, recurring_event_description}) => { ...
import { runQuery } from "schema/v1/test/utils" import gql from "lib/gql" describe("Partners", () => { it("returns a list of partners matching array of ids", async () => { const partnersLoader = ({ id }) => { if (id) { return Promise.resolve( id.map((_id) => ({ _id, ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[179],{ /***/ "./frontend/src/views/settings/create_vehicle_categories.vue": /*!*******************************************************************!*\ !*** ./frontend/src/views/settings/create_vehicle_categories.vue ***! \*******************************...
import React, { useState } from "react"; import Editor from "../Editor"; const KitchenSinkExample = ({ components, renderProps }) => { const [showCompany, setShowCompany] = useState(true); return ( <div style={{ maxWidth: 1200, margin: "16px auto", position: "relative" }}> <h2>Kitchen sink</h2> <di...
/** * @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 */ import { Version } from '@angular/core'; /** Current version of Angular NgUniversal. */ export const VERSION = new Ver...
/** * Content.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ module.exports = { attributes:{}, login:function(param,cb){ if(param.name=="admin" && param.p...
import * as React from "react" import { Link, graphql } from "gatsby" // import Bio from "../components/bio" import Layout from "../components/layout" import Seo from "../components/seo" const BlogIndex = ({ data, location }) => { const siteTitle = data.site.siteMetadata?.title || `Title` const posts = data.allMa...
/* * Copyright (c) 2009 The Chromium Authors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of...
/** * Kendo UI v2017.2.621 (http://www.telerik.com/kendo-ui) * Copyright 2017 Telerik AD. All rights reserved. ...
/** * 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. * * @flow */ import type {Fiber} from './ReactInternalTypes'; import type {Lanes} from './ReactFiberLane'; import type { ReactFun...
/* * @message: 文章模型 * @Author: lzh * @since: 2019-11-06 15:30:38 * @lastTime: 2019-11-14 16:21:33 * @LastAuthor: lzh */ const mongoose = require("mongoose") const Schema = new mongoose.Schema({ title: { type: String }, categories: [{ type: mongoose.SchemaTypes.ObjectId, ref: "Category" }], body: { t...
YUI.add("lang/datatype-date-format_zh-Hant-HK",function(e){e.Intl.add("datatype-date-format","zh-Hant-HK",{a:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],A:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); // import VueRouter from 'vue-router'; // ...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * Copyright (c) 2016-present, Ali Najafizadeh * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent righ...
import React from "react"; export const SongLyrics = ({ title, lyrics, refLyrics }) => { return ( <section className="song-lyrics" ref={refLyrics}> <h3>{title}</h3> <blockquote style={{ whiteSpace: "pre-wrap" }}>{lyrics}</blockquote> </section> ); };
module.exports = function (oneStream, twoStream) { function timesTwo (x) { return x*2 } function plus (a, b) { return a+b } var fours = oneStream .map(timesTwo) .combine(twoStream.map(Number), plus) fours.log() return fours }
import React, { useState, useContext } from 'react' const FullwidthContext = React.createContext() const FullwidthUpdateContext = React.createContext() export const useFullwidth = () => { return useContext(FullwidthContext) } export const useFullwidthUpdate = () => { return useContext(FullwidthUpdateContext) } ...
/* * This file runs in a Node context (it's NOT transpiled by Babel), so use only * the ES6 features that are supported by your Node version. https://node.green/ */ // Configuration for your app // https://quasar.dev/quasar-cli/quasar-conf-js /* eslint-env node */ const path = require('path') const ESLintPlugin = ...
// utils var deepMerge = require('../utils/deepMerge'); // config var assets = require('./common').paths.assets; /** * Svg Sprite Building * Configuration * Object * * @type {{}} */ module.exports = deepMerge({ paths: { watch: assets.src + '/svg/sprite/**/*.svg', src: assets.src + '/svg/sprite', dest: ...
var url = hqImport('hqwebapp/js/initial_page_data').reverse; function DotLinkController($location) { var vm = this; vm.isActive = function() { return $location.path() === vm.route; }; vm.onClick = function() { $location.path(vm.route); }; } DotLinkController.$inject = ['$location...
// agregamos un comentario $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Calculo de valor de tickets function mat(){ var categoria=document.getElementById("categoria"); var valorseleccionado=parseFloat(categoria.options[categoria.selectedIndex].value); var cantidad=document.getElementByI...
/** * @file taxonentities.js * @brief Taxon children entities collection * @author Frédéric SCHERMA (INRA UMR1095) * @date 2016-12-28 * @copyright Copyright (c) 2016 INRA/CIRAD * @license MIT (see LICENSE file) * @details */ let CountableCollection = require('../../main/collections/countable'); let Classifica...
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.diq'); goog.require('Blockly.Msg'); /** @export */ Blockly.Msg.ADD_COMMENT = "Tefsir cı ke"; /** @export */ Blockly.Msg.CANNOT_DELETE_VARIABLE_PROCEDURE = "Can't delete the variable '%1' because it's part of the defini...
const path = require('path'); const beautify = require('js-beautify').html_beautify; const fs = require('fs-extra'); const pug = require('pug'); const untildify = require('untildify'); /* * Get the full path of the template file for generating charts based on * config. */ function getTemplatePath(templateFileName,...
import {Input} from 'antd'; const input = (props)=>{ const {inputType,...others} = props; let Component = Input[inputType]||Input; return <Component {...others} /> } export default input;