text stringlengths 3 1.05M |
|---|
from pallets_sphinx_themes import ProjectLink, get_version
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... |
System.register("test", [], function(__WEBPACK_DYNAMIC_EXPORT__, __system_context__) {
return {
execute: function() {
__WEBPACK_DYNAMIC_EXPORT__(
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 138:
/***/ ((__unused_webpack_module, __webpack_exports__... |
const mongoose = require('mongoose');
module.exports.connect = uri => {
mongoose.connect(uri);
// plug in the promise library:
mongoose.Promise = global.Promise;
mongoose.connection.on('error', () => process.exit(1));
// eslint-disable-next-line global-require
require('./user');
// eslint-disable-next-... |
import math
grafo = {}
grafo["A"] = {}
grafo["A"]["B"] = 2
grafo["A"]["C"] = 4
grafo["B"] = {}
grafo["B"]["D"] = 8
grafo["B"]["C"] = 7
grafo["C"] = {}
grafo["C"]["D"] = 9
grafo["D"] = {}
# Tabella costi:
costoNodi = {}
costoNodi["A"] = 0
costoNodi["B"] = 2
costoNodi["C"] = 4
costoNodi["E"] = math.inf
# Tabella p... |
import React from 'react';
import renderer from 'react-test-renderer';
import { Hug, Text, Card, theme } from '../';
const text = (
<Text.span>
Have you seen this <Text.span bold>card</Text.span> I‘m hugging?!
</Text.span>
);
describe('Hug', () => {
test('renders with border-radius from theme on top only', ... |
import React, { useState } from 'react';
import { Link, useHistory } from 'react-router-dom';
import { FiArrowLeft } from 'react-icons/fi';
import Swal from 'sweetalert2';
import './styles.css';
import logoImg from 'assets/logo.svg';
import api from 'services/api';
export default function NewIncident() {
const [tit... |
import { arkId } from './consts'
export function is(o) {
return Object.prototype.toString.call(o).slice(8, -1).toLowerCase()
}
export function isFunction(fn) {
return is(fn) === 'function'
}
export function upperFirst(s) {
return s.replace(/^\w/, function(m0) { return m0.toUpperCase() })
}
export function g(sa... |
from pandac.PandaModules import *
import ShtikerPage
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from toontown.quest import Quests
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import ToontownBattleGlobals
from toontown.toonbase import TTLocalizer
from toontown.toon impor... |
$(function() {
$('#id_date').datepicker();
});
// $( function() {
// $( “#id_date” ).datepicker();
// }); |
'use strict'
const request = require('request-promise-native')
// Paths
const facebookHost = 'https://graph.facebook.com/'
const facebookAPIVersion = 'v2.12'
const getTaggedPlacesURL = '/me/tagged_places'
const getEventsURL = '/me/events'
const getEventsFields = 'place{location, name},start_time,name'
const getAppTok... |
import styled, { createGlobalStyle } from 'styled-components';
import { themeGet } from 'styled-system';
const GlobalStyle = createGlobalStyle`
body {
font-family: 'Roboto', sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Roboto', sans-serif;
}
section {
position: relative;
}
.... |
describe('count', function() {
it('translates 1 to roman numerals', function (){
expect(roman(1)).to.equal('I')
});
it('translates 2 to roman numerals', function (){
expect(roman(2)).to.equal('II')
});
it('translates 4 to roman numerals', function (){
expect(roman(4)).to.equal('IV')
});
it('tr... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
# open_xconn.py connects to Opengear Terminal Servers and prints the device hostname
# Uses paramiko library to connect
# Uses getpass to prompt for a password, time to pause between commands
#
# Author: M. Browm
# Email: matt.brown6@wework.com
import paramiko
import time
import getpass
ssh_client = paramiko.SSHClien... |
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="openssl-gtk",
version="1.1.1",
author="Muhammed Çamsarı",
license='MIT',
author_email="Muhammedcamsari@icloud.com",
description="Perform your Openssl operations without using a termina... |
/**
* Copyright 2013-2019 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
/* Magic Mirror Config
*
* By Michael Teeuw http://michaelteeuw.nl
* Modified by Ron Record http://ronrecord.com
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
// address: "localhost",
address: "0.0.0.... |
# coding=utf-8
# Copyright (c) 2019, NVIDIA CORPORATION. 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 re... |
const electron = require('electron')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window... |
module.exports = {
presets: ["next/babel"],
plugins: [["styled-components", { ssr: true }], "inline-react-svg"]
}
|
/**
* snd.js
* three.js plugin
*
* The MIT License (MIT)
* copyright (c) 2014 N_H <h.10x64@gmail.com>
*
* 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 restricti... |
DV.Schema.helpers = {
HOST_EXTRACTOR : (/https?:\/\/([^\/]+)\//),
annotationClassName: '.DV-annotation',
// Bind all events for the docviewer
// live/delegate are the preferred methods of event attachment
bindEvents: function(context){
var boundZoom = this.events.compile('zoom');
var ... |
from django.core.management.base import BaseCommand
from django.db import connection
from django_postgres_matviews.utils import get_matviews
class Command(BaseCommand):
def handle(self, *args, **options):
matviews = get_matviews()
if matviews:
print("\n".join(matviews))
|
import datetime
import glob
import json
import logging
import os
import pwd
import urlparse
import re
from copy import deepcopy
# Requests
import requests
# ZeroMQ
import zmq
import psutil
CENSOR_FIELD_WHITELIST = [
'msg',
'failed',
'changed',
'results',
#'start',
#'end',
#'delta',
... |
import React, {Component } from 'React';
import {Link, withRouter} from 'react-router-dom';
export default class LandingPage extends Component {
render() {
return (
<div className="container">
<div className="jumbotron mt-5">
<div className="col-sm-8 mx-auto"... |
"use strict";
/**************************
* Import important stuff *
**************************/
// Nothing
/*****************************
* Define the entity handler *
*****************************/
/**
* Converts entities (usernames, code, ...) in Telegram messages to Discord format
*
* @param {DiscordUser... |
""" A simple helloworld example
Different workflows are shown here.
"""
from tensorflow import keras
from tensorflow.keras import layers
from kerastuner.tuners import RandomSearch
from kerastuner.engine.hypermodel import HyperModel
from kerastuner.engine.hyperparameters import HyperParameters
(x, y), (val_x, val_y... |
import _ from 'lodash';
import Function_bindRecursive from './utils/Function/bindRecursive';
_.mixin({
product(...collections) {
let product = [];
Function_bindRecursive((recur, collection) => {
if (collection.length < collections.length) {
_.forEach(collections[collection.length], value => {
recur(_... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _conf=_interopRequireDefault(require("../../conf")),_xeUtils=_interopRequireDefault(require("xe-utils")),_queue=_interopRequireDefault(require("./queue")),_tools=require("../../tools");function _interopRequireDefault(e){retur... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.run = undefined;
var _assign;
function _load_assign() {
return _assign = _interopRequireDefault(require('babel-runtime/core-js/object/assign'));
}
var _keys;
function _load_keys() {
return _keys = _interopRequireDefault(requ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var gradients_1 = require("./gradients");
var tracking_1 = require("./tracking");
exports.tidy = tracking_1.Tracking.tidy;
exports.keep = tracking_1.Tracking.keep;
exports.dispose = tracking_1.Tracking.dispose;
exports.time = tracking_1.Tracki... |
/**
* Форматирование элемента списка по умолчанию
* @param item
* @returns {*}
*/
function TemplateResult(item) {
return item.text;
}
/**
* Форматирование элемента списка при AJAX-запросе
* @param item
* @returns {*}
*/
function TemplateResultAJAX(item) {
return item.text;
}
/**
* Форматирование <не помню... |
const getRumRgba = () =>{
let clr = 'rgba(';
for(let i=0; i < 3; i++){
clr = clr + Math.floor( Math.random()*255) + ',';
}
clr = clr + Math.floor( Math.random()*10)/10 + ')';
return clr;
};
$(function(){
let size = document.getElementsByClassName("choice-box"... |
#!/usr/bin/env node
const app = require('./index')
const config = require('./config')
const bole = require('bole')
const { checkDatabaseConnection } = require('./application-status/databases-status')
bole.output({ level: 'debug', stream: process.stdout })
const log = bole('server')
log.info('server process starting')... |
/*************************************************************
*
* MathJax/fonts/HTML-CSS/TeX/png/Size4/Regular/Main.js
*
* Defines the image size data needed for the HTML-CSS OutputJax
* to display mathematics using fallback images when the fonts
* are not availble to the client browser.
*
* -----------... |
import pytest
from icevision.imports import *
from icevision import *
from icevision.models.rcnn import mask_rcnn
@pytest.fixture
def sample_dataset(samples_source):
images_dir = samples_source / "images"
images_files = get_image_files(images_dir)[-2:]
images = [open_img(path) for path in images_files]
... |
/*!
* Packery PACKAGED v2.1.1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
* or Packery Commercial License for commercial use
*
* http://packery.metafizzy.co
* Copyright 2016 Metafizzy
*/
/**
* Bridget makes jQuery widgets
* v2.0.0
* MIT license
*/
/* jshint browser: true, str... |
module.exports = function(grunt) {
grunt.initConfig({
connect: {
default_options: {},
dev: {
options: {
port: 9999,
keepalive: true
}
}
},
watch: {},
jshint: {
all: ["../../src/**/*.js", "./app/js/webm/*.js"],
options: {
jshintr... |
'use strict';
class FaceCoordinate {
constructor() {
/**
* 顔座標のindex
* scaleX(-1) している場合(前面カメラ利用時)、座標が鏡のように左右入れ替わるので
* それを補填する
*/
this._indexForMapping = [
// 輪郭
{'from': 0, 'to' : 14},
{'from': 1, 'to' : 13},
{'f... |
import * as _ from 'lodash';
export default function (record) {
var index = _.findIndex(this.data, { _id: record._id });
this.data.splice(index, 1, record);
this.updatePublisher.next(record);
this.publish();
}
//# sourceMappingURL=update-reverter.js.map |
import React, {
Component
} from "react";
export default class CarouselSkeletonLoader extends Component {
render() {
return (
<div style={{ minWidth: '16em', minHeight: '25em', margin: '.2em', overflow: 'hidden', boxShadow: 'none'}} className="skeleton-movie-image">
</div>
);
}
}
|
/**
* Created by fengqiaogang on 15/4/4.
*/
var path = require("path");
var fs = require('fs');
var child_process = require('child_process');
var download = function ($PATH, $URL) {
if (!fs.existsSync($PATH)) {
fs.mkdirSync($PATH);
}
console.log("PATH : ", $PATH);
console.log("URL : ", $URL)... |
/*! For license information please see commons-5965a56c7b6ef2e118ee.js.LICENSE.txt */
(window.webpackJsonp = window.webpackJsonp || []).push([
[1],
{
"+6XX": function (t, e, r) {
var n = r("y1pI");
t.exports = function (t) {
return n(this.__data__, t) > -1;
};
},
"+JPL": functi... |
// ag-grid-enterprise v19.1.3
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ag_grid_community_1 = require("ag-grid-community");
var stylesheet_1 = require("./styles/stylesheet");
var convertLegacyType = function (type) {
var t = type.charAt(0).toLowerCase();
return t === 's' ?... |
'use strict';
var path = require('path');
module.exports = {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.(js|jsx)$/,
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'test')
... |
/**
* The class that is used for bot invites.
* @class
* @param {object} data The raw payload data that was sent from the server.
* @property {string} bot The ID of the bot that was viewed.
*/
class BotInviteEvent {
constructor(data) {
this.bot = data.bot;
}
}
module.exports = BotInviteEvent; |
import React, { useState } from 'react'
import CIcon from '@coreui/icons-react'
import {
CCard,
CCardBody,
CCol,
CRow,
CTableRow,
CAvatar,
CTable,
CTableHead,
CTableHeaderCell,
CTableBody,
CTableDataCell,
CProgress,
} from '@coreui/react'
import portuguese from '../../../translations/portuguese.... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-modifyPwdNext"],{"348d":function(t,e,s){"use strict";s.r(e);var i=s("f61b"),n=s("a3e5");for(var a in n)"default"!==a&&function(t){s.d(e,t,function(){return n[t]})}(a);var r=s("2877"),o=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"36833f34",nul... |
import pybullet as p
from time import sleep
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
physicsClient = p.connect(p.GUI)
p.setGravity(0,0,0)
bearStartPos1 = [-3.3,0,0]
bearStartOrientation1 = p.getQuaternionFromEuler([0,0,0])
bearId1 = p.loadURDF("teddy_large.urdf", bearStartPos1, bearSta... |
define(['angular', 'services/request-edit'], function(angular, loadRequestEdit) {
'use strict';
return function(gettextCatalog) {
var RequestEdit = loadRequestEdit(gettextCatalog);
/**
* store quantity_unit for each loaded right ID
*/
var quantity_unit... |
var searchData=
[
['email_0',['Email',['../classbackend_1_1Models_1_1Customer.html#addf7b4436db9b7794f3ff57468e5efcb',1,'backend.Models.Customer.Email()'],['../classbackend_1_1Models_1_1CustomerReport.html#addf7b4436db9b7794f3ff57468e5efcb',1,'backend.Models.CustomerReport.Email()'],['../classbackend_1_1Models_1_1Fee... |
from collections import defaultdict
d = defaultdict(list)
n, m = (int(i) for i in input().split())
for pos in range(n):
d[input()].append(pos + 1)
for pos in range(m):
print(*d.get(input(), [-1]), sep=' ')
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_components_Projects_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/Projects.vue?vue&type=script&lang=js":
/*!*******************... |
import React from 'react'
import SvgIcon from '../SvgIcon'
export default function YoutubeIcon(props) {
return (
<SvgIcon {...props} viewBox="0 0 16 12">
<path
d="M-2-4h20M-2 16h20-20zM15.6 1.741c.332 1.243.332 3.835.332 3.835s0 2.593-.333 3.835a1.995 1.995 0 0 1-1.408 1.409c-1.243.333-6.225.333-6.... |
export {default} from 'koenig-editor/helpers/card-is-available';
|
const { Client, Message, Guild } = require("discord.js");
module.exports = {
name: "unlock",
aliases: [""],
/**
*
* @param {Client} client
* @param {Message} message
* @param {Guild} guild
*/
run: async(client, message, args, prefix, lang, admins, db, MessageE... |
const yargs = require('yargs')
const Server = require('./app')
const argv = yargs
.usage('anywhere [options]')
.option('p',{
alias:'port',
describe:'端口号',
default:'8000'
})
.version()
.alias('v','version')
.help()
.argv;
const sd = new Server(argv)
sd.start() |
const { max } = require('lodash');
const Timer = require('./timer');
const RollingAverage = require('./rolling-average');
const downloadAverage = new RollingAverage();
const cacheAverage = new RollingAverage();
const timer = new Timer();
let defaultHost = '';
function constructUrl(originalUrl) {
const sliced = or... |
import json
import os
import pytest
from opentrons.server import endpoints
from opentrons.config import pipette_config
from opentrons import config, types
@pytest.fixture
def restore_restart_required():
yield
endpoints.settings._SETTINGS_RESTART_REQUIRED = False
@pytest.fixture
async def attached_pipettes... |
"""
Threshold Graphs - Creation, manipulation and identification.
"""
from math import sqrt
import networkx as nx
from networkx.utils import py_random_state
__all__ = ["is_threshold_graph", "find_threshold_graph"]
def is_threshold_graph(G):
"""
Returns `True` if `G` is a threshold graph.
Parameters
... |
"""Enrich source M365 profiles on Spark / locally
...
"""
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
import argparse
# import logging, sys
import base64
import json
import os
import sys
import trace... |
define({
"_widgetLabel": "Disegna",
"selectDrawMode": "Seleziona modalità disegno",
"clear": "Cancella",
"point": "Punto",
"line": "Linea",
"polyline": "Polilinea",
"freehandPolyline": "Polilinea a mano libera",
"triangle": "Triangolo",
"extent": "Inviluppo",
"circle": "Cerchio",
"ellipse": "Ellis... |
from unittest import TestCase
from MyWriter import MyWriter
import os
class TestMyWriter(TestCase):
def setUp(self) -> None:
os.makedirs("./test_MyWriter/", exist_ok=True)
def test_write_ip_list(self):
assert_list: list[str] = ['10.0.0.1', '192.234.54.72']
test_list: list[str] = []
... |
"""
Print only unique words from sys.argv
"""
import sys
s = set(sys.argv[1:])
print s
for i in s: print i,
|
# coding=utf-8
"""
Common methods for UI code.
"""
from pathlib import Path
from toolz.functoolz import identity
from datacube.utils import read_documents, InvalidDocException, SimpleDocNav, is_supported_document_type
def get_metadata_path(dataset_path):
"""
Find a metadata path for a given input/dataset pa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// TODO(kyegupov): drop this, just use plain lodash
exports.clone = require("lodash.clone");
exports.set = require("lodash.set");
exports.get = require("lodash.get");
exports.assign = require("lodash.assign");
exports.flatten = require("lodash... |
import request from '@/utils/request'
export default {
addClassSchedule(grade,major) {
return request({
url: `/eduservice/cs/addCS`,
method: 'post'
})
},
getClassSchedule(csQuery) {
return request({
url: `/eduservice/cs/pageCSCondition`,
... |
const util = require('util');
const {ipcMain} = require('electron');
const UA = require('./user-agents')();
const log = require('./functions/log');
const client = require('./client');
const debugState = require('./functions/debug');
const domain = require('./functions/domain')();
const search = require('./functions/s... |
/* @flow strict-local */
import { streamNarrow } from '../../utils/narrow';
import { getScrollStrategy } from '../scrollStrategy';
import * as eg from '../../__tests__/lib/exampleData';
const someNarrow = streamNarrow(eg.stream.name);
const anotherNarrow = streamNarrow(eg.makeStream().name);
describe('getScrollStrat... |
"use strict";
var _v8flags = require("v8flags");
var _path = require("path");
var _child_process = require("child_process");
var _url = require("url");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new ... |
const express = require('express');
const path = require('path');
const cluster = require('cluster');
const numCPUs = require('os').cpus().length;
const isDev = process.env.NODE_ENV !== 'production';
const PORT = process.env.PORT || 5000;
// Multi-process to utilize all CPU cores.
if (!isDev && cluster.isMaster) {
... |
(function(){var $,Ansi,CLASS_ANSI,CLASS_BLURRED,CLASS_CURSOR,CLASS_HEADER,CLASS_INPUT,CLASS_OLD_INPUT,CLASS_OLD_PROMPT,CLASS_PREFIX,CLASS_PROMPT,CLASS_PROMPT_TEXT,DEFAULT_INDENT_WIDTH,DEFAULT_PROMPT_CONINUE_LABEL,DEFAULT_PROMPT_LABEL,EMPTY_DIV,EMPTY_SELECTOR,EMPTY_SPAN,ESCAPE_CHAR,ESCAPE_SYNTAX,E_KEYPRESS,JQConsole,KEY... |
"""Automatic label search helpers."""
import itertools
import torch
import tqdm
import multiprocessing
import numpy as np
import scipy.spatial as spatial
import scipy.special as special
import scipy.stats as stats
import logging
logger = logging.getLogger(__name__)
def select_likely_words(train_logits, train_labels... |
/**
* @class Ext.layout.container.VBox
* @extends Ext.layout.container.Box
* <p>A layout that arranges items vertically down a Container. This layout optionally divides available vertical
* space between child items containing a numeric <code>flex</code> configuration.</p>
* This layout may also be used to set the... |
/*
*
* Get countries constants
*
*/
export const GET_COUNTRY = 'app/get_country/GET_COUNTRY';
export const GET_COUNTRY_SUCCESS = 'app/get_country/GET_COUNTRY_SUCCESS';
export const GET_COUNTRY_FAILED = 'app/get_country/GET_COUNTRY_FAILED';
|
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com>
# SPDX-License-Identifier: BSD-3-Clause
""" ULX3S platform definitions.
This is a non-core platform. To use it, you'll need to set your LUNA_PLATFORM variable,
as appropriate:
> export LUNA_PLATFORM="luna.gatew... |
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
body {
background-color: #666;
color: white;
background-image: linear-gradient(to right, #18232c, #354c58);
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', ... |
/**
* @license Highcharts JS v7.1.1 (2019-04-09)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Kacper Madej
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exp... |
// For info about this file refer to webpack and webpack-hot-middleware documentation
// For info on how we're generating bundles with hashed filenames for cache busting: https://medium.com/@okonetchnikov/long-term-caching-of-static-assets-with-webpack-1ecb139adb95#.w99i89nsz
import webpack from 'webpack';
import Extra... |
import { TypingAnimationTimerType, } from './TimerTypes.js';
var SetSkipTypingAnimation = function (value) {
if (value === undefined) {
value = true;
}
this.skipTypingAnimation = value;
// Skip current playing typing-animation
var timers = this.timeline.getTimers(TypingAnimationTimerType);... |
/*
* @version $Id: RokBooster.js 4588 2012-10-27 02:10:21Z btowles $
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
(function(){var a=this.RokBooster={init:function(){a.ClearCache(... |
# Copyright 2019 Open Source Robotics Foundation, 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... |
import logging
import time
from typing import Any, Optional, Set, Tuple, List, Dict
from blspy import PrivateKey, G2Element, G1Element
from chia.consensus.block_record import BlockRecord
from chia.pools.pool_config import PoolWalletConfig, load_pool_config, update_pool_config
from chia.pools.pool_wallet_info import (... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/welcome.vue?vue&type=script&lang=js&":
/*!***************************************************************************************************... |
import errors from 'feathers-errors'
export default options => {
return hook => {
if(hook.params) {
hook.params = Object.assign({}, hook.params, {mongoose: {upsert: true} })
}
}
}
|
sap.ui.define(["sap/ui/core/util/Server","sap/ui/model/json/JSONModel","sap/base/Log","sap/base/util/UriParameters"],function(e,t,r,a){"use strict";var i,o="covid19/ui/infected/cv19-tracing-ui-infected/",n=o+"localService/mockdata";var s={init:function(s){var u=s||{};return new Promise(function(s,c){var p=sap.ui.requir... |
// Icon: Linear.ConstructionCone
import React from 'react';
import defaultProps from 'reactium_modules/@atomic-reactor/reactium-ui/Icon/defaultProps';
export default props => (
<svg {...defaultProps} {...props}>
<g>
<path d="M947.2 870.4h-33.459l-282.992-754.65c-13.574-36.197-54.49-64.55-93.14... |
import stampit from '../src/stampit';
import test from 'tape';
// Compose
test('stampit().compose()', (t) => {
let closuresCalled = 0;
const a = stampit({
methods: {
method() { return false; }
},
refs: { ref: false },
init() {
closuresCalled++;
},
props: { prop:... |
/**
* Module dependencies.
*/
var path = require('path'),
policy = require('../policies/mago.server.policy'),
dashboardController = require(path.resolve('./modules/mago/server/controllers/dashboard.server.controller'));
module.exports = function(app) {
/*========== chart ============ */
app.route(... |
module.exports = function(grunt) {
grunt.registerTask( 'default', [ 'clean', 'copy', 'hapi', 'watch'] );
grunt.registerTask( 'build', [ 'clean', 'copy' ] );
grunt.registerTask( 'run', [ 'hapi', 'watch' ]);
grunt.initConfig({
watch: {
hapi: {
files: [
... |
'use strict';
(function () {
angular.module('main').filter('displayname', [displayname]);
function displayname () {
var reg = new RegExp('sip:');
return function (data) {
if (!data) {
return data;
}
if (reg.test(data)) {
var noSip = data.replace('sip:', '');
var ... |
import rlkit.misc.hyperparameter as hyp
from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader
from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment
from rlkit.launchers.launcher_util import run_experiment
from rlkit.launchers.arglauncher import run_variants
from rlkit.t... |
import { Bot } from './bot';
import { CovalentAPI } from '../util/covalentapi';
import { TarotUtils } from '../util/tarot/tarotUtils'
class tarotBot extends Bot {
constructor() {
super();
this.provider = "";
}
readConfig() {
}
async getCollateralVaults() {
const address =... |
# -*- coding: utf-8 -*-
from rest_framework import status as http_status
from boto.exception import S3ResponseError
import mock
from nose.tools import (assert_equal, assert_equals,
assert_true, assert_in, assert_false)
import pytest
from framework.auth import Auth
from tests.base import OsfTestCase, get_default_m... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
$(function () {
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
if( originalOptions.type == 'POST' || options.type == 'POST' ) {
var data = originalOptions.data;
if (originalOptions.data !== undefined) {
if (Object.prototype.toString.call(originalOptions.... |
import state from './donationsBoard/state'
import getters from './donationsBoard/getters'
import mutations from './donationsBoard/mutations'
import actions from './donationsBoard/actions'
export default {
state: state,
getters: getters,
mutations: mutations,
actions: actions
}
|
from flask import make_response
from flask import request
from flask import redirect
from flask import abort
from flask import render_template
from flask import jsonify
from flask import send_from_directory
from flask import send_file
from flask import safe_join
from flask import url_for
from sqlalchemy.sql import func... |