text stringlengths 3 1.05M |
|---|
/**
* (c) 2010-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import Highcharts from './Globals.js';
import './Utilities.js';
var Point,
H = Highcharts,
each = H.each,
extend = H.extend,
erase = H.erase,
fireEvent = H.fireEvent,
format = H.format,
isArray ... |
#!/usr/bin/env python
'''
IOSXE unit tests for Genie Vrf conf using CLI.
'''
# Python
import re
import unittest
from unittest.mock import Mock
# Genie
from genie.conf import Genie
from genie.tests.conf import TestCase
from genie.conf.base import Testbed, Device
from genie.libs.conf.vrf.vrf import Vrf
class test_vr... |
/* eslint-env node, jest */
import reducers from './reducers'
test('SET_SEARCH_STATE', () => {
let state
state = reducers({searchTerm: ''}, {type: 'SET_SEARCH_TERM', searchTerm: 'orange'})
expect(state).toEqual({searchTerm: 'orange'})
})
test('@@INIT', () => {
let state
state = reducers(undefined, {})
exp... |
/* ------------------------------------------------------------------------------
*
* Configuração do Datatable do Usuário
*
* ---------------------------------------------------------------------------- */
$(function() {
var associated = $("select[name='associated-permissions']");
var associated_cont... |
#!/usr/bin/env node
/**
* Copyright (c) 2017, Neap Pty Ltd.
* 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.
*/
'use strict'
const program = require('commander')
const readline = require('readline')
const p... |
/**
* @author Zahir Hadi Athallah <zhirrrstudio@gmail.com>
* @license MIT
*/
const axios = require('axios');
const searchNabi = (nabi) => {
return new Promise( async (resolve, reject) => {
await axios.get(`https://raw.githubusercontent.com/Zhirrr/My-SQL-Results/main/kisahnabi/${nabi}.json`)
.t... |
//01-MODULOS INDIVIDUALES MODULO CONTROLADOR })();
var controladorPresupuesto = (function () {
var Gasto = function (id, descripcion, valor) {
this.id = id;
this.descripcion = descripcion;
this.valor = valor;
};
var Ingreso = function (id, descripcion, valor) {
this.id = id;... |
import React from 'react';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { getUserId } from '../utils/getUserId';
import { postNewProject } from '../actions/projectActions';
import { toggleCreatingNewProject } from '../actions/appActions';
import { Button } from './styles/Button... |
class Solution:
def countBinarySubstrings(self, s):
"""
:type s: str
:rtype: int
"""
count_ls = [1]
for i in range(1, len(s)):
if s[i] == s[i-1]:
count_ls[-1] += 1
else:
count_ls.append(1)
result = 0
... |
# -*- coding: utf-8 -*-
# Copyright (C) 2010 CENATIC: Centro Nacional de Referencia de
# Aplicacion de las TIC basadas en Fuentes Abiertas, Spain.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions ... |
# numero = eval(input('Entre com um número inteiro: '))
#
# if numero % 2 == 0:
# print('Número informado é Par.')
# else:
# print('Número informado é Impar.')
#
# print('==' * 30)
# print('')
# for c in range(1, 11):
# if c % 2 == 0:
# print(f'{c} é par')
# else:
# print(f'{c} é Impar.'... |
from dispatch.enums import DispatchEnum
class FeedbackRating(DispatchEnum):
very_satisfied = "Very satisfied"
somewhat_satisfied = "Somewhat satisfied"
neither_satisfied_nor_dissatisfied = "Neither satisfied nor dissatisfied"
somewhat_dissatisfied = "Somewhat dissatisfied"
very_dissatisfied = "Ver... |
r"""
Finite lattice posets
"""
#*****************************************************************************
# Copyright (C) 2011 Nicolas M. Thiery <nthiery at users.sf.net>
#
# Distributed under the terms of the GNU General Public License (GPL)
# http://www.gnu.org/licenses/
#**********************... |
// @flow weak
import React from 'react';
import SwipeableViews from 'react-swipeable-views';
const styles = {
slide: {
padding: 15,
minHeight: 100,
color: '#fff',
},
slide1: {
backgroundColor: '#FEA900',
},
slide2: {
backgroundColor: '#B3DC4A',
},
slide3: {
backgroundColor: '#6AC... |
'use strict';
const { ChannelType } = require('discord-api-types/v9');
const { Channel } = require('./Channel');
const TextBasedChannel = require('./interfaces/TextBasedChannel');
const { RangeError } = require('../errors');
const MessageManager = require('../managers/MessageManager');
const ThreadMemberManager = requ... |
var searchData=
[
['input_5frequest',['input_request',['../namespaceapp_1_1input__request.html#aea4d1c47249b0959e3ff44c3b60cc7df',1,'app::input_request']]]
];
|
from PyQt5.QtWidgets import (QApplication, QDialog, QDialogButtonBox,
QFormLayout, QGroupBox, QLabel, QLineEdit, QPushButton, QSpinBox, QVBoxLayout,
QFileDialog, QMessageBox, QMainWindow, QTextEdit)
from PyQt5.QtCore import pyqtSlot
import os
import sys
import dict_utils
import roundrobin
class LargeMessageBox(QMain... |
/**
* The `Matter.Bounds` module contains methods for creating and manipulating axis-aligned bounding boxes (AABB).
*
* @class Bounds
*/
var Bounds = {};
module.exports = Bounds;
(function() {
/**
* Creates a new axis-aligned bounding box (AABB) for the given vertices.
* @method create
* @param {... |
module.exports = {
getData: function(ctx) {
var data;
if (ctx.instance)
data = ctx.instance;
else if (ctx.where)
data = ctx.data;
return data;
}
}; |
var quick__sort__vec__dec__map__real_8f90 =
[
[ "quick_sort_vec_dec_map_real", "quick__sort__vec__dec__map__real_8f90.html#ga99d7e6cdd23c0483949b67dfc8860044", null ]
]; |
import base64
import uuid
import os
import re
from openpyxl.chart import LineChart, Reference
from openpyxl.styles import PatternFill, Border, Side, Alignment, Font
from openpyxl.drawing.image import Image
from openpyxl import Workbook
from openpyxl.chart.label import DataLabelList
import openpyxl.utils.cell as format_... |
var should = require('should');
var UsernameDomainWrapper = require('../usernamedomain.js').UsernameDomainWrapper;
describe('DEFAULT WRAPPER', function(){
describe('default basic checks', function(){
it('its ok', function() {
UsernameDomainWrapper.should.be.ok();
});
});
describe('defau... |
"""Unit tests for the OWASP Dependency Check dependencies collector."""
from collector_utilities.functions import sha1_hash
from .base import OWASPDependencyCheckTestCase
class OWASPDependencyCheckDependenciesTest(OWASPDependencyCheckTestCase):
"""Unit tests for the OWASP Dependency Check metrics."""
METRI... |
const React = require('react')
const {
default: styled
} = require('styled-components')
const BaseComponent = props => {
return <svg width='100%' height='100%' viewBox='0 0 16 16' preserveAspectRatio='xMidYMid meet' {...props}><rect width='100%' height='100%' id='icon-bound' fill='none' /><path d='M3,5h4V3H1v12h1... |
const fetch = require('node-fetch')
const imgbb = require('imgbb-uploader')
const axios = require('axios')
const cfonts = require('cfonts')
const spin = require('spinnies')
const Crypto = require('crypto')
const wait = async (media) => new Promise(async (resolve, reject) => {
const attachmentData = `data:image/jpe... |
/**
* Created by Jairo Martinez on 10/20/16.
*/
app.service('data', ['$http', function ($http) {
}]); |
import React from 'react';
import PaginationComponent from "react-js-pagination";
import SyntaxHighlighter from "react-syntax-highlighter";
import { sunburst } from "react-syntax-highlighter/dist/styles";
class Pagination extends React.Component {
constructor(props) {
super();
this.state = {
... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
'use strict';
var Promise = require('bluebird');
var fs = require('fs');
Promise.promisifyAll(fs);
//var file_path = __dirname + '/../package.json';
var file_path = '';
//
// https://nodejs.org/dist/latest-v4.x/docs/api/fs.html#fs_fs_stat_path_callback
//
fs.statAsync(file_path).then(function(stats) {
console.log(... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
export default function RemoveErrorMark(editor, node) {
editor.withoutSaving(() => {
node.filterDescendants().forEach((textNode) => {
try {
editor.removeMarkByKey(textNode.key, 0, textNode.text.length, 'error');
} catch (err) { /* ignore */ }
});
});
}
|
"""
customaction namespaced tasks
"""
from __future__ import print_function
import glob
import os
import shutil
import sys
import platform
from distutils.dir_util import copy_tree
import invoke
from invoke import task
from invoke.exceptions import Exit
from .utils import bin_name, get_build_flags, get_version_numeric... |
"use strict";
/*
* Copyright (C) 2017, 2018 TypeFox and others.
*
* 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
*/
Object.defineProperty(exports,... |
import math
import random
from getch import getch
import tg
x = 1024 # Window width
r = 5 # Window/Graph ratio(ratio = 10^r)
xs = x/(2**r) # Graph width
g = 1 # Distance between grid lines
tg.theme("dark.json")
tg.Mkrs = [-8, -4, 0, 1, 2, 3, 4]
def Log(x): # f(x) = log x
return math.log(x,10)
def Arit(x): #... |
export default [
{ title:'id', field: 'nrcrt', defaultSort:'desc' },
{ title:'idComanda', field: 'idComanda'},
{ title:'nrCrt', field: 'nrCrt'},
{ title:'tipSubprodus', field: 'nrCrt'},
{ title:'lungime', field: 'nrCrt'},
{ title:'lungimeFinala', field: 'nrCrt'},
{ title:'inaltime', field: 'nrCrt'},
{ ... |
/*******************************************************
* ArrayedSet.js
* Created by Stephen Hall on 11/15/17.
* Copyright (c) 2017 Stephen Hall. All rights reserved.
* Arrayed Set implementation in JavaScript
* Update Date Name Description
* 1 10/28/19 Stephen Hall Updated t... |
import Base_state_class from './../../core/base-state.js';
class Edit_redo_class {
constructor() {
this.Base_state = new Base_state_class();
}
redo() {
this.Base_state.redo();
}
}
export default Edit_redo_class;
|
module.exports={A:{A:{"2":"I F E D gB","900":"A B"},B:{"1":"J K SB M","388":"v O H","900":"C N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 RB FB BB CB DB AB R Q IB JB KB LB MB NB OB PB QB","2":"qB GB nB fB","260":"y z","388":"e f g h i j k l m n o p q r s t u P w x","900":"G T I F E D A B C N v O H J K U V W X Y Z a b c d"},D:{"1":"... |
/*
*/
CKEDITOR.plugins.setLang("a11yhelp","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{name:"Editor Toolbar",legend:"Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-T... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayMobilePublicFollowAddRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._biz_... |
import os
import sys
import requests
from requests.auth import HTTPBasicAuth
from utils.objects import Sentence
from utils.url_builder import build_object_urlpart, add_marker_urlpart, build_context_url, build_document_getter_url, \
get_query_range, build_keyword_search_url
def request_es(fast_search, obj_a, obj... |
import shared from "../tile-m/shared-tile-m";
shared();
|
/** @type {import('esbuild').BuildOptions} */
export default {
bundle: true,
minify: true,
sourcemap: 'inline',
format: 'esm',
target: 'es2020'
}
|
// Copyright 2022 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.
//
// Flags: --turboshaft --allow-natives-syntax
function f(x) {
return x.a + x.b;
}
%PrepareFunctionForOptimization(f);
assertEquals(5, f({a: 2, b: ... |
"""
Copyright (c) 2020 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
Adds all provided buildargs as ARG after each FROM in Dockerfile
"""
from __future__ import absolute_import
from atomic_reactor.plugin import P... |
tinymce.PluginManager.add('oppsaudios', function(editor, url) {
// Add a button that opens a window
editor.addButton('oppsaudios', {
text: false,
image: url + '/img/audio.png',
tooltip: 'Inserir Áudio do Sistema',
onclick: function() {
// Open window with a specific u... |
# Copyright 2014 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.
DEPS = [
'bot_update',
'gclient',
'gerrit',
'recipe_engine/path',
'recipe_engine/platform',
'recipe_engine/properties',
]
def RunSteps(api):
a... |
# t013.py
from simp_py import lcd
from light import Light
import time
class RectLight(Light):
global lcd
def __init__(self,x,y,w,h,r,on_color,off_color):
super().__init__(x,y,r,on_color,off_color)
self.w=w; self.h=h
def turn_on(self):
lcd.roundrect(self.x,self.y,self.w,self.h,self.r,... |
'use strict';
const userNameInput = document.getElementById('user-name');
const assessmentButton = document.getElementById('assessment');
const resultDivided = document.getElementById('result-area');
const tweetDivided = document.getElementById('tweet-area');
/**
* 指定した要素の子どもを全て除去する
* @param {HTMLElement} element HT... |
/**
* Exports the {@link AntCli} class.
* @module ant-cli
*/
const AntCli = require('./lib/AntCli');
module.exports = { AntCli };
|
# add constituency parse tree to MSCOCO metadata with Benepar
import argparse
import benepar
import json
import spacy
from nltk import Tree
from tqdm import tqdm
def replace_leaves(tree, leaves):
if isinstance(tree, str):
return leaves[0]
left = 0
new_children = list()
for child in tree:
... |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
import { serialize } from 'cookie';
import { checkPassword, createSecureToken } from 'lib/crypto';
import { getAccountByUsername } from 'lib/queries';
import { AUTH_COOKIE_NAME } from 'lib/constants';
import { ok, unauthorized, badRequest } from 'lib/response';
export default async (req, res) => {
const { username, ... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import store from './store'
import fastclick from 'fastclick'
import vuelazyload from 'vue-lazyload'
Vue.use(ElementUI)
Vue.use(vuelazyload,{
loading:requ... |
/* eslint-env node */
"use strict";
require("./fixtures");
require("./helper-functions");
|
import client, { USER_FRAGMENT_REGEX } from '../lib/client';
import { Room, User } from '../lib/db';
import { user as u, channel as c, commifyList } from '../formatters';
const addUsersToStandup = (userIds, room) => {
return new Promise(async (resolve) => {
const alreadyInRoom = [];
const added = [];
w... |
import React from 'react';
const Header = () => (
<header style={{ width: '100%', textAlign: 'center' }}>
<h2 style={{ color: '#8A0707', fontSize: '5em' }}>GraphQL Deathmatch</h2>
</header>
)
export default Header;
|
jQuery(document).ready(function(t){t(".cq-borderhover").each(function(r){var o=t(this),e=parseInt(t(this).data("elementheight"),10),i=""==t(this).data("lightboxmargin")?20:parseInt(t(this).data("lightboxmargin")),h=(""==t(this).data("minwidth")?0:parseInt(t(this).data("minwidth")),t(this).data("bordercolor"));""!=h&&(t... |
# Copyright 2011-2021 Doug Latornell and The University of British Columbia
# 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 ... |
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
def main():
setup(name='tfta',
version='0.0.1',
description='TF Agent',
long_description='TF Agent',
author='Xue Zhang',
author_email='xue.zhang@tufts.edu',
url='https://git... |
var assert = require('chai').assert;
var chai = require('chai');
var sinon = require('sinon');
var sinonChai = require('sinon-chai');
var contextUtils = require('../../lib/context_utils');
var Segment = require('../../lib/segments/segment');
var captureFunc = require('../../lib/capture').captureFunc;
var captureAsync... |
// import the function we are trying to test
import { reducer } from '../utils/reducers';
// import our actions
// list of the possible actions we can perform to update state
import {
UPDATE_PRODUCTS,
UPDATE_CATEGORIES,
UPDATE_CURRENT_CATEGORY,
ADD_TO_CART,
ADD_MULTIPLE_TO_CART,
REMOVE_FROM_CART... |
// Load modules
var Events = require('events');
var Http = require('http');
var Https = require('https');
var Os = require('os');
var Stream = require('stream');
var Hoek = require('hoek');
var Items = require('items');
var Wreck = require('wreck');
var Network = require('./network');
var Package = require('../packa... |
/*
* 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
'use strict';
module.exports = function (fromEntries, t) {
var a = {};
var b = {};
var c = {};
var entries = [['a', a], ['b', b], ['c', c]];
var obj = { a: a, b: b, c: c };
t.deepEqual(fromEntries(entries), obj, 'entries -> obj');
t['throws'](function () { fromEntries(); }, 'entries throws on absent iterable'... |
# Given two words (begin_word and end_word), and a dictionary's word list,
# return the shortest transformation sequence from begin_word to end_word, such that:
# Only one letter can be changed at a time.
# Each transformed word must exist in the word list. Note that begin_word is not a transformed word.
# Note:
# Retu... |
'''OpenGL extension EXT.multi_draw_arrays
This module customises the behaviour of the
OpenGL.raw.GLES2.EXT.multi_draw_arrays to provide a more
Python-friendly API
Overview (from the spec)
These functions behave identically to the standard OpenGL 1.1 functions
glDrawArrays() and glDrawElements() except ... |
const assert = require('assert');
const path = require('path');
const sinon = require('sinon');
const proxyquire = require('proxyquire');
var appStub = sinon.stub({ use: () => {} });
var faviconStub = sinon.stub();
var compressionStub = sinon.stub();
var bodyParserStub = sinon.stub({ json:()=>{}, urlencoded:()=>{} });... |
const ts = require('typescript/lib/tsc');
/**
*
* @param {*} options
* @returns {function(*=): *}
*/
module.exports = function (options) {
/**
*
* @param {TransformationContext} context
* @returns {function(*): *}
*/
return function (context) {
return ts.chainBundle(transformSou... |
import { React } from 'preact'
import { useEffect, useState } from 'preact/hooks'
import FileList from './file-list'
import DirectoryList from './directory-list'
import FileUpload from './file-upload'
import DirectoryCreate from './directory-create'
import { route } from 'preact-router'
import PropTypes from 'prop-type... |
export default function onRecaptchaChange(recaptchaValue) {
console.log(`Invisible reCAPTCHA value set`)
this.setState({ recaptchaValue })
if (this.props.recaptcha && this.props.recaptcha.size === `invisible`) {
this.process()
}
} |
# -*- coding: utf-8 -*-
# *****************************************************************************
# NICOS, the Networked Instrument Control System of the MLZ
# Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS)
#
# This program is free software; you can redistribute it and/or modify it under
# the t... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... |
#!/usr/bin/env python
"""
Create HTCondor Dag to run a P-P test for the six parameters of a pulsar
gravitational-wave signal, assuming emission at both once and twice the
rotation frequency: c21, c22, iota, psi, phi21, and phi22.
"""
import bilby
import numpy as np
from cwinpy.pe.testing import PEPPPlotsDAG
# set th... |
const config = require('../config.json');
const jwt = require('jsonwebtoken');
const bcrypt = require('bcryptjs');
const db = require('../config/db');
const OrderRequest = db.OrderRequest;
module.exports = {
getAll,
getById,
create,
update
};
async function getAll() {
return await OrderRequest.find().select... |
export default function getState() {
return {
filteredRestaurants: [],
initialLoad: false,
resetRestaurantList: false,
styleFilter: [],
hoursFilter: [],
timeToEatFilter: [],
mealCostFilter: [],
healthinessFilter: [],
ethnicityFilter: [],
... |
"""
test all other .agg behavior
"""
import datetime as dt
from functools import partial
import numpy as np
import pytest
import pandas as pd
from pandas import (
DataFrame,
Index,
MultiIndex,
PeriodIndex,
Series,
date_range,
period_range,
)
import pandas._testing as t... |
window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
var starDensity = .216;
var speedCoeff = .05;
var width;
var height;
var starCount;
var circleRadius;
var circleCenter;
var first = true;
var giant... |
module.exports = function(req, res) {
var ip = req.ip.split(':')[3];
var software = req.headers['user-agent'].split(') ')[0].split(' (')[1];
var language = req.headers["accept-language"].split(',')[0];
var resObj = Object();
resObj.ip = ip;
resObj.software = software;
resObj.language = language;
res.end(JSO... |
'use strict';
/**
* Module dependencies
*/
var actionsPolicy = require('../policies/actions.server.policy'),
actions = require('../controllers/actions.server.controller');
module.exports = function(app) {
// Actions Routes
app.route('/api/actions').all(actionsPolicy.isAllowed)
.get(actions.list)
.post... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import {
Accordion, AccordionDetails, AccordionSummary, Avatar,
Button, CardMedia, FormControl, Grid, Hidden, IconButton,
InputLabel, MenuItem, Select... |
""" Tests for geo spatial data types"""
import pytest
import ibis
from ibis.tests.expr.mocks import GeoMockConnectionPostGIS
pytest.importorskip('geoalchemy2')
pytest.importorskip('shapely')
pytest.importorskip('geopandas')
pytest.mark.postgis
pytest.mark.omniscidb
mock_postgis = GeoMockConnectionPostGIS()
@pytes... |
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const Twilio = require('twilio').Twilio;
const client = new Twilio(accountSid, authToken);
client.chat
.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
.fetch()
.then(response => {
console.log(response);
})
.cat... |
const webpack = require('webpack')
const withReactStorefront = require('react-storefront/plugins/withReactStorefront')
require('dotenv').config()
module.exports = withReactStorefront({
target: 'serverless',
connector: 'react-storefront-salesforce-commerce-cloud-connector',
webpack: config => {
config.plugins... |
// wrapped by build app
define("dojox/wire/demos/TableContainer", ["dojo","dijit","dojox","dojo/require!dojo/parser,dijit/_Widget,dijit/_Templated"], function(dojo,dijit,dojox){
dojo.provide("dojox.wire.demos.TableContainer");
dojo.require("dojo.parser");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated")... |
/* vietnamese */
export default {
momentLocale: 'vi',
Timeline: {
expand: 'Mở rộng',
fold: 'Thu gọn',
},
Balloon: {
close: 'Đóng',
},
Card: {
expand: 'Mở rộng',
fold: 'Thu gọn',
},
Calendar: {
today: 'Hôm nay',
now: 'Bây giờ',
... |
/*! jQuery v3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector | (c) JS Foundation and other contributors | jquery.org/license */
!function(a,b){"use strict";"o... |
'use strict';
const logger = require('../../utils/logger');
const debug = logger.getLogger().debugContext('sql:pg');
const AbstractQuery = require('../abstract/query');
const QueryTypes = require('../../query-types');
const Promise = require('../../promise');
const sequelizeErrors = require('../../errors');
const _ = ... |
from pyjamas.ui.Sink import Sink, SinkInfo
from pyjamas.ui.DockPanel import DockPanel
from pyjamas.ui.Image import Image
from pyjamas.ui.VerticalPanel import VerticalPanel
from pyjamas.ui import HasAlignment
from pyjamas.ui.HTML import HTML
class Images(Sink):
def __init__(self):
Sink.__init__(self)
... |
PW_DB_URL = 'sqlite:///:memory:'
|
export * from "./ValidationReport";
export * from "./ValidationResult";
//# sourceMappingURL=index.js.map
|
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, {Component} from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
} from 'react-native';
class UIStudy extends Component {
// 构造
constructor(props) {
super(props);
... |
class CannonBall {
constructor(x, y) {
var options = {
restitution: 0.8,
friction: 1.0,
density: 1.0,
isStatic: true
};
this.r = 40;
this.body = Bodies.circle(x, y, this.r, options);
this.trajectory = []
this.image = loadImage("./assets/cannonball.png");
this.tower = l... |
/*!
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
// jQuery to collapse the navbar on scroll
function collapseNavbar() {
if ($(".navbar").offset().top > 50) {
$("... |
//// [duplicateLabel1.ts]
target:
target:
while (true) {
}
//// [duplicateLabel1.js]
target: target: while (true) {
}
|
/**
* @class Oskari.mapframework.request.common.AddMapLayerRequest
*
* Requests for given map layer to be added on map. Opposite of
* Oskari.mapframework.request.common.RemoveMapLayerRequest
*
* Requests are build and sent through Oskari.mapframework.sandbox.Sandbox.
* Oskari.mapframework.request.Request super... |
import styled from 'styled-components';
import media from 'styled-media-query';
export const CommentsWrapper = styled.section`
margin: auto;
max-width: 70rem;
padding: 3rem 6.4rem 3rem;
iframe[src*='ads-iframe'] {
display: none;
}
#disqus_thread {
a {
color: var(--color-link-primary) !impor... |
Rickshaw.namespace('Rickshaw.Graph.Ajax');
Rickshaw.Graph.Ajax = Rickshaw.Class.create( {
initialize: function(args) {
this.dataURL = args.dataURL;
this.onData = args.onData || function(d) { return d };
this.onComplete = args.onComplete || function() {};
this.onError = args.onError || function() ... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
# |~~\' |~~
# |__/||~~\|--|/~\\ /
# | ||__/|__| |\/
# |
import os
import sys
# Inject vendored directory into system path.
v_path = os.path.abspath(os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'vendor']))
sys.path.insert(0, v_path)
# Inject patched directory into system path.
v_path = ... |