text stringlengths 3 1.05M |
|---|
(function(e){function t(t){for(var r,u,c=t[0],i=t[1],l=t[2],p=0,d=[];p<c.length;p++)u=c[p],Object.prototype.hasOwnProperty.call(a,u)&&a[u]&&d.push(a[u][0]),a[u]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);s&&s(t);while(d.length)d.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var e,... |
define({
_widgetLabel: 'Thông tin Đối tượng',
noDeataMessageDefaultText: 'Không tìm thấy dữ liệu.',
featureNumbers: '{index} / {count}'
}); |
var defaultKeyMap = {
'addPrivateTab': 'shift+mod+p',
'toggleTasks': 'shift+mod+e',
'goBack': 'mod+left',
'goForward': 'mod+right',
'enterEditMode': ['mod+l', 'mod+k'],
'runShortcut': 'mod+e',
'completeSearchbar': 'mod+enter',
'closeTab': 'mod+w',
'restoreTab': 'shift+mod+t',
'gotoFirstTab': 'shift+... |
""" implements an class for YAML-style information
"""
import numbers
from types import SimpleNamespace
try:
from collections.abc import Collection as _Collection
except ImportError:
from collections import Collection as _Collection
import yaml
from autofile.info._inspect import function_keys as _function_keys
... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Router from 'react-routi... |
'use strict';
var types = require('./types');
var Chainable = require('./chainable');
var _ = require('lodash');
var utils = require('../utils');
module.exports = SchemaBuilder;
function SchemaBuilder(options){
this._schema = new Schema(options);
this.childBuilders = [];
this.initialized = false;
this.bui... |
import highlight from '../highlight';
/* eslint-disable @typescript-eslint/camelcase */
const hit = {
name: 'Amazon - Fire TV Stick with Alexa Voice Remote - Black',
description:
'Enjoy smart access to videos, games and apps with this Amazon Fire TV stick. Its Alexa voice remote lets you deliver hands-free com... |
import Criteria from 'src/core/data-new/criteria.data';
import utils from 'src/core/service/util.service';
export default {
name: 'sw-entity-single-select',
extendsFrom: 'sw-single-select',
inject: ['repositoryFactory', 'context'],
props: {
options: {
required: false,
... |
/* eslint-env jest */
import React from 'react'
import ReactDOM from 'react-dom'
import TimeLine from '../../src/components/TimeLine'
import { Provider } from 'react-redux'
import store from '../../src/configureStore'
it('renders without crashing', () => {
const div = document.createElement('div')
const timeLine =... |
# Copyright (c) 2020-2021 CRS4
#
# 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, distribut... |
require('./graph/graph-launcher.js');
require('./graph/graph-viz.js');
require('./model_tree/model_tree.js');
require('./model_tree/model_tree_line.js');
require('./search/search.js');
require('./table_details/table_details.js');
|
import healper
sql_statement_station_data = """ CREATE OR REPLACE VIEW view_station_data AS
select sm.* from stations as s
left outer join station_metadata as sm on s.id=sm."kioskId"
order by sm."kioskId"
"""
a = healper.CreateView(sql_statement_station_data)
a.view_creator()
sql_statement_data_view = """
CREATE OR ... |
import React, { Component } from 'react';
import Form from './Form';
import Loader from 'components/common/Loading';
import { Formik } from 'formik';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { validateToken } from 'redux/actions/passwordReset';
import { unsetErrors } ... |
/**
* Gene set state. Geneset UI state is in a different reducer.
*
* geneset reducer state is a Map object, where:
* key: the geneset name, a string.
* val: the geneset defined as an object ("geneset object")
*
* A geneset object is:
* {
* genesetName: <string> # same as the map key
* genesetDescrip... |
var anguLara = angular.module('anguLara', ['ngRoute'], function($interpolateProvider) {
$interpolateProvider.startSymbol('<%');
$interpolateProvider.endSymbol('%>');
})
.constant('API_URL', 'http://localhost:8000/api/v1/'); |
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = loader;
exports.raw = void 0;
var path = require("path");
var xlsx = require('node-xlsx').default;
var _loaderUtils = require("loader-utils");
var fs = require("fs");
function loader (source) {
var options = (0, _loaderUtils.ge... |
import zipfile
import requests
import StringIO
u = requests.get("http://www.pythonchallenge.com/pc/def/channel.zip")
f = StringIO.StringIO()
f.len
f.read
f.write(u.content)
def extract_zip(input_zip):
input_zip = zipfile.ZipFile(input_zip)
return {i: input_zip.read(i) for i in input_zip.namelist()}
extracted ... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
/*
* Copyright 2012 the original author or authors
* @license MIT, see LICENSE.txt for details
*
* @author Scott Andrews
*/
(function (define) {
'use strict';
/**
* Aggregate messages by correlationId and sequenceNumber
*
* @author Scott Andrews
*/
define(function (require) {
var msgs = require('..... |
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
'use strict';
module.exports = function (options) {
var errorHandler = require('../errorHandler')(options);
return function (req, res, next) {
var handler = function handler(err, access) {
if (err) {
return errorHandler(req, res, next)(err);
}
if (['public', 'private', 'protected'].... |
/**
*
* Submits a form found by given selector. The submit command may also be applied
* to any element that is a descendant of a `<form>` element.
*
* <example>
:index.html
<form action="/form.php" method="post" id="loginForm">
<label for="username">User:</label>
<input type="text" name="u... |
# encoding: utf-8
#
# Copyright (c) 2014 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2014-02-15
#
"""
Basic, ``requests``-like API for retrieving data from the Web.
Intended to replace basic functionality of ``requests``, but at
1/200th of the size.
Fea... |
import styles from "./Image.module.scss";
import { RichText } from "prismic-reactjs";
import { default as NextImage } from "next/image";
const Image = ({ primary }) => (
<section className={`grid grid--full ${styles.section}`}>
{primary.image && primary.image.url && (
<div
className={`${styles.image} ${
... |
# Copyright 2015-2017 Capital One Services, 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 ... |
/**
* API utilities service
*
* @module app/common/services/api-utils
* @exports APIUtils
* @name APIUtils
*/
window.angular && (function(angular) {
'use strict';
angular.module('app.common.services').factory('APIUtils', [
'$http', 'Constants', '$q', 'dataService', '$interval',
function($http, Consta... |
import os
import re
import sys
from packaging import version
from subprocess import Popen, PIPE
from .console_logger import ColorPrint
class EnvironmentUtils:
@staticmethod
def get_variable(key, default=None):
return os.environ.get(key, default)
@staticmethod
def set_variable(key, value):
... |
import { Validators } from '@angular/forms';
import { isPresent } from '../util/lang';
export const dateISO = (control) => {
if (isPresent(Validators.required(control))) {
return null;
}
const v = control.value;
return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(v) ? null... |
function my_function947(){
//46856700998685316348397044926969PRxGJyhTojHeGUMwJEaVpjIDtryUMYdC
}
function my_function677(){
//72792407861560957859925864008743nFSRpWyPOvdxOHnWsZmcJmScjzzsTOgj
}
function my_function614(){
//57606514402076865115158680832835FeaPhzFAKBYIoJLSFTJynvEOfVzkTZwm
}
function my_function976(){
/... |
/**
* Auto-generated action file for "Jira" API.
*
* Generated at: 2019-05-07T14:37:00.282Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / atlassian-com-jira-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under... |
'use strict'
import test from 'ava'
import {
createTable,
updateDatabase,
getDateReport,
getFullReport,
getSearchTerm,
removeDatabase,
calculateWorkHours
} from '../lib/db.js'
import {dbTestFile} from '../lib/utils/configManager.js'
// natives
const fs = require('fs')
const moment = require('moment')
... |
var NAVTREEINDEX9 =
{
"class_uni_engine_1_1_skinned_mesh_renderer.html#a076369f6851bd7b617c7b0adce52a4de":[1,0,0,115,1],
"class_uni_engine_1_1_skinned_mesh_renderer.html#a096b971635fdcde153e4bdfee578990a":[0,0,0,115,3],
"class_uni_engine_1_1_skinned_mesh_renderer.html#a096b971635fdcde153e4bdfee578990a":[1,0,0,115,3],
"... |
"""
Copyright (c) 2022 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 agreed to in writin... |
console.log("+ + + utils/utils... ")
import Vue from "vue"
// PURE UTILS
// - - - - - - - - - - - - - - - - - - - //
// CLEAN VALUES
// - - - - - - - - - - - - - - - - - - - //
export function capitalizeString(string) {
return string[0].toUpperCase() + string.substring(1)
}
export function splitMulti(str, tokens,... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
ScrollView
} from 'react-native';
import {
RkCard,
RkText,
RkStyleSheet
} from 'react-native-ui-kitten';
import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
import moment from 'moment/min/moment-with-locales';
impor... |
import React from 'react';
const IconInstagram = () => (
<svg
xmlns="http://www.w3.org/2000/svg"
role="img"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
className="feather feather-instagram"
>
<title>Insta... |
/**
*
* Install:
* npm install grunt grunt-browser-sync
*
* Run:
* grunt
*
* This example will wrap your existing vhost in a proxy URL
* Use the proxy URL to view your site.
*
*/
module.exports = function (grunt) {
grunt.initConfig({
// BrowserSync Task
browserSync: {
... |
const fs = require('fs');
const dbDir = './db/'
exports.getResources = function() {
const files = fs.readdirSync(dbDir, { withFileTypes: true });
// console.log(files);
const jsonFiles = files.filter(fl => {
// console.log(fl)
const name = fl.name.split('.');
if(name[1] && name[1] === 'json... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _draftJs = require("draft-js");
var _createDecorator = _interopRequireDefault(require("./createDecorator"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
f... |
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
const NotFoundPage = () => (
<Layout>
<SEO title="404: Not found" />
<h1> NOT FOUND </h1>
<p>Você tentou acessar uma rota que não existe...infelizmente.</p>
</Layout>
)
export default NotFoundPage
|
System.register(["./p-226ad382.system.js","./p-7db317d0.system.js","./p-c5ed78fc.system.js","./p-44489c7e.system.js","./p-1fe9a9c9.system.js"],function(e){"use strict";var t,i,n,s,o;return{setters:[function(e){t=e.r;i=e.h},function(e){n=e.C},function(e){s=e.T},function(){},function(e){o=e.B}],execute:function(){var a=u... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Vector.class.js :+: :+: :+: ... |
from app import create_app
app = create_app('default') |
import React, { useState, useEffect } from 'react';
import { Outlet, useNavigate } from 'react-router-dom';
// material
import { styled } from '@mui/material/styles';
//
import DashboardNavbar from './DashboardNavbar';
import DashboardSidebar from './DashboardSidebar';
import useAuth from '../../hooks/useAuthenticati... |
<%#
Copyright 2013-2017 the original author or authors from the JHipster project.
This file is part of the JHipster project, see http://www.jhipster.tech/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ma... |
'use strict';
module.exports = {
meta: {
docs: {
description: 'Forbid modules syntax.'
},
schema: []
},
create(context) {
return {
ImportDeclaration(node) {
context.report({
node,
message: 'Unexpected import statement. Use require() instead.'
});
... |
from invoke import run, task
@task
def test():
run("nosetests .")
# We'll want these eventually.
'''
@task
def doc():
run('cd docs && make html')
@task
def docserve():
print 'Serving docs on localhost:8000...'
run('cd docs/_build/html && python -m SimpleHTTPServer')
@task
def publish():
run('./setup.... |
{
var __result1 = Date.prototype.hasOwnProperty("toTimeString") !== true;
var __expect1 = false;
}
|
from django.utils.decorators import method_decorator
from corehq import privileges
from corehq.apps.accounting.decorators import requires_privilege_with_fallback
from corehq.apps.reports.dispatcher import ReportDispatcher, ProjectReportDispatcher, datespan_default
from corehq.apps.users.decorators import require_permis... |
// Generated by IcedCoffeeScript 1.7.1-f
(function() {
var BlockCipher, G, Global, TwoFish, scrub_vec,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.... |
function register_events_config()
{
$("#form-config-submit").click(function(e){
$("#form-config-submit").attr("disabled", "disabled");
var pattern = $("#form-config-pattern").val();
var expire = $("#form-config-expire").val();
var limitation = $("#form-config-limitation").val();
var interval = $("#form-confi... |
import m from 'mithril';
const bigInputCard = {
view: function({attrs}) {
const cardClass = attrs.cardClass || '.w-row.u-marginbottom-30.card.card-terciary.padding-redactor-description.text.optional.project_about_html.field_with_hint';
return m(cardClass, { style: (attrs.cardStyle || {}) }, [
... |
module.exports = obj => {
const result = {};
for (let key in obj) {
const value = obj[key];
if (!isEmpty(value)) {
result[key] = value;
}
}
return result;
};
function isEmpty(value) {
return typeof value != 'boolean' && !value;
}
|
#!/opt/miniconda/bin/python
from __future__ import print_function
from builtins import str
from builtins import range
import sys
def main():
import argparse
import redis
import time
import sys
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
from ... |
export {default as Calendar} from './calendar';
export {default as CalendarList} from './calendar-list';
export {default as Agenda} from './agenda';
export {default as ExpandableCalendar} from './expandableCalendar';
export {default as AgendaList} from './expandableCalendar/agendaList';
export {default as CalendarProvi... |
import ClientFormAPI from '../ClientFormAPI';
module.exports = ClientFormAPI;
|
"use strict";
var _dbSetup = require("../db/db-setup.js");
var _dbSetup2 = _interopRequireDefault(_dbSetup);
var _sqlFilters = require("../utils/sql-filters.js");
var _sqlFilters2 = _interopRequireDefault(_sqlFilters);
var _moment = require("moment");
var _moment2 = _interopRequireDefault(_moment);
function _int... |
import DisplayEmailReminder from "../index";
const initProps = {
reminder: false,
};
const wrapper = mount(<DisplayEmailReminder {...initProps} />);
describe("Display Email Reminder", () => {
it("initally displays an unsent email reminders icon when 'reminder' prop is false", () => {
expect(wrapper.find("FaStopw... |
# -*- coding: utf-8 -*-
# Copyright 2018-2019 Streamlit 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 applicabl... |
import VenueListItem from './RepoListItem';
export { VenueListItem };
|
import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@material-ui/core';
import { injectIntl } from 'bluesquare-components';
import MESSAGES from './messages';
function SnackBarButton(props) {
const {
messageKey,
onClick,
intl: { formatMessage },
} = ... |
from armulator.armv6.opcodes.abstract_opcodes.adc_register import AdcRegister
from armulator.armv6.opcodes.opcode import Opcode
from armulator.armv6.shift import decode_imm_shift
class AdcRegisterT2(AdcRegister, Opcode):
def __init__(self, instruction, setflags, m, d, n, shift_t, shift_n):
Opcode.__init__... |
var fs = require("fs");
const inquirer = require("inquirer");
const generateMarkdown = require("./utils/generateMarkdown.js");
const licenses = [new inquirer.Separator("---Popular---"), "MIT", "GNU GPLv2", "GNU GPLv3", "Apache 2.0", "BSD 3-Clause", "BSD 2-Clause", "Unlicense", "GNU LGPLv3", "GNU AGPLv3"];
// array of ... |
from setuptools import setup
setup(
name="deta",
version="0.8",
description="Python SDK for Deta Base & Deta Drive.",
url="http://github.com/deta/deta-python",
author="Deta",
author_email="hello@deta.sh",
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
... |
from ._op_item_type_registry import op_register_item_type
from ._op_items_base import OPAbstractItem
@op_register_item_type
class OPServerItem(OPAbstractItem):
TEMPLATE_ID = "110"
def __init__(self, item_dict):
super().__init__(item_dict)
@property
def password(self):
password = self... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { BrowserRouter } from "react-router-dom";
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root'));
// If you w... |
import React from 'react'
import PropTypes from 'prop-types'
import { StaticQuery, graphql } from 'gatsby'
import url from 'url'
import config from '../../../utils/siteConfig'
import ArticleMeta from './ArticleMeta'
import WebsiteMeta from './WebsiteMeta'
import AuthorMeta from './AuthorMeta'
/**
* MetaData will gene... |
"use strict";
if (!colors) {
var colors = {};
}
var colorsNames = [];
var colorsDefault = {
primary: "#0d6efd",
secondary: "#6c757d",
success: "#198754",
info: "#0dcaf0",
warning: "#ffc107",
danger: "#dc3545",
light: "#f8f9fa",
dark: "#212529",
};
var colorsBS = {
indigo: "#6610f2",
purple: "#6f42... |
/* eslint-disable react/jsx-filename-extension */
/* eslint-disable react/prop-types */
/* eslint-disable react/prefer-stateless-function */
import React, { Component } from 'react';
import classnames from 'classnames';
import styles from '../global-sass-files/_containers.scss';
class ExtensionsWrapper extends Compon... |
define("travis/templates/components/repos-list-item", ["exports"], function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Ember.HTMLBars.template({ "id": "YtqJtzK1", "block": "{\"symbols\":[],\"statements\":[[6,\"div\"],[10,\"class\",[26,[\"tile ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
# Copyright (c) Facebook, Inc. and its affiliates.
import collections
import json
import logging
import os
import warnings
from ast import literal_eval
import demjson
import torch
from mmf.common.registry import registry
from mmf.utils.env import import_user_module
from mmf.utils.file_io import PathManager
from mmf.ut... |
import React from 'react';
import { render } from '@testing-library/react';
import Select from './';
const options = Array.apply(null, Array(5)).map((a, i) => ({
value: `${i + 1}`,
label: `Option ${i + 1}`,
}));
describe('select', () => {
it('renders without crashing', () => {
render(
<Select
value="value... |
var Bebella = angular.module('Bebella', ['ui.router', 'datatables', 'angular-flot', 'ngStorage']);
var APP_URL = $("#APP_URL").val();
var API_TOKEN = $("#API_TOKEN").val();
function view(path) {
return APP_URL + '/channel/' + path;
}
function api_v1(path, token) {
return APP_URL + '/api/v1/' + path + '?api_t... |
from mathx.web import evaluate
import logging
import os
handler = logging.StreamHandler()
formatter = logging.Formatter( '%(asctime)s %(levelname)s %(message)s')
handler.setFormatter(formatter)
root_logger = logging.getLogger()
root_logger.addHandler(handler)
if os.environ.get("MATHX_MODE") == "development... |
import jsonparse
import re
class Channel:
channel_dir = './youtube_notifier/data/channels.json'
last_upload_dir = './youtube_notifier/data/uploads.json'
empty_search = 'AllVideos'
def __init__(self, name):
self.name = name
self.ytlink = self.set_link()
self.searchterms = self... |
import React, { useState, useEffect } from 'react';
import {Card, CardHeader, Grid} from '@material-ui/core';
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import ListItemText from "@material-ui/core/ListItemText";
import {ArrowBack} from "@material-ui/icons";
import {Fix... |
module.exports = {
projects: [
'./packages/repo2', // Shorthand for specifying only the project root location
{
// **required**
// Where is your project?
// It is relative to `vetur.config.js`.
root: '.',
// **optional** default: `'package.... |
import React from 'react';
import { injectIntl, intlShape } from '../../util/reactIntl';
import { arrayOf, string } from 'prop-types';
import classNames from 'classnames';
import { Avatar, ReviewRating, UserDisplayName } from '../../components';
import { propTypes } from '../../util/types';
import css from './Reviews.... |
import React from "react";
import { createContext, useEffect, useState } from "react";
import axios from "axios";
/* eslint-disable react/prop-types */
const AuthContext = createContext();
const AuthContextProvider = ({ children }) => {
const [loggedIn, setLoggedIn] = useState(null);
const [triggerRender, setTrigg... |
const Resolver = artifacts.require("Resolver");
const Oracle = artifacts.require("Oracle");
const truffleAssert = require("truffle-assertions");
contract("Resolver", async accounts => {
let resolverInstance;
let oracleInstance;
// before hook is run before all tests
before(async () => {
resolverInstance =... |
var core = require("./core").dom.level2.core,
html = require("./html").dom.level2.html,
utils = require("../utils"),
cssom = require("cssom"),
cssstyle = require("cssstyle"),
assert = require('assert');
// What works now:
// - Accessing the rules defined in individual stylesheets
// - Modi... |
setCssToHead([".",[1],"container .",[1],"top-text { padding: ",[0,140]," ",[0,130]," 0 ",[0,130],"; }\n.",[1],"container .",[1],"img-back6 { height: ",[0,540],"; }\n.",[1],"container .",[1],"imgs { padding: ",[0,170]," ",[0,140],"; }\n.",[1],"container .",[1],"imgs .",[1],"img-camera { width: ",[0,130],"; height: ",[0,... |
/**
* Secure hash functions(currently support SHA256 and SHA224)
* and HMAC(currently support HMAC-SHA256 and HMAC-SHA224)
*
* Reference:
* http://en.wikipedia.org/wiki/SHA-2
* http://en.wikipedia.org/wiki/HMAC
*
* Copyright (c) 2012, Hui Zheng
* License: MIT License <http://www.opensource.org/licenses/mit-l... |
var clock = document.getElementById('clock');
function drawClock() {
let now = new Date();
let str = now.toISOString();
let fmt = str.slice(11, 19);
clock.innerText = fmt;
}
drawClock();
setInterval(drawClock, 100);
|
import random
import matplotlib.pyplot as plt
import matplotlib.widgets as wid
import numpy as np
import pandas as pd
column_names = ["sepal-length", "sepal-width", "petal-length", "petal-width", "class"]
iris_data_set = pd.read_csv("iris.csv", names=column_names, header=None)
# Iris-virginica Datensätze aussortiere... |
(function () {
// JS construct
})();
function initPage(){
LobiAdmin.highlightCode();
initValidationDefaults();
$("#form_input").validate({
rules: {
price_grade_code: {
required: true,
nowhitespace: true,
},
price_grade_name: {
required: true,
},
margin: {
required: true,
nu... |
// Copyright 2015 Teem2 LLC, MIT License (see LICENSE)
// BusServer class, a package of websockets you can broadcast on (server side)
define.class(function(require, exports, self){
self.atConstructor = function(){
this.sockets = []
}
// adds a WebSocket to the BusServer
self.addWebSocket = function(sock){
th... |
import time
import paramiko
import os
from lib.logee import logger
from config import NODE_CONFIG
match_list = []
def traversal_match_node(info, node_ip):
for k, v in info.items():
if isinstance(v, dict):
traversal_match_node(v, node_ip)
elif isinstance(v, list):
for ite... |
/**
* DevExtreme (esm/renovation/ui/grids/data_grid/common/data_grid_props.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import _extends from "@ba... |
/**
* Generated by `createschema billing.BillingIntegration name:Text;`
* In most cases you should not change it by hands
* Please, don't remove `AUTOGENERATE MARKER`s
*/
const { generateGqlQueries } = require('@condo/domains/common/utils/codegeneration/generate.gql')
const COMMON_FIELDS = 'id dv sender { dv fing... |
"""Constants and allowed parameter values specified in the Userlist API."""
PUSH_URL = 'https://push.userlist.com/'
# Date formats
VALID_DATE_FORMATS = ['%Y-%m-%dT%H:%M:%S%z', '%Y-%m-%dT%H:%M:%S'] |
export default function PageTitle({ children }) {
return (
<h1 className="text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-4xl md:leading-14">
{children}
</h1>
)
}
|
import React from 'react';
// import useHistory here.
import { useHistory } from 'react-router-dom';
const PetDetailsNotFound = () => {
// get the history object from useHistory()
const history = useHistory();
const goBack = () => {
history.goBack(); // Go back!
}
return (
<main className="page"... |
export const printWidth = 100;
export const tabWidth = 4;
export const useTabs = false;
export const semi = true;
export const singleQuote = true;
export const quoteProps = "as-needed";
export const jsxSingleQuote = false;
export const trailingComma = "none";
export const bracketSpacing = true;
export const jsxBracketS... |
"""
**************************************************************
* CpuSet *
**************************************************************
00000b4c 30 b5 ... |
# coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: extensions/v1beta1
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");... |
import createModel from './base_model';
/**
* @class SalesChannel class struct
* @param source {Object} - Initialisation object for SalesChannel
*/
const SalesChannel = createModel({
locale: { key: 'locale', type: 'string' },
channel: { key: 'sales-channel', type: 'string' },
tocURL: { key: 'toc_url', type: 'str... |
module.exports = {
extends: [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"prettier/@typescript-eslint", // Uses eslint-config-prettier to ... |