text stringlengths 2 1.04M |
|---|
module.exports = (sequelize, DataTypes) => {
const Exercise = sequelize.define(
'Exercise',
{
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true,
allowNull: false,
},
name: {
type: DataTypes.STRING,
allowNull: false,
... |
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import Header from './components/Header'
import Index1 from './screens/Index1'
import BronQilish from './screens/BronQilish'
import Lock from './screens/Lock'
import Pricing from './screens/Pricing'
import Tables1 from './screens/Tables1'
import ... |
mergeInto(LibraryManager.library, {
js_stroke: function(n, points, colia, linewidth) {
points = Module.HEAPF64.subarray(points / 8, points / 8 + n * 2);
var rgb = Module.HEAPU8.subarray(colia, colia + 4);
var context = Module.context;
context.beginPath();
context.strokeStyle ... |
import React, { PureComponent } from 'react';
import { StyleSheet, View, Text, ScrollView, } from 'react-native';
import Relay, {
graphql,
QueryRenderer,
} from 'react-relay';
import environment from '../environment';
import FightersList from '../components/FightersList';
export default class FightersScene extend... |
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var view_common_1 = require("./view-common");
var style_properties_1 = require("../../styling/style-properties");
var background_1 = require("../../styling/back... |
import { readFile } from 'fs'
const hasAtLeastDoubleAdjacent = arr => {
for (let i = 1; i < arr.length; i++) {
if (arr[i] === arr[i - 1]) {
return true
}
}
return false
}
const hasExactlyDoubleAdjacent = int => {
const arr = `${int}`.split('')
for (let i = 1; i < arr.length; i++) {
const n... |
/* jshint esversion: 6 */
import PropTypes from 'prop-types';
const { __ } = wp.i18n;
const {
Component
} = wp.element;
const {
ToggleControl
} = wp.components;
class ToggleComponent extends Component {
constructor(props) {
super( props );
this.state = {
value: props.control.setting.get()
};
}
toggleVa... |
/*
A base enemy controller class handling enemy behaviour.
It contains functionality used by all the enemies in game.
*/
class BaseEnemyController extends MonoBehaviour{
//Motor movement component
public var motor : BaseMovement;
//Current weapon's game object
public var weapon:GameObject;
//Enemy formation... |
__resources__["/componentAdder.js"] = {meta: {mimetype: "application/javascript"}, data: function(exports, require, module, __filename, __dirname) {
var MouseButtonEventComponent = require('component').MouseButtonEventComponent;
var HoverEventComponent = require('component').HoverEventComponent;
var clientManager =... |
(function(e){const a=e["es"]=e["es"]||{};a.dictionary=Object.assign(a.dictionary||{},{Bold:"Negrita","Bulleted List":"Lista de puntos","Choose heading":"Elegir Encabezado","Decrease indent":"Disminuir sangría","Dropdown toolbar":"Barra de herramientas desplegable","Editor toolbar":"Barra de herramientas de edición",Hea... |
$( document ).ready(function() {
myIds = []
myNames = []
let flag;
$.getJSON('http://localhost:5001/api/v1/status/', function( data ) {
if (data.status === 'OK') {
$("DIV#api_status").addClass('available');
} else {
$("DIV#api_status").removeClass('available');
}
});
$("UL.popover IN... |
import PageTitle from './PageTitle';
import styles from './styles';
export { PageTitle, styles }; |
/**
* Formatter.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function(tinymce) {
/**
* Text formatter engine class. This class is used to apply formats like bold, ita... |
// The `merge` function provides simple property merging.
module.exports = function(src, dest, overwrite) {
// Do nothing if neither are true objects.
if (Array.isArray(src) || Array.isArray(dest) || typeof src !== 'object' || typeof dest !== 'object')
return dest;
// Default overwriting of existing properti... |
/**
* @description Build the url in get-query format.
* @author ave6990
* @version 1.0.0
* @param {string} url - The base url address.
* @param {Object.<string, string | number | Object | Array>} filter_obj -
* Query.
* @return {string}
*/
const getUrl = (url, filter_obj) => {
if (filter_obj) {
url += '?'
for (... |
let attendeesArray = [];
let currentWinner;
let allWinners = [];
let fileUploaded = false;
function closeModal(id) {
let modal = document.getElementById(id);
modal.style.display = "none";
}
function openModal(id) {
let modal = document.getElementById(id);
modal.style.display = "block";
}
function handelFiles... |
import React, { useContext, useState, useEffect, useCallback } from 'react'
import { ArtistContext } from '../../context/ArtistContext'
import View from './HomeView'
const HomeContainer = props => {
const {loading, error, artists, setFilter, setSort} = useContext(ArtistContext)
const [artistsSortType, setArtistsSo... |
/*!
* Datepicker for Bootstrap v1.7.0-dev (https://github.com/eternicode/bootstrap-datepicker)
*
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
c.toDisplay)return c.toDisplay(b,c,d);var e={d:b.getUTCDate(),D:q[d... |
module.exports = function (state) {
return state.selected.topic
} |
'use strict';
xdescribe ('project-viewer', function () {
let mainElement;
beforeEach (function () {
mainElement = atom.views.getView(atom.workspace);
jasmine.attachToDOM(mainElement);
});
describe ('activate', function () {
it ('should append only one project-viewer', function () {
waitsF... |
import React from 'react'
import PropTypes from "prop-types"
import { Helmet } from 'react-helmet'
import { useLocation } from "@reach/router"
import { graphql, useStaticQuery } from 'gatsby'
import SchemaOrg from './SchemaOrg'
const query = graphql`
{
site {
siteMetadata {
defaultTitle: title
... |
/* global requirejs:true */
// Run before window.onload to make sure the specs have access to describe()
// and other mocha methods. All feels very hacky though :-/
this.mocha.setup('bdd');
function runTests() {
var runner = this.mocha.run();
var failedTests = [];
runner.on('end', function() {
wi... |
import angular from 'angular';
import '@uirouter/angularjs';
import 'oclazyload';
const moduleName = 'ovhManagerAnalyticsDataPlatformCredentials';
angular
.module(moduleName, [
'ui.router',
'oc.lazyLoad',
])
.config(/* @ngInject */($stateProvider) => {
$stateProvider.state('pci.projects.project.anal... |
import '../atoms/cc-expand.js';
import '../atoms/cc-loader.js';
import '../molecules/cc-error.js';
import { css, html, LitElement } from 'lit-element';
import { classMap } from 'lit-html/directives/class-map.js';
import { animate, QUICK_SHRINK } from '../lib/animate.js';
import { i18n } from '../lib/i18n.js';
import { ... |
import {combineReducers} from 'redux';
import articles from './articleReducer';
import ajaxCallsInProgress from './ajaxStatusReducer';
const rootReducer = combineReducers({
articles,
ajaxCallsInProgress
});
export default rootReducer; |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
module.exports = new Command({
name: "redeem",
description: `redeem preium code`,
userPermissions: [],
category: "",
options: [
{
name: "code",
description: `give me code`,
type: "STRING",
required: true,
},
],
}) |
/*
CanvasJS HTML5 & JavaScript Charts - v1.7.0 GA - http://canvasjs.com/
Copyright 2013 fenopix
*/
(function(){function O(a,b){a.prototype=Ba(b.prototype);a.prototype.constructor=a;a.base=b.prototype}function Ba(a){function b(){}b.prototype=a;return new b}function ua(a,b,c){"millisecond"===c?a.setMilliseconds(a.getM... |
const CustomError = require("../extensions/custom-error");
module.exports = function createDreamTeam(members) {
if(!Array.isArray(members)){
return false;
}
let outArray = [];
members.forEach(element => {
if(typeof element === 'string'){
outArray.push(element.trim().toUpperCase()[0]);
... |
function xacNhanXoa(msg) {
return !!window.confirm(msg);
}
jQuery(document).ready(function () {
jQuery('#success').delay(3000).slideUp();
}); |
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
/* Your site config here */
siteMetadata: {
title: "Aakash Bathla Trek Guide",
description:
"Explore aw... |
/**
* 从一个数组中取出多个元素
* @param {Array} array 需要求组合的集合
* @param {Number} n 取出元素个数
*/
const combination = (array, n) => {
if ( n === 0 || array.length === n) {
return [array.slice(0, n)]
}
const [first, ...others] = array
let ret = []
ret = ret.concat(combination(others, n - 1).map(item => [first, ...item]... |
require('..');
var shell = require('shelljs'); // recommended
require('should');
console.error = function () { };
describe('bash-exec', function () {
it('does not get added to the shelljs instance', function () {
shell.should.have.property('bashExec');
});
}); |
import vtkCellArray from './CellArray';
import vtkDataArray from './DataArray';
import vtkEndian from './Endian';
import vtkLookupTable from './LookupTable';
import vtkMath from './Math';
import vtkPoints from './Points';
import vtkScalarsToColors from './ScalarsToColors';
i... |
export class Room {
}
export class Map {
// var rooms = []; // specifically an array of Room objects
constructor(height, width, depth, rooms) {
this.coords = new Array(height);
this.coords[0] = new Array(width);
this.coords[0][0] = new Array(depth);
if (undefined !== rooms) {
rooms.foreEach... |
/**
* Copyright 2017 Google Inc. 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 applic... |
import * as BaseWrappedFn from '../../../redux/base-wrapped'
import displayLoadingIndicator from './displayLoadingIndicator'
import updateValue from './updateValue'
import doLogin from './doLogin'
import doLogout from './doLogout'
const prefix = 'LOGIN_MODULE::'
const actionClasses = {
displayLoadingIndicator: new... |
import React, { useState } from "react";
import {
jsx,
Container,
Box,
Grid,
Text,
Heading,
Button,
Image,
} from "theme-ui";
// import { keyframes } from "@emotion/core";
import TextFeature from "components/text-feature";
import ModalVideo from "react-modal-video";
import { IoIosPlay } from "react-ico... |
//# sourceMappingURL=script.map.js |
/* This file is generated by createIcons.js any changes will be lost. */
import createIcon from '../createIcon';
var OutlinedHandPointerIcon = createIcon({
name: 'OutlinedHandPointerIcon',
height: 512,
width: 448,
svgPath: 'M358.182 179.361c-19.493-24.768-52.679-31.945-79.872-19.098-15.127-15.687-36.182-22.487... |
export { default as createForm } from './createForm';
export { default as delay } from './delay';
export { default as deleteForm } from './deleteForm';
export { default as gdv } from './getDeepValue';
export { default as getDeepValue } from './getDeepValue';
export { default as getAPIHealth } from './getAPIHealth';
exp... |
require("dotenv").config();
const https = require("https");
const http = require("http");
const userIP = require("user-ip");
const express = require("express");
const axios = require("axios").default;
const mongoose = require("mongoose");
const path = require("path");
const Dice = require("./models/dice");
const ESP = ... |
var Toolbox = (function() {
'use strict';
function Toolbox() {}
//MEDIA
/**
* Play the selected media
*
* @example play('selector');
* @example play('selector', function() {console.log('Media ended');});
*
* @param {String} selector
* @param {Function} [onEndCallback]... |
// components/activitiesPicker/activitiesPicker.js
const { getActivityList, getFilteredActivities, getActivityTypes} = require('../../utils/requestUtil.js');
Component({
/**
* 组件的属性列表
*/
properties: {
categories: {
type: Array,
value: [],
}
},
/**
* 组件的初始数据
*/
data: {
act... |
export const socialsData = {
github: "https://github.com/Programing-School",
facebook: "https://www.facebook.com/",
linkedIn: "https://www.linkedin.com/in/mohamed-ehab-164193208",
instagram: "https://www.instagram.com/mohamedehab2463/",
codepen: "https://codepen.io/programing-school",
twitter: "https://twit... |
const addressData = require('china-area-data/v3/data');
import _ from 'lodash';
Vue.component('select-district', {
props: {
initValue: {
type: Array,
default: () => ([]),
}
},
data() {
return {
provinces: addressData['86'], // 省列表
citi... |
const jsonData = {
name: 'Tom',
age: 2,
nums: [1, 1, 2, 3, 5, 8],
friends: [
{
name: 'Jerry',
age: 1,
nums: [7]
},
{
name: 'Tuffy',
age: 1
},
{
name: 'Spike'
},
{
name: 'Tyke'
}
]
}
export {
jsonData
} |
// jshint esversion: 8
// jshint node: true
"use strict";
// This server exposes some database functions to a web interface
// it translates and forwards get, post, put, and delete items
//
// install mongodb; optionally install mongo client
// see: http://mongodb.github.io/node-mongodb-native/3.1/quick-start... |
/* eslint-env mocha */
/* eslint no-new-wrappers: 0*/
import expect from 'expect';
import fBoolean from '../../src/types/boolean.js';
describe('boolean', () => {
context('.name', () => {
it('is "boolean"', () => {
expect(fBoolean.name).toEqual('boolean');
});
});
context('.checker', () => {
i... |
export default (context, html) => html`
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 3H1v16h7v2h8v-2h7V3zm-2 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/></svg>
`; |
(function(angular) {
var sliqsolv = angular.module("sliqsolv", ['ssCheckbox', 'ssFixedHeaders', 'ssFlippable', 'ssNotify', 'ssRadio',
'ssStorage', 'ssTile', 'ssUpgrade']);
}(angular)); |
/* Copyright 2018 Bryan Herbst
*
* 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... |
SCREEN_APP.createVue = new Vue({
el: "#id-container",
data: {
model: {
title: '',
content: '',
bColor: '',
tag: '',
tags: [],
categories: []
},
categories: []
},
methods: {
dataLoading: function () {
var self = this;
Func.loadCats(function(data){
self.categories = data;... |
// export const fetchFoodCategoryAPI = async () => {
// const response = await fetch('https://www.themealdb.com/api/json/v1/1/list.php?c=list');
// const data = await response.json();
// return data;
// };
// export const fetchDrinkCategoryAPI = async () => {
// const response = await fetch('https://www.thecoc... |
"use strict";
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _utils = require("@bundle-stats/utils");
var _webpackStatsBaseline = _interopRequireDefault(require("../../../__mocks__/webpack-stats.baseline.json"));
var _webpackStatsCurrent = _interopRequireDefau... |
export default function foundations() {
const foundations = document.createElement('style')
foundations.innerHTML = `
body {
min-height: 100vh;
background-color: #fefefe;
font-family: 'Raleway';
}
* {
box-sizing: border-box;
}
`
return foundations
} |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Ui5CustomTreeItem = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false... |
'use strict'
module.exports.getDiffer = getDiffer
function createMatrix(m, n) {
var res = []
for (var i = 0; i < m; i++){
var row = []
for (var j = 0; j < n; j++) {
row.push({
length: 0,
sequences: []
})
}
res.push(row)
}
return res
}
function copySequences(source,... |
import React from 'react'
import Condition from "./Condition";
import SearchContent from "./SearchContent";
const Content = () =>
<main>
<article className="container">
<div className="row">
<div className="col-sm-4 col-md-3">
<div className="row">
<Condition/>
</div... |
//# sourceMappingURL=bundle.js.map |
'use strict';
var path = process.cwd();
var PintIt = require(path + '/app/controllers/pintIt.server.js');
module.exports = function (app, passport, io) {
var pintIt = new PintIt();
function isLoggedIn (req, res, next) {
if (req.isAuthenticated()) {
return next();
} else {
res.json({ error: true, message... |
import template from './template.html';
export default {
bindings: {
serverName: '<',
handleError: '<',
handleSuccess: '<',
},
template,
}; |
var ContactForm = React.createClass({
propTypes: {
contact: React.PropTypes.object.isRequired,
onChange: React.PropTypes.func.isRequired,
},
render: function () {
const oldContact: this.props.value;
const onChange: this.props.onChange;
return (
React.cre... |
//# sourceMappingURL=main.c376f7d7.chunk.js.map |
import {
GetStoreNavigator,
SaveStoreNav,
SaveStoreNavAndPub,
GetIconList,
GetFunctionPathList,
GetProductPathList,
GetMicroPagePathList,
GetActivityPathList,
GetProductGroup,
GetActivityType
} from '@/services/storenavigation';
export default {
namespace: 'storenaviga... |
/*
* Copyright (c) 2016-2017 by STEP Tools 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 applica... |
export default "M17.5,11L15.41,20H10.5L12.59,11H17.5M20,9H11L8,22H17L20,9M4,6L8,2V5H16V7H8V10L4,6Z" |
let posX;
let posY;
let velx;
let velY;
let radius;
let circleClr;
//UI
let sliderHue;
let clickCounter;
function setup(){ // setup runs once, sets up the canvas
let myCanvas = createCanvas(800, 600);
myCanvas.parent('canvasParent');
colorMode(HSB, 360, 100, 100);
sliderHue = createSlider(0, 360, ... |
import { convert, getProp } from './prop-mixin.js';
import { passVal } from './to-mixin.js';
import { nudge, getPreviousSib } from './on-mixin.js';
export class OnToMe extends HTMLElement {
//_lastEvent: Event
_lastVal;
_g;
connectedCallback() {
this.style.display = 'none';
const g = t... |
// @flow
import { useContext } from 'react';
import { ReactRelayContext } from 'react-relay';
import { invariant } from '@kiwicom/js';
import type { Environment } from '../runtimeTypes.flow';
/**
* You can use this hook in any component below QueryRenderer or RelayEnvironmentProvider.
*/
export default function us... |
const mongoose = require('mongoose');
const BaseModel = require("./base_model");
const Schema = mongoose.Schema;
const utility = require('utility');
const _ = require('lodash');
const UserSchema = new Schema({
name: { type: String},
loginname: { type: String},
pass: { type: String },
email: { ty... |
import moment from 'moment'
const DF = 'Do MMM'
const DFY = 'Do MMM YYYY'
const DTF = 'Do MMM, h:mma'
export const format_date = (ts, y) => moment(ts).format(y ? DFY : DF)
export const format_ts = ts => moment(ts).format(DTF) |
'use strict';
const { AirMonitor } = require('abstract-things/climate');
const MiotApi = require('../iotDevice');
const {
Temperature,
Humidity,
AQI,
PM10,
CO2,
BatteryLevel,
Voltage,
State
} = require('./capabilities/sensor');
/**
* Abstraction over a Mi Air Monitor.
*
* QingPing Air Monitor Lit... |
/*************************************************************
*
* MathJax/localization/br/HTML-CSS.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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... |
const { Client } = require('discord.js')
const { Slash } = require('../dist/index')
const path = require('path')
const config = require('./config.json')
const client = new Client({ intents: ['GUILDS', 'GUILD_MESSAGES'] })
const cmd = new Slash(client, {
path: path.join(__dirname, 'commands'),
slashType: 'GUILD',
... |
import TheContent from './TheContent'
import TheFooter from './TheFooter'
import TheHeader from './TheHeader'
import TheHeaderDropdown from './TheHeaderDropdown'
import TheHeaderDropdownMssg from './TheHeaderDropdownMssg'
import TheHeaderDropdownNotif from './TheHeaderDropdownNotif'
import TheHeaderDropdownTasks from '... |
const debug = require('debug')('@polskycenter/bnv-api:services:email');
const ses = require('node-ses');
const env = require('../env');
const FROM = `BNV Calculators <${env('SES_EMAIL')}>`;
const client = ses.createClient({
amazon: 'https://email.us-east-1.amazonaws.com',
key: env('AWS_KEYID'),
secret: env('AW... |
const chai = require("chai");
const EasyType = require("../../dist/easytype");
const { expect } = chai;
describe("isJSON:", function () {
it("EasyType.isJSON(null) should be false", function () {
expect(EasyType.isJSON(null)).to.equal(false);
});
it("EasyType.isJSON(undefined) should be false", f... |
// a function called when the button is clicked
function buttonClicked() {
var myMessage = document.getElementById("message");
myMessage.innerHTML = "it is " + new Date().getTime();
}
// go get some data from the server and show it on the page
fetch('/users/1').then(r=>r.json()).then(user => {
document.ge... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SlugPreview = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var SlugPreview = props => {
var value = props.value;
... |
#!/usr/bin/env node
const util = require('util');
const async = require('async');
const debug = require('debug')('ecr-cleaner');
function ecrCleaner(options, callback) {
const {
getNamespaces,
getActiveImages,
getAllECRImages,
filterActiveImages,
filterImagesByDate,
deleteImages,
} = require('./methods'... |
"use strict";
let hasInit = false;
exports.init = function (bootstrapModules) {
if (hasInit) {
throw new Error(`bootstrapModules has already init`);
}
for (const mod of Object.keys(bootstrapModules)) {
exports[mod] = bootstrapModules[mod];
}
hasInit = true;
}; |
import { combineReducers } from 'redux';
import eventReducer from './eventReducer';
import userReducer from './userReducer';
const rootReducer = combineReducers({
user: userReducer,
events: eventReducer
});
export default rootReducer; |
// @flow
import type {BuildSuccessEvent, PluginOptions} from '@parcel/types';
import type {Diagnostic} from '@parcel/diagnostic';
import type {AnsiDiagnosticResult} from '@parcel/utils';
import type {ServerError, HMRServerOptions} from './types.js.flow';
import WebSocket from 'ws';
import {
ansiHtml,
md5FromObjec... |
'use strict';
const Ajv = require('ajv');
const _ = require('lodash');
const schema = require('../../configSchema');
const normalizeAjvErrors = require('./normalizeAjvErrors');
const FUNCTION_NAME_PATTERN = '^[a-zA-Z0-9-_]+$';
const ERROR_PREFIX = 'Configuration error';
const WARNING_PREFIX = 'Configuration warning';... |
webpackJsonp([3],{
/***/ 100:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AlbumsPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(... |
import Ext_Base from '../Ext/Base.js';
export default class Ext_QuickTips extends Ext_Base {
static PROPERTIES() { return [
]};
static EVENTS() { return [
{name:'ready', parameters:'cmd,cmdAll'}
]};
static getProperties(properties) {
properties = properties.concat(Ext_QuickTips.PROPERTIES());
ret... |
'use strict';
// to enable these logs set `DEBUG=boot:01-load-settings` or `DEBUG=boot:*`
var log = require('debug')('boot:01-load-settings');
module.exports = function(app) {
var Setting = app.models.Setting;
function loadDefaultSettings() {
console.error('Creating default settings');
var settings = [... |
let applescript = require("applescript");
let scripts = {
state: "input volume of (get volume settings) & output volume of (get volume settings) & output muted of (get volume settings)",
volumeState: "output volume of (get volume settings)",
inputState: "input volume of (get volume settings)",
outputSt... |
/*
* @Description:
* @Author: cml321@hotmail.com
* @Date: 2020-04-29 16:16:47
*/
const Controller = require('egg').Controller
const Base64 = require('js-base64').Base64
class UserController extends Controller {
constructor(ctx) {
super(ctx)
this.session = ctx.session
this.UserModel = ct... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{1701:function(n,t,e){"use strict";e.r(t);var a={name:"FindMostRepeatEl",data:function(){return{}}},c=e(12),i=Object(c.a)(a,(function(){var n=this.$createElement;return(this._self._c||n)("div")}),[],!1,null,"2997c194",null);t.default=i.exports}}]); |
(function (module) {
var operate = require('./operate.js');
var Color = function (rgb, a) {
if (Array.isArray(rgb)) {
this.rgb = rgb;
} else if (rgb.length == 6) {
this.rgb = rgb.match(/.{2}/g).map(function (c) {
return parseInt(c, 16);
});
... |
'use strict';
var entryFactory = require('../../../factory/EntryFactory'),
cmdHelper = require('../../../helper/CmdHelper');
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
getBusinessObject = ModelUtil.getBusinessObject;
module.exports = function(group, element, bpmnFactory, t... |
var tabla;
//Función que se ejecuta al inicio
function init() {
mostrarform(false);
listar();
$("#formulario").on("submit", function(e) {
guardaryeditar(e);
})
}
//Función limpiar
function limpiar() {
$("#nombre").val("");
$("#num_documento").val("");
$("#direccion").val("");
... |
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
f... |
var searchData=
[
['new_5fg_26',['new_g',['../structGameManager.html#ad431cc490352f6d9c01374f21f13152b',1,'GameManager']]]
]; |
import DefaultNetworkLayer from './Network/Default'
import EndPoint from './EndPoint'
import QueryObject from './QueryObject'
// Public API
export {
DefaultNetworkLayer,
EndPoint,
QueryObject
} |
import React from 'react';
import './keyboard.scss';
// Source: http://cssdeck.com/labs/apple-keyboard-via-css3
const keyboard = () => (
<div id="keyboard">
<ul class="cf" id="numbers">
<li><a href="#" class="key c192"><b>~</b><span>`</span></a></li>
<li><a href="#" class="key c49... |
//wrapping pokemonList array in an IIFE
let pokemonRepository = (function() {
let pokemonList = [];
let apiUrl = 'https://pokeapi.co/api/v2/pokemon/?limit=150';
// Returns a pokemonList
function getAll(){
return pokemonList;
}
// Adds new objects to the list from the outside
function ... |
'use strict';
const { isExternalLink } = require('hexo-util');
let EXTERNAL_LINK_SITE_ENABLED = true;
const rATag = /<a(?:\s+?|\s+?[^<>]+\s+?)?href=["']([^<>"']+)["'][^<>]*>/gi;
const rTargetAttr = /target=/i;
const rRelAttr = /rel=/i;
const rRelStrAttr = /rel=["']([^<>"']*)["']/i;
function externalLinkFilter(data) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.