text stringlengths 3 1.05M |
|---|
# Generated by Django 2.0.9 on 2018-12-23 12:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0050_remove_secondary_accepted_college'),
]
operations = [
migrations.AddField(
model_name='school',
name=... |
import React, { Component, PropTypes } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog';
import styles from './style.css';
import { cyan500, green500 } from 'material-ui/styles/colors';
import { List, ListItem, ma... |
# coding: utf-8
"""
Copyright 2016 SmartBear Software
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... |
/* Copyright (C) 2016 NooBaa */
/*eslint max-lines: ["error", 2200]*/
'use strict';
require('../../util/fips');
const _ = require('lodash');
const os = require('os');
const util = require('util');
const mime = require('mime');
const crypto = require('crypto');
const assert = require('assert');
const glob_to_regexp = ... |
import localizationMapEn from 'localizationMapEn';
import localizationMapDe from 'localizationMapDe';
import localizationMapRu from 'localizationMapRu';
import ajaxMap from './ajaxMap.json';
import dataProvider from 'demoPage/dataProvider';
import ajaxStub from './ajaxStub/ajaxStub';
import DemoService from './app/Demo... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// ***************************************************************
// - [#] indicates a test step (e.g. # Go to a page)
// - [*] indicates an assertion (e.g. * Check the title)
// - Use element ID when selec... |
'use strict';
exports.BattleMovedex = {
acupressure: {
inherit: true,
desc: "Raises a random stat by 2 stages as long as the stat is not already at stage 6. The user can choose to use this move on itself or an ally. Fails if no stat stage can be raised or if the user or ally has a substitute.",
flags: {snatch: ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... |
from setuptools import setup
setup(
name='pya2l',
version='0.0.1',
packages=[
'pya2l',
'pya2l.parser',
'pya2l.parser.grammar'
],
url='https://github.com/vaasu070/pya2l',
license='BSD',
author='Srinivas',
author_email='vaasu070@gmail.com',
description='utility... |
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const { DefinePlugin } = require("webpack");
const { resolve } = require("path");
const globalConstants = require("./globalConstants");
const getIsDevelopment = require("./getIsDevelopment");
const root = resolve(__dirname, "..");
const isDevelopme... |
"""
Check Current Beta firmwares of Samsung Devices
Syntax: .check androidVersion modelNumber
By :- Jaskaran ^_^
Telegram :- @WONKRU_HERE
"""
from asyncio import wait
import time
import gc
from telegraph import Telegraph
from bs4 import BeautifulSoup as bs
import requests
from telethon import events
telegraph = Te... |
export const cibVim = ["32 32","<path d='M32 15.979h-0.036l-5.755-5.755 5.734-5.885v-2.391l-0.865-0.865h-10.932l-0.88 0.807v1.396l-3.245-3.25v-0.036l-0.021 0.021-0.021-0.021v0.036l-1.719 1.719-0.719-0.719h-10.828l-0.849 0.927v2.51l0.818 0.823h0.964v7.078l-3.609 3.609h-0.036l0.021 0.016-0.021 0.021h0.036l3.609 3.604v8.6... |
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2021 all rights reserved
#
class Count:
"""
The representation of the length of a collection of nodes
"""
# value management
def getValue(self):
"""
Compute and return my value
"""
# compute ... |
var http = require('http')
var fs = require('fs')
var url = require('url')
var port = process.argv[2]
if(!port){
console.log('请指定端口号好不啦?\nnode server.js 8888 这样不会吗?')
process.exit(1)
}
var server = http.createServer(function(request, response){
var parsedUrl = url.parse(request.url, true)
var path = request.u... |
# Generated by Django 2.2.3 on 2019-12-18 15:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20191218_1959'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='name',
... |
export let LeafletMap = {
Map: {
setView: function (map, center, zoom) {
map.setView(center, zoom);
}
},
Layer: {
addTo: function (layer, map) {
layer.addTo(map);
},
remove: function (layer) {
layer.remove();
}
}... |
import React from 'react'
import { Cell } from '@blueprintjs/table'
import { fixedFloat, formatAmount } from 'ui/utils'
export default function getColumns(props) {
const {
walletsTotalBalanceUsd,
positionsTotalPlUsd,
totalResult,
} = props
return [
{
id: 'walletsTotal',
name: 'colum... |
'use strict'
exports.data = function (ctx) {
return {
hostname: 'localhost',
port: ctx.data.port,
path: '/?foo=bar'
}
}
exports.run = function (ctx, done) {
ctx.driver.get(ctx.data, function (res) {
res.resume()
res.on('end', done.bind(null, null))
}).on('error', done)
}
|
/**
* Launch Screen
* - Shows a nice loading screen whilst:
* - Checking if user is logged in, and redirects from there
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component, PropTypes } from 'react';
import {
View,
Image,
StatusBar,
StyleSheet,... |
/**
*
* Copyright 2018 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
*
* Unless required by applicable law or agreed... |
import pandas as pd
directory = 'ml-1m/'
unames = ['user_id', 'gender', 'age', 'occupation', 'zip']
users = pd.read_table(directory + 'users.dat', sep='::', header=None, names=unames, engine='python')
rnames = ['user_id', 'movie_id', 'rating', 'timestamp']
ratings = pd.read_table(directory + 'ratings.dat', sep='::',... |
#
# AstroImage.py -- Abstraction of an astronomical data image.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import sys
import math
import traceback
from collections import OrderedDict
import numpy as np
from ginga.util import wcsmod, io_fits, io_asdf... |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Donny You(youansheng@gmail.com)
# Priorbox layer for Detection.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import numpy as np
import torch
from utils.tools.logger import Logger as Lo... |
/*
artifact generator: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi-cli\dist\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js
package: wizzi-js@0.7.7
primary source IttfDocument: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi-cli\dist\examples\gamma\.wizzi\root\webpack.config.js.ittf
utc time: Mon, 15 ... |
import Grid from '@mui/material/Grid';
import { makeStyles } from '@mui/styles';
import React from 'react';
import { useSiteState } from '../../../context/SiteContext';
import NoResult from './NoResult';
import Product from './Product';
const useStyles = makeStyles({
productsWrapper: {
paddingTop: '8px',
ani... |
"use strict";
/**
* Widget to show results of calculation to user.
* @param {Object} config
*/
var Results = function (config) {
AbstractComponent.call(this, config); //Call parent class constructor
}
Results.prototype = Object.create(AbstractComponent.prototype);
/**
* @override
*/
Results.prototype.map... |
import notify from './notify';
import GlobalShortcuts from './GlobalShortcuts';
import { cleanup, toggleWindow, env } from './helperFunctions';
export {
env,
notify,
cleanup,
toggleWindow,
GlobalShortcuts
};
|
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/ui/thirdparty/jquery","sap/base/assert","sap/ui/dom/jquery/rect"],function(q,a){"use strict";var r=function b(p,P){a(!isNaN(p),"iPosX must be a numbe... |
var amqp = require('amqplib/callback_api');
var args = process.argv.slice(2);
if (args.length == 0) {
console.log("Usage: rpc_client.js num");
process.exit(1);
}
amqp.connect('amqp://orion-rabbit', function(error0, connection) {
if (error0) {
throw error0;
}
connection.createChannel(function(error1, ch... |
function ApplyExtra(sequelize) {
const {
guild,
guildConfiguration,
guildLogging,
guildModerationRoles,
guildOverrideCommands,
infraction,
starboard,
starboardPost,
tempban,
automod
} = sequelize.models;
guild.belongsTo(guildConfiguration, {});
guild.belongsTo(guildLogging, {});
guild.belongsT... |
import default from '../repository';
const { updateUserInfo } = default;
import { UPDATE_INFO_SUCCESS_MESSAGE, UPDATE_INFO_ERROR_MESSAGE } from '../constants';
async function updateUser(req, res) {
let user = {};
const {
user: { id },
} = req;
const profileSuccessMessage = UPDATE_INFO_SUCCESS_MESSAGE;
tr... |
/**
* Module dependencies.
*/
var Emitter = require('events').EventEmitter;
var parser = require('socket.io-parser');
var url = require('url');
var debug = require('debug')('socket.io:socket');
var hasBin = require('has-binary-data');
/**
* Module exports.
*/
module.exports = exports = Socket;
/**
* Blacklist... |
;(function () {
'use strict'
angular
.module('bplclient.components')
.component('emptyState', {
templateUrl: 'src/components/emptystate/empty-state.html',
bindings: {
imgSrc: '@?',
header: '@?',
content: '@?'
},
controller: EmptyStateController,
control... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# from __future__ import annotations # isort:skip
# 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.
from __future__ import annotations
from typi... |
# -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
#
# SPDX-License-Identifier: ISC
#
# Author: Ulf Magnusson
# https://github.com/ulfalizer/Kconfiglib
# This is Kconfiglib, a Python library for scripting, debugging, and extracting
# information from Kconfig-based configuration systems. To view the
# documentation, run
#
# $ pydoc kconfiglib
#
# or, if you prefer H... |
const toggle = document.getElementById('toggle');
const close = document.getElementById('close');
const open = document.getElementById('open');
const modal = document.getElementById('modal');
const navbar = document.getElementById('navbar');
// This function closes navbar if user clicks anywhere outside of navbar once... |
'use strict'
const _get = require('lodash.get')
const Channel = require('../models/channel')
const { error } = require('../adapters/cloudwatch')
module.exports = async body => {
// パラメータチェック
const event = {}
event.appid = _get(body, 'api_app_id')
event.channel = _get(body, 'event.channel')
if (!event.appid... |
import {noop as noReturnValue} from './helpers'
import firebase from 'firebase'
import {FirebaseProviderError} from './errors'
export default function deleteUser (password) {
const user = firebase.auth().currentUser
return user.delete()
.then(noReturnValue)
.catch((error) => {
throw new FirebaseProv... |
const path = require('path')
const Sequelize = require('sequelize')
const sequelizeCursorPagination = require('sequelize-cursor-pagination')
/* Init database */
const sequelize = new Sequelize('gopkg', undefined, undefined, {
dialect: 'sqlite',
storage: path.resolve(__dirname, '../dist/data.sqlite'),
// operat... |
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import os
import datetime
import backtrader as bt
import pandas as pd
from matplotlib import pyplot as plt
from S1_task1 import *
obj = CryptoCompare('BTC', 'USDT', 'binance... |
import {
call,
put,
} from 'redux-saga/effects'
import logger from '../logger'
import { hidePassword } from '_/helpers'
import { msg } from '_/intl'
import {
failedExternalAction,
checkTokenExpired,
} from '_/actions'
import Api from '_/ovirtapi'
import { getUserPermits } from '_/utils'
export const delay... |
from functools import partial
from gdsfactory.cell import cell
from gdsfactory.component import Component
from gdsfactory.components.compass import compass
from gdsfactory.components.contact import contact_slab_npp_m3
from gdsfactory.tech import LAYER
from gdsfactory.types import ComponentFactory, Floats, Layers, Opti... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# dicomparser.py
"""Class that parses and returns formatted DICOM RT data."""
# Copyright (c) 2009-2016 Aditya Panchal
# Copyright (c) 2009-2010 Roy Keyes
# This file is part of dicompyler-core, released under a BSD license.
# See the file license.txt included with this ... |
#!/usr/bin/env python3
#
# Complete the 'print_full_name' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING first
# 2. STRING last
#
def print_full_name(first, last):
# Write your code here
full_name = "Hello " + first + " " + last + "... |
/**
* @fileoverview Firebase Authentication API.
*
* Copyright 2018 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/lic... |
export default {
lang: 'lv',
label: {
clear: 'Attīrīt',
ok: 'OK',
cancel: 'Atcelt',
close: 'Aizvērt',
set: 'Iestatīt',
select: 'Izvēlēties',
reset: 'Atiestatīt',
remove: 'Noņemt',
update: 'Atjaunināt',
create: 'Izveidot',
search: 'Meklēt',
filter: 'Filtēt',
refres... |
'use strict';
var _ = require('lodash');
/**
* Extend user's controller
*/
module.exports = _.extend(
require('./users/users.authentication.server.controller'),
require('./users/users.authorization.server.controller'),
require('./users/users.profile.server.controller'),
require('./users/users.manage.server.c... |
import React from 'react'
import {
ModalDialog,
ModalBackdrop,
ModalContent,
Modal,
} from '../src'
class Example extends React.Component {
constructor(props) {
super(props)
this.closeOnClick = this.closeOnClick.bind(this)
this.showDialog = this.showDialog.bind(this)
}
... |
'use strict';
module.exports = function () {
var _ = this._;
// Retrieve props stored in .yo-rc.json
if (this.skipConfig) {
this.props = this.config.get('props');
}
// Format list ngModules included in AngularJS DI
var ngModules = this.props.angularModules.map(function (module) {
return module.mo... |
#!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... |
/*
* ADOBE CONFIDENTIAL
*
* Copyright 2015 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to... |
#!/usr/bin/env node
const notifier = require('node-notifier');
const start = require('./start');
const config = require('./config.js');
const configData = require('./config.json');
const args = process.argv;
const feedUrl = configData.feedUrl;
if (args.indexOf('config') > -1) {
(async (... |
import React from "react";
import less from "./style.less";
import PropTypes from "prop-types";
export default class StarButton extends React.Component {
constructor (props) {
super(props);
this.state = {
star: [0, 0, 0, 0, 0]
};
}
componentDidMount () {
const { level } = this.props;
t... |
var _spatial_awareness_mesh_level_of_detail_8cs =
[
[ "SpatialAwarenessMeshLevelOfDetail", "_spatial_awareness_mesh_level_of_detail_8cs.html#af6ed60fc7e82eaef8512e64b615a083a", [
[ "Custom", "_spatial_awareness_mesh_level_of_detail_8cs.html#af6ed60fc7e82eaef8512e64b615a083aa90589c47f06eb971d548591f23c285af", ... |
export const ADD_TO_CART = "ADD_TO_CART";
export const CHANGE_AMOUNT_IN_CART = "CHANGE_AMOUNT_IN_CART";
export const REMOVE_FROM_CART = "REMOVE_FROM_CART";
export const EMPTY_CART = "EMPTY_CART";
export const FETCH_CATEGORIES_SUCCESS = "FETCH_CATEGORIES_SUCCESS";
export const FETCH_CATEGORIES_FAILURE = "FETCH_CATEGORIE... |
# The UI interface and analysis of the lofar solar beam from
import sys
# insert at 1, 0 is the script path (or '' in REPL)
sys.path.insert(1, '..')
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QIcon
from PyQt5.uic import loadUi
from PyQt5.QtCore import Qt
import matplotlib
from matplotlib.backends.backend_... |
import Page from "flarum/components/Page";
import Button from "flarum/components/Button";
import humanTime from "flarum/helpers/humanTime";
import BlogCategories from "../components/BlogCategories";
import Link from "flarum/components/Link";
import tooltip from "../utils/tooltip";
import LanguageDropdown from "../compo... |
import React from 'react'
import {StyleSheet, css} from 'aphrodite-jss'
const styles = StyleSheet.create({
'noInfo': {
background: 'rgb(155, 155, 155)',
margin: '0 auto',
padding: '25px',
maxWidth: '700px',
borderRadius: '4px',
marginTop: '40px',
'& > h1': {... |
import numpy as np
import dlib
import Image
import cv2
import matplotlib.pyplot as plt
import os
import keras
import tnfix
from pathlib import Path
# np.set_printoptions(threshold=np.inf) # it will basically print out all the numpy array. Probably useful in MNIST dataset
from keras.models import load_model # for l... |
/**
* Created by yuancheng.yuan on 2017/8/8.
*/
const superagent = require("superagent");
require('superagent-charset')(superagent)
require('superagent-retry')(superagent)
var headers = {
'Host': 'www.aqistudy.cn',
'X-Requested-With': 'XMLHttpRequest',
'Origin': 'https://www.aqistudy.cn',
'Content-Ty... |
import React from "react"
import { Col, Row } from "react-bootstrap"
import styles from "./contact.module.css"
const Contact = () => {
return (
<section id="contact">
<h2 className={styles.heading}>Contact</h2>
<p className={styles.subheading}>
Lorem ipsum dolor sit amet consectetu adipiscin... |
const webpack = require('webpack');
const TerserPlugin = require("terser-webpack-plugin");
const version = require('../core/package.json').version;
const isDev = (process.env.NODE_ENV !== 'production');
module.exports = {
mode: isDev ? 'development' : 'production',
entry: './src/demo.tsx',
output: {
... |
/*
* Copyright (C) 2017 eschao <esc.chao@gmail.com>
*
* 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 applicabl... |
import { useRouter } from 'next/router'
import Loader from '../../../components/Loader'
import DefaultLayout from '../../../components/DefaultLayout'
import PageContainer from '../../../components/PageContainer'
import PlayerNoteForm from '../../../components/PlayerNoteForm'
import ErrorLayout from '../../../components... |
import r,{createContext as t,useContext as e,useEffect as n,forwardRef as o,useState as i,useCallback as u,useImperativeHandle as a}from"react";import c from"dot-object";var f=t({});function l(r){var t=e(f),o=t.initialData,i=t.errors,u=t.scopePath,a=t.unregisterField,l=t.registerField,s=u?u+"."+r:r;n((function(){return... |
/*jslint node: true */
"use strict";
var REGS = [{
regex: /^(.+)[\. ]S(\d{2}) - (\d{1,2})-(\d{1,2})\[(.+)\]$/,
type: 'SERIE',
serie: 1, season: 2, episodes: [3, 4], team: 5
},{
regex: /^(.+)[\. ]S(\d{2}) - (\d{1,2}).*-(.+)\[.*\]$/,
type: 'SERIE',
serie: 1, season: 2, episodes: [3], team: 4
},{
... |
const sqlite3 = require("sqlite3")
const { open } = require("sqlite")
module.exports = () => open({
filename: './src/db/rocketq.sqlite',
driver: sqlite3.Database,
});
|
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... |
###############################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
###############################################################################
imp... |
# -*- coding: utf-8 -*-
'''
NAPALM BGP
==========
Manages BGP configuration on network devices and provides statistics.
:codeauthor: Mircea Ulinic <mircea@cloudflare.com> & Jerome Fleury <jf@cloudflare.com>
:maturity: new
:depends: napalm
:platform: unix
Dependencies
------------
- :mod:`napalm proxy minion ... |
'use strict';
module.exports = app => {
const { Sequelize, model, getSortInfo, checkUpdate } = app;
const { Op } = Sequelize;
const goodsSchema = require('../schema/goods.js')(app);
const goodsCategorySchema = require('../schema/goodscategory.js')(app);
const Goods = model.define('goods', goodsSchema);
con... |
import React from 'react'
import { view, Link, Router } from 'react-stax'
import StoriesPage from './pages/Stories'
import StoryPage from './pages/Story'
import UserPage from './pages/User'
import storiesStore from './stores/stories'
import initStory from './stores/story'
import initUser from './stores/user'
import app... |
from .processing import Text
from .generators import generate_pri_key, generate_pub_key
def test_processing():
sample_text = "Hello Word"
encoded_text = Text.encode_and_compress(sample_text)
assert bytes(sample_text, "utf-8") == Text.decompress_and_decode(
encoded_text.get("token"), encoded_text.g... |
import os
import argparse
from tqdm import tqdm
from models.model import Model
from inference.save_predictions import SavePKLFormat
from pathlib import Path
def parse_arguments():
"""
Parse the command line arguments
"""
ap = argparse.ArgumentParser()
ap.add_argument("-m", "--models", required=Fal... |
import { Table } from '@rocket.chat/fuselage';
import { useDebouncedValue, useMutableCallback } from '@rocket.chat/fuselage-hooks';
import React, { useState, useMemo, useCallback, useEffect } from 'react';
import FilterByText from '../../../../components/FilterByText';
import GenericTable from '../../../../components/... |
const FRONTEND_DEV_URLS = [
'http://localhost:3000',
'https://puzzle-party.herokuapp.com/'
]
const FRONTEND_PROD_URLS = [
'https://www.yourdomain.com',
'https://yourdomain.com'
]
module.exports =
process.env.NODE_ENV === 'production' ? FRONTEND_PROD_URLS : FRONTEND_DEV_URLS
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[184],{
/***/ "./frontend/src/views/pages/authentication/Register.vue":
/*!**************************************************************!*\
!*** ./frontend/src/views/pages/authentication/Register.vue ***!
\**********************************************... |
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import patches
import matplotlib.patches as mpatches
import scipy.io as sio
# plotting configuration
ratio = 1.5
figure_len, figure_width = 15*ratio, 12*ratio
font_size_1, font_size_2 = 36*ratio, 36*ratio
legend_size = 18*ratio
li... |
(function(d){d['pl']=Object.assign(d['pl']||{},{a:"Nie można przesłać pliku:",b:"Pasek narzędzi obrazka",c:"Pasek narzędzi tabel",d:"Edytuj blok",e:"Pogrubienie",f:"Kursywa",g:"Cytat blokowy",h:"Wstaw obrazek lub plik",i:"Wybierz nagłówek",j:"Nagłówek",k:"Obraz",l:"Obraz w pełnym rozmiarze",m:"Obraz dosunięty do brzegu... |
"""
The MIT License
Copyright (c) 2021 MatNet
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... |
var express = require('express');
var router = express.Router();
router.use((req, res, next) => {
'use strict';
res.locals.user = req.user || null;
next();
});
module.exports = router; |
//==========================
// Polygon containsLatLng
// https://github.com/tparkin/Google-Maps-Point-in-Polygon
// Poygon getBounds extension - google-maps-extensions
// http://code.google.com/p/google-maps-extensions/source/browse/google.maps.Polygon.getBounds.js
if (!google.maps.Polygon.prototype.getBound... |
import './playlists.scss'
import Akili from 'akili';
import store from 'akili/src/services/store';
import { getPlaylistByHash, removePlaylist } from '../../lib/playlists';
import { cachePlaylist, uncachePlaylist, removeCachingPlaylist, removeUncachingPlaylist } from '../../lib/cache';
export default class Playlists ex... |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import numpy as np
_NUMBER_OF_EACH_LINE = 8
def py_list_list2file(output_dir, file_name, var_list):
"""
Output the 1D or 2D list to ASCII file.
Args:
output_dir : the directory of the output
file_name : output file name
var_list : 1D o... |
/**
* Copyright 2013 Facebook, 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
from setuptools import find_packages, setup
with open("README.md") as fh:
long_description = ""
header_count = 0
for line in fh:
if line.startswith("##"):
header_count += 1
if header_count < 2:
long_description += line
else:
break
def get_versio... |
// eslint-disable-next-line import/no-extraneous-dependencies
import template from 'lodash/template';
import fs from 'fs';
import path from 'path';
import ReactIcon from './ReactIcon';
const templatePath = path.join(__dirname, './template.txt');
/**
* generateJsx - Takes an Icon object as input and returns a React c... |
def findDecision(obj): #obj[0]: Driving_to, obj[1]: Passanger, obj[2]: Weather, obj[3]: Temperature, obj[4]: Time, obj[5]: Coupon, obj[6]: Coupon_validity, obj[7]: Gender, obj[8]: Age, obj[9]: Maritalstatus, obj[10]: Children, obj[11]: Education, obj[12]: Occupation, obj[13]: Income, obj[14]: Bar, obj[15]: Coffeehouse,... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{1635:function(e,a,t){"use strict";t.r(a);var n=t(25),l=t.n(n),i=t(24),r=t.n(i),s=t(26),o=t.n(s),c=t(27),u=t.n(c),d=t(21),f=t.n(d),m=t(28),p=t.n(m),g=t(0),h=t.n(g),v=t(33),b=t(929),C=t(930),N=t(197),E=t.n(N),P=t(144),k=t(145),y=t(199),L=t(99),w=t(4),x=t(8),D=t.n(... |
from __future__ import print_function
import codecs
import json
import logging
import os
import re
import shutil
from esphomeyaml.config import iter_components
from esphomeyaml.const import ARDUINO_VERSION_ESP32_DEV, CONF_ARDUINO_VERSION, \
CONF_BRANCH, CONF_COMMIT, CONF_ESPHOMELIB_VERSION, CONF_ESPHOMEYAML, \
... |
const core = require("@actions/core");
const NetlifyAPI = require("netlify");
const { exec } = require("@actions/exec");
// Input Variables
let netlify = {};
netlify.access_token = core.getInput("netlify_access_token");
netlify.site_name = core.getInput("site_name");
(async function() {
try {
const client = new... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "43f6123aa32cfc63f0ccc2199607e621",
"url": "/index.html"
},
{
"revision": "b1210e887cab3dcb3ab7",
"url": "/static/css/main.79707827.chunk.css"
},
{
"revision": "44df277e51c886d361a5",
"url": "/static/js/2.... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.Voucher import Voucher
class KoubeiMarketingCampaignVoucherDetailQueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiMarketingCa... |
'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')
class UserSchema extends Schema {
up () {
this.create('users', (table) => {
table.increments()
table.string('name', 80).notNullable().unique()
table.string('cpf', 14)
table.string('password', 60... |
/*
* Copyright (C) 2013 salesforce.com, 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/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
import {getBuildFromVersion} from '../shared/generic.js';
import {srcBase64} from '../shared/image.js';
export {MyAdminConfig as default};
let MyAdminConfig = {
name:'my-admin-config',
components:{
'chrome-picker':VueColor.Chrome
},
template:`<div class="contentBox admin-config" v-if="ready">
<div cl... |
App = {
web3Provider: null,
contracts: {},
account: null,
init: async function() {
// Load pets.
$.getJSON('../books.json', function(data) {
var booksRow = $('#booksRow');
var bookTemplate = $('#bookTemplate');
console.log("book numbers : ", data.length)
for (i = 0; i < data.len... |
function storageGet(keys, cb) {
// Firefox
if (browser && browser.storage) {
if (browser.storage.sync) {
browser.storage.sync.get(keys).then(cb);
} else {
cb(browser.storage.local.get(keys));
}
// Chrome
} else {
chrome.storage.sync.get(keys, cb);
}
}
function storageSet(data) {... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |