text stringlengths 3 1.05M |
|---|
/**
* The Jira Cloud platform REST API
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
(function ($, w, undefined) {
if (w.footable === undefined || w.foobox === null)
throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.');
var defaults = {
bookmarkable: {
enabled: false
}
};
//... |
import React from 'react'
import { Placeholder } from 'semantic-ui-react'
const Home = () => {
return (
<Placeholder>
<h2>Home</h2>
<Placeholder.Header image>
<Placeholder.Line />
<Placeholder.Line />
</Placeholder.Header>
<Placeholder.Paragraph>
<Placeholder.Line ... |
_base_ = [
'../_base_/default_runtime.py'
]
model = dict(
type='FasterRCNN',
pretrained=None,
backbone=dict(
type='Conformer',
embed_dim=384,
depth=12,
patch_size=32,
channel_ratio=4,
num_heads=6,
mlp_ratio=4,
qkv_bias=True,
norm_e... |
;(function() {
"use strict";
BX.namespace("BX.Landing.UI.Field");
var setTextContent = BX.Landing.Utils.setTextContent;
var escapeText = BX.Landing.Utils.escapeText;
var data = BX.Landing.Utils.data;
var offsetTop = BX.Landing.Utils.offsetTop;
var offsetLeft = BX.Landing.Utils.offsetLeft;
var bind = BX.Landi... |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... |
const hasPermission = (action) => {
return (req, res, next) => {
const { user } = req.body;
const { asset } = req.params;
const userRoles = resolveUserRoles(user);
const allowed = userRoles.reduce((perms, role) => {
let permissions;
switch (action) {
case "gather":
permis... |
# Copyright 2018 Red Hat, 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 required by applicable law or a... |
import Document, { Head, Html, Main, NextScript } from 'next/document'
import { ServerStyleSheet } from 'styled-components'
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const sheet = new ServerStyleSheet()
const originalRenderPage = ctx.renderPage
try {
ct... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ResizeblePanel, Panel } from '../widgets/ResizeblePanel';
import MagnetopauseMap from './MagnetopauseMap';
import MagnetopauseChart from './MagnetopauseChart';
import { NoDataAlert, Prog... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
#############################################################
# #
# Copyright @ 2018 - Dashingsoft corp. #
# All rights reserved. #
# ... |
(this.webpackJsonpapp1=this.webpackJsonpapp1||[]).push([[0],{196:function(e,t,a){e.exports=a(385)},201:function(e,t,a){},202:function(e,t,a){},385:function(e,t,a){"use strict";a.r(t);var n=a(1),l=a.n(n),r=a(61),c=a.n(r),i=(a(201),a(202),a(93)),s=a(94),o=a.n(s),u=a(153),m=a(32),h=a(33),d=a(25),f=a(38),E=a(39),p=a(22),b=... |
/* -*- mode: js; indent-tabs-mode: nil -*-
Copyright 2012 Jens Lindström, Opera Software ASA
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
Un... |
import React from 'react';
import Magnet from './Magnet';
import Done from './Done';
import Pending from './Pending';
export default function({ torrent }) {
if (torrent.needsMetaData) {
return <Magnet torrent={torrent} />;
}
// TODO: Append ETA
if (torrent.isDone || torrent.isSeeding) {
return <Done ... |
var test = require('tap').test
var server = require('./lib/server.js')
var common = require('./lib/common.js')
var client = common.freshClient()
var us = require('./fixtures/underscore/1.3.3/cache.json')
var usroot = require('./fixtures/underscore/cache.json')
function nop () {}
var URI = 'https://npm.registry:8043... |
import komand
from .schema import DeactivatedListInput, DeactivatedListOutput
# Custom imports below
import json
import urllib
import urllib2
import requests_oauthlib
import requests
class DeactivatedList(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name="deactiva... |
define([
'jquery',
'mage/utils/wrapper',
'mage/template',
'mage/validation',
'underscore',
'jquery/ui'
], function ($) {
'use strict';
return function () {
var string = JSON.stringify($eaCitiesJson),
obj = JSON.parse(string),
cityInput = $("[name*='city']... |
import unittest, sys
from ctypes import *
import _ctypes_test
ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
python_types = [int, int, int, int, int, int,
int, int, int, int, float, float]
class PointersT... |
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.2.3.6-2-3
description: >
Object.defineProperty - argument 'P' is a boolean... |
(function() {
"use strict";
function run(doc, query, options) {
var cursor = doc.getSearchCursor(query, null, options);
for (var i = 3; i < arguments.length; i += 4) {
var found = cursor.findNext();
is(found, "not enough results (forward)");
eqCharPos(Pos(arguments[i], arguments[i + 1]), ... |
/**
* jQuery Diagonal Matrix Fade Plugin
* Examples and documentation at: http://jonobr1.github.com/diagonalFade
* Copyright (c) 2010 Jono Brandel
* Version: .01 (18-MAY-2010)
* Requires: jQuery v1.3.2 or later
*
* TODO:
* + Extend Cycle or write own (based on jquery.cycle.lite.js)
* + Make it so it's not just... |
'use strict'
if (process.platform === 'win32') {
const cp = require('child_process')
// Untested!
// https://projects.puppetlabs.com/issues/15391#note-3
module.exports = function isEC2 () {
return serviceExists('ec2config')
}
function serviceExists (name) {
try {
var res = cp.execSync(`sc q... |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'localhost', ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import date, timedelta
import extract, fmt
def _prepstr(s):
"""
>>> _prepstr(s='')
''
>>> _prepstr(s='$')
'$'
>>> _prepstr(s=' ')
''
>>> _prepstr(s='hello world')
'hello world'
>>> _prepstr(s='hello world'... |
# Generated by Django 2.2.8 on 2020-10-21 22:22
import django.contrib.auth.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('insta', '0004_auto_20201022_0105'),
]
operations = [
migrations.AlterField(
model_name='post',... |
#
# Copyright (c) 2020 IBM Corp.
# 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 writi... |
HC.plugins.rotation_offset_mode.chess45lr = _class(false, HC.RotationOffsetModePlugin, {
name: 'chess45lr',
apply: function (shape) {
var layer = this.layer;
var a = 45;
if (shape.index % 2 == 0) {
} else {
a *= -1;
}
var x = a * this.settings.rotat... |
!function(e){function t(t){for(var r,o,d=t[0],f=t[1],s=t[2],u=0,i=[];u<d.length;u++)o=d[u],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&i.push(a[o][0]),a[o]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);for(l&&l(t);i.length;)i.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.BsJustify = function BsJustify (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16","fill":"currentColor"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M2 12.5a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-... |
'use strict';
function fetchUrl(fetch, url, fetchOptions) {
return fetch(url, fetchOptions).then(function (res) {
if (res.status < 200 || res.status >= 300) {
throw new Error('The source url response status is not OK');
}
return res.json();
});
}
module.exports = fetchUrl; |
import { h } from 'vue'
export default {
name: "StoreMinusOutline",
vendor: "Mdi",
type: "",
tags: ["store","minus","outline"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":... |
import React, { useContext } from "react";
import PropTypes from "prop-types";
import { SOUND_EFFECT_KEY } from "../constants";
const soundEffectContext = React.createContext(true);
export const SoundEffectProvider = ({ children }) => {
const sound = useSoundEffectProvider();
return (
<soundEffectContext.Provide... |
webpackJsonp([37],{1004:function(t,e,s){"use strict";var i=s(4),n=s(436),a=s(433);e.a={mixins:[n.a,a.a],props:{info:{type:Object,default:function(){return{}}},refs:{type:Object,default:function(){return{}}},isDetail:Boolean},methods:{makeup:function(){this.$router.push({name:"dashboard_payment",params:{sid:this.info.si... |
import {
Avatar,
Box,
Card,
CardContent,
Grid,
Typography
} from '@material-ui/core';
import { red } from '@material-ui/core/colors';
import ArrowUpwardIcon from '@material-ui/icons/ArrowUpward';
import PeopleIcon from '@material-ui/icons/PeopleOutlined';
const TotalCustomers = (props) => (
<Card {...pro... |
#!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The DCLRcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Install pip... |
import {Element} from 'chart.js';
import {toRadians} from 'chart.js/helpers';
import {getRectCenterPoint, getChartRect} from '../helpers';
export default class EllipseAnnotation extends Element {
inRange(mouseX, mouseY, useFinalPosition) {
return pointInEllipse({x: mouseX, y: mouseY}, this.getProps(['x', 'y', '... |
// Firebase App (the core Firebase SDK) is always required and
// must be listed before other Firebase SDKs
import * as firebase from 'firebase/app';
// Add the Firebase services that you want to use
import 'firebase/auth';
import 'firebase/database';
// console.log(process.env.NODE_ENV);
// console.log(process.env.R... |
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED... |
# Generated by Django 3.2.13 on 2022-06-01 14:35
from django.db import migrations
def link_categories(apps, schema_editor):
Post = apps.get_model('blog', 'Post')
Category = apps.get_model('blog', 'Category')
for post in Post.objects.all():
category, created = Category.objects.get_or_create(name=p... |
#!/usr/bin/env python3
# python setup.py sdist --format=zip,gztar
from setuptools import setup
import os
import sys
import platform
import imp
import argparse
with open('contrib/requirements/requirements.txt') as f:
requirements = f.read().splitlines()
with open('contrib/requirements/requirements-hw.txt') as f:... |
module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended',
'react-app',
'plugin:@typescript-eslint/recommended',
'standard',
'standard-jsx',
'airbnb',
'google',
'plugin:security/recommended',
'plugin:sonarjs/recommended',
],
plugins: ['react-hooks', 'se... |
"use strict";
const extend = require('extend');
const CleanCSS = require('clean-css');
const UglifyJS = require('uglify-js');
var defaults = {
css: {
path: undefined,
suffix: 'min',
callback: minified => minified.styles,
cleanCss: {
level: {
1: {
... |
#!/usr/bin/node
//
// Copyright (C) 2020 Bluzelle
//
// 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... |
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2014 pimcore GmbH (http://w... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.parseMediaFeature = parseMediaFeature;
exports.parseMediaQuery = parseMediaQuery;
exports.parseMediaList = parseMediaList;
var _Node = require('./nodes/Node');
var _Node2 = _interopRequireDefault(_Node);
var _Container = require(... |
def bubbleSort(arr):
n = len(arr)
# Traverse through all array elements
for i in range(n-1):
# range(n) also work but outer loop will repeat one time more than needed.
# Last i elements are already in place
for j in range(0, n-i-1):
# traverse the array from 0... |
window.onload = function() {
const useNodeJS = true; // if you are not using a node server, set this value to false
const defaultLiffId = ""; // change the default LIFF value if you are not using a node server
// DO NOT CHANGE THIS
let myLiffId = "";
// if node is used, fetch the environment v... |
var searchData=
[
['nano_5faccount_5fbase32_5fconvert_5ferror',['NANO_ACCOUNT_BASE32_CONVERT_ERROR',['../de/d45/errors_8h.html#aad29ef10d01cb6216bbdfcd60b57ed92ab8ac9ec480d80c741c0e3c68eb5a827e',1,'errors.h']]],
['nano_5faccount_5fto_5fpk_5fnull_5fstring',['NANO_ACCOUNT_TO_PK_NULL_STRING',['../de/d45/errors_8h.html... |
var honeySwitch={};honeySwitch.themeColor="rgb(100, 189, 99)";honeySwitch.init=function(){var s="<span class='slider'></span>";$("[class^=switch]").append(s);$("[class^=switch]").click(function(){if($(this).hasClass("switch-disabled")){return;}
if($(this).hasClass("switch-on")){$(this).removeClass("switch-on").addClass... |
export default {
/*
** Nuxt rendering mode
** See https://nuxtjs.org/api/configuration-mode
*/
mode: 'universal',
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'server',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {... |
"use strict";
exports.__esModule = true;
exports.c_table__compound_expansion_toggle__button_Color = {
"name": "--pf-c-table__compound-expansion-toggle__button--Color",
"value": "#06c",
"var": "var(--pf-c-table__compound-expansion-toggle__button--Color)"
};
exports["default"] = exports.c_table__compound_expansion_... |
$(function() {
consoleInit(main)
});
const INK_CHEF_ABI = [{"inputs":[{"internalType":"address","name":"_ink","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"addre... |
# -*- coding: utf-8 -*-
from . import helpers
import os
import shutil
import json
import logging
import sys
import face_recognition
from ringFace.ringUtils import commons
def processUnencoded(imageDir):
"""
Processes any unencoded image in the new-images subdir of a person, and moves it into encoded-ima... |
from otree.api import Currency as c, currency_range
from . import pages
from ._builtin import Bot
from .models import Constants
# **********************************************************************************************************************
# *** BOT
# *********************************************************... |
export default function changeMessege(messege) {
return { type: "CHANGE_MESSEGE", payload: messege};
} |
module.exports = {
extends: ['@mscharley', '@mscharley/eslint-config/node'],
};
|
shadow$provide.module$node_modules$validator$lib$isIn=function(global,process,require,module,exports,shadow$shims){Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"===type... |
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Test Atomics.and on non-shared integer TypedArrays
includes: [testTypedArray.js]
---*/
var ab = new ArrayBuffer(16);
var int_views = [Int8Array, Uint8Array, I... |
export { default } from 'maximum-plaid/components/plaid-bar/component';
|
const {signIn, signOut} = require('../services');
const {AUTHORIZATION_HEADER, USER_ID_HEADER} = require('../config');
const {httpCustom, headers} = require('../utils');
const {statusCodes} = httpCustom;
const signInEndpoint = async(req, res) => {
const result = await signIn(req.body);
const {data, success} = res... |
import React from "react";
export default function AdminButton({ text }) {
return <div className="admin-button">{text}</div>;
}
|
window.cesiumGoogleEarthDbRootParser=function(e){"use strict";var r,t,o=e.Reader,a=(e.Writer,e.util),n=[],i=e.roots.default||(e.roots.default={});return i.keyhole=((t={}).dbroot=((r={}).StringEntryProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)this[r[t]]=e[r[t]]}return r.prototype.strin... |
jQuery(document).ready(function($) {
function hideupdate() {
$("#normal").hide();
$("#applyComplete").hide();
$("#applyLogical").hide();
}
$("#logically").click(function () {
hideupdate();
//swal('logically');
$("#applyLogical").css("display","block");
});
$("#completel... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
describe('evaluator', function() {
function XrefMock(queue) {
this.queue = queue;
}
XrefMock.prototype = {
fetchIfRef: function() {
ret... |
'use strict';
exports.__esModule = true;
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
exports.default = {
uncaughtEr... |
var CLViewModel = function (signalR) {
var self = this;
//Loading observable for note body window and page
self.loadingBody = ko.observable(false);
self.loadingPage = ko.observable(true);
//Loading text var
var loadingText = document.getElementById("loadingText");
//Observable arrays
... |
const inquirer = require('inquirer');
const generateMarkdown = require('./Clone-Develop/utils/generateMarkdown.js');
const fs = require('fs');
const questions = [
{
type: 'input',
name: 'title',
message: 'Please Enter the Name of your Project? (Required):',
validate: titleInput => ... |
from django.db import models
from django.utils.text import slugify
class PatientInfo(models.Model):
id_patient =models.CharField(max_length=200)
age= models.IntegerField(default=0)
address = models.CharField(max_length=200)
status = models.CharField(max_length=100)
national= models.CharField(max_l... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
// Will load from base path
files: [
'/test/fixtures/*.json'
]
};
//# sourceMappingURL=sequelize-fixtures.js.map |
from django.urls import path
from . import views
urlpatterns = [
path("<int:id>",views.index, name="index"),
path("v1/",views.v1, name="view 1"),
path("", views.home,name="home"),
path("home/", views.home, name="home"),
path("create/", views.create, name="create")
] |
{"frequencies":[261.6255653006,289.11520789678,327.03195662575,352.6257619269,388.64667309147,441.73012112348,478.69895237627,523.2511306012],"description":"Balinese saih pitu, gamelan luang, banjar Se`se'h. 1/1=276 Hz. McPhee, 1966"} |
import IconWrapper from './IconWrapper';
export default {
name: 'FileIcon',
props: {
size: {
type: String
},
primaryColor: {
type: String
},
secondaryColor: {
type: String
}
},
render(h) {
// eslint-disable-next... |
'use strict';
const tools = require('../tools.js');
function detect(ignore1, ignore2, options, callback) {
// options.newInstances
// options.existingInstances
// device - additional info about device
// options.log - logger
// options.language - system language
tools.words['web interface'] = ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.connectDragPreview = exports.connectDragSource = exports.connectDropTarget = exports.isDragging = exports.itemComponentProps = exports.listComponentProps = exports.initialRowIndex = exports.dndDisabled = exports.overscanRowCount = e... |
import mock from 'mock-fs';
import path from 'path';
import getServiceAliases from './getServiceAliases';
import createMock from '../../__mocks__/fsConfig';
jest.mock('../../utils/nodeRequire.js');
describe('getServiceAliases', () => {
beforeEach(createMock);
afterEach(mock.restore);
it('should return an objec... |
const router = require("express").Router();
const { v4 } = require("uuid");
const uuidv4 = v4;
const multer = require("multer");
const { get_time } = require("../../lib/debug_info");
const { getAll } = require("./get_all/getAll");
const { getUserProducts } = require("./get_user_products/getUserProducts");
const { crea... |
// ./express-server/routes/proyector.server.route.js
import express from 'express';
//import controller file
import * as proyectorController from '../controllers/proyector.server.controller';
// get an instance of express router
const router = express.Router();
router.route('/')
.get(proyectorController.getProy... |
var fs = require("fs");
var util = require("util");
var path = require("path");
var Exception = require("./Exception");
var Helpers = require("./Helpers");
var Buff = require("./Buffer");
const protocols = {
GET_COMM_EVENT_COUNTER: require('./protocol/GET_COMM_EVENT_COUNTER'),
GET_COMM_EVENT_... |
import json
import os
import random
def load(filename='seed.db',autodump=False):
Seed = SeedDatabase(filename,autodump)
Seed.load_file()
return Seed
class SeedDatabase():
json_object = {}
def __init__(self,fileName,autodump):
self.fileName = fileName
self.autodump = autodump
d... |
# coding: utf-8
from __future__ import absolute_import, print_function, unicode_literals
import pytest # NOQA
from .roundtrip import YAML, dedent, round_trip, round_trip_dump, round_trip_load
def rt(s):
import ruyaml
res = ruyaml.dump(
ruyaml.load(s, Loader=ruyaml.RoundTripLoader),
Dumper... |
/*
* Copyright 2020 SkillTree
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
import { css } from 'lit-element';
export default css`/*css*/
.alert {
z-index: 9999;
position: fixed;
right: 20px;
top: 20px;
width: 250px;
height: 50px;
padding: 20px;
background-color: #46A8F5;
color: white;
border-radius: 10px;
animation-name: open-notify;
animation-duration: 300ms;
}
.aler... |
'use strict';
const chai = require('chai');
const { assert } = chai;
const mockery = require('mockery');
const sinon = require('sinon');
sinon.assert.expose(chai.assert, { prefix: '' });
describe('rabbitmq message consumer test', async () => {
let requestMock;
let helperMock;
let retryQMock;
let conf... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('./main.js');
window.Vue = require('vue');
/**
* The followin... |
// Copyright 2018-2021 Polyaxon, 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 agre... |
$(document).ready(function() {
var background_element = $('#video_image');
var do_update_image = true;
FastClick.attach(document.body);
function updateBackground(){
if(!do_update_image){ return; }
var random = 1 + Math.floor(Math.random() * 10000);
var img = new Image();
... |
/*! jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */
jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,e,t,u,a){return jQuery.easing[jQuery.easing.def](n,e,t,u,a)},easeInQuad:function(n,e,t,u,a){return u*(e/=a)*e+t},easeOutQuad:function(n,e,t,u,a){... |
/*!
* ${copyright}
*/
// Provides implementation of sap.ui.documentation.sdk.util.jsanalyzer.Doclet
sap.ui.define(['jquery.sap.global'],
function (jQuery) {
"use strict";
/* ---- private functions ---- */
/**
* Removes the mandatory comment markers and the optional but common asterisks at the beginning ... |
from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
from time import monotonic
import logging
import functools
from django.core.cache import cache
# Get an instance of a logger
logger = logging.getLogger(__name__)
# set the default Django settings module for the 'celery' prog... |
/*
* Copyright (c) 2011 Róbert Pataki
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, d... |
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import json
import board
import busio
from digitalio import DigitalInOut
import neopixel
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
impor... |
"""
Usage:
calicoctl container <CONTAINER> ip (add|remove) <IP> [--interface=<INTERFACE>]
calicoctl container <CONTAINER> endpoint show
calicoctl container <CONTAINER> profile (append|remove|set) [<PROFILES>...]
calicoctl container add <CONTAINER> <IP> [--interface=<INTERFACE>]
calicoctl container remove <CON... |
import {StyleSheet, Text, TextInput, View} from 'react-native';
import Icon from 'react-native-vector-icons/Feather';
import React from 'react';
const SeachBar = ({term, onTermChange, onTermSubmit, placeholder}) => {
return (
<View style={styles.backg}>
<Icon style={styles.iconStyle} name="search" size={2... |
"""This can be empty, but you can put anything in here
that you would want to get executed automatically"""
__version__ = '1.0.0'
__author___ = 'Paul Wlodkowski'
from .recommender_module import Recommender
|
import React, {useContext, useState} from 'react';
import {injectStripe} from 'react-stripe-elements';
import CardSection from './CardSection';
import FormErrors from "../FormErrors/FormErrors";
import Button from "../Button/Button";
import HttpClient from "../../Services/HttpClient";
import AppContext from "../../admi... |
jQuery(($) => {
class Forms {
constructor() {
this.inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md', 'date']
.map((selector) => `input[type=${selector}]`)
.join(', ')}, textarea`;
this.textAreaSelector = ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.kab');
goog.require('Blockly.Msg');
Blockly.Msg["ADD_COMMENT"] = "Rnu awennit";
Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Ur izmir ara ad yekkes amutti '%1' acku yedda di tbadut n twuri '%2'";
Blockly.Msg["CHA... |
var util = require('util');
var BaseStrategy = require('./BaseStrategy.js');
var RestForOneStrategy = function() {
BaseStrategy.apply(this, arguments);
};
util.inherits(RestForOneStrategy, BaseStrategy);
RestForOneStrategy.prototype.process = function(idx) {
var kidCount = this.sup.countChildren();
var now = n... |
''' If Statements
Used to check conditions before it executes certain code.
They help my programs make decicions.
They only run code in if-block when condition is True.
If a condition is not meet, then nothing runs.
Basic syntax
if(condition):
indented Statement block
'''
a = 7
b = 8
if... |