text stringlengths 3 1.05M |
|---|
// Douban Decode JS
// from https://github.com/SergioJune/Spider-Crack-JS
// By SergioJune. Apache License.
const fetch = require("node-fetch");
var i = 16
var Q = 4096
var p = {
start: 2,
end: 7
}
var K = {}
K.read = function (t, e, r, n, o) {
var i, a, s = 8 * o - n - 1, u = (1 << s) - 1, c = u >> 1, f ... |
# Generated by Django 2.2.1 on 2019-06-16 13:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20190616_1619'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='ikes',
... |
const config = {
gatsby: {
pathPrefix: '/',
siteUrl: 'https://plutomath.gatsbyjs.io/',
gaTrackingId: null,
trailingSlash: false,
},
header: {
logo: 'https://avatars3.githubusercontent.com/u/10001670?v=4',
logoLink: 'https://avatars3.githubusercontent.com/u/10001670?v=4',
title:
"... |
#!/usr/bin/env python
import sys
import mimetypes
mimetypes.init()
if ".wasm" not in mimetypes.types_map:
print(
"WARNING: wasm mimetype unsupported on that system, trying to correct",
file=sys.stderr,
)
mimetypes.types_map[".wasm"] = "application/wasm"
import argparse
from http import se... |
import os
import datetime
import pytest
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.serialization import load_pem_private_key
from flask import current_app
from flask_principal import identity_changed, Identity
from lemur import create_app... |
import React from 'react';
//const state = {eventCount: 0, username: ''}
function Event() {
let [eventCount, setEventCount] = React.useState(0);
function handleClick() {
setEventCount(eventCount + 1);
}
let [username, setUsername] = React.useState('');
function handleChange(event) {
setUsername... |
/**
* Created by cpc on 1/17/16.
*/
import mongoose, { Schema } from 'mongoose';
const schema = new Schema({
_id: { type: String, required: true },
cnt: { type: Number, default: 0 },
});
schema.statics.add = async function add(id) {
const counter = await this.findByIdAndUpdate(id,
{ $inc: { cnt: 1 } },
... |
import sys
import copy
import logging
import types
import time
import re
from . import packet as scapy
import ptf
import ptf.dataplane
import ptf.parse
import ptf.ptfutils
import codecs
from six import StringIO
global skipped_test_count
skipped_test_count = 0
_import_blacklist = set(locals().keys())
# Some useful d... |
import React, { useState } from "react";
import { Link } from "react-router-dom";
import FormControl from "@material-ui/core/FormControl";
import InputLabel from "@material-ui/core/InputLabel";
import Input from "@material-ui/core/Input";
import Paper from "@material-ui/core/Paper";
import withStyles from "@material-ui... |
import React from 'react';
import { graphql, Link } from 'gatsby';
import styled from '@emotion/styled';
import Layout from '../components/layout';
import ArticleLink from '../components/article-link';
const Pagination = styled('div')`
a {
color: black;
float: left;
padding: 8px 16px;
text-decoration... |
export default class Tsp {
constructor() {
this.pointDist = [];
this.pointLocations = [];
this.bestOrder = [];
this.record = Number.MAX_SAFE_INTEGER;
this.totalpoints = null;
this.population = [];
this.populationDensity = 500;
this.desirability = [];
... |
const express = require('express')
const routes = express.Router()
const views = __dirname + '/views'
const profile = {
name: "Jorge",
avatar: "https://avatars.githubusercontent.com/u/47228656?v=4",
"monthly-budget": 3000,
"days-per-week": 5,
"hours-per-day": 5,
"vacation-per-year":4,
"val... |
const { Op } = require('sequelize');
const deleteDependentService = require('../../../utils/deleteDependent');
const message = require('../../../utils/messages');
const models = require('../../../model');
function makeRoleController ({
roleService,makeRole
})
{
const addRole = async ({
data,loggedInUser
}) =... |
import HeaderSection from './header-section';
export default HeaderSection;
|
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
import React from "react";
import PropTypes from "prop-types";
import { connect } from 'react-redux';
import { _SELECTED_CATEGORY } from "../../actions/index";
const CategoryList = ({ categories, _SELECTED_CATEGORY }) => {
/**
* Send action when i clicked
* to show details on form
*/
const... |
/**
* This file is part of Adguard Browser Extension (https://github.com/AdguardTeam/AdguardBrowserExtension).
*
* Adguard Browser Extension is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, eit... |
// @flow
import type {DevServerOptions, Request, Response} from './types.js.flow';
import type {
BundleGraph,
FilePath,
PluginOptions,
NamedBundle,
} from '@parcel/types';
import type {Diagnostic} from '@parcel/diagnostic';
import type {FileSystem} from '@parcel/fs';
import type {HTTPServer} from '@parcel/util... |
var searchData=
[
['uptimemillis_240',['uptimeMillis',['../class_om_web_server.html#a3b0b49ea906b5c2d7f81ec4d5d371c54',1,'OmWebServer']]]
];
|
'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'dummy',
environment,
rootURL: '/ember-auto-save',
locationType: 'hash',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': ... |
from jnpr.junos.device import Device
from jnpr.junos.factory.to_json import PyEzJSONEncoder
from jnpr.junos.facts.swver import version_info, version_yaml_representer
from . import jxml
from . import jxml as JXML
from . import version
from . import exception
import json
import yaml
import logging
__version__ = version... |
import text from './PDFGenerator.yaml';
import { get_static_url } from '../request_utils.js';
import { create_text_maker_component } from './misc_util_components.js';
import { SpinnerWrapper } from './SpinnerWrapper.js';
import { Fragment } from 'react';
import { IconDownload } from '../icons/icons.js';
const { text... |
from .arch import Model
from ._utils import get_num_params
|
export default {
namespaced: true,
state: () => ({
loading: false
}),
mutations: {
SET_LOADING(state, value) {
state.loading = value;
}
}
};
|
var stmSimple = require('./stmSimple').stmSimple;
console.log('This is a stream simple test');
var account = '需要查询历史的地址';
var account = 'vfq4sckDNcNcyfrDQed6FBqqDfEgTgsjtJ';
//查询特定钱包地址的发送,接收记录
//
//返回结果
// 若返回结果为false,则表明查询的钱包地址尚未激活或不存在
// res = { account: '查询的钱包地址',
// ledger_index_max: 当前最新账本号,
// ... |
from ibmcloud_python_sdk.config import params
from ibmcloud_python_sdk.utils.common import query_wrapper as qw
from ibmcloud_python_sdk.power import get_power_headers as headers
from ibmcloud_python_sdk.power import instance
class Event():
def __init__(self):
self.cfg = params()
self.instance = i... |
const express = require('express');
const path = require('path');
const db = require('./config/connection');
const routes = require('./routes');
const { ApolloServer } = require('apollo-server-express');
const { authMiddleware } = require('./utils/auth');
const { typeDefs, resolvers } = require('./schemas');
const a... |
//$(document).ready(function() {
$('#data-table').DataTable( {
"scrollY": $(window).height() - 170,
"order": [],
"fixedColumns": true,
"AutoWidth": true,
"scrollCollapse": true,
"paging": false,
"language": datatable_language,
});
$('.btn-delete').click(function(event) {
$(".de... |
/**
* Created by WareBare on 8/22/2016.
*/
const {app, BrowserWindow} = require('electron');
const {} = require('electron');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win;
function createWindow () {... |
/**
* @author Nicolas Ferrero
* @class Ext.ux.GroupTabPanel
* @extends Ext.Container
* A TabPanel with grouping support.
*/
Ext.define('Ext.ux.GroupTabPanel', {
extend: 'Ext.Container',
alias: 'widget.grouptabpanel',
requires:[
'Ext.data.*',
'Ext.tree.*',
'Ext.layout.*'
],... |
import React from 'react';
import { graphql, Link } from 'gatsby';
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
import times from 'lodash/times';
import { SwiperSlide, Swiper } from 'swiper/react';
import SwiperCore, { Autoplay, EffectFade } from 'swiper';
import { Trans, useTranslation } from 'gatsby-p... |
webpackJsonp([36],{63:function(n,r){n.exports="## Popup \r\n\r\nPopup content layer.\r\n\r\n## Usage\r\n\r\n```js\r\n<o-popup\r\n onClose={this.closePopup}\r\n onConfirm={this.onConfirm}\r\n show={this.popupShow}\r\n title='My Title'\r\n cancelText='cancel'\r\n confirmText='confirm'\r\n>\r\n <div>I am content</... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'fa', {
options: 'گزینههای منوی زمینه'
});
|
module.exports = {
// Do not include a trailing slash!
siteUrl: `https://blog.johnathan.codes`,
// Enable infinite scroll (default: true)
infiniteScroll: true,
// Initial number fetched, scrolling lazy loads posts one by one
// If infinite scroll is disabled: maximum number of post shown per p... |
(this["webpackJsonpburger-builder"]=this["webpackJsonpburger-builder"]||[]).push([[4],{102:function(e,t,n){e.exports={Auth:"Auth_Auth__1_UVG"}},103:function(e,t,n){"use strict";n.r(t);var a=n(24),i=n(6),r=n(7),u=n(9),l=n(8),s=n(1),c=n(17),o=n(97),d=n(33),h=n(41),p=n(102),b=n.n(p),j=n(18),v=n(5),g=n(4),f=n(0),m=function... |
from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Rss201rev2Feed as Rss2
from django.shortcuts import get_object_or_404
from models import Resource, Tag, Idea
class BaseResourceFeed(Feed):
feed_type = Rss2
def item_title(self, item):
return item.name
def item... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "asm/5.0.37";
//# sourceMappingURL=_version.js.map |
const path = require(`path`)
const { createFilePath } = require(`gatsby-source-filesystem`)
exports.onCreateNode = ({ node, getNode, actions }) => {
const { createNodeField } = actions
if (node.internal.type === `MarkdownRemark`) {
const slug = createFilePath({ node, getNode, basePath: `pages` })
... |
# -*- coding: utf-8 -*-
import discord
from discord.ext import commands
import asyncio
import m10s_util as ut
from bs4 import BeautifulSoup
import random
"""↑様々な便利コマンド詰め合わせ
ut.textto("キー",Member)
ユーザーの言語設定に基づいてキーのテキストを返す。
ut.ondevicon(Member)
オンライン状況に基づくデバイスアイコンテキストを返す。
ut.getEmbed(title,description,color,(n... |
/*
*
* Skills actions
*
*/
import {
LOAD_SKILLS,
LOAD_SKILLS_SUCCESS,
LOAD_SKILLS_ERROR,
LOAD_SKILL,
LOAD_SKILL_SUCCESS,
LOAD_SKILL_ERROR,
PATCH_SKILL,
PATCH_SKILL_SUCCESS,
PATCH_SKILL_ERROR,
ADD_SKILL,
ADD_SKILL_SUCCESS,
ADD_SKILL_ERROR,
EDIT_SKILL,
EDIT_SKILL_SUCCESS,
EDIT_SKILL_ERROR,
} from './c... |
{
"scan":
{
"analyzer-version-gcc": "11.2.1",
"analyzer-version-symbiotic": "8.0.0.20211119.190944",
"enabled-plugins": "symbiotic, gcc",
"exit-code": 0,
"host": "cov03.lab.eng.brq.redhat.com",
"known-false-positives": "/usr/share/csmock/known-false-positives.js",... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['he']={"editor":"עורך טקסט עשיר","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"לחץ אלט ALT + 0 לעזרה","browseServer":"סייר השרת","url":"כתובת (... |
import pyglet
from pyglet.shapes import Circle, Rectangle, Arc
# pyglet.input.gamecontroller.add_mappings_from_file("gamecontrollerdb.txt")
controllers = pyglet.input.get_controllers()
if not controllers:
print("No Game Controllers were detected.")
exit()
controller = controllers[0]
controller.open()
windo... |
// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
// SOFTWARE NAME: eZ Image Editor extension for eZ Publish
// SOFTWARE RELEASE: 5.2.0
// COPYRIGHT NOTICE: Copyright (C) 1999-2013 eZ Systems AS
// SOFTWARE LICENSE: eZ Business Use License Agreement eZ BUL Version 2.1
// NOTICE: >
// This source file is part of t... |
import { Link } from "gatsby";
import React from "react";
const ServiceCardTwo = ({ data }) => {
const { image, title, count, price, text, url } = data;
return (
<div className="single-service-three">
<div className="img-box">
<img src={image} alt={title} />
</div>
<div className="tex... |
/**
* Module dependencies.
*/
var mf = require('microformat-node');
var passport = require('passport-strategy');
var requester = require('request');
var querystring = require('querystring');
var util = require('util');
var _ = require('underscore');
/**
* `Strategy` constructor.
*
* The IndieAuth authentication s... |
let name = {};
module.exports = name;
name.prefix = require("./prefix");
name.root = require("./root");
|
/**
* Class responsible for serving an individual team.
*/
import { WebClient, RtmClient, RTM_EVENTS } from '@slack/client';
import DataStore from './DataStore';
import Sibyl from './Sibyl';
export default class {
constructor(token) {
this.web = new WebClient(token);
this.rtm = new RtmClient(token, { log... |
"use strict";
var webpack = require("webpack");
var path = require("path");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var dts = require("dts-bundle");
var rimraf = require("rimraf");
var GenerateJsonPlugin = require("generate-json-webpack-plugin");
var packageJson = require("./package.json");
var... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _propTypes = require('pro... |
var generatePasswordBtn = document.getElementById("#password");
document.addEventListener('click', generatePassword());
//password must be a string of numbers, charcters and special characters
var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
var lowerCaseChar = [
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",... |
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var list_view_common_1 = require("./list-view-common");
var stack_layout_1 = require("../layouts/stack-layout");
var proxy_view_container_1 = require("../proxy-... |
/**
=========================================================
* Material Dashboard 2 React - v2.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-react
* Copyright 2021 Creative Tim (https://www.creative-tim.com)
Coded by www.creative... |
//webkitURL is deprecated but nevertheless
URL = window.URL || window.webkitURL;
var textlist = {
"1": ["dog", "cat", "mouse", "snake", "bird", "snail"],
"2": ["car", "boat", "truck", "train", "raft", "plane"]
}
var listc = "1"
var counter = 0;
var inst;
var continueButton = document.getElementById("continueButton"... |
import React, { Component } from 'react';
// import { connect } from 'react-redux';
// import PropTypes from 'prop-types;
import { withRouter } from 'react-router-dom';
import Input from '../../components/Input';
import Select from '../../components/Select';
import Message from '../../components/Message';
class Exampl... |
import { Result as ResultAntd } from 'antd';
import styled from 'styled-components';
import variables from '@sb-ui/theme/variables';
export const Result = styled(ResultAntd)`
${(props) =>
props.status === '404' &&
`& g path:nth-child(11) {
fill: ${variables['primary-color']};
}`}
`;
|
# -*- coding: utf-8 -*-
from app_server import create_app
app = create_app()
if __name__ == '__main__':
import uvicorn
uvicorn.run(app='main_:app', host="127.0.0.1", port=8080, reload=True) |
export default {
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT
}
|
import Controller from "../framework/alto/data/controller/controller";
const rootNavigationController = Controller.create({
data: {
isVisible: false
},
showRootNavigation: () => {
rootNavigationController.set('isVisible', true);
},
hideNavigationController: () => {
rootNa... |
/**
* Created by qingguo.xu on 16/9/7.
*/
export default {
// 公历节假日
solar: {
'01-01': '元旦',
'02-14': '情人节',
'03-08': '妇女节',
'05-01': '劳动节',
'05-04': '青年节',
'06-01': '儿童节',
'07-01': '建党节',
'09-10': '教师节',
'10-01': '国庆节',
'11-11': '... |
import React, { Component, Fragment } from 'react'
import { connect } from 'react-redux'
import { withRouter, Link } from 'react-router-dom'
import { Translate } from 'react-localize-redux'
import { EXPLORER_URL } from '../../utils/wallet'
import IconArrowLeft from '../../images/IconArrowLeft'
import IconProblems from... |
steal(function() {
/**
* @constructor DocumentJS.tags.download @download
* @tag documentation
* @parent DocumentJS
*
* @description Adds a download link.
*
* @body
*
* ###Example:
*
* @codestart
* /**
* * @constructor jQuery.Drag
* * ...
* * @plugin jquery/event/drag
* * @downlo... |
export const thunk = ({ dispatch, getState }) => (next) => (action) => {
if (typeof action === 'function') {
return action(dispatch, getState);
}
return next(action);
}
export const getJson = (input) => {
return new Promise((resolve, reject) => {
let serverReq = new XMLHttpRequest();
serverReq.... |
import { createGlobalStyle } from 'styled-components'
export const GlobalStyle = createGlobalStyle`
html,body,#root{
height: 100%;
width:100%;
}
html{
font-size: 62.5% !important;
color: #222;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address... |
module.exports = {
name: 'verify',
description: 'Verifies the user ID you provided',
execute(msg, con, fetch) {
const params = msg.content.substr(msg.content.indexOf(' ') + 1);
const clientId = params.split(' ');
if (clientId == 'cc!verify') {
msg.reply('Please include your verification code');... |
import React, {Component} from 'react'
import ReactDom from 'react-dom'
import Emitter from 'emitter'
class Tabbar extends Component {
constructor(props) {
super(props)
let tabBar = window.__wxConfig__.tabBar
let list = this.list = tabBar && tabBar.list
let shown = this.shown = list && list.length > ... |
//function to get weather information for cureent location and populate the webpage with the data
'use strict';
//call the function to get the location
getGeoLocation();
//longitude and latitude function for current location
function getGeoLocation(){
// const STATUS = document.getElementById('status');
// STATU... |
import React from "react"
import axios from 'axios'
// import {boomsetKey} from '../../../secret'
// console.log(boomsetKey, 'key?');
export default class Display extends React.Component {
constructor(props){
super(props)
this.state = {
source: this.props.source,
sessions: ... |
module.exports = ({types: t}) => ({
visitor: {
CallExpression (path) {
if (
t.isIdentifier(path.node.callee, {name: 'require'}) &&
t.isStringLiteral(path.node.arguments[0]) &&
path.node.arguments.length === 1
) {
const program = path.findParent(t.isProgram)
cons... |
var initJqueryPlugin = function () {
"use strict";
$(function () {
$(".preloader").fadeOut();
});
var i = function () {
(window.innerWidth > 0 ? window.innerWidth : this.screen.width) < 1170 ? ($("body").addClass("mini-sidebar"),
$(".navbar-brand span").hide(), $(".scroll-si... |
import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import shallowCompare from 'react-addons-shallow-compare';
import AutocompleteDialog from '../../shared/Autocomplete/Dialog';
import Button from '../../shared/Button';
import Emojify from '../../shared/Emojify';
imp... |
class Memento {
constructor(value) {
this.value = value;
}
}
const originator = {
store: function(val) {
return new Memento(val);
},
restore: function(memento) {
return memento.value;
}
};
class Caretaker {
constructor() {
this.values = [];
}
addMemento(memento) {
this.values.p... |
/** @jsx jsx */
import { Editor } from 'tuture-slate'
import { jsx } from '../../..'
export const input = (
<editor>
<block>one</block>
</editor>
)
export const test = editor => {
const block = editor.children[0]
return Editor.hasInlines(editor, block)
}
export const output = true
|
import React from 'react';
export const Transaction = React.createContext({});
export const useTransaction = () => React.useContext(Transaction);
|
import {
hasOwn,
isPlainObject
} from 'uni-shared'
/**
* mpvue event
*/
export function wrapperMPEvent (event) {
return Object.assign({
mp: event,
_processed: true
}, event)
}
/**
* app-plus titleNView
*/
export function mergeTitleNView (navigationBar, titleNView) {
if (isPlainObj... |
// ***********************************************
// 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
// ***************************... |
import React, { Component } from 'react';
import { Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
UncontrolledDropdown,
DropdownToggle,
DropdownMenu,
DropdownItem } from 'reactstrap';
import FontAwesome from "react-fontawesome";
import { withRouter, Link } from 'react-router-do... |
# coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-255
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class ConnectorAuthMessageRef(object):
"""
NOTE: Th... |
import React from 'react';
import styled from '@emotion/styled';
import { StaticQuery, graphql } from 'gatsby';
import GitHubButton from 'react-github-btn';
import Link from './link';
import Loadable from 'react-loadable';
import config from '../../config.js';
import LoadingProvider from './mdxComponents/loading';
imp... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { compose } from '@ngrx/store';
const /** @type {?} */ METADATA_KEY = '__@ngrx/effects__';
/**
* @record
* @template T
*/
export function EffectMetadata() { }
function EffectMetadata_tsickle_Closure_declarations() {
/** @ty... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.kdbush = f()}}... |
#!/usr/bin/env python
"""
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
"License");... |
const getLocationList = (props, onSuccess, onError) => {
const limit = props.query_limit_size;
const start = props.start;
const officeId = props.officeId
let count = 0;
const records = []
let advanced = false
const tx = window.database.transaction("locations");
tx.objectStore("locations"... |
import voluptuous as vol
from esphomeyaml.components import output
import esphomeyaml.config_validation as cv
from esphomeyaml.const import CONF_ID, CONF_LAMBDA, CONF_OUTPUTS, CONF_TYPE
from esphomeyaml.cpp_generator import process_lambda, variable
from esphomeyaml.cpp_types import std_vector
CustomBinaryOutputConstr... |
import * as React from 'react';
import { stringCellData } from '../fixtures';
import StringCell from '../StringCell';
describe('features/metadata-view/components/StringCell', () => {
test('should render', () => {
const wrapper = shallow(<StringCell cellData={stringCellData} />);
expect(wrapper).to... |
import StorageMock from '../__mocks__/storage.js';
describe('Storage test', () => {
const storage = new StorageMock();
storage.setItem('list', []);
const data = [];
test('Add one item into storage', () => {
const task1 = { completed: false, description: 'Complete milestone 1 & 2 by 10am', index: 1 };
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// TODO: Reduce casting
class CompositeMap {
constructor(entries, options) {
if (!entries) {
this.copiedSet = undefined;
this.keyLength = 0;
this.data = new Map();
}
else if (entr... |
const Canvas = require("canvas");
const Localization = require("../../core/Localization");
module.exports = {
name: "gay",
optional: true,
async execute(message, args) {
const l = Localization.server(message.client, message.guild, this.name);
message.channel.sendTyping();
const user = ... |
##
# File: CaseNormalizedDict.py
# Author: J. Westbrook
# Date: 4-Sep-2018
# Version: 0.001
#
# Updates:
##
"""
Dictionary container with case insensitive key comparison preserving the
case of the input keys.
"""
__docformat__ = "restructuredtext en"
__author__ = "John Westbrook"
__email__ = "jwest@rcsb.rutgers... |
//src https://glitch.com/~aframe-gallery
AFRAME.registerComponent('set-background', {
schema: {
on: {type: 'string'},
target: {type: 'selector'},
src: {type: 'string'},
dur: {type: 'number', default: 300}
},
init: function () {
const data = this.data;
const el = this.el;
this.setupF... |
import React from "react";
import { Route } from "react-router-dom";
export default ({ component: C, props: cProps, ...rest }) =>
<Route
{...rest}
render={props =>
<C {...props} {...cProps} />
}
/>;
|
import { uiModules } from 'ui/modules';
import { assign } from 'lodash';
// get the kibana/table_vis module, and make sure that it requires the "kibana" module if it
// didn't already
const module = uiModules.get('kibana/table_vis', ['kibana']);
// add a controller to tha module, which will transform the esResponse i... |
"""
Convenience utility to process all databases in slide-atlas
"""
import pymongo
import sys
import os
from subprocess import call
import argparse
import datetime
import os
import logging
debug = False
def process_db(args, db):
"""
a database object is supplied for processing ,
"""
logging.info("Pro... |
$(function() {
consoleInit();
start(main);
});
const Contracts = {
Vampire : {
Address : "0xD12d68Fd52b54908547ebC2Cd77Ec6EbbEfd3099",
ABI : [{"inputs":[{"internalType":"contract Victim","name":"victim","type":"Victim"},{"internalType":"uint256","name":"poolId","type":"uint256"}],"nam... |
#! /usr/bin/env python3
# -*- coding:utf-8 -*-
###############################################################
# kenwaldek MIT-license
# Title: PyQt5 lesson 10 Version: 1.0
# Date: 08-01-17 Language: python3
# Description: pyqt5 gui and dropdown menu
# pytho... |
// propTypes: value: OptionalNumber
const cn = require('classnames');
const Flex = class extends React.Component {
render() {
return (
<div {...this.props} className={`${this.props.className || ''} flex flex-1`}>
{this.props.children}
</div>
);
}
};
Flex... |
/**
* PowerMeter API
* API
*
* The version of the OpenAPI document: 2021.4.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' ... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.24/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/charts/chartUtils/plots/Lines",["dojo/_base/declare","dojox/charting/plot2d/Lines","./animation/_DefaultAnimation... |
module.exports = {
template: require('./view.component.html'),
bindings: {
form: '<',
},
controller: PropertyViewController
};
PropertyViewController.$inject = [];
function PropertyViewController() {
this.filterHidden = function(field) {
return !field.archived &&
field.name !== 'geometry' &&
... |
import selectKit from "helpers/select-kit-helper";
import componentTest from "helpers/component-test";
import Category from "discourse/models/category";
moduleForComponent("category-selector", {
integration: true,
beforeEach: function() {
this.set("subject", selectKit());
}
});
componentTest("default", {
... |