text
stringlengths
3
1.05M
import { inject as service } from '@ember/service'; import Helper from '@ember/component/helper'; export default Helper.extend({ router: service(), compute([routeName, ...models], { replace = false }) { return () => { const router = this.get('router'); const method = replace ? router.replaceWith :...
import React, { PropTypes } from 'react'; import { Dimensions , Platform , StyleSheet } from 'react-native'; // import theme import theme from '../themes/default'; // import theme from '../themes/dark'; // import theme from '../themes/custom'; const { height, width } = Dimensions.get('window'); const FONT ...
# 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 writing, software # d...
const data = new Date("1987-09-21 00:00:00"); const diaSemana = data.getDay(); let diaSemanaTexto; /** Eu utilizando o if if (diaSemana === 0){ diaSemanaTexto = "Domingo"; } else if (diaSemana === 1){ diaSemanaTexto = "Segunda"; } else if (diaSemana === 2){ diaSemanaTexto = "Terça"; } else if (diaSemana ===...
from skfda import FDataGrid from skfda.exploratory.depth.multivariate import SimplicialDepth from skfda.exploratory.outliers import DirectionalOutlierDetector from skfda.exploratory.outliers import directional_outlyingness_stats import unittest import numpy as np class TestsDirectionalOutlyingness(unittest.TestCase)...
version https://git-lfs.github.com/spec/v1 oid sha256:38bc1909184a80156b316610d8404151873b7d050881ce75cdfdfca44cca5dfb size 248
import React from 'react'; import PropTypes from 'prop-types'; import { Link as GatsbyLink } from 'gatsby'; import { I18nConsumer } from './I18nContext'; const Link = ({ to, lng, children, ...rest }) => { return ( <GatsbyLink to={lng ? `/${lng}${to}` : `${to}`} {...rest}> {children} </GatsbyLink> );...
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var Doc...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => queryInterface.createTable('weets', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, user_id: { type: Sequelize.INTEGER, allowNull: false, references: { ...
# LISTS def how_many_days(month_number): """Returns the number of days in a month. WARNING: This function doesn't account for leap years! """ days_in_month = [31,28,31,30,31,30,31,31,30,31,30,31] month_index = month_number - 1 return days_in_month[month_index] # This test case should print 3...
var chart5 = c3.generate({ bindto: '#barAreaGraph', data: { columns: [ ['data1', 24, 28, 31, 49, 57, 59, 52, 48, 55, 58, 62, 60, 62, 58, 55, 61, 70, 80, 77, 78, 82, 98, 99, 105, 102, 95, 92, 100, 103, 117, 121, 126], ['data2', 15, 16, 19, 24, 27, 32, 38, 36, 32, 36, 40, 48, 41, 44, 46, 53, 58, 62, 65, 61, 64,...
var group__magmasparse__zhepr = [ [ "magma_zapplycumicc_l", "group__magmasparse__zhepr.html#gadfc02cb240090c6ca1eb9f1ac0e0eccf", null ], [ "magma_zapplycumicc_r", "group__magmasparse__zhepr.html#ga4fba5906d6c82604f752657ee679ba9a", null ], [ "magma_zcumiccsetup", "group__magmasparse__zhepr.html#ga7481380908...
// Linted with standardJS - https://standardjs.com/ // Initialize the Phaser Game object and set default game window size const game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }) // Declare shared variables at the top so all methods can access them let score ...
import 'whatwg-fetch'; export function likePostById(id) { return { id: id, type: 'LIKE_POST_BY_ID' }; } export function addGifs(collection) { return { collection: collection, type: 'ADD_GIFS' }; } export function fetchData() { const RESOURCE = 'http://api.giphy.com/v1/gifs/trending?api_key=...
/*jslint node:true, strict:false*/ var Set = require('simplesets').Set; var path = require('path'); var fs = require('fs'); /* * @constructor * @folder {String} Path to function folder * @JessieRendition {Function} Jessie Rendition Constructor reference */ function JFunction(folder, JessieRendition) { this.folder =...
// flow-typed signature: 114a41b726ccf47a156a7258b2d664b6 // flow-typed version: <<STUB>>/babel-core_v^6.21.0/flow_v0.49.1 /** * This is an autogenerated libdef stub for: * * 'babel-core' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the...
import React, { Component } from 'react'; import { Animated, Dimensions, Easing, InteractionManager, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { useSafeArea } from 'react-native-safe-area-context'; import Hand from '../components/HandCTA'; import Footer from '../components/Home/Footer'; im...
import { TestBed, waitForAsync } from '@angular/core/testing'; import { PostComponent } from './post.component'; describe('PostComponent', () => { let component; let fixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [PostComponent], }).compil...
const Definitions = () => { const els = document.querySelectorAll('.js-fade-in') if ( !('IntersectionObserver' in window) || !('IntersectionObserverEntry' in window) || !('intersectionRatio' in window.IntersectionObserverEntry.prototype) ) { els.forEach(el => el.classList.add('js-is-visible')) ...
require('dotenv').config(); const queries = require('./src/utils/algolia.queries'); module.exports = { siteMetadata: { title: `Maicon Silva`, position: 'Web Developer', company: '<a href="https://ingresse.com" target="blank">Ingresse</a>', description: `Front End at`, autho...
'''35. Search Insert Position Easy 2032 237 Add to List Share Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Example 1: Input: [1,3,5,6], 5 Outpu...
import React from 'react'; import PropTypes from 'prop-types'; import ReactDisqusComments from 'react-disqus-comments'; import { Wrapper, Title } from './styles'; const Comments = ({ url, title }) => { const completeURL = `https://wendel.dev/${url}`; return ( <Wrapper> <Title>Comentários</Title> ...
"""Base class for module overlays.""" from pytype import abstract from pytype import datatypes class Overlay(abstract.Module): """A layer between pytype and a module's pytd definition. An overlay pretends to be a module, but provides members that generate extra typing information that cannot be expressed in a ...
/* ======================================================================== * Bootstrap: dropdownhover.js v1.1.0 * http://kybarg.github.io/bootstrap-dropdown-hover/ * ======================================================================== * Licensed under MIT (https://github.com/kybarg/bootstrap-dropdown-hover/blo...
# -*- coding: utf-8 -*- # # 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 #...
Highcharts.maps["countries/cn/445122"] = {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":445122,"name":"饶平县","center":[117.00205,23.668171],"centroid":[116.911862,23.83412],"childrenNum":0,"level":"district","acroutes":[100000,440000,445100],"parent":{"adcode":445100},"longitude":116.91...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
import unittest from FakeSocket import FakeSocket import tHome as T #=========================================================================== #=========================================================================== class TestGridFrequency ( T.util.test.Case ) : def test_gridFrequency( self ): reply...
function invalidNumber(input) { let num = Number(input.shift()); if (!((num >= 100 && num <= 200) || num == 0)) { console.log("invalid") } } invalidNumber([75])
// ==UserScript== // @name Instagram - Save Images // @version 1 // @grant none // @include https://www.instagram.com/* // @run-at document-idle // ==/UserScript== // https://wiki.greasespot.net/Greasemonkey_Manual:API // Hide the image overlay that stops you from saving an image. function hideImageBlocke...
const { Model, DataTypes } = require('sequelize'); const sequelize = require('../config/connection'); class ProductTag extends Model {} ProductTag.init( { // define columns id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true }, product_id:{...
!function(e){function r(r){for(var t,u,a=r[0],i=r[1],s=r[2],f=0,l=[];f<a.length;f++)u=a[f],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&l.push(o[u][0]),o[u]=0;for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);for(p&&p(r);l.length;)l.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,r...
// Visit https://api.openweathermap.org & then signup to get our API keys for free module.exports = { key: "{Your API Key Here}", base: "https://api.openweathermap.org/data/2.5/", };
(function () { 'use strict'; angular.module('cmadBlog').service('BlogService', function ($http) { var service = {}; service.GetAllPosts = GetAllPosts; service.getPosts = getPosts; service.getPost = getPost; service.createPost = createPost; service.getAllPostsC...
export class Vector extends Array { constructor(n) { if (Array.isArray(n)) { super(n.length) n.forEach((x, i) => this[i] = x) } else { super(n) this.fill(0.0) } } multiply(g) { return this.map(multiply(g)) } addScalar(c) { return this.map(addScalar(c)) } mu...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
# MIT License # # Copyright (c) 2020-2021 Parakoopa and the SkyTemple Contributors # # 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...
/*! * Module dependencies. */ /** * No-Cache Middlware. * * Prevent caching on all responses. */ module.exports = function() { return function(req, res, next) { res.setHeader('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'); next(); ...
from onnx_tf.handlers.frontend_handler import FrontendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_op @onnx_op("LSTM") @tf_op("LSTM") class LSTM(FrontendHandler): @classmethod def version_1(cls, node, **kwargs): return cls.make_node_from_tf_node(node) @class...
import { storiesOf } from '@storybook/vue' import StoryRouter from 'storybook-vue-router' import CardsDefaultMedia from '@/components/cards/Default.vue' storiesOf('Components|Cards/Media', module) .addDecorator(StoryRouter()) .addDecorator(storyFn => { const children = storyFn() return { components: ...
"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if...
""" Example 2.11 (Rule X). From "Multi-Winner Voting with Approval Preferences" by Martin Lackner and Piotr Skowron https://arxiv.org/abs/2007.01795 """ from abcvoting import abcrules from abcvoting import misc from abcvoting.preferences import Profile from abcvoting.output import output, DETAILS output.set_verbosit...
from sitech_models.tracking_fields import TrackingFieldsMixin from sitech_models.soft_delete import SoftDeleteMixin from sitech_models.base import Model
/** * Auto-generated action file for "LUIS Programmatic" API. * * Generated at: 2019-05-07T14:37:46.892Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / azure-com-cognitiveservices-luis-programmatic-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All fi...
import React from 'react' const Footer = () => { return ( <div className="footer"> <h1> Follow me on social media! </h1> <div className="links"> <a href="https://github.com/CasonHawley"> GitHub </a> <a href="https://www.linkedin.com/in/cason-hawley-5a...
import axios from 'axios'; export const FETCH_POSTS = 'fetch_posts'; export const FETCH_POST = 'fetch_post'; export const CREATE_POST = 'create_post'; export const DELETE_POST = 'delete_post'; const ROOT_URL = 'http://reduxblog.herokuapp.com/api/'; const API_KEY = '?key=abc1234000'; export function fetchPosts() { ...
[{"Owner":"kolar","Date":"2014-11-02T20:09:27Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_Hi! I try to run fragment of bone animation only once_co_ but (whole) animation starts looping after end of that fragment. Here is example_dd_ _lt_a href_eq__qt_http_dd_//babylonjs-playground.azurewebsites.ne...
ScalaJS.is.scala_Function2$mcDJJ$sp = (function(obj) { return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_Function2$mcDJJ$sp))) }); ScalaJS.as.scala_Function2$mcDJJ$sp = (function(obj) { if ((ScalaJS.is.scala_Function2$mcDJJ$sp(obj) || (obj === null))) { return obj } else { ScalaJS.thro...
let handler = async (m, { conn, usedPrefix }) => { conn.reply(m.chat, ` ╭═══════════════════════ ║╭──❉ 〔 INFO OWNER 〕 ❉────── ║│➸ ```NAMA``` : ROZI ║│➸ ```UMUR``` : 15thn ║│➸ ```ASAL``` : PONTIANAK ║│➸ ```OFFICIAL GRUP``` : https://chat.whatsapp.com/I8Q4oJVw8buHhIgMH5iVAv ║│➸ ```ISTAGRAM``` : http://instagram.com/za...
"use strict"; /** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessibleSurfaceArea = void 0; var tslib_1 = require("tslib")...
"""SAT URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
A, B, C = map(int, input().split()) print((A+B)%C) print((A%C+B%C)%C) print((A*B)%C) print(((A%C)*(B%C))%C)
# -*- coding: utf-8 -*- # # Project-AENEAS documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values...
from model.contact import Info import random # from random import randrange def test_delete_contact_db(app, db, check_ui): if len(db.get_contact_list()) == 0: app.contact.create(Info(firstname="test")) old_contacts = db.get_contact_list() contact = random.choice(old_contacts) ...
const BASE_JS_PATH = '../../../../../cfgov/unprocessed/js/'; const atomicHelpers = require( BASE_JS_PATH + 'modules/util/atomic-helpers' ); const Footer = require( BASE_JS_PATH + 'organisms/Footer' ); let containerDom; let componentDom; const testClass = 'o-footer'; const HTML_SNIPPET = ` <div class="container"> ...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var Icon = require('../Icon-deabd942.js'); var React = _interopDefault(require('react')); require('@carbon/icon-helpers'); require('prop-types'); var Deploy32 = /*#__PURE__*/ React.forward...
const binding = require('./binding'); // TODO: Document this... class CasPlaceholder {} /** * */ class MutateInSpec { /** * */ constructor() { this._op = -1; this._path = ''; this._flags = 0; this._data = undefined; } static _create(opType, path, value, o...
var grunt = require('grunt'); // hack to avoid loading a Gruntfile // You can skip this and just use a Gruntfile instead grunt.task.init = function () {}; // Init config grunt.initConfig({ jasmine: { all: ['index.js'] } }); // Register your own tasks grunt.registerTask('mytask', function () { grunt.log.wri...
from __future__ import absolute_import from __future__ import print_function from pysnptools.util.mapreduce1.runner import * import logging import fastlmm.pyplink.plink as plink import numpy as np from fastlmm.inference.lmm_cov import LMM as fastLMM import scipy.stats as stats from fastlmm.util.pickle_io import load, s...
#!/usr/bin/env python # # Copyright 2015 Google 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 requir...
//[Javascript] //Project: Unique Admin - Responsive Admin Template $(function () { 'use strict'; WeatherIcon.add('icon1' , WeatherIcon.SLEET , {stroke:false , shadow:false , animated:true } ); WeatherIcon.add('icon2' , WeatherIcon.SNOW , {stroke:false , shadow:false , animated:true } ); WeatherIcon.add('icon3' ,...
from __future__ import annotations from typing import overload, Optional import numpy as np from numpy.typing import ArrayLike # Contract brainstorm: # * initial arguments are copied, unless the fromvector constructor is used # with copy=False. This allows the pose to "view" a regular numpy array and # provide h...
import { sourceJs } from "@/config/base.config"; // 页面需要动态加载js文件 const win = window const doc = document //工具类方法集合 const tools = { //返回传递给他的任意对象的类(返回:array、object、number、string) typeOf(o) { if (o === null) return "Null"; if (o === undefined) return "Undefined"; return Object.prototype.toString.call(...
deepmacDetailCallback("5c91fd000000/24",[{"d":"2020-07-22","t":"add","s":"ieee-oui.csv","a":"A-501~507, H-Businesspark, 25 Beobwon-ro11gil, Songpa-gu, Seoul, Korea Seoul KR 05836","c":"KR","o":"Jaewoncnc"}]);
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Base/root component for the Teach page and application. */ import React, { useCallback, useEffect, useRef, useState } from "react"; import { fade, makeStyles } from "@material-ui/core/styles"; import Button from "@material-ui/core/Button"; import Grid from ...
const validator = require('email-validator') // Returns a list containing failed commit error messages // If commits aren't properly signed signed off // Otherwise returns an empty list module.exports = async function (commits, isRequiredFor, prURL) { const regex = /^Signed-off-by: (.*) <(.*)>$/im let failed = [] ...
# -*- coding: utf-8 -*- # # Copyright 2016 Google LLC. 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 requir...
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
$.jgrid.defaults.responsive = true; $.jgrid.defaults.styleUI = 'Bootstrap'; $(document).ready(function () { $("body").show(); /////////////////////////////////////////validation////////////////////////// $.validate({ modules: 'sanitize', language: { requiredFields: '' }, }); var errorField = []; conf ...
"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...
webpackHotUpdate(0,[ /* 0 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function($) {var React = __webpack_require__(2); var ReactDOM = __webpack_require__(158); var bootstrap = __webpack_require__(159); var pullRight = { float: "right", marginRight: "5%" }; ...
/*\ title: $:/core/modules/widgets/navigator.js type: application/javascript module-type: widget Navigator widget \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; var IMPORT_TITLE = "$:/Import"; var Widget = require("$:/core/modules/widgets/widget.js").widget; var Naviga...
const punctuationRegEx = /[,\.;—\-]/g const returnRegEx = /[\r\n]/g const commonWords = ['the','be','of','and','a','to','in','he','have','it','that','for','they','I','with', 'as','not','on','she','at','by','this','we','you','do','but','from','or','which','one','would','all', 'will','there','say','who','make','when','ca...
from textbox.data.utils import * __all__ = ['create_dataset', 'data_preparation']
""" Utility module to fetch system information. """ import os import sys import time import platform import calendar import datetime __author__ = "Jenson Jose" __email__ = "jensonjose@live.in" __status__ = "Alpha" class SysUtils: """ Utility class containing methods to fetch system information. """ ...
import pytest import unittest import sys from unittest import mock from Jumpscale import j class TestOpencCloudClientFactory(unittest.TestCase): @pytest.mark.ssh_factory @mock.patch("Jumpscale.clients.openvcloud.Account.Account") def test_machine_create_name_empty(self, account): from JumpscaleLib...
/* * @Author: enzo * @Date: 2016-11-08 11:40:08 * @Last Modified by: enzo * @Last Modified time: 2016-12-28 19:59:04 */ import { successToView } from './response'; const router = require('koa-router')(); /** * index */ router.get('/', (ctx, next) => { successToView(ctx, 'welcome', { title: '首页...
var MongoClient = require('mongodb').MongoClient, assert = require('assert'); MongoClient.connect('mongodb://localhost:27017/crunchbase', function(err, db) { assert.equal(err, null); console.log("Successfully connected to MongoDB."); var query = {"category_code": "biotech"}; var projection = {"...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (v...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _chromaJs = require('chroma-js'); var _chromaJs2 = _interopRequireDefault(_chromaJs); var _nunjuck...
import buildReducer from 'build-reducer' /** * Settings reducer */ export default buildReducer({ 'init': init, 'ui:update': update }) /* * Initializes the default state */ function init (state) { return { ...state, 'ui': {} } } /* * Updates the UI state */ function update (state, { payload }) { cons...
/** * @flow */ import React, { Component, } from 'react'; import { AlertIOS, AppRegistry, Platform, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import Video from 'react-native-video'; class VideoPlayer extends Component { constructor(props) { super(props); this.onLoa...
import unittest from deque import Deque class DequeTest(unittest.TestCase): def test_init(self): deque = Deque() assert deque.is_empty() == True assert deque.size == 0 deque = Deque(["a", "b", "c"]) assert deque.is_empty() == False assert deque.size == 3 def ...
// 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 {createMockActionContext} from 'fluxible/utils'; class MockDispatcher { constructor(store) { this.actionContext = createMockActionContext({ stores: [store] }); this.store = this.actionContext.getStore(store); } getStore() { return this.store; } dispatch(actionName, payload) { ...
/*______________ | ______ | U I Z E J A V A S C R I P T F R A M E W O R K | / / | --------------------------------------------------- | / O / | MODULE : Uize.Loc.Plurals.Langs.kcg Package | / / / | | / / / /| | ONLINE : http://www.uize.com | /____/ /__/_| | COPYRIGH...
const chai = require('chai'); chai.use(require('chai-http')); const expect = require('chai').expect; const { Validator } = require('../src'); var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.js...
var nanocomponent = require('nanocomponent') var morph = require('nanomorph') var slice = Array.prototype.slice function microcomponent (opts) { var update = opts.onupdate var render = opts.render var component = null opts.onupdate = function onUpdate () { var args = slice.call(arguments) var element ...
import React, { Component } from 'react'; import axios from 'axios'; import Post from '../../components/Post/Post'; import ReOrderButton from '../../components/ReOrderButton/ReOrderButton'; import './MainPage.css'; class MainPage extends Component { state = { posts: [] } componentDidMount () { ...
const User = require("./User"); const Blog = require("./Blog"); const Comment = require("./Comment"); User.hasMany(Blog, { foreignKey: "user_id", onDelete: "CASCADE", }); Blog.belongsTo(User, { foreignKey: "user_id", }); Blog.hasMany(Comment, { foreignKey: "blog_id", }); Comment.belongsTo(Blog, { foreignK...
import React from 'react'; import BaseIcon from '../BaseIcon'; export default props => ( <BaseIcon { ...props } > <path d="M10 34v4h28v-4H10zm9-8.4h10l1.8 4.4H35L25.5 8h-3L13 30h4.2l1.8-4.4zm5-13.64L27.74 22h-7.48L24 11.96z"/> </BaseIcon> );
import React from 'react'; import { Link } from 'gatsby'; import github from '../img/github-icon.svg'; import logo from '../img/legacy/logo.jpeg'; import menuActive from '../img/legacy/menu_a.jpeg'; const Navbar = class extends React.Component { constructor(props) { super(props) this.state = { active...
import logging import multiprocessing import os import sys import warnings import xml.etree.ElementTree as ET from itertools import repeat from pathlib import Path import astropy.units as u import click import matplotlib.pyplot as plt import numpy as np from astropy.coordinates import SkyCoord from astropy.modeling im...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import 'spectre.css/dist/spectre.min.css'; import 'spectre.css/dist/spectre-icons.css'; import re...
from django.conf.urls import url, include from django.contrib import admin from . import views from django.contrib.auth import views as auth_views from ratelimitbackend.views import login as r_login urlpatterns = [ url(r'^$', r_login, name='index'), url(r'^home/', views.home, name='home'), url('^accounts/'...
/** * Nodeum API * The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http://nodeumhostname/ap...
// SLOVAK var lang = { "AD": "Andorra", "AE": "Spojené arabské emiráty", "AF": "Afganistan", "AG": "Antigua a Barbados", "AI": "Anguilla", "AL": "Albánsko", "AM": "Arménsko", "AO": "Angola", "AQ": "Antarctica", "AR": "Argentína", "AS": "Americká Samoa", "AT":...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. (async function() { TestRunner.addResult(`Tests resolving variable names via source maps.\n`); await TestRunner.loadLegacyModule('sources'); await Tes...
import request from 'request' import logger from '@wdio/logger' import WebDriver from '../src' test('should allow to create a new session using jsonwire caps', async () => { await WebDriver.newSession({ path: '/', capabilities: { browserName: 'firefox' } }) const req = request.mock.calls[...
webpackJsonp([0],{ /***/ "./node_modules/babel-runtime/core-js/array/from.js": /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__("./node_modules/babel-runtime/node_modules/core-js/library/fn/array/from.js"), __esModule: true }; /***/ }), /***/ "./node_modules/...