text
stringlengths
2
1.04M
var luxon = (function (exports) { 'use strict'; /* This is just a junk drawer, containing anything used across multiple classes. Because Luxon is small(ish), this should stay small and we won't worry about splitting it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature ar...
/*! * jQuery UI 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */ (function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href...
import { render } from '@redwoodjs/testing' import EnvironmentContract from './EnvironmentContract' describe('EnvironmentContract', () => { it('renders successfully', () => { expect(() => { render(<EnvironmentContract />) }).not.toThrow() }) })
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with th...
let pTag = document.getElementById("para"); //for loop 0-100 for(i = 0; i <= 100; i++){ if( i % 3 === 0 && i % 5 == 0 ) pTag.innerHTML += "FIZZBUZZ"; //print fizzbuzz if multiple of 3 or 5; else if( i % 3 == 0 ) pTag.innerHTML += "FIZZ"; //print fizz if multiple of 3 else if( i % 5 === ...
export { default as Builder } from './Builder';
// @flow import * as Types from './types' // action type literals export const FETCH_CUSTOM_LABWARE: 'labware:FETCH_CUSTOM_LABWARE' = 'labware:FETCH_CUSTOM_LABWARE' export const CUSTOM_LABWARE_LIST: 'labware:CUSTOM_LABWARE_LIST' = 'labware:CUSTOM_LABWARE_LIST' export const CUSTOM_LABWARE_LIST_FAILURE: 'labware...
export const Home = () => { return ( <p>Home</p> ) }
import moment from 'moment'; import Needle from './needle'; import { SamayType } from '../constants'; const NEXT_WEEK_THRESHOLD = 4; export default class DOWNeedle extends Needle { stitch(parsedInfo) { const dowParserValue = parsedInfo.dowParser; if (dowParserValue) { // Initialize user value and cur...
if (process.env.SG_VVVERBOSE) console[process.env.SG_LOAD_STREAM || 'log'](`Loading ${__filename}`); // ------------------------------------------------------------------------------------- // requirements // const _ = require('lodash'); var utils = require('./utils'); ...
/*http://www.script-tutorials.com/animated-jquery-progressbar/*/ $(document).ready(function(){ jQuery.fn.anim_progressbar = function (aOptions) { // def values var iCms = 1000; var iMms = 60 * iCms; var iHms = 3600 * iCms; var iDms = 24 * 3600 * iCms; // def options ...
/* Tailwind - The Utility-First CSS Framework A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink), David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger). Welcome to the Tailwind config file. This is where you can customize Tailwind specifically for your project. Don't be intimidated by th...
import { createStackNavigator, createBottomTabNavigator } from 'react-navigation'; import React from 'react' import MainScreen from './MainScreen' import SetupScreen from './User/SetupScreen' import StartScreen from './User/StartScreen' import RegisterScreen from './User/RegisterScreen' import SearchScreen from './Tra...
function my_function325(){ //98014049243079069033211874131286AuiBkSAfpQhERqZvgEvJiyFmstgTFKtU } function my_function090(){ //78209732195890663789295944724688ggMCJeIKWNqufPYiqxUvEgUfoFAqdxkW } function my_function075(){ //61981777814746095587261953544815sgIuQncDsRHACClAcezqwIVLlcEFORiL } function my_function493(){ /...
user_pref("app.update.auto", false); user_pref("app.update.enabled", false); user_pref("browser.showedAustralisWhatsNew", true); user_pref("browser.startup.homepage", "http://airmozilla-ops2.corpdmz.scl3.mozilla.com/"); user_pref("full-screen-api.allow-trusted-requests-only", false); user_pref("full-screen-api.approval...
import React from 'react'; const LocationForm = (props) => { return( <div> <form onSubmit={props.handleSubmit}> <input type="text" value={props.query} onChange={props.handleChange} placeholder="Enter City" /> <button type="submit"></button> ...
import 'mocha'; import { strictEqual } from 'assert'; import { expect } from 'chai'; import { decodeBool } from '../../src/decoders'; import decode from '../../src/decoders'; describe('bool', () => { it('failure', () => expect(() => decodeBool('not_a_boolean')).to.throw(Error, 'unable to decode bool')); it('true', (...
const express = require('express') //const HelloWorld = require('../controllers/HelloWorld') const Users = require('../controllers/Users') const Restaurants = require('../controllers/Restaurants') const Items = require('../controllers/Items') const router = express.Router() // Login / Register router.post('/login',...
/*! * Start Bootstrap - Resume v5.0.8 (https://meeprakash.me) * Copyright 2013-2020 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-resume/blob/master/LICENSE) */ !function(t){"use strict";t('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.path...
import React ,{ useState,Fragment } from 'react'; import Calendar from './index'; import '../../../public/Calendar.css'; export default { title: 'Calendar' }; export const DefaultCalendar = () => { const [value,setValue] = useState(); const onChange = (date) => { const localeDate = date.toLocaleDat...
import Component from './card-row-component'; export default Component;
/** * Copyright 2013-2017 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see http://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
import React, { useState } from 'react'; import config from '../../../config'; import TreeNode from './treeNode'; import sort from '../sort'; const calculateTreeData = edges => { const originalData = config.sidebar.ignoreIndex ? edges.filter( ({ node: { fields: { slug }, }...
import { render, screen } from '@testing-library/react'; test('renders learn react link', () => { render(); const linkElement = screen.getByText(/learn react/i); expect(linkElement).toBeInTheDocument(); });
import React , { useContext } from 'react'; import { Route , Redirect } from 'react-router-dom'; import { AuthContext } from '../context/admin.context'; const Protected = (route) => { const {auth_status} = useContext(AuthContext); return ( <Route path = {route.path} render = {...
require('./authorization'); // require('./error-handling'); require('./filters'); require('./mixins'); import GlobalEvent from './event/index'; window.AdminifyEvent = new GlobalEvent();
// Import utils import { randomKey } from 'utils' /** * @param {Array} data - options list to show * @param {String} label - content for input label * @param {String|Number} value - default value * @param {Callback} onChange - listener for value change */ export default function SelectField({ data = [], l...
import React from "react"; import { shallow } from "enzyme"; import Select, { Overview, WhenToUse, ContentGuidelines, DeveloperDocumentation } from "./index"; describe("Component: Select", () => { it("is defined", () => { expect(Select).toBeDefined(); }); it("renders", () => { const wrapp...
import {isNumber} from 'lodash' /** * Middleware for catching errors thrown in routes * @param ctx */ export default async function(err) { if (!err) return let status = err.status || 400 const type = this.accepts(['text', 'json', 'html']) if (!type) { status = 406; err.message = 'Unsupported type'...
define("JBrowse/View/FileDialog/TrackList/_IndexedFileDriver", [ 'dojo/_base/declare', 'JBrowse/Util', 'JBrowse/Model/FileBlob', 'JBrowse/Model/XHRBlob' ], function( declare, Util, FileBlob, XHRBlob ) { var uniqCounter = 0; return declare( null, { tryResour...
'use strict'; var Node = module.exports = function Node(){}; /** * Clone this node (return itself) * * @return {Node} * @api private */ Node.prototype.clone = function(){ var err = new Error('node.clone is deprecated and will be removed in v2.0.0'); console.warn(err.stack); return this; }; Node.prototype...
import { DataTextureLoader, DataUtils, FloatType, HalfFloatType, LinearEncoding, LinearFilter, RedFormat, RGBAFormat } from 'three'; import * as fflate from '../libs/fflate.module.js'; /** * OpenEXR loader currently supports uncompressed, ZIP(S), RLE, PIZ and DWA/B compression. * Supports reading as Unsigned...
import axios from 'axios'; const api = axios.create({ baseURL: process.env.NODE_ENV === 'development' ? 'http://localhost:3333/' : process.env.APP_URL }); export default api;
export const PARTNER_BENEFITS_STEPS = [ { title: 'Dedicated Team.', text: 'A full - time, scaleable team of trusted developers.' }, { title: 'Motivated Developers.', text: 'Developers are given perks to help them learn, grow and stay healthy.' }, { title: 'Account Manager.', text: 'Ded...
/* Copyright (c) 2019 Environmental Systems Research Institute, Inc. * Apache-2.0 */ export function chunk(array, size) { if (array.length === 0) { return []; } var chunks = []; for (var i = 0; i < array.length; i += size) { chunks.push(array.slice(i, i + size)); } return chunks...
// 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 require({cache:{"url:jimu/dijit/templates/_SingleFilterParameter.html":'\x3cdiv\x3e\r\n \x3ctable style...
import React, { Component } from "react"; import { View, Text, ListView, Image, Button, TouchableHighlight } from "react-native"; import { connect } from "react-redux"; import data from "../sample/QuestionFeed"; /** * Convert data to ListView DataSource */ const ds = new ListView.DataSource({ rowHasCha...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == 'object' && typeof module == 'object') // CommonJS mod(require('../../lib/codemirror')); else if (typeof define == 'function' && define.amd) ...
import mongodb from 'mongodb'; const url = process.env.MONGODB_URL; const dbName = 'watercoolerchat'; const subscriptionCollection = 'subscriptions'; export const mongoDbDatastore = { _db: null, _client: null, async initialize() { const {MongoClient} = mongodb; const client = new MongoClient(url, { numberOf...
/** * This module helps with returning approporiate * response via API Gateway Lambda Proxies * * With the lambda proxy integration, the succeed method of * the context object should always be called. It accepts * an object that expects a statusCode, headers and body */ 'use strict'; const isFunction = require...
/* * Copyright 2020 Ally Financial, 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 t...
uis.directive('uiSelect', ['$document', 'uiSelectConfig', 'uiSelectMinErr', 'uisOffset', '$compile', '$parse', '$timeout', function($document, uiSelectConfig, uiSelectMinErr, uisOffset, $compile, $parse, $timeout) { return { restrict: 'EA', templateUrl: function(tElement, tAttrs) { var theme = tAtt...
module.exports = { name: "disconnect", aliases: ["dc", "bye", "leave"], code: `$if[$messageExists[$channelID;$getUserVar[reactmessageid;$clientID]]==true] $deleteMessage[$getUserVar[reactmessageid;$clientID]] $endif $if[$hasPerms[$clientID;movemembers]==true] $moveUser[$authorID] $endif $leaveVC $setServerVar[fil...
function mark_progress(target){ let input = document.querySelector('#val'); input.addEventListener('input',function(){ document.getElementById("myBar").style.width = this.value + "%"; document.getElementById("myBar").textContent = this.value + "%"; }); let contadorTotal = 0; let cont...
/** * 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...
"use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[86],{ /***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! \***********************...
// const packet = require('./../internal/packet.js'); const ws = require('ws'); const net = require('net'); /** * @property {string} type * @property {ws|net.Socket} socket */ module.exports = class SendStuff { type; // 'ws' / 'tcp' socket; // WebSocket or net.Socket /** * * @param {ws|net...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
var NAVTREEINDEX26 = { "a02481.html#a2d6d2c64164ae0504f41b60e5730ddf6":[3,0,1,179,243], "a02481.html#a2e84c55acc11dc7d1840d0aac4984e6a":[3,0,1,179,153], "a02481.html#a2e893426c98ebee2c6a2d89ff42429ee":[3,0,1,179,398], "a02481.html#a2e8f788ddfd45bab1e1519f64c793f3c":[3,0,1,179,306], "a02481.html#a2f319b31916162e0a917107...
Main_Url={url:function(url) {var host_segments=window.location.hostname.split('.');if(host_segments.length==4) {var local=true;for(var i=host_segments.length-1;i>=0;i--){if(isNaN(host_segments[i])){local=false;}};if(local){return'http://'+window.location.hostname+'/ashaffer/public/'+url;}else{return window.location.ori...
/* * getobject * https://github.com/cowboy/node-getobject * * Copyright (c) 2013 "Cowboy" Ben Alman * Licensed under the MIT license. */ 'use strict'; var getobject = module.exports = {}; // Split strings on dot, but only if dot isn't preceded by a backslash. Since // JavaScript doesn't support lookbehinds, us...
import {WEBGL} from 'three/examples/jsm/WebGL.js'; import {Viewer} from './viewer.js'; import {SimpleDropzone} from 'simple-dropzone'; import {ValidationController} from './validation-controller.js'; import queryString from 'query-string'; if (!(window.File && window.FileReader && window.FileList && window.Blob)) { ...
import React from 'react' import Accounting from './containers/Accounting' import Cleaning from './containers/Cleaning' import ResetActiveMembers from './containers/ResetActiveMembers' import Doorlock from './containers/Doorlock' import EditUserProfile from './containers/EditUserProfile' import Enrollment from './conta...
export default (state, action) => { switch (action.type) { default: return state } }
/* eslint-disable no-prototype-builtins */ require('dotenv').config(); const axios = require('axios'); const DiagnosticsHelper = require('../common/diagnostics.helper'); const UsersService = require('../api/users/users.service'); const DatapointsService = require('../api/datapoints/datapoints.service'); const port = ...
import { expect, fixture, elementUpdated } from "@open-wc/testing"; import { BaseDateTimeCalendarFooter } from "../index"; describe("BaseDateTimeCalendarFooter", () => { describe("accessibility", () => { it("should do nothing when pressing not handled key", async () => { let triggeredEvent = nul...
const loadPost = require("../misc/post_body"); const folder = process.env.THEME_FOLDER; const fUtil = require("../misc/file"); const http = require("http"); /** * @param {http.IncomingMessage} req * @param {http.ServerResponse} res * @param {import("url").UrlWithParsedQuery} url * @returns {boolean} */ module.exp...
#!/usr/bin/env node /** * 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. * */ const argv = require('commander'); function collect(val, memo) { memo.push(val); return memo; } const...
odoo.define('mail.tour', function (require) { "use strict"; var core = require('web.core'); var tour = require('web_tour.tour'); var _t = core._t; tour.register('mail_tour', { url: "/web#action=mail.discuss", }, [{ trigger: '.o_mail_discuss .o_mail_discuss_sidebar .o_add[data-type="multi_user_channel"]', ...
import React from "react"; import "./styles.css"; import Banner from "../../assets/banner/webbanner.gif"; const Logo = (props) => { return ( <div> <img className="logo" src={Banner} alt="loading..." /> </div> ); }; export default Logo;
module.exports = { presets: [ [ '@babel/preset-env', { targets: { browsers: ['last 3 versions'], node: 'current' } }, ], ['@babel/preset-typescript', { allExtensions: true }], ], }
import { makeUsernameSelector, selectAddUsernamePageDomain, } from '../selectors'; describe('selectAddUsernamePageDomain', () => { it('should select the addUsernamePageState', () => { const addUsernamePageState = { userData: {}, }; const mockedState = { addUsernamePage: addUsernamePageSta...
module.exports = { docs: { TypeDraft: ['typedraft-in-5min'], Handbook: ['jsx-as-macro', 'dsl', 'literate-programming'], Tutorial: ['implement-a-dsl'] }, };
/** * @license * Copyright 2018-2021 Streamlit 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 applicab...
class Game { constructor() { this.resetTitle = createElement("h2"); this.resetButton = createButton(""); this.leadeboardTitle = createElement("h2"); this.leader1 = createElement("h2"); this.leader2 = createElement("h2"); } getState() { var gameStateRef = database.ref("gameState"); g...
const inspect = require('util').inspect const processTCPSequence = (tcpsequence)=>{ return tcpsequence[0].$ } module.exports = processTCPSequence
import Component from '@ember/component'; import layout from '../../templates/components/nested/x-name'; export default Component.extend({ layout });
var fs = require('fs'); var path = require('path'); var util = require('util'); var async = require('async'); var EventEmitter = require('events').EventEmitter; var Connection = require('ssh2'); var _ = require('lodash'); function Client(options) { this._options = options || {}; this.remote = {}; } util.inherits...
/* Client Side Validations - Formtastic - v2.2.0 https://github.com/dockyard/client_side_validations-formtastic Copyright (c) 2012 DockYard, LLC Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php */ (function() { ClientSideValidations.formBuilders['Formtastic::FormBuilder'...
var searchData= [ ['next_28',['next',['../class_bluetooth_a2_d_p_sink.html#a296fb7aaf8d8e78991d9d505353de94f',1,'BluetoothA2DPSink']]] ];
import { action, computed } from '@ember/object'; import { assert } from '@ember/debug'; import Component from '@glimmer/component'; import { next, schedule } from '@ember/runloop'; import { inject as service } from '@ember/service'; import transitionEnd from 'ember-bootstrap/utils/transition-end'; import { getDestinat...
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // 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...
import React from "react" import AbstractPage from "./abstract-page" import SecuritiesSettingView from "../settings/securities-setting-view" import MailAddressSettingView from "../settings/mail-address-setting-view" import PasswordSettingView from "../settings/password-setting-view" impo...
// @flow import document from "./document"; import comms from "./comms"; import config from "./config"; import app from "./app"; export { document, comms, config, app };
import { createStyles } from '@material-ui/styles'; import theme from '../../theme'; const styles = createStyles({ hero: { width: '100%', position: 'relative', display: 'flex', flexWrap: 'wrap', padding: '36px 0 48px', '& > div': { display: 'flex', alignItems: 'center', just...
/** * * The MIT License (MIT) * * https://www.flowchain.co * * Copyright (c) 2016-present Jollen * * 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 wit...
import React, { Component } from 'react'; import ItemList from './ItemList'; export default class ToDoList extends Component { constructor(props) { super(props); this.state = { list: [] }; this.onItemChecked = this.onItemChecked.bind(this); this.onInputChange = this.onInputChange.b...
// Scalars const IdScalar = require('../../scalars/id.scalar'); // Schemas const LocationSchema = require('../../schemas/location.schema'); // Inputs const LocationInput = require('../../inputs/location.input'); // Resolvers const { locationCreateResolver, locationUpdateResolver, locationDeleteResolver } = requir...
const jsTsCommonRules = { // Do not force destructuring. "react/destructuring-assignment": 0, "prefer-destructuring": 0, // require trailing commas for multiline (arrays, objects, imports, exports & functions), disallowed for same line "comma-dangle": [2, "always-multiline"], // require function...
const express = require('express'); require('./db/mongoose'); const userRouter = require('./routes/user'); const taskRouter = require('./routes/task'); const app = express(); const port = process.env.PORT || 3000; app.use(express.json()); app.use(userRouter); app.use(taskRouter); app.listen(port, () => { console...
export default function (mtx, item) { let a = new Set() console.log('Soldier') switch (item.camp) { case 'A': if (item.y < 5) { a.add(`${item.x}_${item.y + 1}`) } else if (item.y === 5) { a.add(`${item.x}_${item.y + 1}`) a.add(`${item.x + 1}_${item.y}`) a.add(`${item.x - 1}_${item....
'use strict'; customElements.define('compodoc-menu', class extends HTMLElement { constructor() { super(); this.isNormalMode = this.getAttribute('mode') === 'normal'; } connectedCallback() { this.render(this.isNormalMode); } render(isNormalMode) { let tp = lithtml.h...
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Lcghymnal = mongoose.model('Lcghymnal'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Lcghymnal */ exports.cr...
const connection = require('../../config/dbConnection'); const { getNotas, getNotasId } = require('../models/estudantesModel'); module.exports = function (app) { app.get(`/estudantes/:id`, (req, res) => { getNotasId(req.params.id, connection, (error, result) => { res.render('estudantes/estudantes', { notas...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function normalizeHydrateOptions(wwwTarget, opts) { var hydrateTarget = Object.assign({}, wwwTarget); hydrateTarget.prerenderLocations = wwwTarget.prerenderLocations.map(function (p) { return Object.assign({}, p); }); hydrateTarget...
self.__BUILD_MANIFEST=function(e){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-9faf4177fb4e528b4124.js"],"/editor":[e,"static/chunks/972-a7768ddf41f0042a9b80.js","static/chunks/pages/editor-48d55a5c9d2a1968ba01.js"],"/short":[e,"static/chunks/pages/short-fa99fd3ddf...
// COPYRIGHT © 2021 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
'use strict'; function serverError(err, req, res, next){ res.status(500).send(err); } module.exports = serverError;
let helper = { comment_helper(data, post_id) { if (data.error){ alert(data.error) return } let comments = data.comments $("#comment_" + post_id).empty() comments.forEach(function (e){ let $img = $('<img/>', { alt: "User Image", "class": "img-circle avatar", ...
export * from './Fabric'; export * from './Fabric.base'; //# sourceMappingURL=index.js.map
CKEDITOR.plugins.setLang("colorbutton","fo",{auto:"Automatiskt",bgColorTitle:"Bakgrundslitur",colors:{"000":"Svart",8E5:"Maroon","8B4513":"Saðilsbrúnt","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo",696969:"Myrkagrátt",B22222:"Fire Brick",A52A2A:"Brúnt",DAA520:"Gullstavur","006400":"Myrk...
const { RECEIVE_COLLECTED_POSTS, ADD_COLLECTED_POSTS } = require('../../constants/index') const loadCollectedPosts = (state, { cursor, data }) => ({ [cursor]: data.map(item => item.id) }) const addCollectedPosts = (state, { cursor, data }) => ({ ...state, [cursor]: data.map(item => item.id) }) const collec...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const TweetSchema = new Schema({ body: String, date: Date, stats: { type: Schema.Types.ObjectId, ref: 'stats' }, author: { type: Schema.Types.ObjectId, ref: 'user', required: [true, 'user Id is required to create tweet...
/* json_parse.js 2012-06-20 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. This file creates a json_parse function. json_parse(text, reviver) This method parses a JSON text to produce an object or array. It can throw a SyntaxError exception...
function isEqual(first, second) { let result = true; if (typeof first != typeof second) { return false; } else if (first === second) { return true; } else if (Array.isArray(first)) { if (first.length != second.length) { return false; } else { let all...
import employeesService from "../../../modules/setup/employees/employeesService"; import httpService from "@/core/services/httpService"; import { SET_DATA, SET_MODAL_DROPDOWN_DATA, SHOW_EMPLOYEE_MODAL, CHANGE_LOADING, HIDE_MODAL, DELETED_USER, CHANGE_USER_ROLE, REMOVE_USER_FROM_WORKSPACE } from "./mutat...
import { createSelector } from 'reselect'; const selectLoginPage = state => state.get('user'); const makeSelectLoginPage = () => createSelector(selectLoginPage, subState => subState.toJS()); export default makeSelectLoginPage; export { selectLoginPage };
import SlackClient from '../libs/slack'; import { handleSource, handleHelp, handleVersion } from './help'; jest.mock('../libs/slack'); describe('help', () => { describe('handleSource', () => { it('outputs repository', async () => { const payload = { event: { channel: 'testChannel', ...
export {value}; function value(a) { var num = (allcolors.indexOf(a[0])).toString() + (allcolors.indexOf(a[1])).toString(); return parseInt(num); } const allcolors = ["black","brown","red","orange","yellow","green","blue","violet","grey","white"]