text stringlengths 3 1.05M |
|---|
import PropTypes from 'prop-types';
const typography = PropTypes.shape({
weight: PropTypes.string,
size: PropTypes.string
});
export default typography;
|
CKEDITOR.plugins.setLang("a11yhelp","uk",{title:"Спеціальні Інструкції",contents:"Довідка. Натисніть ESC і вона зникне.",legend:[{name:"Основне",items:[{name:"Панель Редактора",legend:"Натисніть ${toolbarFocus} для переходу до панелі інструментів. Для переміщення між групами панелі інструментів використовуйте TAB і SHI... |
/*!
* Spinners 3.0.0
* (c) 2010-2012 Nick Stakenburg - http://www.nickstakenburg.com
*
* Spinners is freely distributable under the terms of an MIT-style license.
*
* GitHub: http://github.com/staaky/spinners
*/
;var Spinners={version:"3.0.0"};(function(a){function b(a){return a*Math.PI/180}function c(a){this.el... |
/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Layer.js
* @requires OpenLayers/Projecti... |
import unittest
from katas.kyu_5.all_that_is_open_must_be_closed import is_balanced
class IsBalancedTestCase(unittest.TestCase):
def test_true_1(self):
self.assertTrue(is_balanced('(Sensei says yes!)', '()'))
def test_true_2(self):
self.assertTrue(is_balanced('(Sensei [says] yes!)', '()[]'))... |
import os
import pandas as pd
from flask import Flask, render_template, request, redirect
from inference import get_prediction
from commons import format_class_name
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
# Solution création de l'HTML à la main
def upload_file_v1():
if request.method == ... |
import React, { useState, useEffect, useRef } from 'react';
import { Form, CodeInput, SelectInput } from '@maif/react-forms'
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css'
import basic from './schema/basic.json';
import formArray from './schema/formArray';
import constrainedBasic from './schema/con... |
function asmFunc(global, env, buffer) {
var HEAP8 = new global.Int8Array(buffer);
var HEAP16 = new global.Int16Array(buffer);
var HEAP32 = new global.Int32Array(buffer);
var HEAPU8 = new global.Uint8Array(buffer);
var HEAPU16 = new global.Uint16Array(buffer);
var HEAPU32 = new global.Uint32Array(buffer);
var HE... |
/*
* licy.js
*
* Copyright (c) 2012-2015 Maximilian Antoni <mail@maxantoni.de>
*
* @license MIT
*/
/*global describe, it, beforeEach, afterEach*/
'use strict';
var assert = require('assert');
var licy = require('..');
describe('licy', function () {
it('is instanceof Licy', function () {
assert(licy in... |
const path = require('path');
const _package = require('../package.json');
const ExtractTextPlugin = require('mini-css-extract-plugin');
const resolve = _path => path.resolve(__dirname, '..', _path);
const assetsPath = function (_path) {
return path.posix.join('static', _path);
};
const cssLoaders = function (optio... |
import codecs
import pandas as pd
import numpy as np
class ConverterBase(object):
"""
A base class for generating processed datasets.
"""
def __init__(self):
self.col = None
self.col_to_use = None
def getData(self, filepath):
# 変換するファイルを開く
with codecs.open(filepa... |
import numpy as np
from numpy import abs, cos, exp, mean, pi, prod, sin, sqrt, sum
from autotune import TuningProblem
from autotune.space import *
import os
import sys
import time
import json
import math
import os
import sys
import ConfigSpace as CS
import ConfigSpace.hyperparameters as CSH
from skopt.space import Rea... |
from tensorflow.keras.preprocessing.text import Tokenizer
sentences = [
'I love my dog',
'I love my cat',
'You love my dog!'
]
tokenizer = Tokenizer(num_words=100)
tokenizer.fit_on_texts(sentences)
word_index = tokenizer.word_index
print(word_index)
|
try {
require('dotenv').config();
} catch(err){
console.log(`${err.message}`);
console.log('continue');
}
const launchServer = require('./server/launch-server');
const Path = require('path');
let cache;
if (process.env['NODE_ENV'] === 'production') {
cache = 1 * 60 * 60 * 1000; /*1hour cache*/
}
launchServer... |
angular
.module('core')
.factory('dateTimeHelper', function ()
{
var service = {};
service.deserializeIncomingSerializedDate = function (serializedDate) {
if (serializedDate == null || serializedDate == '')
return null; //TODO mesmo?
//TODO undefined, null, '', is string
//TODO if starts with \... |
var util = util || {};
// A cross-browser function to capture a mouse position
function mouseposition (e, dom) {
var mx, my;
//if(e.offsetX) {
// Chrome
// mx = e.offsetX;
// my = e.offsetY;
//} else {
// Firefox, Safari
mx = e.pageX - $(dom).offset().left;
my ... |
import React from 'react';
import { ThemeProvider} from 'emotion-theming'
import { theme } from 'components/theme/theme';
import Global from 'components/base/base';
import styled from '@emotion/styled/macro';
//font awesome import
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } fr... |
import React, { PureComponent } from 'react'
import Spin from 'antd/lib/spin'
import cn from 'classnames'
import styles from './LoadingPage.module.css'
const messages = {
title: 'Your Account is Almost Ready to Rock',
subTitle: 'We’re just finishing up a few things...'
}
export class LoadingPage extends PureCom... |
describe('Restringuntus', function() {
integration(function() {
describe('Restringuntus\'s ability', function() {
beforeEach(function() {
this.setupTest({
player1: {
house: 'dis',
hand: ['restringuntus']
... |
// Just a mock data
export const constantRoutes = [
{
path: '/redirect',
component: 'layout/Layout',
hidden: true,
children: [
{
path: '/redirect/:path*',
component: 'views/redirect/index'
}
]
},
{
path: '/login',
component: 'views/login/index',
hidden:... |
import ImplicitSession from './implicit-session'
const storagePrefix = 'albedo_session_',
implicitSessions = {}
function getStorage() {
return window.sessionStorage
}
/**
* Whether to save the session to the browser internal session storage - allows sharing of session data
* between multiple browser tabs b... |
"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 { Command } = require('reconlx');
module.exports = new Command({
name: 'dbget',
alias: [],
description: 'query data from the database',
usage: 'PREFIX Command: dbget <database>',
permissions: { client: [], user: [] },
cooldowns: { global: 0, user: 0 },
category: 'Owner-Only',
slashCommand: false,... |
import SnakeCase from 'snake-case'
export default{
snakeCaseKeys: function( object){
return Object.keys( object ).reduce( ( acc, key ) => {
acc[ SnakeCase(key) ] = object[key]
return acc
}, {})
},
} |
/**
* This Module adds a metatag description to the document, based on the
* first paragraph of the abstract.
*/
export const name = "core/seo";
export async function run(conf, doc, cb) {
// This is not critical, so let's continue other processing first
cb();
await doc.respecIsReady;
const firstParagraph =... |
import{v as t,w as n,B as r,_ as e,a,b as c,c as s,i as o,s as i,d as u,S as f,C as p,I as l,f as d,J as h,K as $,l as v,L as y,n as m,A as g,N as b,Q as D,M as O,O as w,k as P,r as j,u as x,P as E,y as S,V as C,a7 as R,e as H,t as k,g as B,h as I,j as V,o as N,p as U,D as F,m as A,E as G,G as J}from"./client.b01a3f3f.... |
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.9
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import ... |
import Engine from '../Engine.js'
import Zombie from './Zombie.js'
const defaultColor = '#444'
const intersectionColor = '#fff'
const clickedColor = '#888'
const draw = function({ ctx }) {
ctx.strokeStyle = this.color
ctx.lineWidth = 1
ctx.beginPath()
ctx.moveTo(this.x - 10, this.y)
ctx.lineTo(this.x + 10,... |
import useInput from "../hooks/use-input";
const isNotEmpty = vlaue => vlaue.trim() !=='';
const isEmail = value => value.includes('@');
const BasicForm = (props) => {
const {
value: firstNameValue,
isValid: firstNameIsValid,
hasError: firstNameHasError,
valuechangeHandler: firstNameChangeHandler,
... |
import React, { PureComponent } from "react";
import { withRouter } from "react-router-dom";
//API
import { loginUser, getMe } from "../../api/user";
//Components
import Spinner from "react-md-spinner";
import { Placeholder } from "../molecules/index";
class Callback extends PureComponent {
state = {
loading: tru... |
/* from geojson2mvt - https://github.com/NYCPlanning/labs-geojson2mvt */
var helpers = {
//given a bounding box and zoom level, calculate x and y tile ranges
getTileBounds(bbox, zoom) {
var tileBounds = {
xMin: this.long2tile(bbox[1], zoom),
xMax: this.long2tile(bbox[3], zoom),
yMin: this.lat2... |
var prevPos = window.pageYOffset;
window.onscroll = function () {
var currPos = window.pageYOffset;
if (currPos == prevPos) {
document.getElementById("navbar").style.backgroundColor = "transparent";
}
if (currPos - prevPos > 150) {
document.getElementById("navbar").style.height = "100px"... |
# -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Machine/BoreUD.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Machine/BoreUD
"""
from os import linesep
from sys import getsizeof
fro... |
var v0 = (function (v1, v2, v3){
return (v1.validate(v2, v3)) === (true);
});
(v0.prototype.identity) = (function (){
(this.alphaMultiplier) = (this.redMultiplier) = (this.greenMultiplier) = (this.blueMultiplier) = 1.0;
(this.alphaOffset) = (this.redOffset) = (this.greenOffset) = (this.blueOffset) = 0;
});
(v0.BLUE_MUL... |
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
service: 'SendGrid',
auth: {
user: process.env.SENDGRID_USER,
pass: process.env.SENDGRID_PASSWORD
}
});
/**
* GET /contact
* Contact form page.
*/
exports.getContact = (req, res) => {
res.render('contact', {
... |
import test from 'ava';
import m from '..';
test('query strings starting with a `?`', t => {
t.deepEqual(m.parse('?foo=bar'), {foo: 'bar'});
});
test('query strings starting with a `#`', t => {
t.deepEqual(m.parse('#foo=bar'), {foo: 'bar'});
});
test('query strings starting with a `&`', t => {
t.deepEqual(m.parse... |
/*
Copyright 2019 The Tekton Authors
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 writing, software... |
################################################################################
# Copyright (c) 2009-2020, National Research Foundation (SARAO)
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy
# of the License at
#
# ... |
import React, { PureComponent, Fragment } from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import { connect } from 'dva';
import {
Card,
Radio,
Button,
Menu,
Modal,
Table,
Badge,
} from 'antd';
import { Form } from 'react-formio';
import PageHeaderWrapper from '@/compo... |
import React from 'react'
import PropTypes from 'prop-types'
const style = {
overlay: {
position: 'fixed',
top: 0,
bottom: 0,
right: 0,
left: 0,
background: '#000',
opacity: 0.9
},
spinner: {
position: 'absolute',
top: '50%',
l... |
# ntgbtminer - vsergeev at gmail
# No Thrils GetBlockTemplate Bitcoin Miner
#
# This is mostly a demonstration of the GBT protocol.
# It mines at a measly 150 KHashes/sec on my computer
# but with a whole lot of spirit ;)
#
import urllib2
import base64
import json
import hashlib
import struct
import random
import time... |
const {ipcRenderer} = require('electron')
const configuration = require('../configuration.js');
var closeEl = document.querySelector('.close');
closeEl.addEventListener('click', (e) => {
ipcRenderer.send('close-settings-window');
});
var modifierCheckboxes = document.querySelectorAll('.global-shortcut');
for (va... |
const mysql = require("mysql2");
const util = require("util")
const connection = mysql.createConnection({
host: "localhost",
user:"root",
password:"root",
database:"employee"
});
connection.connect();
connection.query = util.promisify(connection.query);
module.exports = connection; |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
import os
import shlex
import time
import zipfile
from configparser import ConfigParser
from subprocess import check_call, CalledProcessError
from requests import get
from modules import escape, get_pending_items, get_new_items, scp_option
class Subtitler:
def __init__(self):
config = ConfigParser()
... |
'use strict';
/* global expect */
const PreLoadPlugins = require('./register');
describe('Constants', () => {
it('check PreLoadPlugins', () => {
PreLoadPlugins.forEach(item => {
expect(item.id).not.toBeUndefined();
expect(typeof item.id).toEqual('string');
expect(/[\.... |
#!/usr/bin/env node
const path = require('path')
const fs = require('fs-extra')
const { red, blue, green } = require('chalk')
const inquirer = require('inquirer')
const { createNewModule } = require('quickly-template/lib/createTemplate')
const getConfig = require('../lib/get-config')
const attempt = require('../lib/att... |
'use strict';
exports.cmdObj={
use:'arc ecs instane run',
desc:{
zh:'创建一台或多台按量付费或者包年包月ECS实例'
},
options:{
region:{
required:true,
mapping:'regionId',
desc:{
zh:'实例所属的地域ID'
}
},
'image-id':{
mappi... |
import * as actionTypes from '../actions/actionTypes';
const initialState = {
mostViewed: [],
mostViewedLoader: false
}
const storiesReducer = (state = initialState, action) => {
switch(action.type){
case actionTypes.MOST_POPULAR_START:
return {
...state,
... |
/**
* Create a code check from a regex.
*
* @param {RegExp} regex
* @returns {(code: Code) => code is number}
*/
function regexCheck(regex) {
return check
/**
* Check whether a code matches the bound regex.
*
* @param {Code} code Character code
* @returns {code is number} Whether the c... |
/*!
* shorturl
* Copyright(c) 2016-2016 thuutoan91@gmail.com
*/
'use strict';
// load .env file into process.env only if exists
require('dotenv').config({ silent: true });
// register hook before app start
require('./lib/hook');
// app wise event bus
const bus = require('./lib/bus');
// main app
var app = requi... |
angular.module('mangueApp')
.controller('SigninCtrl', function( $scope ,$state, $rootScope, $timeout, $location, $localStorage, ngToast, AuthSrv) {
console.log('Signin ...')
//ngToast.success('Aguarde os dados estão sendo processados.');
$rootScope.showHeader = false;
function successAuth(res) {
... |
const path = require('path')
const fs = require('fs')
const externals = {}
fs.readdirSync('node_modules')
.filter(x => ['.bin'].indexOf(x) === -1)
.forEach((mod) => {
externals[mod] = `commonjs ${mod}`
})
module.exports = {
externals,
entry: './src/index.ts',
target: 'node',
output: {
path: __d... |
'use strict';
module.exports = (err, req, res, next) => {
res.status(500).json({
status: 500,
message: err,
});
}; |
const {CPU} = require('../cpu');
const cpu = new CPU();
test('Simple Test', () => {
cpu.setup();
cpu.singleCycle();
});
test('Test Add', () => {
cpu.setup();
cpu.iMem.setRegister(0, '');
cpu.singleCycle();
}); |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Akram Mutaher and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestProtectionMonitoring(unittest.TestCase):
pass
|
import * as types from '../types';
const getProductsStarted = () => ({
type: types.GET_PRODUCTS_STARTED,
});
const getProductsSuccess = data => ({
type: types.GET_PRODUCTS_SUCCESS,
payload: data,
});
const getProductsFailure = data => ({
type: types.GET_PRODUCTS_FAILURE,
payload: {
error: data,
},
});
... |
class Storage {
constructor(storage) {
this.storage = storage;
}
getFileSize = url => this.storage.refFromURL(url).getMetadata();
fetchVideo = url => this.storage.refFromURL(url).getDownloadURL();
}
export default Storage;
|
var _ = require('lodash');
var path = require("path");
// 设置测试环境
process.env.NODE_ENV = 'test';
var chai = require('chai');
var chaiHttp = require('chai-http');
var app = require(path.join(process.cwd(),"app"));
chai.use(chaiHttp);
var common = require("../common/common.js");
var config = require(path.join(process.cwd... |
#!/usr/bin/python
# Copyright (c) 2016 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.
"""Helper script to update the test error expectations based on actual results.
This is useful for regenerating test expectations afte... |
"use strict";
/**
* Create a controller named 'MainController'. The array argument specifies the controller
* function and what dependencies it has. We specify the '$scope' service so we can have access
* to the angular scope of view template.
*/
cs194hApp.controller('QuestionsController', ['$scope', function($s... |
/**
* This example shows data binding using ternary operators in expressions.
*/
Ext.define('KitchenSink.view.binding.AlgebraTernary', {
extend: 'Ext.panel.Panel',
alias: 'widget.binding-algebra-ternary',
bodyPadding: 10,
shadow: true,
cls: 'demo-solid-background',
viewModel: {
type:... |
/* --------------------------------------------------------
* Author Ngô An Ninh
* Email ninh.uit@gmail.com
* Phone 0978108807
*
* Created: 2018-04-16 10:58:15
*------------------------------------------------------- */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Container,
... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.FiMusic = function FiMusic (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"path","attr":{... |
import React from "react"
import API from "../../utils/API";
import {Link} from "react-router-dom"
import {useState} from "react"
import "./style.css"
function QuestionCreate(props){
console.log(props)
const [questiontext, setQuestionText]= useState("");
const[question, setQuestion]=useState({});
co... |
const path = require('path')
const _ = require('lodash')
const recast = require('recast')
const writeAST = require('../write-ast')
// AST builders
const astBuilders = recast.types.builders
/**
* Create a plugin object.
* @param {string} type plugin type
* @param {string} name plugin variable name... |
import '../styles/app.scss';
import angular from 'angular';
import ngAria from 'angular-material';
import ngMaterial from 'angular-material';
import ngMessages from 'angular-material';
import ngAnimate from 'angular-animate';
import collapse from 'ui-bootstrap4/src/collapse';
import uirouter from '@uirouter/angular... |
Evme.__config = {
"appVersion": "2.0.145",
"apiHost": "api.everything.me",
"apiKey": "68f36b726c1961d488b63054f30d312c",
"authCookieName": "prod-credentials",
"debugMode": false,
"unsupportedRedirectMode": false,
"buildNum": 145,
"timeoutBeforeSessionInit": 0,
"apps": {
"apps... |
/*jslint browser: true*/
/*global Tangram, gui */
(function () {
'use strict';
function appendProtocol(url) {
return window.location.protocol + url;
}
// default source, can be overriden by URL
var default_tile_source = 'mapzen',
rS;
var tile_sources = {
'mapzen': {
... |
export default class {
constructor() {
this.fps = 1000 / 40;
this.firstFrame = new Date().getTime();
this.lastFrame = this.firstFrame;
this.ref = null;
}
start = () => {
const now = new Date().getTime();
const milli = now - this.lastFrame;
if (this.callbackNoFps) this.callbackNoFps();... |
from .averageNode import AverageNode
from .assetFilterNode import AssetFilterNode
from .leftMergeNode import LeftMergeNode
from .returnFeatureNode import ReturnFeatureNode
from .sortNode import SortNode
from .datetimeFilterNode import DatetimeFilterNode
from .minNode import MinNode
from .maxNode import MaxNode
from .va... |
import ps from './params_serializer';
import { UUID, LatLng, LatLngBounds } from './types';
describe('params serializer', () => {
it('serializes params Object', () => {
expect(ps({ a: 1 })).toEqual('a=1');
expect(ps({ a: 1, b: 'foo' })).toEqual('a=1&b=foo');
});
it('serializes UUID', () => {
expect(... |
from __future__ import absolute_import
from django.utils import timezone
from sentry.testutils import AcceptanceTestCase
class OrganizationReleasesTest(AcceptanceTestCase):
def setUp(self):
super(OrganizationReleasesTest, self).setUp()
self.user = self.create_user("foo@example.com")
self... |
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/widget-position-constrain/widget-position-constrain.js']) {
__coverage__['build/widget-position-constrain/widget-position-constrain.js'] = {"path":"build/widget-position-constrain/widget-position-constrain.js","s":{"1":0,"2":0,"... |
const suite = require('uvu').suite;
const assert = require('assert');
const { date, utils } = require('../src/index');
const { setMatchingRules, getValue, compare } = utils;
const test = suite('SetMatchingRules - date');
test('date - default value - root string - comparison passes', () => {
const actual = '2021-03-... |
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
export default class CalendarPeriodSelect extends Component {
@service store;
@tracked options = [];
@tracked selected;
construc... |
const downloads = {
"Paper-1.18": {
"title": "Paper 1.18",
"api_endpoint": "paper",
"api_version": "1.18",
"github": "PaperMC/Paper",
"desc": "<div class='red center-align' style='border-radius: 100px; font-size: 1.5em;'>Experimental test builds for 1.18. <b>Use with extreme ... |
'use strict';
const util = require('../../util');
module.exports = function BundlerScan(options) {
options = util.defaultValue(options, {});
options = util.permittedArgs(options, ['exec', 'logger']);
options.exec = util.defaultValue(options.exec, () => { return new require('../../exec')(); });
const self = {}... |
const serverResponseCode = 404
// serverResponseCode contains an actual number of 404
serverResponseCode = undefined
// serverResponseCode now contains no value
const surveyAnswer
// value undefined |
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
module.exports = async function(env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
// Customize the config before returning it.
return config;
};
|
/*
* 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.
*/
'... |
"use strict";(self.webpackChunkvuepress=self.webpackChunkvuepress||[]).push([[9472],{6930:(n,s,a)=>{a.r(s),a.d(s,{data:()=>t});const t={key:"v-7f2ef512",path:"/notes/java/Spring/mybatis%E6%95%99%E7%A8%8B.html",title:"mybatis教程",lang:"zh-CN",frontmatter:{title:"mybatis教程",date:"2021-11-15T21:18:08.000Z"},excerpt:"",head... |
'use strict';
angular
.module('groups', [])
.controller('GroupEditController', ['$scope', '$state', '$modal', 'Authentication', 'NgTableParams', '_', 'ProjectGroupModel', 'project', 'group', 'mode', 'CodeLists', function GroupEditController($scope, $state, $modal, Authentication, NgTableParams, _, ProjectGroupMode... |
# Copyright 2019 Cambridge Quantum Computing
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
window._ = require('lodash');
try {
window.$ = window.jQuery = require('jquery');
} catch (e) {}
window.Vue = require('vue');
import * as VueGoogleMaps from 'vue2-google-maps';
Vue.use(VueGoogleMaps, {
load: {
key: ""
}
}); |
(window.webpackJsonp=window.webpackJsonp||[]).push([[6,7],{140:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),r=a(188),c=a(177),o=a(180),i=a(179),m=a(200);t.default=function(){var e=Object(c.a)().siteConfig,t=void 0===e?{}:e,a=m[0],n=m.filter((function(e){return e!==a})),s="https://github.com/"+t.organizationN... |
/**
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* global Event */
import preventDefault from '../../src/bindings/preventdefault';
import View from '../../src/view';
describe( 'preventD... |
webpackHotUpdate("app",{
/***/ "./src/helpers/levelEditorButton.ts":
/*!******************************************!*\
!*** ./src/helpers/levelEditorButton.ts ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval(... |
import Vue from 'vue';
import iView from 'iview';
import VueRouter from 'vue-router';
import {routers, otherRouter, appRouter} from './router';
import Vuex from 'vuex';
import Util from './libs/util';
import App from './app.vue';
import Cookies from 'js-cookie';
import 'iview/dist/styles/iview.css';
import VueI18n fro... |
import OlMap from './src/map';
import overlays from './src/overlays';
import layers from './src/layers';
import controls from './src/controls';
function install (Vue, options) {
Vue.component('OlMap', OlMap);
Object.keys(overlays).forEach((key) => {
Vue.component(overlays[key].name, overlays[key]);
});
O... |
module('Invoices', {
setup: function() {
Balanced.TEST.setupMarketplace();
Ember.run(function() {
Balanced.Adapter = Balanced.FixtureAdapter.create();
window.setupTestFixtures();
var userId = '/users/USeb4a5d6ca6ed11e2bea6026ba7db2987';
Balanced.Auth.setAuthProperties(
true,
Balanced.User.find(... |
# -*- coding: utf-8 -*-
import re
from json import loads
from webtest import forms
from webtest import utils
from webtest.compat import print_stderr
from webtest.compat import splittype
from webtest.compat import splithost
from webtest.compat import PY3
from webtest.compat import urlparse
from webtest.compa... |
const buttonS = document.querySelector("#page-home main a")
const modal = document.querySelector("#modal")
const close = document.querySelector("#modal .header a")
buttonS.addEventListener("click", ()=>{
modal.classList.remove("hide")
})
close.addEventListener("click", ()=>{
modal.classList.add("hide")
}) |
import React from "react";
const Alert = () => {
const [showAlert, setShowAlert] = React.useState(true);
return (
<>
{showAlert ? (
<div
className="text-white px-6 py-4 border-0 rounded relative mb-4 bg-gray-500"
>
<span className="text-xl inline-block mr-5 align-middl... |
// Generated by purs version 0.11.6
"use strict";
var Control_Apply = require("../Control.Apply");
var Control_Category = require("../Control.Category");
var Control_Semigroupoid = require("../Control.Semigroupoid");
var Data_Foldable = require("../Data.Foldable");
var Data_Function = require("../Data.Function");
var D... |
/* =========================================================
* bootstrap-modal.js v1.4.0
* http://twitter.github.com/bootstrap/javascript.html#modal
* =========================================================
* Copyright 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
/**
* smooth-scroll v4.8.0
* Animate scrolling to anchor links, by Chris Ferdinandi.
* http://github.com/cferdinandi/smooth-scroll
*
* Free to use under the MIT License.
* http://gomakethings.com/mit/
*/
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define('smoothScroll', fa... |
import React, { Fragment } from 'react';
import MailingList from './MailingList';
const Footer = () => (
<Fragment>
<MailingList />
<footer className="push">
<div className="content">
<div className="footer-content">
<div className="footer-about">
<div className="footer-h... |
/*
* CKFinder
* ========
* http://cksource.com/ckfinder
* Copyright (C) 2007-2013, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file, and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying, or distribu... |