text stringlengths 2 1.05M |
|---|
define('ghost-admin/helpers/ember-power-select-is-selected', ['exports', 'ember-power-select/helpers/ember-power-select-is-selected'], function (exports, _emberPowerSelectIsSelected) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, 'default', {
... |
/** CONTENTS
* 1. Toggle "Track Points Checkbox"
* 2. Add Tracking Points
* 3. Remove Tracking Points
*/
// "Show Track Points" CHECKBOX toggle function
$('#show-points').change(function() {
if(this.checked) {
console.log("checked");
showTrackingPoints = true;
addTrackin... |
const yo = require('yo-yo')
const minixhr = require('minixhr')
const helper = require('../../../lib/helper')
const addTooltip = require('../../ui/tooltip')
const semver = require('semver')
const modalDialogCustom = require('../../ui/modal-dialog-custom')
const css = require('../styles/compile-tab-styles')
import { can... |
/* @preserve
* @esri/arcgis-rest-auth - v2.14.1 - Apache-2.0
* Copyright (c) 2017-2020 Esri, Inc.
* Thu Jul 23 2020 13:27:15 GMT-0600 (Mountain Daylight Time)
*/
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?defi... |
/**
* Created by lijianxun on 16/9/13.
* @bluebird Promise.props
*/
var Promise = require("bluebird");
function async_fun1() {
return new Promise((resolve, reject)=>{
setTimeout(()=>{
resolve("success-1");
},200);
});
}
function async_fun2(num) {
return new Promise((resolve, reject)=>{
setTimeout(()=>{... |
var express = require('express');
var multiparty = require('multiparty');
var fs = require('fs');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send('respond with a resource');
});
router.post("/upload", function(req, res) {
var form = new multiparty.Form({... |
import React from 'react'
import { Router } from '@reach/router'
import App from '../App'
import Stake from '../Stake'
import Play from '../Play'
class Routes extends React.Component {
render() {
return (
<Router>
<App path="/" />
<Stake path="/stake" />
<Play path="/play" />
... |
import test from 'ava';
import AvaRuleTester from 'eslint-ava-rule-tester';
import rule from '../../rules/no-big-array';
import pnoexz from '../_pnoexz';
const ruleTester = new AvaRuleTester(test, {});
ruleTester.run('no-big-array', rule, {
valid: [
'array1[99] = "a";',
'temp = array1[101]',
... |
/*
* Copyright 2019 is-land
*
* 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 w... |
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _enzyme = require('enzyme');
var _sinon = require('sinon');
var _sinon2 = _interopRequireDefault(_sinon);
var _ = require('../');
var _2 = _interopRequireDefault(_);
function _interopRequireDefault(obj) { return obj &... |
'use strict';
var path = require('path');
var fs = require('fs');
var generators = require('yeoman-generator');
var ClassGenerator = generators.Base.extend({
constructor: function () {
generators.Base.apply(this, arguments);
this.option('configfilename',{
type: String
, required: true
});
... |
(function(GoNorth) {
"use strict";
(function(Tale) {
(function(Actions) {
/// Action Type for transfering an item from the npc inventory to the player inventory
var actionTypeTransferItemToPlayerInventory = 5;
/**
* Transfer item from the npc i... |
/* eslint-disable no-new */
import Vue from 'vue'
import VueRouter from 'vue-router'
import '@/main.css'
import Homepage from '@/pages/Homepage'
import Login from '@/pages/Login'
import Loader from '@/components/Loader'
import EventsStore from '@libs/vue-events-store'
if (process.env.DEBUG === true) window.localSto... |
module.exports = installSelenium
const merge = require('lodash').merge
const selenium = require('selenium-standalone')
function installSelenium (state, callback) {
if (state.seleniumAlreadyRunning) {
return callback()
}
state.debugSelenium('Installing selenium')
const options = merge(state.config.seleni... |
module.exports={A:{A:{"1":"E A B","8":"O lB","129":"D","257":"G"},B:{"1":"C I F P J K L M KB N R YB T PB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 vB OB H Y O D G E A B C I F P J K L Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB NB GB HB IB JB Q LB FB W V U QB RB SB TB UB VB WB M KB N sB R kB jB"},D:{"1":"0 ... |
/**
* SocketCluster JavaScript client v16.0.2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof sel... |
;(function(angular){
var app = angular.module('app');
app.directive('focus', function(){
return {
restrict: 'EA' ,
link: function(scope, element , attr){
element.on('click', function(){
element.parent().children().attr('class','');
element.addClass('active');
})
}
... |
$(document).ready(function(){
//toggler btn
$('.navbar-toggler').click(function(){
$('.navbar-toggler').toggleClass('change')
})
//sticky navbar
$(window).scroll(function(){
let position = $(this).scrollTop();
// 718
if(position>= 600){
... |
const find = require('lodash/find')
const extend = require('lodash/extend')
const includes = require('lodash/includes')
// For IE 11
if(typeof Promise === 'undefined'){
global.Promise = require('promise-polyfill')
}
global.Exception = class Exception extends Error {
constructor(message){
super(message);
t... |
//// [tests/cases/compiler/declarationEmitExpressionInExtends6.ts] ////
//// [index.d.ts]
declare const require: any;
//// [a.ts]
export class Foo {}
//// [b.ts]
const { Foo } = require("./a");
export default class extends Foo {}
//// [b.js]
"use strict";
var __extends = (this && this.__extends) || (fun... |
import React from 'react'
import { useStaticQuery, graphql } from "gatsby"
import Img from 'gatsby-image'
import './Hero.scss'
//props for text over hero
export default function Hero(props) {
const data = useStaticQuery(graphql`
query {
allContentfulAsset {
edges {
node {
id
... |
const semver = require('semver')
const chalk = require('chalk')
module.exports = (version, pkgName) => {
if (!semver.satisfies(process.version, version, { includePrerelease: true })) {
let limit = semver.minVersion(version)
console.log(chalk.red(`
You are using Node ${process.version}, ... |
//# sourceMappingURL=/build/es2019/interfaces/audio-param.js.map |
/*
* Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
* Copyright [2016-2018] EMBL-European Bioinformatics Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
const a = Math.random() * 10;
const b = 3;
const c = 5;
const d = a < 3 ? b : c;
if (a < 3) {
console.log('A < 3');
}
const items = new Array(20).fill(0);
for (let i = 0; i < items.length; i++) {
console.log(items[i]);
}
|
export const forEach = (arr, fn) => {
if (!arr.length || !fn) return;
let i = -1;
const len = arr.length;
while (++i < len) {
const item = arr[i];
fn(item, i, arr);
}
};
/**
* @param {Array} arr1
* @param {Array} arr2
* @description 得到两个数组的交集, 两个数组的元素为数值或字符串
*/
export const getIntersection = (arr... |
/*
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
// This function will be converted into a string so
// the scope is limited to this function only.
// To pass external data use the 'input' function. See other examples.
export function spCode() {
// Put your Shader Park Code here
sphere(.5);
}; |
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
sap.ui.define(["sap/ui/webc/common/thirdparty/base/asset-registries/Icons"],function(t){"use strict";const q="attachment-audio";const s="M160 320q-15 0-22-5t-9-11q-3-7-1-16v-32q-2-9 1-16 2-6 9-11t22-5h27q5 0 10-3l97-74q4-3 10-3t11 4.5 5 11.5v224q0 8-5 12t-11 4-10-3l-97-74q-5-3-10-3h-27zm0-32h27q16 0 29 10l72 54V192l-72... |
/**
* Emerging Citizens
*
* GameGameUser Model
* @module tweet
* @class tweet
* @author Johnny Richardson
*
* For field docs: http://keystonejs.com/docs/database/
*
* ==========
*/
var keystone = require('keystone');
var Types = keystone.Field.Types;
/**
* GameUser Model
* ==========
*/
var GameUser... |
// @flow
import type {
lf$Transaction,
} from 'lovefield';
import {
asDisplayCutoff,
asGetAllUtxos,
asGetAllAccounting,
asHasLevels,
} from '../models/PublicDeriver/traits';
import type {
IPublicDeriver,
Address, AddressType, Value, Addressing, UsedStatus,
} from '../models/PublicDeriver/interfaces';
im... |
import React from 'react';
import { ReactComponent as LoaderSvg } from '../../assets/svg/loader.svg';
const Loader = () => (
<div className="loader">
<LoaderSvg className="loader__svg" />
</div>
);
export default Loader;
|
import fonts from "./fonts";
const breakpointValues = {
xs: 0,
sm: 596,
md: 800,
lg: 1000,
xl: 1333,
};
// replace above with this later
// const breakpointValues = {
// mobile: 590,
// tablet: 970,
// browser: 1333,
// };
const commonSettings = {
direction: "ltr",
typography: {
fontSize: 16,... |
import {stringify} from 'qs';
import request from '../utils/request';
import {getPlainNode} from "../utils/utils";
/**
* 全部权限树
* @returns {Promise<Object>}
*/
export async function page(payload) {
return request(`/api/permission/page`, {
method: 'GET',
body: payload
});
}
export async function getPerm... |
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _react = require('react');
var _react2 = ... |
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`E2E lint assertions-mutually-exclusive-error 1`] = `
validating /openapi.yaml...
[1] openapi.yaml:18:5 at #/paths/~1pet~1findByStatus/get
Operation should not have summary and tags fields simultaneously
16 | paths:
17 | /pet/findByStatus:
18 | get:
| ... |
module.exports = function(grunt){
'use strict';
grunt.initConfig({
jshint : {
all : {
files : {
src : ['Gruntfile.js', 'index.js', 'templates.json', 'test/index.js', 'test/transcript.json', 'examples/*.js']
},
options : {
node : true
}
}
},
test : {
options : {
require : ['... |
const fakeInstall = require("fake-build");
const owners = [
"ethereum",
"eosio",
"bitcoin",
"iotaledger",
"NemProject",
];
module.exports = async function() {
for (const owner of owners) {
await fakeInstall(owner);
}
}
|
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
import MuiGridListTileBar from '@material-ui/core/GridListTileBar'
export default MuiGridListTileBar
|
export default{
name: "beerInfo",
template: `
<div class="itemInfo-component">
<a class="btn bg-orange" v-on:click="back" style="color: white;"> ❮ Back </a>
<div v-if="beer.name" class="item-title">
<h1>{{beer.name}}</h1>
<h4>{{beer.tagline}}</h4>
</div>... |
import React from "react"
import {graphql} from "gatsby"
import Layout from "../components/layout"
import SectionHeader from "../components/Services/SectionHeader/SectionHeader"
import SectionBookAnAppointment from "../components/HomePageComponents/SectionBookAnAppointment/SectionBookAnAppointment"
import SectionForm f... |
// Material Design colors //////////////////////////////////////////////////////////////////////////
// https://material.io/design/color/the-color-system.html#tools-for-picking-colors
// https://material.io/resources/color/
// Material A 700 (very intense, too purple)
// const colorRed = '#d50000';
// const colorPink ... |
import Vue from 'vue'
import Vuex from 'vuex'
import router from './router'
import axios from 'axios'
import {isNull} from "bootstrap-vue/esm/utils/inspect";
import {from} from "bootstrap-vue/esm/utils/array";
// test it.
Vue.use(Vuex)
export default new Vuex.Store({
state:{
userInfo: null,
isLogi... |
// @flow
import React, { Component, type ComponentType, type ElementRef } from 'react';
import { omit, getDisplayName } from '../utils';
type Props = {
href?: string,
isActive?: boolean,
isFocus?: boolean,
isHover?: boolean,
isInteractive?: boolean,
onBlur?: () => mixed,
onClick?: () => mixed,
onFocus?... |
var e10 = Math.sqrt(50),
e5 = Math.sqrt(10),
e2 = Math.sqrt(2);
/**
* 根据参数返回长度为count+1的刻度值数组,每个元素值都会转换为以10为底的幂
* @param {*} start
* @param {*} stop
* @param {*} count
*/
export default function(start, stop, count) {
var reverse,
i = -1,
n,
ticks,
step;
/** 下面的代码用于将数字串转换为数值型... |
// Ensure that sort behavior for undefined, missing, and null fields is the same for both find and
// aggregation. This test validates the fix for SERVER-42565, which was caused by inconsistent
// behavior for generating sort keys in aggregation.
(function() {
"use strict";
const coll = db.sort_key_with_missing_fields... |
import React, { useState } from 'react';
import GradeDataService from '../services/GradeService';
const AddGrade = () => {
const initialGradeState = {
id: null,
name: '',
subject: '',
type: '',
value: '',
};
const [grade, setGrade] = useState(initialGradeState);
const [submitted... |
// Karma configuration
// Generated on Wed Jul 12 2017 09:28:46 GMT-0300 (BRT)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... |
(function(d){d['zh-cn']=Object.assign(d['zh-cn']||{},{a:"图片工具栏",b:"媒体工具栏",c:"表格工具栏",d:"Special characters",e:"块引用",f:"标题类型",g:"标题",h:"增加缩进",i:"减少缩进",j:"超链接",k:"编号列表",l:"项目列表",m:"媒体小部件",n:"插入媒体",o:"URL不可以为空。",p:"不支持此媒体URL。",q:"加粗",r:"倾斜",s:"代码",t:"删除线",u:"下划线",v:"图像小部件",w:"输入图片标题",x:"图片通栏显示",y:"图片侧边显示",z:"图片左侧对齐",aa:"图片... |
'use strict';
/**
* Controller for Estado
**/
estadoModule.controller('EstadoCtrl', ['Estado', '$scope', '$routeParams', '$http', '$location', '$cookies', 'MessageHandler', 'restURL', function(Estado, $scope, $routeParams, $http, $location, $cookies, MessageHandler, restURL) {
// edition mode
$scope.mode =... |
import React from 'react';
const GithubIcon = () => {
return (
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fill="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633... |
import { login, logout, getInfo } from '@/api/login'
import { getToken, setToken, removeToken } from '@/utils/auth'
const user = {
state: {
token: getToken(),
name: '',
avatar: '',
roles: [],
permissions: []
},
mutations: {
SET_TOKEN: (state, token) => {
state.token =... |
/// <reference types="Cypress" />
const md5 = require('blueimp-md5');
context('Layout widgets', () => {
before(() => {
cy.visit('http://localhost:3000/examples/components/vue-ncform/_layout-widgets.html')
})
it('layout:v & collapsed: false', () => {
let id = md5('layout:v & collapsed: false');
cy.... |
module.exports = function toReadable(number) {
let units = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen']
let tens = ['twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', ... |
/**
* Copyright 2018 The AMP HTML 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 require... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Redis = require('ioredis');
var RedisDatabase = (function () {
function RedisDatabase(options) {
this.options = options;
if (options.databaseConfig.redis.nodes && options.databaseConfig.redis.nodes.length != 0) {
... |
import userIsLoggedIn from '../utils/userIsLoggedIn';
const initialState = {
auth: {
isAuthenticated: userIsLoggedIn(),
user: {},
},
users: {
signingIn: false,
error: '',
},
rides: {
rideOffers: [],
loadingRides: false,
error: '',
},
offerRide: {
loading: false,
error:... |
'use strict';
var _16 = {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 16,
height: 16,
},
content: [
{
elem: 'path',
attrs: {
d: 'M11 18l1.41 1.41L15 16.83V29h2V16.83l2.59 2.58L21 18l-5-5-5 5z',
},
},
{
elem:... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles((theme) => ({
img: {
height: 240,
display: "block",
maxWidth: 400,
overflow: "hidden",
width: "100%",
},
imgRest: {
height: 360,
display: "block",
maxWidth: 500,
over... |
"use strict";module.exports=function(i){require("source-map-support").install();var n=require("modbus-serial"),u=require("./core/modbus-server-core"),d=require("./modbus-basics"),c=require("debug")("contribModbus:flex:server");try{i.nodes.registerType("modbus-flex-server",function(e){i.nodes.createNode(this,e);var r=(s... |
const Buffer = require('safe-buffer').Buffer
const async = require('async')
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
const fees = require('ethereum-common')
const exceptions = require('./exceptions.js')
const ERROR = exceptions.ERROR
/**
* runs a CALL operation
* @method runCall
* @param op... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BasicLatin.js
*
* Copyright (c) 2009-2017 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var BitmapText = require('./BitmapText');
var GameObjectFactory = require('../../GameObjectFactory');
/**
* Creates ... |
import React, { useState, useEffect, useMemo } from 'react';
import PropTypes from 'prop-types';
import { IntlProvider } from 'react-intl';
import { setRTL } from '@fluentui/react';
import { APP_LOCALES, importMessages } from '../../i18n/i18n';
import { polyfillDisplayNames } from './polyfillDisplayNames';
const Loc... |
function KeyboardInputManager() {
this.events = {};
if (window.navigator.msPointerEnabled) {
//Internet Explorer 10 style
this.eventTouchstart = "MSPointerDown";
this.eventTouchmove = "MSPointerMove";
this.eventTouchend = "MSPointerUp";
} else {
this.eventTouchstart = "touchsta... |
import { animationstart, fastdom, getStyle, on, toMs } from '../util/index';
import Accordion from './accordion';
import Alert from './alert';
import Cover from './cover';
import Drop from './drop';
import Dropdown from './dropdown';
import FormCustom from './form-custom';
import Gif from './gif';
import Grid from './... |
window.zEmbed || function (e, t) {
var n, o, d, i, s, a = [], r = document.createElement("iframe");
window.zEmbed = function () {
a.push(arguments)
}, window.zE = window.zE || window.zEmbed, r.src = "javascript:false", r.title = "", r.role = "presentation", (r.frameElement || r).style.cssText = "display: none... |
(window.webpackJsonpFileIcons=window.webpackJsonpFileIcons||[]).push([[224],{320:function(q){q.exports={viewBox:"0 0 1024 1024",font:"file-icons",code:"e925",ref:"apple",path:"M925 798q-11 27-25 51.5T870 897q-22 31-39.5 52.5T799 983q-21 19-44 29t-47 11q-17 0-38.5-5t-45.5-15q-25-10-47.5-15t-43.5-5q-21 0-44.5 5t-48.5 15q... |
/* eslint-disable */
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import {htmlEscapeJsonString} from '../server/htmlescape'
import flush from 'styled-jsx/server'
export default class Document extends Component {
static childContextTypes = {
_documentProps: PropTypes.any,
_devOn... |
import React from 'react';
import {Table, Tag, Tooltip} from 'antd';
import indexStyles from "../../pages/home/homeIndex.less";
import 'remixicon/fonts/remixicon.css';
class ServiceInvokeList extends React.Component {
render() {
const {serviceInvokes, onShowDetail, onQuerySchedule} = this.props;
const col... |
// Error: :7:18: Unexpected token no substitution template
class A {}
class ImproperSuper extends A {
method() {
return super ``;
}
}
|
const needle = require("needle");
const dotenv = require("dotenv");
const hash = require('hash.js')
const prompt = require('prompt');
const NodeCache = require("node-cache");
const jwtCache = new NodeCache({useClones: false});
const persistence_... |
// const planets = [];
// module.exports = planets;
const { parse } = require('csv-parse');
const fs = require('fs');
const path = require('path');
const results = [];
function isHabitable(planet) {
return planet['koi_disposition'] === "CONFIRMED" && planet['koi_insol'] <= 1.11 && planet['koi_insol'] >= 0.36 && pl... |
var matrix3x3_8cpp =
[
[ "obrot_X", "matrix3x3_8cpp.html#a1b1c578053436e25b1247606cb35d497", null ],
[ "obrot_Y", "matrix3x3_8cpp.html#aa4993b78f26871256a063dc3922305fb", null ],
[ "obrot_Z", "matrix3x3_8cpp.html#a50ead2c60333991d53845ac2422aa6d5", null ]
]; |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("language","pt-br",{button:"Configure o Idioma",remove:"Remover Idioma"}); |
$(document).ready(function(){
//Select2 para clientes y contactos dentro de un nuevo proyecto
$("#tipoContrato").select2();
$('#estadoProyecto').select2();
$('#tipoProyecto').select2();
$('#contactoDirecto').select2({
ajax: {
... |
var PayPal="PayPal",Email="Email",MalaysianRinggit="RM",USD="USD";
function Cart(){
var me = this;
/* member variables */
me.nextId = 1;
me.Version = '2.2.2';
me.Shelf = null;
me.items = {};
me.isLoaded = false;
me.invoice = null;
me.pageIsReady = false;
me.quantity = 0;
me.total = 0;
me.taxR... |
/**
* limit the number of angular components per file
*
* The number of AngularJS components in one file should be limited.
* The default limit is one.
*
* ### Options
*
* - The acceptable number of components. (Default: 1)
*
* @styleguideReference {johnpapa} `y001` Define 1 component per file
* @version 0.1... |
import React from 'react'
import { connect } from 'react-redux'
import Spinner from 'react-spinkit'
const styles = {
page: {
display: 'flex',
justifyContent: 'space-around',
alignItems: 'center',
},
container: {
border: '1px solid black',
backgroundColor: 'lightYellow',
padding: '1rem',
width: '15rem'... |
import React from 'react';
import { css, ClassNames } from '@emotion/core';
import {
FacebookShareButton,
LinkedinShareButton,
TwitterShareButton,
RedditShareButton,
} from 'react-share';
import {
FaRedditAlien,
FaFacebookF,
FaLinkedinIn,
FaTwitter,
FaShare,
} from 'react-icons/fa';
import { red } fr... |
const spawn = require('cross-spawn')
const path = require('path')
const currentVersion = require('./package.json').version
const plat = process.platform === 'win32' ? 'win' :
process.platform === 'darwin' ? 'macos' :
'linux'
const platBinary = `upm-${plat}.original${process.platform == 'win32' ? '.exe' : ''}`
// just ... |
const Kafka = require('no-kafka');
const brain = require('brain.js');
const data = require('./data.json');
const producer = new Kafka.Producer();
const network = new brain.recurrent.LSTM();
var cond = '';
const trainingData = data.map(item => ({
input: item.text,
output: item.category
}));
network.train... |
var Stage = {
} |
import React, { useState, useEffect } from "react";
import { axiosWithAuth } from "./axiosAuth";
import "./post.css";
import '../index.css'
class Post extends React.Component {
state = {
recipe: {
name: "",
category: "1",
img: "",
ingredients: "",
instructions: ""
},
isFetc... |
import logo from "../images/logo.png";
import {
HeaderWrapper,
LogoLink,
RedirectToPath,
HeaderAccountLink,
} from "../styles";
import HeaderShoppingCart from "../containers/HeaderShoppingCart";
const Header = () => (
<HeaderWrapper>
<LogoLink to="/">
<img src={logo} alt="logo" />
</LogoLink>
... |
"use strict";
const {
MdsEntry,
MdsCollection,
} = require("../lib/mds");
const {
str2ab,
coerceToBase64Url,
jsObjectToB64,
} = require("../lib/utils");
const chai = require("chai");
const crypto = require("crypto");
const h = require("fido2-helpers");
const fs = require("fs");
var chaiAsPromised = require("ch... |
/*===
SyntaxError
===*/
/* The current number parser is a lenient approximation and will be fixed
* when compliant number parsing is implemented. This test case illustrates
* one leniency example.
*/
try {
print(JSON.parse('1.2.3'));
} catch (e) {
print(e.name);
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const system_components_1 = require("system-components");
exports.Slider = system_components_1.default({
is: "input",
type: "range",
width: 1,
mx: 0,
my: 2,
color: "inherit",
bg: "gray",
borderRadius: 99999
}, {... |
console.log("ddddddddddddddddddddddddddddddd:");
import React from "react";
import ReactDOM from "react-dom";
import LoginInfo from "./modules/login/loginInfo.jsx";
ReactDOM.render(<LoginInfo />, document.getElementById("loginInfo"));
|
'use strict';
module.exports = function(Review) {
Review.beforeRemote('create', function(context, user, next) {
context.args.data.date = Date.now();
context.args.data.publisherId = context.req.accessToken.userId;
next();
});
};
|
import React, {useEffect, useState} from 'react'
import fetch from 'node-fetch'
import CodeBlock from '@theme/CodeBlock'
import styles from './CodeFromRemote.module.css';
const CodeFromRemote = ({url, link, ...props}) => {
const [content, setContent] = useState('')
let {src, lang, title} = props
if (url) {
... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* The following block of code may be ... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Link } from 'react-router-dom';
import { Row, Col, Image, ListGroup, Card, Button } from 'react-bootstrap';
import Rating from '../components/Rating';
const ProductScreen = ({ match }) => {
const [product, setProduct] = useStat... |
export todo from './todo'
export todos from './todos' |
'use strict';
// ---------------------------------------------------------------------------
const bitfinex = require ('./bitfinex.js');
const { ExchangeError, InvalidAddress, ArgumentsRequired, InsufficientFunds, AuthenticationError, OrderNotFound, InvalidOrder, BadRequest, InvalidNonce, BadSymbol, OnMaintenance, No... |
const router = require('express').Router();
const Workout = require('../models/workout');
//`GET /api/workouts` sends an array of all workouts.
router.get('/api/workouts', function(req, res) {
Workout.find({}).then(function(workouts) {
res.json(workouts);
})
});
//* `PUT /api/workouts/:id`appends the r... |
(function($){
$(document).ready(function(){
$('#footer-form').submit(function (e) {
e.preventDefault();
var data = {
name : $('#name2').val(),
email : $('#email2').val(),
message : $('#message2').val(),
};
$.ajax({
url : '//api.hurtigtechnologies.com/mail/send.php',
method : 'POST',
... |
import React from "react";
export default class Layout extends React.Component {
render() {
return (
<div>Layout here</div>
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.