text stringlengths 3 1.05M |
|---|
// @flow weak
const path = require('path');
const webpack = require('webpack');
const packageJson = require('./package.json');
const packageJsonSrc = require('../package.json');
const excludedDeps = [
'lodash',
'recompose',
'object-assign',
'material-ui-icons',
'babel-runtime',
'autosuggest-highlight',
];... |
from abc import abstractmethod
import copy
import re
from sqlalchemy import Float, Integer, text, exists, select, or_
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.sql import column
from sqlalchemy.sql.operators import is_
from dart.context.locator import injectable
from dart.model.exception import... |
// Deal the nodes that needn't transfrom to custom component
export default function dealWithLeafAndSimple(childNodes, onChildNodesUpdate) {
if (childNodes && childNodes.length) {
childNodes = childNodes.map(originChildNode => {
const childNode = Object.assign({}, originChildNode);
... |
# -*- coding: utf-8 -*-
import os
import re
import sys
def abort(msg):
print('Error!: {0}'.format(msg))
exit(1)
def get_filename(path):
return os.path.basename(path)
def get_basename(path):
return os.path.splitext(get_filename(path))[0]
def get_extension(path):
return os.path.splitext(get_filen... |
class Game {
constructor() {
this.resetTitle = createElement("h2");
this.resetButton = createButton("");
this.leadeboardTitle = createElement("h2");
this.leader1 = createElement("h2");
this.leader2 = createElement("h2");
this.playerMoving = false;
this.leftKeyActive = false;
this.bl... |
// @flow
import React from "react"
import { assert } from "chai"
import { shallow } from "enzyme"
import TopAppBar from "./TopAppBar"
import AnonymousMenu from "./AnonymousMenu"
import UserMenu from "./UserMenu"
import { routes } from "../lib/urls"
import { makeUser, makeAnonymousUser } from "../factories/user"
desc... |
import path from 'path';
import webpack from 'webpack';
import { createFsFromVolume, Volume } from 'memfs';
export default (fixture, loaderOptions = {}, config = {}) => {
const fullConfig = {
mode: 'development',
devtool: config.devtool || false,
context: path.resolve(__dirname, '../fixtures'),
entr... |
# Knjiznica
import threading, re, time, os
from time import strftime
from BeautifulSoup import BeautifulSoup
import RPi.GPIO as GPIO
# GPIO Pini
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN)
GPIO.setup(23, GPIO.IN)
# Pini luck
GPIO.setup(24, GPIO.OUT)
GPIO.setup(25, GPIO.OUT)
# Razlaga
count1 = 0
p... |
import os
import math
import json
import time
import requests
import lxml.html
from datetime import datetime
class CraigsAPI:
def __init__(self, path_to_categories):
self.num_results_pp = 120
self.domain = 'https://toronto.craigslist.org/'
self.login_url = 'https://accounts.craigslist.org/l... |
import React from "react";
import styled from "styled-components/macro";
import { Button, LoaderButton, Select, Text } from "theme";
import WizardStepLayout from "./WizardStepLayout";
import { translations } from "i18n";
import { connectDeviceWizardActions } from "apps/admin/store/actions";
import { connect } from "rea... |
import {assign, constant} from "d3plus-common";
import {default as Plot} from "./Plot";
/**
@class BoxWhisker
@extends Plot
@desc Creates a simple box and whisker based on an array of data.
@example <caption>the equivalent of calling:</caption>
new d3plus.Plot()
.discrete("x")
.shape("Box")
*/
exp... |
import React from 'react';
import PropTypes from 'prop-types';
import SvgIcon from '../SvgIcon';
const GearIcon = ({ setRef, ...rest }) => (
<SvgIcon {...rest} ref={setRef}>
{/* <path d="M19.43,12.97L21.54,14.63C21.73,14.78 21.78,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.03 19.05,18.95L16.56,17.9... |
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# https://developers.google.com/protocol-buffers/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redi... |
/*!
* Materialize v1.0.0 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getProt... |
import styled from 'styled-components/native';
import logo from 'assets/logo.png';
export const Container = styled.View`
padding: 20px;
flex: 1;
justify-content: center;
`;
export const Logo = styled.Image.attrs({
source: logo,
resizeMode: 'contain',
})`
width: 200px;
height: 200px;
align-self: center... |
const terser = require('rollup-plugin-terser').terser;
const pkg = require('./package.json');
const banner = `/*!
* ${pkg.name} v${pkg.version}
* ${pkg.homepage}
* (c) ${new Date().getFullYear()} Chart.js Contributors
* Released under the ${pkg.license} license
*/`;
const input = 'src/index.js';
module.exports ... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © Her Majesty the Queen in Right of Canada, as represented
# by the Minister of Statistics Canada, 2020.
#
# 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 ... |
import unittest
class TestHello(unittest.TestCase):
def test_hello(self):
self.assertEqual("hello","hello")
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
export { BsCard } from './bs-card';
export { BsCardText } from './bs-card-text';
export { BsCardBody } from './bs-card-body';
export { BsCardTitle } from './bs-card-title';
export { BsCardOverlay } from './bs-card-overlay';
export { BsCardSubtitle } from './bs-card-subtitle';
export { BsCardLinks } from './bs-card-lin... |
/**
* @license
* Copyright 2018 Brigham Young University
*
* 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
*
* Un... |
import take1C from "./take1C.js";
import curry from "../curry.js";
import rejectLazy from "../Lazy/rejectLazy.js";
import go1 from "../go1.js";
export default curry(function everyC(f, iter) {
return go1(take1C(rejectLazy(f, iter)), ({length}) => length == 0);
});; |
/**
* Copyright 2015 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... |
var elections = require('./elections');
var early_vote_sites = require('./early-vote-sites');
var schedules = require('./schedules');
var assignments = require('./assignments');
var auth = require('../authentication/services.js');
var file_generation = require('./file-generation');
function registerEarlyVoteServices(a... |
const { expect } = require("chai");
const extractTypescript = require("./extract-typescript.utl");
describe("ast-extractors/extract-typescript - dynamic imports", () => {
it("correctly detects a dynamic import statement", () => {
expect(
extractTypescript(
"import('judeljo').then(judeljo => { judel... |
/* eslint-env jest */
const { mockClient, fetchMock } = require('../mocks/client.mock')
const Module = require('../../src/endpoints/masteries')
describe('endpoints > masteries', () => {
let endpoint
beforeEach(() => {
endpoint = new Module(mockClient)
fetchMock.reset()
})
it('test /v2/masteries', asyn... |
import unittest
from gbakeboy import Cpu
from gbakeboy import Memory
from gbakeboy import hex2int as h2i
from gbakeboy import print_bin_8
class test_cpu(unittest.TestCase):
def setUp(self):
mem = Memory()
self.cpu = Cpu(mem)
def clear_registers(self):
cpu = self.cpu
cpu.set_... |
Ext.define('Ext.data.proxy.Functions', {
extend: 'Ext.data.proxy.Direct',
alias: 'proxy.functions',
extractResponseData: function(event) {
var me = this,
rootProperty = me.getReader().getRootProperty();
if (!rootProperty) {
return event.result
} else {
return event.result[rootPrope... |
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-canvas-canvastext-audio-shiv-cssclasses-load
*/
;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).... |
/******************************************
* My Login
*
* Bootstrap 4 Login Page
*
* @author Muhamad Nauval Azhar
* @uri https://nauval.in
* @copyright Copyright (c) 2018 Muhamad Nauval Azhar
* @license My Login is licensed under the MIT license.
* @github https://github.com... |
defineClass('Consoloid.Ui.List.Factory.Collapsing', 'Consoloid.Base.Object',
{
__constructor: function(options)
{
this.__base($.extend({
templateId: 'Consoloid-Ui-List-Factory-CollapsingElement'
}, options));
this.__requireParameters();
},
__requireParameters: function()
... |
const key = head;
const value = tail;
const insert_dict = (k,v) => dict => pair(pair(k,v),dict);
function build_dict(list){
return is_null(list) ? null : insert_dict(head(list),build_dict(tail(list)));
}
const lookup = dict => k => !is_null(dict) && (key(head(dict))) === k ? value(head(dict)) : lookup(tail(dict),k)... |
var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#000000" fill-opacity="1" st... |
import{getContext as C}from"svelte";import{writable as F}from"svelte/store";function p(e,a=!1){return e=e.slice(e.startsWith("/#")?2:0,e.endsWith("/*")?-2:void 0),e.startsWith("/")||(e="/"+e),e==="/"&&(e=""),a&&!e.endsWith("/")&&(e+="/"),e}function d(e,a){e=p(e,!0),a=p(a,!0);let r=[],n={},t=!0,s=e.split("/").map(o=>o.s... |
import React from 'react';
import onClickOutside from 'react-onclickoutside';
import {getDisplayName} from '../utils/';
import {BACKSPACE} from '../constants/keyCode';
/**
* Higher-order component that encapsulates Token behaviors, allowing them to
* be easily re-used.
*/
const tokenContainer = (Component) => {
... |
export {libraryReducer} from './library'
export {playbackReducer} from './playback'
export {settingsReducer} from './settings'
export {tracklistReducer} from './tracklist'
|
/*
* @Author: czy0729
* @Date: 2021-01-21 15:55:02
* @Last Modified by: czy0729
* @Last Modified time: 2021-11-14 16:19:10
*/
import React from 'react'
import { Text } from '@components'
import { _ } from '@stores'
import { obc } from '@utils/decorators'
import { HTMLDecode } from '@utils/html'
import { MODEL_SUBJ... |
import pygame as pg
import pygame_ai as pai
import utilities.common_functions
# world settings
TILE_DIMENSIONS = 7
TILESIZE = 128
FOVSIZE = TILESIZE*1.5
TOTAL_SIZE = (TILESIZE*TILE_DIMENSIONS, TILESIZE*TILE_DIMENSIONS)
FOG_OF_WAR = False
# screen settings
SCREEN_SIZE = TOTAL_SIZE
FPS = 60
FONT_SIZE ... |
// Given a N by M matrix of numbers,
// print out the matrix in a clockwise spiral.
// For example, given the following matrix:
// [[1, 2, 3, 4, 5],
// [6, 7, 8, 9, 10],
// [11, 12, 13, 14, 15],
// [16, 17, 18, 19, 20]]
// You should print out the following:
// 1
// 2
// 3
// 4
// 5
// 10
// 15
// 20
// ... |
const Discord = require('discord.js')
const Confax = require('../bot.js')
Confax.registerCommand('invite', 'default', (message) => {
return 'Invite Link: https://discordapp.com/oauth2/authorize?client_id=319545839951544320&permissions=519174&scope=bot'
}, ['invitelink'], 'Get invite link to invite Confax to your ser... |
def isValid(s: str) -> bool:
stack = []
mapping = {
")" : "(",
"]" : "[",
"}" : "{"
}
for i in s:
if i in mapping:
top_element = stack.pop() if stack else ""
if mapping[i] != top_element:
... |
import numpy as np # モジュールnumpyをnpという名前で読み込み
import csv # モジュールcsvの読み込み
import matplotlib.pyplot as plt # モジュールmatplotlibのpyplot関数をplt
# という名前で読み込み
reader = csv.reader(open('out.csv', 'r')) # 先ほど出力したoutput.csvの読み込み
f_history = [] # 目的関数の履歴
x1_history, x2_history = [], [] # 設計変数の履歴
for row in reader: # 1行目はラベル行な... |
define(
({
commonCore: {
common: {
add: "추가",
edit: "편집",
save: "저장",
next: "다음",
cancel: "취소",
back: "뒤로",
apply: "적용",
close: "닫기",
open: "열기",
start: "시작",
loading: "불러오는 중",
disabledAdmin: "이 기능은 관리자가 사용하지 않도록 설정했습니다.",
width: "너비",
height: "높이"
},
... |
/* eslint-disable */
const path = require('path');
const fs = require('fs');
let ROOT = process.env.PWD;
if (!ROOT) {
ROOT = process.cwd();
}
const config = {
// Your website's name, used for favicon meta tags
site_name: 'Winterweek 2020',
// Your website's description, used for favicon meta tags
site_des... |
#
# 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"); you may not us... |
var gulp = require("gulp");
var htmlone = require("gulp-htmlone");
var fs = require("fs");
var path = require("path");
var sftp = require('gulp-sftp');
gulp.task('build', function() {
(function () {
var baseCata = "weixin/view/";
fs.readdir(baseCata,function(err,catas){
catas.forEach(f... |
$(function(){
initDatatable($('#breweries-list'));
});
/**
* @param table
*/
function initDatatable(table)
{
table.SearchableDatatable({
columnDefs: [
{"targets": 3, "orderable": false}
],
responsive: true,
serverSide: true,
ajax: {
url: table.d... |
import rootReducers from './reducers';
import { createStore } from 'redux';
const storeRefactor = createStore(rootReducers);
export default storeRefactor;
|
let messages = [];
let messageBetty = document.getElementById("bettyString");
let row = document.getElementById("row");
let messageContainer = document.getElementById("contest");
let user;
messages[0] = "Quien anda ahi?";
messages[1] = " hace tanto que no se de vos! como andas mamita?";
messages[2] = "Y si.. yo tmbien... |
var searchData=
[
['animation',['Animation',['../namespace_menu_stack_1_1_animation.html',1,'MenuStack']]],
['editor',['Editor',['../namespace_menu_stack_1_1_editor.html',1,'MenuStack']]],
['menustack',['MenuStack',['../namespace_menu_stack.html',1,'']]],
['navigation',['Navigation',['../namespace_menu_stack_1_... |
import argparse
import logging
from xml_to_sheet.gspread_client import get_sheet
VALID_ROLES = ['reader', 'writer']
parser = argparse.ArgumentParser(description='Create and/or share a worksheet.')
parser.add_argument('--attempt_create', action='store_true', help='If set attempt to create sheet')
parser.add_argument... |
/*
* gulp-iconizer
* Licensed under the MIT license.
*/
'use strict';
const fs = require('fs');
const through = require('through2');
const gutil = require('gulp-util');
const PluginError = gutil.PluginError;
function icon(name, opts) {
opts = opts || {};
let size = opts.size ? `svg... |
export default { ra: { width: 1792, height: 1792, paths: [{ d: 'M19 874q8-217 116-406t305-318h5q0 1-1 3-8 8-28 33.5t-52 76.5-60 110.5-44.5 135.5-14 150.5 39 157.5 108.5 154q50 50 102 69.5t90.5 11.5 69.5-23.5 47-32.5l16-16q39-51 53-116.5t6.5-122.5-21-107-26.5-80l-14-29q-10-25-30.5-49.5t-43-41-43.5-29.5-35-19l-13-6 104-1... |
//connects to tee and offers fancy services
var g_port = null;
//Connects to an application through the messaging service
//This requires the CA to be registered with chrome
function tee_connect(hostname) {
g_port = chrome.runtime.connectNative(hostname);
g_port.onDisconnect.addListener(onDisconnected);
g_port.on... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... |
import React, { useEffect, Fragment } from 'react'
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Spinner from '../layout/Spinner';
import { getCurrentProfile } from '../../actions/profile';
const Dashboard = ({ getCurrentProfile, auth: { user... |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix)
Copyright (C) 2018 Caphm (original implementation module)
Playback tracking and coordination of several actions during playback
SPDX-License-Identifier: MIT
See LICENSES/MIT.md for more information.
"""
import j... |
var searchData=
[
['_7eapp_1082',['~App',['../class_lite_f_x_1_1_app.html#ab3d41231fffafc1a061dc0c1892a1a3e',1,'LiteFX::App']]],
['_7eappversion_1083',['~AppVersion',['../class_lite_f_x_1_1_app_version.html#a7e12e5920d9edd6dcbb1ce0f7ee98ffb',1,'LiteFX::AppVersion']]],
['_7ebufferattribute_1084',['~BufferAttribute... |
# Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... |
import { createApp } from "vue";
import app from "./app.vue";
// import Greeting from "./components/Greeting";
const vm = createApp(app);
// vm.component("Greeting", Greeting);
vm.mount("#app");
|
# urlnorm.py - Normalize URLs
# Copyright (C) 2010 Kurt McKee <contactme@kurtmckee.org>
#
# This program 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, either version 3 of the License, or
# (at your o... |
"""FastAPI Router Contoller, FastAPI utility to allow Controller Class usage"""
from fastapi_router_controller.lib.controller import Controller as Controller
from fastapi_router_controller.lib.controller import OPEN_API_TAGS as ControllersTags
from fastapi_router_controller.lib.controller_loader import (
Controlle... |
const socket = io();
// Elementes
const $messageForm = document.querySelector('#message-form');
const $messageFormInput = $messageForm.querySelector('input');
const $messageFormButton = $messageForm.querySelector('button');
const $sendLocationButton = document.querySelector('#send-location');
const $messages = documen... |
import { createStore } from 'vuex'
import c from '@/constants'
import { saveItem, getItem } from '@/plugins/localStorageProvider'
const state = {
api_credits: 0,
API_USAGE_ERRORS: '',
coin_code: '',
currency: '',
number_of_periods: 0,
cryptos: []
}
const getters = {
[c.VUEX.GETTERS.API_DAILY_USAGE](stat... |
import React from "react";
import { CollapsibleMenu, Section } from "./Menu";
import Ascensions from "./listings/Ascensions";
import Preferences from "./listings/Preferences";
import About from "./listings/About";
import Credits from "./listings/Credits";
import "./SemiCookie.scss";
export default function SemiCookieU... |
/**
* angularjs.fileUploadModel
* AngularJS directive used for picking up file(s) on input of type "file" to be made available in the $scope and assigned to the binded model
* @version v1.0.0 - 2019-08-02
* @link https://github.com/omostan/fileUploadModel.git
* @author Stanley Omoregie <stan@omotech.com> (http://w... |
/**
*
* HAAR.js Feature Detection Library based on Viola-Jones Haar Detection algorithm
* port of jViolaJones for Java (http://code.google.com/p/jviolajones/) to JavaScript and Node
*
* https://github.com/foo123/HAAR.js
* @version: @@VERSION@@
*
* Supports parallel "map-reduce" computation both in browser and node usi... |
(function() {
'use strict';
angular
.module('blocks.authInterceptor')
.factory('authInterceptor', authInterceptor);
/* @ngInject */
function authInterceptor(authToken) {
return {
request: function(config) {
var token = authToken.getToken();
... |
const en = {
common: {
or: 'or',
cancel: 'Cancel',
reset: 'Reset',
save: 'Save',
search: 'Search',
edit: 'Edit',
remove: 'Remove',
new: 'New',
export: 'Export to Excel',
noDataToExport: 'No data to export',
import: 'Import',
discard: 'Discard',
yes: 'Yes',
no: '... |
const solid_microphone_slash = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 ... |
#! /usr/bin/env python
import os, sys, optparse, math
copyargs = sys.argv[:]
for i in range(len(copyargs)):
if copyargs[i] == "":
copyargs[i] = "\"\""
if copyargs[i].find(" ") != -1:
copyargs[i] = "\"%s\"" % copyargs[i]
commandline = " ".join(copyargs)
prog = sys.argv[0]
usage = """./%(prog)... |
/**
* Copyright 2021 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
from flask import Flask, Request, request, json
app = Flask(__name__)
class Person:
def __init__(self):
self.firstName = ""
self.lastName = ""
self.age = 0
def load(self, json):
jsonAttr = list(json.keys())
for attr in vars(self):
if attr in jsonAttr... |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
This code uses a user-defined database, image directory, image file
extension, and darkframe to loop through the Tetra database and generate
inputs for the opencv camera calibration routine
"""
################################
#LOAD LIBRARIES
############################... |
const DIG = require("discord-image-generation");
const Discord = require("discord.js");
module.exports = {
config: {
name: "rip",
description: "RIP!",
aliases: ["rip"],
usage: "",
accessableby: ""
},
run: async (client, message, args) => {
// const m = client.findMember(message, args, t... |
import React, { Component } from "react";
class CartMenu extends Component {
constructor(porps){
super()
}
render(){
return(
<div className="col-lg-3 col-12 cart-right-body">
<div id="free-ship-rater" className="row">
<div className="tittle-block col-12">
<... |
from __future__ import absolute_import, unicode_literals
######################
# MEZZANINE SETTINGS #
######################
# The following settings are already defined with default values in
# the ``defaults.py`` module within each of Mezzanine's apps, but are
# common enough to be put here, commented out, for con... |
asyncTest('isPlainObject', function () {
expect(15);
var iframe;
// The use case that we want to match
ok(can.isPlainObject({}), '{}');
// Not objects shouldn't be matched
ok(!can.isPlainObject(''), 'string');
ok(!can.isPlainObject(0) && !can.isPlainObject(1), 'number');
ok(!can.isPlainObject(true) && !can.isPl... |
const { dbModify } = require("../../utils/db");
const { baseConfig } = require("../../utils/checks");
const { serverLog } = require("../../utils/logs");
const { fetchUser } = require("../../utils/misc.js");
const { string } = require("../../utils/strings");
module.exports = {
controls: {
name: "unblock",
permissio... |
# -*- coding: utf-8 -*-
"""Identity Services Engine getAllSXPLocalBindings data model.
Copyright (c) 2021 Cisco and/or its affiliates.
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 rest... |
import warnings
from collections import OrderedDict
from pathlib import Path
from pkg_resources import EntryPoint
from . import ICompiler as ICompilerModule
from . import defaults, utils
from .KaitaiCompilerException import KaitaiCompilerException
defaultPriority = 0
class BackendDescriptor:
__slots__ = ("entryPoi... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[779],{CZrw:function(e,a,c){"use strict";c.r(a);var t=c("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C3... |
// @flow
export { default } from './Overlay.web';
|
webpackJsonp([0],[function(e,t,r){"use strict";r(1);var o=r(2),n=r(24);o.platformBrowserDynamic().bootstrapModule(n.AppModule)},function(e,t){e.exports="// removed by extract-text-webpack-plugin"},,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,s=arguments.length,... |
/**
* @file main
* @author imcuttle
* @date 2018/4/4
*/
// const injectInfoPlugin = require('../src')
describe('injectInfoPlugin', function () {
it.skip('should spec', function () {})
})
|
# 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... |
export default {
lang: 'de',
dir: 'ltr',
common: {
ok: 'OK',
cancel: 'Abbrechen',
key_backspace: 'Rücktaste',
key_del: 'Löschen',
key_down: 'nach unten',
key_up: 'nach oben',
more_opts: 'Mehr Optionen',
url: 'URL',
width: 'Breite',
height: 'Höhe'
},
misc: {
powered_... |
$(document).ready(function(){
$("#guardar").click(function(validar){
var buscar=$("#palabra").val();
var nombres=$("#nombres").val();
var apellidos=$("#apellidos").val();
var foto=$("#imagen").val();
if(buscar.length=="" && nombres.lengt... |
import React, { useState } from "react"
import XIcon from "../../shared/XIcon"
const GlobalNetworkSection = () => {
const countries = [
{
class: "argentina",
title: "Argentina",
items: ["Travel", "Experiences", "Innovation"],
},
{
class: "braz... |
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import Collection from '@ckeditor/ckeditor5-utils/src/collection';
import { addListToDropdown, createDropdown ,addToolbarToDropdown} from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
import uploadEditing from './uploadEditing.js' //引入命令
import FileDialogButtonV... |
//// [genericCallWithObjectTypeArgsAndConstraints5.ts]
// Generic call with constraints infering type parameter from object member properties
class C {
x: string;
}
class D {
x: string;
y: string;
}
function foo<T, U extends T>(t: T, t2: U) {
return (x: T) => t2;
}
var c: C;
var d: D;
var r2 = foo(... |
// ==UserScript==
// @namespace https://tampermonkey.myso.kr/
// @exclude *
// ==UserLibrary==
// @name prototype.collections
// @description prototype.collections 스크립트
// @copyright 2021, myso (https://tampermonkey.myso.kr)
// @license Apache-2.0
// @version 1.0.8
// ==/UserScrip... |
suite('controllers/controls', function() {
/*jshint maxlen:false*/
'use strict';
suiteSetup(function(done) {
var self = this;
requirejs([
'app',
'lib/camera/camera',
'controllers/controls',
'views/controls',
'lib/settings',
'lib/setting'
], function(
App, Camer... |
const { Probot } = require('probot')
const labelOfTheDay = require('../lib/label-of-the-day')
describe('scheduled-merge', () => {
let probot, probotScheduler, app, api, label
beforeEach(() => {
api = nock('https://api.github.com')
probot = new Probot({
githubToken: 'test'
})
label = labelOfT... |
# Copyright 2016 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 required by applicable law or ag... |
import PropTypes from 'prop-types';
import React from 'react';
import muiThemeable from 'material-ui/styles/muiThemeable';
import CartIcon from 'material-ui/svg-icons/action/shopping-cart';
import EuroIcon from 'material-ui/svg-icons/action/euro-symbol';
import DateIcon from 'material-ui/svg-icons/action/date-range';
i... |
const {Router} = require('express');
const CarModel = require('../persistence/car-models');
const router = new Router();
router.post('/', async (request, response) => {
try {
const {model, color, production_year} = request.body;
if (!model || !color || !production_year) {
return response
.stat... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
from __future__ import annotations
import math
import wx
import wx.grid as gridlib
import wx.lib.scrolledpanel as scroll_pan
from dials.array_family import flex
from dials.viewer.from_flex_to_wxbitmap import wxbitmap_convert
class grid_frame(wx.Frame):
def __init__(self, parent, title):
super().__init_... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The production EmptyStatement ; is evaluated as follows Return (normal, empty, empty)
*
* @path ch12/12.3/S12.3_A1.js
* @description Using EmptyStatement ;
*/
;;;;;;;;;;;;;;;;... |