text
stringlengths
65
6.05M
lang
stringclasses
8 values
type
stringclasses
2 values
id
stringlengths
64
64
import React from 'react'; import { Helmet } from 'react-helmet'; import Layout from '../components/Layout'; import { useInfiniteQuery } from 'react-query'; import { useParams } from 'react-router-dom'; import { searchProducts } from '../Queries/Queries'; import { useIntl } from 'react-intl'; import SearchRightSide fr...
JavaScript
CL
c0833c0c313c2d3be8d1ce51820ca9d1f0cf5e5b35b5c100b219a27ab0995bb2
const stylelint = require("stylelint") const _ = require("lodash") const resolvedNestedSelector = require("postcss-resolve-nested-selector") const { ruleMessages, validateOptions, report } = stylelint.utils const rewire = require("rewire") const postcssModulesLocalByDefaultRewired = rewire("postcss-modules-local-by-de...
JavaScript
CL
3ddfaac957de2ecc3d5d37da25255f8725b73ddc1f1cf23c87b177bb3a726083
/* global document, setTimeout, WSE */ /* Copyright (c) 2012, 2013 The WebStory Engine Contributors 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 co...
JavaScript
CL
bea2e7c59905220cac16e17bd4fe293988e613f76f8fb647e953c98dedb0f30c
var phylocanvas; HTMLWidgets.widget({ name: 'radial_phylo', type: 'output', initialize: function(el, width, height) { return { width: el.offsetWidth, height: el.offsetHeight } }, renderValue: function(el, x, instance) { // function to add css to <head> var addCSS = ...
JavaScript
CL
6e117ccfe848f9cb1bf6e508f8ff0a74e2ccc5e3c8fc2002083e7fbfd56ed2a6
import React, { Component } from "react"; import { Route } from "react-router"; import { Layout } from "./components/Layout"; import Home from "./components/Home"; import "bootstrap/dist/css/bootstrap.min.css"; import "./custom.css"; import "mapbox-gl/dist/mapbox-gl.css"; import "./index.css"; import Cart from "./compo...
JavaScript
CL
4d08879b68c774576f5997f65207e9dc4c1f4df753bf054c1703a9f40780d40c
/** * @author: yate * @description: 封装axios方法 */ import axios from 'axios'; import { baseUrl } from '../api/env'; axios.defaults.baseURL = baseUrl; axios.defaults.headers.common['Authorization'] = ''; // 添加请求时拦截器 axios.interceptors.request.use(function(config) { return config; }, function(error) { console.log(...
JavaScript
CL
191c947133d34a43d60a3c189cd536eee44e92cf1a00178ba00665b685d250b3
/** * @fileOverview Playlist views. * There are two main views, a list of all playlists, and a detailed view * of a single playlist. Exactly one of these two views is always present. * It would be desirable if there was a 1:1 correspondance between models and * views but this was considered not necessary for this ...
JavaScript
CL
87ce26e445e75f6ee328b09be0272b4e4570b427aff9bc53aa0c8164b6c48db7
/* * Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U * * This file is part of fiware-iotagent-lib * * fiware-iotagent-lib is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either versio...
JavaScript
CL
9ad0d9c6d35820a8f5c4a9f20cdf9c2cf506fdff44cc8f12116446f3a0957d9d
// Copyright 2019 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { Map, CircleMarker, TileLayer } from 'react-leaflet'; import { Spinner, Grid, GridItem, PlatformStateContext, NerdletStateContext, NerdGraphQuery } from 'nr1'; import { EN...
JavaScript
CL
05cb3ce71bd49d5ec6fa1ad0e9ad729c55d17fcb82e5286140614ec586c78950
/** * [Lube.Places] * * @date [2016] * @revision [0.1] * @author [Tim Vermaelen] * @type [module] */ // global function required to re-instantiate function asyncGoogleMaps() { } /** * @function $ : jQuery * @function google : Google * @namespace ns : namespace GiveADay */ window.Lube = ...
JavaScript
CL
7855dad7232ab6a08d26d94ff0f56a82a204d2eb15e43e53aaf038ce6ab9389e
import React, { Component } from 'react'; import { I18nextProvider } from 'react-i18next'; import * as PropTypes from 'prop-types'; import { MuiThemeProvider } from '@material-ui/core'; import { ApolloProvider } from 'react-apollo'; import SearchProvider from './containers/SearchProvider'; import { Search } from './con...
JavaScript
CL
f5533f482489b2b45dd54f2b4f216f9b7ec704bc4b224a0960acc214612c5657
// Exercise 1 // 1. Create an object called shape that has a type property and a // getType method. var shape = { type: "", getType: function() { return this.type; } }; // 2. Define a Trangle constructor function whose prototype is // shape. Objects created with Triangle should have three own // p...
JavaScript
CL
728661ac1fb994b8cab6a03bd7d73e1566be4898842fd3f1cb096ab9582b6d3d
/* 👋 Hi! This file was autogenerated by tslint-to-eslint-config. https://github.com/typescript-eslint/tslint-to-eslint-config It represents the closest reasonable ESLint configuration to this project's original TSLint configuration. We recommend eventually switching this configuration to extend from the recommended ...
JavaScript
CL
1b762b1954761a106ab46efd3e6ef247ff70df828a751fd8b3711aa8fe6125f5
import React, { PureComponent } from "react"; // @material-ui/core components import withStyles from "@material-ui/core/styles/withStyles"; // @material-ui/icons import AddAlert from "@material-ui/icons/AddAlert"; // core components import GridItem from "components/Grid/GridItem.jsx"; import GridContainer from "compone...
JavaScript
CL
3e6d48cb3575c5a75888706c857b9382d7d9725fdfbbf9b9a2b96ce6d710361a
var fs = require( 'fs' ), path = require( 'path' ), rimraf = require( 'rimraf' ), chai = require( 'chai' ), expect = chai.expect, sinon = require( 'sinon' ), JSONStore = require( '..' ), STORE_PATH = path.join( __dirname, 'temp' ); chai.use( require( 'sinon-chai' ) ); function readJSON( file ) { return JSON....
JavaScript
CL
57f8e7364f77e5d5f17057d0b27a3e2a603fae1d891f82eaee8fe20e65060cfc
import {queryHistoryOrder,queryAddressZones,queryAddressBuildings,queryAddressUnits,queryBySearch, queryMessage,sendMessage,queryInvoice,addInvoiceInfo,FormInfo,queryByDateSearch,queryList,returnMoney} from '../services/histories'; export default { namespace: 'histories', state: { data: { list:...
JavaScript
CL
13a50af6cd24888bec3d71f1fba9f617fefd71f2beecd1996d43ba9c542d3ff5
'use strict'; var find = require('101/find'); var Api = require('models/api.js'); var errorPage = require('models/error-page.js'); var logger = require('middlewares/logger')(__filename).log; /** * Middleware to check if the container is running * @param {object} req - Request Object * Requires both targetNaviEn...
JavaScript
CL
826853dd04a4b5fec700b38aad7f321083a723a440ca265555f8db14b8f26c72
'use strict'; const post = require( './external-request/post' ); const fs = require( 'fs' ); const url = require( 'url' ); const compose = require( 'async/compose' ); const asyncify = require( 'asyncify' ); const fromArray = require( 'tessa-common/lib/stream/from-array' ); const apply = require( 'tessa-common/li...
JavaScript
CL
d2c2dc00f986b56168541d78ac69bc69e70927493a70b3f7e74d5166b2c74517
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter, Route, Switch } from 'react-router-dom'; import { Provider } from 'react-redux'; import { Container } from 'reactstrap'; import RequireAuth from './components/RequireAuth'; import store from './reducers'; import App from './components/A...
JavaScript
CL
aa974001a2645654a93561f4c43499df5819b39bc9f8ea9e50fcf71354921f4b
// This model was generated by Lumber. However, you remain in control of your models. // Learn how here: https://docs.forestadmin.com/documentation/v/v6/reference-guide/models/enrich-your-models module.exports = (sequelize, DataTypes) => { const { Sequelize } = sequelize; // This section contains the fields of your...
JavaScript
CL
f3dee9ad7db4428a0164906d272febe9bb70b632115e7ebeb7280eca141dc023
const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin'); const CleanWebpackPlugin = require('clean-webpack-plug...
JavaScript
CL
4216c56890f5fa94fbe4a293811ef80d5a86bf6ceda3ca317022bf29f29a95f7
"use strict"; /** * generate an artificial dataset * column description follows visualizations * with additional values (see respective type-classes) * some are shared: * * - if "isarray" is set, "multitude" gives the count of columns for that binding * default: 2 * * param * * columns | Object ...
JavaScript
CL
0da2250e3975a7d4e187d2457fc802ca5cb6e5f2ee816e67d0d5826978e6fbf7
import React from 'react'; import PropTypes from 'prop-types'; /* eslint-disable import/no-named-as-default */ import Dropdown from '../Dropdown'; import IntegrationPicker from '../IntegrationPicker'; /* eslint-enable import/no-named-as-default */ import { integrationPropType } from '../propTypes'; import './Integrat...
JavaScript
CL
2ebfefd024ebf47aa82eb9816c1707e87ee058c34a69ba4ef23d461d7e436578
/* * * Configs for the server * */ // Container for all the environments var environments = {}; // Debug configuration environments.debug = { 'envName': 'debug', 'httpPort': 8080, 'httpsPort': 8081, 'hashSecret': 'thisIsASecret' }; // Production configuration environments.production = { 'envName': 'pro...
JavaScript
CL
6b742bcf78b6beb62f61e02177b478ad089ffd19431ca923e6395bef7b9cd120
import React from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import InputAdornment from "@material-ui/core/InputAdornment"; import Icon from "@material-ui/core/Icon"; // @material-ui/icons import People from "@material-ui/icons/People"; import Favorite from "@materia...
JavaScript
CL
9f2d0495655122748c881d03b3fb19fe4b1157ceddf03fbab481fab003c4e485
import React from 'react'; import { shallow } from 'enzyme'; import { chai } from 'meteor/practicalmeteor:chai'; import { ReadyPromptComponent } from './ready-prompt.component'; describe('Component: ReadyPromptComponent', () => { describe('when not connected to room', () => { describe('when first user in the roo...
JavaScript
CL
a528fe481a9ef2ee198bb77b6157f8acbfe28ffe0a3565994dafe9695b0a10b3
var fs = require('fs'); var path = require('path'); var _ = require('underscore'); var utils = require("../helpers/http-helpers"); var getHandler = require("../web/get-handler"); /* * You will need to reuse the same paths many times over in the course of this sprint. * Consider using the `paths` object below to stor...
JavaScript
CL
3ff437120e429931f71e1a63af897954cd09cadb50da83faf2bed50f5bf96441
import React from "react"; import { createStore, applyMiddleware } from "redux"; import thunk from "redux-thunk"; import reduxPromise from "redux-promise"; import rootReducer from "./reducers"; import { Provider } from "react-redux"; import { composeWithDevTools } from "redux-devtools-extension"; import PropTypes from ...
JavaScript
CL
827476e622eb410bbdd157d03a2fddc5da3e6c034de8683afd0af310d153fb46
// Include our config file that defines port # var config = require('./config/config.json'); var express = require('express'); const path = require('path'); // parses post data and lets you access it from req.body.<nameofparam> var bodyParser = require('body-parser') // instantiate an app server. var app = expre...
JavaScript
CL
edd3ba8d6a53095d28af557170876b3063feea992620484186258b60e5df886d
const log = require('./lib/Log').getLogger(`server[${process.pid}]`) const path = require('path') const getIPAddress = require('./lib/getIPAddress') const http = require('http') const fs = require('fs') const { promisify } = require('util') const parseCookie = require('./lib/parseCookie') const jwtVerify = require('jso...
JavaScript
CL
98425c325a55cbe36405475edf505d6696f1d8aba4ab845661adf321d13aad2a
/** * Given a starting string and a list of insertions to make to make to that string, * find the count of the most frequent character minus the least frequent after * applying the list of insertions ten times. * */ const partOne = (input) => { let [template, rules] = parseInputString(input); let letterCou...
JavaScript
CL
9c2e0ca15a8578cb8bd87a0686f4063b434ae827b00fb697e459d242c05769fb
'use strict' //dependencies const gulp = require('gulp'); const del = require('del'); const util = require('gulp-util'); const zip = require('gulp-zip'); const minimist = require('minimist'); const rename = require('gulp-rename'); const exec = require('child_process').exec; const replace = require('gulp-replac...
JavaScript
CL
96d0b80663102e4732577367103118e94e70d806f8251e5bedc84dd07fe6a542
import React from 'react'; import ReactDOM from 'react-dom'; import { Card, CardHeader } from 'material-ui/Card'; import Field from './verify_key_fields_component'; import ArrowDownIcon from 'material-ui/svg-icons/hardware/keyboard-arrow-down'; import { Translate } from 'react-redux-i18n'; import _ from 'lodash'; ...
JavaScript
CL
135667005a0def9de9d6bea64cc93e0c29b61d64fba48f57f8861b16ec61cfe0
import React from 'react' export default function Terms () { return ( <div className="article"> <section> <p>UpBlockchain User Agreement (hereinafter referred to as “Agreement”) is a contract between you (“user” and collectively with others using the platform “users”) and Up Blockchain Te...
JavaScript
CL
f27047c2897fea88f857a3a281672dda3308d44dac52d079d7c9465fc6a3f727
import React from 'react'; import PropTypes from 'prop-types'; import './styles.css'; import { Grid, TableFilterRow, TableHeaderRow, VirtualTable } from '@devexpress/dx-react-grid-material-ui'; import { FilteringState, IntegratedFiltering, IntegratedSorting, SortingState } from '@devexpress/dx-react-grid'; import Pape...
JavaScript
CL
4f35d761fac3b25f381ed9dd01ea60fbba46669df4b5ea0691712d377fcddc27
/* eslint-disable no-unused-vars,no-trailing-spaces */ /** * Created by viktor on 7/7/17. */ // ======================================================== // Import Packages // ======================================================== import React, { Component } from 'react' import PropTypes from 'prop-types' impo...
JavaScript
CL
5c33a5c28f619666832a495714238d2fa19b3f935e784d6ef3c48659e7985229
/** * TODO: Write real documentation. */ /** * Truncate a block of text to a designated number of characters or words, returning the split result as an array. * Default behaviour is to split the text at 25 characters, breaking words if need be. * * @param {String} Text to operate on. * @param {Object} Options f...
JavaScript
CL
e6a5581e93adb09112e05416ebdb23ec0f600cc214eac7468d80d1f3fe1067ff
export default { route: { dashboard: 'Dashboard', introduction: 'Introduzione', documentation: 'Documentazione', guide: 'Guida', permission: 'Permessi', pagePermission: 'Pagina Permessi', directivePermission: 'Permessi di Autorizzazione', icons: 'Icone', components: 'Componenti', ...
JavaScript
CL
770769a9ac9d4ca082bb62fa5cdc6f62965b78a69898cb882dc7d69b486ef99e
import { createWizard, destroyWizard, setWizardModel, changeWizardStep } from '../wizard'; describe('(Actions) HalcyonWizard', function () { describe('createWizard', function () { it('Should be a function.', function () { expect(createWizard).to.be.a('function'); }); it('Should return an ...
JavaScript
CL
c83430a3e552ea58b8cffaa5e47a51a0fafcc8fea074a40b7803815013d6d21a
import React from "react" import Layout from "../components/global/layout" import SEO from "../components/global/seo" import Section from "../components/shared/section" import Wrap from "../components/shared/wrap" import Banner from "../components/shared/banner" import MinistryImage from "../components/assets/ministry...
JavaScript
CL
a96478af7e465b3b7eeae753f4a1739989dd9658be3793c283ce79f068ada050
/*! ***************************************************************************** Copyright (c) 2014 Artifact Health, LLC. All rights reserved. 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 ...
JavaScript
CL
8fd420baf6aaf3f844d4f97830da22ea488fb5a4bfd56ed19f52040977e1df22
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/agent/reporder/reporder"],{ /***/ 81: /*!*********************************************************************************************!*\ !*** E:/HBuilderProjects/MotorOrder/main.js?{"page":"pages%2Fagent%2Freporder%2Freporder"} ***! \**********...
JavaScript
CL
fd1ebaff18d0178f1f9688b5266904ce21395a23f940a6ea32990b5141a4d127
 var client; $(document).ready(async function () { const msalConfig = { auth: { clientId: "51d7c325-0c70-4896-8e8d-140eba1f9d2e", // Client Id of the registered application redirectUri: "http://localhost:56802/", }, cache: { cacheLocation: "sessionStorage", // This configures where your cach...
JavaScript
CL
f534dc0467fdebc3b7fa2c010e15b94842b992527abda37e5e635b3afc139f3b
import { STATICDATA_LOADING, STATICDATA_LOAD, STATICDATA_ERROR_DB, STATICDATA_NO_OP, } from './constants' import { staticdataRD } from './reducer' const PAYLOAD = { beliefs: '', strengths: '', lifeDescriptions: '' } const INITIAL_STATE = { isLoading: true, isError: false, errorMessage: '', beliefs: []...
JavaScript
CL
1a1ae71738c78cbd383906307336636ba630970643201cfd21894bfef51b58c2
const uuid4 = require('uuid/v4'); module.exports = { // // This function writes multiple inventory into inlfe system - stub to simulate a unique id back from inlife system // writeInlifeAssets: function(enhancedBssItems) {}, // // This function writes single inventory into inlfe system // ...
JavaScript
CL
8419736f57f78794c9bbd190b0245eed84420ce1e6af3e29da792af84046ff14
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import '!style!css!./photoswipe.css'; import type { PhotoSwipeItem, PhotoSwipeOptions } from 'photoswipe'; import React, { Component } from 'react'; import cx from 'classnames'; import PhotoSwipe from 'photoswipe'; import PhotoSwipeUI from 'photoswipe/src/js/...
JavaScript
CL
a565c097c9a60384161c7b0bcdc2fbeb478795020cb5bdc669ba4816020e4b2e
!function(exports) { var inputSectionElem; var resultSectionElem; var chartTypeSelect; var btnSend; var divParams; var sharedSecretInput; var jsonResultInput; var urlResultInput; var chartImg; const HOST = document.location.origin; const URLS = { 'line': HOST + '/charts/line', 'bar': ...
JavaScript
CL
8e6f4b953d791bee5002882386388a30ebc68ac9c474ef3f01941d51d2057d88
const gulp = require('gulp'); const browserSync = require('browser-sync'); browserSync.create('PGR2015'); const serve = require('./gulp_tasks/serve'), ts = require('./gulp_tasks/ts'), clean = require('./gulp_tasks/clean'), html = require('./gulp_tasks/html'), scss = require('./gulp_tasks/scss'), b...
JavaScript
CL
ab9102faecbaaef4f7213d141cffdb819d267ee1f2849e9936efe713041ae0b7
const PdfManager = require('src/manager/PdfManager/PdfManager'), InquirerManager = require('src/manager/InquirerManager/InquirerManager'), fileManager = require('src/manager/FileManager'), config = require('config'), genExec = require('src/utils/genExec'), KafedraPage = require('src/page/K...
JavaScript
CL
b57c7cce2c2818c03729101bfad27c3b20977ac6f760661b375054fceb379d70
webpackJsonp([7],{"+hz4":function(t,a,e){"use strict";a.a={name:"Talk",props:["talk","descFlex"],computed:{images:function(){return Array.isArray(this.talk.img)?this.talk.img:[this.talk.img]},id:function(){return this.talk.author.toLowerCase().split(" ").join("-")}},mounted:function(){this.id===this.$route.query.focus&...
JavaScript
CL
f072fb3390c964c448db7b762cf543fc1577a9150427ab927fd77778bb53509b
/** Vagner Machado QCID 23651127 This is my implementation of the RFC865 Quote of the Day Protocol for TCP connection. * This Node JS server listens for a connection on port 3014 * Once a connection is established, a short message is sent out the connection. * Any data receives is disregarded. * The connection is...
JavaScript
CL
085b30e7010b136dd36a485763aec25bcaff718b4744b81a918d2059b3e52475
/** * @file * * ### Responsibilities * - create global variable SOURCEONLY that is only true for 'unminified' code * * @author Daniel Lamb <dlamb.open.source@gmail.com> */ /*jshint unused: false*/ /** @define {boolean} SOURCEONLY is used to exclude sections of code that should not be included in production c...
JavaScript
CL
7da62712a0e47483c1a0f6d7fc6004de5cc9d9c8543431ecf691e3458d5377ce
/* * 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 ...
JavaScript
CL
c54232bb78a4bfcabae4160a2f36cad9509a02a5a43147f44fb7dcfe2df41239
System.config({ "bundles": { "admin.js": [ "app/admin.js", "github:eonasdan/bootstrap-datetimepicker@0.0.10.js", "github:eonasdan/bootstrap-datetimepicker@0.0.10/build/js/bootstrap-datetimepicker.min.js" ], "main.js": [ "app/main.js", ...
JavaScript
CL
32124d5783bd4f24d80b6fa99bd1d1f0024c6f72e30eda5f6b2e72c28d50df75
const app = require("express")(); const bodyParser = require("body-parser"); const multer = require("multer"); const server = require("http").Server(app); const io = require("socket.io")(server); const fs = require("fs"); const path = require("path"); const yargs = require("yargs") .option("pluginsDestDir", { def...
JavaScript
CL
ffefac17e46fded27c9f7d0a18062bfb848ef28a2e9584d821beca50eb0bdb14
const express = require('express'); const path = require('path'); const session = require('express-session'); const bodyParser = require('body-parser'); const {DATABASE_URL, PORT} = require('./config/config'); const app = express(); // connection to database const mongoose = require('mongoose'); const mongoDB = 'mong...
JavaScript
CL
3aace0ff981d58b51350763a5632a9e526b4817c7c09b0ea0195c4fdba9294d5
import _ from 'lodash'; import React, { Component } from 'react'; import { reduxForm, Field } from 'redux-form'; import { Link } from 'react-router-dom'; import Card, { CardContent } from 'material-ui/Card'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; import responseFormFie...
JavaScript
CL
ae6d02f6e325783aa7f116381a9b933f63348620b1d2a9c67ab81e63aaa1ed5d
define(function (require, exports, module) { /************************************************ 字符串工具 *********************************************************/ /** * 数字格式化 每三位一个逗号 * @num 数字 * @poNum 小数点位数 */ function numFmtCmapo(num, point) { point = (point == null || point === "" || typeof(p...
JavaScript
CL
f6a1b8207b1a39c1752af8c99fac55671e16699d9a9475239244b035699dc29f
/******************************************************************************* * * Copyright (c) 2011, 2016 OpenWorm. * http://openworm.org * * All rights reserved. This program and the accompanying materials * are made available under the terms of the MIT License * which accompanies this distribution, and is ...
JavaScript
CL
0435027eee71117e8c6e5ca53795ae11e4936900f02f98a091a3cab9f49557a9
#! /usr/bin/env node /** * Mastodon statistics bot * Copyright (c) 2019 Maxime Launois * * 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 limitatio...
JavaScript
CL
10391aeb427f6888054dd14ad6ecf5e97e63a6654ea36666b4c45d46c683139a
import { Link } from 'react-router-dom'; import { useHistory } from 'react-router'; import { useForm } from 'react-hook-form'; import { authFetchApi } from '../../../../util/fetchApi'; import { useAuth } from '../../../../contexts/AuthContext'; import { useNotification } from '../../../../contexts/NotificationContext';...
JavaScript
CL
cddbc0ab9a471a71d45800889dffa2a1a34c6ecc541605ea83966d711085eb30
/** * @notes - This class is a builder - It help us to return a format of pagination meta data { currentPage, currentSize, totalPage, totalRecord } - We need to add content when we construct by of() method */ export class PageableMeta { currentPage; currentSize; totalPage; tota...
JavaScript
CL
1c0a484efd581ceeebec8a7f2b3f841fcf1e460dc7798cd0ff54616d1ff6d0cd
'use strict' const Analyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin const MemoryFS = require('memory-fs') const gzipSize = require('gzip-size') const webpack = require('webpack') const Babili = require('babili-webpack-plugin') const path = require('path') function promisify (callback) { return new...
JavaScript
CL
c67a88e6b93263445cf6b009616bd54759fafc3a2086c3eefb2a7dc917e0941f
(self["webpackChunkbingo"] = self["webpackChunkbingo"] || []).push([["vendors-node_modules_core-js_modules_es_array_concat_js-node_modules_core-js_modules_es_array-c3b762"],{ /***/ "./node_modules/core-js/internals/array-method-has-species-support.js": /*!***************************************************************...
JavaScript
CL
d813a5a5bf04ebbbd5d884b506bb0ae0580c75c40789b9b8ce7058e7605862ba
const webpack = require('webpack') const merge = require('webpack-merge') const common = require('./webpack.common.js') const HtmlWebpackPlugin = require('html-webpack-plugin') const taskUtils = require('./utils/task')(); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const path =...
JavaScript
CL
f030ed2ce85b23e670377410fece7a6d24b922fa12cd0c86afba24f7ec6b5e12
const cron = require('node-cron') const { prisma } = require('../generated/prisma-client') const moment = require('moment') const { sendSlackDM } = require('./slack') // TODO PRIORITY - THIS NEEDS TESTING ON MY IMAC // TODO instead of doing one chek every 24 hours, we chould check every few hours and only send a not...
JavaScript
CL
1c1b721332698cd020a52892f6b76b1a92dbc52a86e0d44df2c14019c682676a
import map from '@redux/Map/reducer'; import user from '@redux/User/reducer'; import token from '@redux/Token/reducer'; import packages from '@redux/Package/reducer'; import regions from '@redux/Package/reducer'; import products from '@redux/Product/reducer'; import profile from '@redux/Profile/reducer'; import message...
JavaScript
CL
c9d0f4dd58fdff2f3ff3b5709e58d187cd064173b3dfabccf7fcbf70ca0773b1
#!/usr/bin/gjs // Copyright (c) 2014 Wojciech Dzierżanowski. // Use of this software is governed by the MIT license. See the LICENSE file // for details. const Lang = imports.lang; const Gst = imports.gi.Gst; let State = { STOPPED: 1, PLAYING: 2, }; const Player = new Lang.Class({ Name: "player", ...
JavaScript
CL
8eac15324f13b0bd9d6d3f3ba3dd46ebf38f155287b1ff0080d774606695a12d
// John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. // For example, there are socks with colors . There is one pair of color and one of co...
JavaScript
CL
9365d8be9be7157b61338b7fdac7b0b2f2b61d4d78de8d1bc2ec1e962e89d314
// VERSION 2.4.3 Modules.UTILS = true; Modules.CLEAN = false; // window - Similarly to Windows.callOnMostRecent, the window property returns the most recent navigator:browser window object this.__defineGetter__('window', function() { return Services.wm.getMostRecentWindow('navigator:browser'); }); // document - Retur...
JavaScript
CL
a9672dc903a6ce8bef0d1b962ce064985ad380807198a7d51f423726b5f65893
console.log('Hello world, this is a test.'); //console.log = print = cout let temp_var = "Some value goes here"; // Puntos y coma como C++ son requisito en algunas secciones // 'let' se usa para hacer variables, tambien se usa 'var' y se hace igual que C++ console.log(temp_var); let Person = { name: unde...
JavaScript
CL
0cd6cdf753c48a527edddf2f80de9c1a82fa64f3f5dee564f09fdf2573958579
/******************************************************************************************************* * File: upload.js * Project: hootenanny-ui * @author Matt Putipong - matt.putipong@radiantsolutions.com on 7/5/18 *************************************************************************************************...
JavaScript
CL
bcf5d6388fdac2291f0ce8016460c225d5b11cc9f85a49004c5726a0b4a02026
import { Reducer } from 'redux-testkit'; import Immutable from 'seamless-immutable'; import addEvent from '../events/addEvent'; import { ADD_EVENT_FULFILLED, ADD_EVENT_PENDING, ADD_EVENT_REJECTED, ADD_EVENT_RETURN_TO_INITIAL_STATE } from '../../constants/Events'; const initialState = { pending: false, rece...
JavaScript
CL
de81bd8a48e91be4ed074f2bd15cd87928a38d9cbbef5934173e47d8ece66aa6
/** * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
CL
224ff587f4d801ba766a3ddcbe438767fb4b8e8b1246f5e7d85f541831423c8f
////////////////////////////////////////////////////////////////////////////// // Nation Website 2016 // Latest work slideshow // Author: Chris Bews ////////////////////////////////////////////////////////////////////////////// (function(window, document, undefined) { "use strict"; NATION.Utils.createNamespace("NA...
JavaScript
CL
93464bbdd023609640b6ce83b659595031b38e8074bd0d41a054ba791337030e
import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; import Card from "@material-ui/core/Card"; import CardHeader from "@material-ui/core/CardHeader"; import CardMedia from "@material-ui/core/CardMedia"; import CardContent from "@material-ui...
JavaScript
CL
9c9e108d5335b2ef5b7e966d61ad1d65a9e36d39e6d54c3cd2b7b9163fc86a52
// Import React import React from 'react'; // Import Spectacle Core tags import { Appear, BlockQuote, Cite, CodePane, Deck, Heading, Image, // Layout, // Link, ListItem, List, Notes, Quote, Slide, Text, } from 'spectacle'; // Import image preloader util import preloader from 'spectacle/l...
JavaScript
CL
76f3d9437e143fc6f7100712d4266c2f045b64989ad8f6a5d232de68b618a938
// alert('WOW ! Tu es toujours avec Moi !!!'); // Deux Slash pour faire un commentaire uniligne /* Ici, Je peux faire un commmentaire sur plusieurs lignes Raccourcis : CTRL + / ou ALT + SHIFT + A */ // -- 1. Déclarer une variable en JS var Prenom; // -- 2. Affecter une valeur Prenom="Pascal"; // -- 3. Afficher ...
JavaScript
CL
7a1be51d03ebcf1e0f972c2705da08fbfe0df9f22c55906e1252e830d7522e37
/* * Copyright 2022 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 ...
JavaScript
CL
02d0cea3728f7ebc74938465b6ca8b859a0ec3f7836112981531c198bbc81790
/* Variables */ var gulp = require('gulp'), notify = require('gulp-notify'), livereload = require('gulp-livereload'), connect = require('gulp-connect'), historyApiFallback = require('connect-history-api-fallback'), install = require("gulp-install"); var ...
JavaScript
CL
711a5bb939e7c7ecae096c85322cf34f19724678320655cb00209dbacb6e3f6e
// Include Gulp var gulp = require( 'gulp' ); // Include Plugins var sass = require( 'gulp-sass' ); var autoprefixer = require( 'gulp-autoprefixer' ); var imagemin = require( 'gulp-imagemin' ); var pngquant = require( 'imagemin-pngquant' ); var jshint = require( 'gulp-jshint' ); var concat = require( 'gulp-concat' )...
JavaScript
CL
a6a064510aca2da13aab7957fb0f1fcfd9024df32613a9cf27e63cf33c1fad96
import { message, Table, Tooltip } from "antd"; import Column from "antd/lib/table/Column"; import React, { useState } from "react"; import { ExportOutlined } from "@ant-design/icons"; import localStorageService from "../../../helper/localStorage/localStorageService"; import Roles from "../../../helper/config/Roles"; ...
JavaScript
CL
d1bd9213dc6a71869cbf3d167eec68a15b416cd1c78b267cacdb39e9dc438829
(self["webpackChunkBhogeWeb"] = self["webpackChunkBhogeWeb"] || []).push([["src_app_announcements_announcements_module_ts"],{ /***/ 4997: /*!***************************************************************!*\ !*** ./src/app/announcements/announcements-routing.module.ts ***! \****************************************...
JavaScript
CL
881153abd69b9f33127a62f5d90edea484c56bbc3b26ba6bd52b85d16a771a39
import React from 'react' import Header from '../header/Header' import { render } from 'react-storefront/renderers' import AppModel from '../AppModel' import theme from '../theme' /** * Inserts the PWA header into adapt pages. * @param {Object} stats Webpack build stats object for the client build */ export default...
JavaScript
CL
32dc0c9fa55e85a6aa834606b9a247c0591a72e0d2c97dd1c7e25809be04f468
// ========================================== // dépendances ============================== // ========================================== var express = require('express'); var path = require('path'); var child_process = require('child_process'); // ========================================== // SERVEUR EXPRESS =======...
JavaScript
CL
e79b54aef30261f846f83769b0348fa55244f40da95675ac22adceddcdbc63e7
"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; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
JavaScript
CL
70787bb0120d6c6829588748544fda36b7a518dc33eaa9dc6f9d6ac499aaf897
import React from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router, Route, Link, Redirect, withRouter } from 'react-router-dom' import './TasksFunctions.css'; class TasksFunctions extends React.Component { constructor(props) { super(props); this.state = { error: null, isLoa...
JavaScript
CL
934324e8be9d92ceab831d4b9fe0debb472e04d3e260d73f87a5fe3512f13a73
var config = require('config'); var gulp = require('gulp'); var browserSync = require('browser-sync'); var webpackMiddleware = require('webpack-dev-middleware'); var webpack = require('webpack'); var runSequence = require('run-sequence'); var webpackConfig = config.get('webpack'); var yargs = require('yargs'); var bsCo...
JavaScript
CL
2ce1d55966e8ae807540498aafca4447212834dfdd308733a1bdb324d0a777c3
// https://developers.google.com/sheets/api/quickstart/nodejs const fs = require('fs'); const readline = require('readline'); const GoogleAuth = require('google-auth-library'); const config = require('../config'); const logger = require('../log'); const { googleClientSecret: GOOGLE_CLIENT_SECRET, googleClientId: ...
JavaScript
CL
57f5b7df1e6d5691f60b9103d173b8643918410c25a3103a05dede1d9404750f
import { all, take, put, call, race, fork, delay } from 'redux-saga/effects'; import { push } from 'connected-react-router'; import userSaga from './user'; import institutionSaga from './institution'; import groupSaga from './group'; import gameSaga from './game'; import quizSaga from './quiz'; import hostSaga from '....
JavaScript
CL
54fb0e21b07c106eb16284a6ea7284495a67994e6127d909a81d992c3f61bb61
"use strict"; const request = require('request'); // fetching remote files from repos const fs = require('fs'); // file system operations like copying, renaming, reading files const path = require('path'); // needed for some OS-agnostic file / folder path operations const rm = require('rimraf'); // used to synchronous...
JavaScript
CL
f2e53eface9e13719feb138f93792a537cfcb4ec365534069e888db3c11593d3
import React, { lazy, Suspense, Fragment } from "react"; import { Switch, Route } from "react-router-dom"; // import LoadingScreen from "src/components/LoadingScreen"; import Layout from './hoc/Layout'; const routesConfig = [ { path: "/tracking-shipment", component: lazy(() => import("./views/Shipm...
JavaScript
CL
a4e2a833aadf62b9df216ef4fe710ad91900e317037e4e745793176cd4e570a8
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prot...
JavaScript
CL
8f45da215e92fde17393e3698a2eeef8e59576600f3ad1b871b252db0a6b86f6
/* струткуру папкок source_folder scss scss_blocks html_blocks js img fonts project_folder css js img fonts */ const project_folder = 'dist'; const source_folder = '#src'; const preprocessor = 'scss'; const path = { build: { html: project_folder + "/", ...
JavaScript
CL
4a019c21f6ef97a733c678eb84ffd0ee1a55b7374b22d45c8058c452bdb70714
import React from 'react'; import {connect} from 'react-redux'; import {ContentLoader, Table, Tooltip} from '@xanda/react-components'; import {api, fn} from 'app/utils'; import {url} from 'app/constants'; import {fetchData} from 'app/actions'; import {ButtonStandard, Link, PageDescription, PageTitle, Back} from 'app/co...
JavaScript
CL
7d087b153f8eff00f59c7196cb0c2271cee4b4ac22db5b1dceac44776ca3858a
const h = starling.h; const newAction = starling.newAction; //------------------------------------------------------------------------------- // DATA //------------------------------------------------------------------------------- const initialState = { counter: 0, step: 1, }; //----------------------------...
JavaScript
CL
6239048ee2137999c8c5a2a3db88fe19829e58b9e8885f1144f2b33133a90fc4
/* ** ** textkey.js ** ** These are the TextKey js handling functions. They handle the interaction with the backend handler code as well as the client side interaction/integration. ** */ /* ** ** TextKey modal default options ** ** These settings define what shows up in the TextKey Modal dialog. ** ** NOTES: ** ** ur...
JavaScript
CL
3c78a9b98cf1b8f16529cbf1cb2208797b4e83c4dd9102985a1fd9123d2887d7
var Interactions = {}; Interactions.interact = function() { Scene.players.forEach(function(player) { // Perform collision detection between player and components in the world var collisionDistances = Interactions.detectCollisions(player); // Act on any collisions between the player and components collision...
JavaScript
CL
99e66bf71babfba1491cb47f61f75fa80c3b08658bd849f76e5e7e7a89c7392c
import PropTypes from 'utils/PropTypes'; import React, { Component } from 'react'; import renderProp from 'utils/renderProp'; import joinKeys from 'utils/joinKeys'; import { REF } from 'utils/Issuers'; import { isFunction } from 'utils/fp'; import withTable from 'hocs/withTable'; import withIssuer from 'hocs/withIssuer...
JavaScript
CL
b4f640f5c1cf8c3713c1fbcb844697b8437f546aaf5cea4caf388e2d694087af
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
JavaScript
CL
bf4e9fc37be66c1c30af683464ce57eb518d4fbbeb850dcb9187d5bc0512744c