text stringlengths 2 1.04M |
|---|
var V3_URL = 'https://js.stripe.com/v3';
var V3_URL_REGEX = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
var EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';
var findScript = function findScript(... |
const express = require('express');
const mongoose = require('mongoose');
const config = require('config-yml');
//routers
const packageRouter = require('./routes/packageRoutes.js');
const itemRouter = require('./routes/itemRoutes.js');
const testRouter = require('./routes/testRoutes.js');
//EasyPostAPI
const apiKey ... |
/*! Tdrag 0.0.1 */ |
(function( $ ) {
var settings = {
width: 250,
minimizeWidth: 50,
duration: 500,
canvasEl: '.canvas',
toggleBtn: '.sidebar-toggle'
};
var methods = {
init : function( options ) {
settings = $.extend(settings, options);
return this.ea... |
export default useStateHook => () => {
const [isTrue, setIsTrue] = useStateHook(false);
const setTrue = () => setIsTrue(true);
const setFalse = () => setIsTrue(false);
return [isTrue, setTrue, setFalse];
}; |
module.exports = (config) => {
config.setDataDeepMerge(true);
config.addPassthroughCopy('src/assets/img/');
config.addPassthroughCopy({ 'src/posts/img/': 'assets/img/' });
config.addPassthroughCopy({ 'src/work/img/': 'assets/img/' });
config.addPassthroughCopy('src/assets/files/');
config.addWatchTarget("... |
$(document).ready(function () {
startSlider(0);
});
function startSlider(idx) {
$img = $("#slide div img").eq(idx);
$img.fadeIn('slow', function () {
$img.delay(5000).fadeOut('slow', function () {
if ($("#slide div img").length - 1 == idx) {
startSlider(0);
... |
import React from 'react';
import { sizeHandler } from '../utils/utils';
export default function AlertCircle(props) {
return <svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height={sizeHandler(props)} width={sizeHandler(props)}><circle cx="... |
import React from 'react';
import PropTypes from 'prop-types';
import { Mutation } from 'react-apollo';
import gql from 'graphql-tag';
import { WidgetForm } from '../components';
export const INSERT_WIDGET_MUTATION = gql`
mutation InsertWidget($widget: InsertWidget) {
insertWidget(widget: $widget) {
id
... |
var contains = function(needle) {
// Per spec, the way to identify NaN is that it is not equal to itself
var findNaN = needle !== needle;
var indexOf;
if(!findNaN && typeof Array.prototype.indexOf === 'function') {
indexOf = Array.prototype.indexOf;
} else {
indexOf = function(needl... |
class String {
constructor(bodyA, pointB){
var options = {
bodyA: bodyA,
pointB: pointB,
stiffness: 0.04,
length: 10
}
this.pointB = pointB
this.string= Constraint.create(options);
World.add(world, this.sling);
}
... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
import * as React from "react"
import { Link } from "gatsby"
import { BlogItemStyles } from "./BlogStyles"
import Button from "../Button/Button"
const BlogItem = ({ blog }) => {
const { slug, title, published, introduction } = blog
return (
<BlogItemStyles>
<h2>
<Link to={slug}>{title}</Link>
... |
// Copyright (c) YugaByte, Inc.
import { formValueSelector, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { RollingUpgradeForm } from '../../../common/forms';
import { closeDialog } from '../../../../actions/modal';
import {
rollingUpgrade,
rollingUpgradeResponse,
closeUniverseDial... |
/*
* /MathJax/jax/output/SVG/fonts/TeX/Main/Regular/SpacingModLetters.js
*
* Copyright (c) 2012 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the ... |
import mongodb from "mongodb";
const ObjectId = mongodb.ObjectId;
let movies;
export default class MoviesDAO {
// Establish connection handle in moviesDAO
static async injectDB(conn) {
if (movies) {
return;
}
try {
const database = await conn.db(process.env.MFLIX_NS);
movies = database.collection("m... |
// Copyright 2021 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.
const appName = 'com.google.chrome.test.echo';
const kExtensionURL = 'chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/';
var sentMessage = {text: 'te... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const enhanced_resolve_1 = require("enhanced-resolve");
const path = require("path");
function resolveUser(id) {
return new Promise((resolve, reject) => {
if (id.startsWith('/')) {
id = '.' + id;
}
resol... |
module.exports = {
extends: ['cz'],
rules: {
'type-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'scope-case': [1, 'always', 'pascal-case'],
'subject-case': [0],
'subject-full-stop': [0],
},
}; |
/*!
*
* simple-keyboard v2.27.56
* https://github.com/go-keyboard/keyboard
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
//# sourceMappingURL=index... |
import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Link} from 'react-router-dom'
import {logout} from '../store'
const Navbar = ({handleClick, isLoggedIn}) => (
<div>
<div>
<Link to="/home">
<h1 className="logo">Go Games</h1>
</Link>
<... |
//# sourceMappingURL=ceres-client-12.min.js.map |
import mongoose from 'mongoose';
// We are establishing a 1-1 relationship here, where one user account can only map back to one profile
// Can an account have more than one profile. Sure. You can make your design choices in your own project on this matter. But for now, we will establish this as a 1-1 relationship.
c... |
/*! videojs-wavesurfer v1.3.1
* https://github.com/collab-project/videojs-wavesurfer
* Copyright (c) Collab 2014-2017 - Licensed MIT */ |
var waktu = $('#waktu').val();
var oldDate = new Date(waktu);
var hour = oldDate.getHours();
var newDate = oldDate.setHours(hour + 24);
console.log(newDate);
// Set the date we're counting down to = tujuan = 24 jam
var countDownDate = newDate;
// console.log(countDownDate);
// Update the count down every 1 second
v... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPropChange = exports.isLatLngChange = exports.toTuple = void 0;
var toTuple = function (latLng) { return (Array.isArray(latLng) ? latLng : [latLng.lat, latLng.lng]); };
exports.toTuple = toTuple;
var isLatLngChange = function (latLng... |
/* global chai */
import sinonChai from 'sinon-chai'
import chaiAsPromised from 'chai-as-promised'
import dirtyChai from 'dirty-chai'
chai.use(sinonChai)
chai.use(chaiAsPromised)
chai.use(dirtyChai) |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { AuthenticationError, BadRequest, DDoSProtection, ExchangeError, ExchangeNotAvailable, InsufficientFunds, InvalidOrder, OrderNotFound, PermissionDenied } = require ('./bas... |
import { all, fork, takeLatest, takeEvery, call, put, delay } from 'redux-saga/effects';
import axios from 'axios';
import { LOG_IN_SUCCESS, LOG_IN_FAILURE, LOG_IN_REQUEST, SIGN_UP_SUCCESS, SIGN_UP_FAILURE, SIGN_UP_REQUEST, LOG_OUT_SUCCESS, LOG_OUT_FAILURE, LOG_OUT_REQUEST, LOAD_USER_SUCCESS, LOAD_USER_FAILURE, LOAD_US... |
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
function noBlockLeft( bqBlock ) {
for ( var i = 0, length = bqBlock.getChildCount(), child; i < length && ( child = bqBlock.getChild( i ) );... |
// COPYRIGHT © 201 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute ... |
import * as React from 'react';
import PropTypes from 'prop-types';
import NextLink from 'next/link';
import Button from '@mui/material/Button';
import Divider from '@mui/material/Divider';
import { styled, alpha } from '@mui/material/styles';
import List from '@mui/material/List';
import Drawer from '@mui/material/Dra... |
import { hapticSelectionChanged } from '../../utils';
import { clamp } from '../../utils/helpers';
import { createThemedClasses } from '../../utils/theme';
/** @hidden */
export class PickerColumnCmp {
constructor() {
this.optHeight = 0;
this.pos = [];
this.rotateFactor = 0;
this.sca... |
import Http from '../../utils/Http'
import Transformer from '../../utils/Transformer'
import * as articleActions from './store/actions'
function transformRequest(parms) {
return Transformer.send(parms)
}
function transformResponse(params) {
return Transformer.fetch(params)
}
export function articleAddRequest(par... |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
'use strict';
let mongoose = require('mongoose');
let note = require('../models/noteModel');
// Get /note
function getNotes(req, res) {
let query = Note.find({});
query, exec((err, notes) => {
if (err) res.send(err);
res.json(notes);
});
}
// Post /note/:id
function postNote(req, res)... |
const Issue = require('../../models/IssueModel');
module.exports = function (req, res) {
const { id } = req.params;
Issue.findById(id).populate("project").then(issue => {
res.json(issue);
})
} |
const CHECK = 'planner/login/credentials/CHECK';
const CREATE = 'planner/login/credentials/CREATE';
const initialState = [
{
email: 'xmartinez@gmail.com',
password: 'skyhigh87',
},
];
// Action Creators
export const fetchCredentials = () => ({
type: CHECK,
});
export const createCredentials = (email, p... |
// fetch() is built in to Next.js 9.4 (you can use a polyfill if using an older version)
/* global fetch:false */
import { useState, useEffect, useContext, createContext, createElement } from 'react'
const DEFAULT_BASE_URL_COOKIE_NAME = 'next-auth.base-url'
const DEFAULT_SITE = ''
const DEFAULT_BASE_PATH = '/api/auth'... |
module.exports={A:{A:{"2":"J D E F A B tB"},B:{"2":"C K L G M N O","194":"P Q R S V W X Y Z a b c d e f g h i j T H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 iB I k J D E F A B C K L G M N O l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB jB PB kB QB RB U SB TB UB VB WB XB YB ZB aB bB cB dB eB fB P Q R l... |
import React from 'react'
import {StaticImage} from "gatsby-plugin-image"
import styled from "@emotion/styled"
import {css, jsx} from '@emotion/react'
import DownScrollIcon from './DownScrollIcon'
import bgGradient from "./AboutPage/bgGradient.jpeg"
import CurriculumTimelineMobile from './AboutPage/CurriculumTimelineMo... |
var app = new Vue({
el:'#section-list',
data:{
sectionList: [],
keyword: ""
},
methods:{
sectionDetails: function(item_id){
window.location.href = '/wechat/course/sectionIntroduction?item_id=' + item_id;
},
index: function() {
window.location.href = "/wechat";
},
myCenter: function() {
window... |
// Checks to see if given row-column pair are in snake
const isSnakeSegment = (snake, row, col) => {
const reducer = (acc, val) => acc || (val[0] === row && val[1] === col);
return snake.reduce(reducer, false);
}
export default isSnakeSegment; |
// @flow
import {observable} from 'mobx';
import ResourceStore from '../../../stores/ResourceStore';
import FormInspector from '../FormInspector';
import FormStore from '../stores/FormStore';
jest.mock('../../../stores/ResourceStore', () => jest.fn(function(resourceKey, id, options) {
this.resourceKey = resourceKe... |
/**
* Session Configuration
* (sails.config.session)
*
* Use the settings below to configure session integration in your app.
* (for additional recommended settings, see `config/env/production.js`)
*
* For all available options, see:
* https://sailsjs.com/config/session
*/
module.exports.session = {
/*****... |
// @flow
import React from 'react'
import { StyleSheet, View } from 'react-native'
import { Paragraph, Portal } from 'react-native-paper'
import normalize from '../../../lib/utils/normalizeText'
import SimpleStore from '../../../lib/undux/SimpleStore'
import CustomButton from '../buttons/CustomButton'
import ErrorIcon ... |
"use strict";
class Time {
static get current() {
let hrtime = process.hrtime();
return (hrtime[0] * 1000000 + hrtime[1] / 1000) / 1000;
}
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = Time;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC... |
var http = require('http');
var fs = require('fs');
var hostname = '127.0.0.1';
// var hostname = '192.168.14.254';
var port = 3000;
console.log(1);
// 创建服务器
var server = http.createServer(function(req, res){
// 跳过了 chrome 的收藏夹图标的请求
if (req.url == '/favicon.ico') return;
// 获取用户的IP
var userIp = getI... |
/* Modernizr 2.7.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-a_download
*/
;window.Modernizr=function(a,b,c){function t(a){i.cssText=a}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function v(a,b){return typeof a===b}function w(a,b){return!!~(""+a).indexOf(b)}function x(a,b,d){for(v... |
// ==UserScript==
// @name Open CDN MenuCommand
// @namespace https://github.com/Cologler/monkeys-javascript
// @version 0.1.1
// @description register open CDN MenuCommand
// @author Cologler (skyoflw@gmail.com)
// @match https://github.com/*
// @... |
'use strict';
/********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mo... |
import React from "react";
const dom = (eq) => ({
type: "math",
subtype: "summationSymbol",
children: [{ text: "\u00b7" }],
});
const Element = (attributes, children) => {
return <span {...attributes}>{children}</span>;
};
const icon = (attributes, children) => {
return <span {...attributes}> ·{child... |
$(function () {
$(document).ready(function () {
var map;
var bounds;
var $hsLatitude, $hsLongitude;
var infowindow = new google.maps.InfoWindow();
var markersCollection = []
$("#Scontainter").draggable();
Readhs();
setlanguage();
function... |
import * as lib from "./lib/lib.js";
import CONSTANTS from "./constants.js";
import { itemPileSocket, SOCKET_HANDLERS } from "./socket.js";
import { ItemPileInventory } from "./formapplications/item-pile-inventory.js";
import DropItemDialog from "./formapplications/drop-item-dialog.js";
import HOOKS from "./hooks.js";
... |
// META: script=/common/get-host-info.sub.js
// META: script=./resources/common.js
// META: timeout=long
'use strict';
assert_true(self.crossOriginIsolated);
promise_test(async testCase => {
const {iframes, windows} = await build([
{
id: 'cross-site-1',
window_open: true,
children: [
{... |
var searchData=
[
['ddualquat',['ddualquat',['../a00189.html#ga3d71f98d84ba59dfe4e369fde4714cd6',1,'glm']]],
['decompose',['decompose',['../a00204.html#ga0f1245817507156b337798a253577c8b',1,'glm']]],
['degrees',['degrees',['../a00151.html#gabccdcc282134fd62af0ff3d6e4bb21f1',1,'glm']]],
['determinant',['determin... |
// Código responsa por proceder com o req, res que foi passado pela rota
/* Abaixo dentro do yup (framework de schema validation),
não temos export.default, portanto procedemos com o seguinte:*/
import * as Yup from 'yup'
import User from '../models/User'
class UserController {
// store: responsa por cr... |
import axios from 'axios/dist/axios'
export const register = newUser => {
return axios
.post('http://localhost:5000/users/register', {
genre: newUser.genre,
tranche_d_age: newUser.tranche_d_age,
pays: newUser.pays,
ville: newUser.ville,
email: newUser.email,
password: newUser.... |
/* globals simulant chai DocumentTouch */
var expect = chai.expect
/**
* This file represents perfectly how you should not do a unit test!
* I will clean this up once
*/
function check(done, f) {
f()
done()
}
var testDiv = document.createElement('div'),
isTouch = 'ontouchstart' in window ||
window.D... |
/*
* Copyright 2020 Poly Forest, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
/***/ "./node_modules/@ionic/core/dist/esm/ion-alert-ios.entry.js":
/*!******************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/ion-alert-ios.entry.js ***!
\************************************... |
import React from 'react'
import * as Survey from '@core/survey/survey'
import * as DateUtils from '@core/dateUtils'
import { useI18n } from '@webapp/commonComponents/hooks'
const SurveyListRow = props => {
const { row: surveyRow, isRowActive } = props
const surveyInfoRow = Survey.getSurveyInfo(surveyRow)
con... |
import React from 'react';
import { useRouter } from 'next/router';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch } from '@fortawesome/free-solid-svg-icons';
import HeaderSearchModal from './HeaderSearchStyle';
import InputSearch from './searchBox';
function HeaderSearch() {
co... |
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1)
} |
module.exports = {
hooks: {
'commit-msg': 'yarn commitlint --edit'
}
}; |
/// 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
/// ... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = mongoose.Schema.Types.ObjectId;
var Tag = require("./tag_model");
var TrackSchema = new Schema({
name: String,
tag_id: [{ type: ObjectId, index: true, ref: "Tag" }],
tasks: [{
name: String,
category: { type: String, va... |
import React, { Component } from "react";
import "./PullRequestCard.css";
import { OverlayTrigger, Tooltip } from "react-bootstrap";
import {Fade} from 'react-reveal';
class PullRequestCard extends Component {
render() {
const pullRequest = this.props.pullRequest;
var iconPR;
var bgColor;
if (pullRequest["sta... |
module.exports = {
pathPrefix: '/gatsby-react-bootstrap-starter',
siteMetadata: {
title: `Cat Quinn Yoga`,
description: `A re-design project`,
author: `Sandy`
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
... |
var CACHE_NAME = 'my-site-cache-v1';
var urlsToCache = [
'/',
'/app.js',
'/icon.png',
'/index.html',
'/style.css'
];
self.addEventListener('install', function(e vent) {
// Perform install steps
event.waitUntil(
caches.open(CACHE_NAME)
.then(function(cache) {
console.log('Opened cache');... |
/*! jQuery Validation Plugin - v1.15.1 - 7/22/2016
* http://jqueryvalidation.org/
* Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}... |
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.19.1 - 2016-08-09T18:13:19.300Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: 18,... |
import '../App.css';
function EditComponent(addElement, goHome) {
return (
<div className="Appender-edit">
<button className="Edit-button-l" onClick={addElement}>Save</button>
<button className="Edit-button-r" onClick={goHome}>Cancel</button>
</div>
);
}
export default EditComponent; |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"\u10d9\u10d5\u10d8\u... |
import React from "react";
import { useColorMode, css } from "theme-ui";
import sun from "../images/sun.svg";
import moon from "../images/moon.svg";
/** @jsx jsx */
import { jsx } from "theme-ui";
const ToogleMode = () => {
const [colorMode, setColorMode] = useColorMode();
const isDark = colorMode === `dark`
co... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const request = require("request");
const getPem = require('rsa-pem-from-mod-exp');
const base64url = require... |
// 连接数据库
const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/staff',{useNewUrlParser:true});
let db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open',() => console.log('mongodb connect ok.')); |
import React from 'react';
import Link from 'gastby-link';
const Tags = ({ pathContext }) => {
const { posts, tagname } = pathContext;
if (posts) {
return (
<div>
<span>Posts about: {tagName}:</span>
<ul>
{posts.map(post => {
return (
<li>
... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
export type PlatformSelectSpec<D, I> = {
default?: D,
web?: I,
};
const Platform = {
OS: 'w... |
/*
Name: Shop6
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 5.3.0
*/
(function( $ ) {
// Home page slider
if ($.fn.revolution) {
$('#revolutionSlider').revolution({
sliderType: 'standard',
sliderLayout: 'auto',
delay: 9000,
gridwidth: 850,
gridheight: 373,
disableProgress... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image', 'gu', {
alt: 'ઑલ્ટર્નટ ટેક્સ્ટ',
border: 'બોર્ડર',
btnUpload: 'આ સર્વરને મોકલવું',
button2Img: 'તમારે ઈમેજ બટનને સાદી ઈમેજમાં બદલવું છે.'... |
import bg from 'gulp-bg';
import eslint from 'gulp-eslint';
import gulp from 'gulp';
import makeWebpackConfig from './webpack/makeconfig';
import path from 'path';
import runSequence from 'run-sequence';
import webpackBuild from './webpack/build';
import webpackDevServer from './webpack/devserver';
import yargs from 'y... |
"use strict";
const secp256r1 = require("secp256r1");
const {utils} = require("@ckb-lumos/base");
const {ckbHash} = utils;
const {secp256k1Blake160} = require("@ckb-lumos/common-scripts");
const {initializeConfig} = require("@ckb-lumos/config-manager");
const {addressToScript, sealTransaction, TransactionSkeleton} = r... |
import { h } from 'vue'
export default {
name: "Dice4",
vendor: "B",
type: "",
tags: ["dice","4"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","fill":"currentColor","class":"v-icon","viewBox":"0 0 16 16","data-name":"b-dice-4","innerHTML":" <pa... |
import hover from"../behaviors/hover";Component({behaviors:[hover],relations:{"../list/index":{type:"parent",linked(){},linkChanged(){},unlinked(){}}},options:{multipleSlots:!0},externalClasses:["l-class","l-class-icon","l-icon-class","l-class-image","l-image-class","l-class-right","l-right-class","l-class-content","l-... |
// Dom7
var $$ = Dom7;
// Theme
// var theme = 'auto';
// if (document.location.search.indexOf('theme=') >= 0) {
// theme = document.location.search.split('theme=')[1].split('&')[0];
// }
// Init App
var app = new Framework7({
id: 'io.framework7.testapp',
root: '#app',
theme: 'auto',
routes: route... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<div... |
/**
* External Dependencies
*/
import 'jquery';
// import 'slick-carousel/slick/slick'; //- only enable if needed
import 'bootstrap';
// import { library, dom } from '@fortawesome/fontawesome-svg-core';
// import { faFacebookF, faFacebook, faTwitter, faPinterestP, faInstagram, faLinkedin } from '@fortawesome/free-br... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GridColumnMenuFilterBaseProps.js.map |
const Ajv = require("../../wrapper/ajv-wrapper");
const PLANET_SCHEMA = {
type: "object",
properties: {
localeName: { type: "string" },
resources: { type: "integer" },
influence: { type: "integer" },
destroyed: { type: "boolean", default: false },
trait: {
ty... |
'use strict';
const courseListPage = require('../../page-objects/pages/coursePages/CRSSCourseListPage');
const addCoursePage = require('../../page-objects/pages/coursePages/CRSSAddCoursePage');
//WHEN
When(/^.* creates course with name '([^']*)'$/, function (coursename) {
return addCoursePage.createCourse(coursename... |
//
// Copyright (c) 2014 Mashery, 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 rights to use, copy, modify, merge, publi... |
! function ($) {
'use strict';
// TOOLS DEFINITION
// ======================
var cachedWidth = null;
// it only does '%s', and return '' when arguments are undefined
var sprintf = function (str) {
var args = arguments,
flag = true,
i = 1;
str = str.rep... |
"use strict";
const Base = require('yeoman-generator');
const generatorArguments = require('./arguments');
const generatorOptions = require('./options');
const generatorSteps = require('./steps');
module.exports = class AuthenticationGenerator extends Base {
constructor(args, options) {
super(args, options);
... |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Hungarian language.
*/
/**#@+
@type String
@example
*/
/**
* Constains the dictionary of ... |
const feeSchedule = [
{
blocks: 302400 * 4,
fee: 0.01
},
{
blocks: 302400 * 2,
fee: 0.25
},
{
blocks: 86400 / 2 * 5,
fee: 0.5
},
{
blocks: 86400 / 2 * 3,
fee: 1.0
},
{
blocks: 86400 / 2,
fee: 2.0
},
... |
var root = require('find-parent-dir').sync(__dirname, 'package.json');
var expect = require('expect.js');
var cp = require('child_process');
var Modernizr = require(root + 'lib/cli');
describe('cli', function() {
it('exposes a build function', function() {
expect(Modernizr.build).to.be.a('function');
});
i... |
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { TooltipIcon } from 'reactackle-tooltip-icon';
import { noop, isUndef } from 'reactackle-core';
import { OptionsListNative } from '../OptionsListNative/OptionsListNative';
import { OptionPropTypeNative } from '../Option... |
import React from 'react';
import { Header, Left, Button, Thumbnail, Body, Title, Right, Icon, Text, Container, List, ListItem, Content } from 'native-base'
import { Col, Row, Grid } from "react-native-easy-grid";
export default class FAQ extends React.Component {
constructor() {
super();
}
render() {
re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.