text stringlengths 3 1.05M |
|---|
import React from "react";
import { ShowArchive } from "./ShowArchive";
import { ColorList } from "./ColorList";
import { useColorToolStoreContext } from "../contexts/colorToolStoreContext";
export function ColorListContainer() {
const {
colors,
editColorId,
showArchive,
editColor,
archiveColor... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://projecteuler.info/problem=10
# 142913828922
from lib import get_primes
if __name__ == '__main__':
primes = get_primes(2000000)
res = 0
for el in primes:
res += el
print(res)
|
const cgss = require('..')
const { describe, it } = require('mocha')
const assert = require('assert')
const path = require('path')
const fs = require('fs')
const LEFT = '\x1b[666D'
const dler = new cgss.Downloader()
const { Writable } = require('stream')
const { createHash } = require('crypto')
class HashResult exte... |
"""
WSGI config for myblog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
from __future__ import absolute_import, unicode_literals
import os
from django.core.wsgi import... |
var Sn = [
['(å¹³å)寿åœã®åäž','ç¥èœã®é£èºçåäž','è¥è¿ã广','æãæ¯ã®æžå°','é¢ç¯çã®äºé²','èŠåã®æ¹å'],
['ã€ã¢ãª','ãã³ã®ã³','ãµãœãª','ã¢ãããŒãã«','æµ·é³¥','ããºãã€ã«ã«','ãã°','銬','ã¶ãªã¬ã','ãã¡ã¯ãž','ã¶ããŠã¯ãžã©','ã³ã¢ãªã¶ã¡','ãã€ãªãŠã€ã«','ãããã§ã¯ã°ã','ãã«ãŒãã³ãŠã¢ãª','ã«ãšã«','ãã€','ã«ã®ã ã·','ããããºã','ãŸãŠãªã ã·','ç·è«','ã¿ãã ã·','ããªã³'],
['ããåŸé ã«','ããçŸåœ¢ã«','è¯ã','空è
¹ã«ãªãã«ãã','ããå®çšçã«','ãããããã'],
['ããæ¢ããããã','ãããã³ãªãŒ','ã«ãã... |
const buildCount = (i) => {
let count = i;
const displayCount = () => {
console.log(count++);
};
return displayCount;
}
const myCount = buildCount(3);
myCount();
myCount();
myCount();
const myOtherCount = buildCount(10);
myOtherCount();
myOtherCount(); |
import Collision from '../game/util/Collision'
import Line from '../game/geometry/Line'
import { GetCanvas } from '../game/util/Helper';
import Player from '../game/player/Player';
let lines = []Â
let main = null
let player = new Player(300, 100)
let key = {
left: false,
right: false,
space: false
}
export ... |
#!/usr/bin/env node
var catw = require('../');
var fs = require('fs');
catw('*.txt', function (stream) {
var w = stream.pipe(fs.createWriteStream('/tmp/bundle.txt'));
w.on('close', function () { console.log('wrote to /tmp/bundle.txt') });
});
|
// In this file you can instantiate your views
// First instantiate your wrapping views, then you can instantiate your trial views
/** Wrapping views below
* Obligatory properties
* trials: int - the number of trials this view will appear
* name: string
*Optional properties
* buttonText: string - the t... |
import getMyDirname from '../lib/helpers/my-dirname.js'
import { join } from 'path'
const __dirname = getMyDirname(import.meta)
// The browser paths
const libBrowserPath = join(__dirname, '../lib/browser/')
export const distBrowserPath = join(__dirname, '../dist/browser/')
// The components path
export const libCom... |
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "space-evenly",
alignItems: "center"
}
});
export default styles;
|
/**
* Copyright (c) 2018-present, Raphael Amorim.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
// Defaults for Render
export const defaultViewSize: number = 200; // 200x200
// ReactApe Internal Constants
export const ... |
lives = 12;
wins = 0;
losses = 0;
lives = 12;
guessedLetters = [];
var answerArray = ['advice', 'aflame', 'cooler', 'convex', 'devout', 'falcon', 'gazers', 'gloomy', 'insure', 'insult', 'joyful', 'lizard', 'lentil', 'mumble', 'normal'];
var hiddenArray = [];
var openArray = [];
var playGame = confirm('Wanna Guess My Wo... |
import 'babel-polyfill'
import angular from 'angular'
import angularUiRouter from 'angular-ui-router'
import topStories from './top_stories'
const app = angular.module('app', [
angularUiRouter,
topStories
])
import storeProvide from './store.service.js'
storeProvide(app)
import routerConfigProvide from './ro... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const expr_eval_1 = require("expr-eval");
const path_1 = __importDefault(require("path"));
const parser ... |
const path = require("path");
const fs = require("fs");
const image_path = name => path.resolve(__dirname, "../../assets", name);
const new_image_path = name => path.resolve(__dirname, "../../db/users/", name);
const moveFile = (oldPath, newPathFolder, fileName) => {
if (!fs.existsSync(newPathFolder)) {
fs.mkdi... |
const vscode = require('vscode');
const mochaItem = require('./mochaItem');
const runner = require('./runner');
const path = require('path');
const forIn = require('lodash.forin');
const isObject = require('lodash.isobject');
const assign = require('lodash.assign');
const mochaShim = require('./mochashim');
const esc... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M16 2h-4C8.69 2 6 4.69 6 8v4H3c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-2h4v2c0 .55.45 1 1 1s1-.45 1-1V8c0-3.31-2.69-6-6-6zm4 15h-4v-4c0-.55-.45-1-1-1H8V8c0-2.21 1.79... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// This icon file is generated by build/generate.ts
// tslint:disable
/** @type {?} */
export var ReadFill = {
name: 'read',
theme: 'fill',
icon: '<s... |
from typing import List, Tuple, Dict, Optional
import torch
import torchvision
from torch import nn, Tensor
from torchvision.transforms import functional as F
from torchvision.transforms import transforms as T
def _flip_coco_person_keypoints(kps, width):
flip_inds = [0, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14,... |
module.exports = {"name":"--pf-c-accordion__expanded-content--m-expanded--BorderLeftColor","value":"#06c","var":"var(--pf-c-accordion__expanded-content--m-expanded--BorderLeftColor)"}
|
// flow-typed signature: 33e197596c0cdcc33eb9cbdb6ed52a74
// flow-typed version: <<STUB>>/babel-plugin-dev-expression_v^0.2.1/flow_v0.85.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-dev-expression'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourag... |
import mmcv
import numpy as np
import torch
from PIL import Image, ImageEnhance
__all__ = [
'ImageTransform', 'BboxTransform', 'MaskTransform', 'SegMapTransform',
'Numpy2Tensor'
]
class RandomColor(object):
def __init__(self, var=0.4):
self.var = var
def __call__(self, image):
alpha ... |
/*
* WRI Restoration Marketplace API
* ### About This API serves the web and mobile apps for WRI's Restoration Marketplace (AKA TerraMatch). ### Authentication & Authorisation JWTs are used for authentication. Upon successful log in a JWT will be provided for you. These expire after 12 hours. A padlock icon next ... |
# Echo client program
import socket
HOST = 'localhost' # The remote host
PORT = 50007 # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.sendall('Hello, world')
data = s.recv(1024)
s.close()
print('Received', repr(data))
|
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import moxios from 'moxios';
import {
LOGIN_SUCCESS,
PASSWORD_RESET_REDIRECT,
LOGOUT,
REGISTER_SUCCESS,
} from '../../auth/redux';
import * as redux from '../redux';
import {
SETTINGS_SAVE_SUCCESS,
SETTINGS_AVATAR_SUCCESS,
... |
var unionovs__u128 =
[
[ "hi", "unionovs__u128.html#a4946c8f4312a3b262518dba1eb939f96", null ],
[ "lo", "unionovs__u128.html#a9dfe157545ef7332cedc9131a4619419", null ],
[ "u32", "unionovs__u128.html#a1e92e1f1992cb0c089b089bb27eb2b60", null ],
[ "u64", "unionovs__u128.html#ab037278c1dd88d0dc27e484c92855d... |
/*!
* jQuery Magnify Plugin v2.3.3 by T. H. Doan (https://thdoan.github.io/magnify/)
* Based on http://thecodeplayer.com/walkthrough/magnifying-glass-for-images-using-jquery-and-css3
*
* jQuery Magnify by T. H. Doan is licensed under the MIT License.
* Read a copy of the license in the LICENSE file or at https://choose... |
({"le":"je manjÅ¡e ali enako kot ","prod":"n-kratni produkt ","zwj":"zdruÅŸevalnik z niÄno Å¡irino ","mdash":"dolgi pomiÅ¡ljaj ","frasl":"poÅ¡evnica ulomka ","upsih":"GrÅ¡ki zaviti simbol ipsilon ","prop":"proporcialno z ","middot":"pika na sredini\nGeorgian comma\nGrÅ¡ka pika na sredini ","hellip":"tripiÄje ","eta":"GrÅ¡ka ma... |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'use strict';
... |
import { useRef, useState, useCallback, useEffect } from 'react'
import { AsYouType, getCountryCallingCode, parseDigits } from 'libphonenumber-js/core'
import getInternationalPhoneNumberPrefix from './helpers/getInternationalPhoneNumberPrefix'
/**
* Returns `[phoneDigits, setPhoneDigits]`.
* "Phone digits" includes... |
$(document).ready(function() {
$("#gettingdata").append("Getting data...");
//first get geolocation data as shown in lesson
if (navigator.geolocation) {navigator.geolocation.getCurrentPosition(function(position) {
//call get weather from within callback and send lat/long
getWeather(position.coo... |
# Copyright Bruno da Silva de Oliveira 2003. 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)
from Exporter import Exporter
from policies import *
from declarations import *
from set... |
/* ***** 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... |
import mongoose from 'mongoose'
const orderSchema = mongoose.Schema(
{
user: {
type: mongoose.Schema.Types.ObjectId,
required: true,
ref: 'User'
},
orderItems: [
{
name: { type: String, required: true },
qty: { type: Number, required: true },
image: { type:... |
"use strict";
let logger = require("./logger");
let config = require("../config");
let Sockets = require("./sockets");
let C = require("./constants");
let _ = require("lodash");
let hash = require("object-hash");
let Cacher = require("./cacher");
let Services;
let warn = function(msg) {
logger.warn("[S... |
import styled from 'styled-components';
import img from '../../assets/step-actions.png';
const StepAction = styled.div`
background-position: center;
background-repeat: no-repeat;
background-image: url(${img});
background-size: 128px 14px;
width: 130px;
height: 100%;
display: inline-block;
... |
import React, { useLayoutEffect } from 'react'
import ShopifyBuy from "@shopify/buy-button-js"
// import { Base64 } from 'js-base64'
const BuyButton = ({ product }) => {
useLayoutEffect(() => {
const client = ShopifyBuy.buildClient({
domain: 'hochwerben.myshopify.com',
storefrontAc... |
#reference: https://github.com/n-s-f/hierarchical-rnn/tree/master/hmlstm
from tensorflow.contrib.rnn.python.ops import core_rnn_cell
import tensorflow as tf
import collections
HMLSTMStateTuple=collections.namedtuple('HMLSTMStateTuple',['c','h','z'])
class HMSLSTM_cell(core_rnn_cell.RNNCell):
def __init__(self,hs... |
/*
* Copyright 2021 Collate
* 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,... |
function DataTable({ users }) {
return (
<div className="datatable">
<table className="table table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">img</th>
<th scope="col">name</th>
<th scope="col">email</th>
<th scope="col">phone</th>
</tr>
</thead>
... |
# Check cases where LIT_OPTS has no effect.
#
# RUN: %{lit} -s %{inputs}/lit-opts | FileCheck %s
# RUN: env LIT_OPTS= %{lit} -s %{inputs}/lit-opts | FileCheck %s
# RUN: env LIT_OPTS=-s %{lit} -s %{inputs}/lit-opts | FileCheck %s
# Check that LIT_OPTS can override command-line options.
#
# RUN: env LI... |
// Listagem de pedidos de entregas
import { Op } from 'sequelize';
import Order from '../models/Order';
import Deliveryman from '../models/Deliveryman';
import Recipient from '../models/Recipient';
import File from '../models/File';
class ListOrder {
async index(req, res) {
const { id } = req.params;
const ... |
/* ------------------------------------------------------------------------------
*
* # Echarts - Scatter category example
*
* Demo JS code for scatter category chart [light theme]
*
* ---------------------------------------------------------------------------- */
// Setup module
// --------------------------... |
/*import React, { Component } from 'react';
import {View,
Text,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import CustomHeader from '../../components/Header/Header';
class TabScreen3 extends Component{
constructor(props){
super(props);
}
render(){
return(
<View>
... |
/*-----------------------------------------------*\
GLOBAL VARIABLES
\*-----------------------------------------------*/
// URLS
var url_datos = window.location.origin + "/equipos/arbol/json/"
// OBJS
var tree = null
/*-----------------------------------------------*\
LOAD
\*-----------------... |
import { once } from 'events';
import { Router } from 'itty-router';
import qr from 'qr-image';
import jsQR from 'jsqr';
import { PNG } from 'pngjs';
async function QRgen(text, format) {
switch (format) {
case 'png': {
const QRpng = qr.imageSync(text, { type: 'png' });
return new Response(QRpng, {
s... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c6a977a"],{"11b2":function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{ref:"slotWrapper"},[t._t("default")],2)])},n=[],i={name:"relocator",props:{container:{default:"body"}},computed:{conta... |
/**
* Yapily API
* To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com)
*
* The version of the OpenAPI document: 0.0.165
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://... |
from .knn import VTXKNearestNeighbors
|
import sys
import os
from datetime import datetime
import pickle
import itertools
import numpy as np
def print_log(*args, **kwargs):
print("[{}]".format(datetime.now()), *args, **kwargs)
sys.stdout.flush()
def find_optimal_beam(scores, beam_size, discard_fraction = 1.0 / 3.0):
'''Return the indices of the... |
"""
dummy recommender
"""
import pandas as pd
from recommender import recommend_random
movies = pd.read_csv('./data/movies.csv')
recommendations = recommend_random(movies=movies)
print(recommendations)
|
"use strict";
var router_1 = require("@angular/router");
var home_component_1 = require("./home/home.component");
var profile_component_1 = require("./profile/profile.component");
var appRoutes = [
{
path: '',
component: home_component_1.HomeComponent
},
{
path: 'profile',
... |
module.exports = {
happy: require("./happy.json"),
license_expired: require("./license_expired.json"),
bob: require("./bob.json"),
bob_subscriptions: require("./bob_subscriptions.json"),
};
|
# coding=utf-8
import re
import requests
import HTMLParser
__author__ = 'nekmo'
class MeneameMetadata(object):
source_url = 'meneame.net'
def __init__(self, url):
r = requests.get(url, stream=True)
data = r.raw.read(1024 * 14, decode_content=True)
self.title = re.findall('<title>([^<... |
// @annotation:tour http_client
//
// <-- click the blue icon in the gutter
// for instructions on this lesson
//
// The README.md file contains complete instructions
// for using these tutorials.
// Then just start coding away in this file
|
"""
Django settings for mysimpleproject2 project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
fro... |
!function(e){function c(c){for(var f,n,a=c[0],b=c[1],o=c[2],u=0,l=[];u<a.length;u++)n=a[u],Object.prototype.hasOwnProperty.call(t,n)&&t[n]&&l.push(t[n][0]),t[n]=0;for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e[f]=b[f]);for(i&&i(c);l.length;)l.shift()();return d.push.apply(d,o||[]),r()}function r(){for(var e,c... |
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same ... |
import _ from 'lodash';
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_KEY ='AIzaSyBh6z04... |
"use strict";
// @codepen
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Shimmer_1 = require("office-ui-fabric-react/lib/Shimmer");
var Styling_1 = require("office-ui-fabric-react/lib/Styling");
var wrapperClass = Styling_1.mergeSt... |
var graph = {"nodes":[{"id":5,"url":"https://dribbble.com/shots/4977928-Warrior-kolkie","group":13,"stay_seconds":6.352},{"id":6,"url":"https://dribbble.com/search?q=ant","group":13,"stay_seconds":4.775},{"id":7,"url":"https://dribbble.com/shots/5462513-ant-logo","group":13,"stay_seconds":24.013},{"id":8,"url":"https:/... |
REPO = 'eniallator/Python-Hosting-Server'
BRANCH = 'master'
DYNO_FOLDER = 'dynos'
|
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Button } from "reactstrap";
import AppContainer from "./../AppContainer";
import SurveyBody from "./SurveyBody";
import { connect } from "react-redux";
import { setConfusion } from "../../actions/index";
let strings = {
en: {
... |
export default {
castType: 'instant',
cooldown: 27,
description:
'sweeps your rapier in an arc infront of you, dealing 182 damage and applies a crowd control immunity to yourself that reflect any crowd control effects on you back to the caster for 20 seconds. Hitting a target that is bleeding applies an expos... |
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
# Copyright 2015 and onwards Google, Inc.
#
# 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/license... |
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'hr', {
title: 'Upute dostupnosti',
contents: 'SadrÅŸaj pomoÄi. Za zatvaranje pritisnite ESC.',
le... |
$.fn.datepicker.dates['es'] = {
days: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
daysShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Juv', 'Vie', 'Sáb'],
daysMin: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sá'],
months: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', '... |
import time
import numpy as np
import matplotlib.pyplot as plt
import sectionproperties.pre.sections as sections
from sectionproperties.analysis.cross_section import CrossSection
# create a rectangular section
geometry = sections.RectangularSection(d=100, b=50)
# create a list of mesh sizes to analyse
mesh_sizes = [1... |
const { MessageEmbed } = require('discord.js');
module.exports = {
name: "restart",
description: "Shuts down the client!",
ownerOnly: true,
run: async (interaction, client, user, language) => {
await interaction.deferReply({ ephemeral: false });
const restart = new MessageEmbed()
.set... |
# Generated by Django 2.2.8 on 2020-01-13 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profiles', '0012_change_tos_help_text'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name... |
import 'dotenv/config';
import koa from 'koa';
import json from 'koa-json';
import body from 'koa-body';
import jwt from 'koa-jwt';
import router from '../src/routes';
const app = new koa();
const secret = process.env.JWT_SECRET || 'aW52aWxsaWEtdGVzdC1ub2Rl';
app.use(body({
multipart: true,
urlencoded: tru... |
/**
* Copyright 2012-2022, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = {
moduleType: 'locale',
name: 'es-PE',
dictionary: {},
format: {
days: ... |
const express = require("express");
const app = express();
//ëŒì°í
const home = require("./src/routes/home");
//ì±ìží
app.set("views", "./src/views");
app.set("view engine", "ejs");
app.use(express.static(`${__dirname}/src/public`));
app.use(express.json());
app.use(express.urlencoded({extended:true}));
app.use("/",... |
/*jslint node: true*/
"use strict";
var
State = require('./State'),
Dispatcher = require('../Dispatcher'),
EventEmitter = require('events').EventEmitter,
assign = require('object-assign'),
clone = require('clone'),
listenerCounter = 0;
/**
* @classdesc
* Store holds the application state. It is a little ... |
var baseHasIn = require('./_baseHasIn.js'),
hasPath = require('./_hasPath.js');
/**
* Checks if `path` is a direct or inherited property of `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* ... |
const locales = require('../../config/i18n')
// graphql function doesn't throw an error so we have to check to check for the result.errors to throw manually
exports.wrapper = promise =>
promise.then(result => {
if (result.errors) {
throw result.errors
}
return result
})
// Remove trai... |
/**
* @class Ext.draw.engine.Svg
* Provides specific methods to draw with SVG.
*/
Ext.define('Ext.draw.engine.Svg', {
/* Begin Definitions */
extend: 'Ext.draw.Surface',
requires: ['Ext.draw.Draw', 'Ext.draw.Sprite', 'Ext.draw.Matrix', 'Ext.Element'],
/* End Definitions */
engine: 'Svg',
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.6.0-bd605d07 (http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse) on 2018-12-20.
# 2018, SMART Health IT.
from . import domainresource
class CoverageEligibilityResponse(domainresource.DomainResource):
""" CoverageEligibili... |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.pauseOnAsynCall with setTimeout.');
session.setupScriptMap();
Protocol.Debu... |
var enumorg_1_1onosproject_1_1net_1_1Link_1_1State =
[
[ "ACTIVE", "enumorg_1_1onosproject_1_1net_1_1Link_1_1State.html#a89a88ecd6895f5983a145406639c94bf", null ],
[ "INACTIVE", "enumorg_1_1onosproject_1_1net_1_1Link_1_1State.html#a2f895483ea127569445de48896834ebd", null ]
]; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/**
* Thrown when operation is going to be executed on a subject without identifier.
* This error should never be thrown, however it still presents to prevent user from updation or removing the whole table.
*... |
# encoding: utf-8
import datetime
__all__ = [
'info',
]
def info():
return {
'birthday': datetime.date(1988, 12, 16),
'class': 1,
'family_name_en': u'komatani',
'family_name_kana': u'ããŸãã«',
'first_name_en': u'hitomi',
'first_name_kana... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
// window.Vue = require('vue');
/**
* The following block of code may ... |
"""This module contains tests of the Terminal"""
# pylint: disable=missing-function-docstring,protected-access
import logging
import sys
import time
import uuid
import pytest
import panel as pn
not_windows = pytest.mark.skipif(sys.platform == 'win32', reason="Does not work on Windows")
not_osx = pytest.mark.skipif(s... |
import argparse
def get_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
usage=argparse.SUPPRESS,
description="Generate train and test data for linear regression model",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument(
"-t... |
// Copyright 2013 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.
// TODO(viona): Write a README document/instructions.
/** This view displays the event waterfall. */
var WaterfallView = (function() {
'use strict';
... |
/*! Stash v1.2.4 MIT/GPL2 @rezitech */
(function (win, ls, doc) {
// Returns whether a constructor is the constructor of a value
function isType(Ctor, val) {
return val !== undefined && val !== null && val.constructor === Ctor;
}
// Returns a safely quoted string
function quoteStr(str) {
return "'" +
Strin... |
(function(t,r){if(!t){console.warn("jquery-flux required jQuery and lodash.");return}t.fn.flux=function(t){this.dispatcher=t;this.store=this.dispatcher(null,{});var i=this;this.off(":flux-update").on(":flux-update",function(t,e){var s=i.store;i.store=i.dispatcher(s,e);if(!r.isEqual(s,i.store)){i.forceUpdate(s)}});var e... |
/**
* 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 '../.... |
import setLoading from '../../../loading/src/setLoading'
let redirecting = false;
export default function () {
if (redirecting) {
return;
}
redirecting = true;
window.alert('Your session has expired, please log in again.');
let currentPage = encodeURIComponent(window.location.pathname + w... |
from datetime import date, timedelta
from decimal import Decimal
from io import StringIO
from urllib.parse import urlencode
from django.contrib.auth import get_user_model
from django.core.exceptions import ObjectDoesNotExist
from django.core.management import call_command
from django.db.models import Q
from django.htt... |
var count = 0;
jasync function pong() {
console.log("pong........", count++);
}
|
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after the first failure
// bail: false,
// Respect "b... |
from __future__ import absolute_import
from __future__ import unicode_literals
import six
from couchdbkit.exceptions import ResourceNotFound
from django.conf import settings
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_la... |
import { useState, useEffect, useContext } from "react";
import ThemeContext from "./ThemeContext";
import useBreedList from "./useBreedList";
import Results from "./Results";
const ANIMALS = ["bird", "cat", "dog", "rabbit", "reptile"];
const SearchParams = () => {
const [animal, updateAnimal] = useState("");
con... |
#!/usr/bin/env python
#
# utils.py
#
"""
Utilities
"""
import glob
import os
def case_insensitive_glob(path, pattern):
name = ''.join(map(lambda c: '[{0}{1}]'.format(c.upper(), c.lower()) if c.isalpha() else c, pattern))
return glob.glob(os.path.join(path, name))
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Tag from 'bee-tag';
import CheckableTag from './CheckableTag';
import { simpleMerge } from '../../utils';
const DefaultProps = {
colors: 'light',
closable: false
};
const propTypes = {
co... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by The MIT License.
// See the LICENSE file for details.
/**
* @fileoverview Tests for loading and unloading external resources.
*/
goog.require('spf.array');
goog.require('spf.net.resource');
goog.require('spf.pubsub');
go... |
"""Base object for nodes and groups."""
from xml.dom import minidom
from ..constants import (
_LOGGER,
ATTR_LAST_CHANGED,
ATTR_LAST_UPDATE,
ATTR_STATUS,
CMD_BEEP,
CMD_BRIGHTEN,
CMD_DIM,
CMD_DISABLE,
CMD_ENABLE,
CMD_FADE_DOWN,
CMD_FADE_STOP,
CMD_FADE_UP,
CMD_OFF,
... |