text stringlengths 3 1.05M |
|---|
#
# Copyright 2018-2021 Elyra 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 applicable law or agreed to in writ... |
import axios from 'axios';
// const SET_FRIENDS = 'SET_FRIENDS';
// export const setFriends = (friends) => ({
// type: SET_FRIENDS,
// friends,
// });
// export const fetchFriends = (id) => async (dispatch) => {
// try {
// const { data } = await axios.get(`/api/users/${id}/friends`);
// dispatch(setFriend... |
#!/Users/brendawanjiku/Documents/python/gallery/gallery/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
|
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import { SuperMap } from '../SuperMap';
import { ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"76aL":function(t,e,a){"use strict";a.r(e);var n=a("q1tI"),i=a.n(n),l=a("/d1K"),s=a("Zttt"),u=a("RXmK"),o=a("gGy4");e.default=function(){var t=Object(o.b)(),e=t.title,a=t.subtitle;return i.a.createElement(s.a,{title:"Not Found - "+e,description:a},i.a.createElem... |
var crypto = require('crypto');
function UserNotificationAction(__SLAG_PROPERTIES) {
__SLAG_PROPERTIES = __SLAG_PROPERTIES || {};
var __SLAG_DEVICE = JSON.parse(process.env.SLAG_DEVICE);
var __SLAG_CHECKS = [], __SLAG_NAMES = [
'activationMode',
'apiName',
'authenticationRequired',
'destructive',
'ide... |
import logging
import os
import signal
import subprocess
import threading
import shlex
from esrally import config, time, exceptions, client
from esrally.mechanic import telemetry, cluster
from esrally.utils import console, process, jvm
logger = logging.getLogger("rally.launcher")
def wait_for_rest_layer(es, max_att... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.m.MessageBox
sap.ui.define(['jquery.sap.global', './Button', './Dialog', './Text', 'sap/ui/core/Icon... |
//>>built
define("dojox/gfx/Moveable","dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/event dojo/topic dojo/touch dojo/dom-class dojo/_base/window ./Mover dojo/mouse".split(" "),function(c,k,l,e,f,d,g,h,m,n){return k("dojox.gfx.Moveable",null,{constructor:function(a,b){this.shape=a;this.delay=b&&0<b.del... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.METADATA_FACTORY_NAME = exports.OPENAPI_PACKAGE_NAME = exports.OPENAPI_NAMESPACE = void 0;
exports.OPENAPI_NAMESPACE = 'openapi';
exports.OPENAPI_PACKAGE_NAME = '@nestjs/swagger';
exports.METADATA_FACTORY_NAME = '_OPENAPI_METADATA_FACT... |
import requests
import os
from time import sleep, time
from .Exceptions import MaxRetriesException
from ._util import saveAsFile
from ._util import _printErrorMessage
from ._PollLog import _PollLog
class _DataProductFile:
"""
Donwloads a single data product file
Is able to poll and wait if required
"""... |
import {
Tree,
Icon
} from 'ant-design-vue'
import {Folder} from "../Step/defaultStep/AddPage/Page";
let buildMethod = {
renderPageTreeNode(h,obj,treeData) {
let key = obj.getIndex();
treeData[key] = obj;
return h(Tree.TreeNode,{
props: {
label: key,
... |
import React from 'react'
import { Route } from 'react-router-dom'
import Calendar from '../Calendar'
import BirthdayForm from '../BirthdayForm'
import BirthdayInformation from '../BirthdayInformation'
const App = () => (
<div>
<header>
<p className="headerText">Birthday Calendar App - Chrystian S... |
/**
* Init the input elements
* Init the input with a start value, a one that was saved in the DB or a default one
*/
function initInputElms() {
$('#numOfEntries').val(rssModel.settings.numOfEntries);
}
/**
* Bind events
* Listen to changes of the elements
*/
function bindEvents () {
var $rssF... |
import styled from 'styled-components';
export const Content = styled.div`
max-width: 100%;
margin-top: 40px;
min-height: 50vh;
display: flex;
align-items: center;
justify-content: space-around;
font-size: 4vw;
flex-direction: column;
`
;
|
const path= require('path')
exports.createPages=async({graphql,actions})=>{
const {data}=await graphql(`
query Projects {
allMarkdownRemark {
nodes {
frontmatter {
slug
}
}
}
}
`)
data.allMarkdownRemark.nodes.forEach(node=>{
actions.createPage({
path:'/proje... |
export const menuItems = [
{
name: "demos",
label: "creative demos",
items: [
{ name: "", label: "designer 01" },
{ name: "designer-2", label: "designer 02" },
{ name: "devloper-1", label: "devloper 01" },
{ name: "devloper-2", label: "devloper 02" },
{ name: "agency-1", labe... |
/**
* Interval scale
* @module echarts/scale/Interval
*/
define(function (require) {
var numberUtil = require('../util/number');
var formatUtil = require('../util/format');
var Scale = require('./Scale');
var mathFloor = Math.floor;
var mathCeil = Math.ceil;
/**
... |
'use strict';
var bitcore = require('bitcore-lib');
var async = require('async');
var TxController = require('./transactions');
var Common = require('./common');
function AddressController(node) {
var self = this;
this.node = node;
this.txController = new TxController(node);
this.common = new Common({log: th... |
export default () => ({
'Австралия': 'AU',
'Австрия': 'AT',
'Азербаиджан': 'AZ',
'Аланды': 'AX',
'Албания': 'AL',
'Алжир': 'DZ',
'Американское Самоа': 'AS',
'Ангилья': 'AI',
'Ангола': 'AO',
'Андорра': 'AD',
'Антарктида': 'AQ',
'Антигуа и Барбуда': 'AG',
'Аргентина': 'AR',
'Армения': 'AM',
... |
export default class Cart {
constructor(CartItems) {
this._items = CartItems;
}
get getItems() {
return this._items
}
addItem(cartItem) {
this._items.push(cartItem);
}
removeItem(cartItem) {
this._items.splice(this._items.indexOf(cartItem, 0), 1);
}
} |
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Events.js
* @requires OpenLayers/Requ... |
/**
* Created by Jhail on 2021/9/14.
*/
const iconsStr =
'microphone,dish,circle-close,menu,more-outline,news,notebook-1,mobile,loading,moon,odometer,first-aid-kit,minus,message-solid,headset,money,map-location,paperclip,close,folder-opened,help,phone,pie-chart,no-smoking,office-building,postcard,position,Ice-cream... |
import * as React from "react";
import Slide from "../../components/slide";
import Terminal from "../../components/terminal";
import SlideTitleComic from "../../components/slide-title-comic";
class TerminalSlide extends React.Component {
render() {
return (
<Terminal id="bash-completion-demo"/>
);
}
... |
// import moduleLog from './module.js';
import('./module.js').then(module=>{
module.log();
}).catch(error =>'An error occurred while loading the module')
import './style.css'
document.write('app.js loaded.'); |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Player Schema
*/
var ArtistGuessSchema = new Schema({
player: {
type: Schema.ObjectId,
ref: 'Player'
},
artist: {
type: String,
default: '',
required : 'Artist guess is required'
}
});
... |
var nlp = require('nlp_compromise');
//NN (noun), VB (verb), JJ (adjective), RB (adverb) and IN (preposition).
const facebook = require('./lib/graph-api');
const travis = require('./lib/travis-api');
// Random response sets
var no_response = ["*scratch my head* :(", "How do I respond to that... :O", "I can be not-so-... |
'use strict';
const path = require('path'),
db = require(path.join(__dirname, '/../../../config/database.js')),
sql = require(path.join(__dirname, '/../../services/sqlService.js'));
exports.getAll = function(req, res){
sql.getAll(req, db, "categories")
.then(function(result){
res.json(result)
})... |
// version: 2016-10-09
/**
* o--------------------------------------------------------------------------------o
* | This file is part of the RGraph package - you can learn more at: |
* | |
* | ... |
var should = require('should');
var fs = require('fs');
var parser = require('../../lib/lifts/parser');
var parse = require('../../lib/lifts/parse')('larosiere');
/*global describe, it */
describe('parse larosiere', function() {
it('should return lift status', function(done) {
var stream = fs.createReadStream(_... |
export const serviceReducer = (state = {}, action) => {
switch (action.type) {
case "servicePage":
return {
...state,
servicePage: action.servicePage
};
default:
return state;
}
};
export default serviceReducer;
|
import AWS from 'aws-sdk';
export const handler = async (event) => {
const bucket = process.env.BUCKET;
const region = process.env.REGION;
const S3 = new AWS.S3({ signatureVersion: 'v4', region });
const file = event.headers && event.headers['x-amz-meta-filekey'] ? event.headers['x-amz-meta-filekey'] : undef... |
import React from 'react';
import ReactDOM from 'react-dom'
import App from './App';
ReactDOM.render(<App />, document.querySelector('#root'));
|
!function(){function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},a={},o=n.parce... |
import CriteriaFactory from 'src/core/factory/criteria.factory';
import template from './sw-settings-payment-detail.html.twig';
import './sw-settings-payment-detail.scss';
const { Component, State, Mixin } = Shopware;
const { warn } = Shopware.Utils.debug;
Component.register('sw-settings-payment-detail', {
templa... |
odoo.define('website_forum.tour_forum_question', function (require) {
'use strict';
var tour = require("web_tour.tour");
tour.register('forum_question', {
test: true,
url: '/forum/help-1',
}, [{
content: "Ask the question in this forum by clicking on the button.",
trigg... |
'use strict'
const AsyncObject = require('@cuties/cutie').AsyncObject;
// Represented result is object
// TODO: fix : ns not found
class ValidatedCollection extends AsyncObject {
constructor(admin, collectionName, options) {
super(admin, collectionName, options || {});
}
definedAsyncCall() {
return (... |
// Code your solution in this file!
const companyName = 'Scuber';
let mostProfitableNeighborhood = "Chelsea"
let companyCeo = "Susan Smith"
|
// Import React
import React from "react";
// Import Spectacle Core tags
import {
BlockQuote,
Cite,
Deck,
Heading,
ListItem,
List,
Quote,
Slide,
Text,
Image
} from "spectacle";
// Import image preloader util
import preloader from "spectacle/lib/utils/preloader";
// Import theme
import createTheme... |
import numpy as np
import pandas as pd
from numbers import Number
from Strategy import Strategy, SmaCross
from utils import read_file, assert_msg, crossover, SMA
class ExchangeAPI:
def __init__(self, data, cash, commission):
assert_msg(0 < cash, "初始现金数量大于0,输入的现金数量:{}".format(cash))
assert_msg(0 <... |
##########################
# --- Day 11: Hex Ed --- #
##########################
import AOCUtils
def distToOrigin(p):
x, y = p
if (x >= 0) == (y >= 0):
return abs(x + y)
else:
return max(abs(x), abs(y))
##########################
path = AOCUtils.loadInput(11).split(",")
# X axis rotated... |
// JavaScript Document
var quiz = {
multiList:
[
{
ques: "<strong>Question 1</strong><br/>… is an example of an economic indicator seen in the Development Indicator Tables.",
ans: "GDP per capita",
ansSel: ["Mortality rate", "Literacy rate", "Life expectancy"] },
{
ques: "<str... |
import { getWindow } from "./util";
import { matches } from "./selector";
export function observe(el, eventSelectors, handler) {
const es = Array.isArray(eventSelectors) ? eventSelectors : [eventSelectors];
const types = [];
const cache = {};
let triggerRequired = false;
es.forEach(o => {
parseEventSele... |
(self.webpackChunkCnblogs_Theme_SimpleMemory=self.webpackChunkCnblogs_Theme_SimpleMemory||[]).push([[3113],{7939:function(e,s,l){"use strict";l.r(s)}}]); |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 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... |
#!/usr/bin/env python
from __future__ import print_function
import sys
sys.path.append('../')
import skimage as skimage
from skimage import transform, color, exposure
from skimage.viewer import ImageViewer
import random
from random import choice
import numpy as np
from collections import deque
import time
import csv
... |
// @flow strict
import type { Node } from 'react';
import styles from './Table.css';
type Props = {|
children: Node,
|};
export default function TableBody(props: Props): Node {
return <tbody className={styles.tbody}>{props.children}</tbody>;
}
|
"use strict";
// TODO This was copied from App Search api client, should probably have a
// specific type just for Search UI
/**
* An individual search result
*/
export default class ResultItem {
constructor(data) {
if (data._group && data._group.length > 0) {
data = {
...data,
_group: d... |
export const getServerSideProps = async () => {
const res = await fetch(`${server}/api/?key=${process.env.API_KEY}`)
const articles = await res.json()
return {
props: {
articles,
},
}
}
|
################################################################################
# The MIT License (MIT)
#
# Author: Matthew Matz
#
# 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 res... |
var _pack_format =
[
[ "Filename Conventions", "_pack_format.html#Filenames", null ],
[ "Pack Schema", "_pack_format.html#PackSchema", null ],
[ "Example of a *.PDSC File", "_pack_format.html#PDSC_Example", null ],
[ "Example of a *.PACK File", "_pack_format.html#PACK_Example", null ],
[ "/package e... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var cors = require('cors')
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var nftRouter = requi... |
require('./bootstrap');
import Vue from 'vue';
import routes from './router/index';
import { HasError, AlertError } from 'vform'
import store from './store/index';
import CxltToastr from 'cxlt-vue2-toastr'
import 'cxlt-vue2-toastr/dist/css/cxlt-vue2-toastr.css'
var toastrConfigs = {
position: 'top right',
sho... |
/**
* Copyright 2019 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Usergroup = mongoose.model('Usergroup');
/**
* Globals
*/
var user, usergroup;
/**
* Unit tests
*/
describe('Usergroup Model Unit Tests:', function() {
beforeEach(funct... |
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import Layout from '../components/Layout'
import Content, { HTMLContent } from '../components/Content'
export const PoojiPageTemplate = ({ title, content, contentComponent }) => {
const PageContent = contentComponent || Con... |
import React, { Component } from "react";
import axios from "axios";
import PortfolioSidebarList from "../portfolio/portfolio-sidebar-list";
import PortfolioForm from "../portfolio/portfolio-form";
export default class PortfolioManager extends Component {
constructor() {
super();
this.state = {
port... |
from __future__ import absolute_import
from __future__ import print_function
from PIL import Image
import autograd.numpy.random as npr
import os
import gzip
import pickle
import struct
import array
import autograd.numpy as np
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import... |
/* eslint-disable max-lines */
/* eslint-disable max-len */
import React from 'react';
import styled from 'styled-components';
import tokens from '../../../../styles/tokens';
const Wrapper = styled.div`
width: 100%;
margin: auto;
padding-bottom: ${tokens.spaces.s};
@media (max-width: 420px) {
width: 60%;
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
#
# PySNMP MIB module X25G-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/X25G-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:35:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... |
# Copyright 2018 The Cirq Developers
#
# 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 in ... |
!function(e){"function"==typeof define&&define.amd?define(["jquery","Views/bower_components/moment/moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("Views/bower_components/moment/moment")):e(jQuery,moment)}(function(e, a){!function(){a.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Ab... |
const { cagColor, cssStyle, css2cag } = require('./helpers')
const { pxPmm } = require('./constants')
const svgCore = function (obj, element) {
if ('ID' in element) { obj.id = element.ID }
if ('position' in element) { obj.position = element.position }
}
const svgPresentation = function (obj, element) {
// prese... |
/**
* Kendo UI v2021.2.511 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
import { render } from "mjml-react";
import allTemplates from "./templates/index";
const template = function (name, config) {
const { html } = render(allTemplates.productSurvey.generate(config), {
validationLevel: "soft",
});
return html;
};
exports.template = template;
|
export default () => 1;
|
/**
* Copyright (c) 2015-present, CWB SAS
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export default class TestsManager {
constructor(services) {
this.services = services;
}
// eslint-disable-next-line class-methods-us... |
const PLUGIN_NAME = 'Blockchain';
const PLUGIN_ACTIONS = {
PRODUCE_NEW_BLOCK_SYNC: 'produceNewBlockSync',
ADD_BLOCK_TO_QUEUE: 'addBlockToQueue',
START_BLOCK_PRODUCTION: 'startBlockProduction',
CREATE_GENESIS_BLOCK: 'createGenesisBlock',
};
module.exports.PLUGIN_NAME = PLUGIN_NAME;
module.exports.PLUGIN_ACTION... |
const pages_config = require('./binary_pages');
const BinaryPjax = require('./binary_pjax');
const Client = require('./client');
const Header = require('./header');
const NetworkMonitor = require('./network_monitor');
const Page = require('./page... |
/*! powerbi-report-authoring v1.0.0 | (c) 2019 Microsoft Corporation MIT */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("powerbi-client")):"function"==typeof define&&define.amd?define(["powerbi-client"],t):"object"==typeof exports?exports["powerbi-report-authoring"]=t(requi... |
/*
* Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... |
import pyodbc as Database
from django.db.backends.base.introspection import (
BaseDatabaseIntrospection, FieldInfo, TableInfo,
)
from django.db.models.indexes import Index
SQL_AUTOFIELD = -777555
SQL_BIGAUTOFIELD = -777444
class DatabaseIntrospection(BaseDatabaseIntrospection):
# Map type codes to Django Fi... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EsPlaylistSearch = void 0;
const tslib_1 = require("tslib");
const Model_1 = require("../../../Model");
const MopConsole_1 = tslib_1.__importDefault(require("../../../../Tools/MopConsole"));
const LogLocation = 'Musics.Proxy.Search.ESP... |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
from project import db
class Stocks(db.Model):
__tablename__ = "stocks"
id = db.Column(db.Integer, primary_key= True, autoincrement=True)
stock_name = db.Column(db.String(128), nullable=False)
opening_price = db.Column(db.String(128), nullable=False)
highest_price = db.Column(db.String(128), null... |
exports.createContentDigest = require(`./create-content-digest`)
exports.joinPath = require(`./path`).joinPath
exports.isNodeInternalModulePath = require(`./path`).isNodeInternalModulePath
exports.slash = require(`./path`).slash
exports.cpuCoreCount = require(`./cpu-core-count`)
exports.urlResolve = require(`./url`).re... |
var searchData=
[
['pid_5finfo_5ftag',['PID_INFO_TAG',['../struct_p_i_d___i_n_f_o___t_a_g.html',1,'']]]
];
|
import glob
import os
from abc import ABC, abstractmethod
import cells.utility as utility
from cells import events
from cells.observation import Observation
from cells.settings import ApplicationInfo, Settings
from PySide2.QtCore import Qt, QUrl
from PySide2.QtGui import QKeySequence
from PySide2.QtWebEngineWidgets im... |
from operator import itemgetter
import matplotlib.pyplot as plt
import networkx as nx
if __name__ == '__main__':
# Create BA model graph
n = 1000
m = 2
G = nx.generators.barabasi_albert_graph(n, m)
node_and_degree = G.degree()
(largest_hub, degree) = sorted(node_and_degree, key=itemgetter(1))[-... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const { Gateway, Wallets } = require('fabric-network');
const path = require('path');
const fs = require('fs');
async function main() {
try {
// load the network configuration
const ccpPath... |
# Jody Bradley
# Import the libraries which we will be using [3] [8]:
import csv
import pandas as pd
from pandas import read_csv
import matplotlib.pyplot as plt
import seaborn as sns
# The first part of this program will output a summary of each variable to a single text file (in CSV format).
# This will give the use... |
var gulp = require('gulp');
var paths = require('../paths');
var typedoc = require('gulp-typedoc');
var runSequence = require('run-sequence');
var through2 = require('through2');
gulp.task('doc-generate', function(){
return gulp.src([paths.output + paths.packageName + '.d.ts', 'lib/validatejs.d.ts'])
.pipe(typed... |
// @flow
import Point from '@mapbox/point-geometry';
import drawCollisionDebug from './draw_collision_debug.js';
import SegmentVector from '../data/segment.js';
import * as symbolProjection from '../symbol/projection.js';
import * as symbolSize from '../symbol/symbol_size.js';
import {mat4} from 'gl-matrix';
const id... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var mongoose_1 = __importDefault(require("mongoose"));
var mongoose_paginate_v2_1 = __importDefault(requ... |
'use strict';
const ingredientsCount = $('table .ingredient-row').length;
let oldAmount = [];
getIngredientAmount();
$(document).ready(function () {
});
$('#update-amount').keypress(
function (event) {
if (event.which === 13) {
event.preventDefault();
}
});
$(`.ingredient-amount input`).change((... |
function Site(config, scope) {
this.config = config;
this.scope = scope;
this.getLocale = function () {
return this.config.locale;
};
this.getConfig = function() {
return this.config;
};
this.getThemeRoot = function() {
return this.config.theme.root;
};
... |
import React from "react";
import Queries from "../queries";
import FilterInput from "../filter-input";
class Filter extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedOrganization: this.props.entities[0].id,
selectedAttribute: "",
selectedOperator: "",
... |
// ==UserScript==
// @name e621: Image Page Adjustments
// @namespace 6930e44863619d3f19806f68f74dbf62
// @match *://e621.net/post/show/*
// @version 2018-03-25
// @downloadURL https://github.com/bipface/userscripts/raw/master/e621-page-adjustments.user.js
// @grant none
// @run-at ... |
from __future__ import print_function
from builtins import str
from builtins import object
from lib.common import helpers
class Module(object):
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Get-SQLQuery',
'Author': ['@_nullbind', '@0xbadjuju'],
'Descr... |
module.exports = function(config) {
config.set({
basePath: process.env['INIT_CWD'],
frameworks: ['mocha', 'chai', 'karma-typescript'],
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
files: [
'./node_modules/@webcomponents/webcomponentsjs/webcomponents-sd-ce.js',
{ pattern: 'dist/*.bundle... |
/**
* Raine's Javascript Extensions
* A library of basic Javascript functions that nobody should be without.
*/
var RJS = (function() {
/***********************************
* Function
***********************************/
var curry = function(f, curriedArgs) {
return function() {
var givenArgs = Array... |
from sopel import plugin, formatting
import requests
@plugin.command("nextmcu")
@plugin.output_prefix("[MCU] ")
def next_mcu(bot, trigger):
"""Info on the next MCU release."""
url = "https://whenisthenextmcufilm.com/api"
try:
r = requests.get(url)
days_until = str(r.json()["days_until"])
... |
CKEDITOR.plugins.setLang("embedbase","en-au",{pathName:"media object",title:"Media Embed",button:"Insert Media Embed",unsupportedUrlGiven:"The specified URL is not supported.",unsupportedUrl:"The URL {url} is not supported by Media Embed.",fetchingFailedGiven:"Failed to fetch content for the given URL.",fetchingFailed... |
// 菜单 侧边栏
export default [
{ path: '/index', title: '首页', icon: 'home' },
{
title: '部门管理',
icon: 'user',
children: [
{ path: '/department/xzq', icon: 'microchip', title: '行政区管理' },
{ path: '/department/role', icon: 'car', title: '角色管理' },
{ path: '/department/user', icon: 'user', title... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{O1Gv:function(e,t,a){"use strict";a.r(t),a.d(t,"_frontmatter",(function(){return m})),a.d(t,"default",(function(){return u}));var n=a("zLVn"),i=(a("q1tI"),a("7ljp")),o=a("Bl7J"),r=a("IP2g"),s=a("wHSu"),c=a("tBDR"),b=a("Bn85"),p=a("/k7T"),m={layout:"about",title:... |
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Fenics(CMakePackage):
"""FEniCS is organized as a collection of interoperable components
... |
class Employee {
constructor(name, id, email) {
this.name = name;
this.id = id;
this.email = email;
this.getName = function () {
return this.name;
};
this.getId = function () {
return this.id;
};
this.getEmail = function () {
return this.email;
};
this.getRol... |
let cardColors;
Meteor.startup(() => {
cardColors = Cards.simpleSchema()._schema.color.allowedValues;
});
BlazeComponent.extendComponent({
onCreated() {
this.subscribe('allRules');
this.cardColorButtonValue = new ReactiveVar('green');
},
cardColorButton() {
return this.cardColorButtonValue.get();
... |
def linear_search(arr, x):
res = -1
for i in range(len(arr)):
if arr[i] == x : res = i
return res
|