text stringlengths 3 1.05M |
|---|
/// <reference path="ChequeDeposit_Form.js" />
import React, {Component, PropTypes} from 'react';
import {observer} from 'mobx-react';
import {observable, extendObservable} from 'mobx';
import {InputField, asForm, InputDate, InputSelect,InputCheckbox} from '../../utils';
import Collapse, { Panel } from 'rc-collapse';
... |
from __future__ import absolute_import, unicode_literals
import pickle
import pytest
import socket
from copy import copy, deepcopy
from case import Mock, patch, skip
from kombu import Connection, Consumer, Producer, parse_url
from kombu.connection import Resource
from kombu.exceptions import OperationalError
from k... |
# Copyright 2015-2017 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
const express = require('express')
const router = express.Router()
const Room = require('../models/Room')
const { ensureAuth } = require('../middleware/auth')
router.get('/joinRoom', ensureAuth, async (req, res) => {
try {
let rooms = await Room.find({}).lean()
res.render('chat/joinroom', {
... |
/******/ (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... |
/*
* Copyright 2019 Amadeus s.a.s.
* 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, publish, distr... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable max-nested-callbacks */
/// <reference types="Cypress" />
describe('Create and delete board / card', () => {
const timestamp = new Date().toLocaleString();
const boardTitle = `Tes... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var Title = new Schema({
title: {type: String},
slogan: {type: String},
})
module.exports = mongoose.model("Title", Title);
|
module.exports = {
siteMetadata: {
title: `Faisal Aqdas`
},
plugins: [
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`pacifico:400`,
`raleway:100,400,600,700`,
'lato: 300,400,500'
]
}
},
{
resolve: `gatsby-source-files... |
from collections import defaultdict
from glob import glob
from random import choice, sample
import cv2
import numpy as np
import pandas as pd
from keras.applications.resnet50 import ResNet50, preprocess_input
from keras.callbacks import ModelCheckpoint, ReduceLROnPlateau
from keras.layers import Input, Dense, GlobalMa... |
# ActivitySim
# See full license in LICENSE.txt.
import logging
import pandas as pd
import numpy as np
from activitysim.core import tracing
from activitysim.core import config
from activitysim.core import inject
from activitysim.core import pipeline
from activitysim.core import simulate
from activitysim.core.mem impo... |
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M128.1 256l128 224 128-224zM392 161c3-9 4.7-22.7 4.7-32.9 0-53.1-43-96.1-96.1-96.1-31.4 0-59.2 15-76.8 38.3 0 0-9.1 14-10.8 29l-3.4-1c-2.3-9-3.7-20 1.6-31.5-7.4-2.5-9.4-2.8-17.6-2.8-41.7 0-75.6 33.8-75.6 75.6 0 6.3.8 15.5 2.3 21.4-13.9 ... |
import unittest
from phone_prices import phone_prices
class TestPhonePrices(unittest.TestCase):
def test_example(self):
res = phone_prices([375, 750, 723, 662, 647, 656, 619])
self.assertEqual(2, res)
if __name__ == '__main__':
unittest.main() |
angular.module('web.controllers', ["firebase"])
.controller('HomeCtrl', function($scope, $rootScope, $location, auth, currentAuth, usersRef) {
if (currentAuth) {
$location.path('/events');
}
$rootScope.authData = currentAuth;
$scope.error = null;
$scope.login = function(provider) {
auth.$authWithO... |
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var vdl = require('./ifc');
module.exports = LightSwitch;
var ON = 'on';
var OFF = 'off';
// LightSwitch allows clients to manipulate a virtual light s... |
'use strict';
// The server port - the port to run Pokemon Showdown under
exports.port = 8000;
// proxyip - proxy IPs with trusted X-Forwarded-For headers
// This can be either false (meaning not to trust any proxies) or an array
// of strings. Each string should be either an IP address or a subnet given
// in ... |
/*! For license information please see chunk.ef75a63bbf606be534ca.js.LICENSE.txt */
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7505,9577,5149],{14114:(e,t,i)=>{"use strict";i.d(t,{P:()=>n});const n=e=>(t,i)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProper... |
(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[143],{1506:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},7154:function(t){fu... |
function setupAutoScroll(){0==$("div.alert-box").size()&&"small"!=getWindowsSize()&&setTimeout(function(){$(window).scrollTop()+$(window).height()<=parseInt($("#welcome").css("height"))+100&&("undefined"==typeof coinAnimationStarted||0==coinAnimationStarted)&&autoScrollToWelcome()},4e3)}function autoScrollToWelcome(){0... |
import React from 'react'
import {Link} from 'gatsby'
import StarIcon from 'assets/images/star-icon.png'
const Solutions = () => {
return (
<section className="solutions-area pt-100 pb-70">
<div className="container">
<div className="section-title">
<span cl... |
# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
webpackJsonp([4],{
/***/ 525:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__bigcommerce_stencil_utils__ = __webpack_require__(16);
/* harmony import */ v... |
Oskari.registerLocalization({
"lang": "fi",
"key": "LakapaBasketBundle",
"value": {
"title": "Latauskori",
"flyouttitle": "Latauskorin sisältö",
"desc": "",
"flyout": {
"buttonEmpty": "Tyhjennä",
"buttonLoadAll": "Lataa aineistot",
"buttonLoad": "Lataa aineisto",
"croppingT... |
import path from 'path';
import yargs from 'yargs';
import jestCLI from '../jest';
import utils from '../utils/functions';
import fileFinder from '../utils/fileFinder';
/**
* The Jest-Ex Runner is just a utility that uses the JestCLI defaults runner but it also allows you
* to have some extra functionality and have s... |
;window.Swipe=function(element,options){if(!element)return null;var _this=this;this.options=options||{};this.index=this.options.startSlide||0;this.speed=this.options.speed||300;this.callback=this.options.callback||function(){};this.delay=this.options.auto||0;this.container=element;this.element=this.container.children[0... |
(function() {
function CalculateStarPoints(centerX, centerY, arms, outerRadius, innerRadius){
var results = "";
var angle = Math.PI / arms;
for (var i = 0; i < 2 * arms; i++){
var r = (i & 1) == 0 ? outerRadius : innerRadius;
... |
var PReaction = {
isClicked: false,
isHover: false,
openTimer: null,
closeTimer: null,
shownReact: false,
isMobile: false,
initReaction: function () {
//auto position tooltip
$('.comment_mini_action .p-reaction-list-mini').off('mouseover').on('mouseover', function () {
var pos = $(this).offs... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lodash_set_1 = require("lodash.set");
const lodash_unset_1 = require("lodash.unset");
const lodash_clonedeep_1 = require("lodash.clonedeep");
const message_1 = require("./message");
const error_1 = require("../utils/error");
const error_... |
const newArray = ["a", " b", "c "].map((value) => {
return value.trim().toUpperCase();
});
console.log(newArray);
|
// jQuery Js Document
$(document).ready(function() {
}); |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _ErrorHandler = require('../utils/ErrorHandler');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Paste as plain text plugin.
*/
( function() {
// The pastetext command definition.
var pasteTextCmd = {
// Snapshots are done manual... |
chrome.runtime.onInstalled.addListener(({ reason, previousVersion }) => {
if (reason === 'update') {
const version = parseInt(previousVersion.replace(/\./g, ''), 10);
if (version < 207) {
window.chrome.storage.sync.set({ options: {} });
}
}
});
|
# -*- coding: utf-8 -*-
#
# Copyright 2019 SoloKeys Developers
#
# Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
# http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
# http://opensource.org/licenses/MIT>, at your option. This file may not be
# copied, modified, or distribute... |
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... |
#!/usr/bin/env pytest
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Test read/write functionality for PNG driver.
# Author: Frank Warmerdam <warmerdam@pobox.com>
#
###################################################################... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var assert_1 = tslib_1.__importDefault(require("assert"));
var invariant_1 = tslib_1.__importStar(require("./invariant"));
var invariant_2 = tslib_1.__importDefault(require("invariant"));
describe("ts-invariant"... |
import {default as AboutModal} from "./about_modal.js";
import {default as Input} from "./input.js"
import {default as SharingModal} from "./sharing_modal.js";
import {default as SettingsModal} from "./settings_modal.js";
import {default as HowToPlayModal} from "./how_to_play_modal.js";
export { AboutModal, Input, Sh... |
import React, { Component } from 'react';
import { formatMessage } from 'umi-plugin-react/locale';
import { Layout, message } from 'antd';
import Animate from 'rc-animate';
import { connect } from 'dva';
import router from 'umi/router';
import GlobalHeader from '@/components/GlobalHeader';
import TopNavHeader from '@/c... |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
const TodoItem = ({text}) => ( //vconst TodoItem = (props) => (
<li>{text}</li> //props.text
);
class App extends Component {
constructor(props) {
super(props);
this.state = {
todos: [],
newTodo: ''
... |
import { expect } from 'chai'
import EjsTest from '@/templates/index.test.ejs'
describe('Test Ejs Template', () => {
const data = {
index: [
{
link: 'html/test-demo.html',
key: '测试页面',
icon: 'iconfont icon-rocket'
}
]
}
const html = EjsTest(data)
const classReg = /cl... |
"""
Copyright 2019 Samsung SDS
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 applic... |
import React, { PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import { connect } from 'react-redux';
import { DragSource } from 'react-dnd';
import Card from '../../components/Friends/Card.js'
const spec = {
beginDrag(props) {
const item = {
type: 'card',
id: props.id ,
pa... |
import { axios } from '@/utils/request'
/**
* api接口列表
*/
const api = {
list: '/files/list',
edit: '/files/edit',
delete: '/files/delete',
moveGroup: '/files/moveGroup'
}
/**
* 列表记录
*/
export function list (params) {
return axios({
url: api.list,
method: 'get',
params
})
}
/**
* 编辑记录
* @... |
/**
* @file Node attachment helpers.
*/
/**
* Returns the HTTP response with the contents of a binary attachment.
* Sets content-type header according to content attachment.
* Sets ETag, allowing clients to save bandwidth by checking for resource freshness with 'If-None-Match' header.
*
* @param {Object} httpRe... |
var listingsData = [
{
address: '25899 Rose Road',
city: 'Westlake',
state: 'OH',
rooms: 3,
price: 204900,
floorSpace: 1200,
extras: ['elevator', 'gym'],
homeType: 'Apartment',
image:
'https://i.pinimg.com/736x/73/de/32/73de32f9e5a0db66ec7805bb7cb3f807--navy-blue-houses-blue-... |
/*
* Copyright 2010-2011 Research In Motion Limited.
*
* 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 ... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const { generateToken } = require("../middleware/auth");
const userSchema = new Schema({
username: {
type: String,
required: true,
unique: true,
},
password: {
type: String,
required: true,
},
role: {
type: String,
... |
'use strict';
/*
*
* Copyright 2018-present NEM
*
* 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 ... |
module.exports = {
name: 'ModuleComponents',
async forEachSchema({ blueprint, configuration, schema }) {
// Pulls model options from configuration object
const schemaOptions = configuration.ui_option[schema.identifier] || {}
// Isolates API Actions metadata
// console.log(configuration)
let a... |
import React from "react";
import './TodoSearch.css';
function TodoSearch({ searchValue, setSearchValue, loading }){
const onSearchValueChange = (e) => {
// console.log(e.target.value);
setSearchValue(e.target.value);
};
return(
<div className= "search-container">
<div... |
//----------- Imports -----------//
import SvgLogo from './SvgLogo'
//----------- Exports -----------//
export default SvgLogo
|
const path = require('path')
const webpack = require('webpack')
const createThemeColorReplacerPlugin = require('./config/plugin.config')
function resolve (dir) {
return path.join(__dirname, dir)
}
const isProd = process.env.NODE_ENV === 'production'
const assetsCDN = {
// webpack build externals
externals: {
... |
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
/*
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... |
# Unix SMB/CIFS implementation.
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) a... |
import dash_bootstrap_components as dbc
dropdown = dbc.DropdownMenu(
[
dbc.DropdownMenuItem("Item 1"),
dbc.DropdownMenuItem("Item 2"),
dbc.DropdownMenuItem("Item 3"),
],
label="Custom",
className="m-1",
toggle_style={
"textTransform": "uppercase",
"background... |
import { Client } from '@elastic/elasticsearch';
import scraper from './scraper.js';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import log from './logging.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const esClient = new Cl... |
import { verifyStructure } from '../../tests/primitives/verifyStructure';
import { generateFMLC } from '../primitives/firstMatchLoserConsolation';
import { drawEngine } from '../../sync';
import {
completeMatchUp,
verifyMatchUps,
} from '../../tests/primitives/verifyMatchUps';
import {
BYE,
RETIRED,
TO_BE_PL... |
// add another event
Template.resetPasswordModalInner.events({
'blur #arp-new-password-input': function (event, template) {
var passwordField = template.find('#arp-new-password-input');
if (passwordField.value === "") { //Field is invalid (blank)
setError(passwordField, "Required Field");
} else { /... |
from flask import Flask, render_template, send_from_directory
from flask_cors import CORS
from constants import STATIC_FOLDER
from embed_handler import create_embed_handler
from interpreter_links import create_interpreter_links
from language_apis import create_language_apis
from oauth_client import create_oauth_clien... |
import React from "react";
const SvgIconFileAdobeAnimate = props => (
<svg viewBox="0 0 103.5 103.5" width="1em" height="1em" {...props}>
<style>{`.st0{fill:#ff401f}`}</style>
<path
className="st0"
d="M103.5 103.5H0V0h103.5v103.5zM5 98.5h93.5V5H5v93.5z"
/>
<path d="M3.8 3.8h95.9v95.9H3.8z... |
/**
* Allow to use the object if the player has one in the dedicated slot of his inventory
* @param {("fr"|"en")} language - Language to use in the response
* @param {module:"discord.js".Message} message - Message from the discord server
*/
const BadgeCommand = async function (language, message) {
getCommand('hel... |
"""show_platform.py
NXOS parser class for below commands:
show version
"""
import re
import xmltodict
try:
from pyats import tcl
except Exception:
pass
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import Any, Optional, Or, And, Default, Use
def regexp(expression):... |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async.base.exchange import Exchange
import hashlib
class bit2c (Exchange):
def describe(self):
return self.deep_ex... |
# -*- coding: utf-8 -*-
# Sample-set Maker(SSM) V5.0
# Author: Yue H.W. Luo
# Mail: yue.rimoe@gmail.com
# License : http://www.apache.org/licenses/LICENSE-2.0
# Reference:
'''
This is a class definition scipts for Sample-set Maker. SSM is a sample maker
for RSI (Remote Sencing Image) classification, specifically for ... |
'use strict';
var Backbone = require('backbone'),
MenuOptionCollection = require('../../collections/menu/menu-option-collection'),
ItemCollection;
var MenuItemModel = Backbone.Model.extend({
defaults: {
title: '',
icon: '',
customIcon: null,
active: false,
expanded:... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'print', 'lt', {
toolbar: 'Spausdinti'
} );
|
/* @flow strict */
function isEmptyString(arg: mixed): boolean %checks {
return arg === '';
}
export default isEmptyString;
|
// flow-typed signature: bffd256c0c11b057811c109f2909279d
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.66.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-preset-react'
*
* Fill this stub out by replacing all the `any` models.
*
* Once filled out, we encourage you to share y... |
// server/index.js
const express = require('express');
const app = express();
// http://localhost:3000/JuanLu/Felipe
app.get('/:nombre/:apellido', (req, res) => {
const { nombre, apellido } = req.params;
res.send(
`¡Hola Mundo! os saluda => ${nombre} ${apellido} desde GET 1, con URL params`
);
});
// htt... |
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from passes.models import Account
from . import views
# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'account', views.AccountViewSet)
# The API URLs are now determined automatically ... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Partner", "CONTRIBUTION AMOUNT (F3L Bundled)": "1000.00", "ELECTION CODE": "P2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Lanx Capital", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "6201 Green Meadow", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DON... |
/* st-render.js */
st.render = {
$pageft: null,
init: function() {
st.log("init render");
st.render.$pageft = $(".st-page .st-page-ft");
},
render: function() {
st.log("rendering char");
var that = st.render;
that.renderReset();
that.renderOverview();
that.renderAttributes();
that.renderWork(... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google 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... |
from fanstatic import Resource
from js.extjs.library import library
locale_names = (
'ext-lang-af',
'ext-lang-bg',
'ext-lang-ca',
'ext-lang-cs',
'ext-lang-da',
'ext-lang-de',
'ext-lang-el_GR',
'ext-lang-en_AU',
'ext-lang-en_GB',
'ext-lang-en',
'ext-lang-es',
'ext-lang-et... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[998],{2013:function(e,t,a){"use strict";a.r(t);var s=a(18),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"macos-development-environment"}},[a("a"... |
import os
from flask import Flask, request, jsonify, abort
import boto3
app = Flask(__name__)
TODOS_TABLE = os.environ['TODOS_TABLE']
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table(TODOS_TABLE)
def get_todo(id):
res = table.get_item(Key={ 'id': id })
if 'Item' not in res:
abort(404)
... |
tinymce.init({
selector: 'textarea#content',
// theme : "advanced",
height: 200,
width:"",
plugins: [
"codemirror advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars fullscreen",
"insertdatetime media... |
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
// works out the left or right hand reset position, based on scroll
// behavior, current direction and new direction
... |
/* Outlook web application specific API library */
/* Version: 16.0.7511.3000 */
/*
Copyright (c) Microsoft Corporation. All rights reserved.
*/
/*
Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/
var __extends=this && this.__extends || functi... |
require('./about.less');
module.exports = {
init: function(){
// F7app.alert('about','Welcome')
}
}; |
export * from './filters';
export * from './pagination.class';
export * from './parameters';
export * from './sort-order.enum';
//# sourceMappingURL=index.js.map |
module.exports = {
content: ["_site/**/*.html, _site/*.html"],
safelist: [],
theme: {
extend: {
colors: {
change: "black",
},
},
},
plugins: [],
};
|
r"""
Nilpotent Lie algebras
AUTHORS:
- Eero Hakavuori (2018-08-16): initial version
"""
# ****************************************************************************
# Copyright (C) 2018 Eero Hakavuori <eero.hakavuori@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it und... |
Neo = {};
(function(){
//Internal
function bytes_to_hex(bytes) {
var hex = "";
for(var i=0; i<bytes.length; i++) {
var b = bytes[i].toString(16);
if(b.length == 1) b = "0" + b;
hex += b;
}
return hex;
}
function send_apdu(data) {
var resp = _JS_API.send_apdu(data);
va... |
const { getFile } = require('./blockstack');
exports.sourceNodes = async (
{ actions, createNodeId, createContentDigest },
configOptions
) => {
const { createNode } = actions;
const sources = configOptions.blockstackSources;
let nodePromises = [];
const processDatum = (data, dataType) => {
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.redisMetricsSpecProvider = redisMetricsSpecProvider;
var _i18n = require('@kbn/i18n');
var _tutorial_category = require('../../../common/tutorials/tutorial_category');
var _metricbeat_instructions = require('../../../common/tutor... |
import {
DataTexture,
FloatType,
MathUtils,
RGBFormat,
ShaderMaterial,
UniformsUtils
} from '../../../build/three.module.js';
import { Pass, FullScreenQuad } from './Pass.js';
import { DigitalGlitch } from '../shaders/DigitalGlitch.js';
class GlitchPass extends Pass {
constructor( dt_size = 64 ) {
super();
... |
print('\033[34mHello, world!')
|
def binary_search(list_of_media_objects, like, ub=None, lb=0):
if ub is None:
ub = len(list_of_media_objects)
mid = lb + (ub-lb) // 2
if lb > ub or mid == ub:
return None
if list_of_media_objects[mid].title.lower() == like:
return mid
if like < list_of_media_objects[mid].... |
$(function(){
var Script = function () {
// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
/* 初始化外部事件(可拖动事件)
-----------------------------------------------------------------*/
$('#external-events div.external-event').each(function() {
var eventObject = {
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["caract-bioqui-cepa-bacteria~caract-bioqui-cepa-hongo~caract-bioqui-cepa-levadura~caract-fisio-cepa-b~6b21499d"],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/CroppieComponent.vue?vue&t... |
const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const requireFromString = require('require-from-string');
const config = require('../config');
const fhirAxios = require('./fhirAxios')
const logger = require('../winston');
const _workflowModules = {};
const fhirModules = {
... |
"""Test Stop."""
import unittest
import util
from stop import Stop
class TestStop(unittest.TestCase):
def setUp(self):
data = util.example_export()
name = 's-9qscv9zzb5-bullfrogdemo'
feature = [i for i in data['features'] if i['onestopId'] == name]
assert len(feature) == 1
self.expect = feature[... |
"""Definitions of stages in a pipeline"""
# Third party imports
import pyplugs
from codetiming import Timer
# Geo:N:G imports
from app import config
from geong_common.log import logger
# Configuration of stages
*_, PACKAGE = __name__.split(".")
CFG = config.app[PACKAGE]
def get_stage(app, stage):
"""Get a stag... |
# coding: utf-8
""" Core functionality for doing stream inference """
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
from collections import OrderedDict
import logging
import os
import sys
import random
# Third-party
from astropy import log as logge... |
# WAP to demo iterator generator in Python
def YieldDemo():
i = 0
for i in range(4):
yield i
def main():
x = YieldDemo()
print(next(x))
print(next(x))
print(next(x))
print(next(x))
print(next(x))
print(next(x))
print(next(x))
if __name__ == "__main__":
main() |
const token = document.getElementById('token').content;
export const get = async () => {
try {
let res = await fetch('/general-parameters');
let data = await res.json();
return data;
} catch (error) {
console.log(error);
}
}
export const update = async (form, id) => {
tr... |
import $ from 'jquery';
class Cart {
constructor() {
this.cart = {};
this.cart.products = [];
}
addItem(product) {
// check if cart exists using total
let total = Object.keys(this.cart.products).length;
if (total === 0) {
// cart is empty - add first product
total += 1;
} e... |