text stringlengths 2 1.04M |
|---|
import React, { Component } from "react";
import {ProductConsumer} from "../context";
import {Link} from "react-router-dom";
import {ButtonContainer} from "./Button";
export default class Details extends Component {
render() {
return (
<ProductConsumer>
{value => {
const {
id,
... |
//bloqueaPantalla();
const baseUrl = $('#url').val();
//PETICION ASINCRONA GET
const asyncGetReq = async (datos, url) => {
let params = Object.keys(datos).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(datos[k])).join('&');
let response = await fetch(`${url}${params}`);
if (!response.ok) //Si no e... |
global.MediaPlayer = {
NoError: 0, ResourceError: 1, FormatError: 2, NetworkError: 4, AccessDenied: 8, ServiceMissing: 16,
StoppedState: 0, PlayingState: 1, PausedState: 2,
NoMedia: 0, Loading: 1, Loaded: 2, Buffering: 4, Stalled: 8, EndOfMedia: 16, InvalidMedia: 32, UnknownStatus: 64
};
global.VideoOutput = {
... |
/*
* Bill Messages
*
* This contains all the text for the FirstName component.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.components.PaymentForm.PaymentContent.Bill';
export default defineMessages({
label: {
id: `${scope}.label`,
defaultMessage: 'Bill',
},
validation:... |
describe('UserService', function() {
var User;
var spys;
beforeEach(function() {
spys = {};
module('sagffl');
inject(function(_User_ ) {
User = _User_;
});
spys.User = {
setUser: sinon.spy(User, 'setUser')
};
});
it('sets isLogged to false on load', function() {
expe... |
/*
* Some internal jQuery extensions.
*/
var jQD = require('jquery-detached');
var $ext;
exports.getJQuery = function() {
if (!$ext) {
initJQueryExt();
}
return $ext;
};
/*
* Clear the $ext instance if the window changes. Primarily for unit testing.
*/
var windowHandle = require('window-handl... |
import React from 'react';
import { Link } from 'react-router-dom';
const Users = ({ users }) => {
if (!users) return null; // users가 유효하지 않다면 아무것도 보여주지 않음
return (
<div>
<ul>
{users.map(user => (
<li key={user.id}>
<Link to={`/users/${user.id}`}>{user.username}</Link>
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isBindingDependencyNode(node) {
return (node.type === "value" ||
node.type === "factory" ||
node.type === "constructor");
}
exports.isBindingDependencyNode = isBindingDependencyNode;
function getDependencyNodeIdent... |
// @flow
import { connect } from 'react-redux'
import XPubModal from '../components/modals/XPubModal'
import type { Dispatch, State } from '../types/reduxTypes.js'
const mapStateToProps = (state: State) => ({
visibilityBoolean: state.ui.scenes.walletList.viewXPubWalletModalVisible,
xPubSyntax: state.ui.scenes.wa... |
"use strict";var e=require("path"),t=process.cwd(),r=require(e.join(t,"settings")),i=require("speedt-utils").utils,n=require("underscore"),u=require("emag.db").mysql,a=require("emag.db").redis;!function(){exports.findByType=function(e,t){u.query("SELECT a.* FROM s_cfg a WHERE a.type_=? ORDER BY a.title ASC",[e],t)}}(),... |
define(["dojo/_base/lang"], function(lang){
var eq = function(/*Number*/ a, /*Number*/ b){
// summary:
// compare two FP numbers for equality
return Math.abs(a - b) <= 1e-6 * (Math.abs(a) + Math.abs(b)); // Boolean
};
var common = lang.getObject("dojox.charting.scaler.common", true);
var testedModules =... |
ej.addCulture("gu", { name: "gu", englishName: "Gujarati", nativeName: "ગુજરાતી", language: "gu", numberFormat: { groupSizes: [3, 2], percent: { groupSizes: [3, 2] }, currency: { pattern: ["$ -n", "$ n"], groupSizes: [3, 2], symbol: "₹" } }, calendars: { standard: { "/": "-", firstDay: 1, days: { names: ["રવિવાર", "સોમ... |
import "@polymer/app-layout/app-header-layout/app-header-layout";
import "@polymer/app-layout/app-header/app-header";
import "@polymer/app-layout/app-toolbar/app-toolbar";
import "@polymer/paper-listbox/paper-listbox";
import "@polymer/paper-card/paper-card";
import "@polymer/paper-checkbox/paper-checkbox";
import "@po... |
//# sourceMappingURL=main.98e77c59.js.map |
// Copyright (c) 2018, kaspars.zemiitis@gmail.com and contributors
// For license information, please see license.txt
frappe.ui.form.on('Material Requests To Purchase Invoices Manager', {
onload: function(frm) {
//hide Delete and Add Row buttons:
cur_frm.fields_dict['mr_items'].grid.wrapper.find(".grid-add-row, .g... |
var gulp = require('gulp');
var runSequence = require("run-sequence");
var path = require('path');
var typescript = require('gulp-typescript');
var tslint = require('gulp-tslint');
var replace = require('gulp-replace');
var shell = require('gulp-shell');
var sourcemaps = require('gulp-sourcemaps');
var jasmine = requir... |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { action } from '@storybook/addon-actions';
import {
withKnobs,
boolean,
number,
select,
text,
} ... |
import React from "react";
import Layout from "../../components/layout";
import SEO from "../../components/seo";
import styled from "styled-components";
// Components
import LinearBgHeader from "../../atomic/states-llc/linear-bg-header";
import ContentHeader from "../../atomic/states-llc/taxes-header";
import WrapperC... |
/**
* 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-399ca71f.js');
var React = require... |
/**
* 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.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
import React from 'react'
import Link from 'gatsby-link'
import PropTypes from 'prop-types'
import logo from '../../img/logo.svg'
const Navbar = ({ mainNav }) => (
<nav className="navbar is-transparent">
<div className="container">
<div className="navbar-brand">
<Link to="/" className="navbar-item... |
/* eslint-disable complexity */
const { Command } = require('klasa');
const { MessageEmbed } = require('discord.js');
module.exports = class extends Command {
constructor(...args) {
super(...args, {
permissionLevel: 7,
description: language => language.get('COMMAND_GREETINGS_DESCRIPTION'),
runIn: ['text']... |
import {CERT_ACTIONS_TYPES} from './actionTypes'
export const MOCKED_KEY_REGISTRATION_ACTION = {
type: CERT_ACTIONS_TYPES.KEY_REGISTRATION,
stakingKey: '7e38711c7c4104c1c7c8806a81eefde742b7f9d4800d630d5e26f981da',
deposit: '500000',
previousDeregistrationTx: {
txHash: 'c8a6e019befe29d77fe419b33ea0f90081260... |
import { isValidDate } from '../util/date'
export default () => ({
label: 'Trailing Stop',
uiIcon: 'trailing-stop-active',
customHelp: 'Trailing stop orders follow (\'trail\') the market price up (for sell orders) or down (for buy orders) by the specified trailing distance. If the market price moves against the ... |
import React from 'react';
const Web3Context = React.createContext({
account: null,
networkId: null,
loadAccount: () => {},
loadNetworkId: () => {}
});
export default Web3Context; |
import React from 'react';
import { useDispatch } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { DownloadOutlined } from '@ant-design/icons';
import { Button } from 'components/BasicComponents/AntdComponent';
import SearchFilterModal from '../FilterModal';
import { toggleModal } from '../..... |
import React from "react";
import { shallow, mount } from "enzyme";
import CustomEditor from "./CustomEditor";
import ValidationError from "components/ValidationError";
describe("Custom Editor", () => {
let props;
beforeEach(() => {
props = {
total: {
id: "1",
custom: 5,
},
e... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
const axios = require('axios')
const Discord = require("discord.js")
const { MessageEmbed } = require('discord.js');
module.exports = async (message, args) => {
const filter = "anime%20dab"
const test = await axios("https://g.tenor.com/v1/random?q=" + filter + "&key=21LZCVTMTC7I&limit=1")
const filter2 = await t... |
/**
* @license
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
//# sourceMappingURL=ojnbox.js.map |
// COPYRIGHT © 2020 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... |
const methods = require('./methods')
/**
* Returns the respective git command depending on the
* parser function name
*/
module.exports = function (fn) {
if (typeof fn !== 'function' || fn.name.length <= 0) return undefined
if (methods[fn.name]) {
return methods[fn.name]
} else {
return undefined
}... |
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')
const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
app.prepare().then(() => {
createServer((req, ... |
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 25.4.5.3
description: >
Throws a TypeError if capabilities executor already called with non-undefined values.
info: |
Promise.prototype.then ( onFulfilled , onRejected )
... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
'use strict';
const Base = require('sdk-base');
const ByteType = require('./byte_type');
const CharType = require('./char_type');
const VoidType = require('./void_type');
const LongType = require('./long_type');
const FloatType = require('./float_type');
const ClassType = require('./class_type');
const ShortType = req... |
function getConfigCompoment () { return 'WBConfigCompoment' }
function getStandardAttributes () {
return [
{
id: '#prodCountry',
name: 'Страна производства',
required: true,
dictionary: false
},
{
id: '#supplierCode',
name: 'Артикул поставщика',
required: true,
... |
/**
* Copyright (c) 2015-present, Zippy Technologies
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import safeParseInt from './safeParseInt';
import assign from 'object-assign';
import injectNode from './injectNode';
/**
* Create... |
#!mojo mojo:js_content_handler
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
define("main", [
"mojo/services/public/js/application",
"services/js/test/pingpong_service.mojom",
], function(applicat... |
//---------------------------------------------------------------------
// project.project Model
//---------------------------------------------------------------------
// Copyright (C) 2007-2020 The NOC Project
// See LICENSE for details
//---------------------------------------------------------------------
console.d... |
/** @type {import('semantic-release').Options} */
/* eslint-disable no-template-curly-in-string */
module.exports = {
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules: [
{ type: 'docs', release: 'patch' },
{ type: 'refactor', rele... |
(function () {
var importcss = (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
var global$2 = tinymce.util.Tools.resolve('tinymce.EditorManager');
var global$3 = tinymce.util.Tools.resolve('ti... |
/*
Copyright 2020-2021 Lowdefy, 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 to in wri... |
const helpers = {
compact(array) {
return array.filter(Boolean);
}
};
module.exports = helpers; |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
if (module.hot) {
module.hot.accept('./components/App', () => {
const ... |
Math.pow(K,2)-4*p*B;0>r&&(r=0);p=(Math.sqrt(r)-K)/(2*p);if(!h&&g>=y||h&&g<=y)p=2*-B/I;else if(!h&&g+p>y||h&&g-p<y)x=h?Math.round(p+(g-p-y)):Math.round(p-(g+p-y)),r=x/G,B=2*(-B-(K-r/2)*x)/I,Infinity!=B&&(p=x+B)}B=v-p/G;K=!1;!h&&g+p>y||h&&g-p<y?(B=I/2,A.push(z-v,z+v,z+B,z+B,z-B,z-B),h?(x=p+(g-p-y),g<y&&(x=0),q.push(g,g,g... |
/**
* @license Copyright 2021 The Lighthouse 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 required by applica... |
import React, { Component } from 'react';
import ProjectsList from '../../components/ProjectsList';
import PublicProjectsList from '../../components/PublicProjectsList'
class Projects extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="projects">
<... |
macDetailCallback("e05a9fa00000/28",[{"d":"2018-11-15","t":"add","s":"ieee-mam.csv","a":"No.2 Xingang Road, Zhangwan Town, Jiaocheng District Ningde Fujian CN 352000","c":"CN","o":"Contemporary Amperex Technology Co., Limited"}]); |
var CommentBox = React.createClass({displayName: 'CommentBox',
render: function() {
return (
React.createElement('div', {className: "commentBox"},
"Hello, world! zhang jing feng"
)
);
}
});
ReactDOM.render(
React.createElement(CommentBox, null),
document.getElementById('content1')
); |
const sayHi = (name)=>{console.log(`Hello ${name} how are you?`)}
module.exports = sayHi; |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//--------------------------------... |
import generateChart from '../generator-benchmark';
generateChart(
'replace-all-rows-chart-container',
{
react: 165.2,
angular: 179.3,
vue: 161.8,
},
); |
Grailbird.data.tweets_2013_11 =
[ {
"source" : "\u003Ca href=\"http:\/\/twitter.com\/download\/android\" rel=\"nofollow\"\u003ETwitter for Android\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ ],
"media" : [ {
"expanded_url" : "http:\/\/twitter.com\/mhawksey\/status\/406840990461595648\/photo\... |
const path = require('path')
module.exports = {
entry: './src/game.ts',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.ts$/,
include: path.resolve(__dirname, 'src'),
loader: 'ts-loader'
},
{
t... |
"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... |
class Plane {
/**
* @param {!Point} center
* @param {!Vector} normal
*/
constructor(center, normal) {
this.center = center;
this.normal = normal.unit();
}
/**
* @param {!Point} pt
* @param {!number} epsilon
* @returns {!boolean}
*/
containsPoint(pt... |
export const gitMerge = {"viewBox":"0 0 12 16","children":[{"name":"path","attribs":{"fill-rule":"evenodd","d":"M10 7c-.73 0-1.38.41-1.73 1.02V8C7.22 7.98 6 7.64 5.14 6.98c-.75-.58-1.5-1.61-1.89-2.44A1.993 1.993 0 002 .99C.89.99 0 1.89 0 3a2 2 0 001 1.72v6.56c-.59.35-1 .99-1 1.72 0 1.11.89 2 2 2a1.993 1.993 0 001-3.72V... |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'city',
component: () => import('@/views/city/City.vue')
}
]
}) |
import React from "react";
import "./Button.css";
function Button(props) {
const classes = "button " + props.className;
return <button onClick={props.onClick} className={classes}>{props.children}</button>;
}
export default Button; |
function cargarListado(){
var data = sessionStorage.getItem('token');
$('#listado').DataTable({
processing: true,
serverSide: true,
searching: true,
destroy: true,
language: {
url: routeBase+'/DataTables/DataTable_Spanish.json'
},
ajax: {
... |
function getTestData() {
return (
{
"columns": [
"value",
"title",
"donut",
"titleFontColor",
"min",
"max",
"label",
"humanFriendly",
"formatNumber",
"decimals",
"noGradient",
"symbol",
"levelColors",
"customSectors",
"minGaugeWidth",
"maxGaugeWidth",
... |
/**
* @fileoverview Do not allow single letter variable names
* @author Seiji Naganuma
*/
"use strict";
const path = require("path");
const { RuleTester } = require("eslint");
const noSingleLetterVariableRule = require(".");
//------------------------------------------------------------------------------
// Requi... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var Grimace = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
};
return (React.createElement(StyledIconBase, tslib_1.__assign({ iconAttrs: at... |
// import Ember from 'ember';
// import layout from '../templates/components/v-select';
// export default Ember.Component.extend({
// layout
// });
import Ember from 'ember';
import ClassPrefix from '../mixins/class-prefix';
import InputBased from '../mixins/v-input-based';
import TooltipEnabled from '../mixins/v-t... |
({ a: 1, b: 2, }) |
/* Import faunaDB sdk */
const process = require('process')
const { Client, query } = require('faunadb')
const client = new Client({
secret: process.env.FAUNADB_SERVER_SECRET,
})
const handler = async () => {
console.log('Function `read-all` invoked')
try {
const response = await client.query(query.Pagina... |
import React, { useEffect, useState } from 'react';
import styles from './Canvas.module.scss';
import { fabric } from 'fabric';
import Tools from '../Tools/Tools';
import ApiService from '../../Services/ApiService';
import UserList from '../UserList/UserList';
import Loader from '../Loader/Loader';
const MAX_SIZE = pr... |
/**
* @Description:
* @author 冷暖自知
* @date 2020/1/10 14:19
*/
import {Paging} from "../utils/paging";
class Search {
static search(q) {
return new Paging({
url: `search?q=${q}`
})
}
}
export {
Search
} |
const TicTacToe = require("../lib/tictactoe")
let handler = async (m, { conn, usedPrefix, command, text }) => {
conn.game = conn.game ? conn.game : {}
if (/leave|exit|keluar/i.test(command)) {
delete conn.game[Object.values(conn.game).find(room => room.state === 'WAITING').id]
throw '_Berhasil ... |
var require = {
baseUrl: '../src',
paths: {
'spec': '../test/workspace/jasmine-config/spec',
'jquery': '../test/lib/jquery',
'sinon': '../test/lib/sinon',
'jasmine': '../test/lib/jasmine-1.3.1/jasmine',
'jasmine-html': '../test/lib/jasmine-1.3.1/jasmine-html',
'jasmine-jquery': '../test/l... |
(window.webpackJsonp = window.webpackJsonp || []).push([
[40],
{
'4Cm8': function (t, e, s) {
'use strict';
s.d(e, 'a', function () {
return v;
});
var i = s('q1tI'),
r = s('TSYQ'),
o = s('cvc5'),
n = s('Iivm'),
l = s('//lZ'),
a = s('9uLv')... |
module.exports = function check(str, bracketsConfig) {
let copyStr = str;
let stringFromMass = bracketsConfig.map((item) => item.join(''));
for (let i of str) {
for (let i = 0; i < stringFromMass.length; i++) {
copyStr = copyStr.replace(stringFromMass[i], '');
}
}
return ... |
import React from 'react'
import { Feed } from 'semantic-ui-react'
const FeedExampleImageLabel = () => (
<Feed>
<Feed.Event>
<Feed.Label>
<img src='/assets/images/avatar/small/elliot.jpg' />
</Feed.Label>
<Feed.Content>
You added Elliot Fu to the group <a>Coworkers</a>
</F... |
import React from 'react';
import PropTypes from 'prop-types';
import { debounce } from 'utils/perf';
import {
StyledOrderItem,
Name,
StyledSliderContainer,
RangeContainer,
Number,
StyledInput,
RangeProgressBar,
RangeValue,
} from './StyledComponents';
const getPercent = ({ min, max }, value) => (value... |
import { createSlice } from '@reduxjs/toolkit';
import { createSelector } from 'reselect'
const UISlice = createSlice({
name: 'UI',
initialState: {
header: 'show',
notification: '',
dispatchNotification: false,
redirectToPage: '',
},
reducers: {
displayHeader: (UI,... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, {
children: [/*#__PURE__*/_jsx("path", {
d: "M4.414 7.8394l1.4213-... |
import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, View, Text, Platform } from 'react-native';
import { COLOR_BUTTON_PRIMARY, COLOR_TEXT } from '../../constants/colors';
import Touch from '../../utils/touch';
const colors = {
backgroundPrimary: COLOR_BUTTON_PRIMARY,
backgroundSecond... |
import * as yup from 'yup'
import { validateDTO } from './index'
import { diseaseSchema } from './disease'
const programSchema = yup.object().shape({
name: yup.string().min(1).max(256).required(),
workspaceId: yup.string(),
description: yup.string().min(1).max(4096),
disease: diseaseSchema,
})
export const va... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different ... |
/* eslint-disable react/jsx-filename-extension */
import React, { Component } from 'react';
import {
FlatList,
ScrollView,
Text,
View,
} from 'react-native';
import {
Card,
ListItem,
} from 'react-native-elements';
import { connect } from 'react-redux';
import * as Animatable from 'react-native-animatable';... |
window.unlockMPlugin.init(); |
$(document).ready(function(){
$("#dtext").hide()
$("#design-img").click(function(){
$("#dtext").show(1000);
$("#design-img").hide(1000);
$("#dtext").click(function(){
$("#design-img").show(1000)
$("#dtext").hide(1000)
})
})
})
$(document).ready(funct... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('review', 'Unit | Serializer | review', {
// Specify the other units that are required for this test.
needs: ['serializer:review']
});
// Replace this with your real tests.
test('it serializes records', function(assert) {
let record = this.subje... |
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint no-console: "off" */
/* eslint global-require: "off" */
/* eslint no-param-reassign: ["error", { "props": false }] */
const fsNative = require('fs');
const path = require('path');
const glob = require('glob');
const getOutput... |
$("document").ready(function () {
chrome.storage.sync.get("girdiSayisi", function (items) {
var count = parseInt(items.girdiSayisi);
var page = ($(".pager").data("currentpage") ? $(".pager").data("currentpage") : 1),
once = (parseInt($(".showall").text()) ? parseInt($(".showall").tex... |
/* eslint camelcase: 0 */
const { assign } = require('lodash')
const proxyquire = require('proxyquire')
const mockEvent = require('../../../../test/unit/data/events/event-data.json')
const archivedDocumentsBaseUrl = 'http://base'
const {
transformEventToListItem,
transformEventResponseToViewRecord,
transformEv... |
import { ItemsService } from './items.service';
const ServicesModule = angular
.module('app.services', [
])
.service('ItemsService', ItemsService)
.name;
export default ServicesModule; |
const uuid = require('uuid')
const stream = require('stream')
const writeFile = (attachment, file) =>
new Promise((resolve, reject) => {
const { name, base64, contentType } = attachment
const bufferStream = new stream.PassThrough()
bufferStream.end(Buffer.from(base64, 'base64'))
bufferStream
... |
const _import = require('./import_' + process.env.NODE_ENV)
const Index = _import('Index')
export default [{
path: '/',
name: 'Index',
component: Index
}] |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.inlineKeyboard = exports.keyboard = exports.forceReply = exports.removeKeyboard = exports.button = exports.Markup = void 0;
const check_1 = require("./core/helpers/check");
class Markup {
constructor(reply_markup) {
this.re... |
import { createWrappedMLIcon } from './icon-wrappers'
import AntVerticalAlignTopOutlined from '@ant-design/icons/VerticalAlignTopOutlined'
const VerticalAlignTopOutlined = createWrappedMLIcon(AntVerticalAlignTopOutlined)
export default VerticalAlignTopOutlined |
/**
* Copyright 2018 Google LLC
*
* 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 ... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... |
const http = require('http')
const port = 8080
const server = http.createServer((req,res)=>{
console.log("Request made");
const data = {'Lead Actors': {'Bull': ['Dr. Jason Bull'], 'GBBO': ['Prue Leith', 'Paul Hollywood'], 'White Collar': ['Special Agent Peter Burke', 'Neal Caffrey']}}
const jsonContent = ... |
import Ember from "ember";
export default function destroyApp(application) {
Ember.run(application, "destroy");
if (window.server) {
window.server.shutdown();
}
} |
const mongoose = require('mongoose');
const ContactSchema = mongoose.Schema({
user: {
type: mongoose.Schema.Types.ObjectId,
ref: 'users'
},
name: {
type: String,
required: true
},
email: {
type: String,
required: true,
},
phone: {
type: String,
},
type: {
type: String,... |
KISSY.Editor.add("draft",function(b){var a=KISSY.Editor;b.addPlugin("draft",function(){var c=this;a.use("draft/support",function(){a.storeReady(function(){var d=new a.Draft(b);c.destroy=function(){d.destroy()}})})})},{attach:false}); |
"use strict";
module.exports = (sequelize, DataTypes) => {
const Article = sequelize.define(
"Article",
{
title: {
allowNull: false,
type: DataTypes.STRING,
validate: {
notEmpty: true
}
},
content: {
allowNull: false,
type: DataTypes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.