text
stringlengths
3
1.05M
var express = require('express'); var requestUtils = require('../lib/middleware/request'); var drakovMiddleware = require('../index.js').middleware; // you would use the following line for require Drakov properly in your own app // var drakov = require('drakov'); var app = express(); app.use(requestUtils.getBody); //...
# coding: utf8 from __future__ import unicode_literals import numpy from spacy.lang.en import English from spacy.vocab import Vocab def test_issue4725(): # ensures that this runs correctly and doesn't hang or crash because of the global vectors vocab = Vocab(vectors_name="test_vocab_add_vector") data = ...
import os import questionary import yaml from packaging.version import Version from commitizen import cmd, factory, out from commitizen.__version__ import __version__ from commitizen.config import BaseConfig, JsonConfig, TomlConfig, YAMLConfig from commitizen.cz import registry from commitizen.defaults import config_...
#!/usr/bin/python #coding: utf8 import sys import RPi.GPIO as GPIO import time import sys import tornado.ioloop import tornado.web import tornado.httpserver import tornado.options from tornado.options import define,options define("port",default=80,type=int) IN1 = 12 IN2 = 16 IN3 = 20 IN4 = 21 def init()...
import Food from '../model' import co from 'co' import QueryParser from '../../utils/query-parser' // Mapping of valid filter keys const KEYMAP = { 'name': { type: 'string', value: 'name' }, 'short_name': { type: 'string', value: 'short_name' }, 'campus': { type: 'string', value: 'campus' }, 'address...
// signup.html $('input#id_username').addClass('form-control') $('input#id_email').addClass('form-control') $('input#id_password1').addClass('form-control') $('input#id_password2').addClass('form-control') $('input#id_password').addClass('form-control') $('input#id_login').addClass('form-control') $("input[name^='attac...
#!/usr/bin/env python3 # Copyright 2019 Stanford University # # 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 applicab...
import React from 'react'; import styled from 'styled-components'; const Root = styled.div([], { width: '80%' }); export default function WideLayout({children}) { return ( <Root> {children} </Root> ); } const OtherRoot = styled.div([], { width: '80%', fontSize: '0.8em' }); export function Wi...
import React from 'react'; import { academyWinners } from '../../constants/awardsList'; import styled from 'styled-components'; import AwardCard from './AwardCard'; const AcademyWinners = () => { return ( <section className="py-8"> <div className="container mx-auto px-4"> <h2 className="mb-8">Academy...
/** * @fileoverview Validate JSX indentation * @author Yannick Croissant * This rule has been ported and modified from eslint and nodeca. * @author Vitaly Puzrin * @author Gyandeep Singh * @copyright 2015 Vitaly Puzrin. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. Copyright (C) 2...
import pandas as pd import numpy as np #Criando um DataFrame com coluna de datas data = pd.date_range('20200321', periods=10) #10 dias df = pd.DataFrame(np.random.randn(10, 4), index = data, columns = list('ABCD')) #Colocando a data como index print(df) print(df.mean()) #Cálculo da média das colunas print(df.mea...
import { defineStore } from "pinia"; import { getUserPlaylist, userLikedSongsIDs } from "../apis/user"; import { usePlayer } from "./player"; export const useStore = defineStore("main", { state: () => { return { showOverlay: false, showLyric: false, // 登陆相关 isLoggedIn: -1, // -1: 未登录, 1:...
define([ "dojo/_base/declare", "clipart/_clipart" ], function(declare, _clipart){ return declare("clipart.Chat", [_clipart], { }); });
import BasicListItem from './BasicListItem'; export default BasicListItem;
const {Ina219} = require('../lib/index'); const ina219 = new Ina219(); ina219.init().then((initResult) => { if (initResult === true) { setInterval(async () => { console.log('busVoltage (V):', await ina219.getBusVoltage_V()); console.log('shuntVoltage (mV):', await ina219.getShuntVoltage_mV()); ...
import string import tempfile import pathlib import random from os import environ from typing import Callable, Tuple import pytest import alembic.config from fastapi import FastAPI from fastapi.testclient import TestClient from amqtt.client import MQTTClient, QOS_2 from tests.certificates import PRIVATE_KEY, PUBLIC_K...
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
/* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different ...
import { s as stream } from './chunk-c3b08ff9.js'; import './events.js'; import './chunk-4bd36a8f.js'; import './chunk-44e51b61.js'; import './chunk-ce0fbc82.js'; import './chunk-b4205b57.js'; import './chunk-5decc758.js'; import './chunk-2eac56ff.js'; import './chunk-4ccc3a29.js'; var _stream_passthrough = stream.Pas...
let url = require("url"); let MemoryCache = require("./memory-cache"); let t = { ms: 1, second: 1000, minute: 60000, hour: 3600000, day: 3600000 * 24, week: 3600000 * 24 * 7, month: 3600000 * 24 * 30, }; let instances = []; let matches = function (a) { return function (b) { re...
kelvin = float(input('digite a temperatura em kelvin: ')) celsius = kelvin - 273.15 print(f'A temperatura de {kelvin}° kelvin é equivalente a {celsius}° celsius')
var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource<br><a href="/">Back to Home</a>'); }); module.exports = router;
sexo = str(input('Digite seu sexo: [M/F] ')).upper()[0].strip() # fatiamento pegando só a primeira letra upper()[0] while sexo !='M' and sexo !='F': # sexo not in 'MnFn' print('Sexo inválido!!') sexo = str(input('Digite novamente seu sexo: [M/F] ')).upper()[0].strip() if sexo == 'M': print('O sexo informa...
//wrapper são objetos que implementam a função map //que também é um 'wrapper' de um valor function TipoSeguro(valor) { return { valor, invalido() { return this.valor === null || this.valor === undefined; }, map(fn) { if(this.invalido()) { ret...
const localFunctions = { renderUtterance (uObj, xmlObj, type = 'plain', highlight, isSearch = false) { // console.log('renderUtterance', type, uObj, xmlObj) if (type === 'xml-view') { let aXml = xmlObj.xml.split('\n') aXml = aXml.filter(l => l.trim().length > 0) let lS = aXml.length > 0 && a...
$(document).ready(function() { function explode(){ $("#block-answer").addClass("").removeClass("show-block-valid show-block-error"); } var timeoutHandle = window.setTimeout(function(){explode();},4000); $("#contact-form [type='submit']").click(function(e) { e.preventDefault(); ...
var express = require("express"); var bodyParser = require('body-parser'); var routes = require('./routes'); var app = express(); app.listen(4242, function() { console.log('Puerto 4242 escuchando'); }); app.use(bodyParser.urlencoded({extended: true})); app.use('/', routes); module.exports = app;
from sanic import Sanic from .config import get_configuration from .blueprints import bp from .blueprints.events import events def create_app(): app = Sanic(__name__) config = get_configuration() app.config.from_object(config) app.blueprint(bp) app.blueprint(events) return app
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Transaction = void 0; const address_1 = require("./cry/address"); const blake2b_1 = require("./cry/blake2b"); const secp256k1_1 = require("./cry/secp256k1"); const rlp_1 = require("./rlp"); /** Transaction class defines VeChainThor's m...
var convert = require('lodash/fp/convert'), func = convert('lte', require('lodash/lte')); func.placeholder = require('lodash/fp/placeholder'); module.exports = func;
var searchData= [ ['can_5faccess_5fat_5findex',['can_access_at_index',['../c_j_s_o_n_8c.html#ae210aa01f1afe7510658c392f0f6e128',1,'cJSON.c']]], ['can_5fread',['can_read',['../c_j_s_o_n_8c.html#a2257377f8b81f4f76a16b698f681af34',1,'cJSON.c']]], ['cannot_5faccess_5fat_5findex',['cannot_access_at_index',['../c_j_s_o...
var path = require('path'); var PrebuildConfig = function (args) { this._args = args ? args.map(function (arg) { return arg.replace(/\/$/, ''); }) : []; this._nodes = {}; this._targets = {}; }; PrebuildConfig.prototype.hasNode = function (node) { return this._nodes[node]; }; PrebuildConfi...
export default { strict: require("./other/strict"), _validation: require("./internal/validation"), "validation.undeclaredVariableCheck": require("./validation/undeclared-variable-check"), "validation.react": require("./valida...
import React from 'react'; const ListItem = () => { return( <div> <h3>This boilerplate includes</h3> <ul> <li>React (duh)</li> <li>Webpack (CSS loader, React conversion and bulding, NO JSX LOADER)</li> <li>Babel</li> </ul> </div> ) } export d...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg...
/** * @file images.js * @description Get images and update HTML markup */ // REQUIRE // ----------------------------- const cwd = process.cwd(); const utils = require('../utils/util/util.js'); const Logger = require('../utils/logger/logger.js'); const SVGO = require('svgo'); const imagemin = require('imagemin'); c...
CKEDITOR.plugins.addExternal( 'cortex_media_insert', '/assets/ckeditor/plugins/cortex_media_insert/' ); CKEDITOR.editorConfig = function( config ) { config.allowedContent = true; config.extraPlugins = 'cortex_media_insert'; config.toolbarGroups = [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ]...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } import { once } from './utils'; export var Events = function Events(config) { var _this = this; _classCallCheck(this, Events); this.start = null; this.inte...
'use strict'; import React from 'react-native'; let { EdgeInsetsPropType, Image, NativeMethodsMixin, Platform, requireNativeComponent, StyleSheet, View, UIManager, processColor, ColorPropType, } = React; import deprecatedPropType from 'react-native/Libraries/Utilities/deprecat...
import { runAction } from 'cerebral/test'; import { setTrialSessionWorkingCopyKeyAction } from './setTrialSessionWorkingCopyKeyAction'; describe('setTrialSessionWorkingCopyKeyAction', () => { it('should reset the form state', async () => { const result = await runAction(setTrialSessionWorkingCopyKeyAction, { ...
module.exports = client => { client.on('messageReactionRemove', (reaction, user) => { if(reaction.partial) try{ reaction.fetch(); }catch(e){ console.error(e); return; } if (!reaction.message.guild) return; db...
/* eslint-disable camelcase */ import React from 'react'; import { render, mount } from 'enzyme'; import toJson from 'enzyme-to-json'; import OperatingSystemCard from './OperatingSystemCard'; import configureStore from 'redux-mock-store'; import { osTest, rhsmFacts } from '../__mock__/selectors'; describe('OperatingSy...
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from erpnext.accounts.report.non_billed_report import get_ordered_to_be_billed_data def execute(filters=None): columns = ge...
const { check, validationResult } = require('express-validator') module.exports = { validateSingup: [ // email check('email', 'Email is required').exists(), check('email', 'Invalid email address') .isEmail().isLength({ max: 35, min: 5 }) .isString(), // pa...
$(document).ready(function() { $('#docs pre code').each(function(){ var $this = $(this); var t = $this.html(); $this.html(t.replace(/</g, '&lt;').replace(/>/g, '&gt;')); }); function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }; $(document)....
# Copyright 2008 the V8 project authors. 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 conditi...
export default [ { match: { // match everything }, callback: { url: 'http://resource/.mu/delta', method: 'POST', }, options: { resourceFormat: 'v0.0.1', gracePeriod: 250, ignoreFromSelf: true, }, ...
# -*- coding: utf-8 -*- """This module provides the XMLTestRunner class, which is heavily based on the default TextTestRunner. https://github.com/danielfm/unittest-xml-reporting @brief This has been hacked from the original so that the correct run times are saved in the xml reports for TestCases that have multiple t...
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //--------------------------------------------------------...
webpackJsonp([3,4],[function(e,t,n){n(183),n(668),e.exports=n(872)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(90)},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://f...
"""module for the blender object of Peaky and Stretechy.""" from __future__ import annotations import dataclasses from typing import Dict, Tuple import bpy from mathutils import Vector import numpy as np from two4two._blender import butils import two4two.utils @dataclasses.dataclass class BoneRotation: r"""Sp...
const newman = require("newman"); // require newman in your project // call newman.run to pass `options` object and wait for callback newman.run( { collection: require("./test/Postman-Echo-Test.postman_collection.json"), reporters: "cli" }, function(err) { if (err) { throw err; } consol...
import pytest from base.client_base import TestcaseBase from common import common_func as cf from common import common_type as ct from utils.util_log import test_log as log from common.common_type import CaseLabel, CheckTasks prefix = "delete" half_nb = ct.default_nb // 2 tmp_nb = 100 tmp_expr = f'{ct.default_int64_f...
import collections import ctypes import ctypes.wintypes import os import socket import struct import threading import time import configargparse from pydivert import enum from pydivert import windivert from six.moves import cPickle as pickle from six.moves import socketserver PROXY_API_PORT = 8085 class Resolver(ob...
"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...
'W'", "'S'", "'D'", "'E'", "'Q'", "'Z'", Key.ctrl_l, Key.shift] log = {'movement': 0, 'useless': 0, 'begin_time':time(), 'label':1}
# analyzes json files import pandas as pd import json ''' df = pd.read_csv('titanic.csv') print(df) df = df.drop(['Name', 'Siblings/Spouses Aboard', 'Parents/Children Aboard'], axis=1) print(df.head(8)) print(df['Survived'][4]) ''' def get_top_k_count(real_topk, top1 = 10, top2 = 100, top3 = 1000): # takes in...
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"2r/k":function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),i=a.n(n),r=a("IJQQ"),l=a("15bR"),o=a("WLZb"),c=a("vOnD"),d=a("Wbzz"),s=a("9eSz"),m=a.n(s),p=a("NmYn"),u=a.n(p),f=a("PvO4"),g=c.default.section.withConfig({displayName:"style__TagContainer",componentId:"f...
!function(e){const i=e.ne=e.ne||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"०% मध्ये १%","Block quote":"ब्लक उद्धरण",Bold:"बोल्ड","Bulleted List":"गोली चिन्ह अङ्कित सूची",Cancel:"रद्द गर्नुहोस्","Cannot upload file:":"फाइल अपलोड गर्न मिल्दैन","Centered image":"केन्द्रित तस्वीर","Change image text altern...
from __future__ import absolute_import import decimal import os import dask.dataframe as dd import pandas as pd import pytest import ibis.expr.datatypes as dt from ... import connect @pytest.fixture(scope='module') def df(): pandas_df = pd.DataFrame( { 'plain_int64': list(range(1, 4)), ...
import React from 'react'; import { Link } from 'react-router-dom' // Bootstrap import { Table, Button } from 'react-bootstrap'; const ReportList = ({results, input}) => { function renderTags(tags){ if (tags.length > 0) { return ( <td>{tags.map(tag => <Button key={tag} variant="inf...
import os def arrange_parameter_value(parameter_value): # For now, we will not allow dict and set; but handle them in case... if(isinstance(parameter_value, str)): value=__add_quotes_around_val(parameter_value) elif(isinstance(parameter_value, list)): value=["["] for val in paramete...
const App = require('../../app/App') const { BOOTSTRAP_CONFIG, BOOTSTRAP_PAGES } = require('../../utils/constants') test('add custom GraphQL object types', async () => { const app = await createApp(api => { api.loadSource(({ addCollection, addSchemaTypes, schema }) => { addCollection('Post').addNode({ ...
(function () { "use strict"; /** * @ngdoc function * @name ma.MrkOpt.controller : ma.MrkOptCtrl * 코드관리 */ angular.module("edtApp.common.modal") .controller("modal.itemCfct", ["$scope", "$http", "$q","$modalInstance", "$log", "ma.MrkOptSvc", "APP_CODE", "$timeout", "Page...
# coding: utf-8 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignRight = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignRight = pure(EditorFormatAlign...
OC.L10N.register( "calendar", { "Hello," : "Hola,", "We wanted to inform you that %s has published the calendar »%s«." : "Quiximos informate de que %s espublizó'l calendariu «%s»", "Open »%s«" : "Abrir «%s»", "Cheers!" : "¡Salú!", "Calendar" : "Calendariu", "Today" : "Güei", "Day" : ...
import torch from rlpyt.algos.pg.base import PolicyGradientAlgo, OptInfo from rlpyt.agents.base import AgentInputs, AgentInputsRnn from rlpyt.utils.tensor import valid_mean from rlpyt.utils.quick_args import save__init__args from rlpyt.utils.buffer import buffer_to, buffer_method from rlpyt.utils.collections import n...
// a simple babel preset to ensure presets are merged and applied module.exports = () => ({ plugins: [['replace-identifiers', { sum: 'replacedSum' }]], });
import Head from 'next/head'; import React from 'react'; import Layout from '../components/utils/Layout'; import StyledLink from '../components/utils/StyledLink'; import WidthWrapper from '../components/utils/WidthWrapper'; const PrivacyPolicy = () => { return ( <Layout> <Head> <title>Privacy Polic...
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
#!/usr/bin/env python3 # #### # Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu> # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software # and its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in...
var rx_escapable = /[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; var gap, indent, meta = { // table of character substitutions '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', ...
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Meta analysis of meta compositions in Overwatch', author='Alexis Mortelier, Christopher Jacquiot', license='', )
import Vue from 'vue' import Router from 'vue-router' import Categorias from '../components/Categorias' import Usuarios from '../components/Usuarios' import Home from '../components/Home' import Produto from '../components/Produto' import FormPedidos from '../components/FormPedidos' import Pedido from "../components/Pe...
var WIN_W = 600; var WIN_H = 966; var urlString = "/Public/game/catchfish/"; var backLayer,allBackLayer; (function GameInit(){ Laya.init(WIN_W,WIN_H,Laya.WebGL); //Laya.Stat.show(0,0); //显示帧数 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_TOP; ...
/* RainbowVis-JS Released under MIT License */ function Rainbow() { var gradients = null; var minNum = 0; var maxNum = 100; var colours = ['ff0000', 'ffff00', '00ff00', '0000ff']; setColours(colours); function setColours (spectrum) { if (spectrum.length < 2) { throw new Error('Rainbow ...
'use strict'; const ZigbeeHerdsman = require('zigbee-herdsman'); const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters'); const EventEmitter = require('events').EventEmitter; const safeJsonStringify = require('./json'); const bytesArrayToWordArray = require('./utils').bytesArrayToWordArray; // Xiaomi us...
import clsx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { alpha, makeStyles } from '@material-ui/core/styles'; import { capitalize } from '@material-ui/core/utils'; import { Box } from '@material-ui/core'; // ---------------------------------------------------------------------- ...
# # Rokko: Integrated Interface for libraries of eigenvalue decomposition # # Copyright (C) 2015-2019 by Rokko Developers https://github.com/t-sakashita/rokko # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # impor...
const BaseSpan = require('./span-base') class Span extends BaseSpan { constructor (name, type, options) { super(name, type, options) this.parentId = this.options.parentId this.subType = undefined this.action = undefined if (type.indexOf('.') !== -1) { var fields = type.split('.', 3) t...
// A RestWrite encapsulates everything we need to run an operation // that writes to the database. // This could be either a "create" or an "update". import cache from './cache'; var SchemaController = require('./Controllers/SchemaController'); var deepcopy = require('deepcopy'); var Auth = require('./Auth'); var Con...
/*! dicom-parser - v0.8.3 - 2015-02-26 | (c) 2014 Chris Hafey | https://github.com/chafey/dicomParser */ (function (root, factory) { // node.js if (typeof module !== 'undefined' && module.exports) { module.exports = factory(); } else if (typeof define === 'function' && define.amd) { // ...
import React from 'react'; import { FormControl, Button } from 'react-bootstrap'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faSearch } from '@fortawesome/free-solid-svg-icons/faSearch'; import { faTimes } from '@fo...
/*! formstone v1.4.0 [viewer.js] 2017-09-17 | GPL-3.0 License | formstone.it */ !function(t){"function"==typeof define&&define.amd?define(["jquery","./core","./transition"],t):t(jQuery,Formstone)}(function(t,e){"use strict";function i(){(O=V.scrollTop()+e.windowHeight)<0&&(O=0)}function o(){(q=t(R.base)).length?S.lockV...
from rest_framework import permissions class UpdateOwnProfile(permissions.BasePermission): """Checks if users are updating their own profile""" def has_object_permission(self, request, view, obj): """ Returns true if request.user's id matches the id of profile being requested for change ...
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.org/docs/node-apis/ */ // You can delete this file if you're not using it const path = require(`path`) const {createFilePath} = require(`gatsby-source-filesystem`) exports.onCreateNode = ({ node, getNode, actions }) => { const {crea...
'use strict'; module.exports = function(egg, agent, { version, enabled }) { if (!enabled) return egg; // 注意开启 overwrite,这样才能覆盖 koa 标识 agent.setFramework({ name: 'egg', version, overwrite: true }); return egg; };
import React, { Component } from 'react'; import { Avatar, Layout, Row, Col, Card, Menu, Button } from 'antd' import PropTypes from 'prop-types' import { translate } from 'react-i18next' import { getClassDef } from './../model' import _ from 'lodash' import i18n from '../i18n.js'; import ApplicationContainer from './vi...
"use strict"; const {strict: assert} = require("assert"); const {with_function_call_disallowed_rewire, zrequire} = require("../zjsunit/namespace"); const {run_test} = require("../zjsunit/test"); const $ = require("../zjsunit/zjquery"); const {page_params} = require("../zjsunit/zpage_params"); const hash_util = zrequ...
# Python Substrate Interface Library # # Copyright 2018-2020 Stichting Polkascan (Polkascan Foundation). # # 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/LIC...
webpackJsonp([1],{"+3Vu":function(t,e){},"+c27":function(t,e){},"/AvU":function(t,e,i){t.exports=i.p+"static/img/index_banner.2019046.png"},"/PDq":function(t,e){},"/pr8":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh...
/* * @flow * Copyright (C) 2018 MetaBrainz Foundation * * This file is part of MusicBrainz, the open internet music database, * and is licensed under the GPL version 2, or (at your option) any * later version: http://www.gnu.org/licenses/gpl-2.0.txt */ import * as wrapGettext from './wrapGettext'; export const...
'use babel' import IconPicker from './IconPicker' import Slider from './Slider' import QueryField from './QueryField' export default { IconPicker, Slider, QueryField, }
/*! howler.js v2.0.5 | (c) 2013-2017, James Simpson of GoldFire Studios | MIT License | howlerjs.com */ !function(){"use strict";var e=function(){this.init()};e.prototype={init:function(){var e=this||n;return e._counter=1e3,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="...
from django.contrib import admin from .models import IndianStates, Centroids01, Centroids11 admin.site.register(IndianStates) admin.site.register(Centroids01) admin.site.register(Centroids11)
module.exports = { rules: { /** * 禁止使用已废弃的数字修饰符 */ 'vue/no-deprecated-v-on-number-modifiers': 'error', }, };
import { faTrash, faSignOutAlt, faEdit, faSpinner, faPlusCircle, faPhone, faMap, faAt, faKey, faEnvelope } from "@fortawesome/free-solid-svg-icons"; import { library } from "@fortawesome/fontawesome-svg-core"; const Icons = () => { return library.add( faTrash, ...
from django.conf.urls import url, include from rest_framework import routers from .views import PlayerViewSet, TeamViewSet, CoachViewSet router = routers.DefaultRouter() router.register(r'players', PlayerViewSet) router.register(r'teams', TeamViewSet) router.register(r'coach', CoachViewSet) urlpatterns = [ url(...
/** * SliceDetail Container Logic * Please write a description * */ import { kea } from 'kea' import axios from 'axios' import { put, call } from 'redux-saga/effects' import { API_SLICE_MANAGEMENT } from 'config' import { createSlice, CreateSliceChunk, CreateAllLinks } from './utils' import PropTypes from '...