text stringlengths 2 1.04M |
|---|
angular.
module('test', []).
controller('TestController', function($scope) {
$scope.text = 'Hello, world!';
}); |
import { Category } from '../../../stories/storiesHierarchy';
import Loader from '..';
export default {
category: Category.COMPONENTS,
storyName: 'Loader',
component: Loader,
componentPath: '..',
componentProps: {
dataHook: 'storybook-loader',
status: 'loading',
statusMessage: 'some message he... |
/**
* Copyright (c) 2002-2019 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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... |
import { createSlice } from '@reduxjs/toolkit';
import axios from 'axios';
let nextId = 0
const auctionItemsSlice = createSlice({
name: 'auctionItems',
initialState: {},
reducers: {
addAuctionItem(state, action) {
axios
.post('https://silentauction-bw.herokuapp.com/auctioneer/1/items', action.... |
import React from 'react';
import { Link } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import NotFoundImage from '../../assets/images/not-found.png';
import './styles.css';
const NotFoundContent = (props) => {
const { children } = props;
const { t } = useTranslation();
return (
... |
function OnWindowsReSize() {
document.getElementById("divMain").style.height = document.body.clientHeight - 30;
if ($("td").filter(".divCall").length > 0) {
// var arr=new Array();
// var i=0;
// $("td").filter(".divCall").children("div").filter(function(){
// arr[i]=$(this).at... |
const argumentParser = require('argparse').ArgumentParser;
const fs = require('fs');
const http = require('http');
const https = require('https');
const pjson = require('../package.json');
process.config = require('../config');
const db = require('../app/db');
// Handle arguments
const getArgs = function () {
const... |
import React from 'react';
import RNPickerSelect from 'react-native-picker-select';
import { PickerView } from './style';
export default function Picker({ onChange, tipo }) {
return (
<PickerView>
<RNPickerSelect
style={{
inputIOS: {
height: 50,
... |
var should = require('should')
var Store = require('../../store/base')
describe('Chainable', function() {
var store = new Store()
var User
store.Model('User', function() {})
before(function() {
return store.ready(function() {
User = store.Model('User')
})
})
describe('chain()', function()... |
module.exports = {
entry: './index.js',
output: {
path: './opal/clearwater/virtual_dom/js',
filename: 'virtual_dom.js',
libraryTarget: 'umd',
library: 'virtualDom',
},
target: 'web',
loaders: [
{
test: /.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loa... |
import React from 'react';
import Dropdown from './Dropdown';
import Select from 'react-select';
import WebFont from 'webfontloader';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCaretDown, faCaretUp, faCaretSquareDown } from '@fortawesome/free-solid-svg-icons'
const gradients = [
{... |
/*关于我们页面的JS*/
$(function(){
/*点击显示隐藏*/
$('.abc_left h3').each(function(index) {
$(this).click(function(){
$('.abc_left h4').show();
});
});
$('.abc_left h4').each(function(index) {
$('.abc_left h4').eq(index).click(function(){
$('.abc_left a').removeClass("specl_other");
$('.abc_left a').eq(ind... |
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.6 (2013-10-04)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014, Erick Lavoie, Faiz Khan, Sujay Kathrotia, Vincent
* Foley-Bourgon, Laurie Hendren
*
* 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 ... |
define(["require", "exports", "react", "office-ui-fabric-react/lib/Button", "office-ui-fabric-react/lib/FocusZone", "office-ui-fabric-react/lib/TextField", "office-ui-fabric-react/lib/Stack"], function (require, exports, React, Button_1, FocusZone_1, TextField_1, Stack_1) {
"use strict";
Object.defineProperty(e... |
/*
* Copyright (C) 2013 Google Inc. 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 code must retain the above copyright
* notice, this list of conditio... |
import {SHOW_EMAIL_BOX} from '../actions'
function showEmail (state = [], action) {
switch (action.type) {
case SHOW_EMAIL_BOX:
return true
default:
return state
}
}
export default showEmail |
import React from 'react';
import ReactDOM from 'react-dom';
import ApolloClient from 'apollo-boost';
import { CognitoAuth } from 'amazon-cognito-auth-js/dist/amazon-cognito-auth';
import { ApolloProvider } from 'react-apollo';
import { Provider } from 'react-redux';
import './theme';
import HotReloadContainer from '.... |
'use strict'
const path = require('path')
const cp = require('child_process')
const gc = require('../../src/utils/gitConstants')
const cli = (args, cwd) => {
return cp.execSync(`node ${path.normalize('./bin/cli')} ${args.join(' ')}`, {
cwd,
encoding: gc.UTF8_ENCODING,
})
}
test('cli-help', () => {
const... |
'use strict';
const LocalTrackPublicationSignaling = require('../localtrackpublication');
const createTwilioError = require('../../util/twilio-video-errors').createTwilioError;
/**
* @extends LocalTrackPublicationSignaling
*/
class LocalTrackPublicationV2 extends LocalTrackPublicationSignaling {
/**
* Construc... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
import React from "react"
import Title from "./Title"
import Project from "./Project"
import { Link } from "gatsby"
const Projects = ({ projects, title, showLink }) => {
return (
<section className="section projects">
<Title title={title} />
<div className="section-center projects-center">
{proj... |
(function () {
'use strict';
//Note: ContentScriptConfig is loaded through manual bootstrapping
function AppCtrl($scope, ParagraphDetectionService, ContentScriptSettings) {
}
//Load app controller. Note that ContentScriptConfig is loaded through manual bootstrapping in apps.js
angular
.... |
import React from 'react';
import PropTypes from 'prop-types';
class Modal extends React.Component {
render() {
if(!this.props.show) {
return null;
}
const backdropStyle = {
position: 'fixed',
top: 0,
bottom: 0,
left: 0,
right: 0,
backgroundColor: 'rgba(0,0,0,0.3... |
var CoinMarketCap = require(".")
var options = {
events: true,
refresh: 5, // Refresh time in seconds (Default: 60)
convert: "EUR" // Convert price to different currencies. (Default USD)
}
var coinmarketcap = new CoinMarketCap(options);
// Put event for price greater or equal than X
coinmarketcap.onGreater("BTC",... |
export function findTooltipTarget(selector) {
if (!selector) {
// In case of passing null, undefined, etc
selector = '.ember-tooltip-target, .ember-popover-target';
}
const { body } = document;
const tooltipTarget = body.querySelectorAll(selector);
if (tooltipTarget.length === 0) {
throw new Err... |
/**
* @file
* Javascript to enhance the views slideshow cycle form options.
*/
/**
* This will set our initial behavior, by starting up each individual slideshow.
*/
(function ($) {
// Since Drupal 7 doesn't support having a field based on one of 3 values of
// a select box we need to add our own JavaScript... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (content) {
if (content === '') {
return '';
}
return '\n <div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">\n ' + co... |
const express = require('express');
const app = express();
app.get('/', function (req, res) {
res.send('Hello World');
});
app.use('/middleurl', express.static('public'));
const port = 3000;
app.listen(port);
console.log("Listening on port "+port ); |
/*
AnythingSlider v1.7.2 minified using Google Closure Compiler
Original by Chris Coyier: http://css-tricks.com
Get the latest version: https://github.com/ProLoser/AnythingSlider
*/
|
(function(global) {
if (typeof (window._bokeh_onload_callbacks) === "undefined"){
window._bokeh_onload_callbacks = [];
}
function load_lib(url, callback){
window._bokeh_onload_callbacks.push(callback);
if (window._bokeh_is_loading){
console.log("Bokeh: BokehJS is being loaded, scheduling callbac... |
'use strict';
var domEvent = require('min-dom/lib/event'),
domMatches = require('min-dom/lib/matches');
/**
* A keyboard abstraction that may be activated and
* deactivated by users at will, consuming key events
* and triggering diagram actions.
*
* The implementation fires the following key events that allo... |
import React from 'react';
import { Link } from 'react-router-dom';
import messages from 'lib/text';
import Icon from '@material-ui/core/Icon';
import IconButton from '@material-ui/core/IconButton';
const Buttons = () => (
<span>
<Link to="/admin/settings/shipping/add">
<IconButton
touch={true}
tooltipPo... |
import {StyleSheet} from 'react-native';
import {colors, metrics, fonts} from '../../styles';
const widhtScreen = 0.9;
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingHorizontal: metrics.basePadding,
width: metrics.screenWidth * widhtScreen,
elevation: ... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", {
fill: "none",
d: "M0 0h24v24H0V0z"
}), React.createElement("path", {
d: "M19.99 2H10L4 8v14h16l-.01-20zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { inject, observer } from "mobx-react";
import styled from "styled-components";
import { Motion, spring, TransitionMotion } from "react-motion";
import { withRouter } from "react-router-dom";
import { getQueries } from "../../component... |
const { BlobServiceClient, StorageSharedKeyCredential } = require('@azure/storage-blob')
const stream = require('stream')
const Promise = require('bluebird')
const pipeline = Promise.promisify(stream.pipeline)
const pageHelper = require('../../../helpers/page.js')
const _ = require('lodash')
/* global WIKI */
const g... |
// Write a function that replaces non breaking white-spaces in a text with
function replaceEmptySpaces(text) {
text = text.replace(/ /g, ' ');
return text;
}
console.log(replaceEmptySpaces('We all love music and i have some fun yesterday.')); |
// Name : userjs-tool-userjs-table-view.js
// Project : https://github.com/icpantsparti2/firefox-user.js-tool
// On-line : https://icpantsparti2.github.io/firefox-user.js-tool/userjs-tool.html
// License (MIT): https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/LICENSE
// Vers... |
var express = require('express'),
userAPI = require('./user.controller'),
authService = require('../../auth/auth.service'),
router = express.Router();
router.route('/me').post(authService.ensureAuthenticated, userAPI.me);
router.route('/edit').post(userAPI.editUserProfile);
module.exports = router; |
"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... |
export default class GardenController {
constructor($sce, browser, garden, $scope) {
this.imagePath = browser.mobile ? '/uploads/gardens/mobile/' : '/uploads/gardens/full/'
this.captionOpen = false
this.garden = garden
this.trustedDescription = $sce.trustAsHtml(garden.description)
this.current = ... |
/**
Item Name: Ekka - Ecommerce HTML Template.
Author: ashishmaraviya
Version: 1.0
Copyright 2021-2022
Author URI: https://themeforest.net/user/ashishmaraviya
**/
(function($) {
"use strict";
/*--------------------- Main Slider image auto height ---------------------- */
$(document).r... |
// Generated by script, don't edit it please.
import createSvgIcon from '../createSvgIcon';
import PlusSvg from '@rsuite/icon-font/lib/action/Plus';
var Plus = createSvgIcon({
as: PlusSvg,
ariaLabel: 'plus',
category: 'action',
displayName: 'Plus'
});
export default Plus; |
// A collection of posts routes, bound to the given PostArchive instance.
//
// Arguments:
// postArchive: An initialized instance of a PostArchive.
var PostRoutes = function (postArchive) {
var routes = Object.create(null);
routes.all = PostRoutes.all.bind(null, postArchive);
routes.getPost = PostRoutes.getP... |
/*
VUEX Data Store.
Copyright (c) 2020. Jonathan, Kibble Online Inc. All Rights Reserved.
*/
import Vue from 'vue'
import Vuex from 'vuex'
import Game from '@/model/GameModel'
export default {
state: {
gameState: new Game(),
},
actions: {
endTurn({commit}) {
commit('SET_ROLE_... |
/* ********************************************************
Project: nita-webapp
Copyright (c) Juniper Networks, Inc., 2021. All rights reserved.
Notice and Disclaimer: This code is licensed to you under the Apache 2.0 License (the "License"). You may not use this code except in compliance with the License. This cod... |
const httphelper = require('../../../httphelper.js');
const common = require('../../../common.js');
const app = getApp();
let that;
Page({
/**
* 页面的初始数据
*/
data: {
bar_Height: 0,
order: {},
user: {},
content: null,
useBalance: 0,
showAddress: false,
addressIdx: 0,
addressdata:... |
var CommentList = React.createClass({displayName: "CommentList",
//style
commentStyle: {
},
render: function () {
var commentNodes = this.props.data.map(function(comment) {
return(
React.createElement(Comment, {author: comment.author},
comment.te... |
function openTab(evt, cityName) {
var i, x, tablinks;
x = document.getElementsByClassName("multiple_addresses");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < x.length; i++) {
tablinks[i].cla... |
var dbHelper = require("./dbHelper");
var adminCount = (object, next) => {
//dashboard counter
dbHelper.Count(object, {}, (err, data) => {
let json = {};
if (data) {
json.count = data;
}
next(err, json);
});
};
module.exports.AdminCount = adminCount; |
import BaseNode from './BaseNode.js';
import { DECORATOR } from '../constants.js';
class Decorator extends BaseNode {
constructor(
{
child = null,
name = 'Decorator',
title,
properties
} = {},
nodePool
) {
super({
cat... |
import styled from 'styled-components';
const LayoutWrapper = styled.div`
padding: 0 5%;
`;
export default LayoutWrapper; |
import Check from "./Check.js";
import Resource from "./Resource.js";
import KTX2Transcoder from "./KTX2Transcoder.js";
/**
* Stores the supported formats that KTX2 can transcode to. Called during context creation.
*
* @param {Boolean} s3tc Whether or not S3TC is supported
* @param {Boolean} pvrtc Whether or not P... |
import React from 'react';
import PropTypes from 'prop-types';
import { useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { colors } from 'styles';
import { AcceptIcon, DeclineIcon } from 'components/icons';
const Button = styled.div`
align-items: center;
justify-content: center... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { assertGreaterThan } from '../../util/assert';
import { assertIndexInDeclRange } from '../assert';
import { ex... |
'use strict';
angular.module('spotmop.browse.artist', [])
/**
* Routing
**/
.config(function($stateProvider) {
$stateProvider
.state('browse.artist', {
url: "/artist/:uri",
abstract: true,
templateUrl: "app/browse/artist/template.html",
controller: ['$scope', '$state',
... |
'use strict';
require('./build-polyfill').then(function () {
require('./build-tests');
}, function (err) {
console.error(err);
}); |
(function (angular, dataFromServer, urlHelper) {
'use strict';
angular.module('cms.webanalytics/campaignreport/demographicsLink/demographicsLink.component', [])
.component('cmsDemographicsLink', demographicsLinkComponent());
function demographicsLinkComponent() {
return {
bindi... |
import { dew } from './uniq.dew.js';
export default dew(); |
// @flow
import React from 'react';
import InlineMessage from '../src';
const MessageContent = (
<div>
<h4>Authenticate heading</h4>
<span>
Authenticate <a href="https://atlaskit.atlassian.com/">here</a> to see
more information
</span>
</div>
);
export default () => (
<div>
<InlineM... |
import Vue from 'vue'
import App from './app.vue'
import router from './router/router.js'
require('./mock.js')
const root = document.createElement('div')
document.body.appendChild(root)
new Vue({
router,
render: (h) => h(App)
}).$mount(root) |
import { Dom, gsap } from '@brandocms/jupiter'
import autosize from 'autosize'
import Sortable from 'sortablejs'
export default (app) => ({
mounted() {
this.bindSortable()
},
bindSortable() {
this.$blocksWrapper = this.el
this.type = this.el.dataset.blocksWrapperType
this.sortable = new Sortabl... |
import React from 'react';
import PropTypes from 'prop-types';
import { Flex, Box, Image } from 'rebass';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import { useMediaQuery } from 'react-responsive';
import Point1 from 'images/Point_One.svg';
import Point2 from 'images/Poi... |
import React, { useState, useEffect, useCallback } from 'react';
import {
View,
StyleSheet,
Text,
TouchableOpacity,
Alert,
Pressable,
} from 'react-native';
import { useDispatch, useSelector } from 'react-redux';
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from 'rea... |
/**
* @module com.boneyard.ui.form.controls
* @author Patricio Ferreira <3dimentionar@gmail.com>
**/
define(['ui/view', 'util/string'], function(View, StringUtil) {
/**
* Class Input
* @namespace com.boneyard.ui.form.controls
* @class com.boneyard.ui.form.controls.Input
* @extends com.boneyard.ui.View
*
* @requ... |
const Collection = require('./Collection').default;
const Cursor = require('./Cursor').default;
describe('Cursor', () => {
describe('filters results', () => {
})
}) |
import namespaces from "./namespaces.js";
export default function (name) {
var prefix = name += "",
i = prefix.indexOf(":");
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
return namespaces.hasOwnProperty(prefix) ? {
space: namespaces[prefix],
local: name
} : name... |
import React from 'react';
import { Provider } from 'react-redux';
import renderer from 'react-test-renderer';
import configureStore from 'redux-mock-store';
import { initialState } from 'reducers/dashboard';
import ConnectedLink, { DashboardLink } from './Link';
import { withMemoryRouter } from 'utils';
describe('Da... |
/**
* @author Pedro Sanders
* @since v1
*/
const AccountManager = Packages.gov.nist.javax.sip.clientauthutils.AccountManager
const UserCredentials = Packages.gov.nist.javax.sip.clientauthutils.UserCredentials
// There is something mysterious about this class that
// makes gatewaysAPI null beyond the constructor.
/... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium Contributors
*
* 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/l... |
class UnexpectedError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = {
UnexpectedError,
}; |
import * as React from "react";
function CashIcon(props, svgRef) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
"aria-hidden": "true",
ref: svgRef
}, props), /*#__PURE__*/React.createElement("path... |
const fs = require('fs');
const sourceFolder = './client/fonts/';
const vfsFilename = './build/vfs_fonts.js';
const vfsBefore = "var vfs = ";
const vfsAfter = "; if (typeof this.pdfMake !== 'undefined' && typeof this.pdfMake.addVirtualFileSystem !== 'undefined') { this.pdfMake.addVirtualFileSystem(vfs); } if (typeof m... |
const { Router } = require('express');
const bodyParser = require('body-parser');
const AuthController = require('../controllers/AuthController');
const router = Router();
router.use(bodyParser.urlencoded({ extended: false }));
router.use(bodyParser.json());
router.post('/login', AuthController.login);
router.post('... |
import styled from 'styled-components';
import Box from '../Box';
export const ProfileRelationsBoxWrapper = styled(Box)`
ul {
display: grid;
grid-gap: 8px;
grid-template-columns: 1fr 1fr 1fr;
max-height: 220px;
list-style: none;
}
img {
object-fit: cover;
background-position: center ... |
/* @flow */
const path = require('path')
const serialize = require('serialize-javascript')
import { isJS, isCSS } from '../util'
import TemplateStream from './template-stream'
import { parseTemplate } from './parse-template'
import { createMapper } from './create-async-file-mapper'
import type { ParsedTemplate } from... |
import React from "react"
import { graphql } from "gatsby"
import { MDXRenderer } from "gatsby-plugin-mdx"
import Layout from "../components/layout"
import SEO from "../components/seo"
class BlogPostTemplate extends React.Component {
render() {
const post = this.props.data.allFile
const siteTitle = this.pr... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ca', {
title: 'Matemàtiques a TeX',
button: 'Matemàtiques',
dialogInput: 'Escriu el TeX aquí',
docUrl: 'https://kat... |
import { describe, PropTypes } from 'react-desc';
import { genericProps, getAvailableAtBadge, themeDocUtils } from '../../utils';
export const doc = Carousel => {
const DocumentedCarousel = describe(Carousel)
.availableAt(getAvailableAtBadge('Carousel'))
.description(
`A carousel that cycles through c... |
'use strict';
var mod = module.exports = angular.module('main.apps.st2Actions', [
]);
var controller = require('./actions.controller.js');
var config = require('./actions.config.js');
mod
.config(config)
.controller(controller.name, controller)
; |
mycallback( {"CONTRIBUTOR OCCUPATION": "Chief of Staff", "CONTRIBUTION AMOUNT (F3L Bundled)": "100.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "INT'L ASSOC. OF MACHINISTS", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "107 WEMBLEY COURT", "CONTRIBUTOR MIDDLE NAME": "M", "DONOR CANDIDATE F... |
deepmacDetailCallback("00a0f9000000/24",[{"d":"1998-04-22","t":"add","a":"WILLSTAEDTER STRASSE 30\nD-90449 NURNBERG\n\n","c":"GERMANY","o":"BINTEC COMPUTOR SYSTEME GMBH"},{"d":"2000-09-08","t":"change","a":"SUEDWESTPARK 94\n90449 NUERNBERG\n\n","c":"GERMANY","o":"BINTEC COMMUNICATIONS GMBH"},{"d":"2015-08-27","t":"chan... |
import React from 'react'
import {
Button,
Dialog,
DialogActions,
DialogTitle,
Paper,
TextField,
} from '@material-ui/core'
import { withStore } from 'freenit'
import { errors } from 'utils'
import Template from 'templates/default/detail'
import styles from './styles'
class Medic extends React.Component ... |
define([
'jquery',
'underscore',
'backbone',
'knockout',
'knockout-mapping',
'arches',
'views/components/widgets/resource-instance-multiselect',
'views/resource/related-resources-node-list',
'utils/ontology',
'bindings/related-resources-graph',
'plugins/knockout-select2',
... |
require("@testing-library/jest-dom");
const axios = require("axios");
const MockAdapter = require("axios-mock-adapter");
const fetchStats = require("../src/fetchers/stats-fetcher");
const calculateRank = require("../src/calculateRank");
const data = {
data: {
user: {
name: "Anurag Hazra",
repositorie... |
"use strict";
var users = [{
name: "Edward",
age: 21
}, {
name: "Sharpe",
age: 37
}, {
name: "Alfred",
age: 45
}, {
name: "Thomas",
age: -12
}, {
name: "Paul",
age: 13
}, {
name: "Tibo",
age: 37
}, {
name: "Manuel",
age: 38
}];
console.log(users.where(function (x) {
return x.name[0] === ... |
const path = require('path');
exports.onCreateWebpackConfig = ({ stage, actions }) => {
actions.setWebpackConfig({
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
},
});
}; |
import SuccessPageObject from '../framework/page-objects/SuccessPageObject';
import ChallengeFactorPageObject from '../framework/page-objects/ChallengeFactorPageObject';
import { RequestMock } from 'testcafe';
import factorRequiredPassword from '../../../playground/mocks/data/idp/idx/factor-verification-password';
impo... |
var PEEP_METADATA = {
tft: {frame:0, color:"#4089DD"},
all_d: {frame:1, color:"#52537F"},
all_c: {frame:2, color:"#FF75FF"},
grudge: {frame:3, color:"#efc701"},
prober: {frame:4, color:"#f6b24c"},
tf2t: {frame:5, color:"#88A8CE"},
pavlov: {frame:6, color:"#86C448"},
random: {frame:7, color:"#FF5E5E"},
... |
var Script = function () {
var doughnutData = [
{
value: 30,
color:"#F7464A"
},
{
value : 50,
color : "#46BFBD"
},
{
value : 100,
color : "#FDB45C"
},
{
value : 40,
... |
// Generated on 2015-02-27 using generator-angular 0.11.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks a... |
import Vue from 'vue'
import App from "./App";
import Dashboard from "./components/Dashboard";
import TestDummy from "./components/TestDummy"
import Html2PDFDemo from "./components/reports/Html2PDFDemo";
import WorldMap from "./components/reports/WorldMap";
const host = "http://siemstress.tech:3000"
let token = "eyJhb... |
//待使用
var cityData = {
"北京": ["东城", "西城", "朝阳", "丰台", "石景山", "海淀", "门头沟", "房山", "通州", "顺义", "昌平", "大兴", "平谷", "怀柔", "密云", "延庆"],
"天津": ["和平", "河东", "河西", "南开", "河北", "红桥", "滨海新区", "东丽", "西青", "津南", "北辰", "宁河", "武清", "静海", "宝坻", "蓟县"],
"河北": ["石家庄", "唐山", "秦皇岛", "邯郸", "邢台", "保定", "张家口", "承德", "沧州", "廊坊... |
import axios from "axios";
// Export an object containing methods we'll use for accessing the Dog.Ceo API
export default {
getRandomDog: function() {
return axios.get("https://dog.ceo/api/breeds/image/random");
},
getDogsOfBreed: function(breed) {
return axios.get("https://dog.ceo/api/breed/" + breed +... |
/* global _ */
(function() {
'use strict';
var origAjax = $.ajax;
var stubbedYT = {
Player: function() {
var Player = jasmine.createSpyObj(
'YT.Player',
[
'cueVideoById', 'getVideoEmbedCode', 'getCurrentTime',
'get... |
var os = require('os')
, mb = 1024 * 1024;
var Vitality = {
cpu: {
get: function() {
return os.cpus().map(function (cpu) {
return {
'idle': cpu.times.idle,
'total': cpu.times.user + cpu.times.nice + cpu.times.sys + cpu.times.idle + cpu.times.irq
};
});
},
... |
export { default } from 'ccm-core/services/tags'; |
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof module==='object'&&typeof module.exports==='object'){factory(require('jquery'));}else{factory(jQuery);}}(function(jQuery){jQuery.timeago.settings.strings={prefixAgo:"há",prefixFromNow:"em",suffixAgo:null,suffixFromN... |
"use strict";
const express = require("express");
const router = express.Router();
const { cardanoCli } = require("./../../src/helper");
/**
* Build and return Raw Transaction File Path
*/
router.post("/transactionBuildRaw", function (req, res, next) {
res.setHeader("content-type", "text/plain");
res.send(carda... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.