text stringlengths 2 1.04M |
|---|
import Icon from '../components/Icon'
Icon.register({
'pen-alt': {
width: 512,
height: 512,
paths: [
{
d: 'M497.9 74.2c18.8 18.8 18.8 49.2 0 67.9l-56.6 56.5-128-128 56.5-56.6c18.8-18.8 49.2-18.8 67.9 0zM251.1 53.6l84.9 84.9 82.8 82.8-196.8 196.8c-51.2 51.2-119.6 85.4-195.3 93.8-15.3 1.7-28.... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"widgets/Stream/nls/strings":{_widgetLabel:"Ak\u0131t",noStreamLayer:"\u00d6nceden yap\u0131land... |
import * as React from "react";
function SvgArchAwsDirectoryService32(props) {
return (
<svg width={40} height={40} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" {...props}>
<defs>
<linearGradient
x1="0%"
y1="100%"
x2="100%"
y2="0%"
id="Arch_AWS-Directory-Service_32_svg__a"
... |
function PickImage() {
var imagenumber = 17 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1;
images = new Array;
// I hate this, it should be a lot cleaner
images[1] = "repobanner/0.png";
images[2] = "repobanner/1.png";
images[3] = "repoba... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import React from 'react';
import PropTypes from 'prop-types';
import {
IconAppStore,
IconCodepen,
IconExternal,
IconFolder,
IconFork,
IconGitHub,
IconInstagram,
IconLinkedin,
IconLoader,
IconLogo,
IconPlayStore,
IconStar,
IconTwitter,
IconZap,
} from '@components/icons';
import IconTableau ... |
const somethingWillHappen = () => {
return new Promise((resolve, reject) => {
if (true) {
resolve('hey! great!')
} else {
reject('Ooops!')
}
}
)
}
somethingWillHappen()
.then(response => console.log(response))
.catch(err => console.error(err))
co... |
(function($P){
'use strict';
$P.BubbleBase = $P.defineClass(
$P.Frame,
function BubbleBase(config) {
//if (!(this instanceof BubbleBase)) {return new BubbleBase(config);}
var group;
if (!config.strokeStyle) {
config.strokeStyle = $P.BubbleBase.getUnusedColor();}
config.cornerRadius = 5; //confi... |
const fs = require('fs');
const path = require('path');
module.exports = class CreateSymlinkPlugin {
constructor(options, force = false) {
if (options instanceof Array) {
this.options = options;
} else {
this.options = [options];
}
this.force = force;
}
... |
// I18N constants
// LANG: "hi", ENCODING: UTF-8
{
"Maximize/Minimize Editor": "संपादक न्यूनतम / अधिकतम करें"
}; |
// app.js
const load = require('./loader.js').load;
const reload = require('./loader.js').reload;
// create global application object _g and object (_g.require) to hold required modules and js files
global._g = {};
// All modules loaded via require go here
_g.require = {};
// array of module names, modify as need... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompilerImports = void 0;
const tslib_1 = require("tslib");
const engine_1 = require("@remixproject/engine");
const remix_url_resolver_1 = require("@remix-project/remix-url-resolver");
const profile = {
name: 'contentImport',
d... |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6',
name: 'Node CLI Test',
user: {
... |
// Copyright (C) 2021 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.instant.prototype.tozoneddatetime
description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots
info: |
sec-temporal.... |
'use strict';
var promisify = require('./promisify')
,patched = false
,originalPatch = null
;
exports = module.exports = promisify;
exports.getPromiseImplementation = getPromiseImplementation;
exports.patch = patch;
exports.unpatch = unpatch;
function getPromiseImplementation() {
return require('i-prom... |
import {Admin} from '../../models/index.js';
import jwt from 'jsonwebtoken';
export default async (req, res) => {
try {
const {email, password} = req.body;
const user = await Admin.findOne({email});
if (!user) {
return res.status(404).json({
message: 'User was not found',
email: email,
});
}
co... |
sap.ui.define([
"sap/ui/core/mvc/Controller"
], function(Controller) {
"use strict";
return Controller.extend("apimngmnt2.controller.View2", {
onInit: function () {
var oRouter = this.getOwnerComponent().getRouter();
oRouter.getRoute("application").attachMatched(this._onRouteMatched, this)... |
//// [instantiatedBaseTypeConstraints.js]
var Bar = (function () {
function Bar() {
}
Bar.prototype.foo = function (bar) {
};
return Bar;
})(); |
const { applyParams, applySearch, getRoute, mergeRoutes, prepareRoutes } = require('../lib/router')
const someRoutes = {
POST: [{
path: '/group/:id',
handler: (req, res) => {
res.write('Post on Group')
res.end()
}
}],
GET: [{
path: '/',
handler: (req, res) => {
res.write('Ge... |
const fs = require("fs");
module.exports = isPathExists;
/**
* Check wherther file or directory exists
* @param {string} dir path to file or directory
* @return {Boolean} result
*/
function isPathExists(dir){
if(fs.existsSync(dir)){
return true;
}
return false;
} |
(function () {
'use strict';
angular.module('ariaNg').factory('ariaNgSettingService', ['$window', '$location', '$filter', 'ariaNgConstants', 'ariaNgDefaultOptions', 'ariaNgLanguages', 'ariaNgCommonService', 'ariaNgLogService', 'ariaNgStorageService', function ($window, $location, $filter, ariaNgConstants, aria... |
var searchData=
[
['send_5fcss',['send_css',['../namespaceweb_back.html#aa3905888cf38ed1374d1adc98c45bca6',1,'webBack']]],
['send_5ffonts',['send_fonts',['../namespaceweb_back.html#adac705fce6dde6308b579f703b3b627f',1,'webBack']]],
['send_5fjs',['send_js',['../namespaceweb_back.html#a36644ac58627cbb02b55457d97a7f... |
/**
* 二叉树的层次遍历 -- bfs
*/
/**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {TreeNode} root
* @return {number[][]}
* 递归
*/
var levelOrder = function (root) {
const result = [];
if (root === null) re... |
const imgBase = 'http://cdn.3fengs.com'
const baseURL = 'http://oa.3fengs.com'
const imgAction = 'http://oa.3fengs.com/api/v1/upload/img'
export default {
imgBase,
baseURL,
imgAction,
// socketURL
} |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@nestjs/core");
const user_module_1 = require("./routes/user.module");
const config_service_1 = require("./infrastructure/configuration/config.service");
const http_exception_filter_1 = require("./infrastructure/Excepti... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
im... |
var data = [
{
"firstname": "Desirae",
"lastname": "Cabrera",
"age": 42,
"city": "Kooigem",
"street": "Ap #624-3498 Mauris Av."
},
{
"firstname": "Myles",
"lastname": "Mccall",
"age": 78,
"city": "Leduc",
"street": "Ap #939-2049 Convallis Street"
},
{
"firstname": "Colette",
"lastname": "Da... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import Comment from "./presenter";
class Container extends Component {
state = {
currentComment: this.props.comment,
currentRecomment: "",
isEdit: false,
isReEdit: false
};
static propTypes = {
submitComment: PropTy... |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import VueI18n from 'vue-i18n'
import i18n from './assets/i18n';
import "@/assets/css/typo.css";
import "@/assets/css/common.le... |
'use strict';
//Worked on as a group with Jack Nelson, Matt Petersen, and Michael Mandell.
// to learn more about the cheerio library and what it is doing, look at their documentation: https://www.npmjs.com/package/cheerio
const cheerio = require('cheerio');
/* ------------------------------------------------------... |
'use strict';
const { Logger } = require('ranvier');
module.exports = {
listeners: {
spawn: state => function () {
this.setMeta('spawnRoom', this.room.id);
},
}
}; |
import React from "react";
import "./App.css";
function App() {
return (
<div>
<div className="container mt-5 ">
<div className="row">
<h1>Image Style Transfer</h1>
<p>(Beta)</p>
</div>
<div className="row mt-3">
<h5>
Based on Tonsorflow-Hub... |
export const ic_reorder = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}}]}; |
(function ($) {
$(document).ready(function(){
// ====== Carga de los usuario ======
$.ajax({
// En data puedes utilizar un objeto JSON, un array o un query string
data: null,
//Cambiar a type: POST si necesario
type: "GET",
// Formato de... |
export default function RichTextArea({ fields }) {
const { textblob } = fields
return (
<div
className="default-rich-text-area"
dangerouslySetInnerHTML={setHTML(textblob)}
/>
)
}
const setHTML = (textblob) => {
return { __html: textblob }
} |
export { default } from 'ember-flexberry-security/routes/i-c-s-soft-s-t-o-r-m-n-e-t-security-operation-e/new'; |
import { Component } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import ReactGA from 'react-ga';
class ScrollToTop extends Component {
componentDidMount() {
const { location, history } = this.props;
if (location.pathname !== '/') {
if (process.env.NODE_... |
import childProcess from 'child_process';
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import chalk from 'chalk';
const $ = gulpLoadPlugins();
// 生成 highlighter rouge theme
// 可用的主题有 base16, base16.dark, base16.monokai, base16.monokai.light, base16.solarized, base16.solarized.dark,
// col... |
define(['jquery'], function() {
return {
seclist: ! function() {
// 1.鼠标经过li,cartlist显示,否则隐藏。
$('.nav .side li').hover(function() {
$(this).addClass('active').siblings().removeClass('active');
$('.cartlist').show();
//3.切换li元素,cartlist里... |
Package.describe({
name: 'rocketchat:slashcommands-leave',
version: '0.0.1',
summary: 'Message pre-processor that will translate /leave commands',
git: '',
});
Package.onUse(function(api) {
api.use([
'ecmascript',
'rocketchat:lib',
]);
api.mainModule('server/index.js', 'server');
}); |
// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Information Requested", "CONTRIBUTION AMOUNT (F3L Bundled)": "8.50", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Information Requested", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "5525 Woodson Rd", "CONTRIBUTOR MIDDLE NAME": "A.", "DONOR CANDIDA... |
import { Posts } from 'meteor/example-forum';
import Users from 'meteor/vulcan:users';
import { Votes } from 'meteor/vulcan:voting';
import { getSetting } from 'meteor/vulcan:core';
import { Random } from 'meteor/random';
async function runVoteMigration(collectionName) {
try {
//Abort early if votes collection i... |
/* */
"format cjs";
/**
* Convert an object into an observable sequence of [key, value] pairs.
* @param {Object} obj The object to inspect.
* @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on.
* @returns {Observable} An observable sequence of [key, value] pairs from... |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Blockly module.
*/
/* eslint-disable */
'use strict'; |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case
// - src/dstr-binding/default/cls-expr-private-gen-meth-dflt.template
/*---
description: BindingElement with array binding pattern and initializer is not used (private class expression method (defa... |
function confirmationDelete(id) {
const swalWithBootstrapButtons = Swal.mixin({
customClass: {
confirmButton: 'btn btn-success',
cancelButton: 'btn btn-danger'
},
buttonsStyling: false
})
swalWithBootstrapButtons.fire({
title: '¿Estas seguro de eliminar esto?',
text: "No podras deshacer est... |
//# sourceMappingURL=app.d004a2c5bc8da9e33892.js.map |
import React from 'react'
import { Route, Link } from 'react-router-dom'
const MenuItem = ({ item }) => (
<Route
path={item.path}
children={({ match }) => (
<li className={match ? "active" : ""}>
<Link to={item.path}>{item.title}</Link>
</li>
)}
/... |
define(["Test", "Tone/signal/TickSignal", "helper/Offline"], function(Test, TickSignal, Offline) {
describe("TickSignal", function(){
it("can be created and disposed", function(){
var tickSignal = new TickSignal();
tickSignal.dispose();
Test.wasDisposed(tickSignal);
});
it("can schedule a change in t... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Operator x >>> y returns ToNumber(x) >>> ToNumber(y)
es5id: 11.7.3_A3_T2.2
description: >
Type(x) is different from Type(y) and both types vary between
Number (primiti... |
let fetch = require('node-fetch')
let handler = async (m, { }) => {
let res = await fetch(API('https://some-random-api.ml', '/joke', {}, ''))
if (!res.ok) throw `${res.status} ${res.statusText}`
let json = await res.json()
m.reply(json.joke)
}
handler.help = ['joke', 'jokes']
handler.tags = ['fun']
handler.com... |
import React from 'react'
const Footer = () => (
<footer className="footer">
<div className="container">
<div className="content has-text-centered">
<p>
All content copyright rinae © {new Date().getFullYear()} • All rights
reserved.
</p>
<p>
Powered by ... |
module.exports={A:{A:{"1":"F A B","2":"J D E rB"},B:{"1":"C K L G M N O P Q R S V W X Y Z a b c d e f g T h H i"},C:{"1":"0 1 2 3 4 5 6 7 8 9 l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB iB OB jB PB QB U RB SB TB UB VB WB XB YB ZB aB bB cB dB eB P Q R kB S V W X Y Z a b c d e f g T h H i","2"... |
var post = function(url, data, callback) {
$.ajax({
url : url,
data : data,
type : 'POST',
success : callback,
error: function() {
alert('网络连接异常,请检查网络设置');
}
});
}
function checkMobile(sMobile){
if(!(/^1[3|4|5|8][0-9]\d{8}$/.test(sMobile))){
return false;
} else {
... |
export default class Speech {
constructor(text = 'bienvenidos', lang = 'es-US') {
this.text = text
this.synth = window.speechSynthesis
this.utterance = new window.SpeechSynthesisUtterance()
setTimeout(() => {
let voices = this.synth.getVoices()
this.utterance.voice = voice... |
/**
* MIT License
*
* Copyright (c) 2022 International Business Machines
*
* 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 ... |
/* @flow */
import type {
RelayClassicRequest,
RRNLRequestObject,
RRNLResponseObject,
GraphQLResponseErrors,
} from './definition';
class RRNLRequestError extends Error {
status: number;
req: RRNLRequestObject;
res: ?RRNLResponseObject;
constructor(msg: string) {
super(msg);
this.name = 'RRNL... |
/**
* ParseTable
* @author brenthamby
*/
function ParseTable(opts){
if(!opts.parseObjName || !opts.el){
throw "ParseTable : provide parseObjName and el (where to put the thing)"
}
this.opts = {
parseObjName : undefined, // name of Parse Class
el : undefined, // element within whi... |
import path from 'path';
import { referencify } from '@bldr/string-format';
import { getConfig } from '@bldr/config';
const config = getConfig();
function check(data) {
if (data.name == null) {
throw new Error('A instrument needs a name.');
}
}
/**
* The meta data type specification “instrument”.
*/
e... |
/*
YUI 3.13.0 (build 508226d)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/arraysort/arraysort.js']) {
}
var __cov_2Khzwsx6508tuwKeeJiIQQ = __coverage__['build/a... |
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License
//
// 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 ri... |
'use strict';
const net = require('net');
const fs = require('fs');
function Socket(path, cmdCallback) {
const server = net.createServer();
let invokedSuccess = false;
server.on('connection', function(connection) {
console.info('CONTROL: Socket open');
connection.on('end', function... |
const logError = (err, req, res, next) => {
console.error('SUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU:' + err);
next(err);
};
const userError = (err, req, res, next) => {
const status = err.status || 400;
const message = err.message || 'An error has occurred';
if (err.isUserError) {
res.status(status).json({
error: tru... |
import { useTransition, animated } from "react-spring";
export const useToggleAnimation = toggle => {
if (typeof toggle !== "boolean") {
throw new Error("Please provide a toggle boolean.");
}
const transition = useTransition(toggle, null, {
from: {
position: "absolute",
... |
// Navigation Js Onclick Starts
$(document).ready(function () {
$('.dropdown-toggle1').click(function () {
$('.icon').find('.toggleico')
$('.toggleico').toggleClass("down");
})
});
// Navigation Js Onclick Ends
// Navigation Js Onclick Starts
$(document).ready(function () {
$('.dropdown-to... |
* @license
*
* Regression.JS - Regression functions for javascript
* http://tom-alexander.github.com/regression-js/
*
* copyright(c) 2013 Tom Alexander
* Licensed under the MIT license.
*
**/ |
/*
object-assign
(c) Sindre Sorhus
@license MIT
/** @license React v16.9.0
* react.production.min.js
*
* 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.
/** @license React v16.9.0
* reac... |
const express = require('express');
const path = require('path');
const app = express();
// Serve static files from the React app
app.use(express.static(path.join(__dirname, 'client/build')));
// Put all API endpoints under '/api'
app.get('/api/passwords', (req, res) => {
const count = 5;
// Return them as json... |
import {
visit,
remote,
saveAndProcessPage,
copyPage,
} from '../action_creators'
import { urlToPageKey } from './url'
export function mapStateToProps(
state = { pages: {}, superglue: {} },
ownProps
) {
let pageKey = ownProps.pageKey
let params = ownProps
const csrfToken = state.superglue.csrfToken
... |
var cmd = require('node-cmd');
var path, node_ssh, ssh, fs;
fs = require('fs');
path = require('path');
node_ssh = require('node-ssh');
ssh = new node_ssh();
// the method that starts the deployment process
function main() {
console.log('Deployment started.');
sshConnect();
}
// installs PM2
function installPM2()... |
// click - fires after full action occurs
// mousedown - button is pressed
// mouseup - button is released
// mouseenter - moved onto an element
// mouseleave - moved out of an element
const heading = document.querySelector('h1');
const btn = document.querySelector('.btn');
btn.addEventListener('click', () => {
con... |
/* eslint-disable import/no-extraneous-dependencies */
import Enzyme, { shallow, render, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
global.shallow = shallow;
global.render = render;
global.mount = mount; |
import { buildRequest } from '../../../src/execute/index.js';
describe('buildRequest - swagger 2.0', () => {
describe('allowEmptyValue parameters', () => {
describe('query', () => {
it('should include empty parameter values for a query param with allowEmptyValue', () => {
const spec = {
s... |
import { upperCase } from 'lodash-es';
// ↓のように lodash-es 全体を読み込むとTree Shaking が有効にならないため注意
// import _ from 'lodash-es';
const text = upperCase('hello webpack app');
console.log(text); |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { AuthProvider } from './contexts/AuthContext';
import { FirestoreProvider } from 'react-firestore';
import { firebase } from './firebase';
ReactDOM.render(
<AuthProvider>
<FirestoreProvider firebas... |
export const up = function (knex) {
return knex.schema.createTable("users", function (table) {
table.increments();
table.string("email").unique();
table.string("name");
table.string("surname");
table.string("password_salt");
table.string("password_hash");
table.timestamps();
});
};
expo... |
/* eslint-disable no-plusplus */
import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Platform, View, AppState, ScrollView } from 'react-native';
import ART from 'react-art';
import DefaultSvgs from './defaultSvg';
const ReactNativeVersion = {
major: 0,
minor: 59,
patch: 10,
prer... |
// JavaScript Document
$(function(){
//根据总页数判断,如果小于5页,则显示所有页数,如果大于5页,则显示5页。根据当前点击的页数生成
// var pageCount = 11;//模拟后台总页数
// //生成分页按钮
var pageCount=localStorage.getItem('page');
// if(pageCount>5){
// page_icon(1,5,0);
// }else{
// page_icon(1,pageCount,0);
// }
//点击分页按钮触发
$("#pageGro li").live("click",function()... |
var gulp = require('gulp');
var sass = require('gulp-sass');//CSSコンパイラ
var autoprefixer = require("gulp-autoprefixer");//CSSにベンダープレフィックスを付与してくれる
var minifyCss = require('gulp-minify-css');//CSSファイルの圧縮ツール
var uglify = require("gulp-uglify");//JavaScriptファイルの圧縮ツール
var concat = require('gulp-concat');//ファイルの結合ツール
var plum... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../src/components/VTextField/VTextField.sass");
var _VInput = _interopRequireDefault(require("../VInput"));
var _VCounter = _interopRequireDefault(require("../VCounter"));
var _VLabel = _interopR... |
var mysql = require('mysql');
var conn = mysql.createConnection({
host: 'localhost',
user: 'root',
password: '',
database:'nodejs',
port: 3306
});
conn.connect();
conn.query('SELECT * FROM account', function(err, rows, fields) {
if (err) throw err;
console.log('The solution is: ', rows[0].ac... |
const AWS = require('../../../utils/requireAWS');
const config = require('../../../config');
const bucketNames = require('./bucketNames');
const getSignedUrl = (operation, params) => {
if (!params.Bucket) throw new Error('Bucket is required');
if (!params.Key) throw new Error('Key is required');
const S3Config... |
import React, { useState, useEffect } from 'react';
import { getPosts } from './api';
import './App.css';
import ImageCarousel from './components/ImageCarousel';
import { CarouselData } from './components/CarouselData';
import { PostsList } from './components/PostsList/index';
const App = () => {
const [posts, setPo... |
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2020: true,
},
extends: "eslint:recommended",
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 11,
sourceType: "module",
},
rules: {},
}; |
export const SET_MODULES = "SET_MODULES"
export function setModules(modules)
{
return(
{
type: SET_MODULES,
payload: modules
})
}
const initialState =
{
modules: []
}
export default function CoreLayoutReducer(state = initialState, action)
{
switch(action.type)
{
case SET_MODULES:
return(
{
...... |
module.exports={A:{A:{"1":"E A B","2":"H D G lB"},B:{"1":"O I J K","516":"C L q M"},C:{"1":"0 1 2 3 4 6 8 9 U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z KB BB CB DB EB FB HB IB JB","2":"iB AB cB bB","260":"5 F H D G E A B C L q M O I J P Q R S T"},D:{"1":"0 1 2 3 4 5 6 8 9 H D G E A B C L q M O I J P Q... |
// common.js
// menu
$(document).ready(function () {
// fix menu when passed
$('.masthead').visibility({
once: false,
onBottomPassed: function () {
$('.fixed.menu').transition('fade in');
},
onBottomPassedReverse: function () {
$('.fixed.menu').transition... |
(window.webpackJsonp = window.webpackJsonp || []).push([
[5],
{
145: function(e, t, a) {
'use strict';
a.r(t);
var n = a(0),
i = a.n(n),
r = a(177),
o = a(79),
c = a.n(o),
u = (a(150), a(206)),
g = a(151),
s = a(147),
l = a(311),
... |
angular.module('fusioApp').run(['$templateCache', function($templateCache) {
'use strict';
$templateCache.put('app/account/nav.html',
"<nav class=fusio-nav><div class=fusio-nav-group><h3>Account</h3><ul><li><a ng-href=#!/account>Profile</a></li><li><a ng-href=#!/account/security>Security</a></li><li><a ng-href... |
/* EQCSS to JavaScript Compiler */
// Create the compiler object
compiler = {
data: []
}
compiler.load = function(){
// Currently this function is hard-coded to the demo page
// TODO: Make this accept EQCSS code as input, or file(s)
var input = document.querySelector('#input')
if (0 < input.value.length)... |
module.exports = {
name: "saved_bus",
description: "return a list of saved bus stops of a given user",
async execute(ctx, bot) {
const fs = require("fs");
var xpPath = "./bus.JSON";
var xpRead = fs.readFileSync(xpPath);
var xpFile = JSON.parse(xpRead); //ready for use
var user = bot.update.mes... |
"use strict";
exports.__esModule = true;
exports.c_modal_box_m_default__title_icon_Color = {
"name": "--pf-c-modal-box--m-default__title-icon--Color",
"value": "#009596",
"var": "var(--pf-c-modal-box--m-default__title-icon--Color)"
};
exports["default"] = exports.c_modal_box_m_default__title_icon_Color; |
// jest.config.js
// eslint-disable-next-line @typescript-eslint/no-var-requires
const nextJest = require("next/jest");
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: "./",
});
// Add any custom config to be passed to... |
/*
Representation of an RSA key which can be used to sign and verify SSH2
data.
*/
paramikojs.RSAKey = function(msg, data, filename, password, vals, file_obj) {
inherit(this, new paramikojs.PKey());
this.n = null;
this.e = null;
this.d = null;
this.p = null;
this.q = null;
if (file_obj) {
this._f... |
/**
* Created by Alexandru Ionut Budisteanu - SkyHub on 7/6/2017.
* (C) BIT TECHNOLOGIES
*/
import FetchService from 'services/communication/FetchService'
import Vue from 'vue';
export default{
CONTENT_USERS_GET: async ({commit, state, dispatch}, {userId}) =>{
try {
if ((userId === '')||... |
'use strict';
/**
* Returns `true` if the specified object implements the Iterator protocol via implementing a `Symbol.iterator`.
*
* @example
* const isIterable = require('ho-iter').isIterable;
*
* isIterable([1, 2, 3]); // true
* isIterable(123); // false
*
* @param {*} iterable - a value which might imple... |
require('should');
var proxyquire = require('proxyquire');
var feedly = proxyquire('../src/feedly', {
'./restquest': function() {
var args = arguments[0];
return {
send: function(callback) {
callback(null, args, true);
}
};
}
})();
describe('feedl... |
module.exports = {
run: jest.fn()
}; |
/**
*
* AuthLogin
*
* Pages.Authentication.Login.html page content scripts. Initialized from scripts.js file.
*
*
*/
class AuthLogin {
constructor() {
// Initialization of the page plugins
this._initForm();
}
// Form validation
_initForm() {
const form = document.getElementById('loginForm')... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.