text stringlengths 3 1.05M |
|---|
function createWidgetClock($container, options) {
let value = 0;
const render = () => {
$container.innerHTML = `
<div class="clock">
<p class="clock__title">${options.title}</p>
<p class="clock__value">${value}</p>
</div>
`;
};
re... |
$(function(){
$('#dataTables-example').DataTable({
responsive: false
});
$('#myModal').on('show.bs.modal',function(e){
var btn = $(e.relatedTarget);
var type = btn.data('type');
if(type == 'edit'){
var url = btn.data('url');
var update = btn.data('... |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 26.1.9
description: >
Throws a TypeError if target is a Symbol
info: |
26.1.9 Reflect.has ( target, propertyKey )
1. If Type(target) is not Object, throw a TypeEr... |
import actions from './actions';
const initState = {
allProposals: [],
tag: undefined,
selectedProposal: -1,
filterAttr: { },
composeProposal: false,
replyProposal: false,
searchString: ''
};
export default function proposalReducer(state = initState, action) {
switch (action.type) {
case actions.... |
/*
* Copyright (c) 2008-2015 Institut National de l'Information Geographique et Forestiere (IGN) France.
* Released under the BSD license.
*/
/*
* @requires Geoportal/OLS/UOM/Distance.js
*/
/**
* Class: Geoportal.OLS.UOM.Distance.Altitude
* The Geoportal framework Open Location Service support Altitude class.
*... |
"""S3 bucket paths."""
from django.conf import settings
from storages.backends.s3boto import S3BotoStorage
class StaticStorage(S3BotoStorage):
"""Class for storage of static files in s3 bucket."""
location = settings.STATICFILES_LOCATION
class MediaStorage(S3BotoStorage):
"""Class for storage of media... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const __1 = require("..");
const plugins_1 = require("../plugins");
cons... |
/** @flow */
import R from 'ramda';
import { inspect } from 'util';
import { HOOKS_NAMES } from '../constants';
import logger from '../logger/logger';
import * as errors from './exceptions';
export type HookAction = {
name: ?string,
run: Function[]
};
export type Hooks = {
[string]: HookAction[]
};
type HookFa... |
# encoding: utf-8
# Edition
from . import (
Base,
get_one,
get_one_or_create,
PresentationCalculationPolicy,
)
from .coverage import CoverageRecord
from .constants import (
DataSourceConstants,
EditionConstants,
LinkRelations,
MediaTypes,
)
from .contributor import (
Contributor,
... |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import TimeAgo from 'react-timeago';
import { handleSaveQuestionAnswer } from '../actions/questions.js';
import { handleSaveUserAnswer } from '../actions/users.js';
const VoteQuestion = ({ creator, question, authedUse... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function IoDiceSharp (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M48 366.92L240 480V284L48 170zM192 288c8.84 0 16 10.75 16 24s-7.16 24-16 24-16-10.75-16-24 7.16-24 16-24zm-96 32c8.84 ... |
import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold... |
return {
loud: function (aString) { return aString.toString().toUpperCase() },
small: function (aString) { return aString.toString().toLowerCase() }
};
|
import React, { PureComponent, Fragment } from 'react';
import { Route, Redirect, Switch } from 'dva/router';
import { Card, Steps } from 'antd';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import NotFound from '../../Exception/404';
import { getRoutes } from '../../../utils/utils';
import styles ... |
import React from 'react';
import './SearchPage.css';
import ChannelRow from './ChannelRow';
import TuneIcon from '@material-ui/icons/Tune';
import channelimg from './Devtubes.png';
import VideoRow from './VideoRow.js';
import VideoCard from './VideoCard';
import dev from './Tanay tube.jpg'
import dsc from './DSC.png'
... |
const CustomError = require("../extensions/custom-error");
module.exports = function createDreamTeam(members) {
let names= [];
if(Array.isArray(members)){
for(let i = 0; i < members.length; i++){
if(typeof members[i] == 'string'){
members[i] = members[i].trim();
... |
import { Redirect } from 'react-router-dom'
var deleteIcon = function(value, data, cell, row, options){ //plain text value
return "<i class='fa fa-trash'></i>"
};
var editIcon = function(value, data, cell, row, options){ //plain text value
return "<a href='/#/branddetails'><i class='fa fa-edit'></i></a>"
};
func... |
#32 Faça um programa que leia um ano qualquer e mostre se ele é bissexto.
import datetime
print("Digite 0 para analisar o ano atual")
ano = int(input("Que ano quer analisar? "))
if ano == 0:
ano = datetime.date.today().year
if ano % 4 == 0 and ano % 100 != 0 or ano % 400 == 0:
print(f"O ano {ano} é bissexto")... |
#!/usr/bin/env python
# Copyright 2014, Rackspace US, 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 applicabl... |
!function(e){e.fn.datepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","Septembe... |
import React from 'react';
import {Container, Row, Col} from "react-bootstrap";
import AboutThumbOne from "../../components/about-us/thumbnail/AboutThumbOne";
import aboutThumb from "../../assets/img/about/home-creative-agency-image-01.png"
import AboutContentOne from "../../components/about-us/content/AboutContent... |
/**
* @license
* Copyright 2016 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 ... |
deepmacDetailCallback("e02a82000000/24",[{"d":"2010-08-28","t":"add","a":"135, LANE 351, TAIPING RD.\nSEC.1, TSAO TUEN\nNAN-TOU 542\n","c":"TAIWAN, REPUBLIC OF CHINA","o":"USI"},{"d":"2011-02-12","t":"change","a":"141, LANE 351, SEC.1, TAIPING RD.\nTSAOTUEN\nNANTOU 54261\n","c":"TAIWAN, REPUBLIC OF CHINA","o":"Universa... |
import * as THREE from 'three';
import MaterialDescriptorBase from './MaterialDescriptorBase';
class MeshLambertMaterialDescriptor extends MaterialDescriptorBase {
constructor(react3RendererInstance) {
super(react3RendererInstance);
this.hasColor();
this.hasColor('emissive', 0);
this.hasWireframe(... |
# Copyright (c) ZenML GmbH 2021. 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... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// This icon file is generated by build/generate.ts
// tslint:disable
/** @type {?} */
export const manifest = {
fill: [
'account-book',
'ale... |
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
import sys
import argparse
def main(args):
name = args.name
n = args.n
inp = args.inp
file = f"../GB_projects/{name}/thermo_output/{inp}.txt"
print(file)
df = pd.read_csv(file, sep=';', comment='#', names=['t','T', 'pe'... |
const Discord = require('discord.js');
const weather = require('weather-js');
exports.run = (client, message, args) => {
weather.find({search: args.join(" "), degreeType: 'C'}, function(err, result) {
if (err) message.channel.send(err);
if (result === undefined || result.length === 0) {
... |
import inspect
import logging
import hashlib
from data.database import DerivedStorageForImage, TagManifest, Manifest, Image
from data.registry_model.registry_oci_model import back_compat_oci_model, oci_model
from data.registry_model.registry_pre_oci_model import pre_oci_model
from data.registry_model.datatypes import ... |
import os
if '{{ cookiecutter.license|lower }}' != 'bsd':
os.remove('./LICENSE')
|
import test from 'ava';
import request from 'supertest';
import app from '../../server';
import Post from '../post';
import { connectDB, dropDB } from '../../util/test-helpers';
// Initial posts added into test db
const posts = [
new Post({ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24... |
var helper = require("../../helper");
var Manager = require("../../../src/etl/fact-total-hutang-etl-ag-manager");
var instanceManager = null;
var should = require("should");
var sqlHelper = require("../../sql-helper")
before("#00. connect db", function (done) {
Promise.all([helper, sqlHelper])
.then((resul... |
const Discord = require("discord.js")
const db = require('croxydb');
module.exports.run = async (client, message, args) => {
let karaliste = db.fetch(`ckaraliste.${message.author.id}`)
const westraben = new Discord.MessageEmbed()
.setColor("#f6ff00")
.setDescription(`<a:siren:778777832976416778> **${karaliste}**... |
import React, {useEffect} from 'react';
import firebase from 'firebase';
import './RegisterLogin.css';
import CircularProgress from '@material-ui/core/CircularProgress';
import Logout from '../utils/Logout';
import ResendVerification from '../utils/ResendVerification';
import Button from '@material-ui/core/Button';
c... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[61],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./resources/js/views/users/UserProfile.vue?vue&type=script&lang=js&":
/*!***********************************************... |
import { createActions, createReducer } from "reduxsauce";
/**
* Action types & creators
*/
export const { Types, Creators } = createActions({
addTodo: ["text"],
toggleTodo: ["id"],
removeTodo: ["id"]
});
/**
* Handlers
*/
const INITIAL_STATE = [];
const add = (state = INITIAL_STATE, action) => [
...stat... |
import asyncio, random, math, os, requests, zipfile, datetime, re, html, bs4, requests, asyncio, textwrap
from telethon import events
from telethon.errors.rpcerrorlist import YouBlockedUserError
from telethon.tl.functions.account import UpdateNotifySettingsRequest
from userbot.events import javes05, rekcah05, progr... |
const { override, addDecoratorsLegacy } = require('customize-cra');
module.exports = override(
addDecoratorsLegacy()
); |
/**
* Copyright (c) 2006-2018, JGraph Ltd
* Copyright (c) 2006-2018, Gaudenz Alder
*/
/**
* Class: mxGraphModel
*
* Extends <mxEventSource> to implement a graph model. The graph model acts as
* a wrapper around the cells which are in charge of storing the actual graph
* datastructure. The model acts as a trans... |
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const VersionsArchived = require('./versionsArchived.json');
module.exports = {
title: 'SMA Technologies Help',
tagline: 'OpCon',
url: 'https://help.smatechnologies.com',
baseUrl: '/opcon/core/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn... |
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... |
import { StyleSheet, Dimensions } from "react-native";
const {width,height} = Dimensions.get('window');
export default StyleSheet.create({
container:{
backgroundColor:'#eceff1',
margin:10,
borderRadius:10,
flex:1
},
body_container:{
padding:10,... |
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
"""
One way to improve or interprete the former function is that:
the network learns a displacement towards the bottom of the feature map -> sample features there
"""
class LookGround(nn.Module... |
let handler = async (m, { conn, text }) => {
if (!text) throw 'No Text'
conn.sendFile(m.chat, global.API('https://some-random-api.ml', '/canvas/youtube-comment', {
avatar: await conn.getProfilePicture(m.sender).catch(_ => ''),
comment: text,
username: conn.getName(m.sender)
}), 'file.png', watermark, ... |
webpackJsonp([136],{BOPr:function(n,a,e){a=n.exports=e("FZ+f")(!1),a.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n... |
import PropTypes from 'prop-types';
// material
import { visuallyHidden } from '@mui/utils';
import { Box, Checkbox, TableRow, TableCell, TableHead, TableSortLabel } from '@mui/material';
// ----------------------------------------------------------------------
staffListHead.propTypes = {
order: PropTypes.oneOf(['a... |
# Solution of;
# Project Euler Problem 203: Squarefree Binomial Coefficients
# https://projecteuler.net/problem=203
#
# The binomial coefficients $\displaystyle \binom n k$ can be arranged in
# triangular form, Pascal's triangle, like
# this:111121133114641151010511615201561172135352171. . . . . . . . . It can
# be... |
from __future__ import absolute_import
from __future__ import print_function
import veriloggen
import stream_cast
expected_verilog = """
module test;
reg CLK;
reg RST;
reg signed [32-1:0] xdata;
reg signed [32-1:0] ydata;
wire signed [32-1:0] zdata;
main
uut
(
.CLK(CLK),
.RST(RST),
.xdata... |
export default [
{
title: "Document props of each component",
description: "I believe this will help with a lot of confusion as far as overriding component goes, and will make it easier to see where we can improve.",
completed: false,
id: "000",
},
{
title: "Add NPM info to README",
descri... |
/* single-spa-layout@1.0.0-beta.6 - system */
System.register(["single-spa"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.pathToActiveWhen,n=e.mountRootParcel}],execute:function(){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:functio... |
/*
NOTE:
This program looks for an ID of a RSS post and checks if its the same as the last one.
If its not its a new one and posts.
The RSS this program was designed for was using a id named "guid", this might vary depending on the RSS source.
*/
require('dotenv').config()
let sqlite3 = require('sqlite3').verb... |
describe("echarts-ng $echarts service", function () {
var $echarts
, $dimension
, $waterfall
, $timeout
, $rootScope;
beforeEach(module("echarts-ng"));
beforeEach(inject(function (_$echarts_, _$dimension_, _$waterfall_, _$timeout_, _$rootScope_) {
$echarts = _$echarts_;
$dimension = ... |
/*
* MelonJS Game Engine
* Copyright (C) 2011 - 2013, Olivier Biot, Jason Oster
* http://www.melonjs.org
*
* Clay.io API plugin
*
*/
(function($) {
/**
* @class
* @public
* @extends me.plugin.Base
* @memberOf me
* @constructor
*/
Clayio = me.plugin.Base.extend({
// minimum melonJS ve... |
//Setup
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic"... |
/*
* This combined file was created by the DataTables downloader builder:
* https://datatables.net/download
*
* To rebuild or modify this file with the latest versions of the included
* software please visit:
* https://datatables.net/download/#dt/dt-1.10.24
*
* Included libraries:
* DataTables 1.10.24
*... |
(function() {
var callWithJQuery,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
slice = [].slice,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
hasProp = {}.hasOwn... |
var plugin = Echo.Plugin.manifest("VipReplies", "Echo.StreamServer.Controls.Stream.Item");
plugin.events = {
"Echo.StreamServer.Controls.Submit.onPostComplete": function(topic, args) {
var question = args.inReplyTo;
var answer = args.postData.content[0];
if (!question || this.config.get("view") === "public" ||
... |
# Test maw package ability to equalize.
# maw_05a - well and aquifer start at 4; should be now flow
# maw_05b - well starts at 3.5 and aquifer starts at 4; should equalize
# maw_05c - well starts at or below 3.0; not working yet
import os
import pytest
import sys
import numpy as np
try:
import flopy
except:
m... |
"""Transformers for generating edge confidence maps and part affinity fields."""
import numpy as np
import tensorflow as tf
import attr
from typing import List, Text, Optional, Tuple
import sleap
from sleap.nn.data.utils import (
expand_to_rank,
make_grid_vectors,
gaussian_pdf,
ensure_list,
)
def dis... |
import { useCallback, useReducer, useEffect, useContext, useState } from 'react'
import { ClientStore } from './stores'
import { uuid, reducer } from './utils'
const useAsync = (actions, initialState = {}) => {
const [id] = useState(uuid())
const client = useContext(ClientStore.Context)
const memoizedReducer =... |
from .resources import api_resources
from .queue import api_queue
from .notes import api_notes
from .decks import api_decks |
fuse.dom.HTMLInputElement.plugin.coffee = fuse.Function.IDENTITY;
|
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
from pandas import Series, DataFrame
import pandas as pd
import numpy as np
import os
import matplotlib.pylab as plt
from sklearn.cross_validation import train_test_split
from sklearn.tree import DecisionTreeClassifier
from s... |
import { createError, REV_CONFLICT } from '../errors';
import isDeleted from './isDeleted';
import { parseDoc as parseDoc } from './parseDoc';
import calculateWinningRev from '../../deps/merge/winningRev';
import merge from '../../deps/merge/index';
import revExists from '../../deps/merge/revExists';
function updateDo... |
// Copyright 2006 The Closure Library 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 requ... |
#!/usr/bin/env python3 -u
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Train a new model on one or across multiple GPUs.
"""
import collections
import math
import random
import numpy... |
const encryptPW |
// RealShowHide v0.1 by Simkin Andrew - http://RealAdmin.ru
(function( $ ) {
$.fn.RealShowHide = function(options) {
var settings = $.extend( {
'speed' : undefined,
'dataName' : 'element'
}, options);
this.click(function(e){
var block = $(e.target).data(settings['dataName']);
i... |
let images = {
greenFrog: 'http://i.imgur.com/jM2kzrd.png',
redFrog: 'http://i.imgur.com/0kcX1In.png',
yellowFrog: 'http://i.imgur.com/8gFtBGN.png',
greenLilly: 'http://i.imgur.com/P85vO4u.png',
redLilly: 'http://i.imgur.com/RlKQ52D.png',
yellowLilly: 'http://i.imgur.com/7sC9O25.png'
}
export default image... |
from rest_framework import mixins
from rest_framework import generics
from .models import Employee
from .serializers import EmployeeSerializer
class EmployeeList(mixins.ListModelMixin,
mixins.CreateModelMixin,
generics.GenericAPIView):
queryset = Employee.objects.all()
se... |
from decimal import Decimal
from io import BytesIO
from unittest.mock import MagicMock, Mock
import pytest
from django.contrib.auth.models import AnonymousUser, Group, Permission
from django.contrib.sites.models import Site
from django.core.files import File
from django.core.files.uploadedfile import SimpleUploadedFil... |
import { assert, expect } from 'chai';
import enable from '../src/enable.js';
import updateImage from '../src/updateImage.js';
import disable from '../src/disable.js';
import { getEnabledElement } from '../src/enabledElements.js';
import metaData from '../src/metaData.js';
import {
addLayer,
removeLayer,
getLay... |
const date = new Date();
const months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December',
];
const beginYear = 2019;
const endYear = 2044;
const renderCalendar = () => {
date.setDate(1);
const monthDays = document.... |
$('#addQuestionButton').on('click', function() {
let selectedValue = $('select[name=selector]').val();
let index = $(this).attr('index');
jsRoutes.controllers.Questionnaires.appendQuestion(index, selectedValue).ajax({
success: function(data) {
$('#questionsContent').append(data);
$('#addQuestionButton').at... |
import n2
import numpy as np
from pathlib import Path
import tqdm
class KNNClassifier(object):
def __init__(self, fingerprint_kind, dimension, verbose):
self.fingerprint_kind = fingerprint_kind
self.dimension = dimension
self.verbose=verbose
def build_ann_index(self, fingerpri... |
module.exports = {
computate_engine: {
dialect: 'sqlite',
storage: 'storage/database/compute_engine.db'
},
utility: {
dialect: 'sqlite',
storage: 'storage/database/utility.db'
}
}; |
const router = require('express').Router();
const User = require('../models/User');
const CryptoJS = require('crypto-js');
const jwt = require('jsonwebtoken');
// Register
router.post('/register', async (req, res) => {
const { username, email, password } = req.body;
const newUser = new User({
username: username,
... |
var React = require("react");
//Children
var Saved = require("./children/Saved.js");
var Search = require("./children/Search.js");
var Results = require("./children/Results.js");
var helpers = require("./utils/helpers.js");
var Main = React.createClass({
getInitialState: function(){
return ({
sear... |
# Generated by Django 3.1.4 on 2020-12-22 02:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import logs.models
class Migration(migrations.Migration):
dependencies = [
('network', '0007_auto_20201029_0200'),
... |
class TimeLimitExceeded(Exception):
pass
class NotEnoughMemoryError(Exception):
pass
class NoGPUError(Exception):
pass
class NoValidFeatures(Exception):
pass
|
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 20,
height: 20,
},
content: [
{
elem: 'path',
attrs: {
d:
'M12 21H4V4h18v8h2V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h8z',
},
},
{
... |
import chalk from 'chalk';
import knex from 'knex';
import rmfr from 'rmfr';
import path from 'path';
import fs from 'fs';
import { identity, indexBy, isEmpty, map } from 'ramda';
import { extractSchema } from 'extract-pg-schema';
import defaultTypeMap from './defaultTypeMap';
import { logger } from './logger';
import ... |
var assert = require("assert");
var mockery = require("mockery");
describe("cmd build module", function() {
var cmdBuild;
var buildArgs;
var cmdBuildPath = "../../lib/cli/cmd_build";
beforeEach(function() {
buildArgs = {};
mockery.enable({
useCleanCache: true,
warnOnReplace: false,
warnOnUnregistere... |
var path = require("path");
var htmlWebpackPlugin = require("html-webpack-plugin")
var VueLoaserPlugin = require("vue-loader/lib/plugin")
module.exports = {
entry: path.join(__dirname, "./src/main.js"),
output: {
path:path.join(__dirname, "./dist"),
filename: "bundle.js"
},
plugins:[
... |
import { createStore, applyMiddleware } from 'redux'
import sagaMiddleware from '../../src'
import * as io from '../../src/effects'
test('should not interpret returned effect. fork(() => effectCreator())', () => {
const middleware = sagaMiddleware()
createStore(() => ({}), {}, applyMiddleware(middleware))
const ... |
from .core import Model |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var BlendModes = require('../../renderer/BlendModes');
var Class = require('../../utils/Class');
var Components = require('../components');
var ... |
var VueAudioSoundcloud=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;const e=t=>{let e=new Date(t).toISOString().substr(11,8);return 0===e.indexOf("00:")?e.substr(3):e};const i={name:"vue-audio-soundcloud",props:{elements:{type:Object,default:{}},defaultVolume:{type:Number,default:100}},data:()=... |
from pathlib import Path
from typing import Union, Dict, Any, List, Tuple
from collections import OrderedDict
# fmt: off
FilePath = Union[str, Path]
# Superficial JSON input/output types
# https://github.com/python/typing/issues/182#issuecomment-186684288
JSONOutput = Union[str, int, float, bool, None, Dict[str, Any]... |
/*! Lawrence - v1.0.9 - 2015-12-26 */
(function(){$(function(){return $("a[rel=group]").fancybox({padding:"0",titleShow:!1,cyclic:!0,overlayOpacity:"0.8",overlayColor:"#000",centerOnScroll:"true"}),$(".jq-action-btn").mouseover(function(){return $(this).find(".action-buttons").css({visibility:"visible"})}),$(".jq-actio... |
import clamp from 'clamp'
import colorMap from './big-color-map.js'
export default function vizVerticalBars (options={}) {
let { ctx, cv, bandCount, rotateAmount } = options
const dampen = true
let allRotate = 0
let centerRadius, heightMultiplier, gap, fade
let variant = 0
const variants = [[false, tru... |
const express = require("express");
const path = require("path");
const fs = require("fs");
const axios = require("axios");
const router = express.Router();
/* GET home page. */
router.get("/", function(req, res, next) {
res.sendFile(path.join(__dirname + "/public/index.html"));
});
router.get("/update", function(r... |
const ages = require("../ages");
const ageCost = require("../ages-cost/IronAge");
module.exports = {
key: "Colosseum",
age: ages.IronAge.key,
levels: ageCost
};
|
import React from "react";
import ReactDOM from "react-dom";
import Amplify from "aws-amplify";
import { BrowserRouter as Router } from "react-router-dom";
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";
import config from "./config";
import "./index.css";
Amplify.configure({
Au... |
/* eslint no-console: 0, import/no-extraneous-dependencies: 0, import/no-dynamic-require: 0 */
const fs = require('fs-extra')
const path = require('path')
const { execSync } = require('child_process')
const archiver = require('archiver')
// In the future, could consider crx-hotreload script for better
// development ... |
import React, { Component } from "react";
import axios from "axios";
class Login extends Component {
state = {
email: "",
password: "",
loginErrors: "",
};
handleSubmit = (e) => {
e.preventDefault();
axios
.post(
"http://localhost:5000/sessions",
{
user: {
... |
const Collectable = {
options: { onCollection: null },
create(object, options) {
const body = object.body
if (!body.onOverlap)
body.onOverlap = new Phaser.Signal()
if (options.onCollection)
body.onOverlap.add(options.onCollection)
}
}
export default Collectable
|
$(document).ready(function(){
//Usuarios login
$("button[action='login']").on("click",function(){
$("#formLogin").validate({
rules:
{
email: {
required: true,
email: true,
minlength: 5,
maxlength: 191
},
password: {
required: true,
minlength: 8,
maxlength: 40
... |
const path = require('path');
const defaultProject = {
projectName: 'default',
workingDir: 'C:\\Users\\yaniv\\dev\\kb',
buildCommand: 'venv\\Scripts\\activate.bat & make.bat html',
contentDir: path.join(__dirname, '..', 'content'),
homePage: 'index.html',
};
exports.loadProject = () => defaultProject;
|
import React, {Component,Suspense, lazy} from "react";
import { Switch, Redirect } from 'react-router-dom';
import Spinner from '../shared/Spinner';
import Route from './Route';
import SignIn from '../signin';
const Dashboard = lazy(() => import('../dashboard/Dashboard'));
const Buttons = lazy(() => import('../basic... |