text stringlengths 3 1.05M |
|---|
import { Button, ButtonGroup, Icon, Modal, Box } from '@rocket.chat/fuselage';
import { useAutoFocus, useMutableCallback } from '@rocket.chat/fuselage-hooks';
import { escapeHTML } from '@rocket.chat/string-helpers';
import React, { useCallback, useMemo } from 'react';
import { RoomRoles } from '../../../../app/models... |
from time import sleep
print('\033[33m/_\033[m'*14)
print('\033[35mAnalisador de Triângulos v.2.0\033[m')
print('\033[33m/_\033[m'*14)
seg1=int(input('Primeiro segmento:'))
seg2=int(input('Segundo segmento:'))
seg3=int(input('Terceiro segmento:'))
print('\033[31mAnalisando segmentos...\033[m')
sleep(2)
if seg1<seg2+seg... |
#! /usr/bin/env python
import atexit
import os
import sys
import state
try:
import fcntl # @UnresolvedImport
except ImportError:
pass
class singleinstance:
"""
Implements a single instance application by creating a lock file
at appdata.
This is based upon the singleton class from tendo
... |
const express = require('express')
const router = express.Router()
const mySQL = require('../config/database')
const printers = require('../helpers/debug/DebugAlerts')
const PostError = require('../helpers/errors/PostError')
const PermissionsError = require('../helpers/errors/PermissionsError')
const routeProtectors =... |
/*! jQuery UI - v1.11.4 - 2015-08-04
* http://jqueryui.com
* Includes: core.js, widget.js, position.js, autocomplete.js, menu.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous mod... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[7,16],{1013:function(module,exports,__webpack_require__){var content=__webpack_require__(1022);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[module.i,content,""]]),content.locals&&(module.exports=content.locals);(0,__webpack_requi... |
// using jQuery
/* global jQuery */
(function(jQuery){
"use strict";
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
va... |
import { Container, Graphics, Sprite } from 'pixi.js';
import gsap from 'gsap';
export default class Footer extends Container {
constructor() {
super();
this.name = 'footer';
this._addBg();
this._addHighlight();
this._addLogo();
this.height = 70;
}
/**
* @private
*/
_addBg() {... |
import React from "react";
import axios from "axios";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { withRouter } from "react-router";
import { NavLink } from "react-router-dom";
const NavigationComponent = props => {
const dynamicLink = (route, linkText) => {
return (
<div clas... |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import bisect
import copy
import logging
import torch.utils.data
from maskrcnn_benchmark.utils.comm import get_world_size
from maskrcnn_benchmark.utils.imports import import_file
from . import datasets as D
from . import samplers
from .collate_b... |
export default {
to: "To:",
transferTo: "Transfer to",
blindTransfer: "Transfer",
enterNameOrNumber: "Enter Number"
};
// @key: @#@"to"@#@ @source: @#@"To:"@#@
// @key: @#@"transferTo"@#@ @source: @#@"Transfer to"@#@
// @key: @#@"blindTransfer"@#@ @source: @#@"Transfer"@#@
// @key: @#@"enterNameOrNumber"@#@ @s... |
import cookies from './util.cookies'
import db from './util.db'
import log from './util.log'
const util = {
cookies,
db,
log
}
/**
* @description 更新标题
* @param {String} title 标题
*/
util.title = function (titleText) {
const processTitle = process.env.VUE_APP_TITLE || 'D2Admin'
window.document.ti... |
/*
* This file has been compiled from: /modules/system/lang/es/client.php
*/
if ($.wn === undefined) $.wn = {}
if ($.oc === undefined) $.oc = $.wn
if ($.wn.langMessages === undefined) $.wn.langMessages = {}
$.wn.langMessages['es'] = $.extend(
$.wn.langMessages['es'] || {},
{"markdowneditor":{"formatting":"For... |
import { useContext, useState } from 'react';
import { Link, useHistory } from 'react-router-dom';
import { MdLock } from 'react-icons/md';
import userValidators from '../../../helpers/userValidators';
import { connect } from 'react-redux';
import { register } from '../../../actions/userActions';
import { NotificationC... |
# -*- 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 ------------------------------------------------------------... |
/**
Licensed to OffGrid Networks (OGN) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. OGN licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use... |
const ExpressionInterface = require('./ExpressionInterface');
class SequenceExpression extends implementationOf(ExpressionInterface) {
/**
* Constructor.
*
* @param {SourceLocation} location
* @param {ExpressionInterface[]} expressions
*/
__construct(location, expressions) {
/*... |
import http from 'http';
import chalk from 'chalk';
import app from './server';
const server = http.createServer(app);
let currentApp = app;
server.listen(process.env.DACE_PORT, (error) => {
if (error) {
console.log(error);
}
const url = chalk.underline(`http://${process.env.DACE_HOST}:${process.env.DACE_... |
import React from 'react'
import PropTypes from 'prop-types'
import * as R from 'ramda'
import { Input } from '@webapp/components/form/Input'
import Badge from './Badge'
const Label = ({
inputFieldIdPrefix,
labels,
lang,
onChange,
placeholder,
readOnly,
showLanguageBadge,
compactLanguage,
}) => (
<... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(global = global || self, factory(global.jQuery));
}(this, (function ($) { 'use strict';
$ = $ && Object.prototype.has... |
System.register(["rtts_assert/rtts_assert", "angular2/src/facade/lang"], function($__export) {
"use strict";
var assert,
StringWrapper,
RegExpWrapper,
DASH_CASE_REGEXP,
CAMEL_CASE_REGEXP;
function dashCaseToCamelCase(input) {
assert.argumentTypes(input, assert.type.string);
return ... |
import React from 'react';
import StudentCTA from './StudentCTA/StudentCTA';
import TrendingTrades from './TrendingTrades/TrendingTrades';
const CTAPlusTrades = () => {
return (
<div className="student-cta-trending">
<StudentCTA />
<TrendingTrades />
</div>
);
};
export default CTAPlusTrades;
|
import "./static/stylesheets/app.scss";
// Player
if(new URLSearchParams(window.location.search).has("p")) {
import("./Video.js")
.then(({Initialize}) =>
Initialize({target: document.getElementById("app")})
);
// Collection
} else {
import("./Form.js");
}
|
exports.Base = require('./base');
exports.Dot = require('./dot');
exports.Doc = require('./doc');
exports.TAP = require('./tap');
exports.JSON = require('./json');
exports.HTML = require('./html');
exports.List = require('./list');
exports.Spec = require('./spec');
exports.Progress = require('./progress');
exports.Lan... |
# coding: utf-8
"""
FreeClimb API
FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site teleph... |
const randomItem = require('random-item');
const query = require('./../../bindings/gridsome/strapi/departure.graphql');
/**
* @return {Promise}
*/
module.exports = function(service, templater)
{
return service.request(query).then(data => {
let departureSalutation = randomItem(data.salutations.edges).node.nam... |
import os
from .. import constants, logger
from . import base_classes, io, api
class Image(base_classes.BaseNode):
"""Class the wraps an image node. This is the node that
represent that actual file on disk.
"""
def __init__(self, node, parent):
logger.debug("Image().__init__(%s)", node)
... |
/**
* FOR UTILS
*/
'use strict'
var colors = require('colors'),
path = require('path'),
j = path.join
function _log (str, color) {
str += ''
var color = color || 'blue'
console.log(str[color])
}
function _error (str){
return _log(str, 'red')
}
function _alert(str) {
return _log(... |
'''
@author: Frank
'''
from zstacklib.utils import linux
import unittest
class Test(unittest.TestCase):
def testName(self):
ip = '255.255.0.0'
ipi1 = linux.ip_string_to_int(ip)
print ipi1
ips = linux.int_to_ip_string(ipi1)
print ips
ip = '10.1.23.12'
... |
#!/usr/bin/env node
const commander = require('commander');
const program = new commander.Command();
const pkgJson = require('../package.json');
program.version(pkgJson.version)
const commands = [
{
name: 'init',
command: 'init <directory>',
description: '初始化一个 Slide Manager 项目'
},
{
name: 'add... |
const { Router } = require('express');
const { check } = require('express-validator');
const { validarCampos } = require('../middlewares/validarCampos');
const { validarUsuario } = require('../middlewares/validarUsuario');
const { actualizarProducto, crearProducto, borrarProducto, getProductos } = require('../controlle... |
/* global Service */
'use strict';
(function(exports) {
var TransitionEvents =
['open', 'close', 'complete', 'timeout',
'immediate-open', 'immediate-close'];
var TransitionStateTable = {
'closed': ['opening', null, null, null, 'opened', null],
'opened': [null, 'closing', null, null, null, 'close... |
/**
* @file make sure specification use netural words.
*/
const badterms = require('../../../public/badterms.json');
const self = {
name: 'structure.neutral',
};
// get blocklist from json file
let blocklist = [];
badterms.forEach((item) => {
blocklist = blocklist.concat(item.term);
if (item.variation) ... |
/**
* @license Angular v8.2.4
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
import { __extends, __spread, __decorate, __param, __metadata, __assign } from 'tslib';
import { ɵparseCookieValue, DOCUMENT, PlatformLocation, isPlatformServer, ɵPLATFORM_BROWSER_ID, CommonModule } from '@angular/commo... |
'use strict'
const split = require('split2')
const parse = require('fast-json-parse')
process.stdin.pipe(split(
line => {
const parsed = parse(line)
if (parsed.err) return line + '\n'
return JSON.stringify(parsed.value, null, 2) + '\n'
}
)).pipe(process.stdout)
|
var getDescriptionForCode = function(code) {
code = code.replace(/\s+/g, '')
code = code.substr(0, 2) + ' ' + code.substr(2, 2) + ' ' + code.substr(4, 3)
var referenceCode = referenceCodes.find((referenceCode) => {
return referenceCode.code === code
})
return referenceCode ? referenceCode.d... |
L.MagnifyingGlass = L.Class.extend({
includes: L.Mixin.Events,
options: {
radius: 100,
zoomOffset: 3,
layers: [ ],
fixedPosition: false,
latLng: [0, 0],
fixedZoom: -1
},
initialize: function(options) {
L.Util.setOptions(this, options);
this._fixedZoom = (this.o... |
#!/usr/bin/env python
# Copyright 2017 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.
"""Runs traffic_annotation_auditor on the given change list or all files to make
sure network traffic annoations are syntactically and ... |
// @flow
import type {JSONObject, EnvMap} from '@parcel/types';
import type {SchemaEntity} from '@parcel/utils';
import SourceMap from '@parcel/source-map';
import {Transformer} from '@parcel/plugin';
import {transform} from './native';
import {isURL} from '@parcel/utils';
import path from 'path';
import browserslist f... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{150:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return c})),n.d(t,"metadata",(function(){return i})),n.d(t,"rightToc",(function(){return s})),n.d(t,"default",(function(){return u}));var r=n(2),o=n(9),a=(n(0),n(327)),c={id:"settings",title... |
import Component from 'vue-class-component'
import { State, Getter, Action, Mutation, namespace } from 'vuex-class'
Component.registerHooks([
'beforeRouteEnter',
'beforeRouteLeave',
'asyncData',
'fetch',
'middleware',
'layout',
'transition',
'scrollToTop'
])
export { Component as default, State, Gette... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
const FiringTempsDbo = require('./dbo/FiringTempsDbo')
class FiringTempsFactory {
async all() {
const jsonFiringTemps = new Array()
const foundFiringTemp = await FiringTempsDbo.query()
foundFiringTemp.forEach(firingTemp => jsonFiringTemps.push(this.toJson(firingTemp)))
return... |
# Copyright 2016 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... |
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
! function (e, t) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).Vue = t()
}(this, function () {
"use strict";
... |
import { React, useState, useEffect } from "react";
import axios from "axios";
import { Col, Row, Typography } from 'antd';
import ViewAll from "../components/ViewAll";
import AddGroceryForm from "../components/AddGroceryForm"
const { Text } = Typography
const GroceryList = () => {
//HERE WE ARE USING STATE WHICH ... |
module.exports = {
testEnvironment: 'jsdom',
collectCoverageFrom: ['./src/**'],
coverageThreshold: {
global: {
lines: 70
}
}
} |
function hello() {
console.log("hello");
}
function if_condition() {
l = [1, 2, 3, 4];
l1 = l;
}
|
import { useCallback, useContext } from "react";
import {
DayScreenContext,
setDrawerVisibility,
setExercises,
setSelectedDate,
} from "./DayScreenState";
export const useDayScreenHelpers = () => {
const { dispatch, state } = useContext(DayScreenContext);
return {
setDrawerVisibility: useCallback(
... |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
import { Log } from './Log.js';
import { OidcClientSettings } from './OidcClientSettings.js';
import { ErrorResponse } from './ErrorResponse.js... |
'use strict';
const crypto = require('crypto');
const BbPromise = require('bluebird');
const _ = require('lodash');
const path = require('path');
const fsAsync = BbPromise.promisifyAll(require('fs'));
const getLambdaLayerArtifactPath = require('../../utils/get-lambda-layer-artifact-path');
const { log } = require('@se... |
console.log("Hello World from Inspire") |
import * as types from './actionTypes'
export const toggleCreate = () => ({ type: types.TOGGLE_CREATE })
|
import React from "react";
// components
import CardStats from "components/Cards/CardStats.js";
export default function HeaderStats({ showCards }) {
return (
<>
{/* Header */}
<div className="relative bg-red-500 md:pt-32 pb-32 pt-12">
<div className="px-4 md:px-10 mx-auto w-full">
... |
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
mocha: true,
chai: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 12,
},
rules: {
},
};
|
import AsColorPicker from '../asColorPicker';
// Japanese (ja) localization
AsColorPicker.setLocalization('ja', {
cancelText: "中止",
applyText: "選択"
});
|
deepmacDetailCallback("0050c200f000/36",[{"a":"Waran De Straat 9B BE","o":"XLN-t","d":"2008-07-30","t":"add","s":"ieee","c":"BE"}]);
|
document.addEventListener("DOMContentLoaded", function engine(){
controller.setVariables();
view.media();
model.windowWidth.addListener(view.media);
controller.instantiateCats();
view.createList();
controller.catNameList();
controller.listener();
}); |
print('melon')
|
;(function ($) {
'use strict';
// cmf functions
$.extend(window.app, {
declineDuplicates: function ($scope) {
if ($scope.find('.js-decline-duplicate').length === 0) {
return;
}
$scope.on('click', '.js-decline-duplicate', function () {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseTimeUnits = exports.TIME_UNITS_PATTERN = exports.parseYear = exports.YEAR_PATTERN = exports.parseOrdinalNumberPattern = exports.ORDINAL_NUMBER_PATTERN = exports.parseNumberPattern = exports.NUMBER_PATTERN = exports.TIME_UNIT_DICTI... |
# ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2021 Aarno Labs LLC
#
# Permission is hereby granted, free of charg... |
import * as React from "react";
import Helmet from "react-helmet";
class ErrorBoundary extends React.Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}
componentDidCatch(_error, _info) {
this.setState({ hasError: true });
}
render() {
if (!this.state.hasErro... |
var t = TrelloPowerUp.iframe();
var generalDiv = document.getElementById('generalDiv');
var modifyCardButton = document.getElementById('modifyCardButton');
var quantityOfQuantities = 0;
var quantityChip = [];
var estimate = {};
var cardInfoKey = 'pappira.cardInfo';
var listId = '5a9ef0ce024c776a21220836';
t.rende... |
const _ = require('lodash');
const { Album } = require('../models/album');
const { Song } = require('../models/song');
const { Artist } = require('../models/artist');
const { User } = require('../models/user');
exports.search = async (req, res) => {
const query = new RegExp(req.query.q.trim(), 'gi');
const songs ... |
import React from 'react';
import PropTypes from 'prop-types';
import Navbar from './navbar';
import './layout.css';
const Layout = ({ children }) => (
<div>
<Navbar />
{children}
</div>
);
Layout.propTypes = {
children: PropTypes.node.isRequired,
};
export default Layout;
|
/**
* Created by Moses Zengo on 3/6/2017.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("superagent-proxy")):"function"==typeof define&&define.amd?define(["superagent-proxy"],t):"object"==typeof exports?exports.PubNub=t(require("superagent-proxy")):e.PubNub=t(e["superage... |
/**
* Created by Sweets823 on 2016/6/23.
*/
(function () {
'use strict';
angular
.module('sysApp.demo', [
'ui.router',
'ui.bootstrap',
'ngSanitize',
'oc.lazyLoad'
])
.config(demoConfig)
demoConfig.$inject = ['$stateProvider', '$urlR... |
# Copyright 2012 The Chromium OS 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 factory test to stress CPU, by generating pseudo random numbers.
Description
-----------
It stresses CPU by generating random number using /dev/uran... |
import React from 'react'
import styled from 'styled-components'
import { space, color } from 'styled-system'
const Icon = ({
size,
...props
}) => (
<svg
{...props}
viewBox='0 0 24 24'
width={size}
height={size}
fill='currentcolor'
>
<path d='M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm... |
/*! jQuery UI - v1.11.4 - 2016-03-13
* http://jqueryui.com
* Includes: core.js, widget.js, position.js, autocomplete.js, menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a,... |
var common = require('../common-tap.js')
var test = require('tap').test
var server
var port = common.port
var http = require("http")
var doc = {
"_id": "superfoo",
"_rev": "5-d11adeec0fdfea6b96b120610d2bed71",
"name": "superfoo",
"time": {
"modified": "2014-02-18T18:35:02.930Z",
"created": "2014-02-1... |
import { SkinInstance } from '../skin-instance.js';
// Class derived from SkinInstance with changes to make it suitable for batching
class SkinBatchInstance extends SkinInstance {
constructor(device, nodes, rootNode) {
super();
var numBones = nodes.length;
this.init(device, numBones);
... |
const chai = require('chai');
chai.use(require('chai-as-promised'));
const expect = chai.expect;
const sinon = require('sinon');
const { AgeEvent } = require('../../../../lib/db/models/age-event');
const db = require('../../../../lib/utils/db');
const ageEventFixture = require('../fixtures/models/age-event');
const ... |
/*! 2.6.8 | MIT Licensed */;!function(t){"use strict";var e=t.document,n={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.6.8"},o=t.LAYUI_GLOBAL||{},a=function(){var t=e.currentScript?e.currentScript.src:function(){for(var t,n=e.scripts,r=n.length-1,o=r;o>0;o--)if("interactive"===n[o].readyState){t=n[o... |
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_is_configured")
load("@local_config_rocm//rocm:build_defs.bzl", "rocm_is_configured")
def stream_executor_friends():
return ["//tensorflow/..."]
def tf_additional_cuda_platform_deps():
return []
def tf_additional_cuda_driver_deps():
return [":cuda_stu... |
import { combineReducers } from 'redux'
import accountReducer from './accountReducer'
const reducers =combineReducers({
account : accountReducer
})
export default reducers |
"""
@name: model_plot.py
@description
Plot the model fit
@author: Christopher Brittin
@email: 'cabrittin' + <at> + 'gmail' + '.' + 'com'
"""
import argparse
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['ytick.labelsize'] = 7
mpl.rcParams['xtick.labelsize'] = 7
from model... |
import { connect } from 'react-redux';
import { makeSelectClaimIsMine, selectFetchingMyChannels, selectMyChannelClaims } from 'lbry-redux';
import {
makeSelectTopLevelCommentsForUri,
selectIsFetchingComments,
makeSelectTotalCommentsCountForUri,
selectOthersReactsById,
makeSelectCommentsDisabledForUri,
} from ... |
!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.expo... |
module.exports = [{"name":"path","attribs":{"d":"M41.09 10.45l-2.77-3.36C37.76 6.43 36.93 6 36 6H12c-.93 0-1.76.43-2.31 1.09l-2.77 3.36C6.34 11.15 6 12.03 6 13v25c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V13c0-.97-.34-1.85-.91-2.55zM24 35L13 24h7v-4h8v4h7L24 35zM10.25 10l1.63-2h24l1.87 2h-27.5z"}}]; |
"use strict";
let EventValidator = require('./validators/event.validator.js');
let StartDateIsBeforeEndDate = require('./conditions/StartDateIsBeforeEndDate');
class Event {
constructor(startDate, endDate, numberOfInvitations) {
this.startDate = startDate;
this.endDate = endDate;
this.num... |
const { ALCore } = require('./lib/AurelionCore');
ALCore.startApp();
|
export default function updateAutoHeight(speed) {
const swiper = this;
const activeSlides = [];
let newHeight = 0;
let i;
if (typeof speed === 'number') {
swiper.setTransition(speed);
} else if (speed === true) {
swiper.setTransition(swiper.params.speed);
}
// Find slides currently in view
if ... |
# -*- coding: utf-8 -*-
# ProDy: A Python Package for Protein Dynamics Analysis
#
# Copyright (C) 2010-2012 Ahmet Bakan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... |
import numpy as np
import scipy as sp
from ipdb import set_trace as st
import skimage as ski
import utils
from matplotlib import pyplot as plt
import matplotlib as mpl
from common import *
from munch import Munch as M
from scipy import sparse
from scipy.interpolate import Rbf
import os
from scipy.fft import fftn, ifftn... |
/*!
* lru.js - LRU cache for decentraland
* Copyright (c) 2014-2015, Fedor Indutny (MIT License)
* Copyright (c) 2014-2016, Christopher Jeffrey (MIT License).
* Copyright (c) 2016-2017, Manuel Araoz (MIT License).
* https://github.com/decentraland/decentraland-node
*/
'use strict';
var assert = require('assert'... |
# Copy from PyTorch Tutorials
# Train Inception-v3 on Cifar10 to give the Inception score
from __future__ import print_function
from __future__ import division
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import torchvision
from torchvision import datasets, models, transforms
imp... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable */
require('./ImageColor.module.css');
var styles = {
carousel3D: 'carousel3D_36ad6ee7',
container: 'container_36ad6ee7',
row: 'row_36ad6ee7',
listItem: 'listItem_36ad6ee7',
button: 'button_36ad6ee7',
};
e... |
export default {
html: `
<button>click me now</button>
`,
test({ assert, component, target, window }) {
const button = target.querySelector('button');
const event = new window.Event('click-now');
let clicked;
component.$on('click-now', () => {
clicked = true;
});
button.dispatchEvent(event);
as... |
/**!
* easyPieChart
* Lightweight plugin to render simple, animated and retina optimized pie charts
*
* @license
* @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de)
* @version 2.1.6
**/
!function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof de... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2022, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
/**
* @providesModule AppContainers
*/
export { IntroContainer } from './Intro';
export { MainContainer } from './Main';
export { MapContainer } from './Map';
export { BrunchDetailContainer } from './BrunchDetail';
export { BrunchgramContainer } from './Brunchgram'; |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
def run_tests(**options):
import django
import sys
from django.conf import settings
from ginger.conf.settings import template_settings
defaults = dict(
MIDDLEWARE_CLASSES=(
'django.contrib.sessions.middleware.... |
export { default } from './EditUsers'; |
import time
from src.implementation import util
READER_INDEX = 0
def main():
connection = util.get_connection(READER_INDEX)
# SELECT AID
select_application_capdu = bytes([
0x00, 0xa4, 0x04, 0x00, 0x10, 0xa0, 0x00, 0x00, 0x00, 0x77, 0x01, 0x08, 0x00, 0x07, 0x00, 0x00, 0xFE, 0x00,
0x00, 0... |
# TensorFlow external dependencies that can be loaded in WORKSPACE files.
load("//third_party/gpus:cuda_configure.bzl", "cuda_configure")
load("//third_party/gpus:rocm_configure.bzl", "rocm_configure")
load("//third_party/tensorrt:tensorrt_configure.bzl", "tensorrt_configure")
load("//third_party:nccl/nccl_configure.b... |
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
/**
* CryptoJS core components.
*/
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
*/
var C = {};
/**
* Library nam... |
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# formats: ipynb,py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.2'
# jupytext_version: 1.2.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# --... |
from webapp1.websocks.tic_tac_toe.v2.consumer_base import TicTacToeV2ConsumerBase
# ^ two ^ two
# ------- ----------------------- ------------- -----------------------
# 1 2 3 4
# 1. アプリケーション フォルダー名
#... |