text stringlengths 3 1.05M |
|---|
module.exports = {
siteMetadata: {
title: 'Toni Suominen Website',
},
plugins: ['gatsby-plugin-react-helmet'],
}
|
import React from 'react';
import PropTypes from 'prop-types';
import { KeyPad } from '../elements';
import NumPad from './NumPad';
import StaticWrapper from './StaticWrapper';
const positiveValidation = value => parseFloat(value) >= 0;
const integerValidation = value => parseFloat(value) % 1 === 0;
const numberVali... |
/*
@licstart The following is the entire license notice for the
JavaScript code in this file.
Copyright (C) 1997-2019 by Dimitri van Heesch
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundati... |
import pytest
@pytest.fixture
def assay_term_starr(testapp):
item = {
'term_id': 'OBI:0002041',
'term_name': 'STARR-seq'
}
return testapp.post_json('/assay_term', item, status=201).json['@graph'][0]
@pytest.fixture
def assay_term_chip(testapp):
item = {
'term_id': 'OBI:000071... |
from turtle import color
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import multivariate_normal
np.set_printoptions(threshold=np.inf)
plt.rcParams['figure.figsize'] = [9,9]
from numpy import linalg as LA
N_features = 4 # Number of features
N_Samples = 10000 # Numb... |
pimcore.registerNS("Formbuilder.comp.validator.hostname");
Formbuilder.comp.validator.hostname = Class.create(Formbuilder.comp.validator.base,{
type: "hostname",
errors:["hostnameCannotDecodePunycode","hostnameInvalid","hostnameDashCharacter","hostnameInvalidHostname","hostnameInvalidHostnameSchema","hostnameI... |
import React from "react";
class SignIn extends React.Component {
constructor(props) {
super(props);
this.state = {
email: "",
password: ""
};
}
onEmailChange = event => {
this.setState({ email: event.target.value });
};
onPasswordChange = event => {
this.setState({ password... |
/*
* Unobtrusive autocomplete
*
* To use it, you just have to include the HTML attribute autocomplete
* with the autocomplete URL as the value
*
* Example:
* <input type="text" data-autocomplete="/url/to/autocomplete">
*
* Optionally, you can use a jQuery selector to specify a field that can
* be updated with t... |
import React from 'react';
import withIconEnhancer from '../HOCs/withIconEnhancer';
export default withIconEnhancer('ArrowLoopLeft', 'arrow-loop-left', (props) => (
<svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M13 21v-13a4 4 0 ... |
# - Generated by tools/entrypoint_compiler.py: do not edit by hand
"""
AllFeatureSelector
"""
from ..utils.entrypoints import Component
def all_feature_selector(
**params):
"""
**Description**
None
"""
entrypoint_name = 'AllFeatureSelector'
settings = {}
component = Compon... |
import { registerIcon } from "@ui5/webcomponents-base/dist/SVGIconRegistry.js";
const name = "sap-icon://travel-expense";
const d = "M303 138l56 167-56 56-74-148-71 53v75l-27 26-51-80-80-51 26-26h75l54-72L6 64 62 9l167 55 37-37q11-11 30-19t37-8q17 0 26 9 7 8 8 20.5t-2.5 26-10.5 26-14 19.5zm-25 9l-5-16 11-11 38-37q6-6 ... |
/* global describe, it, expect */
/* eslint-disable no-underscore-dangle */
const buildJsonResults = require('../utils/buildJsonResults'); // eslint-disable-line
const constants = require('../constants/index');
const getResults = function getResults (name, overrides = {}, path = '') {
const testsReport = require(`.... |
const fs = require('fs');
const input = fs.readFileSync('/dev/stdin').toString().split(' ');
const a = input[0];
const b = input[1];
const c = input[2];
const op = ['+','-','/','*'];
let ans;
op.map(cur => {
const func = new Function('return '+a+cur+b);
if(func() == parseInt(c)) ans = a+cur+b+'='+c;
const fun2 = ... |
import { renderHook, act } from '@testing-library/react-hooks'
import axios from 'axios'
import useAxiosStatic, {
configure as configureStatic,
resetConfigure as resetConfigureStatic,
makeUseAxios
} from '../src'
import { mockCancelToken } from './testUtils'
jest.mock('axios')
let cancel
let token... |
import { createWrapper } from '@vue/test-utils';
import { initGroupMembersApp } from '~/groups/members';
import GroupMembersApp from '~/groups/members/components/app.vue';
import { membersJsonString, membersParsed } from './mock_data';
describe('initGroupMembersApp', () => {
let el;
let vm;
let wrapper;
const... |
/**
* @license Angular v9.1.2
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
import { getUrlScheme, syntaxError, Identifiers, JitCompiler, ProviderMeta, I18NHtmlParser, CompilerConfig, CompileReflector, ResourceLoader, JitSummaryResolver, SummaryResolver, Lexer, Parser, HtmlParser, TemplateParse... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'filetools', 'zh-cn', {
loadError: '读取文件时发生错误。',
networkError: '上传文件时发生网络错误。',
httpError404: '上传文件时发生 HTTP 错误(404:无法找到文件)。'... |
from rdkit import Chem
from rdkit.Chem import Draw
from rdkit.Chem.Draw import IPythonConsole
IPythonConsole.ipython_useSVG = True
peptide_smiles = Chem.MolToSmiles(Chem.MolFromFASTA("RGDfK"))
#here you can define much more fasta file format to the smiles format which by Christopher
from rdkit import Chem
f... |
/** @license React v0.0.0-fec00a869
* react-dom-unstable-native-dependencies.production.min.js
*
* 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.
*/
'use strict';(function(n,p){"object"... |
const mix = require('laravel-mix');
require('laravel-mix-merge-manifest');
mix.js('resources/js/admin.js', 'public/js')
.sass('resources/sass/admin.scss', 'public/css')
.copy('node_modules/@fortawesome/fontawesome-free/svgs/solid/user.svg', 'public/img/user-default.svg')
.extract()
.mergeManifest()
... |
from globus_cli.login_manager import LoginManager
from globus_cli.parsing import command, endpoint_id_arg
from globus_cli.services.transfer import ENDPOINT_LIST_FIELDS
from globus_cli.termio import formatted_print
@command(
"my-shared-endpoint-list",
short_help="List all shared endpoints on an endpoint by the... |
# Lint as: python2, python3
# Copyright 2020 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
#
... |
# Copyright (C) 2003 Vladimir Prus
# Use, modification, and distribution is subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
# at http://www.boost.org/LICENSE_1_0.txt)
class Order:
"""Allows ordering arbitrary objects with regard to arbitrary binary rel... |
import { Status, Size, Shape } from '@paljs/ui/types';
import { Card, CardBody } from '@paljs/ui/Card';
import { Button, ButtonLink } from '@paljs/ui/Button';
import Col from '@paljs/ui/Col';
import Row from '@paljs/ui/Row';
import React, { useEffect, useState } from 'react';
import Layout from 'Layouts';
import { useR... |
import React from "react"
import PropTypes from "prop-types"
const Togglable = (props) => {
const hideWhenVisible = { display: props.visible ? "none" : "" }
const showWhenVisible = { display: props.visible ? "" : "none" }
return (
<div>
<div style={hideWhenVisible}>
<button onClick={props.toggl... |
import $ from 'jquery';
$(document).ready(function () {
$('[data-submit]').click(function (event) {
let target = event.currentTarget;
$(target)
.parents('form')
.append("<input type='hidden' name='submit' value='" + target.value + "'/>");
});
});
|
// function printMyName(name) {
// console.log(name);
// }
const printMyName = (name) => {
console.log(name);
};
printMyName("Kobby");
|
Blockly.Arduino['io_highlow'] = function () {
// Boolean values HIGH and LOW.
var code = (this.getFieldValue('BOOL') == 'HIGH') ? 'HIGH' : 'LOW';
return [code, Blockly.Arduino.ORDER_ATOMIC];
};
Blockly.Arduino['io_pinMode'] = function ()
{
//var dropdown_pin = Blockly.Arduino.valueToCode(this, "PIN"... |
const AppleSignin = require('ti.applesignin');
const signInButton = AppleSignin.createLoginButton({
type: AppleSignin.BUTTON_TYPE_SIGNIN,
style: AppleSignin.BUTTON_STYLE_BLACK,
borderRadius: 10,
});
describe('ti.applesignin', () => {
describe('methods', () => {
describe('#authorize()', () => {
it('is a functi... |
import React, { useEffect, useState } from 'react';
import { db } from './firebase';
import Order from './Order';
import './Orders.css';
import { useStateValue } from './StateProvider';
function Orders() {
const [{ basket, user }, dispatch] = useStateValue();
const [orders, setOrders] = useState([]);
useE... |
import React from 'react';
import Error from '../defaultComponent';
import { shallow, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import chai from 'chai';
import { Alert, Glyphicon, Button, Well } from 'react-bootstrap';
configure({ adapter: new Adapter() });
const errorFixture = {
nam... |
const preactCliPostCSS = (config, helpers) => {
if(!config) { throw Error('You need to pass the config')}
if(!helpers) { throw Error('You need to pass the helpers')}
const postcssLoader = helpers.getLoadersByName(config, 'postcss-loader')
if (postcssLoader)
postcssLoader.forEach(({ loader }) =>... |
exports.dateFormat = (date, fmt) => {
let thisDate = date || new Date();
let o = {
'M+': thisDate.getMonth() + 1, // 月份
'd+': thisDate.getDate(), // 日
'h+': thisDate.getHours(), // 小时
'm+': thisDate.getMinutes(), // 分
's+': thisDate.getSeconds(), // 秒
'q+': Math.floor((thisDate.getMonth() + ... |
export default class VideoService{
constructor(AppConstants, $window){
'ngInject';
this._AppConstants = AppConstants;
this._$window = $window;
}
saveVideos(videos){
this._$window.localStorage[this._AppConstants.videoKey] = JSON.stringify(videos);;
}
getVideos(){
var videos = this._$window.localStorage... |
import logging
from typing import cast
from celery import group
from celery.app.base import Celery
from chaos_genius.controllers.data_source_controller import get_data_source_list
from chaos_genius.controllers.data_source_metadata_controller import (
run_metadata_prefetch,
)
from chaos_genius.extensions import ce... |
import { Config } from "src/Config.js"
import { Complex } from "src/math/Complex.js"
import { GateBuilder } from "src/circuit/Gate.js"
import { GatePainting } from "src/draw/GatePainting.js"
import { Matrix } from "src/math/Matrix.js"
let ClassicalGates = {};
/** @type {!Gate} */
ClassicalGates.CoinToss = new GateBui... |
import React from 'react';
import Link from 'components/link';
import LogoCrystallize from 'ui/icons/logo-crystallize';
import { useT } from 'lib/i18n';
import { useSettings } from 'components/settings-context';
import { Outer, Logo, NavList, Powered } from './styles';
export default function Footer() {
const t =... |
const companies = [
'Airconix', 'Qualcore', 'Hivemind', 'Thermolock', 'Sunopia'
];
const firstNames = [
'Raymond', 'Vernon', 'Dori', 'Jason', 'Rico'
];
const lastNames = [
'Neal', 'Dunham', 'Seabury', 'Pettey', 'Muldoon'
];
const random = (array) => array[ Math.floor(Math.random() * array.length... |
import React from 'react'
import { Grid, Header } from 'semantic-ui-react'
import { MonthTable } from './Month'
function getMonthArray(endingMonth, totalMonths, year) {
let monthValue = endingMonth
let yearValue = year
const monthArray = []
for (let i = 0; i < totalMonths; i += 1) {
if (monthValue === 0) {... |
/* global GOVUK */
(function () {
'use strict'
var root = this
var $ = root.jQuery
if (typeof root.GOVUK === 'undefined') { root.GOVUK = {} }
$.expr[':'].contains = function (obj, index, meta) {
return (obj.textContent || obj.innerText || '').toUpperCase().indexOf(meta[3].toUpperCase()) >= 0
}
va... |
import tensorflow as tf
TRAIN_FILE = 'C:/bank/double_up7_train.csv'
model_filepath = 'C:/bank/checkpoint/'
SUMMARY_PATH = 'C:\\bank\\summary\\'
FEATURE_COUNT = 15
LABEL_COUNT = 2
iteration = 300000
NODE_LIST = (FEATURE_COUNT, FEATURE_COUNT, 40, 15, 8, LABEL_COUNT) # 從左到右依次是輸入、各隱含層和輸出的node數
LEARNING_RATE = ... |
import DummyComponent from './dummy-component';
export default DummyComponent;
|
/**
* @fileoverview Ensure that names 'l', 'O' & 'I' are not used for variables
* @author Raghav Dua <duaraghav8@gmail.com>
*/
'use strict';
module.exports = {
verify: function (context) {
var disallowedNames = ['l', 'O', 'I'];
function inspectVariableDeclarator (emitted) {
var node = emitted.node,
... |
"use strict";
/* Replicants */
const stopwatch = nodecg.Replicant("stopwatch");
class Stopwatch {
view() {
if (!stopwatch.value) {
return m(".wasd-row", "Loading...");
}
const time = stopwatch.value.time;
const state = stopwatch.value.displayState;
return [
m(".wasd-row", m("." + state + "#stopwatc... |
#################################################################
#Copyright 2019 Google 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
... |
// 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(`Verify that breakpoints are moved appropriately\n`);
await TestRunner.loadModule('sources_test_runner');
a... |
import React from 'react'
import {FlatList} from 'react-native'
import {shallow} from "enzyme"
import ConnectedFirstScreen, {FirstScreen} from "../js/screen/FirstScreen"
import ReadedComponent from "../js/component/ReadedComponent";
describe('Test UI', () => {
let wrapper
let dispatchFun
let open
beforeEach((... |
/**
* ----------------------------------------------------------------------------------------------------
* Generate QTUM Address [Input]
*
* @author Buildable Technologies Inc.
* @access open
* @license MIT
* @docs https://tatum.io/apidoc.php#operation/GenerateAddressPrivatekey
* ----------------... |
/**
* @license
*
* Copyright IBM Corp. 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.
*/
'use strict';
const isPlainObj = require('is-plain-obj');
/**
* The parent nodes in object tree.
* @typedef {Object} deepReplace... |
import React from "react";
function MyButton(props) {
const { setCounter, counter, value, text } = props;
// We desctructure props for easy use here
// else we can also do: props.value, props.text etc
return (
<div>
<button
onClick={() => setCounter(counter + value)}
className="count... |
/**
* The type of Redux action which signals for the label indicating current
* recording state to stop displaying.
*
* {
* type: HIDE_RECORDING_LABEL
* }
* @public
*/
export const HIDE_RECORDING_LABEL = Symbol('HIDE_RECORDING_LABEL');
/**
* The type of Redux action which updates the current known state o... |
export const isFunction = unknown => typeof unknown === 'function';
export const isNumber = unknown => typeof unknown === "number";
export const isString = unknown => (typeof unknown === 'string' || ((!!unknown && typeof unknown === 'object') && Object.prototype.toString.call(unknown) === '[object String]'));
export co... |
import fs from 'fs'
import path from 'path'
import jsonFormat from 'json-format'
import store from '@/store'
class api {
constructor (data) {
this.dir = data.dir
this.obj_data = {}
this.path = path.join(store.getters.now_open.toString(), this.dir, data.e_name)
}
read (type, default_data, callback) {... |
#!/usr/bin/env python
"""
MIT License
Copyright (c) 2021 Michael Alonge <malonge11@gmail.com>
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 th... |
import React, { Component } from 'react';
import Transition from 'react-transition-group/CSSTransitionGroup';
const colors = [
['#06846F', '#30B14D', '#0187C6', '#DCBB18'],
['#DCBB18', '#0187C6', '#06846F', '#30B14D'],
['#004964', '#186761', '#198466', '#869A3B'],
['#F0AF09', '#C90E55', '#BC014B', '#E97917'],
... |
// @ts-check
const promisify = require("util").promisify;
const markdownlint = require("markdownlint");
const glob = promisify(require("glob"));
const path = require("path");
const fs = require("fs");
const readFile = promisify(fs.readFile);
const markdownConfig = /** @type {import("markdownlint").MarkdownlintConfig... |
import { FilledAlbum as SharpAlbum } from './FilledAlbum';
export { SharpAlbum }; |
#run_15.py
import numpy as np
niter=1500 #trials per worker
num_trials_per_setting=1
L=10 #cm per domain
force_code=2 #2 :: QED2, 4 :: QED2 + constant repulsion
x0_values=np.array([0])#1.5,3.,5.,10.,100.,10000.]) #10 #doesn't matter for force_code=2
dt=1e-5
Dt=1e-5
Nmax=100 #Caution: might not be actually connected ... |
from simplads import Bundle, pipe, lift, add_data, pr, remove_data
from .steps.create_root import create_root
from .steps.add_files import add_files
from .steps.simplify import simplify
from .steps.add_view_files import add_view_files
from epr import epr
def create_view(view_files, example_files):
return pipe(
... |
const schema = require('../schema').tables;
const _ = require('lodash');
const validator = require('validator');
const moment = require('moment-timezone');
const assert = require('assert');
const Promise = require('bluebird');
const {i18n} = require('../../lib/common');
const errors = require('@tryghost/errors');
const... |
import React from "react";
import { useDispatch, useSelector } from "react-redux";
import blogActions from "../redux/actions/blog.actions";
function BlogDetail({ id }) {
const blogDetail = useSelector((state) => state.blog.selectedBlog);
const loading = useSelector((state) => state.blog.loadingSelectedBlog);
re... |
/*
* @Author: Neil.yao
* @Date: 2020-09-15 21:44:41
* @LastEditTime: 2020-09-16 09:08:47
* @Description:
* @FilePath: /vue-admin-template/src/utils/request.js
*/
import axios from 'axios'
import { MessageBox, Message } from 'element-ui'
import store from '@/store'
import { getToken } from '@/utils/auth'
// crea... |
/*global define*/
define({
"_widgetLabel": "I nærheden af mig",
"searchHeaderText": "Søg efter en adresse eller position på kortet",
"invalidSearchLayerMsg": "Søgelag er ikke konfigureret korrekt",
"bufferSliderText": "Vis resultater inden for ${BufferDistance} ${BufferUnit}",
"bufferTextboxLabel": "Vis resul... |
/**
* WordPress dependencies
*/
import React, { Component } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import apiFetch from '@wordpress/api-fetch';
/**
* Internal dependencies
*/
import './style.scss';
import {
getProtectedBranches,
getPullRequestsWithBuilds,
getReleases,
} from '../../uti... |
/* JS for twitch-client app */
// Store stream names and URLs
var api = "https://wind-bow.glitch.me/twitch-api/streams/";
var streams = ["freecodecamp", "ESL_SC2", "OgamingSC2", "aimbotcalvin", "Surefour", "PlayOverwatch", "harbleu", "BazzaGazza", "Loserfruit", "codeyniku", "Grimmmz"]
$(document).ready(function() {
... |
/* global describe, before, cy, it */
describe('mobile version', () => {
before(() => {
cy.visit('http://127.0.0.1:8080/en/')
})
it('should have all widgets at 100% width', () => {
cy.viewport('iphone-5')
cy.get('.test--main_wrapper')
.should('have.css', 'width')
.and('lessThan', '321px')... |
var JwtStrategy = require('passport-jwt').Strategy;
var ExtractJwt = require('passport-jwt').ExtractJwt;
const config = require('./config.js');
const User = require("../server/models/userModel.js");
// Passing in options for jwt strategy
var opts = {}
opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken();
opt... |
const {
BN,
constants,
expectEvent,
expectRevert,
time
} = require('@openzeppelin/test-helpers');
const { ethers } = require('hardhat');
const { expect } = require('chai');
const { etherToWei, amount18 } = require('../utils/index');
const FantomLiquidationManager = artifacts.require(
'MockFantomLiquidati... |
import Phaser from 'phaser';
import boy from './assets/boy.png';
import numberLine from './assets/numberLine.png';
import addButton from './assets/plus.png';
import subButton from './assets/minus.png';
import clickBtn from './assets/click.png';
class MyGame extends Phaser.Scene
{
constructor ()
{
... |
const path = require('path');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const CircularDependencyPlugin = require('circular-dependency-plugin')
const webpack = require('webpack');
module.exports = {
mode: 'development', // overridden by CLI flag on prod build
entry: './main.tsx',
plugins:... |
// The StreamViewType can be any of the following values 'NEW_IMAGE'|'OLD_IMAGE'|'NEW_AND_OLD_IMAGES'|'KEYS_ONLY',
// but if you want to use Global Tables, it must be set to NEW_AND_OLD_IMAGES.
const {DynamoDBClient, UpdateTableCommand } = require('@aws-sdk/client-dynamodb');
const REGION = "us-west-2";
const TableNa... |
import {
didScrollToBottom
} from './scroll';
export {
didScrollToBottom
} |
from django.shortcuts import render, get_object_or_404, redirect
from post.models import Post
from comentarios.models import Comentarios, Resposta
from django.http import Http404
from django.core.paginator import Paginator
from django.db.models import Q, Case, Count, When
from django.contrib import messages
from coment... |
import sys, os
from distutils import sysconfig
from Package import Package
check_text = r'''
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
return EXIT_SUCCESS;
}
'''
class Cython(Package):
def __init__(self, **kwargs):
defaults = {
'download_url': 'https://fi... |
amis.define('src/store/combo.ts', function(require, exports, module, define) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComboStore = exports.UniqueGroup = void 0;
const mobx_state_tree_1 = require("node_modules/mobx-state-tree/dist/mobx-state-tree");
const iRendere... |
"""
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... |
import firebase from '@firebase/app';
import { ErrorFactory } from '@firebase/util';
import '@firebase/installations';
import { Logger, LogLevel } from '@firebase/logger';
const version = "0.2.25";
/**
* @license
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
const path = require('path')
const { title, devServerPort } = require('./src/settings.js')
const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
function resolve(dir) {
return path.join(__dirname, dir)
}
const appName = title || 'app'
module.ex... |
import { weatherReducer } from "./weather-reducer";
import { weatherSaga } from "./weather-saga";
export function getWeatherModule() {
return {
// Unique id of the module
id: "weather",
// Maps the Store key to the reducer
reducerMap: {
weatherState: weatherReducer
... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 so... |
# -*- 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 "Lic... |
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""template.py: A basic tempalte for CGI-work"""
import json
import os
import sqlite3
import sys
from httperror import HTTPError
RETURN_HEADERS = []
def fetch_all_hints():
database = sqlite3.connect('database.sqlite3')
hints = database.execute(("SELECT hint_p... |
'use strict';
const Sequelize = require('sequelize');
/**
* CloudDj user model function definitions.
*
* @author: Arsham Eslami (arshameslami@gmail.com)
* @copyright 2019 Learning Bee
*/
class Users {
constructor(helpers, sequelize, definitions) {
this.helpers = helpers;
this.sequelize = seq... |
const { ElementSchema } = require('./Element');
const { FHIRAllTypesSchema } = require('./allSchemaHeaders.js');
FHIRAllTypesSchema.add(ElementSchema);
FHIRAllTypesSchema.remove('id');
FHIRAllTypesSchema.add({
value: String,
});
module.exports.FHIRAllTypesSchema = FHIRAllTypesSchema;
|
// @flow
import Container from '../../forms/container.desktop'
import React, {Component} from 'react'
import Row, {RowCSS} from './row'
import {Text} from '../../../common-adapters'
import type {Props} from '.'
class GPGSign extends Component<Props> {
render() {
return (
<Container style={styles.container... |
# Authors:
# Trevor Perrin
# Google - handling CertificateRequest.certificate_types
# Google (adapted by Sam Rushing and Marcelo Fernandez) - NPN support
# Dimitris Moraitis - Anon ciphersuites
# Yngve Pettersen (ported by Paul Sokolovsky) - TLS 1.2
#
# See the LICENSE file for legal information regarding us... |
/*
* EditContentView Messages
*
* This contains all the text for the EditContentView component.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.components.EditContentView';
export default defineMessages({
header: {
id: `${scope}.header`,
defaultMessage: 'This is the EditConten... |
/* eslint-disable no-console */
import BuildingRollupMixin from '../building-rollup/index.js';
const BuildingMixin = subclass =>
class extends BuildingRollupMixin(subclass) {
async execute() {
await super.execute();
console.log('... Building done');
}
};
export default BuildingMixin;
|
function openNewCatWindow() {
elt = 'newcatwin';
openPJsWin(elt,300);
ajax_update(elt,"comm.php?SHOW_NEW_CAT=1");
}
function addNewCategory() {
name = $('catname').value;
if (name.length<1) {
alert('Es wurde kein Name eingegeben');
return;
}
ajax_update('catlist','comm.php?B_ADD_PMCATEGORY=1&'+Form.Element.... |
export const Endpoints = {
new_tracks: "https://qvd-music.com/backend/stream/tracks/new.php", //Listing new tracks on the front page
all_tracks: "https://qvd-music.com/backend/stream/tracks/all_order_by_new.php", //Listing new tracks on the front page
search_tracks: "https://qvd-music.com/backend/stream/tracks/se... |
/**
* HandsontableManualRowMove
*
* Has 2 UI components:
* - handle - the draggable element that sets the desired position of the row
* - guide - the helper guide that shows the desired position as a horizontal guide
*
* Warning! Whenever you make a change in this file, make an analogous change in manualRowMove.... |
# -*- coding: utf-8 -*-
# @Time : 2020/3/28
# @Author : Lart Pang
# @FileName: CEL.py
# @GitHub : https://github.com/lartpang
from torch import nn
class CEL(nn.Module):
def __init__(self):
super(CEL, self).__init__()
print("You are using `CEL`!")
self.eps = 1e-6
def forward(self... |
const app = require('./app');
app.listen(app.get('port'), () => {
console.log(`\nApi rodando na porta ${ app.get('port') }\n`);
}); |
'use strict';
// Declare internals
var internals = {};
// Defaults
internals.defaults = {};
exports.register = function(plugin, options, next) {
plugin.route({
method: 'GET',
path: '/trodrigues',
handler: function(request, reply) {
reply('why not zoidberg?');
}
});
next();
};
exports.r... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { Networ... |
/*!
* jQuery JavaScript Library v3.5.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-04-10T15:07Z
*/
(function(n,t){"use strict";typeof module=="object"&&typ... |
import React, { Component } from 'react';
import { NonWallet } from 'capsule-core-js';
const DEFAULT_STATE = {
network: null,
account: '0x76d8B624eFDDd1e9fC4297F82a2689315ac62d82',
balance: null,
}
class TestNonWallet extends Component {
constructor() {
super();
this.state = DEFAULT_STATE;
}
get... |
const NeDB = require('nedb');
const path = require('path');
module.exports = function (app) {
const dbPath = app.get('nedb');
const Model = new NeDB({
filename: path.join(dbPath, 'videomixer.db'),
autoload: true
});
return Model;
};
|
import os
import sys
from glad.lang.common.generator import Generator
from glad.lang.common.util import makefiledir
KHRPLATFORM = 'https://www.khronos.org/registry/egl/api/KHR/khrplatform.h'
class CGenerator(Generator):
def open(self):
suffix = ''
if not self.spec.NAME == 'gl':
suff... |
import { WatsonHealthInteractiveSegmentationCursor20 } from '../..';
export default WatsonHealthInteractiveSegmentationCursor20;
|