text stringlengths 2 1.04M |
|---|
"use strict";
const _ = require("lodash");
const isStandardSyntaxRule = require("../../utils/isStandardSyntaxRule");
const parseSelector = require("../../utils/parseSelector");
const report = require("../../utils/report");
const ruleMessages = require("../../utils/ruleMessages");
const styleSearch = require("style-sea... |
export default {
async test({ assert, component, target, window, flush }) {
const [input1, input2] = target.querySelectorAll('input');
const select = target.querySelector('select');
const [option1, option2] = select.childNodes;
let selections = Array.from(select.selectedOptions);
assert.equal(selections.len... |
'use strict'
const { test } = require('tap')
const { Client, errors } = require('..')
const { createServer } = require('http')
const { readFileSync, createReadStream } = require('fs')
const { Readable } = require('stream')
test('basic get', (t) => {
t.plan(7)
const server = createServer((req, res) => {
t.str... |
InstructionDefinition["mark"] = {
"name": "mark",
"displayName": "mark",
"semantics": "S[SP+1]←EP; S[SP+2]←FP; SP←SP+2;",
"description": "Start a new stack frame. Put the FP and EP on top of the stack.",
"impl":
function(instr,vm){
vm.S[vm.SP+1] = new Value(vm.EP);
vm.S[vm.SP+2] = ne... |
import { css } from 'glamor';
const shake = css.keyframes({
'10%, 90%': {
transform: 'translate3d(-2px, 0, 0)',
},
'20%, 80%': {
transform: 'translate3d(3px, 0, 0)',
},
'30%, 50%, 70%': {
transform: 'translate3d(-5px, 0, 0)',
},
'40%, 60%': {
transform: 'translate3d(5px, 0, 0)',
},
});
... |
var five = require("../lib/johnny-five.js");
var board = new five.Board();
board.on("ready", function() {
var proximity = new five.Proximity({
controller: "GP2Y0A21YK",
pin: "A0"
});
proximity.on("data", function() {
console.log("Proximity: ");
console.log(" cm : ", this.cm);
console.log("... |
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// allow paren-less arro... |
import * as core from '@pluralsight/ps-design-system-core'
import Dialog from '@pluralsight/ps-design-system-dialog'
import { EqualColumnLayout } from '@pluralsight/ps-design-system-layout'
import PropTypes from 'prop-types'
import React from 'react'
import {
Chrome,
Content,
Intro,
Link,
P,
PageHeading,
... |
"use strict";
/**
* @param {*} object
* @param {string} property
* @returns {boolean} whether a prop exists in the prototype chain
*/
function isNonExistentProperty(object, property) {
return Boolean(
object && typeof property !== "undefined" && !(property in object)
);
}
module.exports = isNonExi... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(functio... |
/*
https://tools.ietf.org/html/rfc3629
UTF8-char = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4
UTF8-1 = %x00-7F
UTF8-2 = %xC2-DF UTF8-tail
UTF8-3 = %xE0 %xA0-BF UTF8-tail
%xE1-EC 2( UTF8-tail )
%xED %x80-9F UTF8-tail
%xEE-EF 2( UTF8-tail )
UTF8... |
export default {
en: {
sidebar: {
activityList: 'Activity List',
openListTitle: 'Click to open the activity list', // when the sidebar is closed, this is displayed
closeListTitle: 'Click to close the activity list' // when the sidebar is opened, this is displayed
},
footer: {
next:... |
const { banks } = require("./data");
let error = null;
/**
* getBanks: find a list of licensed banks
* @param {function} [callback]
* @returns {array} banks
*/
exports.getBanks = (callback) => {
if (typeof callback === "function") {
return callback(error, banks);
}
return banks;
};
/**
* getBank: find ... |
import React from 'react';
export default function CommentDetail(props) {
return (
<div className="comment">
<a href="/" className="avatar">
<img width={128} height={128} alt="avatar" src={props.avatar}/>
</a>
<div className="content">
<a href="/" className="author">
... |
import ImageGallery from '../image/ImageGallery'
import {useState} from 'react'
import Image from '../image/Image'
import UserDetails from './UserDetails'
import {Button} from 'react-bootstrap'
import {useFindImageQuery, useGetUserQuery} from '../../redux/api/baseApi'
import {useDispatch, useSelector} from 'react-redux... |
//# sourceMappingURL=62.ec131414.chunk.js.map |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, AuthenticationError, InvalidNonce, InsufficientFunds, InvalidOrder, OrderNotFound, DDoSProtection } = require ('./base/errors');
const Precise = require ('... |
const incrementSkill = ({skill, amount}) => ({
type: 'INCREMENT_SKILL',
skill, amount
}); |
define([
"dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/_base/array",
"dojo/_base/html","dojo/_base/connect","dojo/_base/sniff","dojo/_base/window",
"dojo/_base/event","dojo/dom","dojo/dom-class","dojo/keys","dojo/fx","dojo/dnd/move",
"dijit/registry","dijit/_base/focus","dijit/form/_FormWidget","... |
import { call, put, select, takeLatest } from 'redux-saga/effects';
import {
WATER_SERVICE_METERS_REQUEST,
waterServiceMetersSuccess,
waterServiceMetersError,
} from './actions';
import { makeSelectToken } from 'containers/App/selectors';
function* waterServiceMetersRequest() {
try {
// TODO chatId from te... |
import useAxios from 'axios-hooks'
import { useContext, useState } from 'react'
import { v4 as uuidv4 } from 'uuid'
import { Accordion, Divider, Form, Icon } from 'semantic-ui-react'
import { ErrorMessage } from '@statisticsnorway/dapla-js-utilities'
import HeadOfFileStatus from './HeadOfFileStatus'
import { ApiContex... |
jest.mock('./../../../src/infrastructure/config', () => require('../../utils').configMockFactory());
const { getRequestMock, getResponseMock } = require('../../utils');
const res = getResponseMock();
describe('when displaying the help page for manageUsers/howToManageUsers', () => {
let req;
let getDashboard;
... |
var test = require('tape')
var koa = require('koa')
var wreq = require('./')
test('it should catch input errors', function(t) {
var x = 'lolololol, I should be a unit test. But Im not.'
t.end()
}) |
import React from 'react'
import { Form, Icon, Input, Button, Upload } from 'antd'
const FormItem = Form.Item
const { TextArea } = Input
@Form.create()
class CommentForm extends React.Component {
render() {
const { form } = this.props
return (
<Form className="login-form">
<FormItem>
... |
marklion_res(document.currentScript,'iVBORw0KGgoAAAANSUhEUgAAACgAAAAyCAYAAAAus5mQAAAABHNCSVQICAgIfAhkiAAABPFJREFUWEftmV1oHFUUgM/dbaAgbXZeFKElCVSJLzYlJU8taaCkYNJkRyymIFiNFQJNu2mU4g82kQqVaE3rQ0FNaLG01aCz2d34k1K6GrFQWrp9y4PSBH2xLzsrlIrdnSNnZmd2Znd+7uzMGh+8bzt75txvzjn3nHPvZRDGmC8cAcQDANDhqg7xJRCFc36mZH6EbWWT8jUA2MWpR4Z4TOC... |
export * from '@styled-icons/remix-line/Screenshot'; |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18.92 12c.04.33.08.66.08 1 0 2.08-.8 3.97-2.1 5.39-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H7v-2h2c.55 0 1-.45 1-1V8h2c1.1 0 2-.9 2-2V3.46c-.95-.3-1.95-.46-3-.46C5.48 3 1 7.48 1 13s4.48 10 ... |
module.exports = {
Request: 0,
Accepted: 1,
Denied: 2,
DeleteRelation: 3,
RecoverRelation: 4
} |
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2016-2019 Skyscanner Ltd
*
* 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
*
... |
import _ from 'lodash';
import log from './logger';
import { getBuildInfo, updateBuildInfo, APPIUM_VER } from './config';
import { BaseDriver, errors, isSessionCommand } from 'appium-base-driver';
import B from 'bluebird';
import AsyncLock from 'async-lock';
import { parseCapsForInnerDriver, getPackageVersion, pullSett... |
const BEGIN_SHIFT = 1
const FALLS_ASLEEP = 2
const WAKES_UP = 3
const fs = require('fs')
const input = fs.readFileSync('day04input.txt', { encoding: 'utf8' }).split('\n')
const events = input.map((x) => {
const matches = x.match(/\[1518\-(\d*)\-(\d*) (\d*)\:(\d*)\] ((wakes up)|(falls asleep)|(Guard \#(\d*) (begins... |
(function() {
'use strict';
angular.module('Global', ['ui.router']);
function GlobalConfig() {
// $stateProvider
// .state('global', {
// abstract: true,
// url: '/',
// views: {
// 'header': {
// templateUrl: 'javascripts/angular/global/header.html',
... |
/**
* External dependencies
*/
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ProductPrice from '@woocommerce/base-components/product-price';
import { getCurrencyFromPriceResponse } from '@woocommerce/price-format';
import {
useInnerBlockLayoutContext,
useProductDataContext,
} from ... |
const functional = require('./functional.js');
const Color = {
Black: 30,
Red: 31,
Green: 32,
Yellow: 33,
Blue: 34,
Magenta: 35,
Cyan: 36,
White: 37,
Palette256: 38,
PaletteRGB: 38,
Default: 39
};
module.exports = {
Reset: '\033[0m',
Clear: {
Screen: '\033[2... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[291],{4300:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.icon=void 0,t(9);var o=function(e){return e&&e.__esModule?e:{default:e}}(t(0));function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=argume... |
var Westeros;
(function (Westeros) {
var Tourism;
(function (Tourism) {
class HamiltonianTour {
constructor(options) {
this.options = options;
}
StartTour() {
if (this.options.onTourStart && typeof (this.options.onTourStart) === "functi... |
"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... |
/* jshint strict: false, unused: false, esnext: true */
/* global JSON_CURSOR */
//
// @brief JavaScript actions module
//
// @file
//
// DISCLAIMER
//
// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
// Copyright 2012-2014 triagens GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the... |
import {createElement, Component} from 'rax';
import View from 'rax-view';
import Text from 'rax-text';
import Image from 'rax-image';
import Touchable from 'rax-touchable';
import ListView from 'rax-listview';
import Navigator from '../Navigator';
import Item from './Item';
import styles from './contact.css';
export ... |
/**@preserve GeneXus Java 10_3_12-110051 on December 12, 2020 11:52:23.13
*/
gx.evt.autoSkip = false;
gx.define('hparametrosistema', false, function () {
this.ServerClass = "hparametrosistema" ;
this.PackageName = "" ;
this.setObjectType("web");
this.setOnAjaxSessionTimeout("Warn");
this.hasEnterEvent... |
import React from 'react'
import { Container, Divider, Image, Message } from 'semantic-ui-react'
const tumbleweedImg = require('../media/tumbleweed.png')
const NotFoundPage = () =>
<Container text>
<Divider hidden />
<center>
<Message
header='Oops! You took a wrong turn.'
content={'The... |
'use strict';
let score =0;
let userName = prompt('what is your name');
alert('Wlecom Now We START Game\'' + userName );
let answer = 'null';
function question1(){
answer = prompt('Guess by ansewer yes or no do i like programming');
answer = answer.toLowerCase();
switch(answer){
case 'yes':
case 'y' :
sc... |
import VSComponentWrapper from '@/components/VSComponentWrapper.vue'
export default {
install (Vue, opts = {}) {
Vue.component('VSComponentWrapper', VSComponentWrapper)
}
} |
function redirectToHome() {
window.location.href = 'index.html';
}
window.addEventListener('load', () => {
let username = localStorage.getItem('username');
let authToken = localStorage.getItem('authToken');
let userId = localStorage.getItem('userId');
if (username === null || authToken === null || userId === nu... |
/*!
* OpenUI5
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/f/semantic/SemanticButton"],function(a){"use strict";var t=a.extend("sap.f.semantic.ShareInJamAction",{metadata:{library:"sap.f"}});return t}); |
'use strict';
const Emoji = require('./Emoji');
/**
* Parent class for {@link GuildEmoji} and {@link GuildPreviewEmoji}.
* @extends {Emoji}
* @abstract
*/
class BaseGuildEmoji extends Emoji {
constructor(client, data, guild) {
super(client, data);
/**
* The guild this emoji is a part of
* @ty... |
/** @jsx jsx */
import { jsx, Themed } from 'theme-ui';
import { Link } from 'gatsby';
import { Flex } from '@theme-ui/components';
import Layout from './layout';
import Listing from './listing';
import useMinimalBlogConfig from '../hooks/use-minimal-blog-config';
import replaceSlashes from '../utils/replaceSlashes';
i... |
module.exports = {
"css": {
"files": [{
"expand": true,
"cwd": "<%= paths.dest.css %>",
"src": ["style.css"],
"dest": "<%= paths.app.css %>"
}]
},
"fonts": {
"files": [{
"expand": true,
"cwd": "<%= paths.dest.fon... |
var express = require('express');
var router = express.Router();
var dbOp = require('../bin/dbOperate');
/*通过router的get获取浏览器的get请求,这边用于获取数据*/
router.get('/',function(req,res,next){
let readyStatement = "select visitorInfo.visitorID,visitorName,visitorSex,visitDateTime,managerID,visitDormNO,visitBuilding from "
... |
const path = require('path');
const fs = require('fs');
const YAML = require('yaml');
const configFile = fs.readFileSync(path.join('./config.yml'), 'utf-8');
const CONFIG = YAML.parse(configFile);
CONFIG.public_path = path.resolve(CONFIG.public_path);
module.exports = Object.freeze(CONFIG); |
import Env from '../Ux.Env';
import E from '../Ux.Error';
import U from 'underscore';
import Ux from "ux";
const xtRxInit = (reference = {}, fnName, params) => {
E.fxTerminal("string" !== typeof fnName, 10100, fnName);
// 默认组件的模式都是取的Reactive
const {$category = Env.$$.DataSource.Reactive} = reference.props;... |
/**
* 获取 source 中一个没有用过的变量名
* @param {string} source
* @param {string} name
*/
function getUniRootName(source, name) {
if(source.includes(name))
return getUniRootName('_' + source, name + '_')
return name
}
const EXP_DEF_REG = () => /(^|\n)\s*export\s+default\s/
/**
* @param {string} source
*/
module.ex... |
/* eslint-disable no-unused-vars,no-undef,no-await-in-loop */
const nock = require('nock');
const chai = require('chai');
const amqp = require('amqplib');
const config = require('config');
const appConstants = require('app.constants');
const Task = require('models/task.model');
const RabbitMQConnectionError = require('... |
import assert from 'assert';
import URL from 'url';
import cheerio from 'cheerio';
import Mercury from 'mercury';
import getExtractor from 'extractors/get-extractor';
import { excerptContent } from 'utils/text';
const fs = require('fs');
describe('WwwWithingsComExtractor', () => {
describe('initial test case', () ... |
function null() { } |
//# sourceMappingURL=app.b4ee6d23e36e0d6305f4.js.map |
import React from 'react';
import { Link } from 'gatsby';
import Layout from '../components/layout';
import SEO from '../components/seo';
const About = () => (
<Layout>
<SEO title="About" />
<div className="container">
<h3 className="row justify-content-center"> About </h3>
<p className="row ju... |
define(['clone'], function(clone){
function MazeStatus(options){
var visitedSpaces = {};
var path = {
spaceIds: [],
spaces: [],
movements: []
};
var statusBasedEffects = [];
var adiacents = options.adiacents;
var redirect;
var actualSpaceId = null;
var teleports = {};
var sack = [];
v... |
import React from 'react'
import PropTypes from 'prop-types'
import { Link, graphql } from 'gatsby'
import styled from 'styled-components'
import { Layout, Article, Wrapper, Button, SectionTitle } from '../components'
const Content = styled.div`
grid-column: 2;
box-shadow: 0 4px 120px rgba(0, 0, 0, 0.1);
border... |
/*
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... |
// @flow
import React, { Component } from 'react';
import { Grid } from 'semantic-ui-react';
import ConnectionContainer from '../../containers/Locker/Connection';
class Connection extends Component<Props> {
render() {
return (
<Grid
stretched
textAlign="center"
verticalAlign="middle... |
const quantiteRequise = envoi => parseInt(envoi, 10) > 0 ? parseInt(envoi, 10) : 1;
const triDates = (a,b) => a.getTime() - b.getTime();
const triPatronyme = (a,b) => a.nom.localeCompare(b.nom);
const triCodePostal = (a,b) => a.codePostal.localeCompare(b.codePostal);
const dateFR = date => date.toLocaleString('fr-FR', ... |
// Copyright 2017 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Registry of active color pickers on Las Venturas Playground.
const registry = new WeakMap();
// Manages the color pickers, displayed throug... |
import * as music from './music'
export {
music,
} |
import sinon from 'auto-release-sinon';
import expect from 'expect.js';
import ngMock from 'ng_mock';
import faker from 'faker';
import _ from 'lodash';
import MockState from 'fixtures/mock_state';
import AppStateProvider from 'ui/state_management/app_state';
import 'ui/url';
// global vars, injected and mocked in ini... |
import { useStaticQuery, graphql } from "gatsby"
export const useGetFeaturedOnlineCourses = () => {
const data = useStaticQuery(graphql`
query onlineCourses {
allMdx(
filter: { frontmatter: { featured_course: { eq: true } } }
limit: 12
) {
edges {
node {
... |
const mix = require('laravel-mix');
let tailwindcss = require('tailwindcss');
require('dotenv').config();
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, flu... |
var vector_8h =
[
[ "Vector", "classfasttext_1_1Vector.html", "classfasttext_1_1Vector" ],
[ "operator<<", "vector_8h.html#a23eb4596f3beb9859b22cf64a83461d6", null ]
]; |
// Copyright 2018-2020 Polyaxon, 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 agre... |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Definition of the ChannelDebug class. ChannelDebug provides
* a utility for tracing and debugging the BrowserChannel requests.
*/
/**
* Namespace for BrowserChannel
*/
goog.provide('goog.net.... |
/*!
* jQuery JavaScript Library v2.1.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:01Z
*/
* Sizzle CSS Selector Engine v2.2.0-p... |
(function(x){
x.indexOf("internal") !== -1; // NOT OK, but not flagged
x.indexOf("localhost") !== -1; // NOT OK, but not flagged
x.indexOf("secure.com") !== -1; // NOT OK
x.indexOf("secure.net") !== -1; // NOT OK
x.indexOf(".secure.com") !== -1; // NOT OK
x.indexOf("sub.secure.") !== -1; // NOT ... |
export default [
{
name: 'Michael Jordan',
nickname: 'Air Jordan',
position: 'SG',
height: 78,
avatar: 'img/url',
description: `Michael Jordan personified greatness on the court, and redefined superstar athlete off it. His freshman season at UNC culminated with Jordan hitting the game-winning ... |
import { module, test } from 'qunit';
import { setupAuthentication } from 'ilios-common';
import { setupApplicationTest } from 'ember-qunit';
import { setupMirage } from 'ember-cli-mirage/test-support';
import page from 'ilios/tests/pages/program-year';
module('Acceptance | Program Year - Objective Vocabulary Terms', ... |
/**
* @license MIT
* @name ChunksWebpackPlugin
* @version 4.0.2
* @author: Yoriiis aka Joris DANIEL <joris.daniel@gmail.com>
* @description: ChunksWebpackPlugin create HTML files to serve your webpack bundles. It is very convenient with multiple entrypoints and it works without configuration.
* {@link https://git... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var Icon = require('../Icon-1083255b.js');
var React = require... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
/**
* @constructor
* @extends ViewBase
*/
cls.HelloWorldView = function(id, name, container_class)
{
var self = this;
this.createView = function(container)
{
container.render
(
['div',
['h1', 'Hello World'],
['p', 'A short documentation of the ui framework used in Opera Dra... |
import Navigation from './components/navigation.js';
import OpenExternalLinksInNewTab from './components/links.js';
import CodeSnippet from './components/code_snippet.js';
import DocsSidebarExpander from './components/docs-sidebar.js'
import Search from './components/search.js';
window.addEventListener('load', (event)... |
import fs from 'fs'
import assert from 'assert'
import { performance } from 'perf_hooks';
import {Readable, Writable, Transform, pipeline } from 'stream'
import YadamuLibrary from '../../lib/yadamuLibrary.js';
import YadamuConstants from '../../lib/yadamuConstants.js';
import DBIConstants ... |
import React, { Component } from 'react';
import { StyleSheet, Text, View, TextInput, Button, TouchableOpacity } from 'react-native';
export default class InputBox extends Component {
state = {
userInput: "",
};
handleInput = text => {
this.setState({ userInput: text })
}
handleBu... |
(function() {var implementors = {};
implementors["aho_corasick"] = ["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"aho_corasick/struct.Match.html\" title=\"struct aho_corasick::Match\">Match</a>",];
i... |
describe('Patch element => apply', () => {
const Patch = opr.Toolkit.Patch;
const Document = opr.Toolkit.Document;
const VirtualDOM = opr.Toolkit.VirtualDOM;
const createElement = name => new opr.Toolkit.VirtualElement({element: name});
it('adds attribute', () => {
// given
const element = utils.c... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
//1. Use the D3 library to read in `samples.json`.
//Initializes the page with a default plot
function init() {
// drop downlist of IDs
// Use D3 to select the dropdown menu
var dropdownMenu = d3.select("#selDataset");
// get the names from samples
d3.json("samples.json").then((importData) => {
... |
import update from 'react-addons-update';
import { SEND_MESSAGE } from '../actions/messageActions';
import {
START_CHATS_LOADING,
SUCCESS_CHATS_LOADING,
ERROR_CHATS_LOADING,
} from '../actions/chatActions';
const initialStore = {
messages: {},
// isLoading: false,
};
export default function message... |
const initialState = {
staff: [
{
name: 'Dean Harry',
position: 'CEO',
photo: '../../../static/img/Dean.jpg',
id: 'dean-harry'
},
{
name: 'Nikita Nel',
position: 'artist',
photo: '../../../static/img/Nikita.j... |
const router = require('express').Router();
const { Category, Product } = require('../../models');
// The `/api/categories` endpoint
router.get('/', async(req, res) => {
// find all categories
// be sure to include its associated Products
try {
const categoryData = await Category.findAll({
include: [{... |
var SimpleOsc = function(options){
options = options || {};
var min = options.min || -1;
var max = options.max || 1;
var inc = options.inc || 0.1;
var start = options.start || 0;
var reverse = options.reverse || false;
var direction = reverse ? -1 : 1;
return function(rev){
if (rev) {
direction *= -1;... |
;(function () {
'use strict';
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
/*jslint browser:true, node:true*/
/*global de... |
/*
* jsrsasign(jwths) 10.5.0 (2021-11-21) (c) 2010-2021 Kenji Urushima | kjur.github.io/jsrsasign/license
*/
/*! CryptoJS v3.1.2 core-fix.js
* code.google.com/p/crypto-js
* (c) 2009-2013 by Jeff Mott. All rights reserved.
* code.google.com/p/crypto-js/wiki/License
* THIS IS FIX of 'core.js' to fix Hmac issue.
*... |
// Source: https://github.com/shantha-kumara/marked-wnl
Package.describe({
summary: "A markdown parser and compiler. A version that preserve new lines."
});
Package.on_use(function (api) {
api.add_files("marked.js");
api.use("templating", "client", {weak: true});
api.add_files('template-integration.js', 'cli... |
const router = require('express').Router();
const { catchErrors } = require('../handlers/errorHandlers');
const userController = require('../controllers/userController');
const auth = require('../middlewares/auth');
router.post('/login', catchErrors(userController.login));
router.post('/register', catchErrors(userCont... |
import { boot } from 'quasar/wrappers'
import JsonApiViewer from 'quasar-ui-json-api-viewer/src/components/JsonApiViewer'
import MarkdownPage from '../components/MarkdownPage.vue'
import MarkdownLink from '../components/MarkdownLink.vue'
import ExampleViewer, { setDefaults } from 'quasar-ui-example-viewer/src'
import {... |
'use strict';
const fs = require('fs');
const path = require('path');
function scanDirectory(dirPath, files, extension, deep){
if(!files) files = [];
if(!extension) extension = '.js';
if(deep == null) deep = true;
if(!fs.existsSync(dirPath)){
return files;
}
fs.readdirSync(dirPath).forEach(file => ... |
import { atom } from "recoil";
export const atomHashTracks = atom({
key: "HashTracks",
default: 0,
});
export const atomHashRefreshToken = atom({
key: "HashRefreshToken",
default: 0,
});
export const atomHashArtist = atom({
key: "HashArtist",
default: 0,
});
export const atomHashAlbums = atom({
key: "... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ArgumentsRequired, AuthenticationError, InsufficientFunds, PermissionDenied, BadRequest, BadSymbol, RateLimitExceeded, InvalidOrder } = require ('./base/er... |
"use strict";
var fs = require( "fs" );
var path = require( "path" );
var wrench = require( "wrench" );
function command( module ) {
return path.resolve( __dirname, "node_modules/.bin/" + module + ( path.sep === "/" ? "" : ".cmd" ) );
}
module.exports = function( grunt ) {
var lib = path.resolve( __dirname, "lib"... |
const express = require("express");
const router = express.Router();
const path = require("path");
router.get("/", (req, res, next) => {
req.app.ingest.Videos.getAll({}, "", (error, { data }) => {
return res.render("index", {
title: "Welcome to the Ingest Starter!",
user: req.user,
videos: dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.