text
stringlengths
3
1.05M
const ciNotifications = ({ warn, fail }) => { const createWarnNotification = msg => { warn(msg); }; const createErrorNotification = msg => { fail(msg); }; return { createWarnNotification, createErrorNotification }; }; module.exports = ciNotifications;
from connexion.apps.flask_app import FlaskJSONEncoder import six from xpctl.xpserver.models.base_model_ import Model class JSONEncoder(FlaskJSONEncoder): include_nulls = False def default(self, o): if isinstance(o, Model): dikt = {} for attr, _ in six.iteritems(o.swagger_type...
/** * Created by xzx on 2016-06-15. */ define(['txt!../Diagnose/treatments.html', '../Diagnose/model/treatmentModel', '../Common/commonModel', 'bootstrapTable', 'amazeui', 'handlebars', 'backbone', "jctLibs", "chosen"], function (treatments, treatmentModel, commonModel, bootstrapTable, ai,...
"use strict"; const siteConfig = require("./config.js"); const postCssPlugins = require("./postcss-config.js"); module.exports = { pathPrefix: siteConfig.pathPrefix, siteMetadata: { url: siteConfig.url, title: siteConfig.title, subtitle: siteConfig.subtitle, copyright: siteConfig.copyright, di...
import React, { PureComponent } from 'react'; import { View,Text,StyleSheet, Animated, TouchableWithoutFeedback } from 'react-native'; import SmartIcons from '../SmartIcons' const STEP_STATUS = { CURRENT:'current', FINISHED:'finished', UNFINISHED:'unfinished' } export default class StepIndicator extends PureCo...
/** * Vertical alignment toolbar * Very similar to the AlignmentToolbar, but is meant for top/center/bottom vertical alignments * * The code is mostly from AlignmentToolbar */ import { __, Toolbar, } from './../../wp_imports' const { find } = lodash const { withViewportMatch } = wp.viewport const { withSe...
# Generated by Django 2.0.8 on 2019-01-11 18:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [("course_catalog", "0007_alters_created_on_field_20190111_1755")] operations = [ migrations.RenameField( model_name="course", old_name="last_updated", ...
const {DefinePlugin} = require("webpack") const define = ({name}) => new DefinePlugin({ "process.env": { NODE_ENV: JSON.stringify(name) } }) module.exports = define
import Vue from 'vue'; const _toString = Object.prototype.toString; const hasOwnProperty = Object.prototype.hasOwnProperty; function isFn (fn) { return typeof fn === 'function' } function isStr (str) { return typeof str === 'string' } function isPlainObject (obj) { return _toString.call(obj) === '...
'use strict'; var app = angular.module('myApp.locations.directives', []); app.directive('locationShow', ['Location', 'Auth', '$routeParams', '$location', '$localStorage', 'showToast', 'menu', '$pusher', '$route', '$rootScope', 'gettextCatalog', function(Location, Auth, $routeParams, $location, $localStorage, showToas...
import mysql.connector from mysql.connector import Error from model.poke_api import show_name def connec(): """ Function that establishes a connection to the database """ try: connection = mysql.connector.connect(host='localhost', database='pokemon', user='trainer', password='Trainer1*') ...
/* eslint max-len: off */ const ES_TEXT = 'Consciente de su patrimonio espiritual y moral, la Unión está fundada sobre los valores indivisibles y universales de la dignidad humana, la libertad, la igualdad y la solidaridad, y se basa en los principios de la democracia y el Estado de Derecho. Al instituir la ciudadanía ...
# Generated by Django 2.1.1 on 2018-09-15 12:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('showcase', '0005_portfolio_github_link'), ] operations = [ migrations.AlterField( model_name='portfolio', name='gith...
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{449:function(e,t,a){},493:function(e,t,a){"use strict";a(449)},531:function(e,t,a){"use strict";a.r(t);var n={name:"pagination-table",props:["options"],data:function(){return{columns:[{label:"Name",field:"name"},{label:"Age",field:"age",type:"number"},{label:"Cr...
{ const stats = ["strength","speed","intellect","combat"]; const onLoadStats = () => { const data = getCharmancerData(); if (data?.stats?.values?.["strength"]) { const updateHTML = {}; showChoices(["showstats"]); stats.forEach(stat => updateHTML[`...
const urlParams = new URLSearchParams(window.location.search) //=======// // Setup // //=======// const canvas = document.createElement("canvas") const context = canvas.getContext("2d") canvas.style["background-color"] = "rgb(23, 29, 40)" canvas.style["image-rendering"] = "pixelated" on.load(() => { document.body.a...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google LLC 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:...
exports.level = { "goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C2\",\"id\":\"master\"},\"bugFix\":{\"target\":\"C4\",\"id\":\"bugFix\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{...
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 load("@bazel_tools//tools/cpp:lib_cc_configure.bzl", "get_cpu_value") _os_info_bzl_template = """ cpu_value = "{CPU_VALUE}" is_darwin = cpu_value == "darwin" or cpu_value == "darwin_...
/* ************************************************************** Copyright 2011 Zoovy, 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...
/* Highcharts JS v9.3.1 (2021-11-05) 3D features for Highcharts JS License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(E){a(E);a.H...
import isString from 'lodash/isString'; export default (function (e, defaultMessage) { if (isString(e)) { defaultMessage = e; } else if (e instanceof Error) { defaultMessage = e.message; } else if (e && e.message) { defaultMessage = e.message; } if (typeof console !== 'undefi...
import setuptools with open("README.rst", "r") as fh: long_description = fh.read() setuptools.setup( name="pkgname", # Replace with your own name version="0.0.1", author="Example Author", author_email="author@example.com", description="A small example package", long_description=long_descri...
import React from 'react'; import './styles.css'; function DevItem ({ dev }) { return ( <li className="dev-item"> <header> <img src={dev.avatar_url} alt={dev.name} /> <div className="user-info"> <strong>{dev.name}</strong> <span>{dev.techs.join(', ')}</span> </di...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, ArgumentsRequired, ExchangeNotAvailable, InvalidNonce, InsufficientFunds, OrderNotFound, DDoSProtection, InvalidOrder, AuthenticationError, RateLimitExceede...
import 'dotenv/config'; export default { host: process.env.MAIL_HOST, port: process.env.MAIL_PORT, secure: false, auth: { user: process.env.MAIL_USER, pass: process.env.MAIL_PASS, }, default: { from: 'MeetApp Team <noreply@meetapp.com>', }, };
# # Copyright (c) 2016, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensource/licensing # import pyboard impo...
#!/usr/bin/env node require('./common'); const axios = require('axios'); const moment = require('moment'); const timeout = ms => new Promise(res => set_timeout(res, ms)); const cron = { async calculate_score() { let users = await db.users .find_all(); for (const user of users) { ...
const yargs = require('yargs'); const Server = require('./app'); const argv = yargs .usage('anywhere [option]') .option('p', { alias: 'port', describe: '端口号', default: '9527' }) .option('h', { alias: 'hostname', describe: 'host', default: '127.0.0.1' }) .option('d', { alias: 'ro...
// @flow import { ipcRenderer } from 'electron'; import { ipcConsts } from '/vars'; class PrintService { static print({ content }: { content: string }) { ipcRenderer.send(ipcConsts.PRINT, { content }); } } export default PrintService;
/** * Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors * All rights reserved. * * This source code is licensed under the FreeBSD license found in the * LICENSE file in the root directory of this source tree. */ module.exports = exports = function (pathQmBinary) { var qm...
from defx.util import error from defx.context import Context from defx.base.source import Base from paramiko import Transport, SFTPClient, RSAKey import re from pathlib import Path import site import typing from pynvim import Nvim site.addsitedir(str(Path(__file__).parent.parent)) from sftp import SFTPPath # noqa: E4...
import { Scene } from 'phaser' import playerImg from '../../assets/player.png' export class Scene01 extends Scene { constructor(config) { super(config); } preload() { this.load.image("player", playerImg); } create() { const player = this.add.image(0, 0, 'player'); } }
#!/usr/bin/env python3 from libsw import input_util, command_index def _help(): print('sw email (list|listdomain[s]) # List domains registered in the email system and their associated system users') print('sw email listuser[s] # List all email accounts') print('sw email (add|create) [user@example.com] ...
/* global _wpCustomizeNavMenusSettings, wpNavMenu, console */ ( function( api, wp, $ ) { 'use strict'; /** * Set up wpNavMenu for drag and drop. */ wpNavMenu.originalInit = wpNavMenu.init; wpNavMenu.options.menuItemDepthPerLevel = 20; wpNavMenu.options.sortableItems = '> .customize-control-nav_menu_it...
#!/usr/bin/env python # coding=utf-8 """ © 2014 LinkedIn Corp. 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 app...
import torch pretrained_weights = torch.load("./experiments/try/ssd512_coco_vgg16_caffe_120e_20181221-d48b0be8.pth") num_class = 2 ''' pretrained_weights['state_dict']['bbox_head.0.fc_cls.weight'].resize_([num_class, 1024]) pretrained_weights['state_dict']['bbox_head.0.fc_cls.bias'].resize_([num_class]) pretrained_we...
export default function (session) { return { request: (config) => { if (session.isAuthenticated()) { config.headers.Authorization = `Bearer ${session.user.token}`; } return config; } }; };
import '@/styles/globals.css'; import { MDXProvider } from '@mdx-js/react'; import { ThemeProvider } from 'next-themes'; import MDXComponents from '@/components/MDXComponents'; function MyApp({ Component, pageProps }) { return ( <ThemeProvider attribute="class"> <MDXProvider components={MDXComponents}> <Co...
var searchData= [ ['quick_20start_20guide_20for_207_2dsegment_20display_20driver_450',['Quick start guide for 7-segment Display Driver',['../display_7seg_driver_quickstart.html',1,'']]], ['quick_20start_20guide_20for_20hih8120_20temperature_20and_20humidity_20driver_451',['Quick start guide for HIH8120 Temperature ...
/* AngularJS v1.4.0-build.3928+sha.b8dbdb0 (c) 2010-2015 Google, Inc. http://angularjs.org License: MIT */ (function(I,d,B){'use strict';function D(f,q){q=q||{};d.forEach(q,function(d,h){delete q[h]});for(var h in f)!f.hasOwnProperty(h)||"$"===h.charAt(0)&&"$"===h.charAt(1)||(q[h]=f[h]);return q}var w=d.$$minErr("$r...
export default (fetchedQuestion) => { const { content, id, title, image, title_cat: category, id_cat: categoryId, user_id: userId, added_at: addedAt, } = fetchedQuestion; const addedAtDate = new Date(addedAt); return { content, id, title, userId, image, ca...
#Problem URL: https://www.hackerrank.com/challenges/migratory-birds/problem def migratoryBirds(arr): occurences = [0]*6 for b in arr: occurences[b] += 1 return occurences.index(max(occurences))
import unittest from rx import operators as ops from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created =...
def bishopAndPawn(bishop, pawn): return abs(ord(bishop[0]) - ord(pawn[0])) == abs(ord(bishop[1]) - ord(pawn[1]))
import React from 'react'; import PropTypes from 'prop-types'; import { graphql } from '@apollo/react-hoc'; import gql from 'graphql-tag'; import { get, omit, update } from 'lodash'; import memoizeOne from 'memoize-one'; import { Form } from 'react-bootstrap'; import { defineMessages, FormattedMessage, injectIntl } fro...
############################################################################################## # resmap.py ################################################################################## ############################################################################################## # Defines file mappings for local r...
//import { request } from "http"; const https = require('https') module.exports = tiny => { tiny.listen(/^netlify (.+)/i, (send, match) => { if(match[1].trim() === 'deploy') { const options = { hostname: 'api.netlify.com', path: process.env.NETLIFY_HOOK, method: 'POST' }; ...
var should = require('should') // eslint-disable-line var parseBaseURL = require('../lib/parse-base-url') describe('parseBaseURL', function () { it('should parse index and type from the input-host', function () { parseBaseURL('http://localhost:9200/index/type').should.eql({ url: 'http://localhost:9200/inde...
export { ActionsPopup } from './actionsPopup';
// @flow import * as Colors from '../../../common/constants/Colors' import { scale } from '../../util/scaling.js' const InputStyles = { container: { position: 'relative', borderBottomColor: Colors.PRIMARY, borderBottomWidth: 1, width: '100%' }, inputStyle: { position: 'relative', color: ...
const { moveToAndThen, } = require('./lib') const TARGET_FLAG_COLOR = COLOR_PURPLE /** * @param {Creep} creep */ function run(creep) { const flag = _.filter(Game.flags, a => a.color === TARGET_FLAG_COLOR)[0] if (flag) { // to make sure room is visable if (flag.pos.roomName !== creep.pos....
#import modules import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.datasets import make_moons, make_circles, m...
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from 'react'; import { useDispatch, shallowEqual, useSelector } from 'react-redux'; import { Col, Row } from 'react-styled-flexboxgrid'; import OpenInNewIcon from '@material-ui/icons/OpenInNew'; import IconButton from '@material-ui/core/Button'; import { makeS...
var searchData= [ ['geo_5funit',['geo_unit',['../classcpp__redis_1_1client.html#aa5998536fd32ff4387c89be514997620',1,'cpp_redis::client']]], ['geo_5funit_5fto_5fstring',['geo_unit_to_string',['../classcpp__redis_1_1client.html#aa8a686097a5340eb50e838f14342e302',1,'cpp_redis::client']]], ['get',['get',['../structc...
# # Copyright 2020 XEBIALABS # # 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 use, copy, modify, merge, publish, distribute, su...
# (c) 2018, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' unit test template for ONTAP Ansible module ''' from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json import pytest from ansible_collections.netapp.on...
topSuite("Ext.container.Container", ['Ext.grid.Panel', 'Ext.layout.container.Anchor', 'Ext.form.field.Text', 'Ext.form.field.Number', 'Ext.form.field.TextArea', 'Ext.form.FieldSet', 'Ext.window.Window', 'Ext.container.Viewport', 'Ext.app.ViewController', 'Ext.form.field.ComboBox', 'Ext.button.Button'], f...
import update from './update'; import setStateByPath from './setStateByPath'; import replaceStateByPath from './setStateByPath'; import wrapReducerWithSetGlobalState from './wrapReducerWithSetGlobalState'; import initialStateReducer from './initialStateReducer'; import connect from './connect'; export { update, wr...
import {Link} from 'react-router-dom' function scrollToDonate(){ window.scrollTo(0, window.scrollY+450); } const Banner = () => { return ( <div className="hero-banner"> <div className="hero-banner-text"> <span className="bold">COME, LAY THE FOUNDATION OF EDUCATION</s...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'turi.settings') try: from django.core.management import execute_from_command_line except ImportE...
import chroma from "chroma-js" /* ref: https://coolors.co/22223b-4a4e69-9a8c98-c9ada7-f2e9e4 */ const c11 = chroma(`#22223b`) const c12 = chroma(`#4a4e69`) const c13 = chroma(`#9a8c98`) const c14 = chroma(`#c9ada7`) const c15 = chroma(`#f2e9e4`) /* ref: https://coolors.co/666a86-788aa3-92b6b1-b2c9ab-e8ddb5 */ const c2...
module.exports=(()=>{var n={64:(n,i,o)=>{var a=o(413);var p=["write","end","destroy"];var t=["resume","pause"];var f=["data","close"];var e=Array.prototype.slice;n.exports=duplex;function forEach(n,i){if(n.forEach){return n.forEach(i)}for(var o=0;o<n.length;o++){i(n[o],o)}}function duplex(n,i){var o=new a;var c=false;f...
import makeStyles from '@mui/styles/makeStyles'; import { borderedInputBaseStyles, borderedInputLabelStyles } from './borderedTextField.styles'; var borderedTextFieldStylesHook = { useInputBase: makeStyles(borderedInputBaseStyles, { name: 'BorderedTextField' }), useInputLabel: makeStyles(borderedInputLabelSty...
__author__ = 'Razique'
import React, { useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; import { Bar } from '@ant-design/charts'; const DemoBar = () => { const data = [ { type: '家具家电', sales: 38, }, { type: '粮油副食', sales: 52, }, { type: '生鲜水果', sales: 61, }, ...
/** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, Gaudenz Alder */ import mxRectangle from '../util/mx_rectangle'; import mxPoint from '../util/mx_point'; /** * Class: mxCellState * * Represents the current state of a cell in a given <mxGraphView>. * * For edges, the edge label position i...
from typing import Any, List import hydra import torch from pytorch_lightning import LightningModule from torchmetrics.regression.mean_absolute_error import MeanAbsoluteError from torchmetrics.regression.mean_squared_error import MeanSquaredError class LitModule(LightningModule): def __init__(self, net): ...
// Doing this way, because ES6 Singleton pattern didn't work somehow let accounting = { // Example of how authorization per actions can be done userRegister(user) { if(false) { throw new Error('Action cannot be billed'); } return true; } }; module.exports = accounting;
import torch def get_accuracy(prototypes, embeddings, targets): """Compute the accuracy of the prototypical network on the test/query points. Parameters ---------- prototypes : `torch.FloatTensor` instance A tensor containing the prototypes for each class. This tensor has shape `(met...
import {Parser, Plugin as CorePlugin} from 'fma'; import Assembler from './Assembler'; import InstructionCompiler from './InstructionCompiler'; import path from 'path'; import FMA_INIT from './snes65816'; export default class Plugin extends CorePlugin { constructor() { super(); this.assembler = new Assemble...
import format from '/utils/common/js/format' import { chooseImage, getCurrentLocation } from '/utils/API' import { questionnaireList,signDetail,signOutMaintain } from '/api/sign/index' import Global from '/Global' let app = new Global() Page({ data: { shopType: '', // 当前客户类型 shopIndex: '', // 客户类型索引 sho...
""" 1Channel Themepaks Copyright (C) 2014 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
import base64 from ray import cloudpickle from collections import deque from enum import Enum, unique import hashlib import re from typing import (Dict, Generic, List, Optional, Callable, Set, TypeVar, Iterator, Any) import unicodedata from dataclasses import dataclass import ray from ray import O...
from apps.product.models import Tag, Product from apps.users.models import CustomUser from django.core.management.base import BaseCommand class Command(BaseCommand): help="Creates tags" def handle(self, *args, **kwargs): #farmer = CustomUser.objects.create(photo="happyeggs.jpg", username="EcoEgg", fir...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueDragScroll=t():e.VueDragScroll=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=...
import pandas as pd import matplotlib.pyplot as plt from frames import games, info, events plays = games.query("type == 'play' & event != 'NP'") plays.columns = ['type', 'inning', 'team', 'player', 'count', 'pitches', 'event', 'game_id', 'year'] pa = plays.loc[plays['player'].shift() != plays['player'], ['year', 'ga...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # OCDS documentation build configuration file, created by # sphinx-quickstart on Fri Dec 11 15:07:47 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
'use strict'; var assert = require('assert'); var base = require('./base_test.js'); var config = base.config; describe('Balance', function() { this.timeout(0); describe('#get_balance()', function() { it('should get balance without error', function(done) { base.client.get_balance(function(...
export { launchRadarsManagementConfigurator , starterTemplate} import { getViewpoint, getData, getState, publishRefreshRadar } from './data.js'; import { unselectAllTabs,uuidv4, capitalize, getPropertyFromPropertyPath, populateFontsList, createAndPopulateDataListFromBlipProperties, undefinedToDefined, getAllKeysMappedT...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var _20 = { "elem": "svg", "attrs": { "xmlns": "http:/...
const hello = require('./../services/helloWorld'); test('should return Hello world ', () => { expect(callHello({data: 'data'})).toEqual({ statusCode: 200, body: JSON.stringify({ message: "Hello world", input: { data: "data" } }) }); }...
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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 la...
/** * 正多边形 * @module zrender/shape/Isogon * @author sushuang (宿爽, sushuang0322@gmail.com) */ define(function (require) { 'use strict'; var PI = Math.PI; var sin = Math.sin; var cos = Math.cos; return require('../Path').extend({ type: 'isogon', shape: { ...
import time import threading def countdown(count): while(count >= 0): print("{} Counting down buddy! {}".format(threading.current_thread().name, count)) count -= 1 time.sleep(3) def countup(count): while(count <= 10): print("{} Counting up buddy! {}".format(threading.current_thread().name, count)) count...
var pathUtils = require("path_utils"); var filePath = module.exports; Object.defineProperty(filePath, "separator", { enumerable: false, configurable: false, writable: false, value: "/" }); Object.defineProperty(filePath, "delimiter", { enumerable: false, configurable: false, writable: fa...
import React from 'react' import { MaterialTable } from '../helpers' import { format } from 'date-fns' const UsuariosLogados = ({ usuarios }) => { return ( <> <MaterialTable title='Usuários logados hoje' loaded columns={[ { title: 'Login', field: 'login' }, { tit...
;(function ($, window) { let ele = null, exzoom_img_box = null, boxWidth = null, boxHeight = null, exzoom_img_ul_outer = null, exzoom_img_ul = null, exzoom_img_ul_position = 0, exzoom_img_ul_width = 0, exzoom_img_ul_max_margin = 0, exzoom_nav =...
'use strict'; [{ zoneId: ZoneId.TheNavelExtreme, timelineFile: 'titan-ex.txt', timelineTriggers: [ { id: 'TitanEx Mountain Buster', regex: /Mountain Buster/, beforeSeconds: 7, condition: function(data) { return data.role == 'healer' || data.role == 'tank'; },...
(function() { var gwin = this; this.UrlParameter = function() { this.get = function(name, location_search_string) { location_search_string = location_search_string || gwin.location.search; var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = location_s...
const express = require('express') const professors = require('./app/controllers/professors') const students = require('./app/controllers/students') const routes = express.Router() routes.get('/', function(req, res) { return res.redirect('/professors?p=1&limit=2') }) routes.get('/professors', professors.index) r...
import React, {Component} from 'react'; import Input from 'antd/lib/input'; import 'antd/lib/input/style'; /** * 输入框模板 */ class Index extends Component { constructor(props) { super(props); } render(){ return ( <div> <Input {...this.props...
var logger = require('../logger'), utils = require('../utils'), argParse = require('../args').parse, couchdb = require('../couchdb'), kansorc = require('../kansorc'); json = require('../data-stream'), async = require('async'), urlParse = require('url').parse, urlFormat = require('url').f...
exports.run = async function (Yuno, msg, args) { if (!msg.member.hasPermission('MANAGE_SERVER')) { return msg.channel.send('Insufficient permissions.'); } if (!args[0] || !args[1]) { return msg.channel.send('Missing required arguments.'); } const roleLevel = args.shift(); if (...
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase from .. import models from kolibri.core import error_constants from kolibri.co...
/** * The file enables `@/store/index.js` to import all vuex modules * in a one-shot manner. There should not be any reason to edit this file. */ const files = require.context('.', false, /\.js$/) const modules = {} files.keys().forEach(key => { if (key === './index.js' || key === 'LRU.js') return modules[key....
/* app/controllers/users.server.controller.js */ 'use strict' var User = require('mongoose').model('User'), passport = require('passport'); var getErrorMessage = function (err) { var message = ''; if (err.code) { switch (err.code) { case 11000: case 11001: ...
# 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 # d...
// @flow import type { RequestHeader } from '../../models/request'; export function getBasicAuthHeader( username: ?string, password: ?string ): RequestHeader { const name = 'Authorization'; const header = `${username || ''}:${password || ''}`; const authString = Buffer.from(header, 'utf8').toString('base64'...
var ExchangeScene = cc.Scene.extend({ onEnter: function () { this._super(); this.scheduleOnce(this.updateTime, 0.5); }, ctor: function (args) { this._super(); //console.log(" ExchangeScene ctor"); FrameCache.addSpriteFrames(res.common_plist); FrameCache.addS...