text
stringlengths
3
1.05M
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("styled-components"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","styled-components","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).primer={},e.React,...
import Vue from 'vue' import VueScrollTo from 'vue-scrollto' import VueI18n from 'vue-i18n' import VueLazyload from 'vue-lazyload' import App from './App' import messages from './assets/i18n.json' import '@fortawesome/fontawesome-free/css/all.min.css' Vue.config.productionTip = false Vue.use(VueScrollTo, { offset: -50...
# -*- coding: utf-8 -*- from Questions.Question import Question import datetime class Time(Question): def getAnswer(self): now = datetime.datetime.now() return self.randomAnswer([ "A pontos idő "+str(now.hour)+" óra "+str(now.minute)+" perc", str(now.hour) + " óra " + st...
export const deletable = { methods: { destroy(url) { return new Promise((resolve) => { this.$confirm('¿Desea eliminar el registro?', 'Eliminar', { confirmButtonText: 'Eliminar', cancelButtonText: 'Cancelar', type: 'warni...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.AccessibleIcon = React.forwardRef(function (props, ref) { var attrs = { "fill": "cu...
"""Example: monitor for incoming calls and display caller id information.""" from basicmodem.basicmodem import BasicModem as bm state = bm.STATE_IDLE def callback(newstate): """Callback from modem, process based on new state""" print('callback: ', newstate) if newstate == modem.STATE_RING: if st...
import React, { Component } from 'react' import { NavBarContainer, NavBarHeaderLinkContainer, NavBarHeaderLink, NavBarAccountCircle } from './NavBar' import NavBarBrand from './NavBarBrand' import NavBarButton from './NavBarButton' import Logo from '../../assets/logo.png' /* <NavBarBrandContainer to="/cont...
#!/usr/bin/env python """Datastore Input Reader Base Test for the map_job API.""" import unittest from google.appengine.api import datastore_types from google.appengine.api import namespace_manager from google.appengine.datastore import datastore_stub_util from google.appengine.ext import testbed from testlib import t...
from decimal import Decimal from operator import attrgetter from django.conf import settings from django.contrib.postgres.fields import JSONField from django.core.serializers.json import DjangoJSONEncoder from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from prices i...
'use strict'; const applyTimezone = require('../lib/timings/applyTimezone'); const getJSONDuration = require('../lib/timings/getJSONDuration'); const getLabels = require('../lib/timings/getLabels'); describe('12 - timing helper functions', () => { it('applyTimezone provides timing start and end in specified timezon...
// import { createStore, applyMiddleware, compose } from 'redux'; // import thunk from 'redux-thunk'; // import reducers from '../Reducers/combineReducers'; // const store = createStore(reducers, compose(applyMiddleware(thunk))); // export default store;
const query = require('./query'); const database = require('./database'); module.exports = (app) => { app.use('/postgres-query/api/query', query); app.use('/postgres-query/api/database', database) };
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('sms', '0004_vote_has_nominee_not_another_way_round'), ] operations = [ migrations.AlterModelOptions( name='hotword', options={'verbose_name...
/* global malarkey:false, moment:false */ import { config } from './index.config'; import { routerConfig } from './index.route'; import { runBlock } from './index.run'; import {MainController}from './main/main.controller.js'; import {NavbarDirective}from './navbar/navbar.directive'; import {NavbarController}from './na...
export const KubernetesClustersFormComponent = { bindings: { transition: '<' }, template: require('./kubernetes-clusters-form.html'), controller: KubernetesClustersFormController }; function KubernetesClustersFormController($state, KubernetesClusters, chipsHelpers, logger) { 'ngInject'; const ctrl = t...
import click from flask import current_app from flask.cli import with_appcontext from flask_alembic.cli.click import cli as db_cli from backend.utils.date import parse_datetime # FIXME: document json file format, relationships @db_cli.command() @click.option('--reset/--no-reset', expose_value=True, pr...
# -*- coding: utf-8 -*- import os from PySide2.QtGui import QImage, QPixmap from nodedge.graphics_node import GraphicsNode class GraphicsBlock(GraphicsNode): # noinspection PyAttributeOutsideInit def initSizes(self): super().initSizes() self.width = 200 self.height = 80 self....
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9a6c32bc"],{"497b":function(e,t,n){},8494:function(e,t,n){e.exports=n.p+"img/info.83eec3b6.jpg"},"85ef":function(e,t,n){e.exports=n.p+"img/club.299da2b6.jpg"},"86d6":function(e,t,n){"use strict";n.r(t);var r=n("7a23"),c=n("85ef"),o=n.n(c),l=n("8494"),s=n...
/** * @class draw2d.command.CommandReplaceVertices * * Replace the vertices of a polyline. * * @inheritable * @author Andreas Herz * * @extends draw2d.command.Command */ import draw2d from '../packages' draw2d.command.CommandReplaceVertices = draw2d.command.Command.extend({ NAME: "draw2d.command.CommandRepl...
import React, { useState } from "react"; import { Link } from "react-router-dom"; import "../../../css/ManagePasses.css"; const initialFormValues = { class1: false, class2: false, class3: false, class4: false, }; const testUserArr = [ { username: "Aaron Rodgers", category: "Cycling", }, { us...
import { mount } from 'enzyme'; import React from 'react'; import { push } from 'react-router-redux'; import sinon from 'sinon'; import { DisplayPage } from '~/linodes/linode/settings/layouts/DisplayPage'; import { changeInput, expectDispatchOrStoreErrors, expectRequest } from '~/test.helpers'; import { testLinode } ...
import asyncio import functools import logging import os import platform import signal import socket import sys import threading import time from email.utils import formatdate import click HANDLED_SIGNALS = ( signal.SIGINT, # Unix signal 2. Sent by Ctrl+C. signal.SIGTERM, # Unix signal 15. Sent by `kill <pi...
(function ($) { 'use strict'; /** * We need an event when the elements are destroyed * because if an input is remvoed, we have to remove the * maxlength object associated (if any). * From: * http://stackoverflow.com/questions/2200494/jquery-trigger-event-when-an-element-is-removed-from-the-dom...
export const INDICATORS = [ { id: 'w_awr_def_tot_cat', name: 'Overall Water Risk', overall: true, children: [ { id: 'w_awr_def_qan_cat', name: 'Physical Risks Quantity', children: [ { id: 'bws_cat', name: 'Water Stress', ponde...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 2c-4.96 0-9 4.04-9 9 0 3.91 2.51 7.24 6 8.47V22h2v-2.06c.33.04.66.06 1 .06s.67-.02 1-.06V22h2v-2.53c3.49-1.24 6-4.57 6-8.47 0-4.96-4.04-9-9-9zm2.25 12-3...
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'specialchar', 'es-mx', { euro: 'Signo de Euro', lsquo: 'Comillas simple izquierda', rsquo: 'Comillas...
from django.conf.urls.defaults import patterns, url import views urlpatterns = patterns("", url(r"^email/$", views.email, name="account_email"), url(r"^signup/$", views.signup, name="account_signup"), url(r"^login/$", views.login, name="account_login"), url(r"^password/change/$", views.password_change...
#coding: utf-8 import keychain import console import editor import time import re import requests import json import base64 SITE_BRANCH = 'gh-pages' # either master or gh-pages #keychain.delete_password('GitHub', 'username') #keychain.delete_password('GitHub', 'token') #keychain.delete_password('GitHub', 'repositor...
import React, { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { useDispatch } from 'react-redux'; import cx from 'classnames'; import actions from '../../store/actions'; import packageJSON from '../../../package.json'; import Spinner from '../../components/UI/Spinner'; import { hidde...
#/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # 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 ...
const fs = require('fs'); module.exports = JSON.parse(fs.readFileSync('./node_modules/balena-lint/config/.prettierrc', 'utf8'));
import { pinnedOfficersSelector, pinnedCRsSelector, pinnedTRRsSelector, getPinnedCRs, getPinnedTRRs, getPinnedOfficers, getPinnedCRsRequesting, getPinnedOfficersRequesting, getPinnedTRRsRequesting, } from 'selectors/pinboard-page/items'; describe('Pinboard items selectors', function () { describe(...
import './index.scss'; import { Button, Input, Table, message, Switch,Icon,Popover } from 'ant-design-vue'; import SetSpecial from "./set-special"; const Index = { data() { return { dataSource: [], option: { page: 1, pageSize: 10 }, ...
// Copyright 2009 the Sputnik authors. All rights reserved. /** * We overload valueOf method so it return non Primitive value * Thus [[DefaultValue]] must return Object.toString() value * * @path ch08/8.12/8.12.8/S8.12.8_A3.js * @description Try to overload toString method, that returned Primitive, and valueOf me...
/** * 全局变量,例如:表单提交的字数限制,变淡宽度 * */ // * name一般是30 // * no一般是30 // * code一般是30 // * 数字长度一般是9位 // * 备注一般255 export default { textarea: 250, string: 30, number: 9, /* 弹窗dialog */ dw_col: '430px', // 弹窗的宽度,一列input输入框 dw: '800px', // 弹窗的宽度,仅仅是在两列input输入框 dw2: '850px', // 弹窗中嵌套table中,table中的显示2行...
function calculateCarBrands(input) { let catalogue = {}; for (const part of input) { let [brand, model, producedCars] = part.split(' | '); if(catalogue.hasOwnProperty(brand) === false){ catalogue[brand] = {}; } if(catalogue[brand].hasOwnProperty(model) == false){ ...
import { deepCopy } from "../utils"; const POSITION_KEY = "_position"; const DEFAULT_TABLE_CONF = { cellEdit: { mode: "click", blurToSave: true, }, options: {}, keyBoardNav: { enterToEdit: true, }, handleConfirmDeleteRow: next => next(), }; export function addPosition(data) { return data.ma...
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'codesnippet', 'ro', { button: 'Adaugă segment de cod', codeContents: 'Conținutul codului', emptySnip...
module.exports = function() { return new Date().toISOString() }
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..io import JSONFileSink def test_JSONFileSink_inputs(): input_map = dict( _outputs=dict(usedefault=True, ), in_dict=dict(usedefault=True, ), out_file=dict(extensions=None, ), ) inputs = JSONFileSink.input_spec() for k...
/* * Copyright 2020 American Express Travel Related Services Company, 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 r...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import math from caffe2.python import core from hypothesis import given, settings import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.se...
/* * This file is part of node-currency-swap. * * (C) 2016 tajawal * Apache Software License v2.0 * */ var assert = require('chai').assert; var CurrencyPair = require('../../lib/model/currencypair'); var YahooFinanceProvider = require('../../lib/provider/yahoofinance'); var UnsupportedCurrencyPairException = req...
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Props'; const CLASS_ROOT = ...
(function($){ "use strict"; // ===== Scroll to Top ==== $(window).scroll(function() { if ($(this).scrollTop() >= 200) { $('#return-to-top').addClass('td-scroll-up-visible'); } else { $('#return-to-top').removeClass('td-scroll-up-visible'); } }); $(...
/* Super Search Author: Kushagra Gour (http://kushagragour.in) MIT Licensed */ (function () { var isSearchOpen = false, searchEl = document.querySelector('#js-search'), searchInputEl = document.querySelector('#js-search__input'), searchResultsEl = document.querySelector('#js-search...
const core = require('@actions/core'); const { readParameters } = require('.'); const { AWS_REGION } = process.env; const main = async () => { try { await readParameters({ pathPrefix: core.getInput('path') }, core); return true; } catch (error) { core.setFailed(error.message); } }; if (!AWS_REGION...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ShippingMethodsFetchRemoteError = exports.ShippingMethods = exports.ShippingMethod = void 0; var shipping_method_1 = require("./shipping-method"); Object.defineProperty(exports, "ShippingMethod", { enumerable: true, get: function () { ...
/** * 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. * * @format * @emails oncall+javascript_foundation */ import addFileToProject from '../../ios/addFileToProject'; const xcode = re...
const _colorFactory = require('./_components/_color_paint_factory') const _colorSanitizer = require('./_components/_color_sanitizer') const _colorTell = require('./_components/_color_tell') const _permutation = require('./_components/frame/_frame_permutation') const { cloneData, cloneAndFormat } = require('./_componen...
webpackHotUpdate_N_E("pages/index",{ /***/ "./pages/index.js": /*!************************!*\ !*** ./pages/index.js ***! \************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBP...
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' /* Native HTML progress bars */ const Progress = ({ value, max, primary, info, success, warning, danger, small, medium, large, className, ...props }) => { const classes = classNames('progress', { ...
import React from 'react'; const Logout = () => { return ( <h1> You are logged out! </h1> ); }; export default Logout;
import os import os.path import numpy as np from typing import Any, Callable, Optional, Tuple from torchvision.datasets.vision import VisionDataset from torchvision.datasets.utils import check_integrity, download_and_extract_archive import hdvw.ops.datasets as datasets class CIFAR10C(VisionDataset): """ `CI...
import pytest import sys import time import re import uuid # Python 2.x 3.x compatibility from six.moves import xrange from qlmetrics import bench @bench.timethis_returnstats def foo(x): time.sleep(.001) return x @bench.timethis() def foo2(x): time.sleep(.001) return x @bench.timethis(verbose=False...
# faça um programa que jogue JOKEMPÔ com vc
import React from 'react' import Layout from '../../components/Layout' export default () => ( <Layout> <section className="section"> <div className="container"> <div className="content"> <h1>Merci!</h1> <p>Malheureusement, ça ne marche pas encore...</p> </div> </di...
# pylint: disable=R0903,W0232 """check for scope problems""" __revision__ = None class Well(object): """well""" class Data(object): """base hidden class""" class Sub(Data): """whaou, is Data found???""" attr = Data() def func(self): """check Sub is not defined here""" ...
'use strict' // Load our requirements const glob = require('glob') const path = require('path') // Build a list of the available locale files in a given directory module.exports = function (dir) { // Variables let available = ['en'] // Run through the installed locales and add to array to be loaded glob.sync...
define({notPublished:"이 환경은 아직 발행되지 않았습니다. 먼저 발행하세요."});
/* navigation menu animation with way points */ $('.nav-animate').waypoint(function(direction) { $('.secondary-menu').toggleClass('hide', direction === "down"); $('.navbar').toggleClass('comeup', direction === "down"); }, { offset: '10%' }); // Block scrolling $('.nav li a').bind('click', function(e){ var anc...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uni_modules/uview-ui/components/u-row/u-row"],{ /***/ 1418: /*!*********************************************************************************************************************!*\ !*** C:/Users/32910/Documents/HBuilderProjects/hospitalRecruitment/un...
// import React from 'react'; // import { shallow } from 'enzyme'; // import { SidebarNavigation } from '../index'; describe('<SidebarNavigation />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
/******************************************************************************* *Copyright 2018 Cognizant Technology Solutions * * 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:/...
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, Text, View, Button } from 'react-native';
// Config for Website var autoconnect = true; // Connect to Brocker on load. var publishOnChange = false; // Publish values when sliding the slider. var locked = false; // Disable User interaction. var lockedTopic = "node/2015/mainstage/color"; var messageQueueLenght = 30; var messageQueue = []; // host = '172.16.15...
from setuptools import setup setup( name="Flask-WTF", install_requires=["Flask", "WTForms", "itsdangerous"], extras_require={"email": ["email-validator"]}, )
# # Copyright 2013 Red Hat, Inc # # Author: Angus Salkeld <asalkeld@redhat.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 ...
# encoding: utf8 from __future__ import unicode_literals from django.db import models, migrations import datetime class Migration(migrations.Migration): dependencies = [ ('pieces', '0003_piece_studies'), ] operations = [ migrations.CreateModel( name='PieceTag', f...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.17/esri/copyright.txt for details. //>>built require({cache:{"url:esri/dijit/metadata/types/iso/base/templates/DataRoot.html":'\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\r\n \x3cdiv data-dojo-type\...
test("MediaList", function(){ var m = new CSSOM.MediaList; strictEqual(m.length, 0); m.appendMedium("handheld"); m.appendMedium("screen"); m.appendMedium("only screen and (max-device-width: 480px)"); m.deleteMedium("screen"); strictEqual(m[2], undefined); var expected = { 0: "handheld", 1: "only screen ...
import Ember from 'ember'; var get = Ember.get; /** WARNING: This interface is likely to change in order to accomodate https://github.com/emberjs/rfcs/pull/4 ## Using BuildURLMixin To use url building, include the mixin when extending an adapter, and call `buildURL` where needed. The default behaviour is d...
"use strict"; var R = require('ramda'); var errors = require('../errors'); var tv4 = require('tv4'); var formats = require('tv4-formats'); var validator = tv4.freshApi(); validator.addFormat(formats); module.exports = { requireParameters: function requireParameters(parameters) { return function(req, res, next) {...
import React, { Component } from 'react'; import { Dimensions, TextInput, View, Text } from 'react-native'; class FloatingInput extends Component { constructor(props) { super(props); this.state = { label: this.props.label, ellipsis: '', value:this.props.value, onChangeText: this.prop...
/* Object containing all the css for each component * Components: addListItem * listItem * * Exported as an object constant style * Accessed by Import {style} from 'path/relative/to/component'; * */ export const style = { // addListItem styling div: { background: "#eee", padding: "20px", ma...
const express = require('express'); const path = require('path'); const bodyParser = require('body-parser'); const tencentcloud = require('./node-libs/tencentcloud-sdk-nodejs'); const loadEnv = require('./load-env') const app = express(); const port = process.env.PORT || 8768; const FACE_CODE = { 'FailedOperation.C...
webpackJsonp([23],{0:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(2),i=r(o),a=n(20),s=r(a),l=n(8),u=n(7),c=n(124),f=r(c),p=n(123),d=r(p),h=n(122),y=n(1672),m=r(y),g=n(1680),v=r(g),b=(0,h.createLogger)(),_=(0,u.createStore)(v.default,(0,u.applyMiddleware)(f.default,d.default,b)...
import json from courspider.faculty_calendar import FacultyCalendar from courspider.faculty_calendar_resources.faculty_of_arts_and_science_calendar import FacultyOfArtsAndScienceCalendar from courspider.faculty_calendar_resources.department import Department from courspider.faculty_calendar_resources.session import S...
var test = require('tape'); var paver = require('./'); test('a', function(t) { t.deepEqual(paver.set('a', 1), { a: 1 }); t.end(); }); test('a with value', function(t) { t.deepEqual(paver.set('a', 2, { a: 1 }), { a: 2 }); t.end(); }); test('a.b', function(t) { t.deepEqual(paver.set('a.b', ...
# This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
var example__service__envelope_8h = [ [ "acc_example_service_envelope", "example__service__envelope_8h.html#ace8a0333b577512aa847c959cc606ba2", null ] ];
import { gql } from "@apollo/client" export const GET_DETAILS = gql` query getDetails($id: ID!) { product(id: $id) { id rating variants { qty } } } ` export const GET_REVIEWS = gql` query getReviews($id: ID!) { product(id: $id) { id reviews { id ...
const { applicationContext, } = require('../../test/createTestApplicationContext'); const { UnauthorizedError, } = require('../../../../../shared/src/errors/errors'); const { createUserInteractor } = require('./createUserInteractor'); const { ROLES } = require('../../entities/EntityConstants'); describe('create us...
import React from 'react' import Image from 'gatsby-image' import { HeadlineGrid, BackgroundWrapper, ContentWrapper, } from '../../styles/CreateHeadlineSection' import RenderBackgroundImage from '../Shared/RenderBackgroundImage' import HeadlineContent from './HeadlineContent' const HeadlineSection = ({ images }...
it('basic', function() { var obj = Object.create({ zero: 0 }); obj.one = 1; var keys = allKeys(obj); expect(keys).to.contain('zero'); expect(keys).to.contain('one'); });
import { useState } from 'react'; export default (initialValue = false) => { const [value, setValue] = useState(initialValue); const toggleValue = () => { setValue(!value); }; return [value, toggleValue, setValue]; };
/* bender-tags: 4.6.1, tc, 11064, widgetselection */ /* bender-ckeditor-plugins: wysiwygarea, widgetselection */ /* bender-include: _helpers/tools.js */ /* global htmlWithSelectionHelper */ ( function() { 'use strict'; bender.editor = true; bender.test( { init: function() { this.widgetselection = CKEDITOR.p...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],[ /* 0 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "area", function() { return area; }); const...
# -*- coding: utf-8 -*- ################################################################################# # Author : Webkul Software Pvt. Ltd. (<https://webkul.com/>) # Copyright(c): 2015-Present Webkul Software Pvt. Ltd. # All Rights Reserved. # # # # This program is copyright property of the author mentioned abo...
from tensorflow.keras.models import load_model import tensorflow.keras as keras from tensorflow.keras.datasets import mnist from tensorflow.keras import backend as K # input image dimensions img_rows, img_cols = 28, 28 num_classes = 10 # the data, split between train and test sets (x_train, y_train), (x_test, y_test...
// import 'jquery'; // web/app/themes/lark-child/app/Library/scripts.php we include jQuery here instead require('alpinejs'); (function($) { var wf = document.createElement('script'); wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; wf.type = 'text/javascript'; wf.async = 'true'; var s...
var rs = zrequire('recent_senders'); (function test_process_message_for_senders() { var stream1 = 1; var stream2 = 2; var stream3 = 3; var topic1 = "topic-1"; var topic2 = "topic-2"; var topic3 = "topic-3"; var sender1 = 1; var sender2 = 2; var sender3 = 3; // New stream ...
const { MessageEmbed } = require('discord.js'); module.exports = { config: { name: "join", aliases: ["summon"], description: "Makes the bot join the voice channel.", accessableby: "Member", category: "Music", }, run: async (client, message, args, user, language, pre...
/*! * jQuery UI Widget @VERSION * * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Widget */ (function( $, undefined ) { var slice = Array.prototype.slice, _cleanData = $.cleanData; $.cl...
# Instructions: # ============= # 1. Extract https://archive.ics.uci.edu/ml/machine-learning-databases/covtype/covtype.data.gz into ../data/covtype.dat # 2. Run this script import pandas as pd import numpy as np SEED = 998823 #--- np.random.seed(SEED) data = pd.read_csv("../data/raw/covtype.dat", header=None, sep=',...
const mongoose = require('mongoose') const liSchema = new mongoose.Schema({ title: { required: true, type: String }, link: { type: String }, magnet: [String], img: { type: String } }) const Li = mongoose.model('Li', liSchema) module.exports = Li
import os import sys def main(): print 'const char* ya_get_symbolizer_gen() {' print ' return "{}";'.format(os.path.join(os.path.dirname(sys.argv[1]), 'llvm-symbolizer')) print '}' if __name__ == '__main__': main()
import React from "react"; function Skull ({width="24px", height="24px", fill}) { return ( <svg style={{"enableBackground":"new 0 0 510.104 510.104"}} height={height} viewBox="0 0 510.104 510.104" width={width} xmlns="http://www.w3.org/2000/svg"><path fill={fill} d="m430.06 366.418-34.876-34.876c35.737-51.121 39...
"use strict"; /** * FocusManager.ts * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Manages focusable elements for better keyboard navigation. */ Object.defineProperty(exports, "__esModule", { value: true }); var PropTypes = require("prop-types"); var AppConfig...
import cheerio from 'cheerio' import * as R from 'ramda' import { logger } from '../util' const log = logger('lib/parse') function getEpisodeLinks(el) { return el .parent() .next('ol') .children() .children() .filter('a') .get() } function parseEpisodeLink(el) { return { url: el.attr...