text stringlengths 3 1.05M |
|---|
define(['exports', 'moment'], function (exports, _moment) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DateFormatValueConverter = undefined;
var moment = _interopRequireWildcard(_moment);
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) ... |
/*!
* Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
* @class Ext.data.Request
* A simple Request class used internally to the data package to provide more generalized remote-requests
* to a DataProxy.
* TODO Not yet implemented. Implemen... |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
__all__ = ['settings']
class Settings(object):
def __init__(self):
self.user_login, self.user_hash, self.domain = None, None, None
self.responsible_user = None
def set(self, user_login, user_hash, domain, respo... |
#!/usr/bin/env python
import random
import time
from datetime import datetime
from changes import mock
from changes.config import db, create_app
from changes.constants import Result, Status
from changes.db.utils import get_or_create
from changes.models import (
Change, Job, JobStep, LogSource, TestResultManager,... |
# Copyright 2015 The TensorFlow 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 required by applica... |
#!/usr/bin/env python3
import nestedtext as nt
from pathlib import Path
from voluptuous import Schema, Invalid, Extra, Required, REMOVE_EXTRA
from pprint import pprint
# Settings schema
# First define some functions that are used for validation and coercion
def to_str(arg):
if isinstance(arg, str):
return ... |
const RequestRepository = require('src/request/request');
const request = new RequestRepository();
/**
* Controller: Fetch all requested items
* @param {Request} req http request variable
* @param {Response} res
* @returns {Callback}
*/
function fetchAllRequests(req, res) {
let { page, filter, sort, query } = r... |
const G_TRACKING_ID = 'UA-143927990-1';
(function($){
$(function(){
$('.sidenav').sidenav();
$('.parallax').parallax();
<!-- Global site tag (gtag.js) - Google Analytics -->
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('c... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# 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/... |
const EventEmitter = require('events').EventEmitter;
const binding = process.binding('atom_browser_tray');
const Tray = binding.Tray;
Object.setPrototypeOf(Tray.prototype, EventEmitter.prototype);
const Menu = require('./menu');
Tray.prototype._init = function () {
this.menu = null;
}
Tray.prototype.on... |
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @fileOverview The Dialog User Interface plugin.
*/
CKEDITOR.plugins.add( 'dialogui', {
onLoad: function() {
var initPrivateOb... |
import React from 'react'
import CIcon from '@coreui/icons-react'
const _nav = [
{
_tag: 'CSidebarNavItem',
name: 'Dashboard',
to: '/dashboard',
icon: <CIcon name="cil-file" customClasses="c-sidebar-nav-icon"/>,
},
{
_tag: 'CSidebarNavTitle',
_children: ['PROJECT']
},
{
_ta... |
import hashlib
import logging
import os
from urllib.parse import urljoin, urlsplit
import django_libsass
import sass
from compressor.filters.cssmin import CSSCompressorFilter
from django.conf import settings
from django.core.files.base import ContentFile
from django.core.files.storage import default_storage
from djang... |
var express = require("express"),
mongoose = require("mongoose"),
passport = require("passport"),
User = require("./models/user"),
Post = require("./models/post"),
Comment = require("./models/comment"... |
// person model
// var Person = require('./core/person');
//
module.exports = function (db, cb) {
//db.load(__dirname + "/test-model-pet", function (err) {
// if (err) return cb(err);
db.define("person", {
name : String,
surname : { type: "text", size: 150, unique: true },
age : { type: "num... |
import React from 'react';
import { graphql } from 'gatsby';
export function Tag({ name }) {
return <span className="tag">{name}</span>;
}
export const tagFragment = graphql`
fragment TagFragment on GhostTag {
id
name
slug
}
`;
export const postTagFragment = graphql`
fragment PostTagsFragment on ... |
import mongoose from 'mongoose'
const PostSchema = new mongoose.Schema({
text: {
type: String,
required: 'Text is required'
},
photo: {
data: Buffer,
contentType: String
},
likes: [{type: mongoose.Schema.ObjectId, ref: 'User'}],
comments: [{
text: String,
created: { type: Date, defau... |
(function(a,b){if('function'==typeof define&&define.amd)define(['exports','react'],b);else if('undefined'!=typeof exports)b(exports,require('react'));else{var c={exports:{}};b(c.exports,a.react),a.loop=c.exports}})(this,function(a,b){'use strict';Object.defineProperty(a,'__esModule',{value:!0});var e=function(h){return... |
import numpy as np
import pytest
from itertools import permutations
from itertools import combinations_with_replacement
from mchap.assemble import DenovoMCMC
from mchap.calling.classes import (
CallingMCMC,
PosteriorGenotypeAllelesDistribution,
GenotypeAllelesMultiTrace,
)
from mchap.testing import simulat... |
# coding:utf-8
def quick_sort(alist, first, last):
"""快速排序"""
if first >= last:
return
mid_value = alist[first]
low = first
high = last
while low < high:
# high 左移
while low < high and alist[high] >= mid_value:
high -= 1
alist[low] = alist[high]
... |
//>>built
define("dojox/gauges/GlossyCircularGaugeBase",["dojo/_base/declare","dojo/_base/lang","dojo/_base/connect","dojox/gfx","./AnalogGauge","./AnalogCircleIndicator","./TextIndicator","./GlossyCircularGaugeNeedle"],function(_1,_2,_3,_4,_5,_6,_7,_8){
return _1("dojox.gauges.GlossyCircularGaugeBase",[_5],{_defaultIn... |
"""
Support for Google Home bluetooth tacker.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.googlehome/
"""
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.aiohttp_... |
/*
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 us... |
import { html, render } from "lit-html";
import Criteria from "../components/Charts/Criteria";
import Evaluation from "../components/Evaluation";
import LayersTab from "../components/LayersTab";
import BrushTool from "../components/Toolbar/BrushTool";
import EraserTool from "../components/Toolbar/EraserTool";
import In... |
import voluptuous as vol
import esphomeyaml.config_validation as cv
from esphomeyaml import core, pins
from esphomeyaml.components import sensor
from esphomeyaml.const import CONF_COUNT_MODE, CONF_FALLING_EDGE, CONF_INTERNAL_FILTER, \
CONF_MAKE_ID, CONF_NAME, CONF_PIN, CONF_PULL_MODE, CONF_RISING_EDGE, CONF_UPDATE... |
const UserError = require('./user_error')
class Command {
constructor (params, parent, hash) {
this.params = params
this.parent = parent
this.hash = parent ? parent.hash : {}
this.uniqueHash = parent ? parent.uniqueHash : {}
this.parentBase = (this.parent && this.parent.base && this.parent.base +... |
import logging
from gwcs.wcs import WCS
import astropy.units as u
from ..wcs_adapter import WCSAdapter
__all__ = ['GWCSAdapter']
class GWCSAdapter(WCSAdapter):
"""
Adapter class that adds support for GWCS objects.
"""
wrapped_class = WCS
axes = None
def __init__(self, wcs, unit=None):
... |
/**
* @license
* Copyright 2016 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 requir... |
# Copyright (c) 2020 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.
"""A ReadFromDatastore alternative for fetching entities in a timestamp range.
The main difference from ReadFromDatastore is the query splitting method (... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy
def event_detection(feature_data, model_container, hop_length_seconds=0.01, smoothing_window_length_seconds=1.0, decision_threshold=0.0, minimum_event_length=0.1, minimum_event_gap=0.1):
"""Sound event detection
Parameters
----------
feature... |
// JS script for WebPuppeteer
// it can do stuff!
console.log("Loading google.com...");
tab = sys.newTab();
// dump all network traffic to this file
tab.saveNetwork("google_img.bin");
tab.browse("http://www.google.com/ncr");
console.log("loaded, messing with the page");
tab.type("cats");
tab.typeEnter();
tab.wait()... |
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'healthy-at-home.settings')
application = get_wsgi_application()
|
// point free
// 例子1: Hello World -> hello_world
const fp = require('lodash/fp')
const f = fp.flowRight(fp.replace(/\s+/g, '_'), fp.toLower)
console.log(f('Hello World')) // hello_world
// 例子2: 将字符串首字母转为大写,使用. 分割
// world wild web -> W. W. W
const firstLetterToUpper_0 = fp.flowRight(fp.join('. '), fp.map(fp.first),... |
"""Contains logging configuration data."""
import logging
import logging.config
from jade.extensions.registry import Registry
def setup_logging(
name, filename, console_level=logging.INFO, file_level=logging.INFO, mode="w", packages=None
):
"""Configures logging to file and console.
Parameters
----... |
/**
* Represents the main
*/
var RadFeedback = (function () {
function RadFeedback() {
}
RadFeedback.init = function (apiKey, serviceUri, uid) {
};
RadFeedback.show = function () {
};
return RadFeedback;
})();
exports.RadFeedback = RadFeedback;
|
export const refreshTokenSetup = (res) => {
// Timing to renew access token
let refreshTiming = (res.tokenObj.expires_in || 3600 - 5 * 60) * 1000;
const refreshToken = async () => {
const newAuthRes = await res.reloadAuthResponse();
refreshTiming = (newAuthRes.expires_in || 3600 - 5 * 60) * 1... |
// Copyright 2019 Google LLC
//
// 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 ... |
'use strict';
module.exports = (sequelize, DataTypes) => {
const MenuList = sequelize.define('MenuList', {
id: {
allowNull: false,
type: DataTypes.UUID,
primaryKey: true,
defaultValue: DataTypes.UUIDV4,
validate: {
isUUID: 4
},
notNull: {
msg: 'UUID cannot be null.'
}
}
}, {});
Me... |
'use strict';
///This is from https://github.com/porchdotcom/nock-back-mocha with some modifications
var path = require('path');
var nock = require('nock');
var sanitize = require('sanitize-filename');
nock.enableNetConnect();
var nockFixtureDirectory = path.resolve(path.resolve(__dirname,'fixtures'));
var filenam... |
/* global describe, it */
'use strict';
// Load dependencies
var should = require('should');
var Query = require('bazalt-query');
// Class to test
var QueryNodeMysqlTranformer = require('../');
describe('Test QueryNodeMysqlTranformer class', function() {
});
|
$(document).ready(function() {
smoothScrool(1000);
timeRunOut(37,67);
console.log('test');
});
function smoothScrool (duration) {
$('a[href^="#"]').on('click', function(event) {
var target = $( $(this).attr('href') );
if (target.length) {
event.preventDefault();
$('html, ... |
import {RomContextProvider} from "./RomContext";
import {shallow} from "enzyme";
class LocalStorageMock {
constructor() {
this.store = {};
}
clear() {
this.store = {};
}
getItem(key) {
return this.store[key] || null;
}
setItem(key, value) {
this.store[key]... |
(function() {
"use strict";
angular
.module("app.dashboard")
.factory("ExposureFactory", function ExposureFactory(
$translate,
$filter,
$window,
$timeout,
$http,
$sanitize,
Utils,
Alertify
) {
ExposureFactory.init = function() {
ExposureFacto... |
import React, { memo, forwardRef } from 'react'
import Icon from '../src/Icon'
const svgPaths16 = [
'M1.067 0C.477 0 0 .478 0 1.067V3.2c0 .59.478 1.067 1.067 1.067h2.24a5.342 5.342 0 002.9 3.734 5.337 5.337 0 00-2.9 3.733h-2.24C.477 11.733 0 12.21 0 12.8v2.133C0 15.523.478 16 1.067 16H6.4c.59 0 1.067-.478 1.067-1.06... |
import React from "react";
import PropTypes from "prop-types";
import { Link, graphql } from "gatsby";
import { getImage } from "gatsby-plugin-image";
import Layout from "components/Layout";
import Features from "components/Features";
import BlogRoll from "components/BlogRoll";
import FullWidthImage from "components/F... |
import React from 'react'
import VideoListItem from './video_list_item'
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key= {video.etag}
video={video} />
)
})
return (
... |
const { createComment, bot } = require('./comment-bot');
const {
trigger: configTrigger,
releaseMapper: configReleaseMapper,
users,
labels: configLabels,
released
} = require('./config.json');
const travisTrigger = require('./travis-bot');
const trigger = configTrigger || 'release';
const releaseM... |
import json
import os
import math
# metadata
metadata = {
'protocolName': 'Station A SLP-005v2',
'author': 'Chaz <protocols@opentrons.com>',
'source': 'Custom Protocol Request',
'apiLevel': '2.3'
}
NUM_SAMPLES = 8
SAMPLE_VOLUME = 300
TIP_TRACK = False
CTRL_SAMPLES = 2
RACK_DEF = 'opentrons_24_tuberack... |
module.exports = [
{
text: '指南', link: '/guide/'
},
{
text: 'API文档', link: '/apidocs/'
},
{
text: '捐赠', link: '/donate/'
},
{
text: '资源',
items: [
{
text: '后台前端解决方案',
items: [
{text: 'adm... |
(function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory(root)); } else if (typeof exports === 'object') { module.exports = factory(root); } else { root.smoothScroll = factory(root); } })(typeof global !== 'undefined' ? global : this.window || this.global, function (root) {
'... |
define([],function(){
return {
props:['config'],
setup(props,ctx){
const value=Vue.ref('');
const onParentSearch=function (){
let val=props.config.activeValue||'';
if(props.config.isMore){
if(typeof val==='number'){
... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010 Ralf Habacker <ralf.habacker@freenet.de>
# Copyright Hannah von Reth <vonreth@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code m... |
""" Cisco_IOS_XR_infra_rmf_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR infra\-rmf package operational data.
This module contains definitions
for the following management objects\:
redundancy\: Redundancy show information
Copyright (c) 2013\-2016 by Cisco Systems, Inc.
All rights r... |
import Header from '../components/admin/Header'
import Footer from '../components/admin/Footer'
import React, {useState} from 'react'
import {connect} from 'react-redux';
import AdminCabinet from '../components/admin/AdminCabinet';
function mapStateToProps(state) {
return {adminReducer:state.adminReducer}
}
const A... |
const flashData = $('.flash-data').data('flashdata');
if (flashData) {
Swal.fire({
title: 'Berhasil',
text: flashData,
icon: 'success'
});
}
//tombol hapus
// $('.tombol-hapus').on('click', function (e) {
// e.preventDefault();
// const href = $(this).attr('href');
// Swal.fire({
// ti... |
'use strict';
//Elements from the DOM
var playerForm = document.getElementById('playernameform');
var playMessage = document.getElementById('gogame');
var playerNameSection = document.getElementById('player-name-section');
var goToGame = document.getElementById('gotogame');
//button hides rules until presssed
functio... |
import re
import datetime
from django.utils.encoding import python_2_unicode_compatible
coversion_specification_re = re.compile(
"(?P<spec>%(?P<flag>[-_0^#]?)(?P<width>[0-9]*)(?P<type>[bBmyY]))"
)
def _format_to_re(fmt):
output = [datetime.date(2001, i, 1).strftime(fmt) for i in range(1, 13)]
return "(?... |
import ons from 'onsenui';
ons.ready(function(){
// new Vue() should be called after ons.ready.
// Otherwise something will be broken.
new Vue({
el: '#app',
template: `
<div>
<span id="is-mounted"></span>
<h2>No attributes</h2>
<v-ons-input id="no-attributes"></v-ons-input>... |
const JSONAPISerializer = require('jsonapi-serializer').Serializer
const UserSerializer = new JSONAPISerializer('users', {
nullIfMissing: true,
attributes: ['firstName', 'lastName', 'author'],
dataLinks: {
self: function (data) {
console.log('links', data)
return `/users/${data.id}`
}
},
... |
'use strict'
var bel = require('bel')
var layout = require('../layouts/default')
var createForm = require('../elements/createForm')
var extend = require('extend-shallow')
module.exports = function new_ (state) {
state = extend({}, state, {
title: state.pages.new.title,
body: bel`<section>
<h1>${state.pa... |
from setuptools import setup, find_packages
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='nlp2go',
version='0.4.14',
description='hosting nlp models for demo purpose',
url='https://github.com/voidful/nlp2go',
author='Voidful',
author_email='voidful.stac... |
'use strict';
var MediaModel = require('./models/mediaModel.js'),
PlayModel = require('./models/playModel.js');
var DubAPIError = require('./errors/error.js'),
DubAPIRequestError = require('./errors/requestError.js');
var endpoints = require('./data/endpoints.js'),
events = require('./data/events.js'),
... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const RestaurantCard = ({ location, sampleItems, notables, yelp }) => {
return (
<RestaurantCard.Container>
<RestaurantCard.Card href={yelp} target="_blank">
<RestaurantCard.Location>{location}</Rest... |
import unittest
from Javascript_array_filter_7_kyu import get_even_numbers
class Filter(unittest.TestCase):
def test_1(self):
arr = [2, 4, 5]
result = [2, 4]
self.assertEqual(get_even_numbers(arr), result)
def test_2(self):
arr = []
result = []
self.assertEqua... |
(function() {
function SongPlayer($rootScope, Fixtures) {
var SongPlayer = {};
// PRIVATE ATTRIBUTES
/**
* @desc Information for current album
* @type {Object}
*/
var currentAlbum = Fixtures.getAlbum();
/**
* @desc Buzz object audio file
* @type {Object}
*/
var current... |
"""TLA+ abstract syntax tree."""
# Copyright 2020 by California Institute of Technology
# Copyright (c) 2008-2013 INRIA and Microsoft Corporation
# All rights reserved. Licensed under 3-clause BSD.
#
# This module is based on the files:
#
# <https://github.com/tlaplus/tlapm/blob/main/src/builtin.ml>
# <https://github.... |
import React from 'react'
const FloorImg = (props) => {
return (
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
viewBox="0 0 442 442"
width={props.width}
height={props.height}
>
<g>
<path d="M382,0H60c-5.523,0-1... |
import React from 'react';
import { View, Text, StyleSheet, FlatList, TouchableHighlight } from 'react-native';
import ScopeItem from './ScopeItem';
import propTypes from 'prop-types';
import Spinner from '../../../components/Spinner'
/**
* @example
* <ScopeList
* result={[]}
* loadMore={() => {}}
* onSelect=... |
var shell = require('shelljs');
module.exports = function(grunt) {
var TOMCAT_DIR = process.env.TOMCAT_HOME || '/usr/local/tomcat';
TOMCAT_DIR += '/';
var STATIC_FOLDER = "src/main/webapp/WEB-INF/";
grunt.initConfig({
watch: {
statics: {
files: [STATIC_FOLDER + "*... |
import React from 'react';
const Video = ({ className, src }) => {
return (
<video
className={className}
controls
loop
muted
src={src}/>
);
};
export default Video;
|
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'UI.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#######################... |
/* eslint-disable */
import React from 'react';
import { createSvgIcon } from '@wingscms/components';
export default createSvgIcon(
<React.Fragment>
<g>
<g>
<polygon points="448,224 448,160 416,160 416,224 352,224 352,256 416,256 416,320 448,320 448,256 512,256 512,224 " />
</g>
</g>
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../startOfHour/index.js');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('../_lib/convertToFP/index.js');
var _index4 = _interopRequireDefault(_index3);
function _interopRequireDefault(obj... |
const vha = {
install(Vue, options) {
document.addEventListener('deviceready', () => {
try {
if (typeof window.cordova.getAppVersion != 'undefined') {
Vue.prototype.$vha.appversion = window.cordova.getAppVersion
} else {
throw "cordova-plugin-app-version"
}
... |
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import Navbar from '../components/Navbar'
import './all.sass'
const TemplateWrapper = ({ children }) => (
<div>
<Helmet title="Nội Thất Cơ Đốc" />
<Navbar />
<div>{children()}</div>
</div>
)
TemplateWrapper... |
from django import forms
from django.forms import ModelForm
from django.contrib.auth.forms import AuthenticationForm
from .models import (
OyuUser,
OyuUserProfile,
CtfChallengeRequest,
)
from .consts import (
USER_REGION_CHOICES,
CTF_CHALLENGE_CATEGORY_CHOICES,
)
# Third party
from martor.fields i... |
const debugLog = false;
export const diffSeconds = (dt2, dt1) => {
let diff = (dt2.getTime() - dt1.getTime()) / 1000;
return Math.abs(Math.round(diff));
};
export const diffCount = (c2, c1) => {
let diff = c1 - c2;
return diff;
};
export const calcTickerValues = ({
prevTimestamp,
currTimestamp,
setTime... |
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.gameboard',
'mancalagamefactory',
'minmaxalgorithmfactory',
'playerfactory',
'uiComponents',
'myApp.view2',
'myApp.version'
]).
config(['$routeProvider', function... |
//snippet-sourcedescription:[<<FILENAME>> demonstrates how to ...]
//snippet-keyword:[JavaScript]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon S3]
//snippet-service:[s3]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[2018-06-02]
//snippet-sourceauthor:[daviddeyo]
// Copyright 2010... |
var mongoose = require('mongoose')
, Sport = require('../../models/sport')
, Team = require('../../models/team')
, Set = require('../../models/set')
, Game = require('../../models/game')
, Promise = require('bluebird')
;
// Shuffle an array and return it
function shuffle(o) { //v1.0
for... |
import Typography from "typography"
const typography = new Typography({
googleFonts: [
{
name: 'Nunito Sans',
styles: [
'300',
'400',
'600',
'700',
'800',
'900'
],
},
],
baseFontSize: '10px',
baseLineHeight: 1.666,
headerFontFamily: [... |
(function() {
/**
* @author mrdoob / http://mrdoob.com/
*/
var EventDispatcher = function() {}
EventDispatcher.prototype = {
constructor: EventDispatcher,
apply: function(object) {
object.addEventListener = EventDispatcher.prototype.addEventListener;
object.hasEventL... |
webpackJsonp([0],{"++K3":function(e,t){var n,i,r,o,s,a,l,u,c,d,f,h,p,m,v,g=!1;function y(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(... |
import React from 'react';
import { connect } from 'react-redux';
import * as actionCreators from '../actions/actionCreators';
import { withFormik, Form, Field } from 'formik';
import * as Yup from 'yup';
function Register({ errors, touched }) {
return (
<div className="form-column">
<h1 className="text">Registe... |
layui.use(['form','layer','laydate','table','laytpl'],function(){
var form = layui.form,
layer = parent.layer === undefined ? layui.layer : top.layer,
$ = layui.jquery,
laydate = layui.laydate,
laytpl = layui.laytpl,
table = layui.table;
//新闻列表
var tableIns = table.re... |
/*
* Kendo UI Web v2012.2.710 (http://kendoui.com)
* Copyright 2012 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public License (GPL) version 3.
*... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'about', 'zh-cn', {
copy: '版权所有 © $1。<br />保留所有权利。',
dlgTitle: '关于 CKEditor 4',
moreInfo: '相关授权许可信息请访问我们的网站:'
} );... |
# 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 or agreed to in writing, ... |
'use strict';
var rootCtrl = angular.module('rootCtrl', [
'ngResource',
'ngAnimate',
'colorPalette',
'ngFileUpload',
'vcRecaptcha',
'720kb.socialshare',
'slick'
])
.controller('rootController', [
'$rootScope',
'$scope',
'$timeout',
'$window',
'$location',
'$sce',
'$route',
'$q',
'$mdDialog',
'$mdToast',
'$fir... |
'use strict';
var async = require('async');
var colors = require('colors');
var express = require('express');
var glob = require('glob');
var merge = require('merge');
var passport = require('passport');
var path = require('path');
//////////////////////////////////////////////////////////////////////////////////////... |
import styled from "styled-components"
export const CommentsWrapper = styled.section`
margin: auto;
max-width: 70rem;
padding: 3rem 6.4rem 3rem;
iframe[src*="ads-iframe"] {
display: none;
}
#disqus_thread {
a {
color: var(--highlight) !important;
}
}
`
export const CommentsTitle = styl... |
import Autocomplete from "./Autocomplete.jsx";
import * as sinon from 'sinon';
describe('Autocomplete Test', () => {
let component: Autocomplete;
describe('Setup and Teardown', () => {
test('should create a valid component', () => {
component = new Autocomplete({});
expect(component).toBeDefined();... |
"""
author @goswami-rahul
To find minimum cost path
from station 0 to station N-1,
where cost of moving from ith station to jth station is given as:
Matrix of size (N x N)
where Matrix[i][j] denotes the cost of moving from
station i --> station j for i < j
NOTE that values where Matrix[i][j] and i > j does not
m... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export default {
today: '今日',
now: '現在時刻',
backToToday: '今日に戻る',
ok: '決定',
timeSelect: '時間を選択',
dateSelect: '日時を選択',
clear: 'クリア',
... |
deepmacDetailCallback("001816000000/24",[{"d":"2006-06-13","t":"add","a":"Cheongdong Building 2F\n1344-29 Seocho dong Seocho ku\nSeoul 137-070\n","c":"KOREA, REPUBLIC OF","o":"Ubixon Co., Ltd."},{"d":"2015-08-27","t":"change","a":"Cheongdong Building 2F Seoul KR 137-070","c":"KR","o":"Ubixon Co., Ltd."}]);
|
/*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
# /usr/bin/python
# To run this test you need python nose tools installed
# Run test just use:
# nosetest test_display.py
#
import os, sys, pickle
from SimpleCV import *
from nose.tools import with_setup, nottest
VISUAL_TEST = True # if TRUE we save the images - otherwise we DIFF against them - the default is Fals... |
import "./app1.css";
import $ from "jquery";
const $button1 = $("#add1");
const $button2 = $("#minus1");
const $button3 = $("#mul2");
const $button4 = $("#divide2");
const $number = $("#number");
const n = localStorage.getItem("n");
$number.text(n || 100);
$button1.on("click", () => {
let n = parseInt($number.text(... |