text stringlengths 3 1.05M |
|---|
def findDecision(obj): #obj[0]: Passanger, obj[1]: Coupon, obj[2]: Education, obj[3]: Occupation, obj[4]: Restaurant20to50, obj[5]: Distance
# {"feature": "Coupon", "instances": 51, "metric_value": 0.9975, "depth": 1}
if obj[1]>1:
# {"feature": "Occupation", "instances": 32, "metric_value": 0.896, "depth": 2}
if ... |
/*!
* Bootstrap v5.0.0 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
import * as Popper from '@popperjs/core';
/**
* ---------------------------------... |
back_url = "https://secret-oasis-98680.herokuapp.com"
event_endpoint = "/v1/event"
devices = [(7, 133700), (8, 133701), (9, 133702)]
rush_hours = [8.5, 12, 14, 16.5]
deviation = 0.7
|
/*************************************************************
*
* MathJax/localization/es/HelpDialog.js
*
* Copyright (c) 2009-2020 The MathJax Consortium
*
* 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... |
import numpy as np
import cv2
img = cv2.imread("chessboardPrinted.jpg")
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
cv2.imshow("Gray", gray)
# Find the chess board corners
ret, corners = cv2.findChessboardCorners(gray, (7,7),None)
# If found, add object points, image points (after refining them)
if ret == True:
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JvmMemory = void 0;
const tslib_1 = require("tslib");
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const formatter_1 = require("../../formatter");
const reactstrap_1 = require("reactstrap");
class JvmMemory ex... |
/* some devices call home before accepting a wifi access point. Spoof those responses. */
var path = require('path');
exports.load = function(server, boatData, settings) {
var endpointMap = [
{'route': '/kindle-wifi/wifiredirect.html', 'responseFile': 'kindle.html'} ,
{'route': '/kindle-wifi/wi... |
var app = require('koa')()
var koa = require('koa-router')()
var logger = require('koa-logger')
var json = require('koa-json')
var views = require('koa-views')
// global middlewares
app.use(views('views', {
root: __dirname + '/views',
default: 'jade'
}));
app.use(require('koa-bodyparser')());
app.use(json());
app.... |
"use strict";
require("core-js/modules/es.array.index-of");
require("core-js/modules/es.array.last-index-of");
require("core-js/modules/es.array.slice");
require("core-js/modules/es.string.replace");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.delimiter = exports.sep = exports.toNamesp... |
#!/usr/bin/env python
import dill
import pickle
#import cPickle as pickle
import time
import rospy
import sys
import cma
import numpy as np
import optim
from percepto_msgs.srv import RunOptimization, RunOptimizationResponse
class CMAOptimizer:
"""Covariance Matrix Adaptation (CMA) evolution strategy cma_optimize... |
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
ecmaFeatures: {
}
},
settings: {
}... |
<?php
/*
CometChat
Copyright (c) 2016 Inscripts
License: https://www.cometchat.com/legal/license
*/
?>
if(typeof(jqcc) === 'undefined') {
jqcc = jQuery;
}
if(typeof($) === 'undefined') {
$ = jqcc;
}
(function($) {
var settings = {};
settings = jqcc.cometchat.getcrAllVariables();
var calleeAPI ... |
/**
@Name : jeDate v6.0.0 日期控件
@Author: chen guojun
@Date: 2017-09-06
@QQ群:516754269
@官网:http://www.jemui.com/ 或 https://github.com/singod/jeDate 或 http://www.jq22.com/jquery-info6110
*/
;(function(root, factory) {
//amd
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory)... |
function swb(a){this.b=a}
function vwb(a){this.b=a}
function ywb(a){this.b=a}
function mwb(a,b){if(b==null){Li(a.d,UKc)}else{L1b(a.d,b);Ii(a.d,UKc)}}
function nwb(b){var a,c,d,e;e=gr(b.g.db,THc);if(wpc(e,MBc)){L1b(b.d,VKc)}else{try{c=new rT(e);d=fC(b.b,c,null);L1b(b.d,d);mwb(b,null)}catch(a){a=ndb(a);if(aU(a,141)){mwb(... |
var _;
_ = WeakSet.length;
_ = WeakSet.name;
_ = WeakSet.prototype;
new WeakSet();
|
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-g... |
# Copyright 2013-2022 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.package import *
class Unifdef(MakefilePackage):
"""The unifdef utility selectively processes conditiona... |
# (C) Calastone Ltd. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest
from datadog_checks.base.errors import CheckException
from datadog_checks.eventstore import EventStoreCheck
def test_config():
c = EventStoreCheck('eventstore', {}, {}, None)
# empty in... |
import sys
sys.dont_write_bytecode = True
import PySimpleGUI as sg
import controller.login.login_button as login_button
import controller.login.register_button as register_button
import controller.login.exit_button as exit_button
class login_layout(object):
'''
A class representing a login screen.
Att... |
import { SDK_VERSION, _getProvider, _registerComponent, registerVersion, getApp } from '@firebase/app';
import { ErrorFactory, isBrowserExtension, isMobileCordova, isReactNative, FirebaseError, querystring, getModularInstance, base64Decode, getUA, isIE, createSubscribe, querystringDecode, extractQuerystring, isEmpty } ... |
import pygame, crgImg
pygame.init()
###-----------------------------------------------------------###
"""
Identifica a posição de um botão em sua determinada camada
"""
###-----------------------------------------------------------###
###-------------###
"""
Recebe:
X e Y do mouse, Camada, Tela
Retorna:
Mudou, Tela,... |
import { test } from '../qunit';
import { localeModule } from '../qunit-locale';
import moment from 'dayjs';
localeModule('ar-kw');
test('parse', function (assert) {
var tests = 'يناير:يناير_فبراير:فبراير_مارس:مارس_أبريل:أبريل_ماي:ماي_يونيو:يونيو_يوليوز:يوليوز_غشت:غشت_شتنبر:شتنبر_أكتوبر:أكتوبر_نونبر:نونبر_دجنبر:دج... |
/*
Node.js server script
Required node packages: express, redis, socket.io
*/
const PORT = 3000;
const HOST = 'localhost';
const USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36';
var express = require('express'),
http = require('http'),... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 31 14:55:48 2019
@author: descentis
"""
|
//channel joins the room for RTC
export const subscribeFieldData=(token,callback)=>{
return {
emit:true,
event: 'join',
handle:token,
err:(err)=>{callback(err)}
}
}
//GRAPH-RTC
export const updateField=()=>{
return{
event:'updateFieldValue',
handle:'fieldUpdate'
}
};
//M... |
import Constants, { ExecutionEnvironment } from 'expo-constants';
import { Platform } from 'expo-modules-core';
const LINKING_GUIDE_URL = `https://docs.expo.io/guides/linking/`;
export function hasCustomScheme() {
if (Constants.executionEnvironment === ExecutionEnvironment.Bare) {
// Bare always uses a cust... |
import dash
from dash.dependencies import Input, Output
import dash_html_components as html
import dash_core_components as dcc
def test_slsl001_always_visible_slider(dash_dcc):
app = dash.Dash(__name__)
app.layout = html.Div(
[
dcc.Slider(
id="slider",
min=0... |
window._lang = "nl_NL" ;
window._l10s = window._l10s || { } ;
window._l10s["nl_NL"] = {
"#{0} from now": "#{0} vanaf nu",
"#{0} ago": "#{0} geleden",
"on #{0}": "op #{0}",
"less than a minute": "minder dan een minuut",
"#{0} minute": "#{0} minuut",
"#{0} minutes": "#{0} minuten",
"about one hour": "ongev... |
from django.db import models
class IntegerRangeField(models.IntegerField):
def __init__(self, verbose_name=None, name=None, min_value=None, max_value=None, **kwargs):
self.min_value, self.max_value = min_value, max_value
models.IntegerField.__init__(self, verbose_name, name, **kwargs)
def for... |
import Ember from 'ember';
import { warn } from "ember-data/-private/debug";
var get = Ember.get;
var set = Ember.set;
var camelize = Ember.String.camelize;
/**
## Using Embedded Records
`DS.EmbeddedRecordsMixin` supports serializing embedded records.
To set up embedded records, include the mixin when extendi... |
'use strict';
const HJSON = require('hjson').rt;
exports.parse = (text, options) => HJSON.parse(text, options);
exports.stringify = (text, options) => HJSON.stringify(text, {
bracesSameLine: true,
quotes: 'all',
space: '\t',
separator: true,
...options
});
|
from .network import Network
import sndcgan_zgp.ops
import sndcgan_zgp.utils
import sndcgan_zgp.words
NAME = "SNDCGAN - Type B"
DETAIL = "Based on SNDCGAN ResNET(Parallel Net)."
VERSION = (2, 0, 0)
MODIFIED_DATE = "2018.10.30."
CHANGE_LOG = \
"""
Date Changes
2018.08.29. New code structure establish... |
import os
from examples.advanced.multi_modal_pipeline import (prepare_multi_modal_data)
from fedot.core.data.multi_modal import MultiModalData
from fedot.core.pipelines.node import PrimaryNode, SecondaryNode
from fedot.core.pipelines.pipeline import Pipeline
from fedot.core.repository.tasks import Task, TaskTypesEnum
... |
const UriScalar = require('../scalars/uri.scalar');
const CodeScalar = require('../scalars/code.scalar');
const DateTimeScalar = require('../scalars/datetime.scalar');
const { GraphQLInputObjectType, GraphQLEnumType, GraphQLNonNull, GraphQLString, GraphQLBoolean, GraphQLList } = require('graphql');
const { extendSchem... |
function Simulador () {
this.nome = document.querySelector("#nome").value;
this.email = document.querySelector("#email").value;
this.estado = document.querySelector("#estado").value;
this.cmm = parseFloat(document.querySelector("#cmm").value);
this.tarifa = document.querySelector("#tarifa").v... |
function findRule() {
var query_string = $('#search_string').val()
var q = query_string.replace(/\s+/gm, '').split('+')
var regex = []
for (var i = 0; i < q.length; i++) {
regex[i] = new RegExp(q[i], 'mi')
}
$('#actual_rules li[id^=r]').each(function () {
var show = true
for (var i = 0; i < rege... |
"""
u t i l s
Utils
===================
:description:
A general file to hold utility functions.
"""
#
# :builtins:
import hashlib
import os
import json
import re
import base64
import time
def md5_(value: str) -> str:
"""
A function to return the md5 hash of the given string.
:pa... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[33,13],{1507:function(e,t,a){"use strict";a.r(t);var r=a(24),n=a.n(r),i=a(25),o=a.n(i),c=a(26),l=a.n(c),s=a(27),u=a.n(s),d=a(16),m=a.n(d),p=a(0),h=a.n(p),g=a(31),b=a(800),f=a(22),v=a.n(f),y=a(6),E=a.n(y),I=a(4),N=a(702),P=a(102),A=a(861),C=Object(g.b)(null,(function(... |
# Autodidactic Iteration (ADI)
# Modified from https://arxiv.org/pdf/1805.08966v1.pdf
# But reframe as Q
# TODO Add Q training when testing
# TODO Bagging
from collections import deque
from env.tsp_env import TspEnv
from utils import tsp_plots
import numpy as np
import random
import time
import torch
import torch.nn ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isObPriceEqual(ob1, ob2) {
if (ob1.r !== ob2.r)
return false;
return true;
}
exports.isObPriceEqual = isObPriceEqual;
function isObAmountEqual(ob1, ob2) {
return Math.abs(ob1.a - ob2.a) <= 0.0001;
}
exports.isObAmo... |
const Attachment = api.require('Attachment');
const Tag = api.require('Tag');
const Transform = api.require('Transform');
const ParticleEmitter = api.require('ParticleEmitter');
const Vector3 = api.require('Vector3');
const OrbitingBehavior = api.require('OrbitingBehavior');
const BehaviorComponent = api.require(... |
module.exports = new Date(2003, 11, 25)
|
$(document).ready(function() {
function chcompare(a, b) {
const preferredorder = 'Recommended,Vendors,Other'.split(','); // Specified groups will be sorted in this order. Unmatched groups will be sorted alphabetically
var groupA = preferredorder.indexOf(a.chgroup)+1;
var groupB = preferredorder.indexOf(b.chg... |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
function _defineProperties(target, props) {
for(var i = 0; i < props.length; i++){
var descriptor = props[i];
descriptor.enumerable = descriptor.e... |
import { dedupeMixin } from '@lion/core';
import { formRegistrarManager } from './formRegistrarManager.js';
import { FormRegisteringMixin } from './FormRegisteringMixin.js';
/**
* This allows an element to become the manager of a register
*/
export const FormRegistrarMixin = dedupeMixin(
superclass =>
// eslin... |
var url = "http://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=jsonp&lang=en&jsonp=?";
var getQuote = function(data) {
$(".quote-text").text(data.quoteText);
var quot = 'https://twitter.com/intent/tweet?text=' + data.quoteText + ' Author ' + data.quoteAuthor;
if (data.quoteAuthor === '') {
da... |
import fx from '../../animation/fx';
import positionUtils from '../../animation/position';
import { locate, move, resetPosition } from '../../animation/translator';
import registerComponent from '../../core/component_registrator';
import devices from '../../core/devices';
import domAdapter from '../../core/dom_adapter'... |
from apps.ImageSearch.algs.MarginalPlusNN.MarginalPlusNN import MarginalPlusNN as MyAlg
|
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case
// - src/dstr-binding/default/gen-method-dflt.template
/*---
description: Destructuring initializer with a "hole" (generator method (default parameter))
esid: sec-generator-function-definitions-runt... |
import React, { useEffect } from "react"
import { Link } from "react-router-dom"
import { Button, Row, Col, ListGroup, Image, Card } from "react-bootstrap"
import { useDispatch, useSelector } from "react-redux"
import Message from "../components/Message"
import CheckoutSteps from "../components/CheckoutSteps"
import { ... |
from __future__ import division, print_function, absolute_import
from numpy.testing import dec, assert_, assert_array_equal
try:
import matplotlib
matplotlib.rcParams['backend'] = 'Agg'
import matplotlib.pyplot as plt
from matplotlib.collections import LineCollection
has_matplotlib = True
except:
... |
const ImapClient = require('emailjs-imap-client').default;
const queryString = require('query-string');
const config = require('@/config');
const parser = require('mailparser').simpleParser;
module.exports = async (ctx) => {
const email = ctx.params.email;
const mailConfig = Object.assign(
{
... |
# -*- coding: utf-8 -*-
#
# 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
... |
/* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at http://www.mozillapopcorn.org/butter-license.txt */
define( [ "util/dragndrop", "util/lang", "editor/editor", "text!layouts/plugin-list-editor.html" ],
func... |
# -*- coding: utf-8 -*-
"""Converter for miRBase Mature."""
from typing import Iterable
import bioversions
from tqdm import tqdm
from .mirbase_constants import get_mature_df
from ..struct import Obo, Reference, Synonym, Term
PREFIX = "mirbase.mature"
def get_obo() -> Obo:
"""Get miRBase mature as OBO."""
... |
function boxAndBottle(a,b){
var needed = a / b;
if (a % b != 0) {
needed++;
}
return parseInt(needed);
} |
define(
//begin v1.x content
({
"showBlockNodes": "HTML-blokelementen afbeelden"
})
//end v1.x content
);
|
angular.module('portfolioApp')
.controller('ThemesCtrl', function ($scope, Auth, $location, $q, Ref, $timeout, $firebaseArray, themeService) {
$scope.primaryThemeColor = null;
$scope.secondaryThemeColor = null;
$scope.tertiaryThemeColor = null;
$scope.iconThemeColor = null;
$scope.fontThemeColor ... |
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/s... |
import React from "react";
import ReactDOM from "react-dom";
import App from "./components/App";
import "./reset.css";
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
|
#!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Helpful routines for regression testing."""
from base64... |
import path from 'path';
import webpack from 'webpack';
module.exports = {
context: path.resolve(__dirname, '.'),
entry: {
app: path.resolve(__dirname, 'src/index.js'),
vendor: [
'babel-polyfill',
'prop-types',
'react',
'react-dom',
],
},
output: {
p... |
var chai = require('chai'),
expect = chai.expect,
sql = require('../lib/tsql');
describe('order', function() {
it('should generate the correct sql statement', function() {
expect(sql.select().from('users').order('id desc', 'email desc').toQuery().text).to.equal('select * from users order by id desc, emai... |
import datetime
from dataflows.base.exceptions import ProcessorError
import pytest
from dataflows import Flow
data = [
dict(x=1, y='a'),
dict(x=2, y='b'),
dict(x=3, y='c'),
]
def test_dump_to_sql():
from dataflows import Flow, printer, dump_to_sql
from sqlalchemy import create_engine
f = Fl... |
import _ from 'lodash';
import d3 from 'd3';
// Inspired by Lee Byron's test data generator.
/*eslint-disable */
function bumpLayer(n, maxValue) {
function bump(a) {
const x = 1 / (0.1 + Math.random());
const y = 2 * Math.random() - 0.5;
const z = 10 / (0.1 + Math.random());
for (let i = 0; i < n; i... |
'''
Author: Joel Pfeiffer
Email: jpfeiffe@gmail.com
Date Created: 5/22/2018
Python Version: 3.6
'''
import sklearn.datasets
import pandas
import numpy as np
from ..base import Dataset
from ..base import class_transform_to_dataframe
from ..generate import matched_edge_generator
class BostonMedians(Data... |
// Copyright (c) 2017 Uber Technologies, Inc.
//
// 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... |
// if user feedback is under 50pts return that data
//fetch data from the DB for a specific user
//comes back as a json object
const suggestionDiv = document.getElementById('suggestion-content');
const feedback = async () => {
const response = await fetch('/api/activity-log', {
headers: { 'Content-Type':... |
/**
* TextMagic API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 2
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version:... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
#!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
f... |
/* globals expect, test */
import { canBeLogged } from '../../../test-utils'
import { Group, Page } from '../..'
test('should return a Selection with the selected layers of the page', (_context, document) => {
const page = document.selectedPage
const selection = page.selectedLayers
expect(selection.isEmpty).toBe... |
"""
//! objectives:
//! Download any csv from web (cols > 5, rows > 10)
//! Cache option, if True use cached version instead of downloading
//! Settings in yaml response (use_cache, cache_folder, output_format, etc)
//! Logger that logs every step
! Read the response's first 5 cols and 10 rows
//! Output the result to ... |
import os
import time
from datetime import datetime
import pandas as pd
from Parser.Json.BugsJsonParser import BugsJsonParser
from Parser.Json.EventsJsonParser import EventsJsonParser
from Utility.CDPConfigValues import CDPConfigValues
from Utility.Utilities import Utilities
from WebConnection.WebConnection import We... |
// @flow
import React, { PureComponent } from 'react';
import styled, { withTheme, keyframes } from 'styled-components';
import { BigNumber } from 'bignumber.js';
import { Transition, animated } from 'react-spring';
import { type Match } from 'react-router-dom';
import { FEES } from '../constants/fees';
import { DARK... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
//import { bindActionCreators } from 'redux';
import { fetchPosts } from '../actions/index';
import { Link } from 'react-router';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
}
renderPost... |
from hexy import * |
#!/usr/bin/env python
import os
import sys
import shutil
from pwd import getpwnam
from grp import getgrnam
from setuptools import setup
from pkg_resources import Requirement, resource_filename
CPSVERSION = '1.3.0-rc3'
CONFDIR = '/etc/cpsdirector'
if not os.geteuid() == 0:
CONFDIR = 'cpsdirectorconf'
long_desc... |
# coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from ppr... |
import RadialAxis from 'c/radialAxis';
import { api } from 'lwc';
import { parseBoolean } from 'c/utils';
/**
* https://www.chartjs.org/docs/latest/axes/radial/linear.html
*/
export default class RadialLinearAxis extends RadialAxis {
// AngleLines Options: https://www.chartjs.org/docs/latest/axes/radial/linear.htm... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({widgetLabel:"\u041a\u043e\u043c\u043f\u0430\u0441",reset:"\u0421\u0431\u0440\u043e\u0441 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a... |
module.exports = {
turboPages: 1,
xxx: 1,
pxToRpx: 1,
cwd: 1,
progress: 1,
output: 1,
rootDir: 1,
UNSAFE_wechatTemplateDepth: '',
compressTemplate: 1,
configWebpack: 1,
notify: 1,
plugins: 1,
};
|
/*
A ping pong bot, whenever you send "ping", it replies "pong".
*/
// import the discord.js module
const Discord = require('discord.js');
// create an instance of a Discord Client
const client = new Discord.Client();
// the token of your bot - https://discordapp.com/developers/applications/me
const token = 'your ... |
import puppeteer from 'puppeteer';
import BlogProvider from './providers/provider';
import BlogProviderManager from './providers/providerManager';
/**
* Main entry point for authenticating and automating a given blog provider.
*
* @param {string| BlogProvider} provider - Name of built-in blog provider.
* May also... |
export { default } from './LineCirclesBox'
|
(()=>{return(i,e)=>{const c=`www.biliplus.com`;const l=["bilibili.com/video/","bilibili.com/bangumi/play","bilibili.com/bangumi/media","space.bilibili.com"];return{widget:{condition:()=>{return l.some(i=>document.URL.includes(i))},content:`\n<a class="gui-settings-flat-button" id="biliplus-redirect">\n<i class="icon-bi... |
#!/usr/bin/env python3
import os
import re
import bs4
import lxml
import asyncio
import requests
import threading
import tldextract
requests.packages.urllib3.disable_warnings()
R = '\033[31m' # red
G = '\033[32m' # green
C = '\033[36m' # cyan
W = '\033[0m' # white
Y = '\033[33m' # yellow
user_agent = {
'User-Agent... |
#!/usr/bin/env python
# encoding: utf-8
from django.contrib import admin
# Register your models here.
from .models import Article, Category, Tag, Links, SideBar, BlogSettings
from django import forms
from django.contrib.auth import get_user_model
from django.utils.translation import ugettext_lazy as _
from django.urls ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-01-22.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import operationdefinition
from .fhirdate import FHIRDate
class OperationDefinitionTests(unittest.TestCase):
def instantiate_fro... |
import {SET_AUTHED_USER} from '../actions/authedUser';
export default function tweets(state = null, action) {
switch (action.type) {
case SET_AUTHED_USER:
return action.id;
default:
return state;
}
}
|
/*
* The base model for a comment.
*
* This provides all the common properties, serialization, deserialization,
* validation, and other functionality of comments. It's meant to be
* subclassed by more specific implementations.
*/
RB.BaseComment = RB.BaseResource.extend({
defaults: _.defaults({
/*
... |
from .course import CourseListView
|
/**
* Created by zhangrz on 2017/12/20.
* Copyright© 2015-2020 occultskyrong (https://github.com/occultskyrong)
* @version 0.0.1 created
*/
'use strict';
const amqp = require('amqplib');
const config = require('./config');
const mqConfig = config.mq;
const connection = amqp.connect(`amqp://${mqConfig.account}:${... |
/**
* @enum EStreamGamepadInputType
*/
module.exports = {
"Invalid": 0,
"DPadUp": 1,
"DPadDown": 2,
"DPadLeft": 4,
"DPadRight": 8,
"Start": 16,
"Back": 32,
"LeftThumb": 64,
"RightThumb": 128,
"LeftShoulder": 256,
"RightShoulder": 512,
"Guide": 1024,
"A": 4096,
"B": 8192,
"X": 16384,
"Y": 32768,
"Le... |
import profile from './profile.vue'
export default profile |
module.exports = {
"dest": {
options: {
/* use this stylesheet */
stylesheets : [
"../../../css/style.css"
],
ignore: [
/.css_xs*/,
/.css_sm*/,
/.css_md*/,
/.css_lg*/,
/.phone*/,
/.tablet*/
],
ti... |
let timers = {
pomodoro: 25,
shortPause: 5,
longPause: 15,
}
let count_m = timers.pomodoro;
let count_s = 00;
let m = document.getElementById('minute');
let s = document.getElementById('second');
let countdown = document.getElementById('minute');
let firtTimer = false;
function timer () {
firtTimer... |
var ctx = document.getElementById('pirmas_doughnut').getContext('2d');
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'doughnut',
// The data for our dataset
data: {
labels: ['Pizza', 'Burgers', 'Potato chips', 'Chicken wings'],
datasets: [{
label:... |
from django.db import models
from wagtail.admin.edit_handlers import FieldPanel
from wagtail.contrib.settings.models import BaseSetting, register_setting
from wagtail.core.fields import RichTextField
from wagtail.core.models import Page
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.images.mode... |
const data = require('./data');
const ui = require('./widgets-base');
/// BUNDLER_PARTS
/* Web widgets (dx.module-widgets-web.js) */
ui.dxAccordion = require('../../../ui/accordion');
ui.dxContextMenu = require('../../../ui/context_menu');
ui.dxDataGrid = require('../../../ui/data_grid');
ui.dxTreeList = require('../... |