text stringlengths 3 1.05M |
|---|
const path = require('path');
module.exports = {
entry: './src/index',
devtool: 'inline-source-map',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json']
},
module: {
rules: [
{
test: /\.(js)x?... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{581:function(t,s,a){"use strict";a.r(s);var n=a(46),e=Object(n.a)({},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"pour-commencer"}},[a("a",{staticClass:"hea... |
import React, { Component } from 'react';
const maybeScrollSuggestionIntoView = (suggestionEl, suggestionsContainer) => {
const containerHeight = suggestionsContainer.offsetHeight
const suggestionHeight = suggestionEl.offsetHeight
const relativeSuggestionTop = suggestionEl.offsetTop - suggestionsContainer.scrol... |
"use strict";
var mongoose = require('mongoose'),
ObjectId = mongoose.Types.ObjectId;
var logger = require('../common/logger');
var Project = require('../models/project');
var ProjectLike = require('../models/project_like');
var auth = require('../policies/auth');
module.exports = {
/**
* @method likePr... |
import parseToHsl from '../parseToHsl'
describe('parseToHsl', () => {
it('should parse a hex color representation', () => {
expect(parseToHsl('#Ff43AE')).toEqual({
hue: 325.8510638297872,
lightness: 0.6313725490196078,
saturation: 1,
})
})
it('should parse an 8-digit hex color represen... |
let caseForSupport =
'<h1 id="marker_Case">Case for support</h1>\n' +
'<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 10.5pt; font-family: \'Open Sans\', sans-serif; color: black; background: white;">In accumsan pellentesque ipsum, ac maximus nisl ali... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useKeystore = useKeystore;
exports.getKeystoreFromParams = getKeystoreFromParams;
exports.DownloadKeystore = exports.RemoveKeystore = exports.UpdateKeystore = void 0;
function _xdl() {
const data = require("@expo/xdl");
_xdl =... |
const express = require('express');
const userRoutes = require('./server/user/user.route');
const authRoutes = require('./server/auth/auth.route');
const tempFilesRoutes = require('./server/file/file.route');
const router = express.Router(); // eslint-disable-line new-cap
// TODO: use glob to match *.route files
/**... |
import json
import operator
from datetime import timedelta
from functools import reduce
from itertools import groupby
from math import ceil, floor
from types import SimpleNamespace
import requests
from cachetools.func import lru_cache
from django.core.exceptions import ValidationError
from django.db.models import Pref... |
##############################################################################
# Copyright (c) 2015 Ericsson AB and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available... |
var vm;$(function(){$("#search").change(function(){$("#bookmarks").empty();loadVue();dumpBookmarks($("#search").val())});$("#lmfw").on("click","i",function(){if($(this).attr("data-url")){chrome.tabs.create({url:$(this).attr("data-url")})}});$("#lmfw").on("click",".pencil",function(){$("#bookmark_id").val($(this).attr("... |
var searchData=
[
['rdonly',['RDONLY',['../classfmt_1_1v5_1_1file.html#a76c6c7024a7133e5d62d407043ee58a1a51c67cb8c6aa3d8dbdfdf87561746169',1,'fmt::v5::file']]],
['rdwr',['RDWR',['../classfmt_1_1v5_1_1file.html#a76c6c7024a7133e5d62d407043ee58a1afc29ebeb23bb8aac58bc3911f67a7e18',1,'fmt::v5::file']]],
['rebecca_5fpu... |
import axios from "axios";
import fetchBooks from "./fetchBooks";
const apiClient = axios.create();
apiClient.interceptors.request.use(config => config, async error => Promise.reject(error));
apiClient.interceptors.response.use(response => response?.data, async error => Promise.reject(error));
const { get, post, put, d... |
'use strict';
const Joi = require('joi');
const { httpStatus, ResponseError } = require('../../../helpers');
const publicationSchema = Joi.object({
id: Joi.string().required(),
area: Joi.number().integer().positive().required(),
rooms: Joi.number().min(1).max(5).required(),
bathrooms: Joi.number().min(1).max(... |
/*
* #%L
* GraphWalker Dashboard
* %%
* Copyright (C) 2005 - 2014 GraphWalker
* %%
* 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 th... |
from mysql.connector import MySQLConnection, Error
import bs4
import requests
import unicodedata
import sys
sys.path.append("../")
import config
url0 = ['http://www.espncricinfo.com/series/8048/scorecard/1136561/mumbai-indians-vs-chennai-super-kings-1st-match-indian-premier-league-2018', 'http://www.espncricinfo.com... |
import { StyleSheet, Dimensions } from 'react-native';
const width = Dimensions.get('window').width;
const height = Dimensions.get('window').height;
const styles = StyleSheet.create({
container: {
position: 'absolute',
zIndex: 10,
height: height,
width: width,
backgroundCol... |
const fs = require('fs')
const fsProm = require('fs/promises');
const os = require('os');
const path = require('path')
const url = require('url')
const {Menu: menu, shell, dialog,
clipboard, nativeImage, ipcMain, app, BrowserWindow} = require('electron')
const crc = require('crc');
const zlib = require('zlib');
const... |
const {app, BrowserWindow, Menu} = require('electron')
const shell = require('electron').shell
const ipc = require('electron').ipcMain //inter process communication, allowing communication between those windows or processes
// Keep a global reference of the window object, if you don't, the window will
// be cl... |
export default [
{ name: 'PO workflow', lessons: [0, 1, 2, 3, 4]}
] |
# -*- coding: utf8 -*-
"""
pyqqwry.qqwry
~~~~~~~~~~~~~
QQ wry.
"""
import mmap
import os
import socket
from struct import unpack
from pylru import lrudecorator
from pyqqwry.macro import Flag
from pyqqwry.utils import decode, generate
class QQWry(object):
def __init__(self, path):
"""Initia... |
import React from "react";
import "./bottomLayout.css";
const BottomLayout = (props) => {
return (
<div>
<h3>BottomLayout</h3>
{ props.children }
</div>
)
}
export default BottomLayout
|
// @flow
import { createGlobalStyle } from 'styled-components';
// $FlowIssue
import prismGlobalCSS from '!!raw-loader!./components/rich-text-editor/prism-theme.css';
import theme from 'shared/theme';
export default createGlobalStyle`
${prismGlobalCSS}
* {
border: 0;
box-sizing: inherit;
-webkit-font-... |
#!/usr/bin/env python3
"""Combine logs from multiple bitcoin nodes as well as the test_framework log.
This streams the combined log output to stdout. Use combine_logs.py > outputfile
to write to an outputfile.
If no argument is provided, the most recent test directory will be used."""
import argparse
from collection... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-integer-indexed-exotic-objects-getownproperty-p
description: >
Does not throw on an instance with a detached buffer if key is a Symbol
info: |
9.4.5.1 [[GetOwnPro... |
# coding: utf-8
"""
Scubawhere API Documentation
This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API
OpenAPI spec version: 1.0.0
... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorHandler = void 0;
/* eslint-disable @typescript-eslint/no-explicit-any */
const cli_ux_1 = ... |
#!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Run Regression Test Suite
This module calls down into individual test cases via subprocess. It will
... |
/*! Select2 4.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
(function () {
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd)var e = jQuery.fn.select2.amd;
return e.define("select2/i18n/gl", [], function () {
return {
inputTooLong: function (e) {
... |
//== Requirements
var express = require("express"),
dot = require("express-dot"),
app = express(),
_ = require("underscore");
function HttpServer(thermo) {
var data = {};
//== Routes
app.get("/", function(req, res) {
//res.end("Hello!");
//== Calculations
var now = new Date();
if(d... |
import React from "react";
import _ from "lodash";
import BaseComponent from "../base-component";
import JesqueAdminClient from "../../tools/jesque-admin-client";
import FilterButtonGroup from "../common/filter-button-group";
import {HOME} from "../../constants/paths";
import ReactPaginate from "react-paginate";
import... |
define([], function() {
return {
"PropertyPaneDescription": "Customize your type writing settings",
"BasicGroupName": "General",
"TypeWritingGroupName": "TypeWriting Effect",
"LayoutGroupName": "Layout",
"Text": "Text",
"SplitLines": "Split Lines",
"TypingInterval": "Typing Interval (ms)",... |
'use strict';
import expectThrow from './helpers/expectThrow';
import toPromise from './helpers/toPromise';
const CanReclaimToken = artifacts.require('../contracts/ownership/CanReclaimToken.sol');
const BasicTokenMock = artifacts.require("./helpers/BasicTokenMock.sol");
contract('CanReclaimToken', function(accou... |
(function($) {
'use strict';
jQuery(document).on('ready', function(){
/*PRELOADER JS*/
$(window).on('load', function() {
$('.preloader').fadeOut();
$('.status-mes').delay(350).fadeOut('slow');
});
/*END PRELOADER JS*/
/*Language JS*/
$(".lan_area").on('click', function() {
$(".lan_... |
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["setup-wizard-Import-vue"],{"257e1":function(t,e,i){"use strict";i("e9a2")},"2ba9":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"aioseo-wizard-import"},[i("wizard-header"),i("wiza... |
/**
* jQuery.ScrollTo - Easy element scrolling using jQuery.
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 5/25/2009
* @author Ariel Flesler
* @version 1.4.2
*
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html... |
initSidebarItems({"enum":[["Value","The set of all possible WebAssembly Interface Types"]],"struct":[["ExportBinding","Representation of a binding of an exported function."],["ModuleData","A data structure intended to hold a parsed representation of the wasm interface types of a module."]]}); |
import _ from 'lodash';
import 'plugins/kibana/visualize/saved_visualizations/saved_visualizations';
import 'ui/directives/saved_object_finder';
import 'ui/directives/paginated_selectable_list';
import 'plugins/kibana/discover/saved_searches/saved_searches';
import routes from 'ui/routes';
import RegistryVisTypesProvid... |
//# sourceMappingURL=shipping.model.js.map |
/*
* Copyright © 2013 Jamie Mason, @GotNoSugarBaby,
* https://github.com/JamieMason
*
* 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 limitatio... |
//>>built
define(
// used by both the editor and textarea widgets to provide information to screen reader users
({
iframeEditTitle: 'περιοχή επεξεργασίας', // primary title for editable IFRAME, for screen readers when focus is in the editing area
iframeFocusTitle: 'πλαίσιο περιοχής επεξεργασίας' // secondary t... |
"""
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.93
Contact: support@ory.sh
Generated by: htt... |
exports.up = function(knex, Promise) {
return knex.schema.createTable('posts', table => {
table.increments('id').primary();
table.string('title', 256).notNullable();
table.string('url').notNullable();
table
.integer('authorId')
.notNullable()
.unsigned()
.references('id')
... |
/*
Content Block Row widget where each Column is made of widgets select by the back end user. Nesting widgets is supported.
1. One Col Row
2. Two Cols Row with left Col take 50% width
3. Two Cols Row with left Col take 70% width
4. Two Cols Row with left Col take 30% width
5. Two Cols Row with left Col tak... |
// eslint-disable-next-line
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
import { bxAnaalyse } from '@/core/icons'
export const asyncRouterMap = [
{
path: '/',
name: 'index',
component: BasicLayout,
meta: { title: '首页' },
redirect: '/dashboard/workplace',... |
"""Module for Testing the InVEST cli framework."""
import sys
import os
import shutil
import tempfile
import unittest
import unittest.mock
import contextlib
import json
import importlib
import uuid
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
@contextlib.... |
import argparse
import pandas as pd
from authentication import ws
from azureml.core import Dataset
def getArgs(argv=None):
parser = argparse.ArgumentParser(description="filepaths")
parser.add_argument("--input_file_path", help='Input file path')
parser.add_argument("--filename", help='Input filename')
... |
/**
* Created by isida on 29.05.2019.
*/
class Order {
constructor(settings) {
this._orderContainerClassName = $(`.${settings.validate.container}`);
this._validateInputCollection$ = $(`${settings.validate.elements.inputs}`, this._orderContainerClassName);
this._validateSizeOrderContainer$ ... |
// Define our labelmap
const labelMap = {
1: { name: "Hello", color: "red" },
2: { name: "Thank You", color: "yellow" },
3: { name: "I Love You", color: "lime" },
4: { name: "Yes", color: "blue" },
5: { name: "No", color: "purple" },
};
export const getText = (boxes, classes, scores, threshold) => {
const ... |
'use strict';
// Props:
// - activeNode: chrome.bookmarks.BookmarkTreeNode
// - onDone: () => void
// - onCancel: () => void
class Deleter extends Component {
constructor(props) {
super(props);
this.onKeyDown = this.onKeyDown.bind(this);
this.save = this.save.bind(this);
}
componentDidMount() {
... |
export default {
key: 'C',
suffix: 'm7b5',
positions: [
{
frets: '3323',
fingers: '2314'
},
{
frets: '5666',
fingers: '1234'
},
{
frets: '8a89',
fingers: '1312',
barres: 8,
capo: true
},
{
frets: 'bcbd',
fingers: '1213',
... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'hi', {
clear: 'Clear', // MISSING
highlight: 'Highlight', // MISSING
options: 'Color Options', // MISSING
selected: 'Selected Color... |
"""The setuptools deployment script."""
# Copyright 2019 Curtis Sand
#
# 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 ... |
var createIndices = require('./create-indices.js');
var tape = require('tape');
var util = require('util');
module.exports = suite;
if (require.main === module) {
suite(tape);
} else {
module.exports = suite;
}
function suite(test) {
test('should return subarray if "out" parameter is given', function(assert) {... |
"""The tests for Netatmo light."""
from unittest.mock import AsyncMock, patch
from homeassistant.components.light import (
DOMAIN as LIGHT_DOMAIN,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
)
from homeassistant.components.netatmo import DOMAIN
from homeassistant.const import ATTR_ENTITY_ID, CONF_WEBHOOK_ID
from .... |
const {Builder, By} = require('selenium-webdriver');
async function search_google() {
// create a new session
// /session request
let driver = await new Builder()
.forBrowser('firefox')
.usingServer('http://localhost:4444/wd/hub')
.build();
// open google search page
awai... |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'w... |
var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#000000" fill-opacity="1" st... |
import styled from 'styled-components';
import { transparentize } from 'polished';
import { THEME_TYPES } from '../../../styles/colors';
export const getBackgroundColor = ({ theme }) => (
theme.mode === THEME_TYPES.LIGHT
? theme.colors.white
: transparentize(0.9, theme.colors.white));
export const getBoxSha... |
#################################################################################
# ConstrainedPlanningToolbox
# Copyright (C) 2019 Algorithmics group, Delft University of Technology
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... |
/**
* @Author: Apollinaire Lecocq <apollinaire>
* @Date: 13-12-18
* @Last modified by: apollinaire
* @Last modified time: 25-12-18
*/
/* eslint-disable no-var, prefer-arrow-callback */
var packages = [
'ecmascript',
'isobuild:compiler-plugin@1.0.0',
];
Package.describe({
name: 'apollinaire:mdx',
... |
/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete... |
/**
@license
Copyright (C) 2020 Vaadin Ltd
This program is available under Commercial Vaadin Runtime License 1.0 (CVRLv1).
For the full License, see http://vaadin.com/license/cvrl-1
*/
import { FieldObserver } from './vaadin-field-observer.js';
export class CheckboxGroupObserver extends FieldObserver {
getFields() {... |
import React from 'react'
import { FormattedMessage } from "react-intl";
import Layout from '../components/Layout'
import PageUnderNavbar from '../components/PageUnderNavBar'
import Issue from '../components/Resource'
import { oneLine } from "../translations/stringFileUtils";
import { localizedStringsKeypaths } from ".... |
import random
import unittest
from algorithms.heapsort import heapsort
from algorithms.mergesort import mergesort
class TestSort(unittest.TestCase):
def setUp(self):
self.arr = [random.randint(1, 1000) for _ in range(100)]
def test_heapsort(self):
heapsorted_arr = heapsort(self.arr)
... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const {
CommonUtils,
StateData,
ChecksumError,
} = require('core-lib');
// ComparedWith flag
const TYPE_API = 'api';
const TYPE_NONE = 'none';
const TYPE_OBJECT_TAGGING = 'object-tagging';
const TYPE_OBJ... |
'use strict';
const { prompt } = require('./lib');
(async function(){
const questions = [
{
type: 'text',
name: 'twitter',
message: `What's your twitter handle?`
},
{
type: 'password',
name: 'secret',
message: 'Tell me... |
// eslint-disable-next-line no-unused-vars
module.exports = function (app) {
app.get('/:url', async (req, res) => {
console.log('req.params.url', req.params.url);
const urlService = req.app.service('/api/url');
const accessLogService = req.app.service('/api/access_log');
const URLItemList = await urlS... |
import time
import edgeiq
"""
Use object detection and centroid tracking to count unique human
faces in the frame in realtime.
To change the computer vision model, the engine and accelerator,
and add additional dependencies read this guide:
https://alwaysai.co/docs/application_development/configuration_and_packaging.h... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/base/BindingParser'],function(q,B){'use strict';var r=/[\\\{\}:]/,a,u={"Edm.Boolean":"sap.u... |
/**
* 时间戳格式化函数
* @param {string} format 格式
* @param {int} timestamp 要格式化的时间 默认为当前时间
* @return {string} 格式化的时间字符串
*/
function date(format, timestamp){
var a, jsdate=((timestamp) ? new Date(timestamp*1000) : new Date());
var pad = function(n, c){
if((n = n + "").length < c){
... |
import { getLeagueData } from './leagueData';
import { leagueID } from '$lib/utils/leagueInfo';
import { getNflState } from './nflState';
import { getLeagueRosters } from "./leagueRosters"
import { getLeagueUsers } from "./leagueUsers"
import { waitForAll } from './multiPromise';
import { get } from 'svelte/store';
imp... |
module.exports = async function (ctx, next) {
const optionalLanguageReg = /zh|en/;
// accepts
const locales = ctx.acceptsLanguages();
const keys = ['locale', 'lang', 'language'];
// cookie
keys.forEach(key => {
const value = ctx.cookies.get(key);
if (value) {
locales.unsh... |
import spinUp from "./spinUp";
import { ObjectId } from "mongodb";
let db, schema, runQuery, queryAndMatchArray, runMutation;
let adam, katie, laura, mallory, book1, book2, book3;
beforeAll(async () => {
({ db, schema, queryAndMatchArray, runQuery, runMutation } = await spinUp());
});
afterEach(async () => {
awa... |
$( document ).ready(function() {
siteOptions.setHeights();
siteOptions.socialLinks.struct();
siteOptions.socialLinks.fill();
});
|
Object.keys = (function() {
'use strict';
// modified from https://github.com/es-shims/object-keys
var has = Object.prototype.hasOwnProperty;
var toStr = Object.prototype.toString;
var isEnumerable = Object.prototype.propertyIsEnumerable;
var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
... |
from colorama import Fore, Style
from . import func
class File:
def __init__(self, location, fun):
self._location = location
self._size = len(fun)
self._res = [-1] * self._size
self._functions = []
for elmt in fun:
self._functions.append(func.Function(elmt))
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{307:function(t,a,e){"use strict";e.r(a);var r=e(19),s=Object(r.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"로드-밸런싱-load-balancing"}},[e("a",{staticCl... |
import styled, { css } from 'styled-components'
export const StyledRequests = styled.div``
export const StyledPage = styled.div`
${({ theme: { ns } }) => css`
.${ns}Collapse {
margin: 0;
&-header {
margin: 0;
font-size: 14px;
font-weight: bold;
cursor: pointer;
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
from flask import render_template, session, request, Markup
from app import app, LINK, get_preview
from requests import post
from json import loads
import markdown
@app.route('/user/<int:id>')
def expert(id):
categories = loads(post(LINK, json={'method': 'categories.gets'}).text)
user = loads(post(LINK, json={'meth... |
import React, { Component, useContext } from 'react';
import { describe, beforeEach, it } from '@bigtest/mocha';
import { expect } from 'chai';
import CalloutInteractor from '@folio/stripes-components/lib/Callout/tests/interactor';
import CalloutContext from '../../../src/CalloutContext';
import setupApplication fr... |
macDetailCallback("c82e94000000/24",[{"d":"2009-09-22","t":"add","a":"5F, No.102, Ming Chuan Road\nHsin Tien Taipei County 23141\n\n","c":"TAIWAN, REPUBLIC OF CHINA","o":"Halfa Enterprise Co., Ltd."},{"d":"2012-11-29","t":"change","a":"5F, No.102, Ming Chuan Road\nHsin Tien Taipei County 23141\n\n","c":"TAIWAN, PROVINC... |
var yaml = require('js-yaml'),
fs = require('fs'),
_ = require('lodash'),
path = require('path-browserify'),
resolver = require('oas-resolver-browser'),
yamlParse = require('yaml');
module.exports = {
asJson: function (spec) {
try {
return JSON.parse(spec);
}
catch (jsonException) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createConcat = void 0;
var _is = require("../../utils/is");
var _object = require("../../utils/object");
var _array = require("../../utils/array");
var _IndexError = require("../../error/IndexError");
var _DimensionError = requ... |
/**
* External dependencies
*/
import classnames from 'classnames';
import { partial, map, find, findIndex } from 'lodash';
/**
* WordPress dependencies
*/
import { Component } from '@wordpress/element';
import { NavigableMenu } from '@wordpress/components';
import { withInstanceId, compose } from '@wordpress/comp... |
from OpenGL.GL import glBegin, glColor3f, glEnd, glEndList, glLineWidth, glNewList, glNormal3f, glVertex3f, \
GL_COMPILE, GL_LINES, GL_QUADS
from OpenGL.GLU import gluDeleteQuadric, gluNewQuadric, gluSphere
G_OBJ_PLANE = 1
G_OBJ_SPHERE = 2
G_OBJ_CUBE = 3
def make_plane():
glNewList(G_OBJ_PL... |
import React, {useEffect, useState, useCallback} from 'react';
import {View, StyleSheet, Text, Alert} from 'react-native';
import VideoWeb from './VideoWeb';
// Camera component for web
// not yet implemented
export default function Camera() {
const [mediaStream, setMediaStream] = useState(null);
useEffe... |
if (!window.LChart) {
throw new Error('未能加载loongchart.core.js,该js必须在其他LChart框架的js加载之前被引用。\n' +
'Not loaded loongchart.core.js which must be loaded before other LChart\'s js.');
}
else {
LChart.Const.Skins.BlackAndWhite.Pie3D = {
SeparateLineColor: null,
InnerLabelColor: null,
Oute... |
"""
Offload jobs to a Kubernetes cluster.
"""
import logging
from os import environ as os_environ
from six import text_type
from galaxy import model
from galaxy.jobs.runners import (
AsynchronousJobRunner,
AsynchronousJobState
)
# pykube imports:
try:
from pykube.config import KubeConfig
from pykube... |
// Generated by CoffeeScript 1.6.3
var Route, exports;
Route = (function() {
function Route(pattern, view) {
var re_str;
this.pattern = pattern;
this.view = view;
re_str = this.pattern.replace(/\?/g, '([^/]+)').replace(/\*/g, '(.*)');
this.re = new RegExp("^" + re_str + "$");
}
Route.prototy... |
var APIObject = require('./apiobject.js');
var expires_re = /max-age=([0-9]+)/;
function parse_cache_control(header){
if(typeof header !== 'string'){
return 0;
}
if(header.search('no-cache') !== -1){
return 0;
}
var match = header.match(expires_re);
if(match === null){
r... |
// |reftest| pref(javascript.options.xml.content,true)
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* 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://mozi... |
#Ask user for name
name = input("What is your name?: ")
#Ask user for the age
age = input("How old are you? ")
#Ask user for city
city = input("What city do you live in? ")
#Ask user what they enjoy
hobbies = input("What are your hobbies?, What do you love doing? ")
#Create output text using placeholders to concat... |
const _ = require('lodash')
/**
* @typedef {Object} State
* @property {import('../../../services/cluster')} cluster
*/
/** @type {import('koa').Middleware<State>} */
module.exports = async context => {
const { cluster } = context.state
const { teamId } = context.params
const team = await cluster.getTeam(tea... |
deepmacDetailCallback("006034000000/24",[{"d":"1998-04-22","t":"add","a":"POSTBOX 11 62\nD-64701 ERBACH\n\n","c":"GERMANY","o":"ROBERT BOSCH GMBH"},{"d":"2002-06-05","t":"change","a":"POSTBOX 11 62\nD-64701 ERBACH\n\n","c":"GERMANY","o":"ROBERT BOSCH GmbH"},{"d":"2015-08-27","t":"change","a":"POSTBOX 11 62 D-64701 ERBA... |
var classdroid_1_1_runtime_1_1_utilities_1_1_misc_1_1_grid_1_1_filled_cell =
[
[ "Setup", "classdroid_1_1_runtime_1_1_utilities_1_1_misc_1_1_grid_1_1_filled_cell.html#ae92c2280fc0a09fec1e5386967f796d7", null ]
]; |
import 'colors';
import { spawn } from 'child_process';
import path from 'path';
import asyncOra from '../util/ora-handler';
import readPackageJSON from '../util/read-package-json';
import rebuild from '../util/rebuild';
import resolveDir from '../util/resolve-dir';
import getForgeConfig from '../util/forge-config';
i... |
const routes = require('express').Router()
const StudentController = require('../app/controllers/StudentController')
// Student routes
routes.get('/student/', StudentController.index);
routes.get('/student/:id', StudentController.get);
routes.put('/student/:id', StudentController.update);
routes.post('/student/', Stu... |
/**
* DATAS FOR THE PROGRAM
* Handles the communication with backend
*/
var Data = {
plot: {},
fsValue: 0
};
|