text
stringlengths
65
6.05M
lang
stringclasses
8 values
type
stringclasses
2 values
id
stringlengths
64
64
'use strict'; const Web3 = require('web3'); const squba = require('squba'); const contract_ids = require('../lib/contract_ids.js'); const abi_bin = require('../lib/abi_bin.js'); const networks = require('../lib/networks.js'); const mainNetMsg = () => 'Attention: Your metamask is connected to mainnet. ' + 'Don\'t use...
JavaScript
CL
81dab355d8064e333ebea49d20d2ddda1e4b13ef52d86c5b914eebf3ebb2b8f4
const express = require('express'); const router = express.Router(); const ProductController = require('../controller/products.controller'); const {tokenVerify} = require('../utils/jwtUtils'); // eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaXJzdG5hbWUiOiJ6ZWJyYW5kcyIsInBhc3N3b3JkIjoiemVicmFuZHMiLCJlbWFpbCI6InplYnJhbmRzQH...
JavaScript
CL
b4508fa376264b7d06a2658e1520f3ca9e8c8c7e66da2033ed7c35a4b2df65c6
'use strict' const express = require('express'); const middleware = require('./lib/middleware'); const routes = require('./lib/routes'); const logger = require('./lib/logger'); // TODO: Set $NODE_ENV=production in ELB // TODO: Add TLS // TODO: Add password to admin page const app = express() middleware.setupMiddlewar...
JavaScript
CL
96963f48bfc19c2c49f3a5ddb9e7bb03f1ed7400290a5b974ccb9827a88c6f66
/*! * A QUnit assertion to compare DOM node trees. * * Adapted from VisualEditor plugin for QUnit. Additionally supports comparing properties to * attributes (for dynamically generated nodes) and order-insensitive comparison of classes on * DOM nodes. * * @copyright 2011-2020 VisualEditor Team and others; see ht...
JavaScript
CL
be587c9c6aba3881b7398d16b2a36b30e9328daa0d433d02746c2169e00036bc
// Geometric convention: x to the right, y upward, z out of the screen (counter-clockwise / right-handed basis) // All distance measurements and related (velocity, acceleration, area...) are expressed in custom "abstract" units, from now on simply called "units" // +--------------------------------------+ // | PHYS...
JavaScript
CL
965ad077925e1e19495020fbf02d30388ac73d5f05d163a2d95eb576634f454f
// REACT DEPENDENCIES import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { render } from 'react-dom'; // COMPONENT LAYERS import Template from "./template/trb-map.template.jsx"; import Api from "./api/trb-map.api.jsx"; import Styles from "./services/trb-map.styles.service.jsx"; impo...
JavaScript
CL
add975f6cadae0079d5b6d6eac4d51833af286fc60f0455f60fca06df607906d
//========================= // Plane: Gobosh // Lesson: 1 //========================= //========================= // Section Headers //========================= exports.seed = function(knex, Promise) { // Deletes ALL existing entries return knex('lessonContents').del() .then(function () { // Inserts see...
JavaScript
CL
f82d03b8db5d6e32c43d02498110d439b050aa5fee11681abb3a1e9260833c2d
/* @license This software is distributed under The MIT License (MIT). Copyright (c) 2013 Present Creative */ import event.Emitter as Emitter; var DEFAULT_TIMER = 1000; exports = Class(Emitter, function(supr) { this.init = function(opts) { supr(this, 'init', [opts]); //set up array to hold scheduled eve...
JavaScript
CL
9faf65e7559a984f014c98ffc504e0eddcb936c44114e7676ff0a393bce7f532
import React, { PureComponent } from "react" import { graphql } from "gatsby" import ChurchManagement from '../components/home/church'; import Management from '../components/home/management'; import Features from '../components/home/features'; import Devices from '../components/home/devices'; import Testimonials from ...
JavaScript
CL
9a602f86458e29bae5a14b6d2a0743f6d3afee9195cdb0030a79302c8f4e7eb7
const quotes = [ { "quote" : "Роль человечества — достигать ниспосланных целей c чистым сердцем, находящимся в гармонии с мирозданием и любящим всё.", "source" : "Морихэй Уэсиба" }, { "quote" : "Сохраняйте свой разум светлым и чистым, как огромное небо, великий океан и самая высокая вершина, пустым от всех м...
JavaScript
CL
cc6bf4e0f5f68de18e6a7c623ad71f9344e9ee903364b9b382765050f9602412
import {flip, pickRandom} from 'app/tools/rand' import {logM} from 'app/tools/debug' import {compose, reduce, filter, set, lensPath, append, dissocPath} from 'ramda' const Location = (row, col, i) => ({row, col, i}) const shouldMove = () => flip(0.75) const isTruey = x => !!x const canMoveUp = (rowIdx) => rowIdx > 0...
JavaScript
CL
a71370bbd50d6d81a95d2994256773dc6b64dcc5d6654e4e268b8d70d18f62c2
// In development use .env.local for environment variables if (process.env.NODE_ENV !== "production") { require("dotenv").config({ path: ".env.local" }); } const config = Object.freeze({ MONGO_URL: process.env.MONGODB_URI || "mongodb://localhost:27017/silma", ENV: process.env.NODE_ENV || "development", PORT: p...
JavaScript
CL
73d9ffa228347788c3df46e8074748b9ac2b8ce6969bcb59a6015f0040fdb282
'use strict'; /*jshint expr: true*/ const envRestorer = require( 'env-restorer' ); const expect = require( 'chai' ).expect; const MODULE_PATH = 'lib/plugins/protect/index'; const ProtectPlugin = require( '../../../../' + MODULE_PATH ); describe( MODULE_PATH, function() { describe( 'ProtectPlugin', function()...
JavaScript
CL
761a3551ebf91e5069ee7ddf61380a35686a197d6b3ccfcaea02b10cc4cfc78a
import React from 'react'; import ReactDOM from 'react-dom'; import './style/index.css'; import registerServiceWorker from './registerServiceWorker'; // REACT ROUTER import {BrowserRouter, Switch, Route} from 'react-router-dom'; // COMPONENTS import BaseLayout from './components/BaseLayout'; import App from './compon...
JavaScript
CL
6e04100d8f3641d3f909903620851c2253695a6698826c6f8b5b68935fe89333
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
JavaScript
CL
83538cbb749f3edd751d9fd53f12471428a7151c28c540599582d9716f2e7597
import csv from 'csvtojson'; // polyfills for older browsers // keep an eye on these tickets // https://github.com/github/fetch/issues/357 // https://github.com/github/fetch/issues/275 import 'whatwg-fetch'; import Promise from 'promise-polyfill'; if (!window.Promise) { window.Promise = Promise; } /* My cust...
JavaScript
CL
a81ac3814d62477ea463c53d9987d6aa05ce59094633bad587391d401dcba9b2
import React from 'react'; import {Button} from 'reactstrap'; import {GenericSystemConfig} from './Generic'; import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; import { Input, FormGroup, Label } from 'reactstrap'; const ops = { addSystem: gql`mutation AddSystemToSimulator($id: ID!, $params: Strin...
JavaScript
CL
eaa1a4c430fabb742148fce5c52492f097ca45e17a9f7822a869d637c870f4c8
/** * # nodeGame-db * Copyright(c) 2014 Stefano Balietti * MIT Licensed * * Abstract DB interface for nodeGame * * http://www.nodegame.org * * --- */ module.exports.Database = require('./lib/Database.js');
JavaScript
CL
ef6a8f727c55f7961a4cb0798b418af44b576b98c7952ef3a11624d4a6d7b3fa
/** @preserve Twitter Bootstrap Alert Overlay 0.1.1 * Available under the MIT license. * See https://github.com/Fincallorca/twbs-alert-overlay/ for more information. */ /** * * @property {Object} _options - properties of SelectableTable * @property {string} _options.overlay - al...
JavaScript
CL
6fa6d51c3c2dd362793b8e6ffc899f9ba4f87fb4d42529833f255ae3730eaea4
/** * This software or document includes material copied from or derived from the * [JSON <=> URI selector converter](http://w3c.github.io/web-annotation/selector-note/converter/) * built for demoing the * [Selectors and States](http://w3c.github.io/web-annotation/selector-note/index-respec.html#media_selector) * ...
JavaScript
CL
f07342c1600be27b62bc179b87ec58ab007c097033cbd3357e860363bebaad60
/** * Actual worker to load database models into global.app.db + global.db * This is seperated into its own un-oppinionated module so that it can be used by 'dumb' scripts without the need for the Doop framework load process * * @example * // Access the database via a dumb module: * var db = require(config.paths.root +...
JavaScript
CL
1d07c96e6ddc003d55ceebe20dc81a12a034b07d7881c258cc0adef61cab6955
import React from "react"; import Book from "../components/bookingForm"; import Map from "../components/Map"; import RequestModal from "../drivercomponents/RequestModal"; import { View, HeaderBarItem, StatusBar, AsyncStorage, ToastAndroid } from "react-native"; import { Container, Text, Button, Content, Input...
JavaScript
CL
73bc25d1f326014b7f272cf185a92b608bbd8c14f0bc3c15153641b634714e33
import React from 'react'; import {Card, CardText, CardTitle} from 'react-md/lib/Cards/index'; import {Chart} from 'react-google-charts'; const opts = { hAxis: { title: 'Regression methods', minValue: 0, }, vAxis: { title: 'Time in seconds', }, chartArea: {width: '60%'}, ...
JavaScript
CL
e3a27b835a9ade25637267a022d438d1fa7328365935e090c3c8cde7a575962a
/* Instructions: (1) Wrap an XHR in a Promise in the get() function below. See: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest (a) Resolve on load and reject on error. (2) If the XHR resolves, use addSearchHeader to add the search header to the page. (3) If the XHR fails, console...
JavaScript
CL
39b8486680c4e3986d0a1964b1625202490412f6fd1298129c230430143f1ea3
var ffdb = require('flat-file-db'); var events = require('events'); var util = require('util'); var File = require('../utils/File'); var path = require('path'); function Database(config) { var self = this; /** db instance */ this.db; /** * connect to db * @param table */ this.conne...
JavaScript
CL
9dd1f2a9fb54d9b9cb0ec41268ff392c42f7ebe07d42c4bd2ea6261e623ef5a3
import cd from './cd'; import controller from './controller'; import settings from './settings'; import { areObjectsEqual } from './utils'; import { confirmCloseDialog, createCheckboxField, createNumberField, createRadioField, createTextField, handleDialogError, isDialogUnsaved, tweakUserOoUiClass, } fr...
JavaScript
CL
e6b7b5115a15567e506e0f6a36645a51b7c55ad61b2939c90530743aaba6b26b
/** * 初始化接口请求 * @param {object} types 要分发的 Action type 集合,结构 {start:'',success:'',failure:''} * @param {string} api 接口地址 * @param {string} callType 请求类型,暂时只提供 get 和 post * @param {object} meta 要分发的 Action meta 信息 * @param {object} body 要传递给后台的数据 * @param {function} shouldCallAPI 决定是否真实调用接口的函数,传入的参数为整个应用的 State。 ...
JavaScript
CL
690b49771403c9172699798b987186a9b3363f90c1532a7e952782a142eabe36
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableHighlight, View, FlatList, StyleSheet, } from 'react-native'; import { RkStyleSheet, RkTheme, RkText, } from 'react-native-ui-kitten'; import NavigationType from '../../config/navigation/propTypes'; export class CategoryMenu...
JavaScript
CL
2f27ebcb48c07615708d5142ad6a3ec37114fcaf92ac29ad7ec8da57d4deab49
/* * Copyright 2016 Nicolas Lochet 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 ...
JavaScript
CL
0d6dcc9db5bafa778e69ecc170e5b90b57ceeac714b4af24a6d9d15f0cb17902
const EventEmitter = require('events'); const logger = require('winston'); const Notifications = require('./notifications'); const internal = require('./internal/code-gen/statistics-api'); class Statistics extends EventEmitter { /** * Create a new Statistics object. * @param {String} apiKey The...
JavaScript
CL
ce2076689508587613b65d25c1eed2838e55e5021c93a15613f7a98dc6784fd6
import { useEffect, useState } from "react"; import twitterLogo from "./assets/twitter-logo.svg"; import "./App.css"; import { Connection, PublicKey, clusterApiUrl } from "@solana/web3.js"; import { Program, Provider, web3 } from "@project-serum/anchor"; import kp from "./keypair.json"; import idl from "./idl.jso...
JavaScript
CL
839df3abafba8e3ab9112d7f7a145949b2ff0aed925e69c4a69c06fc530e8ead
import React from 'react'; import ReactMarkdown from 'react-markdown'; import { t } from 'ttag'; import ExternalLink from '../../../../../ExternalLink/ExternalLink'; import logoCopernicus from './images/logo-tooltips-copernicus.png'; const getMarkdown = () => t` **Sentinel-2** provides high-resolution images in the vi...
JavaScript
CL
7de43d8cead1317cbf8ce59f4b58bd4ddd220e5e182b0dd227306b6671c33981
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.BucketWebsiteTarget=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../core"),region_info_1=require("../../region-info");class BucketWebsiteTarget{cons...
JavaScript
CL
b46af13e64ef0c24947b0753a60f3fa0c0a22069e3f03edd2be2d5dd0aa8ad18
var EventEmitter = require('eventemitter2').EventEmitter2 || require('eventemitter2'); var safeDeepClone = require('./safeDeepClone'); var Promise = require("promise"); var _ = require("lodash"); var createActionFunction = function(actionName, factory) { var fn = function() { var args = safeDeepClone('[Ci...
JavaScript
CL
be140eb986dc688aff712a396c93fc455f00ff11ab20ba11c2abc02a4acaec83
/* * Copyright (c) 2009-2011 Takashi Kitao * * 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, ...
JavaScript
CL
998dc96971b0a55386c2196b9c8a19a51b68cabf0a078001622a2d94a5895452
const assert = require('assert'); const moment = require('moment'); const request = require('supertest'); const app = require('../../src/app'); const models = require('../../src/models'); const { createUserToken } = require('../../src/routes/auth'); const TestUtil = require('../util'); describe('API update', () => { ...
JavaScript
CL
e0ca8f0af71303ff6f18b1e12eace60d401e18a6d07e46168f81d443eab06ddb
/** * 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 may not...
JavaScript
CL
080443a2a39956376ab1b0f8c744632626ce2deaa11193229e9d01c101c4e90b
//Call lineChart function to draw charts lineChart("linechart-2-container", "linechart-2", "linechart2-data.csv", "number of consumers"); lineChart("linechart-3-container", "linechart-3", "linechart3-data.csv", "total balances ($b)", "dollar"); /** * Creates a d3.js Line Chart * @param {String} containerID - ID o...
JavaScript
CL
d6b3be83d6109fe6253891fceb7cb115f9079affd7d9aeccb0380953733a3135
import React from "react"; class ThinktankSection1 extends React.Component { render() { return ( <section id="section-2-113" className="ct-section" style={{ background: "#eff4f7" }} > <div className="ct-section-inner-wrap"> <div id="fancy_ic...
JavaScript
CL
37f700cf792ad25701cb791352cfa43a57a8bd3e07949cb61399dc0764896c15
/* jshint node: true */ 'use strict'; var util = require('util'), EventEmitter = require('events').EventEmitter, WebSocket = require('ws'), _ = require('busyman'), RPC = require('freebird-constants').RPC; var TIMEOUT_RSP_CODE = 8, REQ_TIMEOUT_SEC = 10; function Client (addr, options, nativeWs) { ...
JavaScript
CL
7ab4ea4838c1c45f07424606ec449c2d57b6fc1c7c2aee88b42260d8a9a8b022
/** * * Update on 12-DEC-2019 Unlike some other modes like CBC, GCM mode does not require the IV to be unpredictable. The only requirement is that the IV has to be unique for each invocation with a given key. If it repeats once for a given key, security can be compromised. An easy way to achieve this is to use a ra...
JavaScript
CL
09d844c92b591022c6a5519e4efbc145f4174e1ab6ff65322511c09155928455
/** * Electron 共用函式 * * Usage: * 1.Main Process: * const myElectron = require('./modules/myElectron'); * * 2.Renderer Process: * const {remote} = require('electron'); * const myElectron = remote.require('./modules/myElectron'); * * Created by 阿友 on 2021/02/23 */ let consoleTitle = '[/app/...
JavaScript
CL
4894367b5ef63aa41e34b40353c110f44be7cd8057453243f7e54f3ca9b4e5e3
import React from 'react'; import classes from './AboutMe.module.css'; class AboutMe extends React.Component { aboutMeRef = null; constructor(props) { super(props); this.aboutMeRef = React.createRef(); } scrollToMyRef = () => { window.scroll({ top: this.aboutMeRef.current.offsetTop, l...
JavaScript
CL
5b85aa76e687730570f5cecbd4d2bb42512780ee769562d2feceae93f85d5634
const baseConfig = require('./webpack.config.base.js') const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin') const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const webpack = require('webpack') const dotenv = require('dotenv').config({ path: path.resolve(__dirname, '.e...
JavaScript
CL
24794f19b4bec7c667a30f7c3c65a02118da670fffcd86762b91a5dde842dd26
/* eslint-env mocha */ import LinkedHeading from '../src/js/linked-heading'; import * as assert from 'proclaim'; import sinon from 'sinon/pkg/sinon'; sinon.assert.expose(assert, { includeFail: false, prefix: '' }); describe('LinkedHeading', () => { let testArea; beforeEach(() => { document.body.innerHTML = `<...
JavaScript
CL
0262951d4fc062528ccda42269d4b1b5e257e78f2d5f9fdecb3c94c80bc53c5c
// @flow import React from 'react'; import Point from './Point'; type Props = { startingPoint: Point, startingAnchor: AnchorPositionType, endingPoint: Point, endingAnchor: AnchorPositionType, strokeColor: string, arrowLength: number, strokeWidth: number, arrowLabel?: ?React$Node, arrowMarkerId: stri...
JavaScript
CL
61299920a3f1e3743adfba645c8ae09fc28b236102e780ae612a53e57b8a2452
var game = {}; game.score = 0; var scoreDisplay = document.querySelector('.info-score'); scoreDisplay.innerHTML = game.score; // Global variable for hitbox visibility. Set by checkbox on game board. var hitboxCheckbox = document.getElementById("hitbox"); var showHitbox = hitboxCheckbox.checked; // Listen for a chang...
JavaScript
CL
9bbca178cbe6f88a805bbc659ad1e3e24a4074c55ee769a675fe74d438b7ed02
import React from "react"; import styled from "styled-components"; import { graphql } from "gatsby"; import { GatsbyImage } from "gatsby-plugin-image"; import { Layout, Container, MarkdownRenderer, Icon } from "../components"; import { capitalizeString, getImageWithTracedSVG } from "../utils"; import { useDarkMode } f...
JavaScript
CL
eb45d4329b746767d146f9943a43384fae163b53b0d43ffb6502d854255989fb
import { createStore, applyMiddleware, compose } from 'redux'; import createSagaMiddleware from 'redux-saga'; import rootSaga from './../utils/CombineSagas'; import reducers from './reducers/rootReducer'; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const sagaMiddleware = createSa...
JavaScript
CL
67f76c298abd98cb6d6ccdde46ca1432ea1c0012d444bcfa9df6ace8671605b4
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{ /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/baseComponents/base_upload/index.vue?vue&type=script&lang=js&": ...
JavaScript
CL
75e3f7f4d589c71ebbdbeb508b89db5da7f641ff99cc0100604ff0478db5b5b9
import React, { useState, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useHistory } from "react-router-dom"; // Redux import { emailSignInStart, googleSignInStart } from "../../redux/User/user.actions"; // Material-ui import Avatar from "@material-ui/core/Avatar"; import ...
JavaScript
CL
a77b67314e82e53fa6b845b6c87956637740e1ae8dc99ed93880c565a4475726
'use strict' const IPLDBlock = require('ipld-block') const CID = require('cids') const { getName } = require('multicodec') // @ts-ignore const vd = require('varint-decoder') const multihashing = require('multihashing-async') const { isMapEqual } = require('../../utils') const { Message } = require('./message') const E...
JavaScript
CL
a6989bd14e2cee34b1686b73b3c18f2b37b247e70afdf573c2622f261843718f
'use strict'; import { parseStatus, parseSetups, formatSetups } from './QT60240.mjs'; const KEY_NAMES = [ // TODO: why are the bytes backwards? Because I swapped the line numbers in the schematic.. 'c#', 'd#', 'f', 'g', 'a', 'b', 'k1', 'k3', 'c', 'd', 'e', 'f#', ...
JavaScript
CL
7ba3146bbfc866abc066b7c8f72ea0ab3f4fe411ca17824e500ba0af421bdced
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const PurgecssPlugin = require('purgecss-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); c...
JavaScript
CL
2edc0815cbf8e1b90970b680161ab983d0a27472885a9f1b5e6fb05fdfa80c56
import React, { useState } from "react"; import { Paper, Grid, TextField, Typography, Button, IconButton, Select, InputLabel, MenuItem, FormControl } from "@material-ui/core"; import MonetizationOnIcon from "@material-ui/icons/MonetizationOn"; import useStyles from "../styles/StylesSheet"; import {a...
JavaScript
CL
791bc636be069300c44b2757ce760f82252e110809233cdfd5fc1f5c8bc786ec
// @ts-check import React from 'react'; import { Provider } from 'react-redux'; import { io } from 'socket.io-client'; import { initReactI18next, I18nextProvider } from 'react-i18next'; import i18n from 'i18next'; import App from './components/App.jsx'; import store from './store/store.js'; import { SocketContext, Ro...
JavaScript
CL
0995591dc055f3de880cf672f2c4beb127898db127c6ae9f7b95c3c401b6bf88
import * as R from 'ramda' import { lazy } from '~/utils' import getFiniteMovableTiles from './getFiniteMovableTiles' import getNextMovable from './getNextMovable' import getMovableAxis from './getMovableAxis' import { getSide, reduceSnapshotBySide, parseCode, getSpecial } from '../helpers' function createReduceCb ({ ...
JavaScript
CL
9cc83414c5239ad6e350255bfea2c3627d5d5e6fc0e0e62dee30e0380b4becff
import config from 'textup-frontend/config/environment'; import Ember from 'ember'; import Location from 'textup-frontend/models/location'; import PropTypesMixin, { PropTypes } from 'ember-prop-types'; import { buildPreviewUrl } from 'textup-frontend/utils/location'; const { computed, tryInvoke, run, typeOf, getWithDe...
JavaScript
CL
58e039033e204fe029f25c9d520191633205d0b851148e729988014149ae18eb
import React from "react"; import { StyleSheet, Platform, StatusBar, SafeAreaView, View, Text, } from "react-native"; import AllAccountsComponent from "./app/components/AllAccountsComponent"; import colors from "./app/config/colors"; import NavbarComponent from "./app/components/NavbarComponent"; import Cas...
JavaScript
CL
57af35d8aa4b9e9dfdb152b2afe7b67b34dd4087c9e202167f2e4289de8a2f8e
/*--------------------------------------------------------*/ /* */ /* Copyright Set Snail */ /* All rights reserved. */ /* */ /* ...
JavaScript
CL
0b6a0d8e6b8ed5d0d8097efcb13c67f3dcc7eea717af4526fdcba9c8c1d20bd8
import React from 'react'; import { connect } from 'react-redux'; import Sections from '../sections'; import Collapse from '../collapse'; import './index.scss'; class Help extends Sections { constructor(props) { super(props, [ 'what-is-seedom' ]); } render() { const { open } = this.state; ...
JavaScript
CL
c90add49e48032f0607638fba51f4ed6f45e4314e53b82a948d695cdf2e5320c
var custom_content = `<meta charset='utf-8'/><html><head></head><body><div class="oald" id="entryContent"><div class="entry" hclass="entry" hlength="6" htag="section" id="angina" idm_id="000001970" sk="angina: :0" sum="263"><div class="top-container"><div class="top-g" id="angina_topg_1"><div class="webtop"><h1 class="...
JavaScript
CL
d20f2741477a5ebf74a245e12c8ddd680bea9465509a0c5f3af1aa9bd16596a3
const rawData = { articles: [ { id: 'allergy', title: 'Аллергия на холод', date: new Date().toLocaleDateString('se').replace(/\D/g, '.'), description: 'Детская кожа у детей нежнее и тоньше, чем у взрослых, поэтому реагирует на холод быстрее и дольше.', author: { firstName: 'Д...
JavaScript
CL
320bbf54080b9d47ca2b73160125d04c3d0b83b048ab6f79a4682642eb0a335a
/** * Copyright (c) 2015-present, tbud, Inc. * 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 rights can be found in the PATENTS file in the same directory. * * @providesModu...
JavaScript
CL
e7cd907db9bf95ca1f2d8b27bd2cd1900f0a9a617244ad751a19a85f3755192a
/** * Imports */ import BaseStore from 'fluxible/addons/BaseStore'; import contentActions from '../../constants/contents'; /** * Store */ class ContentsListStore extends BaseStore { static storeName = 'ContentsListStore'; static handlers = { [contentActions.CONTENTS_FIND]: 'handleListRequest', ...
JavaScript
CL
24e9f78b553573ecb6d212d1d42fcb9e1b2a35e2d2ef19faae3d19cd15347ed5
webpackJsonp([0],{ /***/ 886: /***/ (function(module, exports, __webpack_require__) { "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d...
JavaScript
CL
6f6191f78197dba3cc9d6632dcbbb50affb3a37fd15ffc233d7586a5f247c3e1
import { useCallback, useState } from "react" /* * It's a good practice to by default memoize any API exposed by the hook * so that clients can apply any optimizations to their code when needed, so * make sure you: wrap functions within `useCallback` and expensive computations * within `useMemo` as appropriated. ...
JavaScript
CL
a268318e8a7be824e3029ed366e5e82b1890877ff44f43b93eddb9717e5c3a8f
import rio from '@shoutem/redux-io'; import { getExtensionSettings } from 'shoutem.application'; import { shoutemApi } from './services'; import { STATUSES_SCHEMA, USERS_SCHEMA, } from './const'; const APPLICATION_EXTENSION = 'shoutem.application'; export const apiVersion = '59'; export function appDidMount(app...
JavaScript
CL
8ba30fc940e62fc04b4e6a1b8d72b87e4b471d959ba0ccb016c1d345782f1a2b
const { CONSTANTS, log, isEmpty } = require('./utils'); let { data } = require('./data'); const chalk = require('chalk'); const { BOOLEAN, NUMBER, ARRAY } = CONSTANTS.TYPES; const { User, Organisation, Ticket } = data.getEntities(); class Display { constructor() { this.tabWidth = 15; } /** * ...
JavaScript
CL
c91e6eb5d96cb91814aa5f1af665ef1e931c47019bf742695e7718e17849e516
import React from 'react'; import * as ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './asset/css/styles.css'; import 'filepond/dist/filepond.min.css'; import 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css'; import 'dplayer/dist/DPlayer.min.css'; // file pond import { ...
JavaScript
CL
ee72c1dbb71db24bd9c7b28cefbdb52e66d56b504aca041dd2c00f4e76da6bfb
webpackJsonp(["main"],{ /***/ "./src/$$_lazy_route_resource lazy recursive": /***/ (function(module, exports) { function webpackEmptyAsyncContext(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncatched exception popping up in devtools return Promise.resolve().then(function(...
JavaScript
CL
3374b08feee84346cabd28e4d47995a5c1ae8775e1620f8f5fe23f03c8a36823
/** * AnimateCSS.js: * Этот файл определяет функцию с именем animateCSS(), служащую основой * для создания анимации на базе CSS. Аргументы функции: * * element: Анимируемы HTML-элемент. * numFrames: Общее число кадров в анимации. * timePerFrame: Количиство миллисекунд отображения каждого кажра. *...
JavaScript
CL
80bf0d4620ac0b074e437d38e734c24566d0f3faecbdadad7837cf83cbec39e5
import 'react-native-gesture-handler'; import React, { Component } from 'react'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import { createStore } from 'redux'; ...
JavaScript
CL
454cf227de2ef71a7899152123b35c7efe11ec608638e0d5acf5390adf62ea96
import { Fragment, useState, useEffect } from 'react'; import utils from '../styles/utils'; import { works } from '../assets/data/works'; import useWindowSize from '../components/size'; import General from '../components/layouts/general'; import Header from '../components/template/header'; import Slider from '../comp...
JavaScript
CL
1266dfcab40c4b7d7744938dad70a8577a1f3e3ab4619034d4e5611f096837fe
import { isEmpty, isArray } from '@/utils' import { getBrandDetail } from '@/api/store' import { loginIn, loginOut, updateUserInfo } from '@/api/sys' import { ROLE_BRAND, ROLE_STORE, ROLE_STUFF } from '@/utils/const' import { getRules, setRules, getUserId, setUserId, getStoreId, setStoreId, setNickName, ...
JavaScript
CL
8ca8bfa1d591635036493d8160b5b4d4d21ac6ff6917d2ec05e90d62ae41c3d0
import React, {Component} from "react"; import {observer, inject} from "mobx-react"; import {Modal, Empty, message} from "antd"; import LocalHistory from "../LocalHistory"; import {AutoSaveInterval, getLocalDocuments, setLocalDocuments, setLocalDraft} from "../LocalHistory/util"; import IndexDB from "../LocalHistory/in...
JavaScript
CL
a07e1bb20532e0070f325ef21e114a99f2cf60982c619c8d9f5850a2d204eea5
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file 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/li...
JavaScript
CL
f0ce496761b96dfbf49453ab75d2338d812270f2c606e53cf4c6329c813bd7c4
// primary file for the API // dependencies // http module enables requests and responses via a server const http = require('http'); // use fs module allows us to read from / write to the file system var fs = require('fs') // the url module splits up a web address into useable parts const url = require('url');...
JavaScript
CL
c3d0f786c5e9bee3867e422b213072ba4abd64c4976e4bd8ca66f55cc09e2a75
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */ import React, {Component} from 'react'; import {View, StatusBar} from 'react-native'; import FlashMessage from 'react-native-flash-message'; import {Provider} from 'react-redux'; import store from './src/redux/store';...
JavaScript
CL
d82a79786c00a3b96f1911b05ab67367d606d68ac6186008a5b290098bfcce1d
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[7],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Register.vue?vue&type=script&lang=js&": /*!*********************************************************************************************...
JavaScript
CL
0d5508eadd33593b9522022e0a91b729d77ca31c113eee07f8b9a0d4b21783e5
const { GraphQLObjectType, GraphQLInt, GraphQLString, GraphQLBoolean, GraphQLList, GraphQLSchema } = require('graphql'); const axios = require('axios'); // This is an example of working with 3'rd party api. In this case it is the Space X API // the key's on the field then need to match wha...
JavaScript
CL
1935c2577eb732f32b42efc69b61c8bc6bc7f69bc9d36a04f478645be57ac424
import consola from 'consola' import chalk from 'chalk' import opener from 'opener' import { common, server } from '../options' import { eventsMapping, formatPath } from '../utils' import { showBanner } from '../utils/banner' import { showMemoryUsage } from '../utils/memory' export default { name: 'dev', descripti...
JavaScript
CL
25c8f398ee5b451b1bca4ce1d184c4362dfd07e884dbe021c4a3865e99da7e4c
/** * ----------------------------------------------------------------------------- * * @review isipka * * ----------------------------------------------------------------------------- */ /** * Generic ML MlObserver class. * * * @class FM.MlObserver * @memberOf FM * @extends FM.LmObject * @param {F...
JavaScript
CL
df87cdcdf9ceef9234f77d8615d7350bafb5b2311e3e72838a56286f2af006a9
const path = require('path') const resolve = paths => path.resolve(__dirname, paths) const { VueLoaderPlugin } = require('vue-loader') module.exports = { mode: 'production', entry: resolve('../packages/wmview/index.ts'), output: { path: resolve('../dist'), filename: 'index.js', libraryTarget: 'umd'...
JavaScript
CL
b587cf5746c473420fefd228b0188c1ff055ce097e7fb3b4552a53c634cdbef9
"use strict"; var fs = require('fs') , shell = require('shelljs') , chalk = require('chalk') , utils = require('../../tools/utils') ; module.exports = function(resourceName) { //init strings const name = utils.getNormalizedName(resourceName); const plural = utils.pluralize(name); const camelName = uti...
JavaScript
CL
970d14bce57a0c0f0bb3cde91e0492f96f4feda72c9403147d22b31359077dd4
'use strict'; const Redis = require('ioredis'); const Redlock = require('redlock'); const config = require('config'); const logger = require('screwdriver-logger'); class Lock { /** * Constructor */ constructor() { if (config.get('redisLock.enabled')) { const redisLockConfig = con...
JavaScript
CL
3945e9ba659cb9ba54f79e044db31fd05ebe5abe4858704865fea7948ef94683
/* Copyright 2023 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 agre...
JavaScript
CL
9bb4c340b95df5b0e10a4cd03e04676574a33b7cc020977cb026e55ba3a4d73e
/*npm install gulp-cache gulp-clean-css gulp-imagemin */ // 载入gulp var gulp = require('gulp'), // sass = require('gulp-ruby-sass'), // autoprefixer = require('gulp-autoprefixer'), //自动增加浏览器前缀 // loadplugins = require('gulp-load-plugins'), //自动加载插件 // jshint = require('gulp-jshint'), ...
JavaScript
CL
394141e99cdd1241100681c84b2273a3d4ef7e9996ddac52029fc34bdf906ba6
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.useProgram = useProgram; exports.useProgramUniforms = useProgramUniforms; var _react = require("react"); var _warning = _interopRequireDefault(...
JavaScript
CL
0a3f804f006c5152ae504b924bf04e26a51ebbff2a46355a93356316f133e332
// @ts-check const Discord = require("thunderstorm") const c = require("centra") const entities = require("entities") const encoding = require("@lavalink/encoding") const passthrough = require("../../passthrough") const { constants, sync, frisky, config, ipc } = passthrough /** * @type {import("../../modules/utilit...
JavaScript
CL
2358e59db0983058e20c22fec5291e887abe581e3dce97fb62f1b551d23aa92d
import { func } from 'prop-types'; import { useState } from 'react'; /** * @description Replicated functionality of `constructor(props)` * from class components to be used in functional components * @param {Function} callback - the function to be called inside constructor */ const useConstructor = (callback =...
JavaScript
CL
06db8078d9ba5f3564f581a6c5b9a32099fae3d6ecd9c484e62d0568d68d3cca
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
JavaScript
CL
8ab2c2dfed8f0f16ecebd92baad90e7b81441887f69a36ee95e3d885bc28cf17
const gulp = require('gulp'); const webpack = require('gulp-webpack'); const sourcemaps = require('gulp-sourcemaps'); const babel = require('gulp-babel'); const concat = require('gulp-concat'); const uglify = require('gulp-uglify'); const rename = require('gulp-rename') c...
JavaScript
CL
36bd4d8c12238416191dbfda0e830529c8e355ae45aff2d1b4f88387a07bf3c0
var url = require('url'); var XRegExp = require('xregexp'); var extend = require('extend'); var core = require('../../../core').Core; var base = require('../../base').Base; module.exports = function(options) { return { /** * {@link qrs.md|See parent documentation} * @namespace *...
JavaScript
CL
58806f23a7d2ddee8187f5ce7692b017329cacaf8e3f196a74658fa57c92d296
var https = require("https"); var queryString = require("querystring"); var strftime = require("strftime"); var fs = require("fs"); var xml2js = require("xml2js"); /** * @type {{togglApiKey: string, clockanApiKey: string, startDate: string, endDate: string}} */ var config = JSON.parse(fs.readFileSync(__dirname + "/c...
JavaScript
CL
0e0972c08d79b848148f6ea7258f37b26c10f5cc49327ad2521d3f82c5f185a5
/* jshint node: true */ 'use strict'; var os = require('os'); var fs = require('fs'); var config = require('./config'); var spawn = require('child_process').spawn; var _ = require('lodash'); var Tail = require('tail').Tail; var log4js = require('log4js'); log4js.configure(config.LOG4JS_SETTINGS); var logger = log4js.g...
JavaScript
CL
40dd80e3012d4d66dab4da75d8b8cc7d998d7874d38c955708b1650a8490c1fa
import { Platform } from 'react-native'; import { takeEvery, apply, put, select } from 'redux-saga/effects'; import moment from 'moment'; import { orderCancelFetchSuccess, orderCancelFetchFailure, } from '../actions/orderCancel'; import { queryOrderListFetch } from '../actions/queryOrderList'; import { queryOrderFe...
JavaScript
CL
393adaf44316c87620a0cfd6e2c7e56cdad658534ef0323bd72fb9be9b2d7cae
const firebase = require("firebase"); const dotenv = require("dotenv"); dotenv.config(); const config = { apiKey: process.env.FIREBASE_KEY, authDomain: process.env.FIREBASE_DOMAIN, databaseURL: process.env.FIREBASE_DATABASE, projectId: process.env.FIREBASE_PROJECT_ID }; // Initialize Firebase firebase.initiali...
JavaScript
CL
da63d2a5186bcdb5c308be3935fd775d5a30803e6cd6b454eccbec4ae4e86a1c
const { React, getModule, contextMenu, getModuleByDisplayName } = require('powercord/webpack'); const { Tooltip, Icon, Spinner } = require('powercord/components'); module.exports = class RichQuote extends React.Component { constructor (props) { super(props); this.state = { searchStatus: false }; } static g...
JavaScript
CL
6eac906a2331f555e19f87ebfe962fd39217d0c4bd2853269cb488a649e68bb3
/** * Kandy.js (Next) * kandy.link.js * Version: 3.0.0-beta.17786 */ (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 ex...
JavaScript
CL
106e0dedd38093fa82c6679b07e3f70eb1d02acd7d1be78bb81c0d3769201ff2