text stringlengths 2 1.05M |
|---|
function SvgArrowCircleDownSharp(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path fill='none' d='M0 0h24v24H0z' />
<path d='M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 ... |
import Struct from '~/classes/Struct';
export default new Struct().fromSchema1([
{ child: { type: Number, name: 'nIndex', len: 32 } },
{ child: { type: String, name: 'strCode', len: 64 } },
{ child: { type: Boolean, name: 'bExist', len: 32 } },
{ child: { type: String, name: 'strModel', len: 64 } },
{ child:... |
var myval = "value";
if(myval) {
console.log("This value is truthy");
}
myval = 0;
if(!myval) {
console.log("This value is falsy");
}
|
UM.registerUI('bold italic redo undo underline strikethrough superscript subscript insertorderedlist insertunorderedlist ' +
'cleardoc selectall link unlink print preview justifyleft justifycenter justifyright justifyfull removeformat horizontal',
function(name) {
var me = this;
var $btn = $.edu... |
/*jshint node:true*/
module.exports = {
name: 'enable-optional-features-via-url',
/**
So the ENABLE_OPTIONAL_FEATURES flag is considered correctly within the
index.html, it needs to be set before Ember.js is loaded. Since there is
currently no way to access the `window` object within config/environment... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{606:function(a,t,s){"use strict";s.r(t);var e=s(3),r=Object(e.a)({},(function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[s("h1",{attrs:{id:"git常见命令"}},[s("a",{staticClass:"header-anc... |
var ListRoleMenu = {
Init: function () {
this.InitEvent();
this.InitData();
},
InitEvent: function () {
$("[name=abtnSave]").click(function () {
ListRoleMenu.OnSave();
})
},
InitData: function () {
this.InitForm();
this.LoadTgMenu();
}... |
export function isEven(n) {
return n % 2 === 0;
}
export function isOdd(n) {
return !isEven(n);
}
|
const { expect } = require('chai');
const { Color } = require('../src/red-black-tree');
const { RBNode } = require('../src/red-black-tree');
const { getParent } = require('../src/red-black-tree');
const { getGrandParent } = require('../src/red-black-tree');
const { getSibling } = require('../src/red-black-tree');
const... |
/*! For license information please see commons-d5f7c9632742cdbdac81.js.LICENSE.txt */
(self.webpackChunkderiv_com=self.webpackChunkderiv_com||[]).push([[351],{9332:function(e,t,i){"use strict";i(7294);t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBh... |
require('dotenv').config()
var fs = require('fs');
var path = require("path");
var url = require("url");
const image2base64 = require('image-to-base64');
var express = require('express');
var app = express();
var client_id = 'w7FsuKKmd0_0nh3h_yIb';
var client_secret = 'ONSQVwlB8B';
var state = "RAMDOM_STATE";
var redir... |
function scrollToAnchor() {
const url = window.location.href;
if (url.includes("#")) {
const anchor = url.slice(url.indexOf("#") + 1);
const details = document.querySelector(`#${anchor}`);
details.setAttribute("open", true);
try {
window.scrollTo(
0,
details.getBoundingClientRe... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{562:function(t,s,a){"use strict";a.r(s);var n=a(43),e=Object(n.a)({},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"web-view"}},[a("a",{staticClass:"header-an... |
/* This file has been generated by ox-ui-module generator.
* Please only apply minor changes (better no changes at all) to this file
* if you want to be able to run the generator again without much trouble.
*
* If you really have to change this file for whatever reason, try to contact
* the core team and describe ... |
import React from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
moment.locale('nl');
import moneyPresenter from '../../../../helpers/MoneyPresenter';
import ViewText from '../../../../components/form/ViewText';
import ParticipantFormViewObligation from './view/ParticipantFormViewObligatio... |
require('dotenv').config();
const router = require('express').Router();
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const multer = require('multer');
const upload = multer();
const sharp = require("sharp");
const fs = require('fs');
const path = require('path');
const { isValidEmail, isVali... |
'use strict';
window.addEventListener('scroll', () => {
let content = document.querySelector('.textBox');
let contentPosition = content.getBoundingClientRect().top;
let secreenPosition = window.innerHeight / 1.5;
if (contentPosition < secreenPosition) {
content.classList.add('active');
} else {
... |
const handler = require("../../utils/router");
const controller = require('./controller')
const router =
handler().
post("/user", controller.create).
get("/users", controller.getAll).
delete("/user/:id", controller.remove).
get("/user/:id", controller.getById).
put("/user/:id", controller.update);
module.exports = ro... |
define({
"_widgetLabel": "Editar",
"_featureAction_Edit": "Editar",
"title": "Escolha um template para criar elementos",
"pressStr": "Pressione ",
"ctrlStr": " CTRL ",
"snapStr": " para ativar o ajuste automático",
"close": "Fechar",
"featureLayers": "Camadas de elementos",
"searchTemplates": "Pesquis... |
import React from 'react';
import GlobalStyle from './globalStyles';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Navbar from './components/Navbar/Navbar';
//Pages
import Home from './pages/Home';
import SignUp from './pages/SignupPage';
import Pricing from './pages/PricingPage';
i... |
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import { makeStyles } from '@material-ui/core/styles';
// ISO 3166-1 alpha-2
// ⚠️ No support for IE 11
// function Country(isoCode) {
// return typeof String.fromCodePoin... |
function cleanInfo(info) {
var ret = {};
for (var x in info) {
ret[x] = info[x];
}
return ret;
}
var module = new binaryen.Module();
module.setFeatures(binaryen.Features.ReferenceTypes |
binaryen.Features.ExceptionHandling |
binaryen.Features.Multivalue);
var pairType... |
const TodoActions = {
Add: (obj) => {
console.log({ obj });
return { type: 'ADD', payload: obj }
},
Update: (obj) => {
return { type: 'UPDATE', payload: obj }
},
Delete: (id) => {
return { type: 'DELETE', payload: id }
},
Edit: (obj) => {
return { typ... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... |
class Util {
/**
* Static Method that can used to generate a
* random html color code.
*
* @returns {string}
*/
static color() {
var hex = "#",
i = 0;
for (; i < 6; i++) {
hex += Math.floor(Math.random() * 16).toString(16);
}
retur... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.push = push;
exports.hasComputed = hasComputed;
exports.toComputedObjectFromClass = toComputedObjectFromClass;
exports.toClassObject = toClassObject;
exports.toDefineObject = toDefineObject;
var _helperFunctionName = require("@babe... |
import styled from 'styled-components'
export const LoginFormWrapper = styled.div`
width: 575px;
margin: 0 auto;
padding-bottom: 35px;
padding-top: 60px;
@media(max-width: 600px) {
width: 475px;
}
.header {
text-align: center;
padding-bottom: 40px;
h1 {
... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-513530da"],{2630:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek... |
// After config is set, write entry file
import c from 'ansi-colors'
import state from '../state/index.js'
import writeLine from './writeLine.js'
import { s, w } from './text.js'
export default function configSet () {
const entryPoints = []
const currTime = new Date(Date.now()).toLocaleTimeString()
writeLine(w.e... |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "org-chart";
const pathData = "M484 341q28 0 28 28v113q0 13-7.5 21t-20.5 8H313q-13 0-20.5-8t-7.5-21V369q0-28 28-28h57v-57H143v57h57q28 0 28 28v113q0 13-7.5 21t-20.5 8H29q-13 0-20.5-8T1 482V369q0... |
const fs = require('fs');
const { createWorker } = require('../../src');
const worker = createWorker({
progress: (p) => console.log(p),
});
(async () => {
console.log('Loading ffmpeg-core.js');
await worker.load();
console.log('Loading data');
await worker.write('audio.ogg', '../../tests/assets/triangle/aud... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
var Gantt=function(){"use strict";const t={en:["January","February","March","April","May","June","July","August","September","October","November","December"],es:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],ru:["Январь","Февраль","Март","Апрель","Май"... |
import React, { Fragment } from 'react'
import PropTypes from 'prop-types'
import Repinned from 'repinned'
import Header from '../components/Header'
import PageContent from '../components/PageContent'
import {
Container,
HeaderWrapper,
ContentWrapper,
Heading,
CornerButtonWrapper,
} from '../components/styl... |
describe('saucectl demo test 4', () => {
test('should verify title of the page', async () => {
const page = (await browser.pages())[0]
await page.goto('https://www.saucedemo.com/');
expect(await page.title()).toBe('Swag Labs');
});
}); |
/*!
* Bootstrap-select v1.11.2 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2016 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)... |
/**
* Created by xbh 2019-07-31 类
*/
//NodeClass 类
class NodeClass {
//构造函数
constructor(x, y) {
//类变量
this.x = x;
this.y = y;
}
//自定义函数
tostring() {
return 'x:' + this.x + ',y:' + this.y;
}
//静态函数
static say(name) {
this.para = name;
r... |
module.exports = {
create
}
function create({ params_validators, logger }) {
return {
dal: {
params_freezer: Object.freeze, // strategy
// params_validators
// logger
},
model: {
params_freezer: Object.freeze,
params_validators... |
import { GET_VALUE_1, GET_VALUE_2 } from '../constants/index'
const getValue = ({ state }) => state.value
const getText = ({ state }) => state.text
//users has to elavorate a selector function that listed all selectors regarding their selector type
export function selectors(prop, getSelector) {
switch(prop) {
... |
import * as web3utils from 'web3-utils';
import Transaction from 'ethereumjs-tx';
/**
* Converts eth address to a shorter string deleting the middle
* @param {*} address Eth address to shorten
* @param {*} charsToKeep number of hex characters to keep in the beginning and the end of string
*/
export const shortenEt... |
module.exports = {
name: "put",
ns: "pouchdb",
description: "Create a new document or update an existing document. If the document already exists, you must specify its revision _rev, otherwise a conflict will occur.",
async: true,
phrases: {
active: "Putting document"
},
ports: {
input: {
db... |
/**
* @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 { ElementRef } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequi... |
var structoperations__research_1_1_routing_model_1_1_vehicle_class =
[
[ "LessThan", "structoperations__research_1_1_routing_model_1_1_vehicle_class.html#aac2b6fe6489b8e1ae6867681a5ae83ef", null ],
[ "cost_class_index", "structoperations__research_1_1_routing_model_1_1_vehicle_class.html#af626487fbe89510613df5f... |
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageFeatures from '../components/HomepageFeatures';
import BrowserOnly fro... |
/*global addEvent, Calendar, cancelEventPropagation, findPosX, findPosY, getStyle, get_format, gettext, interpolate, ngettext, quickElement, removeEvent*/
// Inserts shortcut buttons after all of the following:
// <input type="text" class="vDateField">
// <input type="text" class="vTimeField">
(function() {
... |
/**
* 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';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
/* eslint-disable */
var renderToString = dep(require('preact-render-to-string'));
function dep(obj) { return obj['default'] || obj; }
module.exports = {
renderToString: renderToString,
renderToStaticMarkup: renderToString
};
|
import React from 'react'
const styles = {
footer: {
textAlign: 'center'
}
}
const Footer = () => {
return (
<footer className="align-center">
<span> © {new Date().getFullYear()}, IBCL </span>
</footer>
)
}
export default Footer; |
export const addNote = (note) => {
return (dispatch, getState, { getFirestore }) => {
const firestore = getFirestore()
firestore.collection('notes')
.add({
...note,
favorite: false,
createdAt: new Date()
})
.then(() ... |
function isNumeric(val) {
return Number(parseFloat(val)).toString() === val;
}
module.exports = function (restClient) {
var module = {};
module.create = function (customerToken, customerId = null) {
if (customerId) {
return restClient.post('/customers/' + customerId + '/carts', {},... |
module.exports = function (sequelize, DataTypes) {
return sequelize.define(
'trusted_application',
{
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
}
},
{
tableName: 'trusted_application',
timestamps: false,
underscored: true
... |
import {CellCoords} from './../3rdparty/walkontable/src';
import {mixin} from './../helpers/object';
import localHooks from './../mixins/localHooks';
/**
* The Transformation class implements algorithms for transforming coordinates based on current settings
* passed to the Handsontable.
*
* Transformation is alway... |
CKEDITOR.plugins.setLang('youtube', 'en', {
button: 'Embed YouTube Video',
title: 'Embed YouTube Video',
txtEmbed: 'Paste Embed Code Here',
txtUrl: 'Paste YouTube Video URL',
txtWidth: 'Width',
txtHeight: 'Height',
chkRelated: 'Show suggested videos at the video\'s end',
txtStartAt: 'Sta... |
import React from 'react';
import PropTypes from 'prop-types';
// import Link from 'next/link';
const githubHost = 'https://github.com/';
const ProjectCard = ({ project }) => (
<div className="container">
<h2 className="title">
<a href={project.url} target="_blank" rel="noopener noreferrer">
{proje... |
import t from 'tst'
import { h, html } from './index.js'
t('html: self-closing tags', t => {
t.is(html`<input>`, { tag: 'input', props: null, children: [] })
t.is(html`<input><p><br></p>`, [{ tag: 'input', props: null, children: [] }, { tag: 'p', props: null, children: [{ tag: 'br', props: null, children: [] }]}])... |
import { defer } from 'rsvp';
import DS from 'ember-data';
import isPromise from 'ember-promise-tools/utils/is-promise';
import { module, test } from 'qunit';
module('Unit | Utils | is promise', function() {
test('Ember Promise Proxy mixin is detected', function(assert) {
assert.expect(1);
let deferred = de... |
'use strict'
import config from './config'
import grenacheClientService from './grenacheClientService'
import helpers from './helpers'
import validate from './validate'
export default {
config,
grenacheClientService,
helpers,
validate
}
|
import axios from 'axios';
import React, { Component } from "react";
class Staff extends Component {
constructor(props) {
super(props)
this.state = {
gallery: [],
};
}
componentDidMount() {
axios.get('http://localhost:8000/api/gallery/')
.then(res => {
t... |
const fs = require('fs')
var constant = require('../constant')
var linesGetOption = require('../getOptionRequest/linesGetOption')
var machinesGetOption = require('../getOptionRequest/machinesGetOption')
var documentGetOption = require('../getOptionRequest/documentGetOption')
var documentDownloadGetOption = require('..... |
import {Mapper, Chain} from 'graflow'
import Message from './Message'
const Inputs = () => Chain(
Mapper(v => Object.entries(v).map(([name, value]) =>
Message('events', 'event', [['in', name, value]]))
)
)
export default Inputs
|
(function($) {
var suite = Echo.Tests.Unit.GUI = function() {};
suite.prototype.info = {
"className": "Echo.GUI",
"suiteName": "GUI",
"functions": [
"refresh",
"destroy"
]
};
suite.prototype.tests = {};
suite.prototype.tests.commonWorkflow = {
"config": {
"async": true
},
"check": function() {
var t... |
import Ember from "ember"
import hbs from "htmlbars-inline-precompile"
export default Ember.Component.extend({
actions: {
submit() {
analytics.track("Editor - Submit Commit")
if (
Ember.isEmpty(Ember.get(this, "summary")) ||
Ember.isEmpty(Ember.get(this, "session.profile.email")) ||
... |
var flagElement = document.getElementById("flagContainer");
var swedenElement = document.getElementById("swedenID");
var italyElement = document.getElementById("italyID");
var germanyElement = document.getElementById("germanyID");
function toggleSweden() {
if (flagElement.classList == "sweden"){
flagEle... |
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){var r,i,o=(... |
module.exports = {
common:{
login:'로그인',
register:'등기',
loginregister:"로그인 등록",
logout:'로그 아웃',
tip:'팁',
logintip:'먼저 로그인하시기 바랍니다',
expect:'계속 지켜봐주세요!',
delete:'삭제를 확인 하시겠습니까?',
nodata:'기록 없음',
set:'설정',
update:'수정',... |
import PropTypes from 'prop-types'
import { Form } from '@admin'
import React from 'react'
class New extends React.PureComponent {
static contextTypes = {
form: PropTypes.object
}
static propTypes = {
onDone: PropTypes.func
}
_handleBack = this._handleBack.bind(this)
_handleSuccess = this._handl... |
import makeItemId from 'common/utils/makeItemId';
import * as uuid from 'uuid';
jest.mock('uuid');
const id = '12334567890';
beforeAll(() => {
uuid.v4.mockReturnValue(id);
});
it('makes an item id', () => {
expect(makeItemId()).toEqual(`item:${id}`);
});
|
'use strict';
var typography = require('./typography-63859aa8.js');
var index = (function () { return (typography.React.createElement(typography.React.Fragment, null,
typography.React.createElement(typography.H1, null, "Welcome to Starry! \u2728"),
typography.React.createElement("a", { href: "/about" }, "Abou... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function requireNewCopy(moduleNameOrPath) {
// Store a reference to whatever's in the 'require' cache,
// so we don't permanently destroy it, and then ensure there's
// no cache entry for this module
var resolvedModule = requir... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-atte"],{1837:function(t,e,a){"use strict";var i=a("d42d"),n=a.n(i);n.a},"7c4a":function(t,e,a){"use strict";a.r(e);var i=a("c4dc"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},babe:funct... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
/**
* Auto-generated action file for "SiteRecoveryManagementClient" API.
*
* Generated at: 2019-05-07T14:38:42.076Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-recoveryservicessiterecovery-service-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
... |
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
describe('jhipster-scripts:workspace', () => {
let ctx;
beforeEach(() => {
ctx = helpers
.create('jhipster-scripts:workspace', {}, {experimental: true})
.withLookups([{npmPaths: path.join... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modul... |
import {t} from '@lingui/macro'
import {Trans} from '@lingui/react'
import Color from 'color'
import React, {Fragment} from 'react'
import TimeLineChart from 'components/ui/TimeLineChart'
import ACTIONS from 'data/ACTIONS'
import JOBS from 'data/JOBS'
import Module from 'parser/core/Module'
import {TieredSuggestion, SE... |
import safeString from '../helpers/strings/safeString';
export default (sequelize, DataTypes) => {
const Faction = sequelize.define('Faction', {
id: {
allowNull: false,
primaryKey: true,
type: DataTypes.INTEGER,
autoIncrement: true,
},
name: {
allowNull: false,
type: D... |
//we need hardhat environment//
const hre = require('hardhat')
async function main(){
// Hardhat always runs the compile task when running scripts with its command
// line interface.
//
// If this script is run directly using `node` you may want to call compile
// manually to make sure everything ... |
/**
* Copyright 2019 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... |
export default {
email: 'john@snow.com',
password: '1qwertyuiopQ',
userType: 'student',
}; |
import PropTypes from 'prop-types';
export const groupProps = {
description: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
};
export const helpMenuProps = {
id: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
visible: PropTypes.bool,
hr... |
define("dijit/layout/LinkPane", [
"./ContentPane",
"../_TemplatedMixin",
"dojo/_base/declare" // declare
], function(ContentPane, _TemplatedMixin, declare){
/*=====
var _TemplatedMixin = dijit._TemplatedMixin;
var ContentPane = dijit.layout.ContentPane;
=====*/
// module:
// dijit/layout/LinkPane
// summary:... |
module.exports = {
description: 'Deoptimize when __proto__ is used'
};
|
navigator.getUserMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia);
function getUserMedia(constaints, onSuccess, onError) {
navigator.getUserMedia(constaints, onSuccess, onError);
}
function isInnerCandidate(candidate){
var innerIP = /192.[... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
const fs = require('fs');
module.exports = function readPodfile(podfilePath) {
const podContent = fs.rea... |
function _defineProperties(target, props) {
for(var i = 0; i < props.length; i++){
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descript... |
const modifier = (text) => {
let modifiedText = text
//either put your code here, either call another function
// do nothing if the function isn't defined
if (typeof myInputMod === "function")
modifiedText = myInputMod(modifiedText)
//end of the part where you put your code
... |
const defaultConfig = require('tailwindcss/defaultConfig');
const plugin = require('../src/index');
module.exports = {
...defaultConfig,
plugins: [plugin()],
};
|
import React from 'react'
class organDetail extends React.Component {
constructor(props){
super(props)
}
render(){
return (
<div>detail</div>
)
}
}
export default organDetail |
import { createMuiTheme, colors } from '@material-ui/core';
import shadows from './shadows';
import typography from './typography';
const theme = createMuiTheme({
palette: {
background: {
dark: '#F4F6F8',
light: colors.blue[100],
default: colors.common.white,
paper: colors.common.white
... |
const settings = {
"async": true,
"crossDomain": true,
"url": "http://mockbin.com/har",
"method": "POST",
"headers": {
"content-type": "application/json"
},
"processData": false,
"data": "{\n \"foo\": \"bar\"\n}"
};
$.ajax(settings).done(function (response) {
console.log(response);
});
|
"use strict";
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? tar... |
define("orbit-common/local-storage-source",["orbit/lib/assert","./memory-source","exports"],function(a,b,c){"use strict";var d=a.assert,e=b["default"],f=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(a){return!1}},g=e.extend({init:function(a,b){d("Your browser does not support local stor... |
/**
* @author Charlie Calvert
*/
function myTests() {
'use strict';
test('MyFirstTest', function() {
ok(true);
});
test('MySecondTest', function() {
ok(1 === 1);
});
test('TestAdd', function() {
var app = new App();
var result = app.add(2, 3);
var ex... |
import { gql } from "apollo-server-express";
export default gql`
type File {
id: ID!
name: String
type: String
# path: String
}
extend type Query {
getFiles: [File]
}
extend type Mutation {
uploadFile(file: Upload!): File
}
`;
|
/*
* The AnVIL
* https://www.anvilproject.org
*
* The AnVIL header component.
*/
// Core dependencies
import {Link} from "gatsby";
import React from "react";
// App dependencies
import ClickHandler from "../click-handler/click-handler";
import * as HeaderService from "../../utils/header.service";
// Images
impo... |
export function CreateVerticalSplitter (splitterDiv, callbacks)
{
let originalPosition = null;
let mouseMoveHandler = (ev) => {
ev.preventDefault ();
const diff = ev.clientX - originalPosition;
callbacks.onSplit (diff);
};
let mouseUpHandler = () => {
document.removeEve... |
!function r(e,t,n){function a(i,s){if(!t[i]){if(!e[i]){var l="function"==typeof require&&require;if(!s&&l)return l(i,!0);if(o)return o(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[i]={exports:{}};e[i][0].call(c.exports,function(t){var n=e[i][1][t];return a(n?n:t)},c,c.ex... |
function LocalVideoClick(){if(board.user.permission.video){if(!LocalAudioTrack&&LocalVideoTrack){iconDisablVidu(2e3,iconViduPanel);unpublishOwnFeed();return}var n=LocalAudioTrack,t=LocalVideoTrack;LocalAudioTrack||LocalVideoTrack?(iconDisablVidu(5e3,iconViduPanel),unpublishOwnFeed(),setTimeout(()=>{publishOwnFeed(n,!t)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.