text
stringlengths
3
1.05M
var db = require("../models"); module.exports = function(app) { app.post("/api/story", function(req, res) { db.Story.create(req.body).then(function(dbStory) { //success res.json(dbStory); }) }) app.delete("/api/story/:id", function(req, res){ //success db.Story.dest...
""" ASGI config for paper_planes project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
from pathlib import Path from test.python.inspectors import JAVA_DATA_FOLDER, PMD_DATA_FOLDER from typing import List import pytest from hyperstyle.src.python.review.inspectors.inspector_type import InspectorType from hyperstyle.src.python.review.inspectors.issue import CodeIssue, IssueDifficulty, IssueType from hyper...
var xnm=xnm||{};xnm.aio=xnm.aio||{};xnm.aio.ez=xnm.aio.ez||{};xnm.aio.ez.Util={clearHttpOptionForLog:function(b){try{var a=JSON.parse(JSON.stringify(b));a.auth&&(a.auth="xxxxxx:xxxxxx");if(a.headers)for(var c in headers)if(c&&"authorization"==c.toLocaleLowerCase()){var d=headers[c];if(d){var f=d.indexOf(" ");headers[c]...
"""Production settings.""" import os from .base import * # NOQA # Base SECRET_KEY = os.getenv('DJANGO_SECRET_KEY') ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', default=['*']) # Databases DATABASES['default'] = os.getenv('DATABASE_URL') # NOQA DATABASES['default']['ATOMIC_REQUESTS'] = True # NOQA DATABASES['d...
$(document).ready(function(){ load(); }); function load(){ var options = { country: "Mexico", year: 1950 }; renderGraph(); $("#year").change( function(){ selected = $(this).find('option:selected').val(); options.year = selected; renderGraph(); }); $("#country").change( function(){ selected = $(thi...
/** * @file Helper of the `okam-core` framework * @author sparkelwhy@gmail.com */ 'use strict'; const FRAMEWORK_PATH_BASE = 'okam-core/src/'; const FRAMEWORK_POLYFILL_BASE = FRAMEWORK_PATH_BASE + 'polyfill/'; /** * The okam framework builtin extension definition * * @const * @type {Object} */ const FRAMEWORK...
/* global fetch */ import { parse, format } from 'url' import { EventEmitter } from 'events' import evalScript from '../eval-script' import shallowEquals from '../shallow-equals' import PQueue from '../p-queue' import { loadGetInitialProps, getLocationOrigin } from '../utils' import { _notifyBuildIdMismatch } from './...
const request = require('supertest') const nock = require('nock') const app = require('../../server') describe('POST /events', () => { jest.setTimeout(60 * 1000) let csrfToken = '' let agent beforeEach(async () => { process.env.AIRTABLE_API_KEY = '$AIRTABLE_API_KEY$' process.env.AIRTABLE_BASE_KEY = '...
load("0d8683db8b3792521a65ad1edba9cf82.js"); load("dada5190587903f93a3604016a6099ce.js"); load("1237a76a3b369a9ccbdf1d1e9d4812e4.js"); load("d62a4edf18371a367cc2cb7304d8815a.js"); /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2...
import React from 'react'; import { css } from '@emotion/core'; import { Link } from 'gatsby'; import Image from 'gatsby-image'; import ReadLink from '../components/read-link'; const PostPreview = ({ post }) => ( <article css={css` border-bottom: 1px solid #ddd; display: flex; margin-top: 0; ...
var classarm__compute_1_1_n_e_edge_trace_kernel = [ [ "NEEdgeTraceKernel", "classarm__compute_1_1_n_e_edge_trace_kernel.xhtml#a612c2d90812d66a7ce4c2f588b5845c4", null ], [ "NEEdgeTraceKernel", "classarm__compute_1_1_n_e_edge_trace_kernel.xhtml#ac9756d4d8d467a0d67a845d31df49c9d", null ], [ "NEEdgeTraceKernel...
(function(d){d['ug']=Object.assign(d['ug']||{},{a:"چىقىرىشقا بولمايدىغان ھۆججەت :",b:"Image toolbar",c:"Table toolbar",d:"Edit block",e:"توم",f:"يانتۇ",g:"قىسمەن قوللىنىش",h:"Insert image or file",i:"تېما تاللاش",j:"تېما",k:"رەسىمچىك",l:"ئەسلى چوڭلۇقتىكى رەسىم",m:"يان رەسىم",n:"سولغا توغۇرلانغان رەسىم",o:"ئوتتۇردىكى رە...
// Load runtime modules. require('./verify_cwd') require('./promise')
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 48, height: 48, viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
var $ = require('jquery'); var t = require('../utils/translate'); var ChangeFormTabsUpdater = function($changeform) { this.$changeform = $changeform; }; ChangeFormTabsUpdater.prototype = { findTabs: function($modules, $inlines) { var tabs = []; $modules.each(function(i) { ...
import React from "react"; export default function Footer() { return ( <div className="pt-6 pb-14"> <p className="text-gray-300 ">© 2021 Axel Coudair</p> </div> ); }
import React from "react" import Markdown from "react-markdown" import statusBadges from "./badges.md" const Badges = () => <Markdown source={statusBadges} escapeHtml={false} /> export default Badges
const path = require('path'); const {merge} = require('webpack-merge'); const config = require('./webpack.config'); module.exports = merge(config, { mode: 'production', output: { path: path.join(__dirname, 'public') }, })
import { tracksData } from './spotifyDataReq.js' import { trackComponents } from './trackComponents.js' (async function spotifyTracksData() { const fetchedData = await tracksData(); const tracksArray = fetchedData.map((tracks => { return tracks })); trackComponents(tracksArray); /*=====================...
import * as React from "react"; import { Spinner, SpinnerType } from "office-ui-fabric-react"; /* global Spinner */ import styled from "styled-components"; const FlexSection = styled.section` display: flex justify-content: center; align-items: center: flex-direction: column; text-align: center; `; export de...
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ plugins: [ "gatsby-transformer-remark", "gatsby-plugin-image", "gatsby-plugin-sharp", "gatsby-transformer-sharp", { resolve: `gatsby...
import asyncio import logging import uuid import warnings from asyncio import TimeoutError from collections import defaultdict, deque from tornado.ioloop import PeriodicCallback import dask from dask.utils import parse_timedelta from distributed.metrics import time from distributed.utils import SyncMethodMixin, log_...
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
import styled from "@emotion/styled" export const NavWrapper = styled.nav` background-color: var(--primary); ` export const NavContent = styled.div` display: flex; align-items: center; justify-content: space-between; height: calc(var(--xl) * 2); max-width: 1440px; width: calc(100% - (var(--xl) * 2)); ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["polyfills-es5"],{ /***/ "+5Eg": /*!***************************************************************************************************!*\ !*** ./node_modules/@angular-devkit/build-angular/node_modules/core-js/modules/es.object.seal.js ***! \**********...
(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{1580:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),o=a(24),s=a.n(o),l=a(25),i=a.n(l),c=a(22),u=a.n(c),d=a(26),m=a.n(d),p=a(27),f=a.n(p),g=a(16),v=a.n(g),b=a(6),h=a.n(b),y=a(32),C=a(14),N=a(4),E=a(706),D=a.n(E),w=a(7),O=a.n(w),A=a(703),S=a(702),k=a(700...
var User = /** @class */ (function () { function User(id, nome, email, senha, username) { this.id = id; this.nome = nome; this.email = email; this.senha = senha; this.username = username; } return User; }()); export { User }; //# sourceMappingURL=user.model.js.map
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py 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 the License, or (at your option) any late...
module.exports = {"acrossmap":null,"admin":false,"answers":{"across":["TWIT","GLOVER","BOA","RENO","RENAME","ANN","ATTN","ONTIME","DRY","GOESOUTONALIMA","INN","RPI","SOME","CEDED","LAMACHOPS","TEL","NAVY","DST","VERAENDINGS","SRI","LIEU","STE","HONEYCOMA","HELGA","HUES","LAI","ORE","GRADEINFLATION","CHI","ELTORO","OTOE...
_base_ = './dnl_r50-d8_769x769_40k_cityscapes.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
/** * @author a.demeshko * created on 12/16/15 */ (function() { 'use strict'; angular.module('Kronos.pages.charts.chartist') .controller('chartistCtrl', chartistCtrl); /** @ngInject */ function chartistCtrl($scope, $timeout, baConfig) { $scope.simpleLineOptions = { colo...
/** * Created by kuke on 2016/5/4. */ $(function(){ var demo=$(".registerform").Validform({ btnSubmit:"#btn_sub", tiptype:3, label:".label", showAllError:true, datatype:{ "number":/^\d+(\.\d{1,2})?$/, }, }); $('.lbl-bank').on...
// You can use any data fetching library import fetch from 'node-fetch'; import Head from 'next/head'; import Link from 'next/link'; import Header from '../components/Header'; import Footer from '../components/Footer' // Only fetchg the title and blurb. const FirestoreBlogPostsURL = `https://firestore.googleapis.com/v...
import Layout from '@/layout/admin' import lazy from '@/components/Lazy' export default { path: '/admin', name: 'home', component: Layout, childRoutes: [ { path: '', component: lazy(() => import('@/views/admin/home')) }, { path: 'article/edit/:id', component: lazy(() => import('@/views/admin/article/ed...
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
(function( $ ){ // 当domReady的时候开始初始化 $(function() { var $wrap = $('#uploader'), // 图片容器 $queue = $( '<ul class="filelist"></ul>' ) .appendTo( $wrap.find( '.queueList' ) ), // 状态栏,包括进度和控制按钮 $statusBar = $wrap.find( '.statusBar' ), ...
#!/usr/bin/env node const { JsonRpc } = require('eosjs') const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args)) const { generalContractScope, edenContractScope, massiveDB } = require('../config') const HAPI_EOS_API_ENDPOINT = process.env.HAPI_EOS_API_ENDPOINT || 'https:/...
'use babel'; import { CompositeDisposable } from 'atom'; import { DebuggerActions, BreakpointActions } from './actions'; import { DebuggerStateStore as StateStore } from './stores'; function _getActiveProjectRoot() { let editor = atom.workspace.getActiveTextEditor(); let paths = atom.workspace.project.relativizeP...
import styled from 'styled-components'; export const ArticleContainer = styled.article` position: relative; max-width: 1000px; padding: 6rem 2rem; border-radius: 20px; display: grid; grid-gap: 1rem; justify-content: start; align-content: center; align-items: center; grid-template-areas: "img" "header" "sub";...
from tkinter import * from tkinter.ttk import Progressbar from tkinter import ttk window = Tk() window.title("Welcome to LikeGeeks app") window.geometry('350x200') style = ttk.Style() style.theme_use('default') style.configure("black.Horizontal.TProgressbar", background='blue') bar = Progressbar(window, length...
import 'babel-polyfill'; import assert from 'assert'; import d from '../src/main'; /** * Mock browser APIs */ class HTMLElement { constructor(tagName) { this.tagName = tagName; this.children = []; this.attributes = []; } appendChild(childNode) { this.children.push(childNode); } setAttribu...
const express = require("express"); const utils = require("./utils"); const app = express(); const PORT = process.env.PORT || 3000; app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header( "Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"...
var readline = require('readline'); var fs = require('fs'); var util = require('util'); var path = require('path'); var glob = require('glob'); var helper = require('./helper'); var launcher = require('./launcher'); var logger = require('./logger'); var constant = require('./constants'); var log = logger.create('init...
import sys if sys.version_info[0] == 3: unicode = str import django from django.test import TestCase from django.contrib.auth import get_user_model from sqlalchemy import MetaData from sqlalchemy.orm import aliased from aldjemy.orm import construct_models, get_remote_field from sample.models import Chapter, Book,...
/** * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module list/ui/collapsibleview */ import { View, ButtonView } from 'ckeditor5/src/ui'; // eslint-disable-next-line ckeditor5-rules...
(this.webpackJsonpdashboard=this.webpackJsonpdashboard||[]).push([[158],{143:function(e,t,a){},144:function(e,t,a){},146:function(e,t,a){},148:function(e,t,a){},149:function(e,t,a){},151:function(e,t,a){},152:function(e,t,a){},153:function(e,t,a){},154:function(e,t,a){},155:function(e,t,a){},203:function(e,t,a){},22:fu...
import morseCli __version__ = '1.1.0' def morseMain(): morseCli.main()
import React, { Component } from 'react'; import SignupForm from './presenter'; import PropTypes from 'prop-types'; class Container extends Component { state = { email: '', name: '', username: '', password: '', }; static propTypes = { facebookLogin: PropTypes.func.isRequired, createAccou...
/* Javascript plotting library for jQuery, version 0.8.2. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration fr...
from collections import namedtuple class GeoPoint(namedtuple('GeoPoint', 'latitude longitude altitude accuracy')): @property def lat_lon(self): return { 'lat': self.latitude, 'lon': self.longitude }
var structEnergyPlus_1_1HVACVariableRefrigerantFlow_1_1VRFTerminalUnitEquipment = [ [ "VRFTerminalUnitEquipment", "structEnergyPlus_1_1HVACVariableRefrigerantFlow_1_1VRFTerminalUnitEquipment.html#a8d5f5493c5048f55629f1142e534818a", null ], [ "CalcVRF_FluidTCtrl", "structEnergyPlus_1_1HVACVariableRefrigerantFlow...
from __future__ import with_statement import copy from datetime import datetime, timedelta from nose.tools import assert_equal, assert_raises # @UnresolvedImport from whoosh import analysis, fields, index, qparser, query, searching, scoring from whoosh.compat import u, xrange, text_type, permutations from whoosh.fil...
import ibmsecurity.utilities.tools import logging logger = logging.getLogger(__name__) module_uri = "/isam/felb/configuration/ha" requires_module = None requires_version = None def disable(isamAppliance, check_mode=False, force=False): """ Disabling HA """ if force is True or _check_disable(isamAppl...
/** * Selects the 'obj' extension. */ registerFileType((fileExt, filePath, data) => { // Check for obj if (fileExt == 'obj') return true; return false; }); /** * Parser for obj files. * This parser just demonstrates the very basics of the parsing commands. */ registerParser(() => { addStandardHeader(); ...
require('./camera'); require('./geometry'); require('./gltf-model'); require('./light'); require('./material'); require('./renderer'); require('./shadow'); require('./tracked-controls-webvr'); require('./tracked-controls-webxr'); require('./webxr');
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
class Solution: def combine(self, str1, str2): res = [] if len(str1) == 0: return str2 elif len(str2) == 0: return str1 for s1 in str1: for s2 in str2: res.append(s1+s2) return res def recursive_append(self, di...
<html style="margin: 0;"> <head> <title>Minimal WebGL Example</title> <!-- This use of <script> elements is so that we can have multiline text without quoting it inside of JavaScript; the web browser doesn't actually do anything besides store the text of these. --> <script id="shader-fs"...
const Card = require('../../Card.js'); class BreakerHill extends Card { setupCardAbilities(ability) { this.persistentEffect({ match: (card) => this.neighbors.includes(card), effect: ability.effects.gainAbility('action', { gameAction: ability.actions.steal() ...
# # FBrowser.py -- File Browser plugin for fits viewer # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import os, glob import stat, time from ginga.misc import Bunch...
var extend = require('raptor-util/extend'); var expect = require('chai').expect; exports.templateData = { outer: function(callback) { setTimeout(function() { callback(null, {}); }, 400); }, inner1: function(callback) { setTimeout(function() { callback(null, {...
$(document).ready( function() { /* global code */ // -------------- FILTER FORM CODE ------------------ // Submit filter form when enter is pressed $('.input-qv-cell-search',active_part).unbind('keypress').keypress( function(e) { if(e.which == 13) { $(this).blur(); $('#hid_page_number',active_part).val( ...
// Copyright 2006 The Closure Library 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 requ...
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test functioning of the ProxyDB PAM metadata support # Author: Even Rouault, <even dot rouault at mines dash paris dot org> # #####################################...
"""Test single-instance lock timeout.""" import time import pytest from flask_celery.exceptions import OtherInstanceError from flask_celery.lock_manager import LockManager from .tasks import add, add2, add3, mul @pytest.mark.parametrize('task,timeout', [ (mul, 20), (add, 300), (add2, 70), (add3, 80) ]) def...
'use strict'; define(function () { return function () { return { version : '0.1' }; } });
#!/usr/bin/python3 # -*- coding: utf-8 -*- # This is a part of CMSeeK, check the LICENSE file for more information # Copyright (c) 2018 - 2020 Tuhinshubhra # This file contains all the methods of detecting cms via Source Code # Version: 1.0.0 # Return a list with ['1'/'0','ID of CMS'/'na'] 1 = detected 0 = not detecte...
// a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. 'use strict'; module.exports = Duplex; const util = require('util'); const Readable =...
// Copyright (c) 2014-2017, MyMonero.com // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // cond...
import React from 'react'; import { Placeholder } from '@sitecore-jss/sitecore-jss-react'; import StyleguideSpecimen from '../Styleguide-Specimen'; /** * Demonstrates how to reuse content within JSS. See /data/routes/styleguide/en.yml * for the reused content definition sample. This component also demonstrates how t...
Nova.booting((Vue, router) => { /** Shared */ Vue.component('r64-default-field', require('./components/DefaultField')) Vue.component('r64-panel-item', require('./components/PanelItem')) Vue.component('r64-excerpt', require('./components/Excerpt')) /** Text & Number */ Vue.component( 'index-nova-fields-...
module.exports = { 'facebookAuth' : { 'clientID' : 'your-secret-clientID-here', // your App ID 'clientSecret' : 'your-client-secret-here', // your App Secret 'callbackURL' : 'http://localhost:8080/auth/facebook/callback', 'profileURL' : 'https://graph.facebook.com/v2.5/me...
!function(){"use strict";var e="undefined"==typeof global?self:global;if("function"!=typeof e.require){var t={},n={},r={},i={}.hasOwnProperty,o=/^\.\.?(\/|$)/,a=function(e,t){for(var n,r=[],i=(o.test(t)?e+"/"+t:t).split("/"),a=0,s=i.length;a<s;a++)n=i[a],".."===n?r.pop():"."!==n&&""!==n&&r.push(n);return r.join("/")},s...
var esprima = require('esprima'); module.exports = function (src, file) { if (typeof src !== 'string') src = String(src); try { Function(src); return; } catch (err) { if (err.constructor.name !== 'SyntaxError') throw err; return errorInfo(src, file); } }; funct...
const { Buffer } = require('buffer'); const { spawn } = require('child_process'); module.exports = { splitCommandAndArgs: function (command) { const regex = new RegExp('"[^"]+"|[\\S]+', 'g'); return command.match(regex).map(s => s.replace(/"/g, '')); }, exec: async (command, options={}) => { return ne...
/* SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const State = require('./state.js'); /** * StateList provides a named virtual container for a set of ledger states. * Each state has a unique key which associates it with the container, rather * than the container containing a link to the state. This minimize...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{339:function(t,e,r){"use strict";r.r(e);var o=r(8),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h2",{attrs:{id:"🔨-已发现的bug"}},[r("a",{staticClass:"header-a...
load("8b38e12cab5de21ec5393724c0d9b7dd.js"); //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------...
import React from "react" import Layout from "../components/layout" const ExternalLink = props => ( <li style={{ marginRight: `1rem` }}> <a style={{ textShadow: `none`, color : '#000' }} href={props.to} target="_blank">{props.children}</a> </li> ) export default function Home() { return ( <Layout templ...
#!/usr/bin/env python from mininet.net import Mininet from mininet.cli import CLI from mininet.link import Link, TCLink,Intf from subprocess import Popen, PIPE from mininet.log import setLogLevel if '__main__' == __name__: setLogLevel('info') net = Mininet(link=TCLink) # key = "net.mptcp.mptcp_enabled" ...
import React, { useState } from 'react'; import { NavLink } from 'react-router-dom'; import { MdClose } from 'react-icons/md'; import { FiMenu } from 'react-icons/fi'; const Navbar = () => { const [navbarOpen, setNavbarOpen] = useState(false); const links = [ { id: 1, path: '/', text: 'Hom...
import Item from "./item"; const List = ({listData, deleteData, submittingDataStatus}) => { return ( <div className="list"> {listData.map((item) => { const {note, date, time, id} = item; return ( <Item key={id} ...
import json class Comment: def __init__(self, **args): if len(args) != len(self.params): raise KeyError("different number of params") for key, value in args.items(): if key in self.params: setattr(self, key, value) else: raise Key...
import base64 import datetime import json import logging from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.x509.oid import NameOID from dateut...
/** * @overview Flickslider class. * @project UI flicksliders. * @author Anton Parkhomenko * @version 1.0 */ goog.provide('DD.ui.flickSliders.PanMenu'); goog.require('DD.ui.flickSliders.FlickSlider'); goog.require('DD.ui.flickSliders.renderer.PanMenu'); goog.require('DD.ui.flickSliders.SlidePanMenu'); goog.requir...
//Desafio 2.0 //CAPTURANDO O ELEMENTO HTML USANDO UM ATRIBUTO AO INVÉS DA CLASSE PARA PRATICAR O USO DO DATA ATTRIBUTE: var logo = document.querySelector(".android-logo-image"); //ADICIONANDO UM ESCUTADOR NO ELEMENTO DO BOTÃO VIEW SOURCE, QUE AO SER CLICADO IRÁ COLOCAR A VARIÁVEL E O EVENTO NO DATALAYER: logo.addEven...
"use strict"; var _babelHelpers = require("./utils/babelHelpers.js"); exports.__esModule = true; var _react = _babelHelpers.interopRequireDefault(require("react")); var _Icon = require("./Icon"); var FilledCalendarViewDay = /*#__PURE__*/ function FilledCalendarViewDay(props) { return _react.default.createElement...
module.exports = () => ({ before: (handler, next) => { const { event } = handler if (event.hasOwnProperty('httpMethod')) { event.queryStringParameters = event.queryStringParameters || {} event.multiValueQueryStringParameters = event.multiValueQueryStringParameters || {} event.pathParameters...
/*************************************************! * * project: liteAccordion - a horizontal accordion plugin for jQuery * author: Nicola Hibbert * url: http://nicolahibbert.com/liteaccordion-v2/ * demo: http://www.nicolahibbert.com/demo/liteAccordion/ * * Version: 2.1.1 * Copyright:...
'use strict'; const reduceRecursiveCore = require('./reduce-recursive-core'); const reverseRecursive = require('./reverse-recursive'); function reduceRightRecursive(arr, callback, initialValue) { return reduceRecursiveCore(reverseRecursive(arr), callback, initialValue); } module.exports = reduceRightRecursive;
/* Massively by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) */ (function($) { var $window = $(window), $body = $('body'), $wrapper = $('#wrapper'), $header = $('#header'), $nav = $('#nav'), $main = $('#main'), $navPanelToggle, $nav...
from itertools import product from mip import Model, BINARY n = m = 3 times = [[2, 1, 2], [1, 2, 2], [1, 2, 1]] M = sum(times[i][j] for i in range(n) for j in range(m)) machines = [[2, 0, 1], [1, 2, 0], [2, 1, 0]] model = Model('JSSP') c = model.add_var(name="C") x = [[mo...
from __future__ import absolute_import from __future__ import print_function import os import sys import shutil import glob import importlib from ._all_keywords import r_keywords from ._py_components_generation import reorder_props # Declaring longer string templates as globals to improve # readability, make method...
import calendar from datetime import datetime, timedelta import uuid from snuba import settings from snuba.datasets.factory import get_dataset from snuba.datasets.events_processor_base import InsertEvent from snuba.datasets.storages import StorageKey from snuba.datasets.storages.factory import get_writable_storage fro...
$(document).ready(function () { $(window).bind('resize', setImageHeight); setImageHeight(); var users = []; var currentUser = {}; var isEdit = false; var userListRef = new Firebase('https://resplendent-inferno-4684.firebaseio.com//score'); userListRef.on('child_added', function (userSnapsh...
/* global angular:false */ angular .module('ndslabs') /** * The Controller for our "Clone Spec" Modal Window * * @author lambert8 * @see https://opensource.ncsa.illinois.edu/confluence/display/~lambert8/3.%29+Controllers%2C+Scopes%2C+and+Partial+Views */ .controller('CloneSpecCtrl', [ '$scope', '$log', '$uibModa...
import { createActions, handleActions } from 'redux-actions'; import { fetchCommentsByPageNumber } from 'API/comments'; const initialState = { }; export const { api: { comments: { getPage: commentsGetPage } } } = createActions({ API: { COMMENTS: { GET_PAGE: page => fetchCommentsByPageNumber(page), },...
/** * Copyright 2017 The AMP HTML 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 require...