text stringlengths 2 1.04M |
|---|
/**
* 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.
*
* @flow
* @format
*/
'use strict';
require('@babel/polyfill');
const {main} = require('./RelayCompilerMain');
const yargs = re... |
module.exports = require('../../images/2/1f4a8.png'); |
import React, { Component } from 'react';
import { Upload, message, Button, Icon } from 'antd';
const Dragger = Upload.Dragger;
const uploadProps = {
name: 'file',
action: 'http://localhost:9000/upload',
headers: {
authorization: 'authorization-text',
},
onChange(info) {
if (info.f... |
//VALIDACAO DE FORM DE LOGIN
$("#form-login").validate( {
rules: {
email: {
required: true,
email: true
},
senha: {
required: true
}
},
messages: {
email: {
required: "Insira o email de acesso",
email: "Por favor, insira um e-mail válido!"
},
senha: {
required: "Insira a senha!"
}
... |
import { isDate } from "../../utils/isDate";
export const validate = (values, step) => {
const {
age,
asthma,
cardiovascular,
contactOtherCovid,
copd,
dateSymptoms,
covidTestResult,
diabetes,
hypertension,
icu,
inmsupr,
intubed,
obesity,
otherDisease,
patie... |
TC.control = TC.control || {};
if (!TC.Control) {
TC.syncLoadJS(TC.apiLocation + 'TC/Control');
}
TC.Consts.event.RESULTTOOLTIP = 'resulttooltip.tc';
TC.Consts.event.RESULTTOOLTIPEND = 'resulttooltipend.tc';
TC.Consts.event.DRAWCHART = 'drawchart.tc';
TC.Consts.event.DRAWTABLE = 'drawtable.tc';
TC.Consts.event.... |
import { isArray } from '../util/isArray';
import { fromArray } from './fromArray';
import { OuterSubscriber } from '../OuterSubscriber';
import { subscribeToResult } from '../util/subscribeToResult';
export function race() {
var observables = [];
for (var _i = 0; _i < arguments.length; _i++) {
observab... |
/* NETPIE Microgear Freeboard plugin */
/* Developed by Chavee Issariyapat */
/* More information about NETPIE please visit https://netpie.io */
if (typeof dsstore === "undefined") {
dsstore = {};
}
(function()
{
freeboard.loadDatasourcePlugin({
... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'km', {
border: 'បង្ហាញបន្ទាត់ស៊ុម',
noUrl: 'សូមបញ្ចូល URL របស់ iframe',
scrolling: 'ប្រើរបាររំកិល',
title: 'លក្ខណៈសម្បត្តិ IFrame... |
function my_function436(){
//65875772398406965789123044237893PVmTSEHBmBjKSGTBamDzlmWaPCCEEkqP
}
function my_function153(){
//62927778929263843990954327617539GQHCLQiPayQTmKkScrdCaVWqCtxCimiO
}
function my_function787(){
//77057181111302463142171883833886ShxxRXudIBpVVCUqejgMWWHoKlnzyXLT
}
function my_function205(){
/... |
/*jslint node:true */
'use strict';
module.exports = function watch(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
return {
// watchify all build sub tasks
jslint: {
files: ['public/js/**/*.js'],
tasks: ['jslint']
},
browserify: {
files... |
var domains = {
cu: 'Cuba',
it: 'Italia',
be: 'Bélgica',
us: 'USA',
fr: 'Francia',
ca: 'Canadá',
es: 'España',
cn: 'China',
ru: 'Rusia',
uy: 'Uruguay',
do: 'R.Dominicana',
hr: 'Croacia',
co: 'Colombia',
pe: 'Perú',
tz: 'Tanzania',
pa: 'Panamá',
bo: 'Bolivia',
cg: 'Congo',
bs: 'Baha... |
module.exports = [
{
name: "황소축제",
location: "강원",
image: "http://bullsland.co.kr/uploadFiles/uploadImg133.jpg"
},
{
name: "일오행사",
location: "경기",
image: "https://i.imgur.com/s2Wx7i8.jpg"
},
{
name: "공차 이벤트",
location: "경상",
image: "https://i.imgur.com/BifLGdW.png"
},
{... |
import React from 'react';
import classNames from 'classnames';
import { FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/Dial... |
/* eslint-disable sort-keys */
describe('Objects', function () {
var objects = Utils.objects;
it('copy()', function () {
var
a = {x: 0},
b,
c = a;
b = objects.copy(a);
b.x = 2;
c.x = 1;
assert.equal(a.x, 1);
assert.equal(c.x, 1);
assert.equal(b.x, 2);
});
it('values()', function () {
... |
const rootPrefix = '../../..',
ModelBase = require(rootPrefix + '/app/models/mysql/Base'),
databaseConstants = require(rootPrefix + '/lib/globalConstant/database'),
twitterUserConnectionConstants = require(rootPrefix + '/lib/globalConstant/twitterUserConnection');
// Declare variables.
const dbName = databaseCon... |
import React, { Component } from "react";
import {
ActivityIndicator,
Button,
StyleSheet,
Text,
ToastAndroid,
View
} from "react-native";
import { ScrollView } from "react-native-gesture-handler";
import firebase from "react-native-firebase";
export default class DetailsScreen extends Component {
constru... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Web3SolidoTopic {
constructor() {
this.next = [];
}
topic(value) {
this.next = [...this.next, value];
return this;
}
or(value) {
this.next = [...this.next, value];
return this;
... |
tinyMCE.addI18n('hu.xhtmlxtras_dlg',{
attribute_label_title:"C\u00EDm",
attribute_label_id:"ID",
attribute_label_class:"Class",
attribute_label_style:"Style",
attribute_label_cite:"Id\u00E9zet",
attribute_label_datetime:"D\u00E1tum/Id\u0151",
attribute_label_langdir:"Sz\u00F6veg ir\u00E1nya",
attribute_option_ltr:"Balr... |
// siteName: can be anything but using the site name makes it easier for you to identify the module
// fileName: Has to math the file name from anime folder
module.exports = {
// siteName: require('./anime/fileName')
}; |
this.field('link')
this.field('title')
this.field('body')
function createEl(element='div'){return document.createElement(element);}
function emptyEl(el){while(el.firstChild)
el.removeChild(el.firstChild);}
function elem(selector,parent=document){let elem=isObj(parent)?parent.querySelector(selector):false;return elem?el... |
//bootstrap.js
/*
THESE ARE THE CURRENT TASKS ON THIS LIST(Secure Data Handling)
//need to trigger a final backgroud task when the user logs out of the application
//need to update the path of the settings each time the route is alterd
*/
//Configuration
var domainUrl = 'http://127.0.0.37/';
var themeDir = 'themes... |
// All code points in the `Me` category as per Unicode v9.0.0:
[
0x488,
0x489,
0x1ABE,
0x20DD,
0x20DE,
0x20DF,
0x20E0,
0x20E2,
0x20E3,
0x20E4,
0xA670,
0xA671,
0xA672
]; |
import React from 'react';
import styled from 'styled-components'
import { Container, Row, Col } from 'styled-bootstrap-grid';
const Section = styled.div`
position: relative;
z-index: 2;
background-color: #F0EFEF;
padding: 120px 0 240px 0;
overflow: hidden;
@media (max-width: 768px) {
padding: 0 0 1... |
import { UserRegirster, Userimage } from "../../models";
import bcrypt from "bcrypt";
import jwt from "jsonwebtoken";
import { sendSms } from "../service/otp.js";
import { generateOTP } from "../service/generateOtp";
import multer from 'multer';
import path from'path';
const userRegisters = async (req, res) => {
... |
// @flow
import React from 'react';
import { getContactHref } from '../../../utils';
import styles from './Author.module.scss';
import { useSiteMetadata } from '../../../hooks';
const Author = () => {
const { author } = useSiteMetadata();
return (
<div className={styles['author']}>
<p className={styles[... |
import React from 'react';
import Head from 'next/head';
import PropTypes from 'prop-types';
import { getList } from '../lib/api/public';
import withLayout from '../lib/withLayout';
class SSR extends React.Component {
static async getInitialProps() {
const list = await getList();
return { list };
}
rend... |
'use strict';
var LocalizationContext = require('./LocalizationContext-a2c19b4f.js');
var React = require('react');
var PropTypes = require('prop-types');
var index = require('./index-c60cbb09.js');
var index$1 = require('./index-333138cb.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' &&... |
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.23 - 2016-11-18
*
*/
!function(a){"use strict";var b,c,d,e,f=a("object[data$='.svg']"),g=a("img[src$='.svg']"),h=f.length;for(b=0;b!==h;b... |
var _ = require('lodash');
var path = require("path");
module.exports = function(grunt) {
function config(components) {
var targets =_.reduce(components, function(result, component) {
result.push(path.join(component, "src/**/*"));
result.push(path.join(component, "demo/**/*"));
return result;
}, []);
... |
const path = require('path');
module.exports = {
mode: 'development',
entry: {
package: './src/package.ts'
},
resolve: {
extensions: ['.wasm', '.mjs', '.js', '.json', '.ts', '.tsx'],
},
module: {
rules: [
{ test: /\.tsx?$/, loader: 'ts-loader' },
{ test: /\.css$/i, use: ['style-load... |
'use strict';
const expect = require('chai').expect;
const _ = require('lodash');
const SDK = require('../../../../../../lib/plugins/aws/provider');
const Serverless = require('../../../../../../lib/serverless');
describe('#naming()', () => {
let options;
let serverless;
let sdk;
beforeEach(() => {
opti... |
import dotenv from 'dotenv'
import Web3 from 'web3'
import Readable from 'stream'
import pinataSDK from '@pinata/sdk'
import axios from 'axios'
import FormData, { Stream } from 'form-data'
import { tinyboxesABI } from '../tinyboxes-contract'
import { resolve } from 'path'
import fs from 'fs'
dotenv.config()
const {
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {Modal, Checkbox, Button, ControlLabel, FormGroup, InputGroup, DropdownButton, MenuItem} from 'react-bootstrap';
import Autocomplete from 'react-autocom... |
export default {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
ESC: 27,
SPACE: 32,
END: 35,
HOME: 36,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
PAGE_UP: 33,
PAGE_DOWN: 34,
// version 0.x
ESCAPE: 27,
LEFT_ARROW: 37,
UP_ARROW: ... |
var gulp = require('gulp'),
browserSync = require('browser-sync').create();
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: "./app"
}
});
}); |
import ecies from 'eth-ecies'
import OriginMessaging from './Messaging'
export default function Messaging({
messagingNamespace,
web3,
globalKeyServer,
personalSign
}) {
return new OriginMessaging({
contractService: { web3 },
ecies,
messagingNamespace,
globalKeyServer,
personalSign
})
} |
// through2 是一个对 node 的 transform streams 简单封装
import { esvar } from '@flua/utils'
import { WordCount } from '@livre/word-count'
import { ros } from '@palett/ros'
import { SP } from '@spare/enum-chars'
import { delogger } from '@spare/logger'
import { tenseQuote } from '@spare/q... |
import axios from 'axios';
import { fetchLossRanked, fetchExtentRanked } from 'services/forest-data';
export default ({ params }) =>
axios.all([fetchLossRanked(params), fetchExtentRanked(params)]).then(
axios.spread((lossResponse, extentResponse) => {
const { data } = lossResponse.data;
let mappedDat... |
(function(exports){
// The magic line above is to make the module both browser and Node compatible, see https://stackoverflow.com/questions/3225251/how-can-i-share-code-between-node-js-and-the-browser
// This module works with records only. It is CSV-agnostic.
// Do not add CSV-related logic or variables/functions/obj... |
/**
* {@link Ext.Audio} is a simple class which provides a container for the [HTML5 Audio element](http://www.w3schools.com/html5/tag_audio.asp).
*
* ## Recommended File Types/Compression:
* * Uncompressed WAV and AIF audio
* * MP3 audio
* * AAC-LC
* * HE-AAC audio
*
* ## Notes
* On Android devices, the audio... |
const DBClassify = require('../mysql/classify')
const Classify = require('../class/Classify')
const error = require('../error')
/** 搜索所有 `分类目录` */
exports.search = async (req, res, next) => {
let rows = await DBClassify.select()
res.send({ data: rows })
}
/** 新添 `分类目录` */
exports.add = async (req, res, next) ... |
'use strict';
const Base = require('areto/base/Behavior');
module.exports = class File extends Base {
constructor (config) {
super({
// FileClass: require('../model/File'),
fileAttr: 'file', // owner attribute with uploaded file
// filenameAttr: 'filename', // owner at... |
/*
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... |
import React from 'react';
import Layout from '../components/Layout/Layout';
import StyledHero from '../components/StyledHero';
import Banner from '../components/Banner';
import { graphql } from 'gatsby';
import SEO from '../components/SEO/SEO';
// define page query to return optimized image
export const query = graph... |
function signup(){
var username=document.forms["signupForm"]["username"].value;
var email=document.forms["signupForm"]["email"].value;
var firstName=document.forms["signupForm"]["firstName"].value;
var lastName=document.forms["signupForm"]["lastName"].value;
var gender=document.forms["signupForm"]["gender"].value;... |
/*global define*/
define([
'jQuery-2.1.4.min',
'underscore_1.3.3',
'backbone_0.9.2',
'text!../../../js/app/templates/siteSettings.html'
], function ($, _, Backbone, SiteSettingsTemplate) {
'use strict';
var SiteSettingsView = Backbone.View.extend({
/*
* Dev Notes:
* -It is assumed that the keyDis... |
const router = require('express').Router();
const jwt = require('jsonwebtoken');
const PieceStore = require('../../../../models/v2/PieceStore.js');
const storeHistory = require('../../../../utils/storePlayHistory.js');
const dirList = {
nw: [-1, 1],
n: [0, 1],
ne: [1, 1],
e: [1, 0],
se: [1, -1],
s: [0, -1]... |
import React from 'react';
import PropTypes from "prop-types";
import {Formik} from "formik";
import DetailErrorSchema from "./ErrorSchema";
import "./style.scss"
import InnerForm from "./InnerForm";
import {AddOrder, EditOrder} from "../../../store/order/actions";
import {connect} from "react-redux";
import {history} ... |
// const Sequelize = require('sequelize');
const mongoose = require('mongoose');
const config = require('./config');
mongoose.connect(config.uri);
// const ID_TYPE = Sequelize.STRING(50);
function defineModel(name, attributes) {
var attrs = attributes;
/*
attrs._id = {
type: mongoose.Schema.Ty... |
"use strict";
exports.__esModule = true;
var pokemon_1 = require("./api/pokemon");
exports["default"] = {
Pokemon: pokemon_1["default"]
};
//# sourceMappingURL=index.js.map |
const Model = require('./base_model');
class PlanPerson extends Model {
get rules() {
return {
plan_id: ['required', 'integer'],
person_id: ['required', 'integer'],
};
}
get tableName() {
return 'plan_person';
}
static subscribe(person_id, plan_id) {
return this.forge({
pe... |
;(function () {
'use strict';
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() ... |
/* global window */
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { loadComponent } from 'lib/Injector';
import { getConfig } from 'state/editor/elementConfig';
import { destroy } from 'redux-form';
/**
* Uses entwine to inject the HistoryViewer React component into... |
/*!
* ${copyright}
*/
// Provides control sap.ui.core.LocalBusyIndicator.
sap.ui.define(['jquery.sap.global', './Control', './library', './theming/Parameters'],
function(jQuery, Control, library, Parameters) {
"use strict";
/**
* Constructor for a new LocalBusyIndicator.
*
* @param {string} [sId] id for t... |
// @flow
import observe from '../../src/proxy/observe';
import { changes } from '../../src/shared/symbols';
describe('测试根属性监听', () => {
it('基本数据类型监听', done => {
const obj = observe({ property: 'prop' });
obj.listen(changes => {
expect(changes.get('property')).toEqual({
value: 'property',
... |
// JavaScript Document
function openshowcommo(key){
open('showcommo.php?id='+key,'_blank','width=560 height=300',false);
}
function buycommo(key){
var url = "chklogin.php?key="+key;
xmlhttp.open("GET",url,true);
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4){
var msg = xmlhttp.responseTe... |
(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.LocalDB = factory());
}(this, function() {
'use strict';
var keys = Object.keys;
//so we can use db.table
function se... |
/** @type {import('@adonisjs/framework/src/Server')} */
const Server = use('Server');
/*
|--------------------------------------------------------------------------
| Global Middleware
|--------------------------------------------------------------------------
|
| Global middleware are executed on each http request on... |
const assert = require('assert');
const {find} = require('../../util');
describe('test/Interface/Interface:', ()=>{
it('is interface', ()=>{
const doc = find('longname', 'src/Interface/Interface.js~TestInterfaceClass');
assert.equal(doc.interface, true);
});
}); |
var data = {
"body": "<path d=\"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zm-10-7h9v6h-9z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data; |
/**
* PhotoSelector dialog
*/
+function () {
if ($.oc.photoselector === undefined) {
$.oc.photoselector = {};
}
var Base = $.oc.foundation.base,
BaseProto = Base.prototype;
var PhotoSelector = function (options) {
this.$dialog = $('<div/>');
this.options = $.extend(... |
import express from 'express';
import logger from 'morgan';
import backendRouter from './backend.js';
import ws from "websocket";
// Initialize express
const app = express();
const port = process.env.PORT || 3000;
app.use(logger('dev'));
app.use('/', express.static('./src'));
app.use('/api', backendRouter);
// Start... |
/**
* 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 React from 'react'
import { BrowserRouter } from 'react-router-dom'
import { Provider } from 'react-redux'
const ProviderWrapper = ({ children, store }) => (
<Provider store={store}>
<BrowserRouter>
{ children }
</BrowserRouter>
</Provider>
)
export default ProviderWrapper |
'use strict'
module.exports = (config, server) => {
server.route({
method: 'GET',
path: '/track',
handler: require('../handlers/track')(config, server)
})
} |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
|
var canvas = document.querySelector("#lienzo");
var ctx = canvas.getContext("2d");
console.log(ctx);
// El método HTMLCanvasElement.getCOntext(): retorna un contexto de dibujo en el lienzo, o null si el identificador
/**
* CUADROS
*/
//Relleno
ctx.fillStyle = "cyan";
//RillRect(x1,y1,x2,y2)
ctx.fillRect(0,0,100... |
/**
* EasyUI for jQuery 1.9.4
*
* Copyright (c) 2009-2020 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
var _1=1;
function _2(_3){
$(_3).addClass("sidem... |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import axios from 'axios';
import VueAxios from 'vue-axios';
require('!style-loader!css-loader!./comm... |
import TemperatureMin20 from "./TemperatureMin20.svelte";
export default TemperatureMin20; |
/*
* Copyright (c) 2019, Livio, Inc.
* All rights reserved.
*
* 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 the fo... |
var global$1 = (typeof global !== "undefined" ? global :
typeof self !== "undefined" ? self :
typeof window !== "undefined" ? window : {});
// shim for using process in browser
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
function defaultSetTimout() {
throw new Error('setT... |
"use strict";function ReactDefaultBatchingStrategyTransaction(){this.reinitializeTransaction()}var _assign=require("object-assign"),ReactUpdates=require("./ReactUpdates"),Transaction=require("./Transaction"),emptyFunction=require("fbjs/lib/emptyFunction"),RESET_BATCHED_UPDATES={initialize:emptyFunction,close:function()... |
import React from 'react';
import translate from '../../../translate/translate';
const ZcparamsFetchModalRender = function() {
return (
<div>
<div className={ `modal modal-3d-sign zcparams-fetch-modal ${this.state.className}` }>
<div
onClick={ this.dismiss }
className="modal-clo... |
/* global window */
import React, { PureComponent } from 'react';
import { XVIZPanel } from 'streetscape.gl';
import { FloatPanel } from '@streetscape.gl/monochrome';
import { XVIZ_PANEL_STYLE, FLOAT_PANEL_STYLE } from './custom-styles';
const TITLE_HEIGHT = 28;
const LEFT_PANEL_WIDTH = 320;
const TIMLINE_HEIGHT = 11... |
var Transform = require('readable-stream/transform');
var util = require('util');
module.exports = function() {
var stream = new Transform({objectMode: true});
stream._transform = function(data, encoding, cb) {
if (!data.message) {
if (data.arguments) {
data.message = util.format.apply(this, dat... |
import React from 'react';
import styles from './styles.css';
import Anchor from '../../atoms/Anchor/index.js';
import { LinkTxt } from '../../atoms/Txt/index.js';
const defaultItems = [];
const Breadcrumb = ({ items = defaultItems }) => (
<ul className={ styles.root }>
{ items.map((item, idx) => (
<li ke... |
import React from 'react';
import { useHistory } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import PrimaryButton from '../../common/PrimaryButton';
const SearchCVEButton = ({ searchParams, ...style }) => {
const { t } = useTranslation();
const buttonTextT = t('cve-search.search');
... |
var cdb = require('cartodb.js-v3');
/**
* Header view model to handle state for dashboard header view.
*/
module.exports = cdb.core.Model.extend({
breadcrumbTitle: function() {
return 'Configuration';
},
isBreadcrumbDropdownEnabled: function() {
return false;
},
isDisplayingDatasets: function() ... |
export * from './core';
export * from './functions'; |
(function(angular) {
'use strict';
angular.module('controllerExample', [])
.controller('SettingsController2', ['$scope', SettingsController2]);
function SettingsController2($scope) {
$scope.name = 'John Smith';
$scope.contacts = [
{type:'phone', value:'408 555 1212'},
{type:'email', value:'john.smith@e... |
'use strict';
/**
* Module dependencies
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Cierreturnos Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
resources: '/api/cajaturnos',
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _co = require('co');
var _co2 = _interopRequireDefault(_co);
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _fsPromiseProxy = require('../fs-promise-proxy');
var fspp = _interopRequireWildcard(_fsPromi... |
// You should implement your task here.
module.exports = function towelSort (matrix) {
if (matrix === undefined) return [];
let out = [];
for (let i=0; i < matrix.length; i++) {
let jLength = matrix[i].length || 0;
for (let j=0; j<jLength; j++) {
if (i % 2 == 0) {out.push(matrix... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.25/esri/copyright.txt for details.
//>>built
define("esri/dijit/analysis/nls/countries",{root:{countryCodes:{WORLD:"World",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"A... |
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License
//
// 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 ri... |
import React from 'react'
import {useState, useEffect} from "react"
import { useSelector, useDispatch } from "react-redux"
import { getUsers, searchbyName, sortByAge } from '../action';
import { v4 } from "uuid"
import "../App.css"
export default function UserList() {
// const [users, setUsers] = useState([
... |
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O... |
"use strict";
var Configure = require("./Configure");
var Backbone = require("backbone");
var Syncing = require("../modeling/Syncing");
var noop = require("../util/noop");
var catchAjaxCallbackExceptions = require("../util/catchAjaxCallbackExceptions");
function App() {
return this.initialize.apply(this, argument... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BaseCard.types.js.map |
export { default as AccordionDefault } from './Default';
export { default as AccordionKitchenSink } from './KitchenSink';
export { default as AccordionMultiOpen } from './MultiOpen';
export { default as AccordionPreSelectedOpen } from './PreSelectedOpen'; |
const GeneratorCommand = require('./GeneratorCommand');
const BuildInstructions = require('./functions/BuildInstructions');
class BuildInstructionCommand extends GeneratorCommand{
execute(){
this._logger.log(this._MessageProvider.values.DEBUGGER_BUILD_INSTRUCTIONS);
let builder =... |
import React, { useState, useEffect } from 'react'
import EditUI from '../common/EditUI/editui'
import axios from 'axios'
const EditBlog = (props) => {
const data = props.location.state.data
const id = props.location.state.data._id
const [ title, setTitle ] = useState('')
const [ label, setLabel ] = useState('... |
import React from 'react';
import { List } from 'semantic-ui-react';
const TopList = ({ n, data, titleKey, subtitleKey }) => {
return (
<List divided ordered>
{data.slice(0,n).map((d, i) => {
<List.Item key={i}>
<List.Content>
<List.Header>{d[titleKey]}</List.Header>
... |
/**
*
* @type {module.Cache}
*/
module.exports = class Cache {
/**
* Cache route, to increase performance in the class search
* @param message
* @param driverCache
* @param callback
* @param paramsCallback
*/
async route(message, driverCache, callback, ...paramsCallback){
... |
(function() {
var EventEmitter, NoMQ, Replier, Requester, redis;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototy... |
// 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/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
... |
$(window).on('load', function() {
$('.level-bar-inner').each(function() {
var itemWidth = $(this).data('level');
$(this).animate({
width: itemWidth
}, 800);
});
});
jQuery(document).ready(function($) {
/*======= Skillset *=======*/
$(... |
"use strict";
const Cfg = require('briskly-json');
const fs = require('fs');
const path = require('path');
const logger = require('ls-logger');
var brisklyJson = Cfg.json;
exports.default = brisklyJson;
shimIncludes();
function shimIncludes() {
if (!brisklyJson.routes && brisklyJson.routes['include'])
retur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.