text stringlengths 3 1.05M |
|---|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
import {
GET_CERTS,
GET_CERTS_ERROR,
OPEN_CERT,
OPEN_SECTION,
} from '../actions/types';
const INITIAL_STATE = {
certificates: [],
errorMessage: '',
};
export default function (state = INITIAL_STATE, action) {
switch (action.type) {
case GET_CERTS:
return { ...state, ce... |
import { bindEvent, extend, clone, isPromiseLike, probe } from 'sav-util'
import {Request} from './request.js'
export function Flux (opts = {strict: true}) {
let flux = this
let prop = initProp(flux)
prop('flux', flux)
prop('prop', prop)
prop('mutations', {})
prop('actions', {})
prop('proxys', {})
prop... |
'use strict';
const types = require('../utils/types');
const computedPropertyUtils = require('../utils/computed-properties');
const propertySetterUtils = require('../utils/property-setter');
const emberUtils = require('../utils/ember');
const Traverser = require('../utils/traverser');
const { getImportIdentifier } = r... |
import json
import datetime as dt
import dateutil.parser as dp
import requests
import polling
from celery import shared_task
from django.conf import settings
from genie.models import NotebookJob, RunStatus, NOTEBOOK_STATUS_SUCCESS, NOTEBOOK_STATUS_ERROR, NOTEBOOK_STATUS_RUNNING, NOTEBOOK_STATUS_FINISHED, NOTEBOOK_STAT... |
import traceback
import json
import requests
import os
from ssm_util import fetch_ssm_params
from customlist_data_builder import CustomlistItemDataBuilder
from constants import IMAGE_PATH
from builder_client import BuilderClient
def add_employee_to_guide(event, context):
"""
This lambda adds a new employee
... |
# coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 9
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_8_2_2
from i... |
var connect = require('connect'),
http = require('http'),
assert = require('assert'),
tokenator = require('../lib/tokenator');
function accessGranted(req, res){
res.end('Tokenator says yes!');
}
var app = connect()
.use(tokenator(['5917f138c80b512d14a4ee2fe05a17dc', '7b1a47ab847f7534b507c6ae4a763118']... |
from waldur_core.quotas import fields as quota_fields
from waldur_core.structure import models as structure_models
from . import models
TENANT_QUOTAS = (
('vpc_cpu_count', 'vcpu'),
('vpc_ram_size', 'ram'),
('vpc_storage_size', 'storage'),
('vpc_floating_ip_count', 'floating_ip_count'),
)
TENANT_PATH... |
import { itemPoints } from "../../constants.js";
import { getFormated } from "../../utils.js";
function getFunnelTooltip(dataType, digit, tooltipMap) {
return {
extraCssText: "box-shadow:0px 4px 10px 0px rgba(0,52,113,0.1);",
backgroundColor: "#fff",
show: true,
trigger: "item",
padding:... |
var searchData=
[
['nagagog_32247',['Nagagog',['../namespace_brawl_lib_1_1_s_s_b_b_1_1_resource_nodes.html#a8ee16394b7d4914ccae85a71954c0fe9ab27bdd40981e2fa6f56dd60a8f006363',1,'BrawlLib::SSBB::ResourceNodes']]],
['name_32248',['Name',['../class_brawl_lib_1_1_modeling_1_1_collada_1_1_collada.html#a3cb1e359a1066f4dd... |
from __future__ import unicode_literals
import mock
import unittest
import pytest
import pytz
from django.utils import timezone
from nose.tools import * # noqa
from framework.auth import Auth
from addons.osfstorage.models import OsfStorageFile, OsfStorageFileNode, OsfStorageFolder
from osf.exceptions import Validat... |
#
# PySNMP MIB module SPINS-DS2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SPINS-DS2-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:10:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... |
/* globals MockL10n, MocksHelper, MockSIMSlot, MockSIMSlotManager,
SimPinDialog */
'use strict';
require('/shared/test/unit/mocks/mock_l10n.js');
requireApp('system//shared/test/unit/mocks/mock_simslot.js');
requireApp('system//shared/test/unit/mocks/mock_simslot_manager.js');
var mocksForSIMPINDialog = ne... |
# -*- encoding: utf-8 -*-
#
# Copyright © 2013 Intel
#
# Author: Shuangtai Tian <shuangtai.tian@intel.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/licen... |
(function(undefined) {
/**
* A list with all the chunk filenames
* @type {Array}
*/
var _files = [
'xa',
'xb',
'xc',
'xd',
'xe',
'xf',
'xg',
'xh',
'xi',
'xj',
'xk',
'xl',
'xm',
'xn',
'xo',
'xp',
'xq',
... |
studentRoster.factory('StudentsFactory', function StudentsFactory() {
var factory = {};
factory.students = [];
factory.addStudent = function(newName) {
this.students.push({name: newName, permissionSlip: false });
};
factory.deleteStudent = function(student) {
var index = this.students.indexOf(studen... |
module.exports = {
types: {
// streaming protocol
PROTOCOL_INVALID_INPUT_SIGNAL: 'error-streaming-invalid-input-signal',
PROTOCOL_MISSING_START_SIGNAL: 'error-streaming-missing-start-signal',
PROTOCOL_OUTPUT_COUNT_MISMATCH: 'error-streaming-invalid-output-count',
PROTOCOL_TOO... |
import React from 'react'
import './Card.scss'
import {OverflowMenu, OverflowMenuItem, Tooltip} from 'carbon-components-react';
import PropTypes from 'prop-types'
/**
* Card to display content
*/
const Card = ({children, title, style, className, info, actions, setProps}) => {
const actionClick = (actionPropName)... |
const {
Component,
} = window.Torus;
const MSG = {
Hello: 0,
Text: 1,
ChangeUser: 2,
PresentUsers: 3,
EmptyCanvas: 4,
}
const DEFAULT_USER = 'user';
const DEFAULT_COLOR = '#333333';
const PALM_REJECTION_LIMIT = 200 * 200;
const CURVE_SMOOTHING_LIMIT = 10;
const TOAST_DELAY = 1600;
class User... |
const cf = require('@mapbox/cloudfriend')
const Parameters = {
BucketName: {
Type: 'String',
Description: 'Name of S3 bucket where Lambda code is saved',
Default: 'slack-bot-commands',
},
GitSha: {
Type: 'String',
Description: 'Git SHA of latest commit for Lambda function',
},
}
const Reso... |
# Django settings for thetracker project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'db' # Or path to databa... |
def q(n):
if n==1:
return n
else:
return q(n-1)+(2*n-1)
n=int(input("Digite um número: "))
print(q(n))
|
'use strict'
/*
* Create a constant variables for each primitives
* `str`, `num`, `bool` and `undef`
*
* @notions Primitive and Operators, Variables
*/
// Your code :
const str = "1337"
const num = 42
const bool = false
const undef = undefined
//* Begin of tests
const assert = require('assert')
assert.stri... |
$(document).ready(registration);
function userAuth() {
// VK auth via Implicit Flow
let uri = window.location.hostname + window.location.pathname + window.location.search;
let clientId = $("#clientId").text();
window.location.href = `https://oauth.vk.com/authorize?client_id=${clientId}&redirect_uri=${u... |
import Icon from '../components/Icon'
Icon.register({
equals: {
width: 448,
height: 512,
paths: [
{
d: 'M416 304c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32h-384c-17.7 0-32-14.3-32-32v-32c0-17.7 14.3-32 32-32h384zM416 112c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32h-384c-17.7 0-32-14.3-32... |
# -*- coding: utf-8 -*-
class ConnectionResolverInterface(object):
def connection(self, name=None):
raise NotImplementedError()
def get_default_connection(self):
raise NotImplementedError()
def set_default_connection(self, name):
raise NotImplementedError()
|
// script to find and remove definitions which have no paths, or paths
// but no operations
// run with a find command piped into xargs for now
const yaml = require('js-yaml');
const fs = require('fs');
for (let i=2;i<process.argv.length;i++) {
let fname = process.argv[i];
try {
let api = yaml.safeLoad(fs.re... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ResolutionsMemoryPersistence_1 = require("./ResolutionsMemoryPersistence");
exports.ResolutionsMemoryPersistence = ResolutionsMemoryPersistence_1.ResolutionsMemoryPersistence;
var ResolutionsFilePersistence_1 = require("./ResolutionsFilePe... |
module.exports = {
permissions: ["MANAGE_GUILD"],
botpermissions: ["MANAGE_NICKNAMES"],
run: async(client, message, args) =>{
message.guild.members.cache.forEach(m => {
if(m.presence){
if(m.presence.activities[0]){
if(m.presence.activities[0].type == "CUSTOM_STATUS")... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 ... |
/**
* @class Oskari.mapframework.domain.Style
*
* Map Layer Style
*/
Oskari.clazz.define('Oskari.mapframework.domain.Style',
/**
* @method create called automatically on construction
* @static
*/
function () {
this._name = null;
this._title = null;
this._legend = nul... |
const adjectives = require('./dictionaries/adjectives_by_letter.json')
const nouns = require('./dictionaries/nouns_by_letter.json')
const defaults = {
order: [
{ type: 'adj', letter: '*' },
{ type: 'adj', letter: '*' },
{ type: 'noun', letter: '*' }
],
spacer: '',
caps: true
}
function wordListByT... |
module.exports = function(config) {
config.set({
browsers: ['ChromeHeadless'],
files: [
{ pattern: 'test-context.js', watched: false }
],
frameworks: ['jasmine'],
preprocessors: {
'test-context.js': ['webpack']
},
webpack: {
module: {
loaders: [
{ test: ... |
#!/usr/bin/env python
#
# License: BSD
# https://raw.githubusercontent.com/splintered-reality/py_trees/devel/LICENSE
#
##############################################################################
# Imports
##############################################################################
import py_trees
import py_tre... |
from nav_tts_v1.nav_tts import Module
|
var chromedriver = require('chromedriver'),
selenium = require('selenium-webdriver');
var one_step_timeout = 8000;
var chromeOpts = [
'--test-type',
'--no-default-browser-check',
'--no-first-run',
'--disable-default-apps',
'--host-resolver-rules=MAP *pencilcode.net.dev localhost:8193',
'--allow-runnin... |
# Implementing ASM algorithm
#
# references:
#
# Stegmann, Mikkel B, and David Delgado Gomez. n.d. “A Brief Introduction to Statistical Shape Analysis,” 15.
# Cootes, Tim. “An Introduction to Active Shape Models.” Image Processing and Analysis, January 1, 2000
import numpy as np
import matplotlib.pyplot as plt
import... |
import sklearn.decomposition
import scipy.stats
import numpy as np
import matplotlib.pyplot as plt
import torch
from torch.utils.data import Dataset, DataLoader
# import cuml
# import cuml.decomposition
# import cupy
import gc
from tqdm.notebook import tqdm
###########################
########## PCA ############
#... |
import videojs from 'video.js';
import RecommendationsOverlayContent from './recommendations-overlay-content';
import RecommendationsOverlayHideButton from './recommendations-overlay-hide-button';
import './recommendations-overlay.scss';
const MAXIMUM_ITEMS = 4;
const Component = videojs.getComponent('Component');
//... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var Promise = require('bluebird')
var graph = Promise.promisifyAll(require('fbgraph'))
const fbAppToken = process.env.FACEBOOK_APP_TOKEN
graph.setAccessToken(fbAppToken)
const userId = process.env.FACEBOOK_ID
const ptPageId = process.env.FACEBOOK_PAGE_ID
const Upload = require('../../models/index').Upload
functio... |
import { combineReducers } from "redux"
import { reducer as formReducer } from "redux-form"
import * as authReducer from "./authReducer"
import * as ideaReducer from "./ideaReducer"
function createReducer(defaultState, reducerMappings) {
return function(state=defaultState, {type, payload}) {
const mapping = red... |
/**
* @license
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
define(["exports"],function(e){"use strict";
/**
* @license
* Copyright (c) 2019 2021, Oracle and/or i... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NsisTarget = void 0;
function _bluebirdLst() {
const data = _interopRequireWildcard(require("bluebird-lst"));
_bluebirdLst = function () {
return data;
};
return data;
}
function _zipBin() {
const data = require("7... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { CSSIcon } from 'source/__utils__'
const COLOR_SELECT = 'rgba(0, 0, 0, 0.06)'
const COLOR_HOVER = 'rgba(0, 0, 0, 0.04)'
const COLOR_SHADOW = 'rgba(0, 0, 0, 0.10)'
const COLOR_PRIMARY = '#EB56... |
(function() {
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.main',
'myApp.configuration',
'myApp.gameBoard',
'myApp.ticTacToeCell',
'myApp.statistics'
]).
config(['$locationProvider', '$routeProvider', func... |
import resolve from 'rollup-plugin-node-resolve'
import babel from 'rollup-plugin-babel'
import replace from 'rollup-plugin-replace'
import commonjs from 'rollup-plugin-commonjs'
import { uglify } from 'rollup-plugin-uglify'
const PACKAGE_NAME = process.env.PACKAGE_NAME
const ENTRY_FILE = "./src/Swipeable.js"
const OU... |
'use strict'
const assert = require('assert')
describe('resourceFilter', () => {
const Filter = require('../../src/resource_filter')
describe('getExcluded', () => {
const filter = new Filter({})
describe('private', () => {
it('returns empty array', () => {
let excluded = filter.getExcluded... |
'use strict'
const Shared = require('@mojaloop/central-services-shared')
const BaseError = Shared.BaseError
const Category = Shared.ErrorCategory
const InvalidResponseError = class extends BaseError {
constructor (message) {
super(Category.INTERNAL, message)
}
}
module.exports = InvalidResponseError
|
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from datadog_api_client.v1.model_utils import ( # noqa: F401
ApiTypeError,
Mo... |
from pylivetrader.api import (
attach_pipeline,
date_rules,
get_datetime,
time_rules,
order,
get_open_orders,
cancel_order,
pipeline_output,
schedule_function,
)
from pipeline_live.data.iex.pricing import USEquityPricing
from pipeline_live.data.iex.fundamentals import IEXCompany, IEX... |
import React, {Component} from 'react';
import ProductGallery from './ProductGallery';
import ProductVariants from './ProductVariants';
import ProductDetails from './ProductDetails';
import ProductBtn from './ProductBtn';
class ProductFull extends Component {
constructor(){
super();
this.state = {
selectedImg... |
module.exports = {
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components"
],
"rules": {
"unit-whitelist": ["rem"]
}
};
|
import React from "react"
import SEO from "../components/seo"
import Footer from "../components/footer"
const NotFoundPage = () => (
<>
<SEO title="404: Not found" />
<div className="bg-gray-300 h-screen w-full flex items-center justify-center -mt-24 md:-mt-32">
<div className="text-center max-w-md">
... |
const siteMetadata = {
title: `STEFFIE HARNER | Tokyo-based cyberpunk model & software engineer`,
siteUrl: `https://cybersteffie.netlify.com`,
capitalizeTitleOnHome: false,
logo: `/images/logo.png`,
icon: `/images/icon.png`,
headshot: `/images/headshot.png`,
titleImage: `/images/wall.... |
var util = require('util');
var spawn = require('child_process').spawn;
var path = require('path');
var dbus = require('dbus-native');
var UbuntuReporter = function(helper, logger) {
var log = logger.create('reporter.ubuntu');
var notifications = null;
var notificationId = 0;
var sessionBus = dbus.syst... |
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return"other";return n==1?"one":"other"}},messages:{"% of parent":"% del padre","% of total":"% del total","(Events)":"(Eventos)","(Extension)":"(Extensi\xF3n)","(already added to this object)":"(ya se ha a\xF1adido a este objeto)","(alr... |
/*
Copyright (c) 2020, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { LightningElement, wire } from 'lwc';
import { useQuery, useMutation } from '@lwc... |
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/src/serviceworker/worker.js').then(() => {}).catch(() => {});
});
}
|
import React, { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
Alert,
KeyboardAvoidingView,
StatusBar,
StyleSheet,
TextInput,
View,
Platform,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { Button } from ... |
###########################################################################
#
# Copyright 2020 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/l... |
import actionTypes from '../actiontypes';
import states from './states';
export default function filter_details(state = states.filter_details, action) {
switch (action.type) {
case actionTypes.FILTERS_LOADING:
return {
...state,
loaders: {
...... |
var Validator={isEmail:function(s){return this.test(s,'^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$');},isAbsUrl:function(s){return this.test(s,'^(news|telnet|nttp|file|http|ftp|https)://[-A-Za-z0-9\\.]+\\/?.*$');},isSize:function(s){return this.test(s,'... |
function t(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
console.log("Link established!")
const BrowserWindow = require('electron').remote.BrowserWindow
const newWindowBtn = document.getElementById('fra... |
const nodemailer = require('nodemailer');
const fs = require('fs');
const pug = require('pug');
class AuthInfo {
constructor(username, password) {
this.user = username;
this.pass = password;
}
}
class Emailer {
static sendMail(destinationEmail, subject, template, data) {
return new Promise((resolve,... |
#!/usr/bin/python
"""
fastascan() - Coursera Python for Genomic Science Final Project
Ian Waring, Software Enabled Services Ltd, Monday 28th Sep 2015
Usage: fastascan('Filename')
where Filename is the FASTA format file to be analysed
"""
import sys
import operator
# First some support functions
def has_stop_codon(... |
"""
WSGI config for DjangoNationalGeographic 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.en... |
""" Black Code Collective Meetup Api """
import os
import requests
import logging as log
class MEETUP(object):
def __init__(self):
self.base_url = 'https://api.meetup.com'
self.key = "key={}".format(os.environ.get('MEETUP_API'))
self.group_urlname = 'Black-Code-Collective'
self.eve... |
# Copyright 2017 AT&T Intellectual Property. All other 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... |
import itertools
import logging
import random
import string
from pyinsect.documentModel.comparators import SimilarityHPG, SimilarityVS
from pyinsect.documentModel.representations.DocumentNGramGraph import DocumentNGramGraph
logger = logging.getLogger(__name__)
class HPGTestCaseMixin(object):
graph_type = None
... |
import React from "react"
import newsletter from "./newsletter.module.scss"
import NewsletterForm from "../forms/newsletterForm"
const Newsletter = ({ path }) => (
<section id={newsletter.newsletter}>
<h2 className="screen_reader_text">Newsletter</h2>
<div>
<div className={newsletter.h... |
import {push} from 'react-router-redux';
import * as con from 'app/constants/dialogs';
import API from 'app/utils/API';
/**
* Simply redirects user.
* @param {String} location - Url, where to redirect
* @return {Function} dispatch - Function for the reducer
*/
export function redirectTo(location) {
retur... |
function compute()
{
var principal = document.getElementById("principal").value;
var rate = document.getElementById("rate").value;
var years = document.getElementById("years").value;
var interest = principal * years * rate /100;
var year = new Date().getFullYear()+parseInt(years);
if (principal ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Looker Data Sciences, Inc.
*
* 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 rig... |
import Document, { Head, Main, NextScript } from 'next/document'
import { ServerStyleSheet, injectGlobal } from 'styled-components'
export default class MyDocument extends Document {
static getInitialProps ({ renderPage }) {
const sheet = new ServerStyleSheet()
const page = renderPage(App => props => sheet.c... |
// ************************************************************************* //
// Strict mode should not be used, as the roll20 script depends on this file //
// Do not use classes //
// ************************************************************************* //
... |
# Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram 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... |
/**
* Column chart class factory
*/
(function() {
'use strict';
function ColumnChartFact(BaseChart) {
function ColumnChart($scope) {
BaseChart.apply(this, [$scope]);
this.setType('column');
$scope.item.isBtnZero = true;
$scope.item.isBtnValues = true;
... |
import React, { Component } from 'react';
import { View, Text, StyleSheet, ListView } from 'react-native';
import StepIndicator from 'react-native-step-indicator';
import dummyData from './data';
const stepIndicatorStyles = {
stepIndicatorSize: 30,
currentStepIndicatorSize:40,
separatorStrokeWidth: 3,
currentS... |
// Responsible for the managing the ui for a single attachment,
// used within AssetComposerView.
slices.AttachmentView = Backbone.View.extend({
events: {
'change' : 'update'
},
tagName: 'li',
template: Handlebars.compile(
'<div class="attachment-thumb"></div>' +
'<div class="attachment-fields"><... |
const _ = require('lodash')
const path = require('path')
const got = require('got')
const { EthHdWallet } = require('eth-hd-wallet')
const { createLog } = require('./utils/log')
const { getMatchingNetwork, defaultGetTxParams, execCall } = require('./utils')
const { ADDRESS_ZERO } = require('../utils/constants')
const ... |
/*
* /MathJax/localization/kn/HelpDialog.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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... |
// page init
jQuery(function () {
"use strict";
initTabs();
initIsoTop();
initbackTop();
initLightbox();
initGoogleMap();
initNavOpener();
initPreLoader();
//initCountDown();
initSlickSlider();
initStickyHeader();
initCustomScroll();
new WOW().init();
});
jQuery(win... |
import React from 'react';
import ListViewComponent from '../ListViewComponent';
import renderer from 'react-test-renderer';
const props = {
"noOfChildren":3,
"btnChoices":["Male","Female","Other"],
"formProps":{
"initial":"Male",
}
};
const lvInst = new ListViewComponent(prop... |
import { storiesOf } from '@storybook/react'
import React from 'react'
import { domain } from '../storyConsts'
import { FloatingPlainCaveHeader, PlainCaveHeader } from './PlainCaveHeader'
storiesOf(domain('PlainCaveHeader'), module)
.add('Default', () => (
<div
style={{
margin: 20
}}
>
... |
const INPUT_CHANGE_PREPAID = 'INPUT_CHANGE_PREPAID';
let initialState = {
value: 1,
placeholder: 'Минимальный аванс 1 месяц',
status: false,
width: 0,
prof: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
abon: ['Абонент 6 месяцев', 'Абонент 12 месяцев']
}
export const... |
import request from '@/utils/request'
export function login(data) {
return request({
url: '/login',
method: 'post',
data
})
}
export function getInfo(token) {
return request({
url: '/user/logged_in',
method: 'get'
})
}
export function logout() {
return request({
url: '/user/logout',... |
const { expect } = require('chai');
const feathers = require('@feathersjs/feathers');
const transactionManager = require('../lib/transaction-manager');
const adapter = require('../lib');
const mongoose = require('mongoose');
const {
Candidate,
Token,
Customer
} = require('./models');
const app = feathers()
.us... |
!function(i){var c,l='<svg><symbol id="iconchart" viewBox="0 0 1024 1024"><path d="M0 438.856h292.568V1024H0V438.856zM731.432 219.44H1024V1024H731.432V219.432zM365.712 0h292.576v1024H365.712V0z" ></path></symbol><symbol id="iconcomponent" viewBox="0 0 1024 1024"><path d="M0.004 0h438.856v438.856H0.004V0z m0 585.144h43... |
// Copyright (c) 2021, Framras AS-Izmir and contributors
// For license information, please see license.txt
frappe.ui.form.on('UBL TR Temperature', {
// refresh: function(frm) {
// }
});
|
class Content extends React.Component {
static get propTypes() {
return {
children: React.PropTypes.object
};
}
constructor(props) {
super(props);
}
render() {
return (
<div className="content">
{ this.props.children && Reac... |
import React from "react";
import { withStyles } from "@material-ui/styles";
import { withRouter } from "react-router-dom";
import AlertBox from "../../../../../common/AlertBox";
import StyledButton from "../../../../../common/StyledButton";
import { useStyles } from "./styles";
import MetamaskFlow from "./MetamaskFlo... |
// 全局 CSS
// 打包时会被自动抽取并整合到 extract.all.[hash].css
// 引用方法: 无需引用,会自动注入到模板中
import './global.less';
// Critical 过程
const doCricital = () => {
if (window && window.__IS_CLITICAL_INITED__) return true;
// 检查 UA / 客户端环境
{
let platform = 'not-specified';
const iOSversion = () => {
if... |
var searchData=
[
['unite_1407',['unite',['../class_qwt_interval.html#a5e67ab7a363a6eafce33899e7cb14aac',1,'QwtInterval']]],
['updateaxes_1408',['updateAxes',['../class_qwt_plot.html#a1fb2dbc3697a66024d48c08b1d18f8a5',1,'QwtPlot']]],
['updatecanvasmargins_1409',['updateCanvasMargins',['../class_qwt_plot.html#aef8... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Communications Representative", "CONTRIBUTION AMOUNT (F3L Bundled)": "69.24", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "INT'L ASSOCIATION OF MACHINISTS", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "2400 SOUTH GLEBE ROAD #708", "CONTRIBUTOR MIDDLE NA... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/... |
// const ZOOMRATIO = 2.5;
export default function (e, imageUrl) {
e.preventDefault();
// probably a lot faster to just set this as a state on style change
const i = new Image();
i.src = imageUrl;
// const imgWidth = i.width * ZOOMRATIO;
// const imgHeight = i.height * ZOOMRATIO;
const screenWidth = win... |
import {Apis} from "bitsharesjs-ws";
import idb_helper from "idb-helper";
import iDBRoot from "idb-root";
const DB_VERSION = 2; // Initial value was 1
const DB_PREFIX = "graphene_v2";
const WALLET_BACKUP_STORES = [
"wallet", "private_keys", "linked_accounts"
];
const MAIN_NET_CHAINID = "dfed6e6fb7a0a9d2211dad2f0bb... |