text stringlengths 3 1.05M |
|---|
import { Api } from '../axios';
const index = (search) => {
return Api().get('icategory', {
params: {
search: search
}
});
};
const post = (icategory) => {
return Api().post('icategory', icategory);
};
const getICategory = (icategoryId) => {
return Api().get(`icategory/${ica... |
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 12 16:19:28 2015
@author: wangronin
"""
import pdb
import numpy as np
from numpy import pi, log
## SMSE measurement
# test_y is the target, pred_y the predicted target, both 1D arrays of same length
def SMSE(test_y, pred_y):
se = []
target_variance = np.var(test... |
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyCzK57EVa5O_4_FGX9pEjLPiQFLZ6whUI4",
authDomain: "commentbox-aa80c.firebaseapp.com",
databaseURL: "https://commentbox-aa80c.firebaseio.com",
projectId: "commentbox-aa80c",
storageBucket: "",
messagingSenderId: "9507... |
"use strict";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJwdXNoYnVsbGV0L3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6W119 |
var searchData=
[
['offset',['Offset',['../classpangolin_1_1_stream_info.html#aaf61a6adb5fa2b5848290b324a910048',1,'pangolin::StreamInfo']]],
['operator_5b_5d',['operator[]',['../structpangolin_1_1_view.html#aa6bf61cec2832c355364da80a71fa5eb',1,'pangolin::View']]],
['overflow',['overflow',['../classpangolin_1_1th... |
module.exports = {
title: 'Netlify CMS + VuePress',
description: 'Netlify + VuePress',
themeConfig: {
docsDir: 'docs',
repo: 'yoanmarchal/vuepress-netlify-cms',
sidebar: [
'/',
'/welcome',
'/test'
],
nav: [
{
text: 'Admin',
link: '/admin/#/',
}
... |
import { SET_CURRENT_USER, USER_LOADING } from "../actions/types";
const isEmpty = require("is-empty");
const initialState = {
isAuthenticated: false,
user: {},
loading: false
};
export default function(state = initialState, action) {
switch (action.type) {
case SET_CURRENT_USER:
return {
.... |
/*
* heatmap.js v2.0.0 | JavaScript Heatmap Library
*
* Copyright 2008-2014 Patrick Wied <heatmapjs@patrick-wied.at> - All rights reserved.
* Dual licensed under MIT and Beerware license
*
* :: 2014-08-05 01:42
*/
(function(a){var b={defaultRadius:40,defaultRenderer:"canvas2d",defaultGradient:{.25:"rgb(0,0,255)... |
# Used for defining the global structures used throughout LeetCode
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class NaryNode:
def __init__(self, val=None, children=None):
self.val = val
self.child... |
# Copyright The PyTorch Lightning team.
#
# 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 i... |
import state from "../../state";
const getInfo = async (message, sender) => {
const connector = state.getState().getConnector();
const info = await connector.getInfo();
return {
data: {
node: {
alias: info.data.alias,
pubkey: info.data.identity_pubkey,
color: info.data.color,
... |
import inspect
import json
import logging
import urllib.error
from datetime import date, timedelta
from decimal import ROUND_HALF_UP, Decimal
import vat_moss.exchange_rates
from django.conf import settings
from django.core.files.base import ContentFile
from django.core.serializers.json import DjangoJSONEncoder
from dj... |
import os
import untangle # conda install -c conda-forge untangle
from setuptools import find_packages, setup
pom = untangle.parse("pom.xml")
version = pom.project.version.cdata
where = os.path.join("src", "main", "python")
setup(
name='filegdb',
version=version,
description='FileGDB',
author='Mansou... |
# -*- coding: utf-8 -*-
"""Pull request tests meant to be run with pytest."""
import os
import sys
import pytest
from moviepy.video.fx.scroll import scroll
from moviepy.video.io.VideoFileClip import VideoFileClip
from moviepy.video.tools.interpolators import Trajectory
from moviepy.video.VideoClip import ColorClip, Im... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import MapView from '@/views/MapView'
import LoadingView from '@/views/LoadingView'
import store from '@/modules/store'
import appLoadingManagementRouterPlugin from './appLoadingManagement.routerPlugin'
import storeSyncRouterPlugin from './storeSync/storeSync.r... |
module.exports = (io, app) =>
io.sockets.on('connection', function(socket){
messages = [];
users = [];
connections = [];
connections.push(socket);
console.log("connected: % of sockets connected", connections.length);
console.log('this is the server talking');
//Disconnect
... |
import UUT from './ContentStateBuilder';
import { contentState as expected } from '../tests/contentState';
import { butKey, but } from '../tests/test-utils.js';
/* eslint-disable max-len*/
describe('content state text builder', () => {
it('should add a single plain text block', () => {
const contentState = new U... |
const config = require('./tool/config.js')
const path = require('path')
config.setAbsRootPath(path.resolve('.'))
const express = require('express')
const bodyParser = require('body-parser')
const dbUtils = require('./tool/db-utils.js')
const log = require('./tool/log.js')
const auth = require('./auth.js')
const Const... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _SvgContainer = require('./SvgContainer');
var _SvgContainer2 = _interopRequireDefault(_SvgContainer);
function _interopRequireDefault(obj) { return obj &... |
'use strict'
var util = require('util')
, path = require('path')
, fs = require('fs')
, EventEmitter = require('events').EventEmitter
, logger
, NAMES = require('./metrics/names.js')
, feature_flag = require('./feature_flags.js')
, flatten = require('./util/flatten')... |
"""
Copyright 2018 IBM Corporation
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... |
'use strict'
const Joi = require('joi')
const { ServiceTester } = require('../tester')
const { isMetric, isMetricOverTimePeriod } = require('../test-validators')
const isHexpmVersion = Joi.string().regex(/^v\d+.\d+.?\d?$/)
const t = (module.exports = new ServiceTester({ id: 'hexpm', title: 'Hex.pm' }))
t.create('do... |
module.exports = {
'facebookAuth': {
'clientID': '1764304390530081', // your App ID
'clientSecret': '5618b9fae389ef60aff5eab9b0ec0e58', // your App Secret
'callbackURL': 'http://boibazar.com/api/auth/facebook/callback'
},
'googleAuth': {
'clientID': '370202831760-d0777bbrqs... |
import React,{Component} from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router';
import {Navbar} from "react-bootstrap";
import {Nav} from 'react-bootstrap';
import {NavItem} from 'react-bootstrap';
class Header extends Component{
Redirect(address)
{
alert(address);
}
render()
{
... |
const fs = require('fs')
const packages = fs.readdirSync('./packages')
module.exports = {
projects: [
packages.map(name => {
return {
name,
displayName: name,
preset: 'ts-jest',
setupFiles: ['<rootDir>/scripts/jestSetUp'],
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{3712:function(e,t,r){"use strict";r.r(t),r.d(t,"icon",(function(){return a}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&... |
from panda3d.core import DepthOffsetAttrib, NodePath, Vec3, Vec4, TextNode
from direct.directnotify import DirectNotifyGlobal
from direct.fsm.FSM import FSM
from direct.interval.FunctionInterval import Wait
from direct.interval.IntervalGlobal import Func, LerpHprInterval, LerpScaleInterval, LerpFunctionInterval
from di... |
import checkArrayLength from '../checkArrayLength';
describe('checkArrayLength', () => {
it('throws on different Length', () => {
const expected = /x and y arrays must have the same length/;
expect(() => checkArrayLength([], [1])).toThrow(expected);
expect(() => checkArrayLength([1], [])).t... |
import datetime
import unittest
import uuid
from copy import deepcopy
from django.core.exceptions import FieldError
from django.db import DatabaseError, connection, models, transaction
from django.db.models import CharField, Q, TimeField, UUIDField
from django.db.models.aggregates import (
Avg, Count, Max, Min, St... |
import { classNames } from '@ember-decorators/component';
import classic from 'ember-classic-decorator';
import BaseField from './base-field';
@classic
@classNames('form-fields-checkboxes-field')
export default class CheckboxesField extends BaseField {}
|
import React, { Component } from 'react';
import { createPortal } from 'react-dom';
import PropTypes from 'prop-types';
const modalRoot = document.querySelector('#modal-root');
class Modal extends Component {
static propTypes = {
onClose: PropTypes.func.isRequired,
largeImage: PropTypes.string.isRequired,
... |
var octonode = require('octonode'),
url = require('url'),
querystring = require('querystring'),
curry = require('curry'),
async = require('async'),
minimatch = require('minimatch'),
parseLinks = require('parse-link-header'),
extend = require('extend'),
stats = require('./lib/stats'),
... |
/**
* (c) 2018 Hajime Yamasaki Vukelic
* Some rights reserved.
*/
import { replace } from "./replace";
describe("replace", () => {
it("should replace characters in a string", () => {
const s = "testable";
const actual = replace("t", "T", s);
const expected = "Testable";
expect(actual).toBe(expect... |
import axios from 'axios'
import React, { Component } from 'react'
export class Home extends Component {
constructor() {
super()
this.state = {
apiData=[]
}
}
componentDidMount = async ()=>{
const url = "http://localhost:8000/retreive"
const responsData = await axi... |
#!/usr/bin/env python
#
# Vex Robotics Magnet Roomba Thing
#
# TODO:
# - Figure out GPS, mapping
# - Move all config variables to a .json or something
# - venv
# - Make a webapp to control this (maybe have this one as a the backend)
# - Object Detection (sonar, bumpers, cv, etc.)
#
#
# imports
import json... |
let c, gl, ext;
let then = 0;
let cubeTexture = null;
const m = new matIV();
const q = new qtnIV();
const textures = [];
const cameraQt = q.identity(q.create());
onload = function() {
const eRange = document.getElementById('range');
const eCheck = document.getElementById('checkbox');
c = document.getElementById... |
#!/usr/bin/python
#
# Copyright 2019 Zack T (mlbz521)
#
# Inspired by Per Olofsson's "Unarchiver.py", Matt Hansen's "WinInstallerExtractor.py", and Yoann Gini's "Zoom7zUnarchiver.py"
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... |
'''
wikipedia: part of the repofish python package
'''
from wikipedia.exceptions import PageError, DisambiguationError
from repofish.utils import convert_unicode
from wikipedia import search, page, WikipediaPage
import unicodedata
import re
def search_page(searchterm):
# Assume the user knows the specific page,... |
import React from 'react';
export const Sidebar = props => (
<div className="sidebar">
Sidebar
</div>
)
export default Sidebar;
|
const mongoose = require('mongoose');
const UserGlobalTotalSchema = new mongoose.Schema({
userId: { type: String, required: true, index: true, unique: true },
score: { type: Number, required: true, index: true, min: 1 },
lastKnownUsername: { type: String, required: true },
});
const UserServerTotalSchema = new ... |
version = (0, 5, 6)
|
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
// Multilevel Navigation/Smartmenu Script
$(function() {
// activate smartmenu
$('#main-menu').smartmenus();
// resize menu
var $window = $(window),
$nav = $('#main-menu');
$window.on('resize', function() {
if ($window.width() > 991) {
$nav.show();
$("#main-m... |
function setup(){
createCanvas(400,400);
noStroke();
}
function draw(){
background("green");
ellipse(mouseX, mouseY, 30);
}
|
/*! For license information please see 2.c4d34e8e.chunk.js.LICENSE.txt */
(this["webpackJsonpmy-react"]=this["webpackJsonpmy-react"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(304)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39);function o(e,t){var n=Object.keys(e);if(Object.ge... |
import getElement from './getElement';
import { getToolState } from '../../../stateManagement/toolState.js';
import addLabelmap3D from './addLabelmap3D';
import state from './state';
import external from '../../../externalModules';
/**
* Returns the index of the active `Labelmap3D`.
*
* @param {HTMLElement|string}... |
const express = require('express');
const Booking = require('../models/Bookings');
const Room = require('../models/Room');
const User = require('../models/Users');
const router = new express.Router();
const firebase = require('../middlewares/firebase');
//Gets all the bookings made by an user and returns an array.
rout... |
import React from 'react';
import styled from 'styled-components';
import { getThemeAsPlainTextByKeys, innerMerge } from '../utils';
import defaultTheme from '../theme/defaultTheme';
const Elem = styled.div`
width: 60px;
display: inline-block;
font-size: ${props => props.fontSize};
height: 100%;
text-align:... |
from .affine_dynamics import AffineDynamics
from .affine_quad_clf import AffineQuadCLF
from .configuration_dynamics import ConfigurationDynamics
from .configuration_trajectory_dynamics import ConfigurationTrajectoryDynamics
from .dynamics import Dynamics
from .fb_lin_dynamics import FBLinDynamics
from .fully_actuated_r... |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/filter"]=t():e["feeds/filter"]=t()}(self,(function(){return function(){var e,t,n={151:function(e,t,n){"use strict";n.r(t),n.d(t,{hasBlockedPatter... |
/*
Script creates entitlements file with the list of hosts, specified in config.xml.
File name is: ProjectName.entitlements
Location: ProjectName/
Script only generates content. File it self is included in the xcode project in another hook: xcodePreferences.js.
*/
var path = require('path');
var fs = require('fs');
v... |
import os
import subprocess
import unittest
import pysam
from bsbolt.Utils.AlignmentEvaluation import get_read_reference_info
from tests.TestHelpers import bsb_directory
bsb_wgbs_masked_index_commands = ['python3', '-m', 'bsbolt', 'Index', '-G',
f'{bsb_directory}tests/TestData/BSB_t... |
import React from 'react';
import WithEmberSupport from '@rewardops-forks/ember-react-components';
const ArrowFunctionComponent = ({ children, name }) => {
return (
<div id="wrapper">
<div data-test-name>{name}</div>
{children}
</div>
);
};
export default WithEmberSupport(ArrowFunctionComponen... |
import json
import copy
import pyblish.api
from avalon import io
class CollectInstances(pyblish.api.ContextPlugin):
label = "Collect Instances"
order = pyblish.api.CollectorOrder - 1
hosts = ["tvpaint"]
def process(self, context):
workfile_instances = context.data["workfileInstances"]
... |
import tw from './macro'
// https://tailwindcss.com/docs/isolation
tw`isolate`
tw`isolation-auto`
|
/* global cy */
const selectors = {
heading: "[data-test-label='landing-header']",
callToAction: "[data-test-label='landing-big-cta']",
certifications: "[data-test-label='certifications']",
testimonials: "[data-test-label='testimonial-cards']",
landingPageImage: '.landing-page-image'
};
const certifications ... |
$(window).scroll(function(){
var y = $(window).scrollTop();
if(y < 10){
$('.main-nav').removeClass("nav-gradient");
}
if (y > 10){
$('.main-nav').addClass("nav-gradient");
}
});
$('.img-s').click(function(){
$('#modal-img').attr('src',$(this).attr('src'));
})
//Rotating Menu Share Button DesainKode
$(d... |
'use strict';
var daos = {
User: require('./user'),
UserLight: require('./userlight'),
UserOptimized: require('./useroptimized')
};
module.exports = daos;
|
import { Children } from 'react-core/Children';
import { PropTypes } from 'react-core/PropTypes';
import { Component } from 'react-core/Component';
import { PureComponent } from 'react-core/PureComponent';
import { createPortal } from 'react-core/createPortal';
import {
createElement,
cloneElement,
isValidE... |
import React, {Component} from 'react';
import {MAPBOX_STYLES, DATA_URI} from '../../constants/defaults';
import App from 'website-examples/terrain/app';
const MAPBOX_TOKEN = process.env.MapboxAccessToken; // eslint-disable-line
const LOCATIONS = {
'Mt. St Helens': {
latitude: 46.2,
longitude: -122.18,
... |
import isArray from 'lodash/isArray';
import BN from 'bn.js';
import {soliditySha3} from '../../src/SoliditySha3';
/**
* soliditySha3 test
*/
describe('SoliditySha3Test', () => {
const tests = [
{
values: [
true,
{value: true, type: 'bool'},
{v:... |
angular.module('mosaink.common')
.directive('mosCurrentPageClass', function($rootScope, $location) {
var e;
var addedClassName = "";
var classPrefix = "page-";
var setCurrentPage = function() {
var currentPageName = $location.path().substr(1).split("/")[0];
if (!currentPageName) {
return;
}... |
var dbm = global.dbm || require('db-migrate');
var type = dbm.dataType;
exports.up = function(db, callback) {
db.runSql("alter table participants alter column paymenttoken type VARCHAR(255);",callback);
};
exports.down = function(db, callback) {
db.runSql("alter table participants alter column paymenttoken type V... |
const {app, BrowserWindow} = require('electron');
function createWindow() {
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
});
win.loadFile('index.html');
win.webContents.openDevTools();
}
app.whenReady(... |
let nock = require('nock');
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
.post('/keys/recoverKeyName-cancreateakeywithnotBefore-/create')
.query(true)
.reply(401, {"error":{"code":"Unauthorized","message":"Request is miss... |
self.__precacheManifest = [
{
"revision": "2ecc7173cfb0129ca7e6",
"url": "/ReactiveReport/static/js/runtime~main.9003f3a7.js"
},
{
"revision": "5fe746d1610c79357d42",
"url": "/ReactiveReport/static/js/main.6c4e6d55.chunk.js"
},
{
"revision": "622da30f5bfdec8bc9f1",
"url": "/ReactiveRep... |
window.addEventListener('DOMContentLoaded', () => {
/**
* modal
*/
const modal = document.querySelector('.modal');
new Autocomplete('modal-example', {
onSearch: ({ currentValue }) => {
// local data
const data = [
{ name: 'Walter White' },
{ name: 'Jesse Pinkman' },
... |
"""Parse HTML pages.
"""
from bs4 import BeautifulSoup # type: ignore
import nltk_utils # type: ignore
import parser_types as PT # type: ignore
import re # type: ignore
from typing import List, Tuple # type: ignore
################################################################################
# Parse Pages other t... |
import React from 'react';
import {
Switch, Route, useRouteMatch, useHistory,
} from 'react-router-dom';
import { Nav, Image } from 'react-bootstrap';
import Profile from './Profile';
import useAuthorizedUser from '../../hooks/useAuthorizedUser';
const UserPage = () => {
const { path, url } = useRouteMatch();
co... |
import React from "react"
import { Link, graphql } from "gatsby"
import Bio from "../components/bio"
import Layout from "../components/layout"
import Seo from "../components/seo"
class BlogIndex extends React.Component {
render() {
const { data } = this.props
const siteTitle = data.site.siteMetadata.title
... |
"""
Bootstrap saved model and predict cost
"""
import logging
import os
import numpy as np
import azureml.train.automl
from datetime import datetime
from sklearn.externals import joblib
script_path = os.path.abspath(__file__)
script_dir = os.path.dirname(script_path)
model_path = os.path.join(script_dir, 'model.pkl')... |
QUnit.testStart(function() {
const markup =
'<style>\
table {table-layout: fixed;}/*T428108*/\
.dx-scrollable-content {\
padding: 0 !important;\
}\
</style>\
<div id="pivotGrid"></div>\
<div class="dx-pivotgrid">\
<div id="pivotArea" class="dx-pivotgrid-area-data dx-pivotgrid-vertical-header... |
// index.js
Page({
data: {
sidebarArr: [
'外卖外送',
'美团优选',
'电商购物',
'美食餐饮',
'休闲娱乐',
'酒店旅游',
'交通出行',
'丽人医美',
'生活服务'
],
iconArr1: [
{
iconPath: '/img/classificiation/01_all.png',
text: '全部'
},
{
... |
import isToday from "date-fns/isToday";
export const alphabeticalSortFunctionForTenantsBasedOnName = (firstEl, secondEl) => {
if (firstEl.name.toUpperCase() < secondEl.name.toUpperCase()) {
return -1;
}
if (firstEl.name.toUpperCase() > secondEl.name.toUpperCase()) {
return 1;
}
return 0;
};
export co... |
const path = require('path');
const { promisify } = require('util');
const glob = promisify(require('glob'));
const Command = require('./commands.js');
const Event = require('./events.js');
module.exports = class Util {
constructor(client) {
this.client = client;
}
isClass(input) {
return typeof input === 'fu... |
var path = require("path");
/**
* GET /instance-storage/instances?query=title=ba*
*
* accept: application/json
* content-type: application/json
* x-okapi-tenant: diku
* x-okapi-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6IjUzMDAwZTM5LTliM2ItNWM2My1hYjE3LTcwMmJkMWM3ZGQ2MyIsImlhdCI6MTYxOTYw... |
import numpy as np
import tensorflow as tf
from graphnn import GraphNN
from mlp import Mlp
from scipy.stats import rankdata
def model_builder(
d,
centralities,
learning_rate = 2e-5,
parameter_l2norm_scaling = 1e-10,
global_norm_gradient_clipping_ratio = 0.65
):
# Build the model
# Build a dictionary t... |
const exposes = require('../lib/exposes');
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
const reporting = require('../lib/reporting');
const extend = require('../lib/extend');
const e = exposes.presets;
module.exports = [
{
zigbeeModel: ['WATER_TPV14'],
... |
process.mixin(require("./common"));
http = require("http");
url = require("url");
PORT = 8888;
var responses_sent = 0;
var responses_recvd = 0;
var body0 = "";
var body1 = "";
http.createServer(function (req, res) {
if (responses_sent == 0) {
assert.equal("GET", req.method);
assert.equal("/hello", url.parse... |
/*! jQuery UI - v1.10.4 - 2014-04-02
* http://jqueryui.com
* Includes: jquery.ui.effect.js, jquery.ui.effect-shake.js
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i|... |
import styled from 'react-emotion';
const DottedLine = styled('hr')`
border: 0;
margin: 0;
height: 1px;
border-bottom: 1px dashed #ececec;
`;
export default () => {
return (
<div>
<DottedLine />
<DottedLine />
<DottedLine />
<DottedLine />
</div>
);
};
|
import ReactDOM from 'react-dom'
import React, { Component, Fragment } from 'react'
import registerServiceWorker from './registerServiceWorker'
import { Route, HashRouter as Router, Switch, Link } from 'react-router-dom'
import App from './components/App'
import Nav from './components/Nav'
import Button from './compo... |
#!/usr/bin/env python
# Copyright 2018 The Bazel 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 req... |
# -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# 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 applicab... |
# coding=utf-8
from uuid import uuid4
from pkg_resources import resource_filename
from pyramid.i18n import make_localizer
from sqlalchemy import (
Boolean,
Column,
Date,
DateTime,
Enum,
Integer,
ForeignKey,
String,
Text,
text,
)
from sqlalchemy.orm import backref, relationship
... |
"use strict"
var async = require('async')
var superagent = require('superagent')
var addons = module.exports = {}
addons.getPrices = function(slugs, cb) {
// Assemble an empty API response
if (!slugs || slugs === []) {
return cb(null, {
plans: [],
totalPrice: "Free",
totalPriceInCents: 0
... |
class EnvironmentVarError(Exception):
pass
class NotSupportedUploader(Exception):
pass
class UploaderInputError(Exception):
pass
class FileUploadError(Exception):
pass
class SpecsFileNotFoundError(Exception):
pass
class SecretsFileNotFoundError(Exception):
pass
class WrongSecretsFormatErr... |
// Copyright (C) 2017 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: |
Collection of assertion functions used throughout test262
defines: [assert]
---*/
function assert(mustBeTrue, message) {
if (mustBeTrue === true) {
... |
// Copyright (c) 2021, TZCODE SRL and contributors
// For license information, please see license.txt
frappe.ui.form.on('Tax Segment', {
refresh(frm) {
frm.trigger("set_queries");
},
set_queries(frm, cdt, cdn) {
frm.fields_dict["tax_accounts"].grid.get_field("tax").get_query = function (doc, cdt, cdn) {
cons... |
//Кнопки переключения страниц
for(var iters=0; iters<30; iters++){
var page_code_1 = "$('.actual_shop_pager_"+ iters +"').on( 'click', function() {";
var page_code_2 = "var page_id = $('.actual_shop_pager_"+ iters +"').val();";
var page_code_3 = "var find_string = $('#find_area').val();";
var page_code_4 = "$.ajax(... |
$().ready(function() {
validateRule();
});
$.validator.setDefaults({
submitHandler : function() {
save();
}
});
function save() {
var formData = new FormData($("#signupForm")[0]);
$.ajax({
type : "POST",
url : "/activiti/process/save",
data: formData,
async: false,
cache: fals... |
const replace = require('@rollup/plugin-replace')
const buble = require('@rollup/plugin-buble')
const vue = require('rollup-plugin-vue')
const resolve = require('@rollup/plugin-node-resolve').nodeResolve
const commonjs = require('@rollup/plugin-commonjs')
const json = require('@rollup/plugin-json')
const alias = requir... |
import Vue from 'vue'
import axios from 'axios'
import App from './App'
import store from './store'
import './index.css'
import { Dialog, Form, FormItem, InputNumber, Button } from 'element-ui'
Vue.use(Dialog)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(InputNumber)
Vue.use(Button)
if (!process.env.IS_WEB) Vue.use(requ... |
{"name":"add new attribute : Google Shopping Eligible=339, Google Shopping Last Synced On=340","work":"t","_t":1560211663388,"_id":"mN1BTRj0sAgY4erU","end":1560211663388,"detail":"Magento.MySqlDataBase.ExecuteScalar(\"delete FROM catalog_product_entity_varchar where entity_id=35120 and attribute_id=\" + m.entity_id);\... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'th', {
label: 'ลักษณะ',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: '... |
# Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//table[3]//tr/td[3]/table[3]//tr/td[@class='text_den_to']/strong",
'price' : "//tr/td/table//tr/td/table[1]//tr/td[3]/table[7]//tr/td... |
const execute = require('../utils/execute');
const { blue, red, green } = require('../utils/colors');
const { existsSync, mkdirSync } = require('fs');
const { join } = require('path');
const devDir = join(process.cwd(), 'dev');
const repos = {
'auth': 'https://github.com/greenpress/authentication-service',
'admin':... |
webpackJsonp([11],{591:function(e,t,s){var n,l,i={};n=s(592),Object.keys(n).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/builder/newsletter/app/field-newsletter-lists.vue: named exports in *.vue files are ignored."),l=s(593),e.exports=n||{},e.exports.__esMod... |
/* eslint-disable react/prop-types */
/**
*
* WeatherList
*
*/
import React, { memo } from 'react';
import { Link } from 'react-router-dom';
import Moment from 'moment';
import { Li, Span, Img, Ul, H1, DateFormat } from './styledComponents';
// import PropTypes from 'prop-types';
// import styled from 'styled-comp... |
import { Dimensions, Platform, StatusBar } from 'react-native';
const { width, height } = Dimensions.get('window');
export default {
marginHorizontal: 10,
marginVertical: 10,
section: 25,
baseMargin: 10,
doubleBaseMargin: 20,
smallMargin: 7,
tinyMargin: 2,
horizontalLineHeight: 1,
iosStatusBarHeight... |