text stringlengths 2 1.05M |
|---|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbarswitch', 'th', {
toolbarswitch: 'Switch toolbar'
});
|
export default (a, b) => {
var mismatch = 0
for (var i = 0; i < a.length || i < b.length; ++i) {
mismatch |= (a.charCodeAt(i) ^ b.charCodeAt(i))
if (mismatch > 0) {
return false
}
}
return true
}
|
(function(){
var controller = function($timeout, $log, $scope, $route, socketService, uploadService, productService, messageService) {
var vm = this;
$scope.products = [];
vm.activate = function() {
messageService.subscribe('event', 'clientController', function(channel, message)... |
import Avro from '@avro/types';
import { encode, decode, Encoder, Decoder, isNativeAccelerationEnabled } from 'cbor-x';
import { Buffer } from 'buffer';
if (!isNativeAccelerationEnabled)
console.warn('cbor-x native acceleration not enabled, verify that install finished properly');
// Config //
const TIMES_TO_RUN = ... |
import { ItemSheetFFG } from "./item-sheet-ffg.js";
export class ItemSheetFFGV2 extends ItemSheetFFG {
constructor(...args) {
super(...args);
}
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["starwarsffg", "sheet", "item", "v2"],
tabs: [... |
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/center/center"],{
/***/ 24:
/*!*************************************************************************************************!*\
!*** /Users/gmy/Documents/HBuilderProjects/First_H5/main.js?{"page":"pages%2Fcenter%2Fcenter"} ***!
\************... |
import { routerRedux } from 'dva/router';
import moment from 'moment';
import {
reqWaitList, selectList, pushList,reqSearch
} from '../services/dealAccountList';
import {
message, notification,
} from 'antd';
import Item from 'antd/lib/list/Item';
export default {
namespace: 'dealAccountList',
state: {
sta... |
module.exports = function (app, gestorBD, logger) {
// ---- PETICIONES GET ----
/*
Busca todas las ofertas disponibles (ofertas en las que el usuario logueado no es el propietario).
Si hay algún error al recuperar las ofertas -> Error del servidor 500 (Se ha producido un error al
recuperar las... |
// Test copyDatabase command with various combinations of authed/unauthed source and dest.
ports = allocatePorts( 2 );
var baseName = "jstests_clone_copyauth";
// test copyDatabase from an auth enabled source, with an unauthed dest.
var source = startMongod( "--auth", "--port", ports[ 0 ], "--dbpath", "/data/db/" + ... |
class RequestError extends Error {
constructor(response) {
super(response.message);
this.name = 'RequestError';
this.success = false;
this.message = response.message;
this.code = response.code;
this.errorObj = response.errorObj;
this.debug = response.debug;
Error.captureStackTrace(th... |
(function(root) {
root.AV = root.AV || {};
var AV = root.AV;
var _ = AV._;
/**
* @class
*
* <p>A AV.User object is a local representation of a user persisted to the
* AV cloud. This class is a subclass of a AV.Object, and retains the
* same functionality of a AV.Object, but also extends it with ... |
/**
*
* @since 6.5.0
*/
Ext.define('Ext.data.virtual.Range', {
extend: 'Ext.data.Range',
isVirtualRange: true,
/**
* @cfg {String/Function} callback
* The callback to call when new records in this range become available.
*/
callback: null,
/**
* @cfg {Number} leadingBufferZ... |
export { default, initialize } from 'tsygan/initializers/tsygan';
|
import axios from 'axios';
export function postRequest(url, body) {
return new Promise((resolve, reject) => {
axios({
url,
method: 'POST',
data: body,
timeout: 20000,
})
.then((result) => {
resolve(result);
})
.catch((error) => {
reject(error);
});
});
}
... |
import * as actions from './my-insights-actions';
export default {
[actions.fetchInsightsInit]: state => ({ ...state, loading: true }),
[actions.fetchInsightsReady]: (state, { payload }) => ({
...state,
loading: false,
loaded: true,
data: payload
}),
[actions.fetchInsightsFail]: state => ({
... |
import React, { PureComponent as Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Icon, Input, AutoComplete, Tooltip } from 'antd';
import _ from 'underscore';
import './Search.scss';
import { withRouter } from 'react-router';
import axios from 'axios';
impor... |
const expect = require('chai').expect;
describe('mock test 1', () => {
it('unit test 1', () => {
expect(true).to.be.true;
});
});
describe('mock test 2', () => {
it('unit test 2', () => {
expect(true).to.be.true;
});
});
describe('mock test 3', () => {
it('unit test 3', () => {
expect(true).t... |
define(["require","exports","tslib","react","classnames","spectrum/file_icon","spectrum/icon_content","spectrum/popover","modules/clean/em_string","modules/clean/react/breadcrumb/constants","modules/clean/react/breadcrumb/utils","modules/clean/react/css","modules/clean/react/flag","modules/clean/react/sprite","modules/... |
import React, { useEffect, useRef } from "react";
import * as echarts from "echarts";
import PropTypes from "prop-types";
import "./Chart.less";
export const Chart = (propArgs) => {
const { className, color, data, grid, barBack, ...props } = propArgs;
let instance = null;
const chartRef = useRef();
let barSer... |
/*
* 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.
*/
'... |
/**
* Get service name from URL
*
* @param {string} string URL, i.e. https://twitter.com/alienlebarge/status/1414847250283601921
* @returns {string} Service name, i.e. Twitter
*/
module.exports = string => {
if (string) {
string = String(string);
const {hostname} = new URL(string);
hostname.replace(... |
module.exports = {
localize: 'by Alexander Dadukin',
uniq: 'lab',
hello: 'world'
};
|
var ghpages = require('gh-pages')
var path = require('path')
ghpages.publish(path.join(__dirname, 'dist'))
|
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['et']={"editor":"Rikkalik tekstiredaktor","editorPanel":"Rikkaliku tekstiredaktori paneel","common":{"editorHelp":"Abi saamiseks vajuta ALT 0","browseServer":"Se... |
exports.definition = {
config: {
columns: {
IDProducto: 'TEXT PRIMARY KEY',
IDCateg: 'TEXT',
nombre: 'TEXT',
descripcion: 'TEXT',
img: 'TEXT',
precio: 'TEXT',
urlDetalle: 'TEXT'
},
defaults: {
},
adapter: {
type: 'sql',
collection_name: ... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class testReact extends Component {
render() {
return (
<View style={styles.container}>
<Text style={... |
const yaml = require("js-yaml");
const { DateTime } = require("luxon");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const htmlmin = require("html-minifier");
module.exports = function (eleventyConfig) {
// Disable automatic use of your .gitignore
eleventyConfig.setUseGitIgnore(false);... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory);
} else {
// Browser globals.
root.VanillaMasker = factory();
}
}(this, function() {
var DIGIT = "9", ALPHA = "A";
var VanillaMasker = function(opts) {
opt... |
var app = require('express');
var server = require('http').Server(app);
var io = require('socket.io')(server);
var redis = require('redis');
const axios = require('axios');
var defaultRoom = null;
var users = [];
var connectedUsers = {
};
async function userDis... |
import _define_property from "@swc/helpers/src/_define_property.mjs";
// @target: es6
function f() {
var t;
var u;
var _obj;
var v = (_obj = {}, _define_property(_obj, t, 0), _define_property(_obj, u, 1), _obj);
}
|
//index.js
//获取应用实例
var util = require('../../../utils/util.js');
const app = getApp();
Page({
data: {
src: ["http://b321.photo.store.qq.com/psb?/V12aMNdl3T0WQr/xx0cFBUS2DhEua6rPR9oznnxEVcT4KUXJejpcLiwKkc!/c/dEEBAAAAAAAA&bo=OAQ4BDgEOAQRADc!&rf=mood_app&t=5"],
srcBig: ["https://wx1.sinaimg.cn/large... |
// 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... |
/**
* Coinsecure Api Documentation
* To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guidelines</a>.<br>Programm... |
import TagItemMini from './TagItemMini'
/**
* 标签组
* @param tags
* @param currentTag
* @returns {JSX.Element}
* @constructor
*/
const TagGroups = ({ tags, currentTag }) => {
if (!tags) return <></>
return (
<div id='tags-group' className='dark:border-gray-600 space-y-2'>
<div className='font-light t... |
import template from './app.html';
let appComponent = () => {
return {
template,
restrict: 'E'
};
};
export default appComponent;
|
import { shell } from 'electron';
import React, { useRef, useState } from 'react';
import uuid from 'uuid/v4';
import styled from 'styled-components';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import R from 'ramda';
import { Tooltip } from 'components';
import { colors } from 'theme';
import { ... |
var _editor = div();
var template = `
<div class=input></div>
<textarea class=insert></textarea>
<div class=flager tabindex=0><div></div></div>
`;
/**
* 加粗
*/
function bold() {
}
/**
* 斜体
*/
function italic() {
}
/**
* 居中
*/
var browserClass = /(QQ|Safari|CriOS|Chrome)/i.exec(navigator.userAgent);
if (browserClas... |
/// 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
/// ... |
module.exports = {
contact: "rgb(160, 148, 237)",
workOrder: "rgb(80, 227, 194)",
post: "rgb(101, 202, 228)",
carousel: "rgb(107, 189, 110)",
resourceSkill: "rgb(69, 193, 115)",
goals: "rgb(86, 170, 223)",
investmentAccount: "rgb(75, 192, 118)",
default: "rgb(129, 153, 175)",
caseMilestone: "... |
var searchData=
[
['setobjectcountfrommultisetenv',['setObjectCountFromMultisetEnv',['../lulu_8c.html#a234d7f1fb9ab0d414fd3031cea69066b',1,'setObjectCountFromMultisetEnv(multiset_env_t *multiset, uint8_t obj, uint8_t newCount): lulu.c'],['../lulu_8h.html#a234d7f1fb9ab0d414fd3031cea69066b',1,'setObjectCountFromMu... |
import React, { Component } from 'react';
import {
createUser,
createCurrentUser,
createMessage,
createTransaction,
createListing,
createTxTransition,
createReview,
} from '../../util/test-data';
import {
TRANSITION_ACCEPT,
TRANSITION_COMPLETE,
TRANSITION_DECLINE,
TRANSITION_EXPIRE_REVIEW_PERIOD,
... |
const axios = require('axios').default
const moment = require('moment')
module.exports = function (workingDays, apiKey, locale) {
this.workingDays = workingDays
this.API_KEY = apiKey
this.locale = locale
this.workingDaysIn = async function (startMoment, endMoment) {
var festiveDays = await this.festiveDay... |
const mysql = require('mysql');
const dbConfig = require('../db/db');
var async = require("async");
const pool = mysql.createPool({
host: dbConfig.mysql.host,
user: dbConfig.mysql.user,
password: dbConfig.mysql.password,
database: dbConfig.mysql.database,
port: dbConfig.mysql.port,
dateStrings: true, //强制日期类型(... |
module.exports = (ctx) => {
const { storage } = ctx;
/* eslint-disable prefer-arrow-callback */
ctx.body = {
list: storage.getFileList().map((item) => {
return { name: item.name, value: item.data };
}),
};
};
|
import React from 'react'
import { useStaticQuery, graphql } from 'gatsby';
import { documentToReactComponents } from "@contentful/rich-text-react-renderer";
import Nav from '../components/nav/nav';
import Footer from '../components/footer';
import Section from '../components/section';
import SEO from '../components/se... |
project_id = $('.project_id').attr('data-project-id');
formURL = apiUrl+"campaigns/"+project_id+"/weeklyphasing"
var colors = masterColors;
var fontOptions = styleOptions.phasing.fontSchema.smaller;
var chartWidth = 660;
var chartHeight = 440;
var spacingRight = 44;
var legendLineSpacing = 7;
var hig... |
/*
* Copyright 2013 Samsung Information Systems America, 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 requ... |
/* Autogenerated with Kurento Idl */
/*
* (C) Copyright 2013-2015 Kurento (http://kurento.org/)
*
* 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/li... |
const MongoClient = require('mongodb').MongoClient
module.exports = async ({
database = '',
connectionString = '',
collection = '',
filter = null,
update = null,
upsert = false
}) => {
if (!database) return { err: new Error('Missing `database` parameter.') }
if (!connectionString) {
return { err: ... |
angular.module("addressBookApp")
.directive("contactTile", function() {
'use strict';
return {
restrict: "E",
replace: true,
templateUrl: "templates/directives/contactTile.html",
scope: {
contact: "="
}
};
});
|
TEST('MIXIN', (check) => {
let Movable = CLASS({
init : (inner, self, name) => {
//REQUIRED: name
let move = self.move = (meters) => {
console.log(name + ' moved ' + meters + 'm.');
};
}
});
let Talkable = CLASS({
init : (inner, self, name) => {
//REQUIRED: name
let talk = ... |
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undefined ? null : right)
* }
*/
/**
* @description https://leetcode.com/problems/insert-into-a-binary-sear... |
import React from 'react'
export default function Footer() {
return (
<footer className="footer py-3">
<div className="container">
<div className="row">
<div className="col-10 mx-auto col-md-6 text-yellow text-center text-capitalize">
<h3>all rights ... |
const path = require('path');
const routes = (handler) => [
{
method: 'POST',
path: '/upload/pictures',
handler: handler.postUploadImageHandler,
options: {
payload: {
allow: 'multipart/form-data',
multipart: true,
output: 'stream',
maxBytes: 500000, // 500KB, def... |
webpackHotUpdate(0,{
/***/ 252:
/***/ function(module, exports, __webpack_require__) {
eval("/* WEBPACK VAR INJECTION */(function(module) {/* REACT HOT LOADER */ if (true) { (function () { var ReactHotAPI = __webpack_require__(78), RootInstanceProvider = __webpack_require__(86), ReactMount = __webpack_require__(88),... |
// Problem 1:
// Put the start of your program in a main function.
// Ask the user to enter a number from 1 through 4.
// Print the corresponding Month that matches each number.
// (Hint: 1 is January).
// let month_number = prompt("Enter month number 1 - 4");
// switch (month_number)
// {
// case "1":
// ... |
import { insert, id } from "../methods/dom.js"
export class button {
constructor(title, id) {
this.title = title;
this.id = id;
this.btnid = id + "-btn"
}
static add(title, $id) {
let $new = new button(title, $id);
insert($new.element, id("btn-container"));
id($new.btnid).addEventL... |
import React from "react";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import { boolean, number } from "@storybook/addon-knobs/react";
import { withInfo } from "@storybook/addon-info";
import TextLink from "@hig/text-link";
import { Notifications } from "hig-react";
... |
var express = require('express');
var router = express.Router();
var address_controller = require('../controllers/address')
router.get('/listall', address_controller.listall)
router.post('/listByUser', address_controller.listByUser)
router.post('/addAddress', address_controller.addAddress)
router.delete('/deleteOne... |
// fading in portfolio section on scroll
$(document).ready(function(){
var $fadein = $(".fadein");
$fadein.waypoint(function(direction){
if (direction == 'down'){
$fadein.addClass('fadein-waypoint');
} else {
$fadein.removeClass('fadein-waypoint');
}
}, {offset: '50%'});
});
// ju... |
import React from 'react';
import TextInputCSSModules from 'rrc/TextInputCSSModules';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputCSSModules
htmlId="example-optional"
label="First Name"
name="firstname"... |
import ViewerLayout from './ViewerLayout';
/*
- Define layout for the viewer in mode configuration.
- Pass in the viewport types that can populate the viewer.
- Init layout based on the displaySets and the objects.
*/
export default function ({
servicesManager,
extensionManager,
commandsManager,
hotkeysManager... |
/**
* Hero component
*/
import React from "react"
import PropTypes from "prop-types"
import Image from "../components/image"
import { css } from '@emotion/core';
import { colors, weights, pxToRem, mediaQueries, visuallyHidden, btn, rgba } from '../styles';
function PortPiece({ projectName, projectBlurb, projectUrl... |
export const SERVER_URL = "https://shscse545group3.herokuapp.com";
|
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/* Router Modules */
import componentsRouter from './modules/components'
import chartsRouter from './modules/charts'
import tableRouter from './modules/table'
import nestedRouter from './modules/nested'
... |
// Direct asset picker
var rich = rich || {};
rich.AssetPicker = function(){
};
rich.AssetPicker.prototype = {
showFinder: function(dom_id, options){
// open a popup
var params = {};
params.CKEditor = 'picker'; // this is not CKEditor
params.default_style = options.default_style;
params.allowed_styles ... |
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import {
chainPropTypes,
integerPropType,
elementTypeAcceptingRef,
refType,
HTMLElementType,
} from '@mui/utils';
import styled from '../styles/st... |
export const theme = {
baseSpacingUnit: 24,
maxWidth: 1000,
colors: { primary: '#5c1f46', grey: '#616161' },
breakpoints: {
sm: 400,
m: 600,
l: 1024,
xl: 1280,
},
};
|
export default {
namespaced: true,
state: {
personal: [],
},
getters: {
getPersonal: state => {
return state.personal
},
},
mutations: {
SET_PERSONAL(state, personal) {
state.personal = personal
},
},
actions: {
... |
import {Correction, correctionTypes, registerWordRule, createMaskRule, normalizeCase} from "../imports.js";
registerWordRule(createMaskRule({
matches: ["л(а)мберт*"],
replacement: "е",
type: correctionTypes.UNCERTAIN, // Can be French as well as English
description: 'Відповідно до § 134 правопису, англійське «... |
import React from "react"
import styled from "styled-components"
import { Link } from "gatsby"
const ButtonWrapper = styled(props => <Link {...props} />)`
border-radius: 20px;
background-color: #10a472;
border: 0 none;
color: #fff;
font-weight: 600;
padding: 8px 16px;
letter-spacing: 0.1em;
font-size: 12px;
text-trans... |
var React = require('react');
var rB = require('react-bootstrap');
var cE = React.createElement;
var AppStore = require('../stores/AppStore');
var AppActions = require('../actions/AppActions');
var Authorization = require('./Authorization');
var Send = require('./Send');
var Receive = require('./Receive');
var DeviceIn... |
/**
* Copyright 2019, SumUp 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
*
* Unless required by applicable law or agreed to in wri... |
webpackJsonp([9,137],{"Gm/a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("mvHQ"),a=n.n(i),l=n("rN1C"),o=n("fksm"),r=n("l8D1"),s=n("MdFA"),c=n("Q5rI"),d=[{label:"创建时间顺序",value:"project.createTime",type:"ASC"},{label:"创建时间倒序",value:"project.createTime",type:"DESC"},{label:"单价顺序",... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var AbstractPlugin = require("../AbstractPlugin");
var RequireIncludeDependency = require("./RequireIncludeDependency");
module.exports = AbstractPlugin.create({
"call require.include": function(expr) {
if(expr.argum... |
/**
* baserCMS : Based Website Development Project <http://basercms.net>
* Copyright (c) baserCMS Users Community <http://basercms.net/community/>
*
* @copyright Copyright (c) baserCMS Users Community
* @link http://basercms.net baserCMS Project
* @since baserCMS v 2.0.0
* @license http://basercms.net/l... |
(function(){
var currentScript = document.currentScript;
if (!currentScript || !currentScript.parentNode) {
var scripts = document.getElementsByTagName("script");
for (var i = 0, n = scripts.length; i < n; i++) {
var s = scripts[i];
if (!s.processed && -1 != s.src.indexOf('meteo_widget.js')) {
... |
import React, { useMemo } from "react"
import PropTypes from "prop-types"
import { Form } from "react-bootstrap"
import { accountDerivationPath, Purpose } from "@swan-bitcoin/xpub-lib"
const AddressDerivationInput = ({
maxAccounts = 22,
accountNumber,
network,
purpose,
onPurposeChange: purposeChangeHandler,
... |
const leaderboard = [
...document.querySelectorAll("#currentLeaderboard table tbody td a")
].map(a => a.href.split("/").pop());
if (leaderboard.length > 0) {
appendDownloadLink(leaderboard, {
element: document.querySelector("#currentLeaderboard h1"),
filename: "leaderboard.csv"
});
}
const myList = [...... |
import{av as e,a$ as r,aP as a}from"./index.10276049.js";var o,d;(d=o||(o={})).GetJobGrades="/flow/org/jobGrade/getJobGrades",d.GetJobGradeTree="/flow/org/jobGrade/getJobGradeTree",d.SaveOrUpdate="/flow/org/jobGrade/saveOrUpdate",d.BatchSaveJobGradeTypeAndJobGrade="/flow/org/jobGrade/batchSaveJobGradeTypeAndJobGrade",d... |
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
const path = require('path')
const { createFilePath } = require('gatsby-source-filesystem')
exports.onCreateNode = ({
node,
getNode,
boundActionCreators: { createNodeField },
}) => {
if (node.internal.type... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MzBadgeModule } from './badge/badge.module';
import { MzButtonModule } from './butto... |
/**
* A global namespace for 'transitionDuration' string.
* @type {string}
*/
const transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';
export default transitionDuration;
|
const _ = require("lodash");
const toml = require("toml");
const yaml = require("js-yaml");
const {use_plugins} = require("../util");
const {
markdown_code_escape,
markdown_code_metadata,
markdown_frontmatter,
source_export
} = require("../plugins");
/**
* Returns the standardized settings for confi... |
window.onload = function() {
var hw = document.getElementById('hw');
hw.addEventListener('click', function(){
alert('Hello world');
})
}
|
require('./bootstrap');
window.Vue = require('vue');
import BootstrapVue from 'bootstrap-vue/dist/bootstrap-vue.esm';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
Vue.use(BootstrapVue);
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
import Vue fro... |
import { MongoClient } from "mongodb";
import { MONGODB_URL, ACTIVITIES_COLLECTION, REPORTS_COLLECTION } from "../config";
let dbInstance;
export async function getMongoClient() {
if (!dbInstance) {
dbInstance = await MongoClient.connect(MONGODB_URL);
}
return dbInstance;
}
export async function... |
module.exports = function(hljs) {
var KEYWORDS =
// Normal keywords.
'abstract as base bool break byte case catch char checked const continue decimal dynamic ' +
'default delegate do double else enum event explicit extern false finally fixed float ' +
'for foreach goto if implicit in int interface int... |
const Promise = require('bluebird')
const SIGNALE = require('signale')
const chalk = require('chalk')
const getKnex = require(`${global.SERVER_ROOT}/services/knex`)
module.exports = () => {
return new Promise(async (resolve, reject) => {
try {
let knex = await getKnex()
await knex.raw(`CREATE SCHEMA ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
const express = require('express');
const expressSession = require('express-session')({ secret: 'tonks', resave: true, saveUninitialized: true });
const parser = require('body-parser');
const parserEncoded = require('body-parser').urlencoded({ extended: true });
const cookieParser = require('cookie-parser')();
const mo... |
import React, { useState, useEffect } from 'react'
export default function useOnScreen(ref) {
const [isIntersecting, setIntersecting] = useState(false)
let observer
useEffect(() => {
observer = new IntersectionObserver(
([entry]) => setIntersecting(entry.isIntersecting)
)... |
import { flexBlockquote } from './flexBlockquote';
import { flexHero } from './flexHero';
import { flexWysiwygContent } from './flexWysiwygContent';
import pageOptions from './fragmentPageOptions';
import seo from './fragmentSeo';
export function queryContent(preview) {
const query = /* GraphQL */ `
query GetCon... |
const AWS = require('aws-sdk');
const debug = require('debug')('elasticsearch');
const pump = require('pump');
const { Connection } = require('@elastic/elasticsearch');
const INVALID_PATH_REGEX = /[^\u0021-\u00ff]/
const {
ConnectionError,
RequestAbortedError,
TimeoutError
} = require('@elastic/elasticsearch/lib... |
const path = require('path');
const fs = require('./utils/fs');
const objectHash = require('./utils/objectHash');
const md5 = require('./utils/md5');
const isURL = require('./utils/is-url');
const sanitizeFilename = require('sanitize-filename');
let ASSET_ID = 1;
/**
* An Asset represents a file in the dependency tr... |
const { ObjectId } = require('mongodb');
const chance = require('chance')();
const MongoHelper = require('../helpers/mongo-helper');
const UpdateCustomerRepository = require('./update-customer-repository');
const MissingParamError = require('../../utils/errors/missing-param-error');
let customerModel;
const newId = O... |
const ReturnEditRoutePage = {
template: `
<el-container>
<el-page-header @back="handleGoBack" content="编辑退货">
</el-page-header>
<el-header>
<el-menu :default-active="activeIndex" mode="horizontal" @select="handleSelect">
<el-menu-item v-for="menuItem in menuItems" :key="menuItem.id" :index="... |
import { gql } from '@apollo/client'
export const GET_ME = gql`
{
me {
_id
username
email
bookCount
savedBooks {
bookId
authors
description
title
image
... |
var countBits = function(n) {
return parseInt(n, 10).toString(2).split('').sort((a, b) => b - a).lastIndexOf('1') + 1;
};
|
'use strict';
angular.module('ssa')
.factory('Facebook', function ($resource) {
return $resource('/api/connect/facebook', {}, {
'fetchProfile': { url: 'api/connect/facebook/profile', method: 'GET'},
'getFriends': { url: 'api/connect/facebook/friends', method: 'GET', isArray: true},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.