text stringlengths 2 1.04M |
|---|
/*!
* UEditor
* version: ueditor
* build: Wed Aug 10 2016 11:06:03 GMT+0800 (CST)
*/
|
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const assert = require('assert');
const URL = '/tabindex-negative-after-inside-click';
describe('Tab navigati... |
import { module, test } from "qunit";
import { Model, hasMany, belongsTo } from "ember-cli-mirage";
import Server from "ember-cli-mirage/server";
import DefaultIdentityManager from "ember-cli-mirage/identity-manager";
const CustomIdentityManager = class {
constructor() {
this.wasCalled = false;
}
fetch() {
... |
// Debugging test
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.text === "selection") {
// To get the selected text from DOM
sendResponse(window.getSelection());
}
}); |
"use strict";
module.exports = {
up: async (queryInterface) => {
return queryInterface.bulkInsert("Faqs", [{
id: 10000,
categoryId: 10001,
question: "question1",
answer: "answer1",
createdAt: new Date(),
updatedAt: new Date(),
},
{
id: 10001,
... |
export default {
TOGGLE: 'sideBar/TOGGLE',
OPEN: 'sideBar/OPEN',
CLOSE: 'sideBar/CLOSE',
ACTIVE: 'sideBar/ACTIVE'
} |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
function _createForOfIteratorHelper(o) { if (typeof Symbol... |
import {
login,
logout,
getUserInfo,
getUserById,
getPermissions,
getMessage,
getContentByMsgId,
hasRead,
removeReaded,
restoreTrash,
getUnreadCount,
getUsersList,
abortRequest,
saveUserData,
deleteUser
} from '@/api/user'
import { setToken, getToken } from '@/libs/util'
export default {
... |
(function(){
var RightBandWindow = Class("RightBandWindow");
var IShellCustomizerPlacer = Interface("IShellCustomizerPlacer"),
GRect = Class("GRect");
function MobileFirstCustomizer() {
BaseObject.apply(this, arguments);
}
MobileFirstCustomizer.Inherit(BaseObject, "MobileFirstCust... |
import React from 'react'
import { Icon } from './Icon'
import { rw, bhw } from './fragments'
export const FilledContactMail = /*#__PURE__*/ props => <Icon {...props}>
<path d={"M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5" + rw + bhw + "m8-6h-8V6h8z"}/>
</Icon> |
var express = require('express');
var router = express.Router();
// Require controller modules
const platform_controller = require('../controllers/platformController')
const profile_controller = require('../controllers/profileController');
router.get('/platforms/:platform_number/:format?', platform_controller.platfor... |
// Copyright 2010 The Closure Library 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 requ... |
/*
* Copyright (c) 2014, 2015 by Delphix. All rights reserved.
*/
'use strict';
load('lib/report-utils.js');
var RESULT_COL = 'result_last50k_jobs';
var dependencies = [ 'Job' ];
var limit = dx.defineTunableInt({
_id : 'last50k-jobs.limit',
defaultValue : 50000,
description : 'Maximum number of jobs ... |
import * as swcHelpers from "@swc/helpers";
// @target: es2015
function cloneAgain(_param) {
var a = _param.a, clone = swcHelpers.objectWithoutProperties(_param, [
"a"
]);
}
suddenly(function(_param) {
var a = _param.x, rest = swcHelpers.objectWithoutProperties(_param, [
"x"
]);
retu... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = exports.DateTimePickerHeader = void 0;
var _react = _interopRequireDefault(require(... |
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
env: { es6: true },
ignorePatterns: ['node_modules', 'build', 'coverage'],
plugins: ['import', 'eslint-comments', 'functional'],
... |
module.exports = {
clientID: '331097077110-5kduv74likju63dq4itceaif7edv7b62.apps.googleusercontent.com',
clientSecret: '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',
refreshToken: '1//04F-2hQjgCwmqCgYIARAAGAQSNwF-L9Irl2zywzaF3mev7nvpJ4z9Cq1dl56Aw5VIPc199ga56QIA3N83MtBiivKjg3t4UP6DS2k',
usr: ''
} |
odoo.define('insurance_claim.mywidget', function(require) {
"use strict";
// var ajax = require('web.ajax');
var core = require('web.core');
// var Model = require('web.Model');
// var Widget = require('web.Widget');
// var common = require('web.form_common');
// var formats = require('we... |
import React from "react"
import {Link} from "react-router-dom"
import defaultImg from "../images/room-1.jpeg"
import PropTypes from "prop-types"
export default function Room({room}){
const {name, slug, images, price}=room;
return (
<article className="room">
<div className="img-container">
... |
//# sourceMappingURL=admin.js.map |
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
const resources = {
en: {
translation: require('./locales/en-US.json')
}
};
i18n.use(LanguageDetector).init({
resources,
lng: 'en',
fallbackLng: 'en',
interpolation: {
escapeValue: false
},
});
export c... |
"use strict";
define( [
'underscore',
'backbone',
'marionette',
'view/scenic/pages/base/TableView',
'view/scenic/pages/base/table/SourcesView',
'view/scenic/pages/control/ControlDestinationsView',
'view/scenic/pages/control/ControlMenusView',
'view/scenic/pages/control/ControlSourceView... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import {Line} from 'react-chartjs-2';
const useStyles = makeStyles((theme) => ({
sectionRoot: {
margin: theme.spacing(2, 0, 2),
},
sectionTitle: {
margin: theme.spacing... |
export const newIssueItemFixture = {
id: "PNI_lADOBYMIeM0lfM4ADfm9",
type: "ISSUE",
fields: {
title: "Enforce setting project via github actions",
status: null,
relevantToUsers: null,
suggestedChangelog: null,
},
content: {
isIssue: true,
isPullRequest: false,
id: "I_kwDOGNkQys49Ii... |
db.masterdata.insertMany([
{
"_id": "contract-1",
"name": "Contract 1",
"description": "Test-Contract Nr. 1",
"parent": null,
"children": [
"booking-1-1",
"booking-1-2"
]
},
{
"_id": "booking-1-1",
"name": "Booking 1-1",... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.proto... |
const script = require('./../script')
const assert = require('assert')
assert.strictEqual(script.sum1(1, 2), 3)
assert.strictEqual(script.sum2(1, 2), 3) |
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var del = require('del');
var sass = require("node-sass");
var sassUtils = require("node-sass-utils")(sass);
var globs = {
// TODO: Need to find a fix for adobe analytics
"scripts": [
'javascripts/drupal-namespace.js',
'jav... |
var SMB2Message = require('../tools/smb2-message');
var message = require('../tools/message');
var constants = require('../structures/constants');
var desiredAccess =
constants.DELETE |
constants.FILE_APPEND_DATA |
constants.FILE_DELETE_CHILD |
constants.FILE_READ_ATTRIBUTES |
constants.FILE_READ_DATA |
co... |
import React, { Component, Fragment } from "react";
import "./ReviewsCard.css";
class ReviewsCard extends Component {
renderReviews() {
return this.props.reviews.map(review => {
return (
<Fragment>
<div
className="review__card"
key={review._id}
data-sta... |
import ReactDOM from 'react-dom';
import React from 'react';
import { Router, browserHistory } from 'react-router'
import routes from './routes.js'
ReactDOM.render((
<Router history={browserHistory}>
{ routes }
</Router>
), document.getElementById('main')); |
"use strict";
/**
* @module opcua.miscellaneous
*/
const util = require("util");
const assert = require("node-opcua-assert").assert;
const EventEmitter = require("events").EventEmitter;
const PacketAssembler = require("node-opcua-packet-assembler").PacketAssembler;
const BinaryStream = require("node-opcua-binary-s... |
function packageJson(context) {
let { name, description } = context
return {
'name' : name,
'version' : '1.0.0',
'description' : description,
'main' : 'index.js',
'scripts' : {
'test': 'echo "Error: no test specified" && exit 1',
},
'keywords' ... |
export default Ember.HTMLBars.template((function() {
return {
meta: {
"fragmentReason": {
"name": "missing-wrapper",
"problems": [
"wrong-type"
]
},
"revision": "Ember@2.3.0",
"loc": {
"source": null,
"start": {
"line": 1,
... |
// GENERATED FILE
export default [{"locale":"saq","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"},"fields":{"year":{"displayName":"Lari","relative":{"0":"this year","1":"next year","-1":"last year"},"relativeTime":{"future":{"other":"+{0} y"},"past":{"other":"-{0} y"}}},"month":{"d... |
/*
This file is made up of a combination of original code, along with code extracted from the following repositories:
https://github.com/mmoskal/dapjs/tree/a32f11f54e9e76a9c61896ddd425c1cb1a29c143
https://github.com/microsoft/pxt-microbit
The pxt-microbit license is included below.
*/
/*
PXT - Prog... |
var searchData=
[
['m',['M',['../structarm__fir__decimate__instance__q15.html#aad9320284218b3aa378527ea518cf093',1,'arm_fir_decimate_instance_q15::M()'],['../structarm__fir__decimate__instance__q31.html#ad3d6936c36303b30dd38f1eddf248ae5',1,'arm_fir_decimate_instance_q31::M()'],['../structarm__fir__decimate__instance_... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
(function() {
"use strict";
var x509_options = {
sslMode: "requireSSL",
sslPEMKeyFile: "jstests/libs/server.pem",
sslCAFile: "jstests/libs/ca.pem",
sslClusterFile: "jstests/libs/cluster_cert.pem",
sslAllowInvalidHostnames: "",
clusterAuthMode: "x509"
};
... |
import { BORDER_NONE } from '../../constants/borders';
export const roundNameRow = roundProfile => [
[
{
text: {
text: roundProfile.roundName,
fontSize: roundProfile.bracketProfile?.fontSize || 9,
},
border: roundProfile.roundName ? [0, 0, 0, 1] : BORDER_NONE,
alignment: r... |
const find = require('find-process');
find('name', 'nginx', true)
.then(function (list) {
console.log('there are %s nginx process(es)', list.length);
}); |
import "react-native-gesture-handler";
import React, { useEffect, useState } from "react";
import { firebase } from "./src/firebase/config";
import { NavigationContainer, DefaultTheme } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { SafeAreaView, Text, View, Bu... |
"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... |
const KnownOriginDigitalAsset = artifacts.require('KnownOriginDigitalAsset');
const HDWalletProvider = require('truffle-hdwallet-provider');
const infuraApikey = 'nbCbdzC6IG9CF6hmvAVQ';
const mnemonic = process.env.KNOWN_ORIGIN_MNEMONIC;
module.exports = function (deployer, network, accounts) {
let _developerAccou... |
var searchData=
[
['user_20manual',['User Manual',['../index.html',1,'']]],
['uint',['uint',['../structboost_1_1hana_1_1integral__constant.html#a5071dd223185718f85da1db48fb95d80',1,'boost::hana::integral_constant']]],
['uint_5fc',['uint_c',['../structboost_1_1hana_1_1integral__constant.html#a79f45e3c2411db1d36127... |
import React, { Component } from "react";
import {
View,
Text,
StyleSheet,
SafeAreaView,
Platform,
StatusBar,
Image,
Switch
} from "react-native";
import { RFValue } from "react-native-responsive-fontsize";
import firebase from "firebase";
export default class Profile extends Component... |
require('./faq/questions');
require('./faq/categories');
require('./faq/item'); |
/* eslint-disable prettier/prettier */
import AllOrdersPage from "views/Orders/AllOrders/AllOrders";
import OrderedPage from "views/Orders/Ordered/Ordered";
import Reviewed from "views/Orders/Reviewed/Reviewed";
import PendingRefund from "views/Orders/PendingRefund/PendingRefund";
import ReviewDeleted from "views/Order... |
module.exports = [
{
entry: {
"ui3kitify-node-hero": "./app/components/ui3kitify-node-hero.vue",
"widget-theme": "./app/components/widget-theme.vue",
"icon-node": "./app/components/icon-node.vue",
"theme-configure": "./app/views/theme-configure.js",
},
output: {
filename: "./... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SuccessResponse = exports.MasterModel = void 0;
class SuccessResponse {
constructor() {
this.keyModified = new Map();
}
/**
* The method to get the code
* @returns An instance of Choice<string>
*/
... |
export { default as Cards } from "./Cards/Cards";
export { default as Chart } from "./Chart/Chart";
export { default as CountryPicker } from "./CountryPicker/CountryPicker" |
/* @generated */
// prettier-ignore
if (Intl.DateTimeFormat && typeof Intl.DateTimeFormat.__addLocaleData === 'function') {
)
} |
import React from 'react';
import { withRouter } from 'react-router-dom';
import CalendarHeatmap from 'react-calendar-heatmap';
import 'react-calendar-heatmap/dist/styles.css';
const Calendar = ({ logs, history }) => {
const handleClick = event => {
if (event) {
const { habit_id, id } = ev... |
const DEFAULTS = require('./jest.config.defaults');
module.exports = {
projects: [
{ ...DEFAULTS, preset: 'jest-expo/ios' },
{ ...DEFAULTS, preset: 'jest-expo/android' },
{ ...DEFAULTS, preset: 'jest-expo/web' },
],
}; |
import assert from "assert";
import reverse from "../basics/reverse.js";
describe("reverse.js in js/exercise/basics ", function () {
const qna = [
["cat", "tac"],
["alphabet", "tebahpla"],
["niknok", "konkin"],
["javascript", "tpircsavaj"],
];
for (let index = 0; index < qna.length; index++) {
... |
const not = true;
export const map = new Map([
[`主站`, `Home`],
[`画友`, `Photos`],
[`音频`, `Audio`],
[`游戏中心`, `Game`],
[`会员购`, `Shop`],
[`下载APP`, `App`],
[`会员`, [
`User`,
{
selector: `.ep-list-wrapper .ep-item .badge.pink`,
text: `VIP`,
},
]],
[`大会员`, `VIP`],
[`小会员`, `Reverse VI... |
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const pkg = require('../package.json')
exports.assetsPath = function (_path) {
const assetsSubDirectory = process.env.NODE_ENV === 'production'
? config.build.assetsSubDi... |
'use strict';
const clone = require('lodash/clone');
const find = require('lodash/find');
const map = require('lodash/map');
const toUpper = require('lodash/toUpper');
const common = require('@lykmapipo/common');
const env = require('@lykmapipo/env');
const camelCase = require('lodash/camelCase');
const forEach = requ... |
const jwt = require('jsonwebtoken');
const User = require('../models/user');
const requireAuth = (req,res,next)=>{
const token = req.cookies.jwt;
if(token){
jwt.verify(token,process.env.secretString, async (err,decodedToken) =>{
if(err){
res.redirect('/auth/login');
... |
import React from 'react'
import './App.css';
import Home from '../src/pages/Home'
import "./style/blog-css.css"
import {Switch, Route} from 'react-router-dom';
function App() {
return (
<>
<Switch>
<Route exact path='/' component={() => <Home/>} />
<Route path='/' component={() => <h1>P... |
import React from 'react';
import PropTypes from 'prop-types';
import RememberMe from './LoginCardRememberMe';
import { FormGroup } from '../../../../index';
import ForgotPassword from './LoginCardForgotPassword';
const LoginCardSettings = ({ rememberMe, forgotPassword, className, ...props }) =>
(rememberMe || forgo... |
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './components/App'
import { createStore,applyMiddleware } from 'redux'
import {Provider} from 'react-redux'
import reducers from './reducers/combineReducer'
import reduxThunk from 'redux-thunk'
const store = createStore(
... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("language","cs",{button:"Nastavit jazyk",remove:"Odstranit jazyk"}); |
/// <reference path="typings/three/three.d.ts"/>
THREE = require('three');
var View = require('threejs-managed-view').View;
var CheckerRoom = require('threejs-checkerroom');
var RetractableSphere = require('threejs-geometry-retractable-sphere');
var checkerRoom = new CheckerRoom();
var exportCubeMap = require('./')... |
module.exports = (gulp, config) => {
gulp.task('watch:scss', () => {
gulp.watch(
...config.scss.all,
gulp.series('lint:stylelint', 'scss'<%- ds.injectCss %>),
);
});
gulp.task('watch:ts', () => {
gulp.watch(
...config.ts.source,
gulp.series('lint:eslint', 'ts'<%- ds.injectJs %... |
import React from 'react'
import { mount, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import sinon from 'sinon'
import Demo from '../src/react'
configure({ adapter: new Adapter() })
describe('UI test #react', () => {
it('should have title', () => {
const wrapper = mount(<Demo/>)
... |
import { Header, Text } from './style.css'
const root = document.getElementById('root')
root.innerHTML = `
<h1 class='${Header({ size: 'large' })}'>Hello, world!</h1>
<p class='${Text({
italic: true
})}'>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mag... |
import React, { useState, useEffect, useRef, useCallback } from 'react'
import { guidGenerator } from '@/utils/tools'
import { useEventListener, useDebouncedCallback } from '@/hooks'
import TickerElement from './ticker-element'
/**
* 歌单页面顶部header与mini播放栏歌名的横向无限循环滚动效果,类似marquee,但又不同
* 参考了react-ticker库的实现,但是它没有提供文字当前滚... |
/*!
* Platform.js
* Copyright 2014-2018 Benjamin Tan
* Copyright 2011-2013 John-David Dalton
* Available under MIT license
*/
(function () {
"use strict";
/** Used to determine if values are of the language type `Object`. */
var objectTypes = {
function: true,
object: true,
};
/** Used as a ref... |
var searchData=
[
['sfx_5fchorus_5fparam',['SFX_CHORUS_PARAM',['../namespace_l_i_d_l.html#a1ec80fcd944bc6f6ff4548c0b2c8d6e1',1,'LIDL']]],
['sfx_5fcompressor_5fparam',['SFX_COMPRESSOR_PARAM',['../namespace_l_i_d_l.html#a4f2a33951eec8b581a3e9b71193848e1',1,'LIDL']]],
['sfx_5fdist_5fparam',['SFX_DIST_PARAM',['../nam... |
import React from "react"
import propTypes from "prop-types"
import AniLink from "gatsby-plugin-transition-link/AniLink"
import getThemeColor from "../../utils/getThemeColor"
import * as S from "./styled"
const Pagination = ({
isFirst,
isLast,
currentPage,
numPages,
prevPage,
nextPage,
}) => (
<S.Pagina... |
/**
* @file Terminus Constants
* @license Apache Version 2
* Constants representing API actions
*/
module.exports = Object.freeze({
CONNECT: 'connect',
GET_SCHEMA: 'get_schema',
UPDATE_SCHEMA: 'update_schema',
UPDATE_DOCUMENT: 'update_document',
CLASS_FRAME: 'class_frame',
WOQL_SELECT: 'woql_select',
TER... |
/**
* Kendo UI v2020.2.617 (http://www.telerik.com/kendo-ui)
* Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
import { makeStyles } from '@material-ui/core/styles';
export default makeStyles((theme) => ({
toolbar: theme.mixins.toolbar,
content: {
flexGrow: 1,
// backgroundColor: theme.palette.background.default,
padding: theme.spacing(3),
position: 'relative',
},
root: {
flexGrow: 1,
},
input: ... |
define(["esri/map",
"esri/arcgis/Portal",
"esri/arcgis/utils",
"storymaps/utils/Helper",
"esri/urlUtils",
// Core
"storymaps/maptour/core/Config",
"storymaps/maptour/core/TourData",
"storymaps/maptour/core/WebApplicationData",
"storymaps/maptour/core/TourPointAttributes",
"storymaps/maptour/core/Map... |
import "./UrlList.css";
//Import components
import Url from './Url';
import ListButton from './ListButton';
const UrlList = ({ count, page, setPage, filteredUrls, setUrls, urls }) => {
// const clickCloseHandler = () => {
// if (page < 1) {
// return;
// }
// setPage(page - 1)
... |
"use strict";
var assert = require("power-assert");
var sinon = require("sinon");
var xhr = require("../src/sequence/promise-foreach-xhr");
describe("promise-reduce-chain", function () {
beforeEach(function () {
var lock = true;
sinon.stub(xhr.request, "comment", function () {
return new... |
import React, { Component } from 'react';
import { EditorState, ContentState } from 'draft-js';
import Editor from '@draft-js-plugins/editor';
import createLiveMarkdownPlugin from 'draft-js-live-markdown-plugin';
import Prism from 'prismjs';
import createPrismPlugin from 'draft-js-prism-plugin';
const initialContentSt... |
function sumOfNumbers(num1, num2) {
let number1 = Number(num1);
let number2 = Number(num2);
let result = 0;
for (let i = number1; i <= number2; i++) {
result += Number(i);
}
console.log(result)
}
sumOfNumbers('1','5') |
const httpStatus = require('http-status');
const { User } = require('../models');
const ApiError = require('../utils/ApiError');
/**
* Create a user
* @param {Object} userBody
* @returns {Promise<User>}
*/
const createUser = async (userBody) => {
if (await User.isEmailTaken(userBody.email)) {
throw new ApiEr... |
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool... |
/*
* Copyright (c) 2015-2025 Phoinex Scholars Co. http://dpq.co.ir
*
* 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 u... |
/**
* @license
* Copyright Google Inc. 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 * as tslib_1 from "tslib";
import { Directive, ElementRef, Host, Input, Optional, Renderer2, forwardRef, ɵloos... |
/*! For license information please see main.5184dd40.chunk.js.LICENSE.txt */
//# sourceMappingURL=main.5184dd40.chunk.js.map |
// 获取全局应用程序实例对象
// const app = getApp()
// 创建页面实例对象
Page({
/**
* 页面的初始数据
*/
data: {
title: 'navbar',
curIndex:0,
category:[
{
name:'推荐',
id:1,
},
{
name:'护肤品',
id:2,
},
... |
/*
IOS/安卓: 快手 普通版
邀请下载链接:https://kicdjpmlo.sx3i65zvgw3g8k.com/fission/offkwai/landpagex?code=2235402609&platform=qrcode&fid=2764597391&subBiz=INVITE_CODE&kpn=KUAISHOU&shareToken=Y3rDbpqo1
邀请二维码(直接扫描打不开的话,下载后用快手APP扫一扫):https://raw.githubusercontent.com/leafxcy/JavaScript/main/ks.png
脚本目前会做签到和翻倍,开宝箱和翻倍,看广告任务,逛街任务,直播任务
... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-b-1.js
* @description Object.seal - the [[Configurable]] attribute of own data property of 'O' is set from true to false and other attributes of the property are unaltered
*/
function testcase() {
... |
/**
* This is an example of how you should add custom elements instead of manipulating the DOM directly
*/
const Plugin = require('betterdiscord/plugin');
const PluginApi = require('betterdiscord/plugin-api');
const Vendor = require('betterdiscord/vendor');
// Destructure some apis
const { Logger, ReactComponents, ... |
"axis.position": "uniform vec4 axisStep;\nuniform vec4 axisPosition;\n\nvec4 getAxisPosition(vec4 xyzw, inout vec4 stpq) {\n return axisStep * xyzw.x + axisPosition;\n}\n",
"cartesian.position": "uniform mat4 viewMatrix;\n\nvec4 getCartesianPosition(vec4 position, inout vec4 stpq) {\n return viewMatrix * vec4(positio... |
// @flow
import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import Spinner from 'app/components/shared/Spinner';
import AuditLogEventSection from './eventSection';
import AuditLogSubjectSection from './subjectSection';
import AuditLogActorSection from './actorSect... |
const rob = require('./02')
test('1', () => {
expect(rob([1, 2, 3, 1])).toBe(4)
})
test('2', () => {
expect(rob([2, 7, 9, 3, 1])).toBe(12)
})
test('3', () => {
expect(rob([2])).toBe(2)
})
test('4', () => {
expect(rob([2, 4])).toBe(4)
}) |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (v... |
/**
发布 release 版本
1. TODO: 检测分支是否干净
2. TODO: 询问分支并切换分支,拉取最新代码
3. 询问版本并确认
4. 升级版本并添加 tag
5. 发布到远程
*/
const execa = require('execa')
const semver = require('semver')
const inquirer = require('inquirer')
const minimist = require('minimist')
const cliOptions = minimist(process.argv)
const release = async () => {
/... |
export const SAMPLE_DATA = [
{
id: 'bitcoin',
symbol: 'btc',
name: 'Bitcoin',
image:
'https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579',
current_price: 33519,
market_cap: 628584328045,
market_cap_rank: 1,
fully_dilut... |
export const SYSADMIN = 'SYSADMIN'; |
const { authSecret } = require('../.env');
const passport = require('passport');
const passportJwt = require('passport-jwt');
const { Strategy, ExtractJwt } = passportJwt;
module.exports = app => {
const params = {
secretOrKey: authSecret,
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken()
};
cons... |
describe('String class additional methods implementation', function() {
'use strict';
// English words that do not contain vowels
// http://wordslisted.com/words/no-vowels/
// --- hasVowels method test ---
describe('hasVowels method tests', function() {
it('should return a boolean value', function() {
... |
import { useGlobal } from '@/lib/global'
import { loadUserThemeFromCookies, saveTheme } from '@/lib/theme'
const DarkModeButton = () => {
const { changeTheme } = useGlobal()
const userTheme = loadUserThemeFromCookies()
// 用户手动设置主题
const handleChangeDarkMode = () => {
const newTheme = (userTheme === 'light... |
/*
* JavaScript Canvas to Blob 2.0.5
* https://github.com/blueimp/JavaScript-Canvas-to-Blob
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*
* Based on stackoverflow user Stoive's code snippet:
* http://stackoverflow.com... |
function main(args){
const regex = /\w+\d*[\_]*/g;
let m;
let obj = {};
while ((m = regex.exec(args[0])) !== null) {
let word = m[0];
if(obj[word] == undefined){
obj[word] = 1;
}
else{
obj[word] += 1;
}
}
console.log(JSON.stringify(obj));
}
main(["Far too slow, you're far ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.