text stringlengths 2 1.04M |
|---|
let File = require("../../lib/needs/file.js")
describe("file", function () {
describe("validate", function () {
it("throws on emtpy string", function () {
expect(function () {
new File("")
}).toThrowError(File.ValidationError, "data for type \"file\" is not valid")
})
it("throws on e... |
const sagiri = require('sagiri')
const sauce = sagiri('96a418eb1f0d7581fad16d30e0dbf1dbbdf4d3bd')
const { Whatsapp: ev } = require('../../core/connect')
const { uploaderAPI } = require('../../utils/uploader')
module.exports = {
name: 'sauce',
category: 'misc',
usage: 'Send/reply to a image with caption !sauce',... |
'use strict'
require('./../mock')
const { DeepStrictEqualAssertion } = require('@cuties/assert')
const { ResponseFromAjaxRequest } = require('./../src/index')
new DeepStrictEqualAssertion(
new ResponseFromAjaxRequest({
url: 'http://localhost:8000/',
method: 'GET'
}),
{
statusCode: 200,
headers: ... |
import React, {Component} from 'react';
import { Panel,Button,Form,
Col,
FormGroup,
FormControl,
ControlLabel
} from 'react-bootstrap';
import '../styles/App.css';
class Login extends Component {
constructor(props) {
super(props);
this.state = {
authenticated:false
};
}
displayForm() {
return (
... |
const fs = require('fs');
const os = require('os');
const { errors, ipCheck } = require('arsenal');
const async = require('async');
const request = require('request');
const config = require('../Config').config;
const data = require('../data/wrapper');
const metadata = require('../metadata/wrapper');
const monitoring... |
'use strict';
module.exports = {
name: 'journal-entry',
url: '/journal/entry/:type/',
template: require('partial/main/journal/entry/journal-entry.html'),
controller: require('js/controller/journal/entry/journal-entry-controller.js')
}; |
import styled from 'styled-components';
const Container = styled('div')`
height: 100%;
width: 100%;
overflow-y: auto;
::-webkit-scrollbar {
height: 10px !important;
width: 10px !important;
}
::-webkit-scrollbar-thumb {
background: ${props => props.theme.colors.border || '#3b4d54'};
b... |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.$ = window.jQuery = require('jquery');
} ca... |
'use strict'
require('./check-versions')()
const config = require('../config')
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
}
const opn = require('opn')
const path = require('path')
const express = require('express')
const webpack = require('webpack')
const proxyMiddleware... |
/*
* Copyright 2020, GeoSolutions Sas.
* 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.
*/
import expect from 'expect';
import defaultSettingsTabs, { getStyleTabPlugin } from '../defaultSettingsTabs';
const... |
if (!sessionStorage.id) {
// similar behavior as clicking on a link
window.location.href = "adminlogin.html";
}
if (sessionStorage.role !== 'admin') {
if (sessionStorage.role) {
window.location.href = sessionStorage.role + ".html";
} else {
window.location.href = "adminlogin.html";
}
}
fun... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import PaymentMethodButton from 'components/PaymentMethodButton';
import Adyen from 'components/Adyen';
import {
submitPayment,
getPaymentMethods,
updateOrder,
submitPayPalPayment
} from 'api';
import { getData, setData } from 'util/appConfigHe... |
/* Aux functions- Maze sharing */
Array.prototype.repeat= function(what, L){
while(L) this[--L]= what;
return this;
}
String.prototype.replaceArray = function(find, replace) {
var replaceString = this;
for (var i = 0; i < find.length; i++) {
replaceString = replaceString.repla... |
function Sololetras(e){
key = e.keyCode || e.wich;
tecla = String.fromCharCode(key).toString();
letras = "abcdefghijklmnsñopqrstuvwxyzABCDEFGHIJKLMNSOPQRTUVWXZÁÉÚÓÍáéíóú";
especiales = [0,13];
tecla_especial = false
for (var i in especiales) {
if (key == especiales[i]) {
tecla_especial= true;
break;
... |
import './JustMyLuck.integer';
import JustMyLuck from './JustMyLuck';
JustMyLuck.extend({
pickIndex(array) {
return this.integer(0, array.length);
},
}); |
/** *****************************************************************************
* Licensed Materials - Property of IBM
* (c) Copyright IBM Corporation 2019. All Rights Reserved.
*
* US Government Users Restricted Rights - Use, duplication or disclosure
* restricted by GSA ADP Schedule Contract with IBM Corp.
**... |
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: {
extend: {
aspectRatio: {
"5/3": "5 / 3",
},
colors: {
"accent-1": "#FAFAFA",
"accent-2": "#EAEAEA",
"accent-7": "#333",
success: "#0070f3",
cyan: "#79FFE1",
// brandorange: "... |
const { createElement } = require('powercord/util');
const { resolveCompiler } = require('powercord/compilers');
module.exports = {
loadStyle (file) {
const id = Math.random().toString(36).slice(2);
const style = createElement('style', {
id: `style-coremod-${id}`,
'data-powercord': true,
'd... |
var class_net_suite_1_1_classes_1_1_campaign_family =
[
[ "$description", "class_net_suite_1_1_classes_1_1_campaign_family.html#a87b032cba06009e3467abf1c8018d960", null ],
[ "$externalId", "class_net_suite_1_1_classes_1_1_campaign_family.html#a81ca4c05e38f38b359335ddf9d52b8c1", null ],
[ "$internalId", "cla... |
const { executeSignedTxnFromFile } = require('@algo-builder/algob');
async function run (runtimeEnv, deployer) {
/* Spec txnParams is encoded in john-to-bob.txn
const john = deployer.accountsByName.get('john');
const bob = deployer.accountsByName.get('bob');
const txnParam = {
type: TransactionType.Transfe... |
'use strict';
describe('myApp.list module', function() {
beforeEach(module('myApp.list'));
describe('list controller', function(){
it('should ....', inject(function($controller) {
//spec body
var listCtrl = $controller('ListCtrl');
expect(listCtrl).toBeDefined();
}));
});
}); |
/**
* Created by Payne on 2016/1/18 0018.
*
* [Library] 助手配置生成器
*
* 功能:
* 1. 生成助手所需要的配置文件
*/
var fs = require("fs");
var program = require('commander');
var colors = require('colors');
var util = require('../util');
//Command 配置
program
.version('1.1.0')
.option('-c, --config <path>', 'Set Config File P... |
import { graphql, useStaticQuery } from 'gatsby';
export const useSiteMetadata = () => {
const { site } = useStaticQuery(
graphql`
query SITE_METADATA_QUERY {
site {
siteMetadata {
title
titleTemplate
description
siteUrl
imageLin... |
const PrivacyGDPR = () => {
return (
<div>
<h2>GDPR Data Protection Rights</h2>
<p>
We would like to make sure you are fully aware of all of your data
protection rights. Every user is entitled to the following:
</p>
<ul>
<li>
The right to access – You have... |
"use strict"
const express = require("express")
const router = express.Router()
const axios = require("axios")
const RateLimit = require("express-rate-limit")
//const BITBOXCli = require("bitbox-cli/lib/bitbox-cli").default;
//const BITBOX = new BITBOXCli();
const BitboxHTTP = axios.create({
baseURL: process.env.R... |
export const componentsList = ['Home', 'About']; |
/**
* Created by roderickWang on 7/31/15.
*/
import {AlertTypes} from '../constants/ActionTypes'
import {ModalTypes} from '../constants/ModalTypes'
export const httpFaild=(dispatch,data)=>{
dispatch ({
type:AlertTypes.CHANGE_ALERT,
data:{
showModal:true,
alertType:ModalTyp... |
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
const Bio = () => {
const data = useStaticQuery(graphql`
... |
---
layout: null
---
window.onload=function(){var X=document.createElement("script"),e=document.getElementsByTagName("script")[0];X.async=!0,X.src="{{'sw-register.js'|relative_url}}?v="+Date.now(),e.parentNode.insertBefore(X,e)}; |
const converter = require('./converter');
// const file = 'C:/temp/test.psd';
const file = 'C:/temp/test_10k.psd';
// const file = 'C:/prj.lars/sphere2cube/samples/test.psb';
const basePath = 'c:/temp/!panotest/';
const cfg = {
targetImgSize: undefined,
previewWidth: 1000,
tileSize: 512,
backgroundCol... |
import * as languages from '../config/i18n'
const updateIcon = () => {
return (dispatch, getState) => {
const { request_sending, appConfig, unreadCount } = getState().app;
try {
if (request_sending === true) {
window.chrome.browserAction.setIcon({path: appConfig.loginImg});
window.chrom... |
#!/usr/bin/env node
const fs = require('fs');
const CFonts = require('cfonts')
const args = require('../libs/args')
const prompt = require('../libs/prompt')
const Whale = require('../index')
let exchangers = require('../config/exchangers.json');
let config = require('../config/whale.json');
// deepMerge to use b... |
import memoize from 'memoize-two-args'
import deepMerge from './deepMerge'
import emptyObj from 'empty/object'
const memoizer = memoize(deepMerge)
export default function (defaultTheme = emptyObj, userTheme) {
if (userTheme === void 0 || userTheme === null) {
return defaultTheme
}
else if (defaultTheme ==... |
define([], function () {
"use strict";
var videoBase = "videos/";
var imageBase = "images/";
return {
// data goes here
logo: {
url: imageBase + "bday.png"
},
videos: [
{
url: videoBase + "demo.mp4",
thumb: imageBase + "demo.jpg",
alt: "Demo"
},
{
url: vid... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[76],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&":
/*!************************************************************************************... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ArgumentsRequired, ExchangeError } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = class b... |
module.exports = [
//controls, name, source
[ ['up', 'w'], "up", require("./movement/up.js") ],
[ ['down', 's'], "down", require("./movement/down.js") ],
[ ['left', 'a'], "left", require("./movement/left.js") ],
[ ['right', 'd'], "right", require("./movement/right.js") ],
... |
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Wor... |
(function () {
'use strict';
/**
* @return {UserLoginCtrl}
*/
const controller = function (Base, $scope, $http, $window) {
const PATH = 'modules/registeruser/templates';
const ORDER_LIST = [
'registeruserData'
];
class RegisteruserCtrl extends Base {
... |
import React from 'react';
import { Tooltip } from 'reactstrap';
import Score from './Score';
import Label from './Label';
import Info from './Info';
import ArrowDown from './ArrowDown';
import ArrowRight from './ArrowRight';
export default class extends React.Component {
static displayName = 'KeyResult';
constru... |
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean... |
// Gradpa Benny PWA app
// ----------------------
// Author: Ran Levi
const version = 1.07;
// Date: 25.04.2020
// This is a PWA built with Swiper JS and Bulma.io.
// It is designed as a single common app that can be customized
// for different stories and langutes based on json files.
// Ver. 1.01 (26.4.2020):
// ... |
/* navbar animation */
$("#toggle").click( function(event){
event.preventDefault();
if ($(this).hasClass("isDown") ) {
$( ".navbar-fixed-top" ).animate({ "margin-top": "-62px" }, "fast" );
$( "#content" ).animate({ "margin-top": "5px" }, "fast" );
$(this).removeClass("isDown");
} els... |
// Copyright 2016 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.
/**
* @unrestricted
*/
Sources.DebuggerPausedMessage = class {
constructor() {
this._element = createElementWithClass('div', 'paused-message flex-n... |
const bcrypt = require('bcrypt');
const { Schema } = require('mongoose');
const { SALT_WORK_FACTOR } = require('../../../helpers/auth-helpers');
const PasswordMethods = require('./password.methods');
const PasswordSchema = new Schema(
{
value: String,
updatedAt: Date,
newPasswordRequest: {
date: Da... |
//# sourceMappingURL=component---src-pages-index-js-35b93a744226a63aa04e.js.map |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { Networ... |
import { Box, Button, Container, Typography, Grid } from '@material-ui/core';
import { Add } from '@material-ui/icons';
import { useEffect, useState } from 'react';
import { Helmet } from 'react-helmet';
import { Link, useHistory, useRouteMatch } from 'react-router-dom';
import { Tier } from '../../../api/service';
imp... |
// TODO: open stream
import { setOptions } from './kcp'
const NAMES = [
'nodelay',
'interval',
'fastresend',
'nocwnd',
]
// nodelay, interval, fastresend, nocwnd
export const MODES = {
normal: [0, 40, 2, 1],
fast: [0, 30, 2, 1],
fast2: [1, 20, 2, 1],
fast3: [1, 10, 2, 1],
}
export function setKCPMode... |
import createAutocompleteSource from './createAutocompleteSource';
import defaultTemplates from './defaultTemplates';
export default function createAutocompleteDataset(options) {
const templates = {
...defaultTemplates,
...options.templates,
};
const source = createAutocompleteSource({
...options,
... |
export * from '@styled-icons/boxicons-solid/Share'; |
/**
* Question 1.1
* @param str - The input string.
* @returns True if all the Characters ate unique, otherwise false.
*/
function isUnique(str){
}
isUnique('avvv'); |
const initialState = {
formState: {
smsCode: '',
googleCode: '',
emailCode: '',
},
requestGetCodeLoading: false,
requestGetCodeResponse: null,
}
export default function updatePassword(state = initialState, action) {
let nextState
const { type, payload } = action
switch (type) {
case 'upd... |
import { createThemedIcon } from './utils/createThemedIcon'
import { FilledStreetview } from './FilledStreetview'
import { OutlineStreetview } from './OutlineStreetview'
import { RoundStreetview } from './RoundStreetview'
import { SharpStreetview } from './SharpStreetview'
import { TwoToneStreetview } from './TwoToneSt... |
const loginCommands = {
openDialog() {
return this
.waitForElementVisible('@authorizeDialogButton')
.click('@authorizeDialogButton')
.waitForElementVisible('@authorizeDialog');
},
login(keyId, key) {
return this
.assert.visible('@keyIdInput')
.assert.visible('@keyInput')
... |
let history = require('./history');
let kb = require('./kb');
let mappings = require('./mappings');
let ace = require('ace');
let utils = require('./utils');
let autocomplete_engine = require('./autocomplete/engine');
let url_pattern_matcher = require('./autocomplete/url_pattern_matcher');
let _ = require('lodash');
le... |
export { default } from './CheckoutContainer'; |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6',
name: 'Node CLI Test',
user: {
... |
/* */
"format cjs";
/**
* @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
*/
import { createEnumExpression } from '../compiler_util/identifier_util';
import { Identifiers } ... |
import React, { useRef, useEffect } from 'react';
import { StyleSheet, Animated, View, TouchableOpacity } from 'react-native';
const range = (min, max) => new Array(max - min + 1).fill(0).map((_, i) => min + i);
const Dot = (props) => {
const { full, onPress } = props;
const dotStyles = [styles.dot, full ? styles... |
/*! For license information please see main.64600162.js.LICENSE.txt */ |
// Highway
import Highway from 'highway';
// GSAP
import Tween from 'gsap';
// Fade
class Fade extends Highway.Transition {
in(view, done) {
// Animation
Tween.fromTo(view, 0.5,
{ opacity: 0 },
{
opacity: 1,
onComplete: done
}
);
}
out(view, done) {
// Animatio... |
import faker from "Faker";
import config from "../../vue.config"
export default class Topic {
static getDummy() {
let r = new Topic();
let title = `${faker.random.catch_phrase_adjective()} ${faker.random.catch_phrase_noun()}`
r.title = title;
let id = faker.random.number(4);
r.image = `${config.publicPath}i... |
import { when } from 'jest-when';
jest.mock('../transformDocumentSnapshot');
import transformDocumentSnapshot from '../transformDocumentSnapshot';
import transformDocumentRef from '../transformDocumentRef';
describe('transformDocumentRef', () => {
it('should return a document', async () => {
const $mockDocRef ... |
Rickshaw.namespace('Rickshaw.Graph');
Rickshaw.Graph = function(args) {
var self = this;
this.initialize = function(args) {
if (!args.element) throw "Rickshaw.Graph needs a reference to an element";
if (args.element.nodeType !== 1) throw "Rickshaw.Graph element was defined but not an HTML element";
this.el... |
import { connect } from 'react-redux';
import prepare from 'app/utils/prepare';
import { fetch, shareSurvey, hideSurvey } from 'app/actions/SurveyActions';
import SurveyDetail from './components/SurveyDetail';
import { compose } from 'redux';
import { selectSurveyById } from 'app/reducers/surveys';
import { LoginPage }... |
import EventEmitter from 'events';
const FlaxEmitter = function () {};
FlaxEmitter.prototype = new EventEmitter();
FlaxEmitter.prototype.emitChange = function(event) {
this.emit(event.toString());
if (event !== event.store.events.DEFAULT) {
this.emit(event.store.events.ANY.append(event.tags).toString());
}
... |
module.exports = {
'plugins': [
'react'
],
'parserOptions': {
'ecmaFeatures': {
'jsx': true
}
},
'rules': {
'jsx-quotes': [2, 'prefer-single'],
'react/jsx-boolean-value': 2,
'react/jsx-closing-bracket-location': [1, { selfClosing: 'after-props', nonEmpty: 'after-props' }],
'r... |
import React, { useEffect, useState } from 'react'
import { ResponsiveCalendar } from '@nivo/calendar'
import { Flex, Box, Select } from 'ooni-components'
import useSWR from 'swr'
// TODO adapt to axios
const fetcher = url => fetch(url).then(r => r.json())
const fromDate = '2019-06-01'
const toDate = '2020-05-31'
con... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
import React, { useState, useRef } from "react"
import { Link as GatsbyLink } from "gatsby"
import {
Box,
Drawer,
DrawerBody,
DrawerHeader,
DrawerOverlay,
DrawerContent,
DrawerCloseButton,
Flex,
IconButton,
Stack,
Text,
useDisclosure,
} from "@chakra-ui/react"
import AstronautIcon from "./icons/... |
/**
* @author v.lugovsky
* created on 15.12.2015
*/
(function () {
'use strict';
angular.module('blocks.theme', [
'ui.bootstrap',
'textAngular',
'angular.morris-chart',
'chart.js',
'angular-chartist',
'blocks.theme.components'
]);
})(); |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: '<%= grunt.util.linefeed %><%= grunt.util.linefeed %>',
},
preUMD: {
src: 'src/*.js',
de... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import wepy from 'wepy';
import {request} from './index';
import {hasUserInfo} from '../utils';
export const productGetCategory = async (storeID) => {
return await request(
'category',
{
data: {
page: 1,
page_size: 1000,
shop: storeID,
},
},
);
};
export const pro... |
// Binary search in js
function recursiveBinarySearch(arr, x, start, end) {
// Base Condition
if (start > end) return "Element not found";
// Find the middle index
let mid = Math.floor((start + end) / 2);
// Compare mid with given key x
if (arr[mid] === x) return `Found ${arr[mid]} at index ${mid}`;
/... |
'use strict';
/*jshint latedef:false */
var AssertionError = require('assert').AssertionError;
var ownUtils = require('./utilities');
var Report = require('./report');
function ensureEqual(context, actual, expected) {
ensureEqualValues(
context,
typeof actual,
typeof expected,
'types');
if (own... |
/*
++++++ SYMBOL OVERRIDE EXTENSION ++++++
By Mark Hunte 2021
Versions: 1.1.4
1.1.4 changes. Put all Hype API properties in the exclude check. Must use css:propertyName when overriding css properties of same name.
This Fixed an issue with a bug in the CSS.support method. The use of a 0 as a value for left... |
import { Scene } from './scene';
export class Store extends Scene {
constructor() {
super();
this.scene_name = 'store';
this.judge_colors = ['store_gift', 'store_interface'];
this.colors = {
"free_blackegg": {
"region":[234,201,270,292],
"... |
/**
* Created by luopotaotao on 2016/4/18.
*/
$(function () {
bindHandlers();
bindT2Handlers();
var t1Url = 'return';
var t2Url = 'returnDtl'
function bindHandlers() {
$('a.easyui-linkbutton').unbind();
// loadDic();
$('#btn_add').bind('click', toAdd);
$('#btn_edit... |
'use strict';
/**
* @format
* @flow
*/
import moment from 'moment';
import updateObject from '../utils/updateObject';
import getUnique from '../utils/getUnique';
import * as types from '../actions/queue/types';
import * as entitiesTypes from '../actions/entities/types';
import {type Firebase} from '../utils/fireba... |
/**
* Created with JetBrains RubyMine.
* User: teamco
* Date: 2/13/13
* Time: 11:47 PM
*/
import {WidgetOverlapping} from './widget.overlapping';
/**
* @class WidgetMap
* @type {WidgetMap}
*/
export class WidgetMap extends WidgetOverlapping {
/**
* @constructor
* @param {Widget} widget
*/
constr... |
import Mock from 'mockjs'
const List = []
const count = 20
for (let i = 0; i < count; i++) {
List.push(Mock.mock({
id: '@increment',
'dictionaryType|1': ['sell', 'Buiness_Type', 'CallState', 'ContactType', 'Gender_Type', 'Jump_Type'],
'dictionaryName|1': ['业务类型', '联系方式里的联系类型', '代理人分的渠道', '用于客户管理', '用于回访... |
'use strict'
const promisify = require('promisify-es6')
const ConcatStream = require('concat-stream')
const once = require('once')
const isStream = require('is-stream')
const OtherBuffer = require('buffer').Buffer
const isSource = require('is-pull-stream').isSource
const FileResultStreamConverter = require('../utils/f... |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.com/docs/browser-apis/
*/
export { default as wrapRootElement } from "./src/state/ReduxWrapper"
export const onServiceWorkerUpdateReady = () => {
const answer = window.confirm(
`This application has been updated. ` +
`Re... |
define([],function(){var e={user:{}};return e.user.browser=function(e,r,n){var o="visible";n&&n.mode&&(o=n.mode);var a="0";$.isArray(e)&&0<e.length&&(a=e.join()),$("#user-browser-dialog")[0]&&$("#user-browser-dialog").remove();var i="./index.php?c=utility&a=user&do=browser&callback=aMember&mode="+o+"&uids="+a,t=util.di... |
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"1 2 3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r PB OB"},D:{"2":"1 2 7 9 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r DB SB AB BB... |
import React from 'react'
import {Layer, Box, Text, Button, Image} from 'grommet'
import { FormClose } from 'grommet-icons'
import format from 'date-fns/format'
import PropTypes from 'prop-types'
import Events from './Calendar/Events'
const sortyByDate = (eventA, eventB) =>
new Date(eventA.date) - new Date(eventB.da... |
const fs = require('fs');
const https = require('https');
const prompts = require('prompts');
(async () => {
const nb = await prompts({
type: 'number',
name: 'nbCodes',
message: 'Number of codes',
validate: nbCodes => nbCodes < 1 ? `Number of codes can only be a number between ... |
const { SlashCommandBuilder } = require('@discordjs/builders');
const SpeakerClient = require('../../utils/SpearkClient');
module.exports = {
info: {
name: 'join',
description: '読み上げを開始',
category: 'main',
deferReply: false,
},
data: new SlashCommandBuilder()
.setNa... |
(function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
//Edge symbol: 'stage'
(function(symbolName){Symbol.bindElementAction(compId,symbolName,"${_petals}","click",function(sym,e){sym.getComposition().getStage().getSymbol('petals').play(0);});
//Edge binding end
Symbol.bindElementAction(compId,sy... |
module.exports = {
'basic': {
message: 'supports basic usage'
},
'basic:no-preserve': {
message: 'supports { preserve: false } usage',
options: {
preserve: false
}
},
'invalid': {
message: 'ignores invalid usage',
expect: 'invalid.css',
result: 'invalid.css'
},
'invalid:warn': {
message: 'warn... |
//Libraries
import React from 'react';
class Item extends React.Component {
constructor (props) {
super(props);
this.state = {
feed: null
}
}
componentWillReceiveProps (feedData) {
this.setState({ feed: feedData });
}
render () {
let item = '';... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.5.4.11_A1_T1;
* @section: 15.5.4.11;
* @assertion: String.prototype.replace (searchValue, replaceValue);
* @description: Arguments are true and 1, and instance is object;... |
'use strict';
const app = {
api: 'https://aqueous-atoll-85096.herokuapp.com',
};
module.exports = app; |
// Copyright 2017, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
var expect = require('chai').expect;
describe('Slashed variables', function() {
var testrun;
before(function(done) {
this.run({
environment: {
values: [{key: 'fo/o', type: 'text', value: 'alpha', enabled: true},
{key: 'b\\ar', type: 'text', value: 'beta'... |
const p = require('path')
const test = require('tape')
const { create } = require('./util/create')
test('can replicate a single drive between daemons', async t => {
const { clients, cleanup } = await create(2)
const firstClient = clients[0]
const secondClient = clients[1]
try {
const drive1 = await firstC... |
import React from 'react';
import './InteractiveJsonDocument.css';
import InteractiveJsonKeyValue from './InteractiveJsonKeyValue';
const CURLY_OPEN = `{`;
const CURLY_CLOSE = `}`;
class InteractiveJsonDocument extends React.Component {
constructor(props) {
super(props);
}
render() {
cons... |
// area24.ilsole24ore.com
loadCSS("dist/css/main.min.css");
// loadCSS("https://fonts.googleapis.com/css?family=Libre+Franklin:400,700");
// loadCSS("https://d1azc1qln24ryf.cloudfront.net/44188/Area24/style-cf.css?5c24tv");
// alternate method
// var loadDeferredStyles = function() {
// var addStylesNode = docume... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.