text
stringlengths
3
1.05M
/******************************************** * REVOLUTION 5.4.2 EXTENSION - ACTIONS * @version: 2.1.0 (15.05.2017) * @requires jquery.themepunch.revolution.js * @author ThemePunch *********************************************/ (function ($) { "use strict"; var _R = jQuery.fn.revolution, _ISM = _R....
import MonAttr from './MonAttr' export default MonAttr
# SPDX-License-Identifier: Apache-2.0 # Copyright Contributors to the Rez Project """ Zsh shell """ import os import os.path from rez.utils.platform_ import platform_ from rezplugins.shell.sh import SH from rez import module_root_path class Zsh(SH): rcfile_arg = '--rcs' norc_arg = '--no-rcs' @classmeth...
import { Utils } from "./Utils.js"; import { UndockInitiator } from "./UndockInitiator.js"; import { ContainerType } from "./ContainerType.js"; import { EventHandler } from "./EventHandler.js"; import { PanelType } from "./enums/PanelType.js"; /** * This dock container wraps the specified element on a panel fram...
var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){var f=window,h=document,m=f.location,n=function(){},u=/\[native code\]/,w=function(a,b,c){return a[b]=a[b]||c},A=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1},B=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
var friendsList = { "name":"Ahmed", "photo":"https://placem.at/things?w=250&random=some_seed", "scores":[ 5, 1, 4, 4, 5, 1, 2, 5, 4, 1 ], "name":"Amy", "photo":"https://placem.at/things?w=250&random=some_seed"...
var myCity = angular.module('myCity', ['ngRoute', 'ngResource']) // // .controller('CityCtrl', ['$scope', 'Citys','$route', function ($scope, Citys, $route) { // Citys.get(function(data){ // $scope.citys =data.citys; // $scope.myCity = $scope.citys[0]; // ...
from __future__ import absolute_import from uuid import uuid4 from django.http import Http404 from sentry.api.bases.organization import ( OrganizationEndpoint, OrganizationIntegrationsPermission ) from sentry.api.serializers import serialize from sentry.integrations.exceptions import IntegrationError from sentry...
/** * This file was unminified in Jetpack 4.0 to address an issue wherein ClamAV * was flagging the minified version of this file with a false-positive virus warning. * * This file will be re-minified in a future Jetpack release once ClamAV corrects their * incorrect definition. */ ( function( $ ) { /** ...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, json from frappe.utils import getdate, date_diff, add_days, cstr from frappe import _, throw from frappe.utils.nestedset import NestedSe...
#!/usr/bin/env python # -*- 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...
var vm = new Vue({ el: '#app', data: { host: host, image_code_id: '', image_code_url: '', username: '', image_code: '', mobile: '', access_token: '', sms_code: '', user_id: '', password: '', password2: '', // 发送短信...
// Select DOM Items const menuBtn = document.querySelector(".menu-btn"); const menu = document.querySelector(".menu"); const menuNav = document.querySelector(".menu-nav"); const menuBranding = document.querySelector(".menu-branding"); const navItems = document.querySelectorAll(".nav-item"); // Set Initial State Of Men...
const CopyToClipboard = require('./output/copyToClipboard') const OpenInBrowser = require('./output/openInBrowser') const SendNotification = require('./output/sendNotification') const UserScript = require('./output/userScript') const ShowFile = require('./output/showFile') const OpenFile = require('./output/openFile') ...
function fetch() { var main = new XMLHttpRequest(); main.onreadystatechange = function() { var loader = '<svg version="1.1" class="svg-loader" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" xml:space="preserve"><path fill="yellow" d="M10,40c0,0,0-0...
import { log } from 'utils/console-utils' import scrapeNpm from 'scraping/scrape-npm' import downloadPackagesFromNpm from 'downloading/download-packages-from-npm' const PKG_DIR = './packages/' async function downloadPackages(numberOfPackages, callback) { try { const packagesMeta = await scrapeNpm(numberOfPacka...
// @flow import * as React from 'react'; import { Route, Switch, withRouter } from 'react-router-dom'; /** * MountPointPlain class wrapped withRouter. */ export const MountPoint = withRouter( /** * MountPointPlain class. */ class MountPointPlain extends React.PureComponent<*> { /** * Returns objec...
'use strict'; const webpack = require('webpack'); module.exports = { context: __dirname, target: 'web', entry: './index.js', output: { path: __dirname, filename: '[name].js', library: ['xhr'], libraryTarget: 'umd', }, resolve: { extensions: [ '', '.js', ], modu...
import React from 'react'; import { AppProvider } from '../src/context/AppProvider'; import { ThemeProvider } from '../src/context/StateContext'; export const wrapRootElement = ({ element }) => { return ( <ThemeProvider> <AppProvider>{element}</AppProvider> </ThemeProvider> ); };
/* Copyright © 2001-2004 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. This work is distributed under the W3C® Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANT...
import * as asn1js from "../asn1js/asn1.js"; import { getParametersValue, clearProps } from "../pvutils/utils.js"; //************************************************************************************** /** * Class from RFC3161. Accuracy represents the time deviation around the UTC time contained in GeneralizedTi...
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/Handler.js */ /** * Class: OpenLayer...
export let gamemode = false import { loadingTuberList } from "./index.js" const gameModeSwitch = document.querySelector("#gameModeSwitch") const gameModeSwitchDot = document.querySelector("#gameModeSwitchDot") const gameModeAlertPopupRoot = document.querySelector(".gameModeAlertPopupRoot") if (localStorage["gamemode"...
import React from 'react' import { useMutation, useQuery, gql } from '@apollo/client' import { makeStyles } from '@material-ui/core/styles' import { CssBaseline, Container, Grid, Typography, Box, Link as MUILink, Backdrop, CircularProgress, } from '@material-ui/core' import { Header } from '../compo...
enchant(); window.onload = function() { var game = new Game(320, 320); game.onload = function() { var button1 = new Button('Back'); // 左の項目に配置するボタンを作成 button1.ontouchend = function() { alert('「Back」がタップされました。'); }; var button2 = new Button('Edit'); // 右の項目に配置するボタンを作成 ...
export function isFn(value) { return typeof value === "function"; } export var isArray = Array.isArray; export function assign(source, assignments) { var result = {}, i; for (i in source) result[i] = source[i]; for (i in assignments) result[i] = assignments[i]; return result; } export function omit(obj...
const path = require('path') const fs = require('fs-extra') const build = require('../build') const cheerio = require('cheerio') const express = require('express') const puppeteer = require('puppeteer') const context = path.join(__dirname, '__fixtures__', 'project-path-prefix') const content = file => fs.readFileSync(...
/* eslint-disable */ export default { pages: { key: "title", data: [ {title: 'Home', url: '/admin/dashboard', icon: 'HomeIcon', is_bookmarked: false}, {title: 'Page 2', url: '/admin/page2', icon: 'FileIcon', is_bookmarked: false}, ] } } /* eslint-enable */
angular.module("app").controller('EmergencyController', function($scope, $rootScope, ApiService, $log, $filter, $timeout, $mdDialog, $sce) { $scope.activeUser = $rootScope.activeUser; $scope.moment = moment; $scope.showNoEmergencyMsg = true; $scope.formModeNew = true; $scope.waitServer = true; v...
import React from 'react' import { ListItem, ListItemText, Typography, makeStyles } from '@material-ui/core' import { Grow } from '.' const useStyles = makeStyles(theme => ({ primaryText: { display: 'flex', alignItems: 'center' }, })) export default ({ title, date, summary, author, onClick }) => ...
'use strict' const { JoiRG } = require('../helpers') const { log } = require('../../handlers/logHandlers') const { PATH_SCHEMA } = require('../schemas') const dd = require('dedent') const filterSchema = JoiRG.string().filter().empty('') const reqBodySchema = JoiRG.object().keys({ path: PATH_SCHEMA, postFilter: fi...
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
import IndexPage from './page-model'; fixture `Index page` .page('http://localhost:4000'); const page = new IndexPage(); test('first test', async t => { {{#if_not bfui}} await t.expect(page.counter.innerText).contains('1') .click(page.increment) .expect(page.counter.innerText).contains('2...
import { Meteor } from 'meteor/meteor'; import _ from 'underscore'; import { Users } from '../../app/models'; Meteor.publish('userAutocomplete', function(selector) { if (!this.userId) { return this.ready(); } if (!_.isObject(selector)) { return this.ready(); } const options = { fields: { name: 1, u...
Vue.component('titulo', { template: /*html*/ ` <div> <h1>Numero: {{ numero }} </h1> <hijo></hijo> </div> `, computed: { // numero(){ // return store.state.numero // } ...Vuex.mapState(['numero']) }, }); Vue.component('hijo', { template: /*html*/ ` <div> <button @click=...
import React from "react"; import Popup from "../../src/Popup"; export default class ControlledPopup extends React.Component { constructor(props) { super(props); } render() { return ( <Popup trigger={<button className="button">Controlled Tooltip </button>} position="right center" ...
// COPYRIGHT © 201 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute ...
const log = require('electron-log'); const fs = require('fs'); const path = require('path'); const app = require('electron').app; // eslint-disable-line const isDev = process.env.NODE_ENV === 'development'; const isProd = process.env.NODE_ENV === 'production'; function getBinDir() { // Use project base dir for deve...
"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...
/** * Created by Vicky on 6/10/2017. */ function occurences(sentence, word) { let regex = new RegExp("\\b"+word + "\\b", "gi"); if(sentence.match(regex)==null){ return 0; }else { return sentence.match(regex).length; } } console.log(occurences('The waterfall was so high, that the chil...
"use strict" const chai = require("chai") const assert = chai.assert const nock = require("nock") // HTTP mocking // Used for debugging. const util = require("util") util.inspect.defaultOptions = { depth: 1 } // Mocking data. const { mockReq, mockRes, mockNext } = require("./mocks/express-mocks") // Libraries under...
const Command = require("../../util/Command.js"); class Reload extends Command { constructor(client) { super(client, { name: "reload", description: "Reloads a command that has been modified.", category: "System", usage: "reload <command>", permLev...
import json import unittest from mock import Mock from conans.client.generators.json_generator import JsonGenerator from conans.model.build_info import CppInfo from conans.model.conan_file import ConanFile from conans.model.env_info import EnvValues, EnvInfo from conans.model.ref import ConanFileReference from conans...
export const clamp = (number, min, max) => Math.min(Math.max(number, min), max); export default { clamp, };
// Model import const database = require('../../models') const { logger } = require('../../helpers/logger') //Delete One Tag module.exports = async (id) => { // I created these two try catch blocks because the MODEL.update method doesnt // verify if the id searched really exists. It just try to update. /...
const compileTemplateExpression = function(expression, state) { const dependencies = state.dependencies; let props = dependencies.props; let methods = dependencies.methods; const exclude = state.exclude; const locals = state.locals; let dynamic = false; let info; while((info = expressionRE.exec(expre...
'use strict'; var test = require('ava'); var exec = require('child_process').exec; test('should return version', function (t) { t.plan(2); exec('node cli.js --version', {cwd: __dirname}, function (err, stdout) { t.ifError(err); t.true(stdout.trim().length > 0); }); });
# lextab.py. This file automatically created by PLY (version 3.10). Don't edit! _tabversion = '3.10' _lextokens = set( ('VOID', 'LBRACKET', 'WCHAR_CONST', 'FLOAT_CONST', 'MINUS', 'RPAREN', 'LONG', 'PLUS', 'ELLIPSIS', 'GT', 'GOTO', 'ENUM', 'PERIOD', 'GE', 'INT_CONST_DEC', 'ARROW', '__INT128', 'HEX_FLOAT_CO...
mui.init(); (function($) { //alert(1) //addNav(1) //阻尼系数 var deceleration = $.os.ios ? 0.003 : 0.0009; var vm = new Vue({ el: '#main', data: { my: {}, islogin: false, mypage: 1, isconcern: true, hot: [], hotpage: 1, friends: [], canConcern: true, hotSearchContent: '', isbm:'' ...
# MODULE: TypeRig / Glyphs App Proxy # ----------------------------------------------------------- # (C) Vassil Kateliev, 2020 (http://www.kateliev.com) # (C) Karandash Type Foundry (http://www.karandash.eu) #------------------------------------------------------------ # www.typerig.com # No warranties. By using th...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.34/esri/copyright.txt for details. //>>built define("esri/dijit/nls/BasemapGallery_it",{"esri/layers/vectorTiles/nls/common":{_localized:{}}});
'use strict'; var gcd1 = require('../../toolbox/gcd1'); var expect = require('chai').expect; describe('gcd1 - O(n)', function(){ it('should find the greatest commom divisor if `a > b`', function(){ expect(gcd1(30, 15)).to.be.equal(15); expect(gcd1(12, 8)).to.be.equal(4); expect(gcd1(54, 24)).to.be.equal...
from dataclasses import dataclass, field from typing import List, Optional import pytest from aioesphomeapi.api_pb2 import ( BinarySensorStateResponse, ClimateStateResponse, CoverStateResponse, DeviceInfoResponse, FanStateResponse, HomeassistantServiceMap, HomeassistantServiceResponse, ...
# Copyright 2020 The SQLFlow Authors. 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 applicable law o...
# # Copyright 2016 Cluster Labs, 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 applicable law or agreed to in ...
// 1. Object const nodejs = { name: 'Node.js', type: 'JavaScript runtime environment', }; // TODO: Destructure the object 'nodejs' const { name: languageName, type } = nodejs console.log(languageName); // <= Node.js console.log(type); // <= JavaScript runtime environment // 2. Nested Object const js = { name:...
# Copyright 2018, OpenCensus Authors # Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n["throw"](t))}catch(t){a(t)}}function l(t){t.done?i(t.value):r(t.value).then(o,s)}l((n=n.app...
// Export a render(input) method that can be used // to render this UI component on the client or server require("marko/legacy-components").renderable(exports, require("./renderer"));
// @flow /* eslint import/newline-after-import: 0 */ import React, { Component } from 'react' import PropTypes from 'prop-types' import SafeAreaView from 'react-native-safe-area-view' import { StyleSheet, View, Image, TouchableOpacity, Modal, Text, TextInput, ListView, ScrollView, Platform } from ...
import React from 'react'; import loadable from '@loadable/component'; import Loading from 'components/Loading'; import ErrorPage from './pages/ErrorPage'; import HomePage from './pages/HomePage'; const MassList = loadable(() => import('./components/MassList'), { fallback: <Loading />, }); export default [ { ...
require('./bootstrap'); require('alpinejs');
#Code Contributor: Rohan Badlani, Email: rohan.badlani@gmail.com import os import sys class FileFormat(object): def __init__(self, filepath): self.count = 0 self.filepath = filepath self.labelDict = self.readLabels() def readLabels(self): try: #Filename will act as key and labels list will be the value ...
import React from 'react'; import BootstrapTable from "react-bootstrap-table-next"; import paginationFactory from "react-bootstrap-table2-paginator"; import filterFactory, { textFilter } from 'react-bootstrap-table2-filter'; const Table = ({ config }) => { const initialState = { selected : config.selected ? confi...
# Copyright (c) OpenMMLab. All rights reserved. from .ema import ExponentialMovingAverageHook from .visualization import VisualizationHook __all__ = ['VisualizationHook', 'ExponentialMovingAverageHook']
const allAchievements = { r11 : "You gotta start somewhere", r12 : "100 antimatter is a lot", r13 : "Half life 3 confirmed", r14 : "L4D: Left 4 Dimensions", r15 : "5 Dimension Antimatter Punch", r16 : "We couldn't afford 9", r17 : "Not a luck related achievement", r18 : "90 degrees to infinity", r21 :...
/** * Created by Wu Jian Ping on - 2018/09/02. */ import Compoment from './Compoment' export default class Volume extends Compoment { // https://docs.docker.com/engine/api/v1.37/#operation/VolumeCreate create(params) { return this.request.post('/volumes/create', params) } // https://docs.docker.com/eng...
/** * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> * Build: `lodash modularize underscore exports="node" -o ./underscore/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentClou...
// # Asset helper // Usage: `{{asset "css/screen.css"}}`, `{{asset "css/screen.css" ghost="true"}}` // // Returns the path to the specified asset. The ghost flag outputs the asset path for the Ghost admin var hbs = require('express-hbs'), config = require('../config'), utils = re...
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Encode and decode BASE58, P2PKH and P2SH addresses.""" from .script import hash256, hash160, sha256, CScrip...
import React from 'react'; import { createUseStyles } from 'react-jss'; import TextField from '@guestyci/foundation/TextField'; import Col from '@guestyci/foundation/Col'; import logo from '../../assets/logo.svg'; import Link from '@guestyci/foundation/Link'; const useStyles = createUseStyles({ appLogo: { animat...
(function(){ function MenuCtrl(){ } angular .module('saborLatino') .controller('MenuCtrl', [MenuCtrl]); })();
'use strict' const config = require('../config') const errorHandler = require('./ErrorHandler') const githubApi = require('@octokit/rest') const GitService = require('./GitService') const Review = require('./models/Review') const User = require('./models/User') const normalizeResponse = ({data}) => data class GitHub...
from collections import namedtuple from flask import url_for from pytest import fixture, mark from shorter.app import create_app from shorter.start.config import TestingConfig from shorter.start.extensions import DB as _db # pylint: disable=invalid-name # pylint: disable=no-member # pylint: disable=redefined-outer-n...
import pickle import random import sys import numpy as np filename = sys.argv[1] with open(filename,'rb') as f: features = pickle.load(f) new_features = [] dialogue_final,scene_thisround,dids,id_final,type_final,bbox_final,label_final,image_feature = map(list,zip(*features)) didnew = [] for did in dids: #ne...
import React, { Fragment, useState, useEffect } from 'react'; import {useSelector, useDispatch } from 'react-redux'; import PropTypes from 'prop-types'; import { completeChecklistItem, editChecklistItem, deleteChecklistItem, } from '../../actions/board'; import { TextField, Button } from '@material-ui/cor...
// Copyright (c) 2014-2017, MyMonero.com // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // cond...
import os import pickle from datetime import datetime, time import intents.intents alarms_file = (os.path.dirname(__file__).replace("/services", "") + '/config/alarms') def create_alarm(sentence): spoke_time = "7h30" # TODO: get the day and the hour in the sentence spoke_time = spoke_time.replace("demai...
define({ zh_cn: { 'Allowed values:': '允许值:', 'Compare all with predecessor': '与所有较早的比较', 'compare changes to:': '将当前版本与指定版本比较:', 'compared to': '相比于', 'Default value:': '默认值:', Description: '描述', Field: '字段', General: '概要', 'Generated with': '基于', Name: '名称', 'No response v...
import { Connection } from "autobahn" import { LOADING_STATES, INITIAL_STATE_SUBSCRIPTION } from "./constants.es6" import { registerSession, getSession, registerSubscription, getSubscription, unregisterSubscription } from "./crossbar_connector.es6" import uuid from "uuid" // TODO: split out user-in...
import BookForm from './BookForm' import React, {useState} from 'react' function NewManualBook() { const [book,setbook] =useState(); const addToBookShelf = () => { setbook((prevBook)=>{ console.log(prevBook) return [...prevBook] } ) } return ( <div> ...
import React from "react"; import "./Contact.css"; import { Button } from "react-bootstrap"; import ContactBanner from "./ContactBanner"; function Contact() { return ( <div className="contact"> <ContactBanner /> <section className="entire-container"> <div className="information-contact"> ...
"""doit version, defined out of __init__.py to avoid circular reference""" VERSION = (0, 27, 'dev0')
const test = require('tape'); const off = require('./off.js'); test('Testing off', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof off === 'function', 'off is a Function'); //t.deepEqual(off(args..), 'Expected'); //t.equal(off...
const express = require("express"); const ads = require("../controllers/ads.controller.js") const router = express.Router(); router.get("/", ads.findAll); router.post("/", ads.create); router.put("/:id", ads.update); router.delete("/:id", ads.delete); router.get("/:id", ads.findOne) module.exports = router;
// Entry Point -> Output const webpack = require("webpack") const CompressionPlugin = require("compression-webpack-plugin"); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require("path"); const GoogleFontsPlugin = require("@beyonk/google-fonts-webpack-plugin") //console.log("node en...
import * as React from "react"; function IconMicrophone2({ size = 24, color = "currentColor", stroke = 2, ...props }) { return <svg className="icon icon-tabler icon-tabler-microphone-2" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="round" stroke...
var searchData= [ ['length',['length',['../struct__cbor__bytestring__metadata.html#ad20fa7f7cec11db8076419169347ff75',1,'_cbor_bytestring_metadata::length()'],['../struct__cbor__string__metadata.html#a558805df7c655cfaf3c289bc536ff96e',1,'_cbor_string_metadata::length()']]], ['loaders_2ec',['loaders.c',['../loaders_...
(function() { 'use strict'; // POST RELEASE // TODO(jelbourn): Demo that uses moment.js // TODO(jelbourn): make sure this plays well with validation and ngMessages. // TODO(jelbourn): calendar pane doesn't open up outside of visible viewport. // TODO(jelbourn): forward more attributes to the internal input...
const db = require('../../db/dbConfig.js'); const fs = require('fs'); module.exports = { find, findById, add, update, removePlant, findByUser }; function find() { return db('plants').select('*'); } function findById(id) { return db('plants') .where({ id }) .first() .select('*'); } async...
module.exports = [{"isApi":true,"priority":1000.0001,"key":"Window","style":{orientationModes:[Ti.UI.PORTRAIT,],}},{"isApi":true,"priority":1000.0002,"key":"Button","style":{}},{"isApi":true,"priority":1000.042,"key":"Label","style":{width:Ti.UI.SIZE,height:Ti.UI.SIZE,font:{fontSize:"12",fontFamily:"Montserrat-Regular"...
/** * @module Utils * */ import { assert, funcNumArgs } from '@busyweb/debug'; import { arrayT, funcT, stringT } from '@busyweb/types'; /** * @class ProxyArray * */ export default class ProxyArray { constructor(list=[]) { assert("new ProxyArray() must include an array as the first param", arrayT(list)); //...
#!/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', 'cashflow_django.settings') try: from django.core.management import execute_from_command_line exc...
var mongoose = require("mongoose"); var RoleSchema = new mongoose.Schema({ title: {type: String, required: true}, roleKey: {type: String, required: true}, description: {type: String, required: true}, groups: [{type: mongoose.Schema.Types.ObjectId, ref: 'Group'}], }, {timestamps: true}); RoleSchema.methods =...
const ReturnHistoryIndexRoutePage = { template: ` <div id="app"> <el-divider>退货历史信息</el-divider> <el-table :data="returnHistories" style="width: 100%"> <el-table-column prop="timestamp" label="时间"> <template slot-scope="scope"> {{(new Date(scope.row.ti...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(e){function t(t){for(var r,l,a=t[0],u=t[1],s=t[2],f=0,p=[];f<a.length;f++)l=a[f],Object.prototype.hasOwnProperty.call(i,l)&&i[l]&&p.push(i[l][0]),i[l]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift(...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os.path from cruds_adminlte import utils from django import template from django.urls import (reverse, NoReverseMatch) # django2.0 from django.db import models from django.utils import six from django.utils.html import escape from django.utils.s...
'''Generalized Method of Moments, GMM, and Two-Stage Least Squares for instrumental variables IV2SLS Issues ------ * number of parameters, nparams, and starting values for parameters Where to put them? start was initially taken from global scope (bug) * When optimal weighting matrix cannot be calculated numericall...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'tela.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectN...