text stringlengths 3 1.05M |
|---|
/*
Highcharts Gantt JS v9.2.2 (2021-08-24)
Tree Grid
(c) 2016-2021 Jon Arild Nygard
License: www.highcharts.com/license
*/
'use strict';(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts"... |
"""Test the write database.
"""
import json
import pytest
import os
import time
import numpy as np
from vectorai.models.deployed import ViText2Vec
from vectorai.write import ViWriteClient
from vectorai.errors import APIError, MissingFieldError, MissingFieldWarning
from vectorai.client import ViClient
from .utils import... |
export { default } from 'ember-debounced-inputs/components/debounced-checkbox'; |
"""Define the route to the admin interface"""
from uuid import uuid4
from flask import (
render_template,
redirect,
url_for,
request,
session,
current_app,
flash,
)
from flask_login import login_required, current_user
from module.server import messages
from module.server.view.admin import bp... |
!function(e){function r(data){for(var r,n,f=data[0],l=data[1],d=data[2],i=0,h=[];i<f.length;i++)n=f[i],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&h.push(o[n][0]),o[n]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(v&&v(data);h.length;)h.shift()();return c.push.apply(c,d||[]),t()}function ... |
'use strict'
module.exports = function promisify (fn) {
return function (...args) {
return new Promise((resolve, reject) => {
fn.apply(this, args.slice(0, fn.length - 1).concat((err, data) => {
if (err) reject(err)
else resolve(data)
}))
})
}
}
|
# -*- coding: utf-8 -*-
from pkg_resources import DistributionNotFound, get_distribution
try:
# Change here if project is renamed and does not equal the package name
dist_name = __name__
__version__ = get_distribution(dist_name).version
except DistributionNotFound:
__version__ = "unknown"
finally:
... |
import { ZoomOut16 } from '..';
export default ZoomOut16;
|
import React from 'react';
import { connect } from 'react-redux';
import { showModal } from '../../actions/Modals';
import RestaurantsListItem from '../../components/RestaurantsListItem/index';
import RestaurantFilterModal from '../../components/ChiliModal/components/RestaurantFilterModal';
import { restaurantSearch, r... |
// ------ Add npm modules
const express = require('express')
const helmet = require('helmet')
const cors = require('cors')
const { urlencoded, json } = require('body-parser')
const app = express()
// ------ Initialize & Use Middle-Wares
app.set('trust proxy', 1)
app.use(urlencoded({ extended: true }))
app.use(jso... |
class Error(Exception):
pass
class AuthError(Error):
pass
class RepoNotFoundError(Error):
pass
class UninitializedBuildError(Error):
pass
|
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
var util = require('util');
var msRest = require('ms-rest');
var WebResource = msRest.WebResource;
/**
* @class
* ServiceGroupFromTemplate... |
from src.io.ReadingContext import ReadingContext
from sklearn.pipeline import Pipeline
from src.transformers.MinMaxPrinterTransformer import MinMaxPrinterTransformer
from src.transformers.OrderingTransformer import OrderingTransformer
from src.transformers.RearrangeTransformer import RearrangeTransformer
from src.globa... |
//
// Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var results = beef.browser.hasVisited("<%== format_multiline(@urls) %>");
var comp = '';
for (var i=0; i ... |
import UIElement, { EVENT } from "../../../util/UIElement";
import { BIND } from "../../../util/Event";
import LanguageSelector from "../status-bar-items/LanguageSelector";
import ThemeSwitcher from "../status-bar-items/ThemeSwitcher";
export default class StatusBar extends UIElement {
components() {
retur... |
ApiHandler = function (url) {
var self = this;
self.url = url;
function apiRequest (route) {
var request = d3.xhr(self.url+"/"+route);
request.header('Content-Type', 'application/json');
return request;
}
this.offersExercised = function (params, load, error) {
var request = apiReque... |
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var DocCommentHighlightRules = ... |
// Import
var BinaryWriter = require("./BinaryWriter");
function writeCount(writer, flag1, flag2) {
writer.writeUInt8(flag1); // Packet ID
writer.writeUInt32(flag2 >>> 0); // Number of elements
}
class UpdateLeaderboard {
constructor(playerTracker, leaderboard, leaderboardType) {
this.playerTracke... |
var varUndefined; // undefined //
var varNull = null;
var varBoolean = true;
var varText = "var can be used in all the program ";
let letText = "let can be used in code scope";
const constText = "const is a constants that never change";
const constpi = 3.14; // const is a constants that never change.
var number = 33... |
downloadBg({"download_bg":"/template/youku_m/images/051000005B7E8D85AD9AB7725B0D01C2.png",
"download_btn":"/template/youku_m/images/TB1tOnhSpXXXXafXXXXXXXXXXXX.png",
"buttonText":"测试代码","Bizid":"common","person":"234","orderType":"video",
"targetUrl":"#","picUrl":"","title":"下载标题地址",... |
const unexpectedBehaviorCount = testResult => {
const { result } = testResult;
const { details } = result || {};
const { summary } = details || {};
if (!details || !summary) return 0;
return summary.unexpectedCount;
};
module.exports = unexpectedBehaviorCount;
|
/**
* Created by jibin on 2017/12/27.
*/
import Event from './Event';
import classes from 'component-classes';
const isCSSAnimationSupported = Event.endEvents.length !== 0;
const capitalPrefixes = [
'Webkit', 'Moz', 'O', 'ms'
];
const prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
function getStyleProper... |
/*
* jQuery UI Draggable 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Draggables
*
* Depends:
* jquery.ui.core.js
* jquery.ui.mouse.js
* jquery.ui.widget.js
... |
"""
Copyright (C) 2020 Patrick Schwab, F. Hoffmann-La Roche Ltd
Copyright (C) 2019 Patrick Schwab, ETH Zurich
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 witho... |
class Solution(object):
def findLUSlength(self, strs):
"""
:type strs: List[str]
:rtype: int
"""
|
module.exports = { prefix: 'fas', iconName: 'clipboard', icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-... |
/**
* # Send reports/artifacts from testbot back to client
*
* By default, serial logs (given that the hardware is set up correctly), and the
* logs from the tests will be sent back to the client that started the test, upon
* the test finishing. Other artifacts can be sent back to the client using the
* `archiver... |
import React from "react";
import CustomerElement from "./customerElement";
class CustomerList extends React.Component {
render(){
return(
<div >
{
this.props.customers !== null ?
this.props.customers.map((e, i) => <CustomerElement key={i... |
define([
"dojo/i18n!js/config/nls/local",
"esri/layers/FeatureLayer"
], function (i18n, FeatureLayer) {
return {
// the feature layers needs to be published in 10.3 or higher version of arcgis server
sources: [{
featureLayer: new FeatureLayer({
url: "htt... |
Stripe.setPublishableKey('pk_test_fQfWbbhOaMjuJQLXdPkIjORH');
var $form = $('#checkout-form');
$form.submit(function (event) {
$('#charge-error').addClass('hidden');
$form.find('button').prop('disabled', true);
Stripe.card.createToken({
number: $('#card-number').val(),
cvc: $('#card-cvc').... |
import {Either} from '../src/Monad/index';
test("Testing: Either", ()=>{
const fromNullable = Either
.fromNullable(100)
, map = Either
.fromNullable(100)
.map(data=>data/2)
.getOrElse("No Map")
, value = Either
.f... |
const axios = require('axios')
const generateToken = require('./generate-token')
const pkg = require('../package.json')
module.exports = async context => {
const url = `${process.env.SEARCH_SERVICE_URL}/api/indexes/${process.env.SEARCH_SERVICE_INDEX}`
const token = generateToken({ key: process.env.SEARCH_SERVICE_J... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['vi']={"editor":"Bộ soạn thảo văn bản có định dạng","editorPanel":"Bảng điều khiển Rich Text Editor","common":{"editorHelp":"Nhấn ALT + 0 để được giúp đỡ","brow... |
;(function () {
'use strict';
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
/*jslint browser:true, node:true*/
/*global de... |
angular.module('das')
.config(['$stateProvider', function($stateProvider) {
$stateProvider
.state('bundle/view', {
url: "/bundle/view/:slug?preview",
templateUrl: "pages/bundle/view.html",
controller: "bundleViewController as bundleViewCtrl",
resolve: {
cur... |
import React, { Component } from 'react';
import Link from 'next/link';
import { TabView, TabPanel } from '../../lib/tabview/TabView';
import { useLiveEditorTabs } from '../common/liveeditor';
import { CodeHighlight } from '../common/codehighlight';
export class InputMaskDoc extends Component {
constructor(props)... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCU... |
#!/usr/bin/env python
# -- Content-Encoding: UTF-8 --
"""
Node Composer: Isolate Distributor based on ``ortools``
Clusters the components of a composition into groups according to several
criteria.
:author: Thomas Calmant
:license: Apache Software License 2.0
:version: 1.1.0
..
Copyright 2014 isandlaTech
L... |
const assert = require('yeoman-assert')
const helpers = require('yeoman-test')
const path = require('path')
const rimraf = require('rimraf')
const feature = 'jest'
const testPath = path.join(__dirname, 'tmp-' + feature)
const packageJSON = path.join(testPath, 'package.json')
const config = require('../generators/app/fe... |
/**
* Bio component that queries for data
* with Gatsby's StaticQuery component
*
* See: https://www.gatsbyjs.org/docs/static-query/
*/
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
import styled from "styled-components"
import { rhythm } from "../utils/... |
$(function() {
setInterval( function() {
var seconds = new Date().getSeconds();
var sdegree = seconds * 6;
var srotate = "rotate(" + sdegree + "deg)";
$("#sec").css({"-moz-transform" : srotate, "-webkit-transform" : srotate});
}, 1000 );
setInterval( function... |
$(document).ready(function() {
$("form#numbers").submit(function(event){
var countUntil = parseInt($("#count-until").val());
var countBy = parseInt($("#count-by").val());
var array = [];
if (countUntil < 0 || countBy < 0) {
alert("Please use only positive numbers");
} else if (countUntil ... |
// Korean
'use strict';
var ko = function() {}
ko.code = 'ko';
ko.data = {
/* Navigation*/
NAV_AddWallet : '지갑 추가 ',
NAV_BulkGenerate : '대량 생성 ',
NAV_Contact : '문의하기 ',
NAV_Contracts : '컨트랙트 ',
NAV_DeployContract : '컨트랙트 배포 ',
NAV_ENS ... |
import styled from 'styled-components';
export const Header = styled.View`
background: #141419;
height: 50px;
flex-direction: row;
padding: 10px 10px;
justify-content: space-between;
align-items: center;
`;
export const CartInfo = styled.View`
position: relative;
`;
export const CartCounter = styled.Te... |
module.exports = new Date(1974, 10, 18)
|
// CommonJS, AMD, script tag
if (typeof exports !== 'undefined') {
module.exports = gcd;
} else if (typeof define === 'function' && define.amd) {
define(() => {
return gcd;
});
} else {
global.gcd = gcd;
}
}(typeof window !== 'undefined' ? window : global));
|
function calculateDistanceIn3dSpce(arr) {
let [x1 , y1 , z1 ,x2 , y2 , z2] = [arr[0] , arr[1] , arr[2] , arr[3] , arr[4] ,arr[5]]
let distance = Math.sqrt(Math.pow((x1 - x2), 2) + Math.pow((y1 - y2), 2) + Math.pow((z1 - z2), 2))
console.log(distance)
}
calculateDistanceIn3dSpce([3.5, 0, 1, 0, 2, -1]) |
import React from 'react'
import { graphql } from 'gatsby'
import Layout from '../components/Layout'
import NotFound from '../components/NotFound'
const TRANSLATIONS = {
es: {
title: 'Página no encontrada',
description: 'La página a la que has llegado no existe',
},
ca: {
title: 'Página no encontrad... |
goog.provide('ol.interaction');
goog.require('ol');
goog.require('ol.Collection');
goog.require('ol.Kinetic');
goog.require('ol.interaction.DoubleClickZoom');
goog.require('ol.interaction.DragPan');
goog.require('ol.interaction.DragRotate');
goog.require('ol.interaction.DragZoom');
goog.require('ol.interaction.Keyboar... |
export default {
MONTSERRAT: 'Montserrat',
};
|
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
add_location,
append_dev,
destroy_each,
detach_dev,
dispatch_dev,
element,
init,
insert_dev,
noop,
safe_not_equal,
set_data_dev,
space,
text
} from "svelte/internal";
const file = undefined;
function get_each_context(ctx, list, i) {
const ch... |
import React, { Component } from 'react'
import { StatusBar, BackHandler } from 'react-native'
import { connect } from 'react-redux'
import { Creators as manageAccountActions } from '../../../Stores/reducers/manageAccountReducer'
import { Images, Colors } from 'App/Theme'
import { translate } from '../../../Locales'
... |
'use strict';
exports.main = async (event, context) => {
//event为客户端上传的参数
console.log('event : ', event)
//返回数据给客户端
return event
};
|
# coding: utf-8
""" BigGAN PyTorch model.
From "Large Scale GAN Training for High Fidelity Natural Image Synthesis"
By Andrew Brocky, Jeff Donahuey and Karen Simonyan.
https://openreview.net/forum?id=B1xsqj09Fm
PyTorch version implemented from the computational graph of the TF Hub module for BigGAN.
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define(["require","exports","./kebabDictionary"],function(b,a,c){Object.defineProperty(a,"__esModule",{value:!0});var d={"short-date":"(datePattern: 'M/d/y', select... |
"""
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.9
Contact: support@ory.sh
Generated by: http... |
/* http://madivachallenge.appspot.com */
(function firstChallenge() {
var isBlack = function(node) {
// Solution for webkit only
return document.defaultView.getComputedStyle(node, null).getPropertyValue("color") == "rgb(0, 0, 0)";
};
var total = 0;
var number_nodes = [];
var i, len, number, nodes;
nodes = do... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world, backgroundImg, waterSound, backgroundMusic, cannonExplosion;
var canvas, angle, tower, ground, cannon, boat;
var balls = [];
var boats = [];
var brokenBoatanimation= [... |
import React, { useContext, useEffect, useState } from "react";
import { useParams, withRouter } from "react-router";
import ClipLoader from "react-spinners/ClipLoader";
import { getLeaderInfo, getUserRole, userHasPerm } from "../../../../server/classes/Party/Methods";
import { AlertContext } from "../../../context/Ale... |
//Global Variables
var getCareer = new Array();
getCareer["chkRealistic1"] = 1;
getCareer["chkRealistic2"] = 1;
getCareer["chkRealistic3"] = 1;
getCareer["chkRealistic4"] = 1;
getCareer["chkRealistic5"] = 1;
getCareer["chkRealistic6"] = 1;
getCareer["chkRealistic7"] = 1;
getCareer["chkRealistic8"] = 1;
getCareer["chkRe... |
var express = require('express');
var _ = require('lodash');
var util = require('util');
var request = require('request');
exports = module.exports = FetchAirlineDetails
function FetchAirlineDetails() {
}
FetchAirlineDetails.prototype.getAirlineDetails = function() {
var self = this;
return function(req, res, ... |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2012-2015 BigML
#
# 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 requi... |
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
"use strict";StackExchange.mockups=function(){function e(e,t,n,i,r){function a(e,t,n){for(var i=-1,r=-1;;){if(r=t.indexOf(e,r+1),-1==r)break;(0>i||Math.abs(r-n)<Math.abs(r-i))&&(i=r)}return i}return e.replace(new RegExp("<!-- Begin mockup[^>]*? -->\\s*!\\[[^\\]]*\\]\\((http://[^ )]+)[^)]*\\)\\s*<!-- End mockup -->","g"... |
'use strict';
angular.module('rippleDemonstrator')
.controller('headerController', function ($scope, $rootScope, $window, $state, usSpinnerService, $stateParams, UserService, AdvancedSearch) {
$rootScope.searchExpression = '';
$scope.searchExpression = $rootScope.searchExpression;
$scope.reportTypes = [... |
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
/*global THREE, console */
// This set of controls performs orbiting, dollying (zoom... |
// Copyright (c) 2021 Uber Technologies, Inc.
//
// 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... |
// dependencies
const express = require('express');
// creating express server
const app = express();
// sets up initial port
const PORT = process.env.PORT || 3001;
// this sets up express for data parsing
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(express.static('public'));
/... |
/* vamos começar pelo REST < isso mesmo "-é o resto", o que sobra..
então, essa pratica se aplica com aqueles tres pontinho ali.
isso é pra ser usado quando se tem 2 ou mais parametros, pois o primeiro
parametro vira uma constante, em seguida tudo o RESTO vira um array.
aki abaixo "origamid" é o parametro exclusi... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", {
fill: "none",
d: "M0 0h24v24H0z"
}), React.createElement("path", {
d: "M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.... |
import React, { Component } from 'react';
export class InputLine extends Component {
displayName = InputLine.name
constructor(props) {
super(props);
var inputLineText = "0";
this.state = { inputLineText: inputLineText }
this.get = this.get.bind(this);
this.set = this.set.bind(this);
In... |
# Copyright 2018 Adrien Guinet <adrien@guinet.me>
#
# 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... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["a8ec"],{"0Cba":function(c,e,t){"use strict";t.r(e),function(c){t.d(e,"ACTIVE",function(){return h}),t.d(e,"ALIGN_LEFT",function(){return o}),t.d(e,"ALIGN_RIGHT",function(){return i}),t.d(e,"DARK",function(){return v}),t.d(e,"DISABLED",function(){return z}),t.d(e,"FI... |
def isArg(args, index, default=False):
try:
arg = args[index]
if type(arg) == str:
return arg
except:
return default |
/**
* @class Ext.layout.BoxLayout
* @extends Ext.layout.ContainerLayout
* <p>Base Class for HBoxLayout and VBoxLayout Classes. Generally it should not need to be used directly.</p>
*/
Ext.layout.BoxLayout = Ext.extend(Ext.layout.ContainerLayout, {
type: 'box',
targetCls: 'x-layout-box',
//wrapCls: 'x-l... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.lang['ar']={"wsc":{"btnIgnore":"تجاهل","btnIgnoreAll":"تجاهل الكل","btnReplace":"تغيير","btnReplaceAll":"تغيير الكل","btnUndo":"تراجع","changeTo":"... |
import React, { PureComponent } from "react";
import { View, Text } from "react-native";
import { connect } from "react-redux";
import { Row, Rows } from "../components/Row";
import { LinkText } from "../components/LinkText";
import { Navbar } from "../components/Navbar";
import { LoadingIndicator } from "../components... |
/*! jQuery UI - v1.10.4 - 2014-06-22
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.hu={closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","J... |
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# 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 applica... |
const prompts = require('prompts');
const { gray, red } = require('kleur');
const { write } = require('clipboardy');
const { getEnvPath } = require('./util');
const PATHS = getEnvPath();
const promptsConfig = {
type: 'autocomplete',
name: 'path',
message: 'Search and Copy',
choices: PATHS.map(path => ({ title... |
module.exports = {
Article: require("./Article"),
Comment: require("./Comment")
}; |
"use strict";
angular.module('psMenu').controller('psMenuController',
[
'$scope', '$rootScope', function($scope, $rootScope){
this.setActiveElement = function(el) {
$scope.activeElement = el;
};
this.setRoute = function(route){
$rootScope.broadcast('ps-menu-item-selected-event'... |
var searchData=
[
['gen',['Gen',['../d3/d8d/structnlohmann_1_1detail_1_1utility__internal_1_1Gen.html',1,'nlohmann::detail::utility_internal']]],
['gen_3c_20t_2c_200_20_3e',['Gen< T, 0 >',['../d9/d5f/structnlohmann_1_1detail_1_1utility__internal_1_1Gen_3_01T_00_010_01_4.html',1,'nlohmann::detail::utility_inte... |
# these are the IDs of the DS18B20's
# and their corresponding names displayed on the clock
sensornames = {
'0000058e0f0c' : 'Inside',
'0000031b462b' : 'Closer',
'0000031b3dae' : 'Farther',
'0000031b54e7' : 'Outside',
'0000031b4f09' : 'Inside2'
}
|
import React from 'react';
import './style.css'
import pokemonType from '../../helpers/pokemonTypes'
function Card({ pokemon }) {
return (
<div className= 'card'>
<div className = 'card__img'>
<img src={ pokemon.sprites.front_default } alt=""></img>
</div>
<h5... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... |
from .base_match import BaseMatchAdapter
from chatterbot.utils.pos_tagger import POSTagger
from chatterbot.utils.stop_words import StopWordsManager
from chatterbot.utils.word_net import Wordnet
class ClosestMeaningAdapter(BaseMatchAdapter):
"""
This adapter selects a response by comparing the tokenized form ... |
function fn7(items) {
var els = [];
for (var i = 0; i < items.length; i++) {
els.push(<div id="id" key={i} />);
}
return els;
} |
#!/usr/bin/env node
// this script is to be used during development and will regenerate the ws_server.js file
// by concating the files in the ws folder according to the order of the WSFiles array
// it basically allows you to write the code for your server app in multiple files.
const fs = require('fs')
const path = ... |
import sys
if sys.version_info.major == 2:
from aenum import Enum
else:
from enum import Enum
import threading
import time
class ConnectionStateChecker(object):
def __init__(
self,
ping_function,
keep_alive_interval,
sleep=1):
self.s... |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
#--------------------------
def setplot(plotdata):
#--------------------------
"""
Specify what is to ... |
# 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"); you may not u... |
var Setting = function () {
function changeSelect() {
$('select').on('change', function() {
var str = this.id;
var value = 'fa fa-fw fa-' + this.value;
var idChange = str.split('_')[1];
$("#fa_" + idChange).removeClass().addClass(value);
})
}
... |
# -*- coding: utf-8 -*-
# Copyright SweetCase Project, Re_Coma(Ha Jeong Hyun). 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/LICENS... |
"use strict";
/**
* @license
* Copyright 2014 Palantir Technologies, 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
*
* Unle... |
import $ from 'jquery';
QUnit.testStart(function() {
$('#qunit-fixture').html(
'<div id="scheduler">\
<div data-options="dxTemplate: { name: \'template\' }">Task Template</div>\
</div>');
});
import 'generic_light.css!';
import 'ui/scheduler/ui.scheduler';
import 'ui/switch';
imp... |
/*
* @Author: daidai
* @Date: 2022-03-04 16:46:05
* @LastEditors: daidai
* @LastEditTime: 2022-03-30 18:24:05
* @FilePath: \yhht-ui\src\views\com\button\button.js
*/
export default {
text:`<div class="row">
<yh-button>默认按钮</yh-button>
<yh-button theme="primary">主要按钮</yh-button>
<yh-butt... |
import traceback
import demistomock as demisto
from CommonServerPython import *
def get_range_command(indexes: List[str], val: List[Any]) -> List[Any]:
"""
Filter list with a given range.
Args:
indexes (list): indexes to filter.
val (list): list to filter .
Ret... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactRedux = require("react-redux");
var _reducer = require("./reducer");
require("./Header.css");
function _interopRequireDefault(obj) { return obj ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _svgIcon = require('../../svg-icon');
var _svgIcon2 = _interopRequireD... |