text stringlengths 3 1.05M |
|---|
/**
* @author WestLangley / http://github.com/WestLangley
*
*/
import { LineSegmentsGeometry } from "../lines/LineSegmentsGeometry.js";
var LineGeometry = function () {
LineSegmentsGeometry.call( this );
this.type = 'LineGeometry';
};
LineGeometry.prototype = Object.assign( Object.create( LineSegmentsGeomet... |
// 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... |
from setuptools import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name="purestorage",
version="1.18.0",
description="Pure Storage FlashArray REST Client",
keywords=["pure", "storage", "flasharray", "rest", "client"],
url="https://github.com/purestorage... |
exports.config = function () {
return function (cb) {
cb({
flags: {
quiet: {
abbr: 'q'
},
colors: {
negate: true
}
},
options: {
sdk: {
abbr: 's',
default: 'latest'
},
target: null
},
subcommands: {
list: {
noAuth: true
}
},
platforms:... |
import Skeleton from '@material-ui/lab/Skeleton';
export default ({}) => {
return <Skeleton height={417} width="100%" variant="rect" />;
};
|
webpackHotUpdate("app",{
/***/ "./src/helpers/collision-controller.ts":
/*!*********************************************!*\
!*** ./src/helpers/collision-controller.ts ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use st... |
#!/usr/bin/env python
## @package maal_monitor
# monitors CPU and Memory usage on an Android smartphone. Does not require monkeyrunner
# "python maal_monitor.py --help" to see available parameters.
# Imports os and system modules which we need to import Ammo scripts
import os
import sys
import re
# Import the Ammo ... |
import m from 'mithril';
import dropdown from './dropdown';
const filterDropdown = {
view(ctrl, args) {
const wrapper_c = args.wrapper_class || '.w-col.w-col-3.w-col-small-6';
return m(wrapper_c, [
m('label.fontsize-smaller[for="' + args.index + '"]',
(args.custom_label ? ... |
#!/usr/bin/env python3
import math
import random
isodd = lambda x: bool(x&1)
"""lambda: returns True if argument is odd, else False."""
_first30primes = ( 2, 3, 5, 7, 11, 13, 17, 19, 23, 29,
31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
73, 79, 83, 89, 97, 101,103,107,109,113 )... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon( /*#__PURE__*/React.createElement("path", {
d: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"
}), 'FormatAlignLeftSharp'); |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v4/proto/resources/feed_item_target.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf im... |
import React from 'react';
export const themes = {
light: {
name: 'light',
color: 'black',
background: 'white',
},
dark: {
name: 'dark',
color: 'white',
background: 'black',
},
};
//* createContext( defaultValue )
export const ThemeContext = React.createContext(themes.dark);
|
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var RemoveCircle = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.creat... |
"""
Copyright (C) 2017 Intel 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 applicable law or agreed to in writing,
softw... |
import Coupon from './coupon';
export default Coupon;
|
import React from 'react';
import Option from './Option';
const Options = (props) => (
<div>
<div className='widget-header'>
<h3 className='widget-header__title'>Your Options</h3>
<button
className='button--link'
onClick={props.handleDeleteOptions}
>
Remove all
</bu... |
export * from './ToggleButtons'
export * from './Numpad'
export * from './Modal'
export * from './Message'
export * from './FloatingHeader'
export * from './Table'
export * from './Viz'
export * from './Dropdown'
export * from './Navigator'
export * from './MenuBar'
export * from './Pad'
export * from './Form'
export *... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const FileUploadCallToAction = ({ children, className, ...props }) => (
<span
className={classNames('file-cta', {
[className]: Boolean(className)
})}
{...props}
>
{children}
</span>
);
FileU... |
OC.L10N.register(
"federatedfilesharing",
{
"Federated sharing" : "Pembagian terfederasi",
"Do you want to add the remote share {name} from {owner}@{remote}?" : "Apakah Anda ingin menambahkan pembagian remote {name} dari {owner}@{remote}?",
"Remote share" : "Berbagi remote",
"Remote share passwo... |
/*
* ContextMenu - jQuery plugin for right-click context menus
*
* Author: Chris Domigan
* Contributors: Dan G. Switzer, II
* Parts of this plugin are inspired by Joern Zaefferer's Tooltip plugin
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http:/... |
# -*- coding: utf-8 -*-
"""nlp_analytics.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1x_zvmZxrJHddOzNrlVS3zdoTLeYSgyEO
# Purpose
This notebook accompanies the manuscript titled, "Parent Reflections on ABA: Analysis of 5,450 Open-Ended Respons... |
from dataclasses import dataclass
from bindings.csw.parameter_value_type import ParameterValueType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class UsesValue(ParameterValueType):
"""
Composition association to a parameter value used by this coordinate
operation.
"""
class Meta:
... |
/**
* Abstract component containing player information
*/
class Player {
constructor(name) {
this.info = {
name
};
}
/* TODO: track selected slots */
/* TODO: check if win occurs */
}
export default Player; |
import axios from "axios";
export default {
// Gets all books
getBooks: function () {
return axios.get("/api/books/");
// return axios.get("/api/books" + user_id);
},
getBooksWhere: function (user) {
return axios.get("/api/books/findWhere/" + user);
},
// Gets the book with the given id
getBo... |
import firebase from 'firebase'
// Actions
const LOAD_MEMORIES = 'LOAD_MEMORIES'
const ADD_MEMORY = 'ADD_MEMORY'
const UPDATE_MEMORY = 'UPDATE_MEMORY'
const REMOVE_MEMORY = 'REMOVE_MEMORY'
// Action creators
export const loadMemories = (memories) => ({
type: LOAD_MEMORIES,
payload: memories
})
export const addMe... |
var searchData=
[
['wav_0',['WAV',['../struct_w_a_v.html',1,'']]],
['wav_2ehpp_1',['WAV.hpp',['../_w_a_v_8hpp.html',1,'']]],
['wave_2',['WAVE',['../struct_w_a_v.html#a3ce426e562010294c8e32546813d0da9',1,'WAV']]],
['weight_3',['weight',['../struct_model.html#a10f84a79cb6dea5f81b80eaade45d003',1,'Model']]],
['w... |
const { logs } = require("../../../helpers/logs-helper");
const { help } = require("../../help");
const debug = require("debug")("config:show-help");
// ----------------------------------------------------------------------------- PATHS / CONFIG
// target local path files
const paths = require("../../../global.paths"... |
import React from 'react';
import ReactDOM from 'react-dom';
import Todo from './Todo';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<Todo />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load faster, you can chan... |
/**
* Created by xc- on 16.10.2016.
*/
const mongoose = require('mongoose');
const tokenSchema = mongoose.Schema({
token: {
type: String, unique: true, required: true
},
userId: {
type: String, required: true
},
createdAt: {
type: Date, expires: 60*60, default: Date.now()
}
});
module.export... |
from __future__ import print_function
from getpass import getpass
import os
import re
import sys
if sys.version_info < (3,):
# Python 2
input = raw_input
from .. import marketclient
from .. import spk
def marketCommand(token=None):
if not token:
print('Please enter your Sony Entertainment Network credentials\n'... |
const assert = require('assert')
const { once } = require('events')
module.exports = () => async (bot) => {
bot.test.sayEverywhere('/weather clear')
await bot.test.wait(1000)
bot.test.sayEverywhere('/weather rain')
await once(bot, 'rain')
assert.strictEqual(bot.isRaining, true)
bot.test.sayEverywhere('/we... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1170:function(module,exports){var hasElementType="undefined"!=typeof Element,hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==t... |
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "20.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "11931 Miwok Ct", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME... |
import React, { PropTypes } from 'react';
import styles from './NotificationSettings.css';
import Input from '../../Input';
import SettingsBlock from '../SettingsBlock';
import {SubBlock} from '../SettingsBlock';
import withStyles from '../../../decorators/withStyles';
import classnames from 'classnames';
import Switch... |
var should = require('should');
var NewThresholds = require('../../../../../lib/jobs/job/publishers/warnings/new-thresholds.js');
var testlib = require('../../../../testlib.js');
var NewThreshold = require('../../../../../lib/jobs/job/publishers/warnings/new-threshold.js');
describe('NewThresholds', function() {
des... |
import { useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import { Grid, Typography } from "@material-ui/core";
import { fetchItems, setButton } from "../redux/actions/itemActions";
import Cars from "./Cars";
const Card = () => {
const btn = useSelector((state) => state.buttonText.bu... |
import unittest
import os
from rooms.scriptset import ScriptSet
from rooms.script import NullScript
from rooms.testutils import MockActor
class ScriptSetTest(unittest.TestCase):
def setUp(self):
self.scriptset = ScriptSet()
self.actor = MockActor()
def testLoadScriptsFromPath(self):
... |
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def levelOrderBottom(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
... |
var gulp = require('gulp'),
less = require('gulp-less'),
rename = require('gulp-rename'),
watch = require('gulp-watch'),
del = require('del'),
path = require('path');
gulp.task('less', function() {
return gulp.src('less/*.less')
.pipe(less({
paths: [path.join(__dirname, 'les... |
from datetime import date
from django.test import TestCase
from textwrap import dedent
from unittest.mock import MagicMock
from recipients.factories import GroceryRequestFactory
class GroceryRequestTextTests(TestCase):
def setUp(self):
self.api = MagicMock()
self.request = GroceryRequestFactory(
... |
import apiKeys from './apiKeys'
const contentfulConfig = {
spaceId: apiKeys.spaceId,
accessToken: apiKeys.accessToken
}
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`,
},
},... |
/*global defineSuite*/
defineSuite([
'Core/BoundingSphere',
'Core/BoxGeometry',
'Core/Cartesian2',
'Core/Cartesian3',
'Core/CircleGeometry',
'Core/Color',
'Core/ColorGeometryInstanceAttribute',
'Core/ComponentDatatype',
'Core/CornerType',
'... |
# 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, software
# dist... |
const express = require('express')
//auth
const bcrypt = require('bcryptjs')
const createToken = require('../utils/createToken')
//middleware
const restricted = require('../utils/restricted-middleware')
const validateUser = require('../utils/validateUser-middleware')
//dataBase
const usersModel = require('./users-mo... |
'use strict';
const GAME_WIDTH = 1600;
const GAME_HEIGHT = 900;
const BACKGROUND_COLOR = '#dbd2ba';
const LINE_DISTANCE = 50;
const PATH_SIZE = 75;
const PATH_INSIDE_COLOR = '#bda562';
const PATH_STROKE_COLOR = '#8f7328';
const SIMULATION_RATE = 60;
const FAST_ENEMY_COLOR = '#19d4ab';
const BASIC_ENEMY_COLOR = '#2d2e2... |
coordinates_E0E1E1 = ((127, 85),
(127, 86), (127, 101), (127, 129), (128, 82), (128, 84), (128, 87), (128, 101), (128, 102), (128, 128), (128, 129), (128, 140), (128, 141), (129, 82), (129, 85), (129, 86), (129, 88), (129, 101), (129, 102), (129, 127), (129, 129), (129, 139), (130, 82), (130, 84), (130, 85), (130, 86... |
'use strict'
var getHooks = require('../../lib/github/gethooks')
var removeHook = require('../../lib/github/removehook')
module.exports = exports = function (config) {
return getHooks(config)
.then((hooks) => {
return Promise.all(hooks.filter((item) => {
if (item.config.url === config.callbackURL ... |
## System states
## state can change to next state in 2 ways:
## - a process emits a GotoSystemState signal with state name to goto
## - objects specified in EXIT_STATE_DEPEND have started
SYSTEM_STATES = [
'BASE_APPS',
'BMC_STARTING',
'BMC_STARTING2',
'BMC_READY',
'HOST_POWERING_ON',
'HOST_POWERED_ON',
'I... |
/*
* AppConstants
* Each action has a corresponding type, which the reducer knows and picks up on.
* To avoid weird typos between the reducer and the actions, we save them as
* constants here. We prefix them with 'yourproject/YourComponent' so we avoid
* reducers accidentally picking up actions they shouldn't.
*
... |
import os
import time
import pandas as pd
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from priceParsing.baseParse... |
//! moment.js locale configuration
//! locale : English (Australia) [en-au]
//! author : Jared Morse : https://github.com/jarcoal
import moment from '../moment';
export default moment.defineLocale('en-au', {
months:
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
... |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .config import CfgNode as CN
# -----------------------------------------------------------------------------
# Convention about Training / Test specific parameters
# -----------------------------------------------------------------------------... |
var eventStream = require('event-stream'),
path = require('path'),
gutil = require('gulp-util'),
PluginError = gutil.PluginError,
KarmaServer = require('karma').Server;
// Consts
var PLUGIN_NAME = 'gulp-karma';
// Plugin level function (dealing with files)
function gulpKarma(options) {
... |
import {
compareVersion, i18n, getFullUrl, isRemote, sendCmd, trueJoin,
} from '#/common';
import {
CMD_SCRIPT_ADD, CMD_SCRIPT_UPDATE, INJECT_PAGE, INJECT_AUTO, TIMEOUT_WEEK,
} from '#/common/consts';
import { forEachEntry, forEachKey, forEachValue } from '#/common/object';
import storage from '#/common/storage';
i... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modu... |
import Guid from '../../core/guid';
import { each } from '../../core/utils/iterator';
import { extend } from '../../core/utils/extend';
import { isString } from '../../core/utils/type';
export default class FormItemsRunTimeInfo {
constructor() {
this._map = {};
}
_findWidgetInstance(condition) {
... |
from .iou import IoULoss
from .dice import DiceLoss
from .focal import FocalLoss
from .crossentropy import CrossEntropyLoss
from .compound import get_criterion_and_ratio, loss_help_msg, get_criterion |
# -*- coding: utf-8 -*-
"""
The command "show" can be used to delete task from the Done!Tools store.
An example of its use would be
$ doto del 10
"""
import doto.cli.cmd
import doto.cli.printing
COMMAND = "show"
CONF_DEF = {}
def init_parser(subparsers):
""" Initialize the subparser. """
parser = subpa... |
import os, random, string, asyncio
from gtts import gTTS
import discord
class say_command():
def __init__(self):
super().__init__("say")
async def exec_cmd(self, **kwargs):
if len(self.args) > 1:
players = kwargs['players']
player = players[self.server.id]
... |
const wait = require('./wait');
module.exports = async (data, reply) => {
let output = '';
const title = data[0];
for(let i = 1; i < data.length ; i++) { /*Statewide list of all states of India*/
for(let j = 0; j < data[i].length; j++) {
output += `${title[j]}: <b>${data[i][j]}</b> \n\... |
import pyrr
from math import radians
class Camera:
__slots__ = "_ProjectionMatrix", "_ViewMatrix", "_ViewProjectionMatrix", \
"_Position", "_Rotation", \
"_AspectRatio"
def __init__(self, view: pyrr.Matrix44, projection: pyrr.Matrix44) -> None:
self._ViewMatrix = view
self._Pro... |
import axios from 'axios'
// import loading from '../utils/loading'
// import {message} from 'antd'
const axiosRequest = axios.create()
// const getUrl = (url, mock) => {
// return mock ? `/${url}` : `/api/${url}`
// }
// let reqQueue = 0
// axiosRequest.interceptors.request.use(config => {
// if (config['loadi... |
# BSD 3-Clause License
#
# Copyright (c) 2021., Redis Labs Modules
# All rights reserved.
#
import datetime
import logging
import time
import boto3
import redis
from redistimeseries.client import Client
from redisbench_admin.run.common import get_start_time_vars
from redisbench_admin.utils.remote import (
ch... |
#!/usr/bin/env python
#Solves the Praetorian challenge "Mastermind" and outputs my hash into hash.txt
import requests, json, sys, itertools, random
import numpy as np
__author__ = 'Gerrit Bryan'
__licence__ = 'MIT'
email = 'polenz.gerrit@gmail.com'
__email__ = email
#VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV... |
#!/usr/bin/env python
__copyright__ = "Copyright 2013-2014, http://radical.rutgers.edu"
__license__ = "MIT"
import os
import sys
import time
import radical.pilot as rp
# READ: The RADICAL-Pilot documentation:
# https://radicalpilot.readthedocs.io/en/stable/
#
# Try running this example with RADICAL_PILOT_VERBOS... |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","path":[{"d":"M56.63 62.11a7.39 7.39 0 01-7.42-7.22 7.27 7.27 0 017.42-7.22 7.22 7.22 0 110... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as NoteActions from '../actions/NoteActions';
import ToolBar from '../components/ToolBar';
class ToolBarContainer extends Component {
render() {
return this.props.note... |
#!/usr/bin/env python3
"""
Example collector script for NetFlow v9.
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
Copyright 2017-2019 Dominik Pataky <dev@bitkeks.eu>
Licensed under MIT License. See LICENSE.
"""
import logging
import argparse
import sys
import socketserver
import time
i... |
import Form from './Form'
import Item from './Item'
import './style/index'
Form.Item = Item
export default Form
|
export * from './getAvailablePort'
export * from './fetchData'
|
'use strict';
// Functions
const create_fn = require('./lib/create');
const templates_fn = require('./lib/templates');
class Plugin {
constructor() {
Object.assign(
this,
create_fn,
templates_fn);
}
/**
* Get all the commands available for this plugin.
... |
/**
* @license
* Copyright 2018 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.INTERFACE({
package: 'foam.core',
name: 'Validatable',
documentation: `
A model should implement this interface if it is validatable, meaning it is
possible for some of its pro... |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... |
var searchData=
[
['main_0',['main',['../main_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4',1,'main.c']]],
['main_2ec_1',['main.c',['../main_8c.html',1,'']]],
['manage_5fappointment_2',['manage_appointment',['../appointment_8c.html#ac21af144585cd79486ff8fc05bed1ea4',1,'appointment.c']]],
['modify_5frecord_3',['mod... |
(function(){"use strict";var e={9219:function(e,t,s){s.d(t,{L:function(){return is}});s(7727);var n=s(8061),o=s(6252),a=s(6612),r=s(9574);const i={class:"mb-2"},l={class:"flex flex-wrap"},g={class:"w-3/4 text-left my-auto"},d={class:"text-3xl xl:text-5xl lg:text-4xl font-light"},h={class:"w-1/4 flex justify-end"},u=["h... |
const plPL = {
daysWeek: ["Pon", "Wt", "Śr", "Czw", "Pt", "Sob", "Nd"],
months: [
"Styczeń",
"Luty",
"Marzec",
"Kwiecień",
"Maj",
"Czerwiec",
"Lipiec",
"Sierpień",
"Wrzesień",
"Październik",
"Listopad",
"Grudzień"
]
};
export default plPL;
|
// codeburst.io/throttling-and-debouncing-in-javascript-646d076d0a44
const throttled = (delay, fn) => {
let lastCall = 0;
return function(...args) {
const now = new Date().getTime();
if (now - lastCall < delay) {
return;
}
lastCall = now;
return fn(...args);
... |
import WFRP_Utility from "../system/utility-wfrp4e.js";
import ChatWFRP from "../system/chat-wfrp4e.js";
import OpposedWFRP from "../system/opposed-wfrp4e.js";
import WFRP_Audio from "../system/audio-wfrp4e.js";
import RollDialog from "../apps/roll-dialog.js";
import EffectWfrp4e from "../system/effect-wfrp4e.js"
/**... |
import { connect } from 'react-redux';
import PictureDetail from '../components/PictureDetail';
const mapStateToProps = ({pictureSRC}) => {
return {
pictureSRC
};
}
export default connect(mapStateToProps)(PictureDetail); |
(function() {
'use strict';
angular
.module('minotaur')
.directive('ngMixitup', ngMixitup);
/** @ngInject */
function ngMixitup($timeout) {
var directive = {
restrict: 'EA',
link: function(scope, element, attrs){
/* eslint-disable */
var options;
if (attrs.ngMix... |
const Stripe = require('stripe');
const app = require('../index');
const models = app.set('models');
const slackLib = require('../app/lib/slack');
const done = (err) => {
if (err) console.log('err', err);
console.log('done!');
process.exit();
}
var message = [];
models.Transaction.findAll({
include: [
{... |
function c3_submitIt(){var e=document.c3_taskFrm;if(e.task_name.value.length<2)return alert("please input your task name"),e.task_name.focus(),!1;var t="";return t.length<1?(client&&client.send("/queue/hook_event_queue",{"reply-to":"/temp-queue/foo","c3-user":username,"c3-md5":usermd5,"c3-type":"request_task","c3-forma... |
"""
The Arcade Library
A Python simple, easy to use module for creating 2D games.
"""
# Note: DO NOT EDIT arcade/__init__.py
# Instead look at util/init_template.py and update_init.py
# Error out if we import Arcade with an incompatible version of Python.
import platform
import sys
import os
from pathlib import Pat... |
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const repositorySchema = new Schema({
name: String,
icon: String
})
module.exports = mongoose.model('Repository', repositorySchema) |
'use strict';
const path = require("path");
const glob = require("glob");
const ini = require('ini');
const fs = require('fs');
let cache;
module.exports = function()
{
if (cache) return cache;
let ret = [];
glob.sync('vendor/*/*/dependencies.ini').forEach(i => {
let dependencies = fs.readFileSync... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{
/***/ "./node_modules/@ionic/core/dist/esm-es5/focus-visible-70161a50.js":
/*!*************************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm-es5/focus-visible-70161a50.js ***!
\***************... |
"""
This module defines in-memory storage for WindowManager's
"""
import time
from typing import MutableMapping, Optional
from throttled.models import Hit, Rate
from throttled.storage import BaseStorage
from throttled.storage._abstract import _HitsWindow, _WindowRepository
from throttled.storage._duration import DUR... |
// items
export const GET_ITEMS = 'GET_ITEMS';
export const ADD_ITEM = 'ADD_ITEM';
export const DELETE_ITEM = 'DELETE_ITEM';
export const ITEMS_LOADING = "ITEMS_LOADING";
// auth
export const USER_LOADING = "USER_LOADING";
export const USER_LOADED = "USER_LOADED";
export const AUTH_ERROR = "AUTH_ERROR";
export const L... |
"""
WSGI config for sympose project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... |
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import vuetify from "./plugins/vuetify";
import VuePageTransition from 'vue-page-transition'
import { apolloProvider } from '@/services'
import VueSweetalert2 from 'vue-sweetalert2';
import VueTimeago from 'v... |
module.exports={"aac":require("./features/aac"),"ac3-ec3":require("./features/ac3-ec3"),"addeventlistener":require("./features/addeventlistener"),"alternate-stylesheet":require("./features/alternate-stylesheet"),"ambient-light":require("./features/ambient-light"),"apng":require("./features/apng"),"arrow-functions":requ... |
(function(){"use strict";BX.namespace("BX.Main.ui.block");BX.Main.ui.block["number-group"]=function(t){var n,e,i,a,l;n={block:"main-ui-control-field-group",name:"name"in t?t.name+"_numsel":"",mix:"mix"in t?t.mix:null,attrs:{"data-type":"type"in t?t.type:"","data-name":"name"in t?t.name:""},content:[]};if("label"in t&&B... |
/*! Magnific Popup - v0.9.1 - 2013-07-04
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2013 Dmitry Semenov; */
(function(e){var t,i,n,o,a,r,s,l="Close",c="BeforeClose",d="AfterClose",u="BeforeAppend",p="MarkupParse",f="Open",m="Change",g="mfp",v="."+g,h="mfp-ready",C="mfp-removing",y="mfp-prevent-clos... |
import os
import sys
import numpy as np
from PIL import Image
from tqdm import tqdm
from os.path import join as pjoin
# import config
class PreProcess:
def __init__(self):
# BRATS DATASET LOADING SETTINGS
self.dataset_dir = '/run/media/lzhmark/shared/boe-screen/selected'
self.images_dir ... |
"use strict";
const { defaults: tsJestPreset } = require("ts-jest/presets");
module.exports = {
preset: "jest-puppeteer",
transform: {
...tsJestPreset.transform
}
};
|
nDigitado = int(input('Digite um número: '))
contagem = int(0)
for x in range(1, nDigitado + 1):
if nDigitado % x == 0:
print('\033[33m', end='')
contagem += 1
else:
print('\033[31m', end='')
print('{} '.format(x), end='')
print('\n\033[mO número {} foi divisível {} vezes'.format(nD... |
import FilesContainer from './Files.container';
export default FilesContainer;
|
import './app_switcher';
import './global_nav_link';
import globalNavTemplate from './global_nav.html';
import './global_nav.less';
import uiModules from 'ui/modules';
const module = uiModules.get('kibana');
module.directive('globalNav', globalNavState => {
return {
restrict: 'E',
replace: true,
scope... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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 _utilities
fro... |
'use strict';
var _ = require('lodash');
var base = {
app: {
port: process.env.PORT || 8080,
env: process.env.NODE_ENV || 'development',
},
auth0: {
userinfoUrl: 'https://gbptm.eu.auth0.com/userinfo',
},
mapit: {
apiKey: process.env.MAPIT_API_KEY,
endpoint: 'http://mapit.mysociety.org/po... |