text stringlengths 3 1.05M |
|---|
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function ImXing2 (props) {
return GenIcon({"tag":"svg","attr":{"version":"1.1","viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"d":"M2.431 3.159c-0.138 0-0.256 0.050-0.316 0.144-0.059 0.1-0.050 0.225 0.013 0.353l1.559 2.7c0.003 0.006 0.003 ... |
from abc import ABC, abstractmethod
from PIL import Image # type: ignore
class View(ABC):
@property
@abstractmethod
def width(self) -> int:
raise NotImplementedError()
@property
@abstractmethod
def height(self) -> int:
raise NotImplementedError()
def paint(self, image: I... |
for i in range(1,int(input())+1): #More than 2 lines will result in 0 score. Do not leave a blank line also
print(((10**i)//9)**2)
|
/*!
* # Semantic UI undefined - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
"use strict";
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (ty... |
export function mergeObject(base, ...objects) {
for(const obj of objects)
for(const key in obj) {
base[key] = obj[key];
const descriptor = Object.getOwnPropertyDescriptor(obj.constructor, key);
Object.defineProperty(base, key, {...descriptor, value: obj[key]});
}
}
|
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# Copyright (c) 2008-2019 pyglet contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... |
# Copyright 2012 Pinterest.com
#
# 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,... |
# Copyright (c) 2002-2009 Tampere University.
#
# This file is part of TTA-Based Codesign Environment (TCE).
#
# 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 ... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _ref =
/*#__PURE__*/
React.createElement("path", {
fill: "currentColor",
d: "M15 1H5a4 4 0 0 0 0 8h2V7a2 2 0 0 1 4 0v2h4a4 4 0 0 0 0-... |
import React, { PropTypes, Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import cx from 'classnames';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import Paper from 'material-ui/Paper';
import IconButton from 'material-ui/IconBu... |
import CodeBlock from "./CodeBlock.vue";
export default ({ Vue }) => {
Vue.component("CodeBlock", CodeBlock);
};
|
import os
from time import sleep
from django.conf import settings
from django.test import TestCase
from kolibri.utils import cli
class KolibriTimedRotatingFileHandlerTestCase(TestCase):
def test_do_rollover(self):
archive_dir = os.path.join(os.environ["KOLIBRI_HOME"], "logs", "archive")
orig_val... |
# import needed libraries
import numpy as np
import matplotlib.pyplot as plt
import math
# get input data
from truss_data_input import * # this will load all variables from data_input file
# get global stiffness matrix of truss structure
from truss_global_stiffness import truss_global_stiffness
glob_k_e =... |
import tests.periodicities.period_test as per
per.buildModel((60 , 'M' , 400));
|
const space = [];
const sizes = {
actionButton: 48,
};
const fonts = {
medium: "Montserrat-Medium",
regular: "Montserrat-Regular",
semibold: "Montserrat-SemiBold",
bold: "Montserrat-Bold",
light: "Montserrat-Light",
italic: "Montserrat-Italic",
};
const colors = {
mainColor: "#1C739A",
secondColor:... |
export default {
unmute: "Act. sonido",
mute: "Silenciar",
keypad: "Teclado",
hold: "En espera",
onHold: "En espera",
park: "Estacionar",
stopRecord: "Parar",
record: "Grabar",
add: "Agregar",
transfer: "Transferir",
flip: "Volteo",
more: "Acc. de llam.",
mergeToConference: "Combinar",
end: ... |
module.exports = {
"39.0.2171.65": [
"0.20.0",
"0.20.1",
"0.20.2",
"0.20.3",
"0.20.4",
"0.20.5",
"0.20.6",
"0.20.7",
"0.20.8"
],
"40.0.2214.91": [
"0.21.0",
"0.21.1",
"0.21.2"
],
"41.0.2272.76": [
"0.21.3",
"0.22.1",
"0.22.2",
"0.22.3",
"0.23.0",
"0.24.0"
],
"42.0.2311.107": [... |
// 模块设计模式5 ,把所有要暴露的属性和方法都放到一个对象中,然后把这个对象赋值给exports
const greeting = 'SPDB';
function greet() {
console.log(greeting);
}
module.exports = {
greet: greet
};
|
/**
* @file
* CKEditor button and group configuration user interface.
*/
(function ($, Drupal, drupalSettings, _) {
Drupal.ckeditor = Drupal.ckeditor || {};
/**
* Sets config behavior and creates config views for the CKEditor toolbar.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach}... |
/** @jsx React.DOM */
define([
'underscore', 'jquery', 'react', 'kendo',
'../util/util',
'../ControlCommon',
'../ImmutableOptimizations'
], function (_, $, React, kendo, util, ControlCommon, ImmutableOptimizations) {
'use strict';
var KendoDate = React.createClass({
mixins: [ImmutableO... |
# -*- coding: utf-8 -*-
"""This module defines base class for trajectory handling."""
from numbers import Integral
from numpy import ndarray, unique
from caviar.prody_parser.ensemble import Ensemble
from caviar.prody_parser.utilities import checkCoords, checkWeights
from .frame import Frame
__all__ = ['TrajBase']
... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { Typography } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Box from '@material-ui/core/Box';
import Table from '@material-ui/core/Table';
impo... |
'use strict';
angular.module('fenixApp')
.controller('BandejaCtrl', function ($scope, $log) {
$scope.navbarBrand = {
text: 'Fenix-navigation',
state: 'incidents'
};
$scope.showDate = function () {
$scope.date = 0;
$scope.date = Date.n... |
import React from 'react';
import { connect } from 'react-redux';
import { hasAllRequiredProperties } from './../shared/requiredPropertyUtil';
const mapStateToProps = (state) => {
return {
microservices: state.microservices,
hiddenMicroServices: state.hiddenMicroServices
};
};
export class Mi... |
# -*- coding: utf-8 -*-
import numpy as np
class LinearRegression(object):
def __init__(self, lr):
np.random.seed(1) # 调试阶段请勿删去该条语句
self.k = np.random.normal(0, 0.01)
self.b = 0
self.lr = lr # 学习率(learning rate)
# 利用数组记录训练过程中的有价值数据
self.trainloss = []
... |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shop_app.settings')
try:
from django.core.management import execute_from_command_line
except Imp... |
export { default } from './WalletHomeCollectible'
|
/*!
* phone-codes/phone-nl.min.js
* https://github.com/GlauberF/inputmask
* Copyright (c) 2010 - 2018 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.1-beta.12
*/
!function(c){"function"==typeof define&&define.amd?define(["../inputmask"],c):"object"==t... |
var Account = require('ethereumjs-account');
var Block = require('ethereumjs-block');
var VM = require('ethereumjs-vm');
var RuntimeError = require('./utils/runtimeerror');
var Trie = require('merkle-patricia-tree');
var FakeTransaction = require('ethereumjs-tx/fake.js');
var utils = require('ethereumjs-util');
var see... |
(self.webpackChunkpythonbible_docs=self.webpackChunkpythonbible_docs||[]).push([[2611],{4478:function(e,t,n){"use strict";var r=n(2122),a=n(9756),l=n(7294);t.Z=function(e){var t=e.width,n=void 0===t?30:t,o=e.height,c=void 0===o?30:o,i=e.className,s=(0,a.Z)(e,["width","height","className"]);return l.createElement("svg",... |
module.exports = new Date(2005, 5, 22)
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&":
/*!**************************************************************************************... |
const DataStore = require('nedb-promise');
const db = new DataStore({filename:__dirname + '/toursDB', autoload: true});
const users = require('./tours.json');
async function initialize() {
try {
let numRemoved = await db.remove({}, {multi: true});
console.log(`Cleanup, removed ${numRemoved} tours`)... |
var path = require('path');
var webpack = require('webpack');
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin');
// load webpack config here for for webpack preprocessor
var webpackConfig = require('./webpack.config');
delete webpackConfig.devtool;
webpackConfig.cache = true;
var file;
var entry = [
'htt... |
import React from 'react';
import { PureTaskList } from './TaskList';
import * as TaskStories from './Task.stories';
export default {
component: PureTaskList,
title: 'TaskList',
decorators: [story => <div style={{ padding: '3rem' }}>{story()}</div>],
};
const Template = args => <PureTaskList {...args} />... |
'use strict'
const { EOL } = require('os')
/**
* @memberof module:@the-/code.processors
* @function processFileEnd
* @param {string} content
* @returns {string} processed
*/
function processFileEnd(content) {
const endsWithEOL =
content.substr(content.length - EOL.length, EOL.length) === EOL
if (!endsWit... |
const addvehiclesvs = () => {
return async (req, res, next) => {
const data = req.body;
// console.log(req.body);
const vehicleData = require('../../models/vehicleData');
const vehicleInfo = {
rf_tag: data.rf_tag,
manufacturer: data.manufacturer,
vehicleModel: data.model,
engin... |
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also availa... |
process.on('uncaughtException', function (error) {
console.log("uncaughtException :" + error);
});
var routes = require('./routes');
var requestSender = require('./app/RequestSender');
function run(callback, requestSenderService) {
var express = require('express');
var app = express();
var bodyparser ... |
var assert = require('assert');
var utils = require('./../../lib/utils.js');
var addresses = require('./../fixtures/addresses.js');
suite('unit - utils.parseLedger()', function() {
const DEFAULT_LEDGER = 'validated';
test('parseLedger() -- ledger (empty string)', function() {
var ledger = '';
assert.stric... |
import Add from './source/Add';
import AddAnother from './source/AddAnother';
import Kanban from './source/Kanban';
export default {
Add : Add,
AddAnother : AddAnother,
Kanban : Kanban,
} |
# coding: utf-8
#########################################################################
# 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> #
# author yeeku.H.lee kongyeeku@163.com #
# #
# version... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
goog.provide('ash.fsm.EntityStateMachine');
/*
* This is a state machine for an entity. The state machine manages a set of states,
* each of which has a set of component providers. When the state machine changes the state, it removes
* components associated with the previous state and adds components associated wit... |
import React from 'react';
import styled from 'styled-components';
const Container = styled.p`
line-height: ${props => (props.dark ? '27px' : '40px')};
`;
const Subtitle = ({ children, ...props }) => (
<Container className="is-size-6 has-text-white" {...props}>
{children}
</Container>
);
export default Sub... |
#
# Copyright 2019 GridGain Systems, Inc. and Contributors.
#
# Licensed under the GridGain Community Edition License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gridgain.com/products/software/community-edition/gridgai... |
(function () {
'use strict';
var controllerId = 'xignals';
angular.module('app').controller(controllerId, ['api', xignals]);
function xignals(api) {
var vm = this;
api.getSurveys(function(err, surveys){
if(err){
return console.log(err.message);
}
... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
from ssh_cmd_manager import CmdManager
CmdManager().start() |
import React, {useContext, useEffect} from "react"
import { Link } from "gatsby"
import LandingLayout from "../components/Landing/LandingLayout"
import Image from "../components/image"
import SEO from "../components/seo"
import MainFeed from "../components/MainFeed/MainFeed.js"
import { ThemeProvider } from "styled-co... |
import AddHandlerForEvent from "./AddHandlerForEvent";
import EventRollUpClose from "../../widgets/tradeIn/src/Events/EventRollUpClose";
import Animations from "./Animations";
export default class ApplicationSettings {
constructor(element)
{
this.element = element;
}
set element(element)
{... |
/*jslint browser: true, unparam: true, todo: true*/
/*globals define: true, MutationObserver: false, requestAnimationFrame: false, performance: false, btoa: false*/
'use strict';
export default function (self) {
self.getClippingRect = function (ele) {
var boundingRect = self.position(self.parentNode),
eleR... |
from typing import Any, Generic, List, TypeVar
T = TypeVar("T")
class ListBackedContainer(Generic[T]):
def __init__(self) -> None:
self._data: List[T] = []
self._iter_index = 0
def __eq__(self, other: Any) -> bool:
return isinstance(other, ListBackedContainer) and self._data == other... |
/**
* Copyright 2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
import logging
import os
import random
import time
from breezypythongui import EasyFrame
from battlefield import Battlefield
from battlefield_ui import BattlefieldUI
from battleship_client import BattleshipClient
# Without this, nothing shows up...
logging.basicConfig()
logger = logging.getLogger(__name__)
logger.set... |
var getVariationPathFromComponentPath = require('./getVariationPathFromComponentPath');
// Regexes
var PATH_REGEX = /.+\/|.+\\/gi;
/**
* Gets the component name from a path
*
* @param {string} path The component path, e.g. /folder/components/Button.js
* @return {String} Only the component name, e.g. Button... |
$(function(){
var order_billing_state = "ON"; // ON
var order_billing_country = 'CANADA'; // CANADA USA
/*
$('#order_billing_name').val(order_billing_name);
$('#order_email').val(order_email);
$('#order_tel').val(order_tel);
$('#bo').val(bo);
$('#oba3').val(oba3);
$('#order_billing_zip').val(order_bil... |
/**
* Javascript implementation of basic RSA algorithms.
*
* @author Dave Longley
*
* Copyright (c) 2010-2014 Digital Bazaar, Inc.
*
* The only algorithm currently supported for PKI is RSA.
*
* An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo
* ASN.1 structure is composed of an algorit... |
//>>built
define("dojox/lang/oo/aop",["dijit","dojo","dojox","dojo/require!dojox/lang/oo/Decorator,dojox/lang/oo/general"],function(k,b,h){b.provide("dojox.lang.oo.aop");b.require("dojox.lang.oo.Decorator");b.require("dojox.lang.oo.general");(function(){var a=h.lang.oo,e=a.makeDecorator,g=a.general,a=a.aop,f=b.isFuncti... |
""" LoPy LoRaWAN Nano Gateway configuration options """
import machine
import ubinascii
WIFI_MAC = ubinascii.hexlify(machine.unique_id()).upper()
# Set the Gateway ID to be the first 3 bytes of MAC address + 'FFFE' + last 3 bytes of MAC address
GATEWAY_ID = WIFI_MAC[:6] + "FFFE" + WIFI_MAC[6:12]
SERVER = 'router.eu... |
from typing import Optional
import mpmath as mp
import numpy as np
from numpy.core._multiarray_umath import tanh, sinh
from scipy.constants import codata
F = codata.physical_constants['Faraday constant'][0]
Rg = codata.physical_constants['molar gas constant'][0]
def sinh(x):
"""
As numpy gives errors when si... |
# Copyright 2015 gRPC authors.
#
# 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... |
import pytest
from rubrix.server.security.auth_provider.local.users.dao import create_users_dao
from rubrix.server.security.auth_provider.local.users.service import UsersService
usersService = UsersService.get_instance(users=create_users_dao())
def test_authenticate_user():
user = usersService.authenticate_user... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import ExpansionPanel, {
ExpansionPanelDetails,
ExpansionPanelSummary,
} from 'material-ui/ExpansionPanel';
import Typography from 'material-ui/Typography';
import ExpandMoreIcon from 'material-ui-icons/E... |
/**
* 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.
*
* @flow
*/
import EventEmitter from '../events';
import throttle from 'lodash.throttle';
import {
SESSION_STORAGE_LAST_SELECTIO... |
//$(function(){
// $(document).on('click','.m-numinput',function(){
// var $this = $(this);
// var value = $(this).find('input').val() >>> 0;
// var min = $(this).find('input').attr('min') >>> 0;
// var max = $(this).find('input').attr('max') >>> 0;
//
// if($(event.target).hasClass('dec')){
// value = value - 1... |
export const fetchTours = () => {
// debugger
return (dispatch) => {
fetch("http://localhost:3000/tours")
.then(response => response.json())
.then(tours => {
dispatch({ type: 'FETCH_TOURS_SUCCESS', tours })
})
}
}
export function fetchToursSuccess(tours) {
debu... |
import re
import sys
from pathlib import Path
from typing import Set
def read_reqs(reqs_path: Path) -> Set[str]:
return {
r
for r in re.findall(
r"(^[^#\n-][\w\[,\]]+[-~>=<.\w]*)",
reqs_path.read_text(),
re.MULTILINE,
)
if isinstance(r, str)
... |
"""
This file offers the methods to automatically retrieve the graph Hydrocarboniphaga daqingensis.
The graph is automatically retrieved from the STRING repository.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v11: protein--... |
import { DesktopTooltipStrategy } from 'ui/scheduler/tooltip_strategies/desktopTooltipStrategy';
import { FunctionTemplate } from 'core/templates/function_template';
import { extend } from 'core/utils/extend';
import Tooltip from 'ui/tooltip';
import List from 'ui/list/ui.list.edit';
import Button from 'ui/button';
imp... |
# stdlib
from typing import Any
# syft relative
from ...core.common import UID
from ...core.common.serde.serializable import Serializable
class PyPrimitive(Serializable):
def __init__(self) -> None:
self._id: UID
def upcast(self) -> Any:
pass
|
/* @flow */
import type { ChannelControl, ControlMessage } from '@mixxx-launchpad/mixxx'
import type { LaunchpadDevice, MidiMessage } from '../../'
import { modes } from '../ModifierSidebar'
import type { Modifier } from '../ModifierSidebar'
export default (gridPosition: [number, number]) => (deck: ChannelControl) =... |
import GameSprite from "./GameSprite";
import Display from "../Display"
/**
* Runner reprezentuje hlavní postavu hry.
*/
export default class Runner extends GameSprite {
constructor(scene, x, y, state) {
super(scene, x, y, 'dude', 'run', true)
this.default = { x: x, y: y }
this.states =... |
import test from './test';
import store from 'store';
import { sleep } from 'utils';
export default async function() {
await test(window, 0);
const hasSW = !!navigator.serviceWorker;
// test if we suggest navigator.serviceWorker
await store.put('feature', Number(hasSW), 'navigator.serviceWorker');
if (!hasSW)... |
var searchData=
[
['sdl2_5ftypes_2ehpp',['sdl2_Types.hpp',['../d0/d29/sdl2___types_8hpp.html',1,'']]],
['sdl_5fttf_5fmajor_5fversion',['SDL_TTF_MAJOR_VERSION',['../d6/d5a/ttf___s_d_l__ttf_8h.html#a895f91173346a028d25202ced75b549e',1,'ttf_SDL_ttf.h']]],
['sdl_5fttf_5fminor_5fversion',['SDL_TTF_MINOR_VERSION',['../... |
/*! jQuery UI - v1.10.3 - 2013-10-05
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.fr={closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["Janvier","Février","Mars","Avril","Mai","J... |
const compressSync = require('iltorb').compressSync;
try {
var output = compressSync(input);
} catch(err) {
// ...
}
|
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.3.5.4_2-83gs
description: >
Strict mode - checking access to strict functi... |
import logging
import time
from flask import make_response, request
from flask_login import current_user
from flask_restful import abort
from redash import models, settings
from redash.handlers.base import BaseResource, get_object_or_404
from redash.permissions import (has_access, not_view_only, require_access,
... |
// Load modules
var Net = require('net');
var Stream = require('stream');
var Http = require('http');
var Lab = require('lab');
var Nipple = require('nipple');
var Hoek = require('hoek');
var Shot = require('shot');
var Hoek = require('hoek');
var Hapi = require('..');
// Declare internals
var internals = {};
// ... |
import React from 'react';
import * as R from 'ramda';
import { Link } from 'redux-little-router';
import PLAN_STATUS from '../../constants/plan-status';
import { formPlanIdentifierText, getPlanFileUrls, formPlanUrl, parseFileNameFromURL, versionToCharacter } from '../../utils';
/**
* Form link elements for each file... |
// @flow
import * as React from 'react';
import PropTypes from 'prop-types';
import styles from './IconButton.css';
import icons from './icons/index.js';
import Pog from './Pog.js';
type Props = {|
accessibilityExpanded?: boolean,
accessibilityHaspopup?: boolean,
accessibilityLabel: string,
bgColor?: 'transpar... |
import { useRef, useLayoutEffect } from 'react';
const isInBrowser = typeof window !== 'undefined';
function getMediaSizes () {
if (!isInBrowser) {
return {
width: null,
height: null,
lg: null,
md: null,
sm: null,
xs: null
}
}
const width = window.innerWidth
|| doc... |
'use strict';
/**
* @ngdoc type
* @name angular.Module
* @module ng
* @description
*
* Interface for configuring angular {@link angular.module modules}.
*/
function setupModuleLoader(window) {
var $injectorMinErr = minErr('$injector');
var ngMinErr = minErr('ng');
function ensure(obj, name, factory) {
... |
dataset_maps = dict()
"""
each item in the dataset maps are a list of the following info
(
dataset_folder,
annotation file name (video dataset) / path of annotation file (image dataset),
split file name (video dataset) / path of image folder (image dataset) ,
modality
)
"""
dataset_maps['TAO'] = ['TAO',
... |
function Drb(){}
function Grb(){}
function YQb(){}
function cRb(){}
function vRb(){vRb=yAc;XQb=new cRb}
function Irb(){Irb=yAc;Crb=new Grb}
function srb(a,b){this.b=a;this.c=b}
function uRb(){uRb=yAc;WQb=new bgb((Tgb(),new Lgb((FF(),PGc))),82,26)}
function Arb(a){this.f=a;this.g=(new Drb,Irb(),Crb);Frb(this.g);this.b=u... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for jinja_helper.
This file was generated with PyScaffold 3.0.3.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: http://pyscaffold.org/
"""
import sys
from setuptools import setup
# Add here console... |
#!/usr/bin/env node
var path = require('path'),
fs = require('fs'),
extend = require('util')._extend,
exec = require('child_process').exec,
processes = [];
var baseDir = path.resolve(__dirname, '..'),
srcDir = baseDir,
chimpBin = path.resolve(baseDir, 'node_modules/.bin/chimp');
var appOptions = {... |
#!/bin/bash
# use strict mode: http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -xeuo pipefail
|
# -*- coding: utf-8 -*-
# vim: set ts=4 sw=4 et ai:
"""
| This file is part of the web2py Web Framework
| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Command line interface
----------------------
The processing of all command line arguments is d... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.HSVtoCMYK = exports.HSVtoHEX = exports.HSVtoRGB = exports.HSVtoHSL = exports.CMYKtoHSV = exports.CMYKtoHEX = exports.CMYKtoRGB = exports.CMYKtoHSL = exports.extractNumberFromHex = exports.Hex3To6Char = exports.HEXtoHSV = exports.HEX... |
var fs = require('fs');
module.exports = function(grunt) {
var browsers = grunt.option('browser') ? grunt.option('browser').split(',') : ['PhantomJS'];
var copyright = '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n' +
'* Copyright (c) <%= grunt.templ... |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... |
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/YAPP/'
: '/'
} |
"""
Ecuador-specific form helpers.
"""
from __future__ import absolute_import
from django.contrib.localflavor.ec.ec_provinces import PROVINCE_CHOICES
from django.forms.fields import Select
class ECProvinceSelect(Select):
"""
A Select widget that uses a list of Ecuador provinces as its choices.
"""
de... |
// https://date-fns.org/
import { formatDistanceToNowStrict, subDays, parseISO, startOfTomorrow } from 'date-fns'
const now = new Date();
const tomorrow = startOfTomorrow();
const myAge = formatDistanceToNowStrict(parseISO('1983-02-25'), { addSuffix: false});
document.getElementById("dateNow").innerHTML = now;
docum... |
/**
* CRUD sample
*/
ej.diagrams.Diagram.Inject(
ej.diagrams.DataBinding,
ej.diagrams.HierarchicalTree
);
var diagram;
var dialog;
var toolbarObj;
var sourceDropdown;
var targetDropdown;
var sourceID;
var targetID;
var nodeData = [];
// custom code start
function dlgButtonClick(args) {
var dialogHeader = dialog... |
# -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
class EnvironmentSearchProtectionSourcesEnum(object):
"""Implementation of the 'Environment_SearchProtectionSources' enum.
TODO: type enum description here.
Attributes:
KVMWARE: TODO: type description here.
KHYPERV: TODO: type descri... |
import React, { Component } from 'react';
import './PostItem.css';
function PostReader({ author, date }){
return (
<div className="post-reader">
<img className="avatar" src={author.avatar} alt="avatar"/>
<div className="details">
<strong>{author.name}</strong>
<span>{date}</span>
... |
const axios = require("axios");
const curlizer = require("axios-curlirize");
curlizer(axios);
let test = await axios.get("http://ifconfig.me");
|