text stringlengths 3 1.05M |
|---|
#
# Copyright 2019 XEBIALABS
#
# 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, distribute, subli... |
import api from '../../core/api'
import conf from '../../core/conf'
export default {
strict: true,
namespaced: true,
state: {
rooms: []
},
getters: {
getRooms: state => state.rooms
},
actions: {
loadRooms({commit}) {
return new Promise((resolve, reject) => {
api.get(conf.server.... |
# Author: Jayden Navarro
# Date: 10/14/2015
def boundsCheck1(func):
def wrapper(*args, **kwargs):
if (args[0] >= 0 and args[0] <= 100):
func(*args, **kwargs)
else:
print("%d out of range." % args[0])
return wrapper
def boundsCheck2(func):
def wrapper(*args, **kwargs):
if (... |
const repository = require('../repositories/sqlRepositories/storeRepository')
class StoreService {
async save(category){
let cat = await repository.save(category)
return cat
}
async update(category){
let updated = await repository.update(category)
return updated... |
import board
import busio
import adafruit_ssd1306
# Create the I2C interface.
i2c = busio.I2C(board.SCL, board.SDA)
# Create the SSD1306 OLED class.
# The first two parameters are the pixel width and pixel height. Change these
# to the right size for your display!
oled = adafruit_ssd1306.SSD1306_I2C(128, 3... |
const path = require('path');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const TerserPlugin = require('terser-webpack-plugin');
const svgToMiniDataURI = require('mini-svg-data-uri');
const combineMediaQuery = require('p... |
const Sequelize = require('sequelize');
// 물건 데이터 베이스
module.exports = class Good extends Sequelize.Model {
static init(sequelize) {
return super.init({
name: {
type: Sequelize.STRING(40),
allowNull: false,
},
img: {
type: ... |
from aiohttp.web import View
import aiohttp_jinja2
class Handler(View):
async def get(self):
context = {
'title': 'Simple aiohttp Mapbox Vector Tiles server',
'colors': []
}
response = await aiohttp_jinja2.render_template_async(
'index.html',
... |
this.NesDb = this.NesDb || {};
NesDb[ '60814331AE3BF1CFF00D96AA41FF8BCC94D3C574' ] = {
"$": {
"name": "Mirai Shinwa Jarvas",
"altname": "未来神話ジャーヴァス",
"class": "Licensed",
"subclass": "3rd-Party",
"catalog": "TFC-MJ-5500-11",
"publisher": "Taito",
"developer": "Taito",
"region": "Japan",
"players": "... |
#!/usr/bin/python
#
# Copyright 2013 Google Inc. 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 b... |
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { withStyles } from '@material-ui/core/styles';
import Divider from '@material-ui/core/Divider';
import Drawer from '@material-ui/core/Drawer';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/cor... |
(function(){var e={"esri/views/layers/support/ClipArea":176,"esri/tasks/support/FeatureSet":187,"esri/views/layers/support/ClipRect":209,"esri/views/2d/layers/LayerView2D":219,"esri/views/layers/support/Geometry":220,"esri/views/layers/support/Path":221,"esri/layers/support/kmlUtils":839,"esri/views/2d/layers/KMLLayerV... |
const expect = require("chai").expect;
describe("SANITY CHECKS", () => {
describe("Chai integration", () => {
it("chai can run a test from a file in the test folder", () => {
expect(true).to.be.ok;
});
});
});
|
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distribu... |
import makeStyles from '@material-ui/core/styles/makeStyles';
import flexyTagStyles from './flexyTag.styles';
const useFlexyTagStyles = makeStyles(flexyTagStyles);
export { flexyTagStyles, useFlexyTagStyles };
export { default } from './flexyTag.styles';
|
from sys import argv
from os.path import splitext
from lxml import etree
from struct import pack
def main():
print(argv)
gpx = argv[1]
"""
bryton:
1: go ahead
2: right
3: left
4: slight right
5: slight left
6: close right
7: close left
... |
import {
runPipeline,
createStore,
createRouter,
createRenderer,
createPipeline
} from '@concave/concave'
import * as todoPipe from './pipelines/todo'
const appStore = createStore((state, action, dispatch) => {
switch (
action.type
// ...dispatch state here with new state
) {
}
return action
}... |
import json
import os
import logging
from facilities.models import Facility
from django.core.management import BaseCommand
from django.conf import settings
logger = logging.getLogger(__name__)
class Command(BaseCommand):
def handle(self, *args, **options):
file_path = os.path.join(
settin... |
/**
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*/
import ChartInternal from "../internals/ChartInternal";
import {extend, getMinMax, isFunction, isNumber, isObject} from "../internals/util";
extend(ChartInternal.prototype, {
/**
* Initializer
* @private
... |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<4cb04b73cec166a3bf84295327c83863>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disabl... |
import React from "react";
import Dashboard from "../../components/dashboard/Dashboard";
import { Helmet } from "react-helmet";
export default function DashboardPages() {
return (
<>
<Helmet>
<title>Dashboard | DogeHouse</title>
<meta name="og:title" content="Dashboard" />
</Helmet>
... |
'use strict'
let config = {
irc: {
nickname: 'luminode',
username: 'Lumino',
realname: 'Lumino Display',
nickservPass: 'dummrumleuchte',
host: 'chat.freenode.com',
port: 6697,
ssl: true,
acceptInvalidSSL: true,
commandPrefix: '.lumino',
... |
const path = require('path')
/**
* See:
* - https://github.com/xdissent/karma-chai
* - https://github.com/kmees/karma-sinon-chai
* - https://github.com/karma-runner/karma-chrome-launcher
* - https://github.com/karma-runner/karma-mocha
* - https://github.com/litixsoft/karma-mocha-reporter
* - https://github.com/... |
(window.webpackJsonpphonebook=window.webpackJsonpphonebook||[]).push([[0],{15:function(e,t,n){e.exports=n(38)},20:function(e,t,n){},38:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(13),c=n.n(o),u=(n(20),n(2)),l=n(3),i=n.n(l),s="".concat("/","api/persons"),f=function(){return i.a.get(s).then(function(e){re... |
module.exports = {
//menu
'menu.import': 'Nhập',
'menu.add': 'Thêm',
'menu.edit': 'Sửa',
'menu.view': 'Xem',
'menu.dashboard': 'Bảng Điều Khiển',
'menu.master-data': 'Dữ Liệu Chung',
'menu.status': 'Trạng Thái',
'menu.customer': 'Khách Hàng',
'menu.address': 'Địa Chỉ',
'menu.address_code': 'Mã Địa... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var Template = require("../Template");
function NodeMainTemplatePlugin(asyncChunkLoading) {
this.asyncChunkLoading = asyncChunkLoading;
}
module.exports = NodeMainTemplatePlugin;
NodeMainTemplatePlugin.protot... |
require('./config');
module.exports = require('./Pulchra');
|
import gi
import logging
import Utils
import time
gi.require_version('Gst', '1.0')
from gi.repository import Gst
from gst_element_names import GstElementNames
from MediaPlayer import MediaPlayer
class ClockMediaPlayer(object):
def __init__(self, fileLocationArray):
self.mediaPlayers = []
for file... |
var searchData=
[
['xpress_5flinear_5fprogramming_43264',['XPRESS_LINEAR_PROGRAMMING',['../classoperations__research_1_1_p_r_o_t_o_b_u_f___f_i_n_a_l.html#a9b02a58930a9ee4f3c281fb8db6946b6',1,'operations_research::PROTOBUF_FINAL']]],
['xpress_5fmixed_5finteger_5fprogramming_43265',['XPRESS_MIXED_INTEGER_PROGRAMMING'... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const { Gateway, Wallets } = require('fabric-network');
const fs = require('fs');
const path = require('path');
async function main(userId, from, to, amount) {
try {
// load the network configurati... |
# coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 9
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from isi_sdk_8_2_2.models.perform... |
import React, { useState } from 'react'
import { Link } from 'gatsby'
import classnames from 'classnames'
import {
TabletDisclosure,
TabletDisclosureHeader,
TabletDisclosureContent,
} from '~components/common/tablet-disclosure'
import stateNavStyle from './state-nav.module.scss'
const StateNav = ({ stateList, cl... |
const mongoose = require('mongoose');
let db;
module.exports = function Connection() {
if(!db){
mongoose.connect('mongodb://davidgonzalezfx:mlab123@ds251948.mlab.com:51948/todoapp');
db = mongoose.connection;
return db;
}
else {
return db;
}
} |
import System.Windows.Forms
import System.Drawing
import System
from System.Windows.Forms import *
from System.Drawing import *
from System import *
def Onclick(sender ,e):
global state
if state == 1:
Arduino.SetPin(int(Properties["Pin"]),1);
state = 0
Btn.Text = "ON"
return
if state == 0:
Arduino.SetP... |
import copy
import logging
import random
from examples.PolicyGradient.OneVarParabolicState import OneVarParabolicState
from reflrn.Interface.Agent import Agent
from reflrn.Interface.Environment import Environment
from reflrn.Interface.State import State
class OneVarParabolicEnv(Environment):
min_x = -10
max_... |
import numpy as np
import gzip
import pickle
import matplotlib.pyplot as plt
def load_data():
np.random.seed(1990)
print("Loading MNIST data .....")
# Load the MNIST dataset
with gzip.open('Data/mnist.pkl.gz', 'r') as f:
# u = pickle._Unpickler(f)
# u.encoding = 'latin1'
# tra... |
exports.getAll = (client, message) => {
return new Promise((resolve, reject) => {
client.database.get('SELECT * FROM settings WHERE guildid = ?', [message.guild.id]).then(row => {
resolve(row)
})
})
}
exports.get = (client, message, field) => {
return new Promise((resolve, reject) => {
client.d... |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var iconPropTypes = require('./iconPropTypes-379308c1.js');
va... |
import scrapy
from scrapy_splash import SplashRequest
class PostSpiderV2(scrapy.Spider):
name = 'postsv2'
def start_requests(self):
urls = [
'https://www.gulftalent.com/uae/jobs'
]
for url in urls:
# yield scrapy.Request(url=url, callback=self.parse)
... |
import React from "react"
const ProgressBar = ({ color, percentage }) => {
return (
<div className="slider__progress">
<div style={{ width: `${percentage}%`, backgroundColor: color }}></div>
</div>
)
}
export default ProgressBar
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],Array(187).concat([function(t,e,n){var r=n(195),o=n(224);t.exports=function(t){return function e(n,a){switch(arguments.length){case 0:return e;case 1:return o(n)?e:r(function(e){return t(n,e)});default:return o(n)&&o(a)?e:o(n)?r(function(e){return t(e,a)}):o(a)?r(... |
# Configuration file for the Sphinx documentation builder.
# sphinx-build -b html . bulid
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup ------------------------------------------... |
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class PromotionCode(
CreateableAPIResource,
ListableAP... |
class NumArray(object):
def __init__(self, nums):
"""
:type nums: List[int]
"""
self.nums = nums
self.cache = {}
def sumRange(self, i, j):
"""
:type i: int
:type j: int
:rtype: int
"""
if (i, j,) not in self.cache:
... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
# test end to end benchmark data test
import argparse
import os
import cv2
# import PIL
import matplotlib.pyplot as plt
import numpy as np
import torch
# import torch.nn as nn
import torch.nn.functional as F
from models import get_model
# from utils import convert_state_dict
device = torch.device('cuda' if torch.cud... |
/**
* Copyright 2009 Google 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 agree... |
# Copyright 2017 British Broadcasting 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 a... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var pluginVue_exportHelper = require('./_virtual/plugin-vue_export-helper.js');
const _sfc_main = vue.defineComponent({
name: "Notebook"
});
const _hoisted_1 = {
viewBox: "0 0 1024 1024",
xmlns: "http://www.w... |
import App from './app'
window.onload = () => {
new App()
} |
/**
*
* Reldens - SceneAudioPlayer.
*
*/
const { AudioConst } = require('../constants');
const { Logger, sc } = require('@reldens/utils');
class SceneAudioPlayer
{
playSceneAudio(audioManager, sceneDynamic, forcePlay)
{
let sceneAudio = sceneDynamic['associatedAudio'];
if(
for... |
Clazz.declarePackage ("JU");
c$ = Clazz.declareType (JU, "DebugJS");
c$._ = Clazz.defineMethod (c$, "_",
function (msg) {
{
if (Clazz._debugging) {
debugger;
}
}}, "~S");
|
var Class = require("../core/class"),
abstract = Class.abstract,
EventsStrategy = require("../core/events_strategy").EventsStrategy,
each = require("../core/utils/iterator").each,
errorsModule = require("./errors"),
dataUtils = require("./utils"),
compileGetter = require("../core/utils/data").co... |
import * as React from 'react'
import { Link } from 'gatsby'
import { container, nav, navLinks, navLinkItem, navLinkText } from './layout.module.css'
const Layout = ({ pageTitle, children }) => {
return (
<div className={container}>
<title>{pageTitle}</title>
<nav className={nav}>
<ul classNa... |
/* eslint-env browser */
import usage from './nav-button.usage.js';
export default function(host) {
host.view.define('nav-button', function(el, config, data, context) {
const { name, content, disabled = false, onClick } = config;
const { text = '', href, external } = data || {};
if (name) ... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chai';
import {MrApp} from './mr-app.js';
let element;
window.CS_env = {
token: 'foo-token',
};
describe('mr-app', () => {
b... |
'use strict';
const boom = require('boom');
const schema = require('screwdriver-data-schema');
const validator = require('screwdriver-template-validator');
const templateSchema = schema.api.templateValidator;
const hoek = require('hoek');
const urlLib = require('url');
module.exports = () => ({
method: 'POST',
... |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import {escapeStrForRegex} from 'jest-regex-util';
import normalize from '../normalize';
jest.mock('jest-resolv... |
import React from 'react';
import ContentReleaseManagerCmp from './ContentReleaseManagerCmp';
import {Store} from './store';
const App = () => {
return (
<Store>
<ContentReleaseManagerCmp/>
</Store>
);
};
export default App;
|
import React, {useCallback} from "react";
import {
Button,
ModalHeader,
ModalBody,
ModalFooter,
} from "@windmill/react-ui";
import Modal from './Modal'
const ConfirmationModal = ({
title = undefined,
body = undefined,
callback,
isModalOpen,
setIsModalOpen,
}) => {
const submitForm = useCallback((... |
const express = require('express');
const router = express.Router();
// A library to help you hash passwords
const bcrypt = require('bcryptjs');
// Verify and generate JWT
const jwt = require('jsonwebtoken');
// Model
const User = require('../models/User');
/* GET home page. */
router.get('/', (req, res, next) => {... |
var b3 = require('FSM/core/b3');
var Condition = require('FSM/core/condition');
var utils = require('utils/utils');
var statsManager = require('FSM/statsManager')
var dblogger = require('utils/dblogger');
class DailyQuotaCondition extends Condition {
constructor(settings) {
super();
this.title = this.name =... |
const express = require("express");
const http = require("http");
const socketIo = require("socket.io");
const formatMessage = require('./messages');
const { addUser, removeUser, getUser, getUsersInRoom } = require ("./users.js");
const PORT = process.env.PORT || 3001;
//Utilizziamo il file nella cartella routes
con... |
from manimlib.imports import *
class Dense(Scene):
def construct(self):
# text_01 = TextMobject(
# r"\begin{verbatim}tf.keras.layers.Dense()\end{verbatim}"
# ).scale(1.5)
# self.play(Write(text_01))
mat_1 = Matrix([[1, 2], [3, 4]])
self.play(Write(mat_1))
... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
"""
# Three Laws of Test Driven Development
- You are not allowed to write any production code unless it is to make a failing unit test pass.
- You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
- You are not allowed to write any more production code ... |
# Fix imports and prevent formatting
import sys # nopep8
from os.path import dirname, join, abspath # nopep8
sys.path.insert(0, abspath(join(dirname(__file__), '..'))) # nopep8
import os
import torch
from torchvision import transforms, datasets
import wandb
from emotion_classifier.emotion_classifier import Emotion... |
'use strict';
let http = require("http");
let fs = require("fs");
import Base from './base.js';
export default class extends Base {
// 注册页面
async indexAction(){
let uinfo=await this.session('uInfo');
if(!think.isEmpty(uinfo)){
//已注册并登录
return this.redirect('/personal/@'+uinfo.name)... |
import os
try:
import pwd
except ImportError:
pwd = None
import sys
import unittest
from common import linesep, platform_skip, TestCase
import pyuv
class ProcessTest(TestCase):
def test_process_basic(self):
self.exit_cb_called = 0
self.close_cb_called = 0
def proc_close_cb(proc)... |
import * as React from "react";
function UimSquareFull(props) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
viewBox: "0 0 24 24",
width: props.size || '1em',
height: props.size || '1em',
fill: "currentColor"
}, props), /*#__PURE__*/React.createElement("path", {
opacity: 1,
... |
import { positionParticipantAction } from './positionParticipantAction';
export function luckyLoserDrawPositionAssignment({
luckyLoserParticipantId,
tournamentRecord,
drawDefinition,
drawPosition,
structureId,
}) {
return positionParticipantAction({
positionActionName: 'luckyLoserDrawPositionAssignment... |
from itertools import product
import math
import inspect
import mpmath
from sympy.testing.pytest import raises
from sympy import (
symbols, lambdify, sqrt, sin, cos, tan, pi, acos, acosh, Rational,
Float, Matrix, Lambda, Piecewise, exp, E, Integral, oo, I, Abs, Function,
true, false, And, Or, Not, ITE, Min... |
'use strict';
module.exports = options => {
// 页面token鉴权统一处理
return async function jwt(ctx, next) {
// 先判断是否需要鉴权
const { exclude } = options;
const requestUrl = ctx.request.url;
if (!exclude.includes(requestUrl)) {
let token = ctx.request.header.authorization;
let decode;
if (tok... |
import React, { Component } from 'react'
import { List, InputItem, WhiteSpace, WingBlank, Button, Toast, Checkbox, Modal } from 'antd-mobile'
import Router from 'next/router'
import { connect } from 'react-redux'
import { getUser } from '@actions'
import reduxPage from '@reduxPage'
import { isMobile, http, setCookie, s... |
// based on https://github.com/facebook/react/pull/4303/files
import normalizeNativeEvent from '../normalizeNativeEvent';
import ReactDOMUnstableNativeDependencies from 'react-dom/unstable-native-dependencies';
var ResponderEventPlugin = ReactDOMUnstableNativeDependencies.ResponderEventPlugin,
ResponderTouchHisto... |
/* global describe beforeEach it */
const {expect} = require('chai')
const request = require('supertest')
const db = require('../db')
const app = require('../index')
const Plant = db.model('plants')
describe('Plant routes', () => {
beforeEach(() => {
return db.sync({force: true})
})
describe('/api/plants/',... |
"use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.pus... |
/**
* ==============================================================================
* BTCz-Give
* ==============================================================================
*
* Version 0.1.0 (beta)
*
* BitcoinZ giveaway tool
* https://github.com/MarcelusCH/BTCz-Give
*
* --------------------------------------------... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test suite for zcomx/modules/links.py
"""
import unittest
from gluon import *
from bs4 import BeautifulSoup
from applications.zcomx.modules.books import Book
from applications.zcomx.modules.creators import Creator
from applications.zcomx.modules.links import \
Ba... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var media = {};
<include src="main.js"/>
<include src="util.js"/>
<include src="cache_entry.js"/>
<include src="disjoint_range_set.js"/>
<include src="pl... |
import React, { forwardRef } from 'react';
import { renderPathForWeight } from '../lib/index.esm.js';
import IconBase from '../lib/IconBase.esm.js';
/* GENERATED FILE */
var pathsByWeight = /*#__PURE__*/new Map();
pathsByWeight.set("bold", function (color) {
return React.createElement(React.Fragment, null, React.cre... |
!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={... |
const express = require("express");
const bodyParser = require("body-parser");
const cors = require("cors");
var nodemailer = require('nodemailer');
const cron = require('node-cron');
var mongoose = require("mongoose");
var templates = require('../templates');
var nick_name = ["Candy", "Caramel", "Spicy ", "Hot Stuff"... |
import React, {useState, useEffect} from 'react'
import Card from '@material-ui/core/Card'
import CardActions from '@material-ui/core/CardActions'
import CardContent from '@material-ui/core/CardContent'
import Button from '@material-ui/core/Button'
import TextField from '@material-ui/core/TextField'
import Typography f... |
"""
API for SWFUpload http://swfupload.org
@license: Apache License Version 2.0
@copyright: 2009 Tobias Weber
@author: Tobias Weber
@contact: tobi-weber@gmx.de
"""
from pyjamas.ui.FlashPanel import FlashPanel
import DeferredHandler
from pyjamas.Timer import Timer
from pyjamas import DOM
from urllib import quote
impo... |
/*
* Kendo UI Complete v2013.1.319 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be gover... |
/******************************************************************************
*
* Copyright (c) 2018, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
import {renderers} ... |
import { defer, resolve } from 'rsvp';
import { run } from '@ember/runloop';
import { get } from '@ember/object';
import DS from 'ember-data';
import setupStore from 'dummy/tests/helpers/store';
import testInDebug from 'dummy/tests/helpers/test-in-debug';
import { module, test } from 'qunit';
var env, Person;
module(... |
import React from 'react';
import './Card.css';
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponsePermanentRedirect
from djconfig import config
from ..core.utils.paginator import paginate, yt... |
import os
import unittest
import mock
from django.conf import settings
from django.core import mail
from django.test import RequestFactory, TestCase
from django.test.utils import override_settings
from ..forms import ContactForm
try:
from django.urls import reverse
except ImportError: # pragma: no cover
fr... |
/*!
jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
Version: v3.3.2
Url: https://xdsoft.net/jodit/
License(s): GPL-2.0-or-later OR MIT OR Commercial
*/
((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e... |
# Copyright 2013-2021 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)
import functools
import os
import llnl.util.filesystem
import spack.cmd.common.arguments
import spack.cmd.modules
def ... |
import optparse
import sys
import os
import traceback
from twisted.internet import defer
from twisted.internet.protocol import Protocol, ClientFactory
def parse_args():
usage = """usage: %prog [options] [hostname]:port ...
This is the Get Poetry Now! client, Twisted version 4.0
Run it like... |
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['kaitai-struct/KaitaiStream'], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = fact... |
// Stores the next entity id to use.
let entityId = 1;
// Returns an array of entities for the given `parentId`.
// Makes sure the `depth` of entities doesn’t exceed 5.
const makeEntities = function(parentId, depth) {
if (depth > 5) {
return [];
}
// The number of entities to create.
const entitiesCount = ... |
# 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
from ... import _utilities, _tables
from... |
// Loads the dialog for uploading the membership agreement.
function openUploadAgreement(id, approval_csrf_token, upload_csrf_token) {
var agreementIdField = $('#agreementId')[0];
var agreementCsrfTokenField = $('#agreementCsrfToken')[0];
var agreementUploadCsrfTokenField = $('#agreementUploadCsrfToken')[0];
var a... |
import React, { Component } from 'react';
import Contact from './Contact';
import Credits from './Credits';
class Main extends Component {
constructor(props) {
super(props);
this.state = { formSubmitted: false };
}
render() {
let close = (
<div
className="close"
onClick={() => {
this.props.on... |
'use strict';
var ModuleBase = require( '../ModuleBase.js' );
var Utils = require( '../Utils.js' );
/**
* Using a width/height ratio, the height of the placeholder can be set for fluid images before they
* are downloaded.
*
* @param {DOMElement} image placeholder
* @param {Integer} cur... |