text stringlengths 3 1.05M |
|---|
var classSimTK_1_1Xml_1_1attribute__iterator =
[
[ "attribute_iterator", "classSimTK_1_1Xml_1_1attribute__iterator.html#a7255b51294d41c3b958ff507d6042703", null ],
[ "attribute_iterator", "classSimTK_1_1Xml_1_1attribute__iterator.html#a3ff1170e557c0dab6a6de44c56443a31", null ],
[ "attribute_iterator", "clas... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
# generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/pls/ydlidar_ws/devel/include".split(';') if "/home/pls/ydlidar_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;message_runtime;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRA... |
import quotes from '../../src/quotes';
document.addEventListener('alpine:init', () => {
window.Alpine.plugin(quotes);
});
|
## @file GenDecFile.py
#
# This file contained the logical of transfer package object to DEC files.
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accomp... |
/**
* Day
*
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Slider,
ScrollView,
TouchableHighlight
} from 'react-native';
import Util from './utils';
import GL from "gl-react";
import {Surface} from "gl-react-native";
const shaders = GL.Shaders.create({
... |
import { useQuery } from 'react-query';
import { serverRequest, resolve } from '../utils/resolveRequest';
const getGarden = async (token) => {
return await resolve(
serverRequest
.get(`/getMyGarden`, { headers: { Authorization: `Bearer ${token}` } })
.then((res) => res.data)
);
};
export default f... |
/*
AngularJS v1.7.6
(c) 2010-2018 Google, Inc. http://angularjs.org
License: MIT
*/
(function(C){'use strict';function re(a){if(D(a))w(a.objectMaxDepth)&&(Wb.objectMaxDepth=Xb(a.objectMaxDepth)?a.objectMaxDepth:NaN),w(a.urlErrorParamsEnabled)&&Ga(a.urlErrorParamsEnabled)&&(Wb.urlErrorParamsEnabled=a.urlErrorParamsEn... |
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp... |
import React from "react";
import { Route, Redirect } from "react-router-dom";
const ProtectedRoute = ({
component: Component,
isAuth,
userDetails,
companyDetails,
...rest
}) => {
const authenticationLocal = localStorage.getItem('auth')
return (
<Route
{...rest}
render={(props) => {
... |
import React, { useState, useEffect } from 'react';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import styled from 'styled-components';
import { email } from '@config';
import { navDelay, loaderDelay } from '@utils';
const StyledHeroSection = styled.section`
${({ theme }) => theme.mixins... |
"use strict";
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = class coinmate extends Exc... |
import React from 'react';
import { render } from 'react-dom';
import routes from './routes';
// Nothing special here. React sees the checksum on the
// root element, and determines that there's no need
// to render data yet.
render(
routes,
document.getElementById('app')
);
|
import React from 'react';
import './App.css'
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css";
import Loader from 'react-loader-spinner';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
loader: true,
motd: this.get... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@nestjs/core");
const swagger_1 = require("@nestjs/swagger");
const app_module_1 = require("./app.module");
async function bootstrap() {
const app = await core_1.NestFactory.create(app_module_1.AppModule);
const... |
import unittest
from assignment_expressions import (
collect_account_ids_from_arns,
collect_account_ids_from_arns2,
collect_account_ids_from_arns3,
)
class TestCollectIds(unittest.TestCase):
data = (
"arn:aws:iam::123456789012:user/Development/product_1234/*",
"arn:aws:iam::123456789... |
const { AdminServices } = require('../../services');
class AdminController {
static async login(email, password) {
return AdminServices.login(email, password);
}
}
module.exports = AdminController;
|
import {React, useEffect, useState} from 'react';
import {api, handleError} from 'helpers/api';
import {isInCurrentWeek} from 'helpers/dateFuncs';
import {useHistory} from 'react-router-dom';
import BaseContainer from "components/ui/BaseContainer";
import {Button} from "components/ui/Button";
import {Task} from "compon... |
const mongoose = require('mongoose');
const schema = mongoose.Schema({
'id': {
type: String
},
'data': {
type: String
},
'Hash': {
type: String
},
'Encrypted': {
type: String
}
},
{
timestamps: true
}
)
const notes = mong... |
var chat_server = require('./lib/chat_server');
var kafka_consumer = require('./lib/kafka_consumer');
var kafka_producer = require('./lib/kafka_producer');
var http = require('http');
var express = require('express');
var path = require('path');
var argv = require('minimist')(process.argv.slice(2));
var data_service = ... |
mermaid.initialize({
startOnLoad: false,
theme: 'default',
flowchart: {
curve: 'basis'
}
});
var sequenceDiagramExample = `sequenceDiagram
Normal->>runtime: command
runtime->>background: getCaptureSize
runtime->>Normal: onResponse
Normal->>Normal: initialize
Normal->>canvas: createCanvas
Normal->>img: c... |
import React from 'react';
import PropTypes from 'prop-types';
import { Field, FieldArray, reduxForm, formValueSelector } from 'redux-form';
import { connect } from 'react-redux';
import ItemEditorUploader from '../../../dashboard/components/ItemEditorUploader';
import { required, maxLength } from '../../../../lib/for... |
"""
Support for GTFS (Google/General Transport Format Schema).
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.gtfs/
"""
import os
import logging
import datetime
import threading
import voluptuous as vol
from homeassistant.components.sensor impor... |
const modelBusiness = require('../../utils/photoBusiness.js')
const canvasId = 'canvas1';
// A panorama image size must be the N power of 2.
const imageUrl = '../../utils/sample.jpg';
var isDeviceMotion = false;
var isAndroid = false;
Page({
data: {
},
onLoad() {
var _that = this;
// set cameraStyle of c... |
import React from 'react';
import { Text, StyleSheet, View, Button } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
const Pilha = createStackNavigator();
function TelaHome({ navigation }) {
return (
<View
... |
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 02 09:47:54 2015
@author: Dong
"""
from StartButton import StartButton
from Motor import Motor
from MotorController import MotorController
from Route import Route
from AutoCorrection import AutoCorrection
from SensorsController import SensorsController
from time import ... |
module.exports = (themeOptions) => {
const basePath = themeOptions.basePath || `/`
const projectsPath = themeOptions.projectsPath || `content/projects`
const pagesPath = themeOptions.pagesPath || `content/pages`
const formatString = themeOptions.formatString || `DD.MM.YYYY`
return {
basePath,
project... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
/* global Uint8Array, FileReader */
const ExifImage = require('exif').ExifImage;
/**
* Draws the image on the canvas so that the thumbnail
* could be generated
* @param {Object} options(options(orientation: image exif orientation range from 1-8... |
/*
Copyright 2015 Comcast Cable Communications Management, 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 o... |
import React from 'react'
import CodePreview from './code-preview'
import CodeBlock from './code-block'
import Link from './link'
import Redirect from './redirect'
const heading = Tag => props => (
<Tag {...props}>
<a href={'#' + props.id}>{props.children}</a>
</Tag>
)
export const code = props => {
const l... |
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
/* jshint camelcase: false */
module.exports = makeRequest;
var debug = require('debug')('snyk:req');
var snykDebug = require('debug')('snyk');
var needle = require('needle');
var parse = require('url').parse;
var format = require('url').format;
var querystring... |
const { createClient } = require('@supabase/supabase-js')
console.log('test')
const supabase = createClient(
'https://bktrqpzyfcfkxrcupqqa.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYyMDQ5MDQwNCwiZXhwIjoxOTM2MDY2NDA0fQ.k2epLv58prooz7qaeKw9GrZW5DuyDHR-vQ6MkMreoJ8'
)
const mai... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* Functions related to the 'client screen' for Chromoting.
*/
'use strict';
/** @suppress {duplicate} */
var remoting = remot... |
# Python imports
import logging
# Project imports
from utils import bq
from common import JINJA_ENV
from utils import pipeline_logging
LOGGER = logging.getLogger(__name__)
ADD_COLUMNS_QUERY = JINJA_ENV.from_string("""
ALTER TABLE `{{person.project}}.{{person.dataset_id}}.{{person.table_id}}`
ADD COLUMN IF NOT EXISTS... |
"""Data simulation code."""
from .evoked import simulate_evoked, simulate_noise_evoked, add_noise
from .raw import simulate_raw, add_ecg, add_eog, add_chpi
from .source import select_source_in_label, simulate_stc, simulate_sparse_stc
from .source import SourceSimulator
from .metrics import source_estimate_quantificati... |
import '../imports/startup/accounts-config.js';
import './main.html';
import '../imports/client/routes.js';
//No se realiza el render aquí sino en routers.js |
import React from "react";
import mixpanel from "../helpers/mixpanel";
const Landing = () => {
return (
<div>
<p>Placeholder for Landing page</p>
</div>
);
};
mixpanel.track("viewed landing");
export default Landing |
/* Flot plugin for selecting regions of a plot.
Original work Copyright (c) 2007-2014 IOLA and Ole Laursen.
Modified work Copyright (c) 2016 Dennis Duong.
Licensed under the MIT license.
The plugin supports these options:
selection: {
mode: null or "x" or "y" or "xy",
color: color,
shape: "round" or "miter" or "b... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const path = require('path');
const fs = require('fs-plus');
const temp = require('temp');
const apm = require('../lib/apm-... |
# encoding: utf-8
import datetime
from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from markitup.fields import MarkupField
from symposion.conference.models import PresentationKind, PresentationCategory
class Track(models.Model):
... |
from subprocess import call
import sys
from os import listdir
from os.path import isfile, join
# Schedule multiple optical flow error tests
# Version numbers for each version to run
#vers_to_run = [1]
vers_to_run = [12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 36, 37]
for index in range(0,len(vers... |
import React, { Component } from 'react';
import './SearchResults.scss';
import SearchResult from './search-result/SearchResult';
import Loader from '../../loader/Loader';
import SpotifyService from '../../../services/SpotifyService';
import Search from '../Search';
import Artist from '../../../models/artist/Artist';
... |
/* istanbul instrument in package npmdoc_memorystream */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - init-before
(function () {
... |
const express = require("express");
const router = express.Router();
const PegawaiController = require("../controllers/pegawai.controller");
router.get("/", PegawaiController.find);
router.post("/", PegawaiController.store);
router.get("/:id", PegawaiController.findOne);
router.delete("/:id", PegawaiController.destroy... |
# -*- coding: utf-8 -*-
#
# Swift documentation build configuration file.
#
# This file is execfile()d with the current directory set to its containing
# dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commen... |
/* @flow */
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import propTypes from 'prop-types';
import { Button } from 'components';
import styles from './styles';
type Props = any;
class SwiperRow extends Component<Props> {
static defaultProps: any;
render() {
const {
... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib 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 a... |
export { default } from './wizard';
export * from './wizard';
export * from './consts';
export { default as selectNext } from './select-next';
|
const assert = require('assert')
const app = require('../../src/app')
describe('\'orgUsers\' service', () => {
it('registered the service', () => {
const service = app.service('org-users')
assert.ok(service, 'Registered the service')
})
})
|
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import fetch from 'node-fetch';
import { resolve } from 'path';
import abab f... |
const today = new Date();
const tomorrow = new Date();
const dayAfter = new Date();
tomorrow.setDate(today.getDate() + 1);
const tomorrowString = tomorrow.toISOString();
const tomorrowFormat = tomorrowString.substring(0, 16);
dayAfter.setDate(today.getDate() + 3);
const dayAfterString = dayAfter.toISOString();
const da... |
/*
* HomePage Messages
*
* This contains all the text for the HomePage component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
selectNetwork: {
id: 'app.components.Features.NetworkForm.selectNetwork',
defaultMessage: 'Select a network',
},
githubNetworks: {
id: ... |
const DrawCard = require('../../drawcard.js');
class RickonStark extends DrawCard {
setupCardAbilities(ability) {
this.interrupt({
canCancel: true,
when: {
onCardAbilityInitiated: event => event.ability.isTriggeredAbility() && event.source.hasText('search')
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=employee-details.component.js.map |
webpackJsonp([0],[function(module,exports,__webpack_require__){eval("var global = __webpack_require__(4);\nvar core = __webpack_require__(38);\nvar hide = __webpack_require__(25);\nvar redefine = __webpack_require__(26);\nvar ctx = __webpack_require__(34);\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, ... |
import serial
port = "/dev/ttyACM0"
serialFromArduino = serial.Serial(port,9600)
serialFromArduino.flushInput()
while True:
input = serialFromArduino.readline()
inputAsInteger = int(input)
print(inputAsInteger * 10) |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js
* @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden with obj w/o valueOf (toString)), no initVal
*/
function testcase() {
foo.pro... |
'use strict';
var iFramer = require('@braintree/iframer');
var assign = require('../../../assign').assign;
var browserDetection = require('../../shared/browser-detection');
var ELEMENT_STYLES = {
position: 'fixed',
top: 0,
left: 0,
bottom: 0,
padding: 0,
margin: 0,
border: 0,
outline: 'none',
zIndex... |
import sys
import os
sys.path.insert(0, '.')
import argparse
import torch
import torch.nn as nn
from PIL import Image
import numpy as np
import cv2
from pathlib import Path
from os.path import basename
import lib.transform_cv2 as T
from lib.models import model_factory
from configs import cfg_factory
import time
from ... |
from .base import Space
import numpy as np
from rllab.misc import special
from rllab.misc import ext
class Discrete(Space):
"""
{0,1,...,n-1}
"""
def __init__(self, n):
self._n = n
@property
def n(self):
return self._n
def sample(self):
return np.random.randint(s... |
import {ADD_COUNTER,ADD_TO_CART} from './mutation-types'
export default {
[ADD_COUNTER](state,payload){
payload.count++;
},
[ADD_TO_CART](state,payload){
// 选中状态
payload.checked = true;
state.cartList.push(payload)
}
}
|
'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
//event为客户端上传的参数
let data = event.queryStringParameters;
let email = data.email;
let verify = data.verify;
let content = data.content;
if (verify.toString() !== "FBWEV24r234f32g3g___e64_wtghe5yjrumyejhw4tq53gh463j47wedewf233... |
import MatrixMath from './fill/MatrixMath.js'
import Quaternion from './fill/Quaternion.js'
import XRAnchor from './XRAnchor.js'
/*
XRAnchorOffset represents a pose in relation to an XRAnchor
*/
export default class XRAnchorOffset {
constructor(anchorUID, poseMatrix=null){
this._anchorUID = anchorUID
this._poseM... |
import path from 'path';
import glob from 'glob';
export default findup;
// Before, "findup-sync" package was used,
// but it does not provide filter callback
function findup (patterns, options, fn) {
/* jshint -W083 */
var lastpath;
var file;
options = Object.create(options);
options.maxDepth =... |
// You should implement your task here.
module.exports = function towelSort (matrix) {
let sort = [];
if(typeof matrix != "undefined" && matrix != null && matrix.length > 0) {
matrix.map((data, i) => {
if ((i + 1) % 2 !== 0) {
sort = sort.concat(data)
} else {
... |
import {LSTM} from './model/cellview/LSTM';
import {Network} from './model/overview/Network';
import {NetworkPlot} from './model/overview/NetworkPlot';
import {Input} from './model/overview/Input';
import {CellPlot} from './model/cellview/CellPlot';
import {getColors} from '../../constants/colors';
import {getCellAnim... |
import * as $$Array from "bs-platform/lib/es6/array.js";
import * as Items from "./items.bs.js";
import * as React from "react";
import * as NextUrql from "next-urql";
import * as ReactDOMRe from "reason-react/src/ReactDOMRe.js";
require('../styles/main.css')
;
function Index$P(Props) {
var children = Props.child... |
'''
Automatically Generate <stacked-hourglass>.
Author: Guanghan Ning
E-mail: gnxr9@mail.missouri.edu
Dec, 2016
'''
import sys
import os, math
def main():
hourglass_net_str = hourglass_net_full()
with open("../prototxt/hourglass_train.prototxt", "w") as f:
f.write(hourglass_net_str)
''' N... |
"use strict";
/**
* These are the UI-Router angular 1 directives.
*
* These directives are used in templates to create viewports and navigate to states
*
* @preferred @module ng1_directives
*/ /** for typedoc */
var common_1 = require("../../common/common");
var predicates_1 = require("../../common/predicates");
... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var __chunk_1 = require('../chunk-49d9503c.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var Forward_1032 =
/*#__PURE__*/
Rea... |
var express = require('express');
var router = express.Router();
var controllerIndex = require('../controllers/index');
const CosmosClient = require('@azure/cosmos').CosmosClient
const config = require('../config')
const cosmosClient = new CosmosClient({
endpoint: config.host,
key: config.authKey
})
const Ac... |
angular.module('mocks' ,[])
.controller('MyController' , function ( $scope , $http ) {
var authToken;
$http.get('/auth')
.success( function ( data, status, headers, config) {
authToken = headers('A-Token');
$scope.authToken = headers('A-Token');
$scope.users = data;
});
$scope.saveMessage = function ( ms... |
# Generated by Django 3.1.7 on 2021-02-27 15:17
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0001_initial'),
]
operations =... |
// Wrapper around Apple's Instruments app
"use strict";
var spawn = require('child_process').spawn
, exec = require('child_process').exec
, logger = require('../logger').get('appium')
, fs = require('fs')
, _ = require('underscore')
, net = require('net')
, uuid = require('uuid-js')
, path = require('pat... |
// gm - Copyright Aaron Heckmann <aaron.heckmann+github@gmail.com> (MIT Licensed)
module.exports = function (gm, dir, finish) {
gm
.interlace()
.write(dir + '/edge.png', function edge (err) {
finish(err);
});
}
|
const router = require("express").Router();
const bookRoute = require("./books");
router.use("/books", bookRoute);
module.exports = router; |
/*! AgoraRTC|BUILD v3.1.2-0-ge669c7b */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AgoraRTC",[],t):"object"==typeof exports?exports.AgoraRTC=t():e.AgoraRTC=t()}(window,(function(){return function(e){var t={};function n(a){if(t[a])ret... |
"""
Visually presents the game and probabilities after results of run.py.
Uses opp_info.pkl and info_states corresponding to the game.
Presents a possibility for the examiner to select a state to examine.
"""
import copy
from copy import deepcopy
import pydot
import pyspiel
from darkhex.utils.util import (
conv_a... |
import * as actions from '../../src/actions/searcher'
import { expect } from 'chai'
describe('Searcher actions', () => {
it('should create an action to filter a teacher', () => {
const filter = { text: 'dani' }
expect(actions.filterTeachers(filter)).to.be.a('function')
})
})
|
#!/usr/bin/python
'''
A nearest neighbor learning algorithm example using TensorFlow library.
This example is using the MNIST database of handwritten digits
(http://yann.lecun.com/exdb/mnist/)
Author: Aymeric Damien
Project: https://github.com/aymericdamien/TensorFlow-Examples/
'''
from __future__ import print_functi... |
# coding: utf-8
"""
Thola
REST API for Thola. For more information look at our Github : https://github.com/inexio/thola # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
impor... |
import React from "react";
class Excersize extends React.Component {
render() {
return (
<div>
<h1>Hello</h1>
</div>
);
}
}
export default Excersize;
// import React from "react";
// import MenuItem from "../components/menu-item";
// import { ReactComponent as HomeIcon } from "../asse... |
// All symbols in the `Syriac` script as per Unicode v10.0.0:
[
'\u0700',
'\u0701',
'\u0702',
'\u0703',
'\u0704',
'\u0705',
'\u0706',
'\u0707',
'\u0708',
'\u0709',
'\u070A',
'\u070B',
'\u070C',
'\u070D',
'\u070F',
'\u0710',
'\u0711',
'\u0712',
'\u0713',
'\u0714',
'\u0715',
'\u0716',
'\u0717',
'\... |
// Require
const express = require('express')
const path = require('path')
const DB = require("./Develop/db/DB.js")
const app = express()
const PORT = process.env.PORT || 3000
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(express.static('./Develop/public'));
// Routes
app.get('/', ... |
/*
---
description: A plugin for enabling autocomplete of a text input or textarea.
authors:
- Fábio Miranda Costa
requires:
- Core/Class.Extras
- Core/Element.Event
- Core/Element.Style
- More/Element.Forms
license: MIT-style license
provides: [Meio.Autocomplete]
...
*/
(function(global, $){
var browser ... |
from typing import Text
from linebot.models import TextSendMessage
from models.message_request import MessageRequest
from skills import add_skill
@add_skill('/hello')
def get(message_request: MessageRequest):
return [
TextSendMessage(text=f'Hello World')
]
|
layui.define(['layer', 'laytpl', 'form'], function (exports) {
var $ = layui.jquery;
var layer = layui.layer;
var laytpl = layui.laytpl;
var form = layui.form;
var device = layui.device();
var MOD_NAME = 'treeTable'; // 绑定事件的模块名
// 改为同步加载css,避免滚动条补丁首次进入无效
$.ajax({
url: layui.cac... |
'use strict';
var _16 = {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 16,
height: 16,
},
content: [
{
elem: 'path',
attrs: {
d:
'M28 30H16a2.002 2.002 0 0 1-2-2V16a2.002 2.002 0 0 1 2-2h12a2.002 2.002 0 0 1 2 2v12a2.0... |
define(
[],
function() {
var CouchDBConnection = function(url, user) {
this.url = url;
this.user = user;
this.result = {};
this.uploadResult = {};
this.login = function(optionalCallback) {
var that = this;
OPrime.makeCORSRequest({
... |
import React, { Component } from "react";
import "./cars.css";
import "../../App.css";
import {FormattedMessage} from "react-intl";
import {FormattedNumber} from "react-intl";
class CarDetail extends Component {
constructor(props) {
super(props);
this.state = {
datos: []
};
this.renderDetail =... |
import React from 'react';
import Layout from '../components/layout'
import PostPreview from '../components/postPreview'
import usePosts from '../hooks/use-posts'
import Hero from '../components/hero'
export default () => {
const posts = usePosts();
return (
<>
<Hero/>
<Layout>
<h2>Read my... |
import React, { useState, useEffect } from "react";
import { StyleSheet } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import { createMaterialBottomTabNavigator } from "@react-navigation/material-bottom-tabs";
import ... |
const config = require('../config.js');
const db = require('./database.js');
const express = require('express');
const bodyParser = require('body-parser');
const googleAuth = require('simple-google-openid');
const auth = googleAuth(config.googleCredentials.web.client_id);
const multer = require('multer');
const fs = ... |
const express = require("express");
const router = express.Router();
// Display the dashboard page
router.get("/", (req, res) => {
res.render("dashboard");
});
module.exports = router; |
module.exports = {
//,CERTIFICATION_PATH : '/opt/<project>/Certificate'
// ,RDS_CLOUD_CONNECTION : {
// , ACCESS_KEY_ID : <YOUR-ACCESS-KEY>
// , SECRET_ACCESS_KEY : <YOUR-SECRET-ACCESS-KEY>
// , REGION : 'eu-west-1',
// }
POSTGRE_URL: 'localhost'
, POSTGRE_PORT : 5432
... |
// This file is auto-generated
if (appConfig.pluginService.url === null) {
appConfig.pluginService.url = 'http://localhost:3001/plugins';
} |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... |
export { default as InfoBoxes } from './InfoBoxes'
export { default as HomeHeader } from './HomeHeader'
export { default as HomeAPIBox } from './HomeAPIBox'
export { default as HomeBlogBox } from './HomeBlogBox'
export { default as BlogList } from './BlogList'
export { default as Carousel } from './Carousel' |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./src/js/pages/auth/login.vue?vue&type=script&lang=js&":
/*!******************************************************************************************************... |
module.exports = {
future: {},
purge: [],
theme: {
extend: {},
backgroundColor: theme => ({
...theme('colors'),
'primary': '#181619',
'secondary': '#DDA74F',
'danger': '#b41e00'
}),
textColor: theme => ({
...theme('c... |