text
stringlengths
3
1.05M
import React from 'react'; import { Helmet } from 'react-helmet'; import Layout from '../components/layout'; import Hero from '../components/hero'; import SecondaryContent from '../components/secondaryContent'; export default function EmploymentOpportunities({ location }) { const heroData = { heading: 'Employmen...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Tue Jul 30 23:41:38 2019 @author: liudiwei """ import random import string import requests import json from douban.items import Subject from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Request, Rule ...
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-27 11:15 from __future__ import unicode_literals from django.conf import settings import django.contrib.auth.models import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class...
/** * * AddCommunications * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { Table, Row, Col, Button, Modal } ...
from pyleap import * def draw(dt): Rectangle(0, 0, window.w, window.h, "white").draw() # window.show_axis() Line(100, 150, 200, 150, 5, '#eeaa00').draw() Line(150, 200, 150, 300, 10, 'red').draw() Line(100, 300, 300, 400, 40, '#00ff00').draw() Line(100, 400, 300, 100, 20, 'black').draw() w...
/* ------------------------------------------------------------------------- * * Copyright 2002-2021, OpenNebula Project, OpenNebula Systems * * * * Licensed under the Apache License, Version 2.0 (the "License"); you may * * n...
module.exports = sortByProcedure; /* sort the parts of the passed selector, as there is potential for optimization (some types of selectors are faster than others) */ const procedure = require("./procedure.json"); const attributes = { __proto__: null, exists: 10, equals: 8, not: 7, start: 6, ...
const router = require("express").Router() const passport = require("../auth") const { db } = require("../../../utils") //---------------------------------------------------------------------------------------------------------- //Endpoints //----------------------------------------------------------------------------...
COMPONENT('crop', 'dragdrop:true;format:{0}', function(self, config) { var canvas, context; var img = new Image(); var can = false; var is = false; var zoom = 100; var current = { x: 0, y: 0 }; var offset = { x: 0, y: 0 }; var cache = { x: 0, y: 0, zoom: 0 }; var width = 0; self.bindvisible(); self.novalid...
module.exports = { "type": "Program", "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 17 } }, "range": [ 0, 17 ], "body": [ { "type": "ExpressionStateme...
// Example model module.exports = function (sequelize, DataTypes) { var validator = require('validator'); var Requests = sequelize.define('Requests', { firstName: { type: DataTypes.STRING, field: 'first_name', set: function(val){ this.setDataValue('firstName', validator.escape(val));...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[20],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&": /*!************************************************************************************...
function action(table,history,cellvalue,action){ $.ajax({ type: "POST", url: "/item-finder/admin/manageApproval", data: { "table": table, "id": cellvalue, "history": history, "action": action}, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _react = _interopRequireDefault(require("react")); var _Annotation = _interopRequireDefault(require("../Annotation")); var _EditableAnnotation = _interopRequireDefault(require("../EditableAnnotation")); v...
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-22 11:43 from __future__ import unicode_literals from django.db import migrations def create_accounts(apps, schema_editor): """Create Accounts for all users.""" User = apps.get_model('auth', 'User') Account = apps.get_model('users', 'Account...
import React from 'react'; import Helmet from 'react-helmet'; import { container } from './styles'; const Contact = () => ( <div {...container}> <Helmet title="Contact" /> <h2>Contact</h2> </div> ); export default Contact;
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.7 */ !function(e,t,n){"use strict";!function(){t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.layout","material.core.theming.palette","material.core.theming","material...
""" Common set of functionality for API testing. Fixtures defined within this file are available to all other testing modules. """ import api.common import api.config import pytest from pymongo import MongoClient def setup_db(): """ Creates a mongodb instance and shuts it down after testing has concluded. """ ...
from django import template try: from django.template import Node, Token, TemplateSyntaxError except: from django.template.base import Node, Token, TemplateSyntaxError try: from django.template import resolve_variable except ImportError: from django.template.base import Variable from django.template.de...
import { Utils } from './utils'; export const convertToGraphQL = (fields, indentation) => { return fields.length > 0 ? fields.map(f => fieldTemplate(f, indentation)).join('\n') : ''; }; export const arrayToGraphQL = fields => fields.map(f => `${f.name}: ${f.type}`).join(', '); /* For backwards-compatibility reaso...
import request from '@/utils/request' const group_name = 'recruit' const api_name = 'recruit' export default { getList() { return request({ url: `/${group_name}/${api_name}`, method: 'get' }) }, search(page, size, searchMap) { return request({ url: `/${group_name}/${api_name}/search/...
// (c) AWScript | SVG (in JSON format) map of Dapil Kalimantan Selatan DPR-RI // areas: {id:"KS-1"},{id:"KS-2"} AmCharts.maps.dp_kalimantan_selatan_ri={ "svg": { "defs": { "amcharts:ammap": { "projection":"mercator", "leftLongitude":"110.12695", "topLatitude":"-0.64818", "rightLongitude":"121.7724...
var data = { rsvp: ['ixd@ucsd.edu'] }; /* * GET tasks page. */ exports.adminView = function(request, response){ response.render('rsvp', data); }; exports.addRSVP = function(request, response){ var rsvpEmail = request.body.rsvpEmail; console.log(rsvpEmail); data.rsvp.push(rsvpEmail); response.send(rs...
export const GET_CLUSTER_DATA_REQUEST = "GET_CLUSTER_DATA_REQUEST"; export const GET_CLUSTER_DATA_SUCCESS = "GET_CLUSTER_DATA_SUCCESS"; export const GET_CLUSTER_DATA_FAILURE = "GET_CLUSTER_DATA_FAILURE"; export const CHANGE_CLUSTER_VIEW_KEY = "CHANGE_CLUSTER_VIEW_KEY"; export const SET_CLUSTER_STATUS = "SET_CLUSTER_STA...
const expect = require('chai').expect const convertipeso = require('..').default describe('#convertipeso', function (){ it('Si el valor ingresado no es un peso', function () { const resultado = convertipeso("hola") expect(resultado).to.equal(0) }) it('Convirtiendo 2 kilos a libras', function () { ...
import {expect} from 'chai'; import {spec} from 'modules/admixerBidAdapter.js'; import {newBidder} from 'src/adapters/bidderFactory.js'; import {config} from '../../../src/config.js'; const BIDDER_CODE = 'admixer'; const ENDPOINT_URL = 'https://inv-nets.admixer.net/prebid.1.1.aspx'; const ENDPOINT_URL_CUSTOM = 'https:...
import{_ as e,j as a,b as o,c,e as r,m as t,q as l,F as d,s as n}from"./app.e8329c2e.js";const u={},i=n(`<h1 id="zoom-\u7F29\u653E\u63A7\u4EF6" tabindex="-1"><a class="header-anchor" href="#zoom-\u7F29\u653E\u63A7\u4EF6" aria-hidden="true">#</a> Zoom \u7F29\u653E\u63A7\u4EF6</h1><p>\u7F29\u653E\u63A7\u4EF6\uFF0C\u9ED8\...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import * as React from 'react'; import DynamicPropertiesGrid from '../DynamicPropertiesGrid'; im...
{"mlist":[],"rlist":{},"page":{"page":1,"count":0,"size":10,"type":0,"id":2916}}
(function (window) { //add prototype to window window.storageManager = new StorageManager(); //main prototype function StorageManager() { //prototype functions this.init = function(){ //initiate object variables this.prefix = "br_"; //used for distinguishing...
/*global require*/ // Essentially a placeholder unless you need/want to customize the webpack // build for design environment. module.exports = require('../development/webpack');
import numpy as np from scipy.spatial import distance def DistancesMatrix(X,Xt,Nl,Nt,typeD='Euc',T=False,sqr=True,xinterval=None): ############################################################################################## # Pairwise distances matrix between the points contained in a matrix X (training points) and ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_voice_chat = void 0; var ic_voice_chat = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0z", "fill": "none" }, "children": [] }, { "name": "path", ...
goog.module('targets.es2015.cls.asynciterable.range'); exports = {}; var module = {id: 'targets/es2015/cls/asynciterable/range.js'};/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ var asynciterable_1 = goog.require('targets.es2015.cls.asynciterable'); const tsickle_forward_declare_1 ...
/* * Copyright 2020 SkillTree * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
require("dotenv").config(); module.exports = { siteMetadata: { title: `Pokemon Sword and Shield`, description: `A demo of gatsby-source-wordpress`, author: `@kimberrypi` }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name: `im...
#!/usr/bin/env python # coding: utf-8 # In[1]: import cv2 import numpy as np import os # In[2]: recognizer = cv2.face.LBPHFaceRecognizer_create() recognizer.read('trainer/trainer.yml') cascadePath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascadePath); font = cv2.FONT_HERSHEY_...
import React from 'react'; import { render, getByTestId } from '@testing-library/react'; import { Header, UserHelper } from '..'; //*** Would like to make this typescript but the render method won't take components when saved as .ts test('renders header with name', () => { UserHelper.person = { displayName: 'Jer...
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ /*jshint browser:true */ import { read, write, utils } from 'xlsx'; var global_wb; var process_wb = (function() { var OUT = document.getElementById('out'); var HTMLOUT = document.getElementById('htmlout'); var get_format = (function() { var radios = d...
var React = require('react/dist/react.min'); var HeaderSection = React.createClass({ render: function () { return ( <div id="headerSection" className="container-fluid"> <div className="row"> <div className="col-xs-12"> <h2>Riemann</h2> <h5>Calculate and...
const httpMocks = require('node-mocks-http') const restrict = require('../src') const allowedWebsites = [ 'www.foo.com/path', 'bar.com/*', 'sub.baz.com/*', '*.qux.com/*', 'www.quux.com:8000/*' ] const middleware = restrict.website(allowedWebsites) describe('website restriction', () => { test('A specific ...
# Copyright 2017-2018 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
BR.RoutingPathQuality = L.Control.extend({ initialize: function(map, layersControl, options) { L.setOptions(this, options); // hotline uses canvas and cannot be moved in front of the svg, so we create another pane map.createPane('routingQualityPane'); map.getPane('routingQualityPane...
import React, { Component } from 'react'; import { Form, Field } from 'react-final-form'; import PropTypes from 'prop-types'; import AutoSuggest from '../containers/auto-suggest'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import SearchIcon from '@material-ui/ico...
import * as React from "react" import { Link } from "gatsby" import { StaticImage } from "gatsby-plugin-image" import Layout from "../components/layout" import Seo from "../components/seo" const IndexPage = () => { console.log(`process.env`, process.env) return ( <Layout> <Seo title="Home" /> <h1>...
/** * @copyright Copyright (c) 2019 Maxim Khorin <maksimovichu@gmail.com> */ 'use strict'; const Base = require('./SessionStore'); module.exports = class MemorySessionStore extends Base { _sessions = {}; _users = {}; get (sid, callback) { if (Object.prototype.hasOwnProperty.call(this._sessions...
import echarts from 'echarts'; export default { name: 'echarts', data() { return { chartDom: null, data: { id: this.id, title: this.title, legend:this.legend, datalist:this.datalist, datalists:[] ...
scdsa DataTransferd asdas DataTransfer
# Python program to generate QR code #from qrtools import QR import pyqrcode from pyzbar.pyzbar import decode from PIL import Image def generate(): car = '"regno":"011238", "owener name":"indian__tech__","owener mob":"0123456789"' qr = pyqrcode.create(car) qr.png("first5.png",scale=8) def scan(): ...
import presenceStatus from 'ringcentral-integration/modules/Presence/presenceStatus'; import dndStatus from 'ringcentral-integration/modules/Presence/dndStatus'; export default { extensionLabel: "Ramal", directLabel: "Direto", emailLabel: "Email", call: "Chamada", text: "Texto", [presenceStatus.available]:...
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/abiantorres/Documentos/tfg/autonomous-vehicles-system-simulation/low_level_simulation/install/include".split(';') if "/home/abiantorres/Documentos/tfg/autonomous-vehicles-system-simulation/low_le...
import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-...
let upsert = require('../_upsert') let validate = require('./validate') module.exports = function configureAWS ({ arc, inventory, errors }) { if (!arc.aws) return inventory.aws let aws = upsert(inventory.aws, arc.aws) validate.aws(aws, errors) return aws }
import numpy as np import arviz as az import seaborn as sns import pandas as pd import pickle as pkl import importlib import anndata as ad import ast import matplotlib.pyplot as plt from scdcdm.util import result_classes as res from scdcdm.util import multi_parameter_sampling as mult from scdcdm.util import multi_para...
// @flow import React from 'react'; import { TodosContainer, useTodos, useTodosCount, useTodosFiltered, } from '../components/todos'; const RenderBlocker = React.memo<*>(({ children }: any) => children); function TodosHeader({ children }: any) { useTodosCount(); return children; } function TodosDoneCoun...
var data = { description: 'Valid bson documents', documents: [ { encoded: '160000000268656c6c6f0006000000776f726c640000', document: { hello: 'world' } }, { encoded: 'ab0100000268656c6c6f0006000000776f726c640008626f6f6c65616e000110696e743332000200000012696e74363400...
// COPYRIGHT © 2021 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{325:function(t,s,a){"use strict";a.r(s);var n=a(36),r=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:"picker-选择器"}},[a("a",{staticClass:"header...
/* Desafio FizzBuzz Escreva uma lib que receba um número e: Se o número for divisível por 3, no lugar do número escreva 'Fizz' - X Se o número for divisível por 5, no lugar do número escreva 'Buzz' - X Se o número for divisível por 3 e 5, no lugar do número escreva 'FizzBuzz' - X Se não for múltiplo de nada, retorna...
"use strict"; var assert = require( "chai" ).assert; describe( "Test", function() { specify( "condition", function() { assert( true, "description" ); } ); } );
import * as riot from 'riot' import { init, compile } from '../../helpers/' import TabComponent from '../../../dist/tags/tab/su-tab.js' import TabsetComponent from '../../../dist/tags/tab/su-tabset.js' describe('su-tabset', function () { let element, component let spyOnClick init(riot) beforeEach(function () ...
const Discord = require("discord.js") const { Permissions } = require('discord.js'); module.exports = { name: "say", description: "Makes bot say a message in a channel", usage: "?say [#channel] [msg]", execute(bot, message, args) { if (!message.member.permissions.has(Permissions.FLAGS.MANA...
'use strict'; //@flow import '@babel/polyfill'; import { call, put } from 'redux-saga/effects'; import { takeEvery } from 'redux-saga/effects'; import { FETCH_COMPLETE } from '../action'; import { FETCH_DATA } from '../action'; import { FETCH_ERROR } from '../action'; import { FETCH_START } from '../action'; import {...
import $ from "jquery"; import _ from "lodash"; import * as blueslip from "./blueslip"; import * as buddy_data from "./buddy_data"; import {buddy_list} from "./buddy_list"; import * as channel from "./channel"; import * as keydown_util from "./keydown_util"; import {ListCursor} from "./list_cursor"; import * as narrow...
function addNetworkToRouter() { const routerId = document.getElementById("routerId").value; const address = document.getElementById("address").value; const name = document.getElementById("name").value; const cidr = document.getElementById("cidr").value; const xhttp = new XMLHttpRequest(); xhttp....
import { chain } from '~/helpers/promise'; import { ApiError } from '~/helpers/api'; import Chat from '~/models/Chat'; import { findAuthentication } from '~/services/auth'; import { findChat, editChat, emitChat, forkChat, forkMergeChat } from '~/services/chat'; export const chats = (req, res, next) => { const room ...
import React from 'react' import { images } from 'Utilities/common' const NavBar = () => ( <div className="navbar"> <img src={images.toskaLogo} alt="toska" /> </div> ) export default NavBar
/** * Based on http://www.emagix.net/academic/mscs-project/item/camera-sync-with-css3-and-webgl-threejs * @author mrdoob / http://mrdoob.com/ */ THREE.CSS3DObject = function ( element ) { THREE.Object3D.call( this ); this.element = element; this.element.style.position = 'absolute'; this.addEventListener( 're...
# -*- coding: utf-8 -*- from numpy import linspace, where, sin, pi def get_data(self): """Generate the toothsaw vector Parameters ---------- self : ImportGenToothSaw An ImportGenToothSaw object Returns ------- vect: ndarray The generated toothsaw vector """ tim...
require('dotenv').config(); const mongoose = require('mongoose'); const User = require('../models/User'); const Post = require('../models/Post'); (async () => { try { await mongoose.connect(process.env.MONGO_URL, {useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, authSource: "admin"});...
import graphlab as gl # Load the mnist data into an SArray of dtype array.array. This dataset comes from # http://yann.lecun.com/exdb/mnist/, courtesy of Yann LeCun and Corinna Cortes. mnist_array = gl.SArray('http://s3.amazonaws.com/GraphLab-Datasets/mnist/mnist_vec_sarray') # The MNIST data is scaled from 0 to 1, ...
define(["bar"], function(bar) { return { callBar: function() { return "Called " + bar.call(); } }; });
import gql from 'graphql-tag'; export default gql` mutation AddLyric($songId: ID!, $content: String!){ addLyricToSong(songId: $songId, content: $content) { id lyrics { id content likes } } } `;
// Copyright 2019 OpenST Ltd. // // 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 w...
var fs = require('fs'); var path = require('path'); var argv = require('optimist').argv; var utils = require('./utils'); var loadJsonSync = function(filePath) { if( filePath ){ try { var data = fs.readFileSync(filePath); return JSON.parse(data.toString()); } catch (ex) { console.error...
/** * @param {import('../router/sessions').data} playerData */ function fnc (event, _mapData, playerData, solve) { if (event !== 'move') return /* Init */ if (!playerData.map3) playerData.map3 = 0 /* Add */ playerData.map3++ /* Check */ if (playerData.map3 > 30) solve() } module.exports = fnc
require('./layer/layer'); $(document).ready(function() { /** * 删除资源 */ $('.deleteConfirm').on('click', function() { var $this = $(this); layer.confirm('确定删除?', { btn: ['确定','取消'] }, function(){ // layer.msg('的确很重要', {icon: 1}); var target =...
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_flcdrpf_ckl_mmp_cds @file marine-integrations/mi/dataset/parser/test/test_flcdrpf_ckl_mmp_cds.py @author Mark Worden @brief Test code for a flcdrpf_ckl_mmp_cds data parser """ import os from nose.plugins.attrib import attr from mi.core.exce...
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI * Licensed under the MIT License */ YUI.add('wegas-langselector', function(Y) { "use strict"; var CONTENTBOX = 'contentBox', LangSelector; LangSelector = Y.Base.create("wegas-langs...
// flow-typed signature: 48b5ae5fc5f63086012d1d288b9d6b06 // flow-typed version: <<STUB>>/react-hot-loader_v^4.3.12/flow_v0.85.0 /** * This is an autogenerated libdef stub for: * * 'react-hot-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your w...
# Python import re import unittest from unittest.mock import Mock # ATS from ats.topology import Device # Parser from genie.libs.parser.iosxr.show_hsrp import ShowHsrpSummary, ShowHsrpDetail # Metaparser from genie.metaparser.util.exceptions import SchemaEmptyParserError # ====================================== #...
// we save the images in an array // To store this in localStorage, we need to stringify it class ImageStorage { constructor() { // check existing let images_str = window.localStorage.cactus || '[]'; this.images = JSON.parse(images_str); } saveImage(img, file_name) { this.images.push({ na...
"use strict"; require("core-js/modules/es.object.define-property"); Object.defineProperty(exports, "__esModule", { value: true }); exports.set = exports.get = void 0; var _store = _interopRequireDefault(require("store2")); var _debounce = _interopRequireDefault(require("lodash/debounce")); var _memoizerific = _i...
var assert = require('assert'); module.exports = function() {}; module.exports.prototype = { configure: function(keywords) { assert( typeof keywords === 'string' || typeof Array.isArray(keywords), 'safeContextKeyword option requires string or array value' ); ...
systemTime(); function systemTime() { //获取系统时间。 var dateTime = new Date(); var year = dateTime.getFullYear(); var month = dateTime.getMonth() + 1; var day = dateTime.getDate(); var hh = dateTime.getHours(); var mm = dateTime.getMinutes(); var ss = dateTime.getSeconds(); //分秒时间是一位数...
import io import os import tensorflow as tf import zipfile from google.cloud import storage from tensorflow.python.platform import gfile DATA_DIR = 'celeba_data/' def load_image_dataset(bucket_name, data_filename, image_size, batch_size): """Load the images into a dataset from the given path.""" if not os.path...
import React, { lazy, useState, useEffect } from "react"; import { CBadge, CCard, CCardBody, CCardHeader, CCol, CDataTable, CRow, CButton, CInput, CListGroupItem, CListGroup, CTabs, CNavItem, CNav, CTabContent, CTabPane, CNavLink } from "@coreui/react"; import DeleteOutlineIcon from "...
__NUXT_JSONP__("/43/89", (function(a,b,c,d,e,f,g,h,i,j,k,l){return {data:[{metaTitle:b,metaDesc:c,verseId:89,surahId:43,currentSurah:{number:"43",name:"الزخرف",name_latin:"Az-Zukhruf",number_of_ayah:"89",text:{"1":" حٰمۤ ۚ ","2":"وَالْكِتٰبِ الْمُبِيْنِ ۙ ","3":"اِنَّا جَعَلْنٰهُ قُرْاٰنًا عَرَبِيًّا لَّعَلَّكُمْ تَعْ...
const express = require("express"); const lingua = require('lingua'); const passport = require('passport'); require("dotenv").config(); const app = express(); const PORT = process.env.PORT || 3000; const { connectDB } = require("./db.config"); var cookieParser = require('cookie-parser') //KONEK KE DATABASE connectDB...
var classthread_1_1_future_synchronyzer = [ [ "Function", "classthread_1_1_future_synchronyzer.html#a94ddebc4688410fefcaa63f974fa58f1", null ], [ "FunctionPtr", "classthread_1_1_future_synchronyzer.html#a2fe0972b68158b5c19639360bc21492a", null ], [ "FutureSynchronyzer", "classthread_1_1_future_synchronyzer....
"use strict"; const enumerationValues = new Set([ "portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary" ]); module.exports = { enumerationValues, convert(value, { context = "The provided value" } = {}) { const string = `${value}`; if (!enumerationValues.has(value)) { ...
/* global jQuery:true */ ;(function( window, $ ){ "use strict"; var name = "offcanvas", componentName = name + "-component", utils = window.utils, doc = document; window.componentNamespace = window.componentNamespace || {}; var Offcanvas = window.componentNamespace.Offcanvas = function( element,options ){ ...
module.exports = function(sequelize, DataTypes) { var Order = sequelize.define("Order", { // Giving the order model a name of type STRING id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, customerId: { type: DataTypes.INTEGER, allowNull: false } ...
import os import sys import time from stve.log import LOG as L from stve.script import StveTestCase class TestCase(StveTestCase): def __init__(self, *args, **kwargs): super(TestCase, self).__init__(*args, **kwargs) @classmethod def setUpClass(cls): L.info("*** Start TestCase : %s *** "...
/* eslint-env node, mocha */ import {expect} from 'chai' import module from '../src/index.js' describe('module', () => { it('exports the correct functions', () => { expect(Object.keys(module)).to.deep.equal([ 'itemValue', 'itemInherits', 'itemGems' ]) }) })
class Utils { /** * 地图数据解码 */ decode(json) { if (!json.UTF8Encoding) { return json; } let encodeScale = json.UTF8Scale; if (!encodeScale) { encodeScale = 1024; } let features = json.features; features.forEach(feature => { let geometry = feature.geometry; le...
(function (angular, undefined) { 'use strict'; // module: hq.dashboard var dashboard = angular.module('hq.dashboard', []); /* All the components necessary to provide a functional, modular dashboard for a returning user. */ dashboard.constant('dashboardConfig', { staticRoot: '/' ...
module.exports = function ({ $lookup }) { return { object: function () { return function (object, $step = 0, $i = []) { let $buffers = [] return function $parse ($buffer, $start, $end) { for (;;) { switch ($step) { ...
import os import sys from setuptools import setup, find_packages assert sys.version_info >= (3, 6, 0), "stellar-sdk v2 requires Python 3.6+" here = os.path.abspath(os.path.dirname(__file__)) requirements_file = "requirements.txt" about = {} with open( os.path.join(here, "stellar_sdk", "__version__.py"), mode="r...
// The following code is based off a toggle menu by @Bradcomp // source: https://gist.github.com/Bradcomp/a9ef2ef322a8e8017443b626208999c1 (function() { var burger = document.querySelector('.nav-toggle'); var menu = document.querySelector('.nav-menu'); burger.addEventListener('click', function() { b...