text stringlengths 3 1.05M |
|---|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["cascade-picker"] = factory();
else
root... |
/*!
* Clean Blog v1.0.0 (http://startbootstrap.com)
* Copyright 2015 Start Bootstrap
* Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
*/
$(function(){$("[data-toggle='tooltip']").tooltip()}),$(function(){$("input,textarea").jqBootstrapValidation({preventSu... |
/**
* BaaSCaradhrasAPIDocumentationLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
'use strict';
const BaseModel = require('./BaseModel');
/**
* Creates an instance of MTransportcardsRecharge2Request
*/
class MTransportcardsRecharge2Request extends BaseModel {
/**... |
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'eslint:recommended',
],
rules: {
'no-console': 'error',
'no-debugger': 'error',
},
parserOptions: {
parser: 'babel-eslint',
},
};
|
#!/usr/bin/python
import logging
import attr
import datetime
import json
import os.path
import urllib
from . import register, Site, Section, Chapter
logger = logging.getLogger(__name__)
"""
Example JSON:
{
"url": "https://practicalguidetoevil.wordpress.com/table-of-contents/",
"title": "A Practical Guide To ... |
import setuptools
def readme():
with open('README.md') as f:
return f.read()
test_dependencies = [
'pytest',
]
# This means dependencies for testing can be installed with:
# pip install .[test]
# See this Stackoverflow answer for details
# https://stackoverflow.com/a/41398850
extras = {
"test": ... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* The following block of code may be ... |
import webpack from "webpack";
import path from "path";
import HtmlWebpackPlugin from "html-webpack-plugin";
import InterpolateHtmlPlugin from "react-dev-utils/InterpolateHtmlPlugin";
import ExtractTextPlugin from "extract-text-webpack-plugin";
import getClientEnvironment from "./env";
import paths from "./paths";
// ... |
import { NotImplementedError } from '../extensions/index.js';
/**
* Create name of dream team based on the names of its members
*
* @param {Array} members names of the members
* @return {String | Boolean} name of the team or false
* in case of incorrect members
*
* @example
*
* createDreamTeam(['Matt', 'A... |
import React, {PureComponent} from 'react'
import Modal from 'react-modal'
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'
import 'react-tabs/style/react-tabs.css'
import About from './About'
import Mumble from './Mumble'
import Settings from './Settings'
import Schedule from './schedule/Schedule'
Modal.set... |
import ReactDOM from "react-dom";
import { BrowserRouter as Router } from "react-router-dom";
import { makeMainRoutes } from "./routes";
import registerServiceWorker from "./registerServiceWorker";
import "./index.css";
import "bootstrap/dist/css/bootstrap.css";
const routes = makeMainRoutes(Router);
ReactDOM.render... |
import { ethers } from "ethers";
import sdk from "./1-initialize-sdk.js";
import dotenv from "dotenv";
dotenv.config();
// This is our governance contract.
const voteModule = sdk.getVoteModule(process.env.VOTE_CONTRACT);
// This is our ERC-20 contract.
const tokenModule = sdk.getTokenModule(process.env.TOKEN_CONTRA... |
import { createStore, combineReducers, applyMiddleware, compose } from "redux";
import thunk from "redux-thunk";
import settingsReducer from "./reducers/settings";
import loadingReducer from "./reducers/loading";
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default () => {
... |
"""
Routines to read in association file between genes and GO terms.
"""
__copyright__ = "Copyright (C) 2010-2019, H Tang et al. All rights reserved."
__author__ = "various"
from collections import defaultdict
import os
import sys
from goatools.base import dnld_file
from goatools.base import ftp_get
from goatools.ann... |
import { assert } from 'chai';
import { getTypes, numberTypes, stringTypes } from '@validatorjs/test';
import forEach from 'mocha-each';
import perfectSquare from '../src';
describe('PerfectSquare', () => {
forEach([
1,
9,
25,
'25',
400,
'400',
'0',
8... |
window.Zoomage=function(e){var s={};function n(t){if(s[t])return s[t].exports;var i=s[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=s,n.d=function(t,i,e){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.... |
// const loConcat = require('lodash/concat');
import fakeData from '~~/seeds/fake-data.json';
// import typeOf from '~/plugins/lib/type-of';
import moment from 'moment';
const loKebabCase = require('lodash/kebabCase');
const loMerge = require('lodash/merge');
// const errors = require('@feathersjs/errors');
const debug... |
/*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... |
$(function() {
$('.slick-v1').slick({
slidesToShow: 1,
infinite: true,
prevArrow: '<span data-role="none" class="slick-v1-prev" aria-label="Previous"></span>',
nextArrow: '<span data-role="none" class="slick-v1-next" aria-label="Next"></span>'
});
}); |
/*global console,ajaxurl,$,jQuery,megamenu,document,window,bstw,alert,wp,this*/
/**
* Mega Menu jQuery Plugin
*/
(function($) {
"use strict";
$.fn.megaMenu = function(options) {
var panel = $("<div />");
panel.settings = options;
panel.log = function(message) {
if (wind... |
// For documentation, check our wiki
// https://github.com/react-native-kit/react-native-track-player/wiki
module.exports = require("./lib/index.js");
|
'use strict'
/* globals describe beforeEach it commands */
const expect = require('chai').expect
const cli = require('heroku-cli-util')
const nock = require('nock')
const cmd = commands.find((c) => c.topic === 'stack' && c.command === 'set')
const pendingUpgradeApp = {
name: 'myapp',
stack: {
name: 'heroku-16... |
/*
Filename: Search.js
Common Name: Search Module
Description: A Module containing search functions
Author: Lukas Novak
Date: Aug 10, 2017
Dependencies:
help.js
arrayUpdate.js
*/
var Search = (function() {
/* keys is an array of at least one string,
* vdb is the vdb to repopulate
*/
fun... |
import React from 'react';
import Paper from '@material-ui/core/Paper';
export const paperWidth = 720;
export const styles = theme => ({
root: {
textAlign: 'center',
marginTop: '-70px',
width: 'auto',
marginLeft: theme.spacing.unit * 2,
marginRight: theme.spacing.unit * 2,
[theme.breakpoints... |
import { tryCatch } from '../util/tryCatch';
import { errorObject } from '../util/errorObject';
import { OuterSubscriber } from '../OuterSubscriber';
import { subscribeToResult } from '../util/subscribeToResult';
/**
* Ignores source values for a duration determined by another Observable, then
* emits the most ... |
/**
* @license Angular UI Tree v2.11.0
* (c) 2010-2015. https://github.com/angular-ui-tree/angular-ui-tree
* License: MIT
*/
(function () {
'use strict';
angular.module('ui.tree', [])
.constant('treeConfig', {
treeClass: 'angular-ui-tree custom-angular-ui-tree',
emptyTreeClass: 'angular-ui-tree... |
from django.shortcuts import render
from django.http import HttpResponse
from .models import Message
from .forms import ChatModelForm
from UserProfiles.models import UserProfileModel
from .FindUserGuild import FindUserGuild
# Create your views here.
def GroupChat(request):
MessageList = []
UserProf = []
... |
#
# Module providing the `Process` class which emulates `threading.Thread`
#
# multiprocessing/process.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
__all__ = ['Process', 'current_process', 'active_children']
#
# Imports
#
import os
import sys
import signal
import itert... |
// Port of the Node.js url module to the browser-side;
var urlParser = (function () {
// define these here so at least they only have to be
// compiled once on the first module load.
var protocolPattern = /^([a-z0-9]+:)/,
portPattern = /:[0-9]+$/,
nonHostChars = ['/', '?', ';', '#'],
hostlessProtocol = {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var modal_dialog_1 = require("nativescript-angular/modal-dialog");
var SelectGenderComponent = (function () {
function SelectGenderComponent(params) {
this.params = params;
this.gender... |
const express = require('express')
const router = express.Router()
// LTS API versions
const apiVersions = {
"index": "1",
"weather": "1",
"holidays": "1",
"annual": "1",
"template": "2",
}
/* GET template */
router.get('/:api', async (req, res, next) => {
let api = req.params.api
let response = apiVersions[a... |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HSRemoveElement=t():e.HSRemoveElement=t()}(window,function(){return d={"./src/js/hs-remove-element.js":function(module,__webpack_exports__,__webpack_req... |
module.exports = {
redisConnErr: 'Your system can not work properly due to the Redis can not be detected. Please check whether the Redis server is set up, and listening on port {{port}}.',
pageNotFound: 'Page not found.'
} |
import PropTypes from "prop-types";
import React from "react";
import { FacetValue, FilterValue } from "./types";
import { getFilterValueDisplay } from "./view-helpers";
import { appendClassName } from "./view-helpers";
function SingleLinksFacet({
className,
label,
onRemove,
onSelect,
options,
values = []... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
///STYLE
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
import './assets/scss/main.scss'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
|
'use strict';
function init() {
function onMouseUp() {
var outputElem = document.getElementById('output-element');
var outputText = document.getElementById('output-text');
var selectedTextArea = document.activeElement;
if (typeof selectedTextArea.value !== 'undefined') {
... |
/*
Copyright (c) 2018-2019 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import * as React from 'react';
import {Button} from '../button/index.js';
import type {ButtonPropsT} from '../button/types.js';
import ... |
import {
refreshFeatures,
paginateFeatures,
} from '@codetanzania/emis-api-states';
import { Button, Col, Pagination, Row, Checkbox } from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
import { notifyError, notifySuccess } from '../../../../util';
import './styles.css';
/**
* @function
*... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function () {
function a(b, c) {
var d = b.lang.placeholder, e = b.lang.common.generalTab;
return {
title: d.title,
minWidth:... |
import pytest
from attacut import utils
@pytest.mark.parametrize(
("seq", "expected"),
[
(
(7, 9, 10),
[
(0, 7), (7, 16), (16, 26)
]
),
]
)
def test_create_start_stop_indices(seq, expected):
act = utils.create_start_stop_indices(seq)... |
import {registerUserInterfaceAware, UserInterfaceAware} from '../UserInterfaceAware'
import {changeXpBy, xpPresentation} from '../xpCombo'
export class Character extends UserInterfaceAware {
userInterface = ['name', 'lvl', 'attributePoints', 'hp', 'hp+', 'ep', 'ep+', 'xp', 'change']
constructor() {
s... |
'use strict';
import $ from './jquery';
import * as deprecate from './internal/deprecation';
import * as logger from './internal/log';
import globalize from './internal/globalize';
/**
* Support for markup based binder components. Binder components must be objects with the following "interface":
*
* <pre>
* {
* ... |
/**
* Copyright 2018 Telerik AD
* ... |
// *
// * Add multiple markers
// * 2013 - en.marnoto.com
// *
// necessary variables
var map;
var infoWindow;
// markersData variable stores the information necessary to each marker
var markersData = [
{
lat: 27.7089559,
lng: 85.2911132,
image: "images/slider.jpg",
website: "www.website.c... |
import React, { useState} from 'react';
import styled from 'styled-components';
import MenuIcon from '@mui/icons-material/Menu';
import { AccessAlarm, ThreeDRotation } from '@mui/icons-material';
import CloseIcon from '@mui/icons-material/Close';
import Email from './Email';
import Section from './Section';
import Home... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 9 08:30:17 2019
@author: maximoskaliakatsos-papakostas
"""
'''
Functions for printing information of an idiom.
HOW TO RUN:
print_idiom(idiom_name, output_file='', mode='all', include='all')
For more information SEE FUNCTION print_idiom at ... |
# 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.
"""
Train a network across multiple GPUs.
"""
import contextlib
import logging
import sys
import time
from argparse import Namespace
from ite... |
import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";
import { connect } from "react-redux";
// import classes from "./Navbar.module.css";
import "./Navbar.css";
import shoppingBagIcon from "../../../../assets/img/shopping-bag.png";
import userIcon from "../../../../assets/img/u... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
#!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
import numpy as np
from scipy.spatial import cKDTree as KDTree
import trimesh
def compute_trimesh_chamfer(
gt_points, gen_mesh, offset, scale, num_mesh_samples=30000
):
"""
This function computes a symmetric chamfer distance, i.e... |
import React from 'react';
import gql from 'graphql-tag';
import { useQuery } from 'react-apollo-hooks';
import { useAuthenticated } from '../auth';
const UserContext = React.createContext(null);
const UserContextProvider = ({ children }) => {
// Don't bother with the query if we aren't authenticated
const authen... |
import { css } from 'styled-components';
export const ul = css`
list-style-type: none;
padding-inline-end: 40px;
`;
export const li = css`margin-bottom: 5px;`;
|
function something()
{
var x = window.localStorage.getItem('bbb');
x = x * 1 + 1;
window.localStorage.setItem('bbb', x);
alert(x);
}
function add_to_cart(id)
{
var key = 'product_' + id;
var x = window.localStorage.getItem(key);
x = x * 1 + 1;
window.localStorage.setItem(key, x);
update_ord... |
import PropTypes from 'prop-types';
import ReactFauxDom from 'react-faux-dom';
import cloud from 'd3-cloud';
import { Component } from 'react';
import { scaleOrdinal } from 'd3-scale';
import { schemeCategory10 } from 'd3-scale-chromatic';
import { select } from 'd3-selection';
import { defaultFontSizeMapper } from '.... |
const { table, getBorderCharacters } = require('table')
const kindOf = require('kind-of')
const pick = require('lodash/pick')
const castArray = require('lodash/castArray')
const assert = require('assert-plus')
const TABLE_OPTIONS = {
border: getBorderCharacters('void'),
columnDefault: {
paddingLeft: 2,
pad... |
# -*- coding:utf8 -*-
from numpy import *
from numpy import linalg as la
import pandas as pd
datamat = mat([[0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 5],
[0, 0, 0, 3, 0, 4, 0, 0, 0, 0, 3],
[0, 0, 0, 0, 4, 0, 0, 1, 0, 4, 0],
[3, 3, 4, 0, 0, 0, 0, 2, 2, 0, 0],
[5, 4, 5, 0... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ec199f0"],{"6a26":function(n,t,i){"use strict";i.r(t);var e=function(){var n=this,t=n.$createElement,i=n._self._c||t;return i("div",{staticClass:"header"},[i("div",{staticClass:"menu"},[i("x-icon",{staticClass:"icon",attrs:{name:"menu"},on:{click:n.onCl... |
import os
import re
import tempfile
import shutil
from tqdm import tqdm
import shlex
from ._streams import AudioStream, VideoStream, SubtitleStream
from ._errors import FFmpegNormalizeError
from ._cmd_utils import NUL, CommandRunner, DUR_REGEX, to_ms
from ._logger import setup_custom_logger
logger = setup_custom_logg... |
//>>built
(function(d,b){"object"===typeof exports&&"undefined"!==typeof module&&"function"===typeof require?b(require("../moment")):"function"===typeof define&&define.amd?define("moment/locale/ar-ly",["../moment"],b):b(d.moment)})(this,function(d){var b={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},f=f... |
var express = require("express");
var path = require("path");
var cookieParser = require("cookie-parser");
var logger = require("morgan");
var indexRouter = require("./routes/index");
var apiRouter = require("./routes/api");
var apiResponse = require("./helpers/apiResponse");
var cors = require("cors");
require("dote... |
let appRoot = require('app-root-path');
let constants = require(`${appRoot}/local_modules/constants`);
let functions = require(`${appRoot}/local_modules/localFunctions`);
//validate & sanitize form data
const validator = require('validator');
//parse incoming request bodies using body-parser middleware
const ... |
const expect = require("chai").expect
const quiqErrorHandler = require("../../src/quiqErrorHandler")
// const mockData = require("../__mocks__/eventStubWithEmail.json")
describe("quiqErrorHandler", () => {
it("Calls next given the proper data", () => {
const req = {}
const res = {}
const next = function(... |
import React from 'react';
import './admin.css'
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import Divider from '@material-ui/core/Divider';
import Drawer from '@material-ui/core/Drawer';
import Hidden from '@material-ui/core/Hidden';
import IconButton from '@... |
import boto3
aws_mag_con=boto3.session.Session(profile_name="ec2_developer")
'''
ec2_con_re=aws_mag_con.resource(service_name="ec2",region_name='us-east-1')
f_ebs_unused={"Name":"status","Values":["available"]}
for each_volume in ec2_con_re.volumes.filter(Filters=[f_ebs_unused]):
if not each_volume.tags:
pr... |
# Copyright (c) 2014 Mirantis 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 writ... |
import Transaction from '../../transaction';
import inherits from 'inherits';
import Debug from 'debug';
import { assign, isUndefined } from 'lodash';
const debug = Debug('knex:tx');
function Transaction_MySQL() {
Transaction.apply(this, arguments);
}
inherits(Transaction_MySQL, Transaction);
assign(Transaction_My... |
// flow-typed signature: 12a7eb4115916b2bc437d76d1b9a9629
// flow-typed version: <<STUB>>/jest-canvas-mock_v1.1.0/flow_v0.80.0
/**
* This is an autogenerated libdef stub for:
*
* 'jest-canvas-mock'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your wor... |
// not much in here yet...
// allows HTML to be hidden / shown
function toggle() {
var ele = document.getElementById("toggleText");
var text = document.getElementById("displayText");
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = "(Show)";
}
else {
ele.style... |
import pytest
from fastai import *
from fastai.vision import *
def test_vision_datasets():
sds = (ImageItemList.from_folder(untar_data(URLs.MNIST_TINY))
.split_by_idx([0])
.label_from_folder()
.add_test_folder())
assert np.array_equal(sds.train.classes, sds.valid.classes), 'tra... |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return ... |
#!/usr/bin/env python
#
# 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
# "... |
#! /usr/bin/env python
"""
Author: Jeremy M. Stober
Program: FIND_DUPLICATES.PY
Date: Thursday, November 1 2012
Description: Find duplicate images.
"""
import numpy as np
duplicates = []
imgs = np.load("observations.npy")
#imgs = np.load("imgs.npy")
for (i,p) in enumerate(imgs):
for (j,q) in enumerate(imgs[i:]):... |
export const fusePools = [
{
id: 'fuse-bifi-maxi',
logo: 'single-assets/BIFI.png',
name: 'BIFI Maxi',
token: 'BIFI',
tokenDescription: 'Beefy.Finance',
tokenAddress: '0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c',
tokenDecimals: 18,
tokenDescriptionUrl: '#',
earnedToken: 'mooFuseBIFI... |
// map api response into our custom format
export const userMapper = user => ({
id: user.id,
avatar: user.avatar,
email: user.email,
nickname: user.nickname,
firstName: user.first_name,
lastName: user.last_name,
});
export const emptyUser = () => ({
id: null,
avatar: null,
email: '... |
import React from 'react'
class Bold extends React.Component {
render(){
return (
<span className='bold'>
{this.props.children}
</span>
)
}
}
export default Bold |
import React, { Component } from "react";
import {
StyleSheet,
Text,
View,
TextInput,
ScrollView,
Keyboard,
BackHandler,
TouchableOpacity,
Image
} from "react-native";
import { appThemeColor } from "../../AppGlobalConfig";
import Dimensions from "Dimensions";
const sendBtnIcon = require("../../Images/... |
'use strict';
/* ------------------------------------------------------------------------------------------------
CHALLENGE 1 - Review
Write a function that finds maximum value in an array
using the 'reduce' method.
E.g. [4,2,7,5,9,2] -> 9
-----------------------------------------------------------------------------... |
webpackJsonp([3],[,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.c... |
tinyMCE.addI18n({fi:{
common:{
edit_confirm:"Haluatko k\u00E4ytt\u00E4\u00E4 WYSIWYG-tilaa t\u00E4ss\u00E4 tekstikent\u00E4ss\u00E4?",
apply:"K\u00E4yt\u00E4",
insert:"Lis\u00E4\u00E4",
update:"P\u00E4ivit\u00E4",
cancel:"Peruuta",
close:"Sulje",
browse:"Selaa",
class_name:"Luokka",
not_set:"-- Ei m\u00E4\u00... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || 'vue Admin Template' // page title
// If your port is set to 80,
// use administrator privileges to execute the command line... |
import matplotlib
import utils
if utils.hostname() != 'user':
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import warnings
import numpy as np
import matplotlib.animation as animation
warnings.simplefilter('ignore')
anim_running = True
def plot_slice_3d_2(image3d, mask, axis, pid, img_dir=None, idx=Non... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.SimpleToolbarMenuItem = void 0;
var _litElement = require("lit");
var _a11yMenuButtonItem = require("@digitalnsw/a11y-menu-button/lib/a11y-menu-button-item.js");
function _typeof(obj) {
if (typeof Symbol === "function" && type... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement("path", {
d: "M1 19h22V5H1v14zM19 7v10H5V7h14z"
}), 'StayCurrentLandscapeSharp'); |
const app = require('express')();
const http = require('http').createServer(app);
const io = require('socket.io')(http);
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html');
});
io.on('connection', (socket) => {
console.log('a user connected');
socket.on('chat message', (msg) => {
i... |
//初始化界面,菜单配置路径是【/frs/yufreejs?js=/yujs/east/58table.js】
var str_date = "";
var str_org_no = "";
var fileName = "";
function AfterInit(){
str_date = jso_OpenPars.data_dt;
JSPFree.createSpanByBtn("d1",["压缩/onZip","下载/onDownload","刷新/onRefresh","取消/onCancel","查看任务/onLookAllZipTaskAndFile"]);
}
//一定要页面加载完之后才行
function ... |
import React from 'react'
import Kamon from './kamon'
export default function ButtonGroups () {
return (
<div>
<h2>Button groups</h2>
<div className='btn-group btn-group-auto-lg' role='group' aria-label='...'>
<button type='button' className='btn btn-default active'>Left</button>
<but... |
var searchData=
[
['adc_5fresult_0',['adc_result',['../api_8c.html#a6cf5581e633e901594da18bae50dc4d4',1,'api.c']]],
['alarm_5fcontrol_1',['alarm_control',['../main_8c.html#ac97329130f71ab7682fa279eddd8e168',1,'main.c']]],
['alarm_5fhour_2',['alarm_hour',['../ds1302_8c.html#a1751afdca377b1e7626778e46ac89d32',1,'ds... |
// The Module object: Our interface to the outside world. We import
// and export values on it. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. Exter... |
var ClearCommand, Client, Connection, EventEmitter, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostConnectCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostDisconnectCommand, HostKillCommand, Ho... |
const path = require('path')
module.exports = {
entry: ['./src/index.js'],
output: {
path: path.resolve('dist'),
filename: 'bundle.js',
},
module: {
loaders: [
{
exclude: /node_modules/,
loader: 'babel-loader',
},
]... |
b=' Niao Jau Quan Zhe Lei Dang Jue Ling Ling Yan Yao Zhen Qi Ai Nu Mang Kan Jiu Yan Mian Yin Wan Yao Wa Pi Sui Kong Miu Hong Ming Ling Yi Shen Zuo Gu Tu Yong Wa Gui Hong Shi Xiong A Cheng Keng Yi Yang Ting Dou Cha Liu Qiu Xuan Shen Kuan Tong Qian... |
function RequestManager() {
var _this = this;
setInterval(function() { _this.tick(); }, 1000);
this.requests = []
this.div = document.createElement("div");
this.div.classList.add("request_manager");
document.body.appendChild(this.div);
}
RequestManager.prototype.buildText = function(text, time)... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'indent', 'de', {
indent: 'Einzug erhöhen',
outdent: 'Einzug verringern'
} );
|
/**
* @author v.lugovsky
* created on 23.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.theme')
.factory('baPanel', baPanel);
/** @ngInject */
function baPanel() {
/** Base baPanel directive */
return {
restrict: 'A',
transclude: t... |
module['exports'] = {
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
}; |
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,a=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},a.getTagRule(),{de... |
import requests
import re
import urllib2
prodid_re = re.compile("productionId=(.+?)[\"\']")
stream_re = re.compile("<MediaFiles base=\"(.+?)\"")
format_re = re.compile("mp4:production/priority/CATCHUP/.+?\\.mp4")
srv_url = "http://mercury.itv.com/PlaylistService.svc"
player_url = "http://mediaplayer.itv.com/2.18.1%... |
/*! Built with http://stenciljs.com */
const{h:t}=window.App;import{c as e,d as n}from"./chunk-b59b7ee0.js";function o(t){let o,a,d=10*-r,u=0,f=!1;const l=new WeakMap;function p(t){d=e(t),m(t)}function v(){clearTimeout(a),o&&(w(!1),o=void 0),f=!0}function h(t){o||(f=!1,L(function(t){if(!t.composedPath)return t.target.c... |
#!/usr/bin/env python3
import rospy
import std_msgs.msg
from geometry_msgs.msg import Twist
from sensor_msgs.msg import RegionOfInterest as ROI
import numpy as np
w = 640
h = 640
pid_w = [0.5, 0, 0] # pid parameters of yaw channel
pid_h = [0.8, 0, 0] # pid parameters of up channel
pid_f = [0.8, 0, 0] # pid parameters... |
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... |