text stringlengths 3 1.05M |
|---|
// paste in your published Google Sheets URL from the browser address bar
var googleDocURL = 'https://docs.google.com/spreadsheets/d/1KtlbBI0y5HgZhPvvrumbzclKaWOnzmVVo7rDB6hdO2U/edit#gid=0';
// insert your own Google Sheets API key from https://console.developers.google.com
var googleApiKey = 'AIzaSyBKp65u3JgHbc2gPK2q... |
var models = {}
var noa
var meshbody=null
var scene=null
var modelname='firework'
export function defineModelCompFirework(noa2) {
meshbody= projectiles['fireworks']//mainplayer;
}
export function wath(){
return meshbody;
}
export function applyModelFirework(eid, model, texture, offset, nametag, name, hitb... |
'use strict'
// Template version: 1.2.4
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
// Various Dev Server settings
host: 'localhost', // can be overwritte... |
'use strict';
let searching = 0;
let zoomclick = null;
// 以下是公共方法
function find_child(parent, name, attr) {
let children = parent.childNodes;
for (let i = 0; i < children.length; i++) {
if (children[i].tagName == name)
return (attr != undefined) ? children[i].attributes[attr].value : child... |
//
// Vivado(TM)
// ISEWrap.js: Vivado Runs Script for WSH 5.1/5.6
// Copyright 1986-1999, 2001-2013,2015 Xilinx, Inc. All Rights Reserved.
//
// GLOBAL VARIABLES
var ISEShell = new ActiveXObject( "WScript.Shell" );
var ISEFileSys = new ActiveXObject( "Scripting.FileSystemObject" );
var ISERunDir = "";
v... |
###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... |
removeFeedbackButton();
var selectInput;
function removeFeedbackButton() {
if(document != null && document.body != null){
var linkElements = document.getElementsByTagName("a");
for(var i = 0; i < linkElements.length; i++) {
var link = linkElements[i];
if (link.innerHTML.indexOf("馈") >= 0) {
var parentD... |
export const content =
`
export interface Item {
id: String;
name: String;
value: String;
}
export interface Result {
id: String;
name: String;
value: String;
}
` |
import React from "react";
import Layout from "../../components/NewLayout";
import useCanonicalLinkMetaTag from "../../components/useCanonicalLinkMetaTag";
import ContactPageContent from "../../components/ContactPageContent";
const Index = () => {
const canonicalLinkMetaTag = useCanonicalLinkMetaTag("/contact/");
... |
# !/usr/bin/evn python3
# -*- config: utf-8 -*-
from functools import lru_cache
import timeit
@lru_cache(maxsize=24)
def factorial(n):
if n == 0:
return 1
elif n == 1:
return 1
else:
return n * factorial(n - 1)
@lru_cache(maxsize=24)
def fib(n):
if n == 0 or n == 1:
... |
Java.perform(function() {
var hook;
var targetClass = 'java.lang.Enum'; //change your class here!!
try{
console.log('[*] Getting Methods and Implementations of Class: ' + targetClass)
console.log(" ")
hook = Java.use(targetClass);
} catch (err){
console.log('[Android] Hooking ' + targetClass + ' [\"Error\"]... |
import React from 'react';
import { DataBox, FlexRow } from '../../Common';
import { Link } from 'react-router-dom';
const DoubleBakingEvidence = ({ op }) => {
return (
<FlexRow>
<Link to={`/${op.block}`}>
<DataBox mr={40} title="Block" valueSize="14px" value={op.height} />
</Link>
<Link to={`/cycle/${... |
# coding=utf-8
# Copyright 2021 The TensorFlow Datasets 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 required by appl... |
import sys
import os
sys.path.insert(1,os.getcwd())
#from perceiver_pytorch.multi_modality_perceiver import MultiModalityPerceiver, InputModality
from private_test_scripts.perceivers.crossattnperceiver import MultiModalityPerceiver, InputModality
import torch
torch.multiprocessing.set_sharing_strategy('file_system')
f... |
from sentiment import classifier
from flask import session
import pickle
import requests
import collections
import json
import pandas as pd
import numpy as np
def norm(v, r=[0,1]):
m = max(v)
diff = r[1] - r[0]
return [r[0] + (diff*(item/float(m))) for item in v]
# sentiment
def _process_tweet(tweet):
... |
var cont="contact-us";
function infor(){
var name= document.getElementById("names").value;
var text=document.getElementById("message").value;
var email=document.getElementById("emails").value;
if(name===""||email===""||text===""){
alert("Enter details");
}
else{
alert("Thank you... |
import React from 'react'
import { graphql } from 'gatsby'
import Layout from '../components/Layout'
import Helmet from 'react-helmet'
import Container from '../components/Container'
import CardList from '../components/CardList'
import GhostPost from '../components/ghost-post'
import PageTitle from '../components/PageT... |
'use strict';
const {methodCallSelector} = require('./selectors/index.js');
const toLocation = require('./utils/to-location.js');
const MESSAGE_ID = 'no-console-spaces';
const messages = {
[MESSAGE_ID]: 'Do not use {{position}} space between `console.{{method}}` parameters.',
};
const methods = [
'log',
'debug',
... |
'use strict'
var test = require('tape')
var u = require('unist-builder')
var h = require('hastscript')
var ok = require('.')
test('hast-util-is-body-ok-link', function(t) {
t.equal(
ok(h('link', {itemProp: 'foo'})),
true,
'yes - for `link`s with `itemProp`'
)
t.equal(
ok(h('link', {rel: ['pref... |
module.exports = "Type ${type} does not exist for ${path}"
|
/* eslint-disable no-unused-vars */
// node fetch import
const fetch = require('node-fetch');
// node redis import
const redis = require('redis');
// client creation from redis
const client = redis.createClient();
// Utility for Promises working with redis
const { promisify } = require('util');
// const getAsync = pr... |
module.exports = {
prefix: '',
important: false,
separator: ':',
theme: {
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
colors: {
transparent: 'transparent',
black: '#000',
white: '#fff',
gray: {
100: '#f7fafc',
... |
import request from './request';
const extractData = res => res.data.data;
function fetch(params) {
return request.get('/users', { params }).then(extractData);
}
function upsert(data) {
return request.post('/users', data).then(extractData);
}
function remove({ id }) {
return request.delete(`/users/${id}`);
}
... |
import React from "react";
import "./host_info.scss";
import data from "./host_info.json";
import QqImg from './img/qq.jpg';
import WechatImg from './img/wechat.jpg';
class HostInfo extends React.Component {
quickCodeMap = {
'qq': QqImg,
'wechat': WechatImg
}
render() {
return... |
import numpy as np
from .skeleton import Environment
class Gridworld(Environment):
"""
The Gridworld as described in the lecture notes of the 687 course material.
Actions: up (0), right (1), down (2), left (3),
Environment Dynamics: With probability 0.8 the robot moves in the specified
... |
'''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
... |
// Copyright (c) 2022 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... |
import sqlite3
import copy
from xml.etree import ElementTree
import xml.dom.minidom
import traceback
import globals
class WuComponent:
def __init__(self, component_index, location, group_size, reaction_time,
type, application_hashed_name, properties=None):
self.index = component_index
self.loca... |
'use strict';
let {
T_VARIABLE,
T_ATOM
} = require('./const');
let {
checkAST,
runTimeCheck,
getVariable,
validateParamsInRunTime
} = require('./stub');
let parser = require('./parser');
let executeAST = (mid, variableMap = {}, {
variableStub = {},
skipCheck
} = {}) => {
if (!skip... |
module.exports = {
extends: '@parcel/eslint-config',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 5,
},
env: {
browser: true,
},
rules: {
'no-console': 'off',
'no-global-assign': 'warn',
'no-unused-vars': 'off',
},
};
|
from selenium.webdriver.support.ui import Select
from model.project import Project
class ProjectHelper:
def __init__(self, app):
self.app = app
def open_manage_projects_page(self):
wd = self.app.wd
wd.get("http://localhost/mantisbt-1.2.20/manage_proj_page.php")
def ... |
/**
* @class Ext.util.AbstractMixedCollection
* @private
*/
Ext.define('Ext.util.AbstractMixedCollection', {
requires: ['Ext.util.Filter'],
mixins: {
observable: 'Ext.util.Observable'
},
/**
* @property {Boolean} isMixedCollection
* `true` in this class to identify an object as an... |
import SimpleComponentDriver
from '../Testing/CommonDrivers/simpleComponentDriver';
export default class IconWithTooltipDriver extends SimpleComponentDriver
{
constructor( wrapper )
{
super( wrapper, `.${wrapper.prop( 'cssMap' ).default}` );
this.tooltip = wrapper.find( 'IconWithTooltip > T... |
import { reactive, readonly } from "vue";
import { useRouter, useRoute } from "vue-router";
import { useAnnouncer, useKirbyApi } from "./";
/**
* Returns page data by id or the current route path
*
* @param {string} [path] The ptional page id (path) to retrieve
* @returns {reactive} The readonly reactive page obje... |
from aiohttp import web
from .scheduler import app
web.run_app(app, host='0.0.0.0', port=5000)
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DirectionalKeyCodes = (_a = {},
_a[38 /* up */] = 1,
_a[40 /* down */] = 1,
_a[37 /* left */] = 1,
_a[39 /* right */] = 1,
_a[36 /* home */] = 1,
_a[35 /* end */] = 1,
_a[9 /* tab */] = 1,
_a[33 /* pageUp */... |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# SpiderBot_Validation.py #
# Author(s): Chong Yu Quan, Arijit Dasgupta #
# Email(s): chong.yuquan@u.nus.edu, arijit.dasgupta@u.nus.edu #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
export const getRandomInt = (max = 100, min = 0) => {
return min + Math.round(Math.random() * 1000) % (max - min);
};
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import React, { useState, useEffect } from "react"
import { graphql } from "gatsby"
import Img from "gatsby-image"
import { motion, useAnimation } from "framer-motion"
import { useScrollPosition } from "@n8tb1t/use-scroll-position"
import { documentToReactComponents } from "@contentful/rich-text-react-renderer"
import... |
const childProc = require('child_process');
const path = require('path');
const http = require('http');
const tmp = require('tmp');
const fs = require('fs');
const disableIntermediatePkiEngine = function( vaultBinary, vaultUrlPath, vaultToken ) {
console.log('Disabling PKI secret engine at ' + vaultUrlPath);
c... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
import React from "react";
import { render } from "react-dom";
import { AppContainer } from "react-hot-loader";
import configureStore, { history } from "./store/configureStore";
import Root from "./components/Root";
import "./styles/styles.scss";
// Tell webpack to load favicon.ico
require("./favicon.ico");
const sto... |
const features = require('../../config/features');
module.exports.tests = {};
// test exports
module.exports.tests.interface = function(test, common) {
test('interface: features', function(t) {
t.true(Array.isArray(features.tags), 'valid taglist');
t.end();
});
};
// ensure some tags are excluded
module.... |
from pyinfra import config
from pyinfra.operations import server
config.SUDO = True
# Various different outputs
# To see output need to run pyinfra with '-v'
a = server.script(
name='Hello',
src='files/hello.bash',
)
print('a', a)
# To see output need to run pyinfra with '-v'
b = server.shell(
name='Say... |
/* PrismJS 1.13.0
http://prismjs.com/download.html#themes=prism-solarizedlight&languages=markup+css+clike+javascript+bash */
var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,n=_self.Prism... |
function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function asyncGeneratorStep(e,r,t,s,n,i,o){try{var l=e[i](o),c=l.value}catch(a){return void t(a)}l.done?r(c):Promise.resolve(c).then(s,n)}function _asyncToGenerator(e){return function(){... |
'use strict';
class LimitChars {
constructor(element = null) {
this._element = element;
if (element.hasAttribute('maxlength'))
this.setMaxLength(element.getAttribute('maxlength'));
else this._maxLength = 0;
if (element.hasAttribute('data-count-output'))
this._countOutput = element.getAttribute('dat... |
import request from 'supertest-as-promised';
import httpStatus from 'http-status';
import jwt from 'jsonwebtoken';
import chai, { expect } from 'chai';
import app from '../../index';
import config from '../../config/config';
import User from '../../server/models/user.model';
chai.config.includeStack = true;
describe(... |
/**
* Internal dependencies
*/
import Card from '../index';
import CardBody from '../body';
import CardDivider from '../divider';
import { getCardStoryProps } from './_utils';
export default { title: 'Components/Card/Divider', component: CardDivider };
export const _default = () => {
const props = getCardStoryProp... |
module.exports = {
type: "object",
description: "Task meta-data.",
properties: {
id: {
type: "string",
description:
"Unique identifier for the task; we generally use the path in the SVN.",
title: "id",
minLength: "5",
option... |
const ObjectId = require('mongodb').ObjectID;
const _ = require('lodash');
const restrictedRoutes = [
{ route: '/admin/product/new', response: 'redirect' },
{ route: '/admin/product/insert', response: 'redirect' },
{ route: '/admin/product/edit/:id', response: 'redirect' },
{ route: '/admin/product/update'... |
'use strict';
var should = require('should');
var sinon = require('sinon');
var bitcore = require('bitcore-lib');
var TxController = require('../lib/transactions');
var _ = require('lodash');
describe('Transactions', function() {
describe('/tx/:txid', function() {
it('should have correct data', function(done) {
... |
import ray.cloudpickle as cloudpickle
import copy
from datetime import datetime
import logging
import shutil
import uuid
import time
import tempfile
import os
from numbers import Number
from ray.tune import TuneError
from ray.tune.checkpoint_manager import Checkpoint, CheckpointManager
from ray.tune.durable_trainable i... |
"""
sdt.py: Scripted Display Tool (SDT3D) helper
"""
import logging
import socket
from typing import IO, TYPE_CHECKING, Dict, List, Optional, Set, Tuple
from urllib.parse import urlparse
from core.constants import CORE_CONF_DIR, CORE_DATA_DIR
from core.emane.nodes import EmaneNet
from core.emulator.data import LinkDa... |
import React from 'react'
import { navigate } from 'gatsby-link'
import Layout from '../../components/Layout'
function encode(data) {
return Object.keys(data)
.map((key) => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))
.join('&')
}
export default class Index extends React.Component {
cons... |
(function() {
"use strict";
var app = require("electron").app;
var BrowserWindow = require("electron").BrowserWindow;
var Menu = require("electron").Menu;
var env = require("./env_config");
var devHelper = require("./dev_helper");
var windowStateKeeper = require("./window_state");
var f... |
'use strict';
module.exports = {
responses: {
myorg: {
myrepo: {
"data": {
"repository": {
"name": "myrepo",
"url": "https://github.com/myorg/myrepo",
"pullRequests": {
"nodes": [
{
"title": "Add README &... |
# Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import json
import sys
from typing import Any, Dict, List, Type, TypeVar, cast
# pyre-fixme[21]: Could not find name `_TypedDictMeta... |
const { PdfApi } = require("asposepdfcloud");
pdfApi = new PdfApi(
"78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9", "b125f13bf6b76ed81ee990142d841195")
console.log('running example');
pdfApi.getDocumentCaretAnnotations( "PdfWithAnnotations.pdf", null, null)
.then((result) => {
console.log(result.resp... |
import Vue from 'vue';
import terminalComp from '~/environments/components/environment_terminal_button';
describe('Stop Component', () => {
let TerminalComponent;
let component;
const terminalPath = '/path';
beforeEach(() => {
TerminalComponent = Vue.extend(terminalComp);
component = new TerminalComp... |
var x;
var y;
class Base {
b(a) {}
get c() {
return x;
}
set c(v) {}
static s(a) {}
static get t() {
return x;
}
static set t(v) {}
constructor(a){}
}
class Derived extends Base {
b(a) {}
get c() {
return y;
}
set c(v) {}
static s(a) {}
... |
export { RestaurantsView } from './RestaurantsView'; |
/**
* @name exports
* @summary AppointmentParticipant Class
*/
module.exports = class AppointmentParticipant {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty(this, '... |
importScripts('https://www.gstatic.com/firebasejs/3.9.0/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/3.9.0/firebase-messaging.js');
firebase.initializeApp({
'messagingSenderId': 'myId'
});
const messaging = firebase.messaging(); |
# -*- coding: utf-8 -*-
"""Clinical Knowledge Graph."""
import tarfile
from pathlib import Path
from typing import Iterable, Optional
from urllib.request import urlretrieve
import click
import pandas as pd
from docdata import parse_docdata
from more_click import verbose_option
from .base import TabbedDataset
from .... |
import merge from 'lodash/merge';
import Breakpoints from '../breakpoints';
import { columnOptions } from '../constants';
import { hexToRgba } from '../utils';
import {
getDataZoomConfig,
getThresholdConfig,
mergeSeriesToOptions,
parseAnnotations,
generateBarSeries,
generateLineSeries,
} from './config';
im... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['sv']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Tryck ALT 0 för hjälp","browseServer":"Bläddra på server","url... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
import { module, test } from '../qunit';
import moment from '../../moment';
import each from '../helpers/each';
module('days in month');
test('days in month', function (assert) {
each([31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], function (days, i) {
var firstDay = moment([2012, i]),
... |
/*!
* sweetalert2 v8.11.4
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Sweetalert2 = factory());
}(this, (function () { 'use strict'... |
class Bird:
def sing(self):
print("bird sing")
class sonBird(Bird):
def sing(self):
print("另一种鸟sing")
def psing(self):
self.sing()
Bird.sing(self)
s = sonBird()
s.sing()
s.psing() |
#!/usr/bin/env node
var fs = require("fs"),
dust = require("dust"),
async = require("async"),
_ = require("underscore");
function Dusty(location) {
this.location = location;
}
Dusty.prototype._compile = function(location, cb) {
var self = this;
fs.stat(location, function(err, stat) {
if (err) ... |
// Load modules
var Any = require('./any');
var Utils = require('./utils');
// Declare internals
var internals = {};
module.exports = internals.Number = function () {
Any.call(this);
this._type = 'number';
this._base(function (value, state, options) {
if ((typeof value === 'number' || typeo... |
import os
import model
import tensorflow as tf
import input_data
data=input_data.read_data_sets('MNIST_data',one_hot=True)
with tf.variable_scope("convolutional"):
x=tf.placeholder(tf.float32,[None,784],name='x')
keep_prob=tf.placeholder(tf.float32)
y,variables=model.convolutional(x,keep_prob)
#train
... |
import Vec from '../../src/vec/vec.main';
describe('Vec.forEach2()', () => {
test('should throw exception if arguments are invalid', () => {
expect(() => Vec.forEach2({}, new Vec(), new Vec())).toThrow(TypeError);
expect(() => Vec.forEach2(function* () {}, new Vec(), new Vec())).toThrow(TypeError);
expec... |
export default function within(ids, coords, qx, qy, r, nodeSize) {
const stack = [0, ids.length - 1, 0];
const result = [];
const r2 = r * r;
// recursively search for items within radius in the kd-sorted arrays
while (stack.length) {
const axis = stack.pop();
const right = stack.p... |
import os
from time import sleep
print('***********************')
a = 1
pid = os.fork()
if pid < 0:
print("创建进程失败")
elif pid == 0:
print('这是新的进程')
print("a =",a)
a = 10000
else:
sleep(1)
print("这是原有进程")
print("psarent a =",a)
print("演示完毕")
|
const { expect } = require("chai");
const { GraphQLNode, combineNodes } = require("../../src");
describe("gists/idio-scalar", async () => {
it("should schema globals", async () => {
const User = new GraphQLNode({
name: "User",
typeDefs: `
type User {
... |
#This is a python script used to create an Ansible Inventory hosts.yml file for Confluent Platform
#This script obtains the public and private IPs of the EC2 instances belonging to the ConfluentDemo group
#The public IPs are updated in the hosts.yml file accordingly
#!/bin/python
import os
#Get public IP addresses o... |
const fs = require('fs');
const path = require('path');
const Ajv = require('ajv');
const ajv = new Ajv();
// Custom formats
ajv.addFormat('custom-date-time', /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/);
/**
* Loads all the schemas in a directory into ajv
*/
const loadSchemas = dir => {
fs.readdirSync(dir).forEach(fi... |
import React from 'react'
import { useFormContext, useFieldArray } from 'react-hook-form'
import FormControlLabel from '@material-ui/core/FormControlLabel'
import Accordion from '@material-ui/core/Accordion'
import AccordionSummary from '@material-ui/core/AccordionSummary'
import AccordionDetails from '@material-ui/cor... |
import attr
from viberio.types.requests import ViberReqestObject
@attr.s
class ViberSeenRequest(ViberReqestObject):
message_token: int = attr.ib()
user_id: str = attr.ib()
|
const messageDef = `
type User {
id: Int!
firstName: String!
lastName: String!
email: String!
}
`;
module.exports = messageDef; |
/*
* Dutch
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','... |
const fs = require('fs');
const package = JSON.parse(fs.readFileSync('package.json'));
const plotlyJsVersion =
(package.dependencies && package.dependencies['plotly.js']) ||
(package.devDependencies && package.devDependencies['plotly.js']);
fs.copyFile(
'node_modules/plotly.js/dist/plotly.min.js',
`d... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* File Name: excep... |
/**
* Copyright 2016 The AMP HTML 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 require... |
# Author: Moises Henrique Pereira
# this class handle the interface's functions tests
# command to run pytest showing print: pytest -s
import pytest
import os
import sys
from PyQt5 import QtWidgets
from ui.mainTest import StaticObjects
# the function initializeView expect a list type
# send another type as para... |
(function() {
/*!
* @overview Ember - JavaScript Application Framework
* @copyright Copyright 2011-2017 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* ... |
/**
* Copyright 2016 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 required by appli... |
# 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... |
# coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... |
from django.contrib.auth.decorators import login_required
from django.core import serializers
from django.core.serializers.json import DjangoJSONEncoder
from django.db.models import Sum, Q, Min, CharField, Value as V
from django.db.models.functions import Concat
from django.http import HttpResponse, HttpResponseBadRequ... |
from typing import Optional
from dataclasses import dataclass
from .Address import Address
from .TaxNumber import TaxNumber
@dataclass
class SupplierInfo:
"""Invoice supplier (seller) data
:param supplier_tax_number: Tax number or group identification number
:param group_member_tax_number: Tax number of ... |
'use strict';
/*jshint expr: true*/
var expect = require('chai').expect;
var slowEquals = require('../index.js');
describe('slowEquals', function () {
it('should return true with equal strings', function () {
expect( slowEquals('abc', 'abc') ).to.be.true;
});
it('should return false with different lengt... |
const chart = require('../../../../models/event')
module.exports = async function getPropertyCountBySpaname(req, res) {
try {
const propertyCountBySpanameResponse = await chart.aggregate([
{
'$group': {
'_id': {
'propertyName': '$propertyName',
'spaName'... |
const fs = require('fs');
const input = fs.readFileSync('input.txt', 'utf8');
const linesSorted = input.split('\n').sort();
const EventType = {
START: 1,
SLEEP: 2,
WAKE: 3,
};
let guardId = '';
const events = linesSorted.map(line => {
const timestamp = line.substr(0, line.indexOf(']') + 1);
let eventType = ... |
/* eslint-disable no-console */
import { Meteor } from 'meteor/meteor';
export default (url) => {
return () => {
Meteor.call('callTraktAPI', url, (error, { data }) => {
if (error) {
console.log('this is erorr');
console.log(error);
} else {
console.log(data);
}
});
... |
/**
* Created by kling on 9/28/16.
*/
'use strict';
export default class AppController {
static get $inject() {
return ['$mdSidenav', 'AuthService'];
}
constructor($mdSidenav, authService) {
this.$mdSidenav = $mdSidenav;
this.authService = authService;
}
toggleNav() {
this.$mdSidenav('le... |