text stringlengths 2 1.04M |
|---|
/* eslint-disable max-len */
export default {
__html:
'<svg class="carbon-icon__svg carbon-icon__svg--sort-up" width="10px" height="11px" viewBox="0 0 10 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">'
+ '<t... |
(function () {
'use strict';
var app = angular.module("matterMain");
app.controller('MatterUsersController', ['$scope', '$state', '$stateParams', 'api', 'matterResource', '$filter', '$window', '$rootScope', '$location',
function ($scope, $state, $stateParams, api, matterResource, $filter, $window, $roo... |
(function (angular, window) {
'use strict';
angular
.module('mediaCenterDesign')
.controller('SettingsCtrl', ['$scope', 'COLLECTIONS', 'DB', 'MediaCenterInfo', '$timeout', 'Buildfire', 'EVENTS', 'Messaging', 'Orders', function ($scope, COLLECTIONS, DB, MediaCenterInfo, $timeout, Buildfire, EVENT... |
define({
}); |
module.exports = {
"transform": {
"^.+\\.svelte$": [
"svelte-jester",
{
"preprocess": true
}
],
"^.+\\.ts$": "ts-jest"
},
"moduleFileExtensions": [
"js",
"ts",
"svelte"
],
}; |
/**
* @license
* Copyright Google LLC 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 { FocusMonitor } from '@angular/cdk/a11y';
import { Platform } from '@angular/cdk/platform';
import { ChangeDet... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
// JavaScript recursive descent parser for storing text retrieved from LinkedIn profile PDFs in JSON format.
// Author: Isaac Mast <isaac.k.mast@gmail.com> [https://github.com/isaacmast]
// GitHub repo: https://github.com/isaacmast/linkedin-pdf-to-json
var jsonfile = require('jsonfile');
module.exports = LinkedInPdfT... |
const apis = {
getApiList: {
action: 'DescribeApiListByLimit',
},
// api状态列表
getApiStatus: {
action: 'DescribeApiDocument',
},
// 所属服务列表
getApiServiceList: {
action: 'DescribeServiceForApi',
},
// 发布API
publishApi: {
action: 'PublishApi',
m... |
({
buildUrl : function(component) {
if (component.get("v.topic")){
return '/topic/'+component.get("v.topic");
} else if (component.get("v.platformEvent")){
return '/event/'+component.get("v.platformEvent");
} else {
console.error('Neither the topic nor the platform event is specified');
}
}
}) |
// @flow
import './Header.css'
import * as React from 'react'
import Select from 'react-select'
import type { ProjectOption } from '../../App'
import searchIcon from './magnifier-tool.svg'
type Props = {
name: string,
projects: Array<ProjectOption>,
currentProject: number,
onSearch: string => mixed,
onProj... |
var defineNameProperty = require(src + '/utils/defineNameProperty.js')
describe('defineNameProperty', function() {
it('should register name getter/setter', function() {
function Task() {}
defineNameProperty(Task)
var task = new Task()
task.name = 'test'
expect(task.name).to.equal('test')
})
... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
import React from 'react';
import { mount } from 'enzyme';
import ChatBox from '../src/ChatBox';
describe('chatBox', () => {
let wrapper;
const onSendFunc = jest.fn();
beforeEach(() => {
wrapper = mount(<ChatBox userId={1} onSendMessage={onSendFunc} />);
});
afterEach(() => {
wrapper.unmount();
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import { __assign, __awaiter, __generator } from "tslib";
import AbortController from "abort-controller";
import FormData from "form-data";
import { HttpHeaders } ... |
const express = require('express');
const cors = require('cors');
const sampleLogs = require('./exampleLogStream.json').logs;
const yaml = require('./exampleFlows').example;
const app = express();
app.use(cors());
const PORT = 5000
function startDemo(req, res) {
console.log('starting log stream')
let messageId = 0;... |
import React from 'react';
import PropTypes from 'prop-types';
import groupBy from 'lodash/groupBy';
import get from 'lodash/get';
import isResourceAvailable from 'utils/isResourceAvailable';
import getSpaceAvailability from 'utils/getSpaceAvailability';
import SpaceAvailability from 'constants/SpaceAvailability';
imp... |
YUI.add('loader-yui3', function(Y) {
/* This file is auto-generated by src/loader/scripts/meta_join.py */
/**
* YUI 3 module metadata
* @module loader
* @submodule yui3
*/
YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
"align-plugin": {
"requires": [
"node-screen",
... |
const gulp = require('gulp');
// const autoprefixer = require('gulp-autoprefixer');
// const babel = require('gulp-babel');
// const cleanCSS = require('gulp-clean-css');
// const uglify = require('gulp-uglify-es').default;
// const del = require('del');
const browserSync = require('browser-sync').create();
exports.wa... |
import React, { useState } from 'react'
import styled from 'styled-components'
import SearchIcon from '@material-ui/icons/Search';
import {
Home, OndemandVideo, Store, SupervisedUserCircleOutlined,
ViewQuiltOutlined, Apps, Telegram, Notifications, ArrowDropDown,
Menu
} from '@material-ui/icons'
impor... |
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('Wo_Ads', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true
},
type: {
type: DataTypes.STRING(32),
allowNull: false,
defaultVal... |
/**
* UserExtra.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
attributes: {
merchant: {
model: 'merchant',
required: true,
unique: true
... |
import React, {Component} from 'react'
export default (props) => {
return (
<div>
{props.children}
</div>
)
} |
/**
* This component is attached to entities that will appear in the game world. It creates a PIXI Container to contain all other display objects on the entity and keeps the container updates with the entity's location and other dynamic properties.
*
* @namespace platypus.components
* @class RenderContainer
* @use... |
$(document).ready(function () {
$('.sidebar-menu').tree({accordion:false});
if ($(this).width() < 769) {
config.isMobile = true;
}
// 触发插件菜单默认显示值
$('.rfTopMenu').each(function () {
if (parseInt($(this).data('addon_centre')) === 1) {
$('.rfLeftMenuAddon').addClass('rfLeftMen... |
"!="
//# sourceMappingURL=polyfill-f2b578758e093ca339ba.js.map |
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
import * as textContain from 'zrender/src/contain/text';
import OrdinalScale from '../scale/Ordinal';
import IntervalScale from '../scale/Interval';
import Scale from '../scale/Scale';
import * as numberUtil from '../util/number';
impor... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import iconNews from '../../images/svg/004-newspaper.svg';
import { Container, Header, Icon } from '../../styles';
const Story = styled.div`
padding: 0;
`;
const StoryBody = styled.div`
font-size: calc(10px + 1v... |
module.exports = {
image1:
image2:
pdf1:
}; |
/** @jsx React.DOM */
var defaultPanel = React.createClass({displayName: "defaultPanel",
render: function() {
return (
React.createElement("div", {id: "panel-default current"},
React.createElement("header", null,
React.createElement("h1", null, "Unlock the Vault"),
React.createElement("p", null,... |
'use strict';
const Bot = require('../lib/chipchat');
const bot = new Bot({
token: process.env.TOKEN
});
bot.on('ready', () => {
console.log('ready', bot.user);
});
bot.on('error', (err) => {
console.log('handle error', err);
});
bot.on('message', (_, conversation) => {
const convId = conversation.... |
/*
* Markdown is a named function that will parse markdown syntax
* @param {String} msg - The message html
*/
import { Random } from 'meteor/random';
const addAsToken = (message, html) => {
const token = `=!=${ Random.id() }=!=`;
message.tokens.push({
token,
text: html,
});
return token;
};
const validate... |
/*
2013-2016 (c) Sahana Software Foundation
@license MIT
requires jQuery 1.9.1+
requires jQuery UI 1.10 widget factory
requires D3.js 3.4.9+
*/
!function(){function J(c,u){return c<u?-1:c>u?1:c>=u?0:NaN}function v(c){return null!=c&&!isNaN(c)}function a(c){return{left:function(u,a,l,h){3>arguments.length&&(l=0);... |
'use strict';
// startDate isn't going to appear bc Pinhook is not currently doing open mic nights
const events = [
{
frequency: 'monthly',
startDate: '08-02-14',
startTime: '8:00pm - 11:00pm',
title: 'PUNCHLINE OPEN MIC',
type: 'open'
}
];
module.exports = events; |
var path = require("path");
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
output: {
path: path.join(__dirname, "../build/release/"),
publicPath: "",
filename: "bundle.js",
},
cache: false... |
const A_PRICE = 50
const A_OFFER_PRICE = 130
const A_OFFER_NUM = 3
// A & B Offer number indicates the number of A or B
// someone buys before it triggers an offer
const B_PRICE = 30
const B_OFFER_PRICE = 45
const B_OFFER_NUM = 2
const C_PRICE = 20
const D_PRICE = 15
const INCORRECT_INPUT = -1
function Shop () {
}
Sh... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var FolderChart2 = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.creat... |
import {beforeEach, jest, test} from "@jest/globals";
jest.mock('laravel-jetstream')
import {createLocalVue, mount, shallowMount} from '@vue/test-utils'
import {InertiaApp} from '@inertiajs/inertia-vue'
import {InertiaForm} from 'laravel-jetstream'
import AppLayout from "@src/Layouts/AppLayout";
let localVue
before... |
/**
* A simply solution but not efficient consider every character of ‘str1′ and
* check if all occurrences of it map to same character occurrences in ‘str2′.
* Time complexity of this solution is O(n*n).
*
* This is a better solution (NOT ACCEPTED, Time limit exceeded).
* 1. check if t[i] is in the map. If yes, ... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
/* eslint-env browser */
'use strict';
require('./driver').set(require('./drivers/browser'));
const DocumentProvider = require('./document_provider.js');
const PromiseProvider = require('./promise_provider');
DocumentProvider.setBrowser(true);
/**
* The Mongoose [Promise](#promise_Promise) constructor.
*
* @met... |
import path from 'path';
const svgr = require('@svgr/rollup').default;
const IS_DEV_ENV = process.env.NODE_ENV === 'development';
const resolve = () => {
const resolve = require('rollup-plugin-node-resolve');
return resolve({
preferBuiltins: true,
extensions: ['.js', '.jsx', '.json'],
});
};
const resol... |
import NumberComparator from './NumberComparator.js';
import StringComparator from './StringComparator.js';
class LocationComparator {
stringComparator = new StringComparator();
numberComparator = new NumberComparator();
compare(a, b) {
let streetResult = this.stringComparator.compare(a.street, b.... |
var test = require("tape");
var chartGenerators = require("./chart-generators");
var ChartServerActions = require("../src/js/actions/ChartServerActions");
var ChartViewActions = require("../src/js/actions/ChartViewActions");
var ChartPropertiesStore = require("../src/js/stores/ChartPropertiesStore");
function setupSto... |
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
"currency-it-pre": function (a) {
a = (a==="-") ? 0 : a.replace(/[^\d\-\,]/g, "");
return parseFloat(a.replace(',', '.'));
},
"currency-it-asc": function (a, b) {
return a - b;
},
"currency-it-desc": function (a, b) {
return b - a;
}
}); |
const path = require('canonical-path');
const fs = require('fs-extra');
const glob = require('glob');
const shelljs = require('shelljs');
const exampleBoilerPlate = require('./example-boilerplate');
describe('example-boilerplate tool', () => {
describe('add', () => {
const sharedDir = path.resolve(__dirname, 's... |
import { shallowMount } from '@vue/test-utils'
import DateInput from '~/components/DateInput.vue'
import { en } from '~/locale'
describe('DateInput unmounted', () => {
it('check props default', () => {
expect(typeof DateInput.props.translation.default).toEqual('function')
expect(DateInput.props.translation.d... |
import React, { useRef, useEffect, useState } from "react";
import { useAuth } from "../contexts/AuthContext";
import { Link } from "react-router-dom";
import { db } from "../firebase";
import styles from "./Deposit.module.css";
import BalanceDisplay from "./BalanceDisplay";
import DepositWithdrawTemplate from "./Depos... |
const child_process = require("child_process");
function npm(args) {
return child_process.spawnSync("npm", args, {
cwd: process.cwd(),
stdio: ["inherit", "inherit", "inherit"]
});
}
module.exports = npm; |
/*!
* <%= _.slugify(appname) %>
*
* Copyright (c) 2014 <%= authorname %>, contributors
* Licensed under the MIT License (MIT)
*/
var file = require('fs-utils');
var verb = require('verb');
var expect = require('chai').expect;
var <%= _.appname(appname) %> = require('../');
describe('<%= appname %>:', function ()... |
'use strict';
!function($) {
/**
* Drilldown module.
* @module foundation.drilldown
* @requires foundation.util.keyboard
* @requires foundation.util.motion
* @requires foundation.util.nest
*/
class Drilldown {
/**
* Creates a new instance of a drilldown menu.
* @class
* @param {jQuery} element - jQu... |
'use strict';
let myForm = document.getElementById('myForm');
let myTable = document.getElementById('myTable');
let mainArr = [];
function Foods(userName,foodType){
this.userName=userName;
this.foodType=foodType;
this.img=`images/${foodType}.jpg`
mainArr.push(this);
}
console.log(mainArr);
myForm.ad... |
import {
adopt,
extend,
nodeOrNew,
register,
wrapWithAttrCheck
} from '../utils/adopter.js'
import { registerMethods } from '../utils/methods.js'
import SVGNumber from '../types/SVGNumber.js'
import Shape from './Shape.js'
import { globals } from '../utils/window.js'
import * as textable from '../modules/core... |
var searchData=
[
['findfirstcommon_31',['findFirstCommon',['../algorithms_8h.html#a1c93fb5d3c7a54614f9712d735279389',1,'pf']]],
['findif_32',['findIf',['../algorithms_8h.html#afb091ebcd55afd6560689d5bf2d93364',1,'pf']]],
['finishandstop_33',['finishAndStop',['../classpf_1_1ThreadPool.html#a4381fbb945d579007d2e64... |
//// [commentOnImportStatement3.ts]
/* copyright */
/* not copyright */
import foo = require('./foo');
//// [commentOnImportStatement3.js]
/* copyright */
"use strict"; |
import * as api from './api.js';
const host = 'http://localhost:3030';
api.settings.host = host;
export const login = api.login;
export const register = api.register;
export const logout = api.logout;
export async function getMemes() {
return await api.get(api.settings.host + '/data/memes?sortBy=_createdOn%20d... |
$(function() {
$('#side-menu').metisMenu();
});
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function() {
$(window).bind("load resize", function() {
topOffset = 100;
width = (this.window.innerWid... |
import React, { useState } from 'react';
import ExpenseForm from './ExpenseForm';
import './NewExpense.css';
const NewExpense = (props) => {
const [isEditing, setIsEditing] = useState(false);
const saveExpenseDataHandler = (enteredExpenseData) => {
const expenseData = {
...enteredExpenseData,
id... |
import React from 'react';
import SettingsList from 'react-native-settings-list';
import {
Image,
View,
Alert,
} from 'react-native';
export default class SettingsScreen extends React.Component {
static navigationOptions = {
title: 'Settings',
};
constructor(){
super();
this.onValueChange = ... |
/*
----------------------------------------------------------------------------
| qewd-openid-connect: QEWD-enabled OpenId Connect Server |
| |
| Copyright (c) 2018 M/Gateway Developments Ltd, |
| R... |
import { OutlineArrowForwardIos as TwoToneArrowForwardIos } from './OutlineArrowForwardIos';
export { TwoToneArrowForwardIos }; |
import { queryFakeList,getDecorationList } from '../services/api';
export default {
namespace: 'list',
state: {
list: [],
arr : []
},
effects: {
*fetch({ payload }, { call, put }) {
const response = yield call(queryFakeList, payload);
yield put({
type: 'queryList',
pay... |
export default function() {
// These comments are here to help you get started. Feel free to delete them.
/*
Config (with defaults).
Note: these only affect routes defined *after* them!
*/
// this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different ser... |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
'use strict';
let gulp = require('gulp');
let nodemon = require('gulp-nodemon');
let env = require('gulp-env');
gulp.task('nodemon', function() {
env({
vars: {
PORT: 8080
}
});
return nodemon({
script: 'server.js',
ignore: ['./public/', './src', './gulp-tasks', './node_modules', './tests'... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import styled from 'styled-components';
import { colors } from '../theme';
const StyledLogoFB = styled.div`
width: 22px;
opacity: 0.9;
.st0 {
fill: ${colors.grey};
}
`;
const LogoFB = ({ className }) => {
return (
<StyledLogoFB className={className}>
<svg viewBox="0 0 22... |
'use strict';
describe('jqLite', function() {
var scope, a, b, c;
beforeEach(module(provideLog));
beforeEach(function() {
a = jqLite('<div>A</div>')[0];
b = jqLite('<div>B</div>')[0];
c = jqLite('<div>C</div>')[0];
});
beforeEach(inject(function($rootScope) {
scope = $rootScope;
this... |
import _ from 'lodash';
export default {
'label': '',
'xAxisLabel': 'Top 5 extension',
'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
'yAxisLabel': 'Count of documents',
'series': [
{
'label': 'Count',
'values': [
{
'x': 'jpg',
'y': 110710
},
... |
import { lighten, darken } from 'polished';
class Colors {
primary = '#001529';
secondary = '#1890ff';
success = '#43A047';
error = '#f44336';
warning = '#ffc400';
black = '#000000';
white = '#ffffff';
black30 = lighten(0.3, this.black);
black54 = lighten(0.54, this.black);
black90 = lighten(0.9, t... |
const router = require("express").Router();
const reviewsController = require("../../controllers/reviewsController");
// Matches with "/api/reviews"
router.route("/").get(reviewsController.findAll).post(reviewsController.create);
router
.route("/:id")
.get(reviewsController.findById)
.put(reviewsController.upda... |
// Create a marker
function createMarker(map, lat, lon, title, color) {
var image = 'http://labs.google.com/ridefinder/images/mm_20_'+color+'.png';
var myLatLng = new google.maps.LatLng(lat, lon);
var myMarker = new google.maps.Marker({
position: myLatLng,
map: map,
... |
//// [mergedModuleDeclarationCodeGen.ts]
export module X {
export module Y {
class A {
constructor(Y: any) {
new B();
}
}
}
}
export module X {
export module Y {
export class B {
}
}
}
//// [mergedModuleDeclarationCodeGen.js]
"use ... |
import bankList from './bank';
import bin from './bin';
import cardType from './cardType';
const bank = {};
bankList.forEach(item => {
bank[item.bank] = item.name;
});
let card = null;
/**
* 格式化银行卡信息
*/
const normalizeCardInfo = (data) => {
return {
bankName: bank[data.bank],
bankCode: data.bank,
... |
/**
* gameOver.js
* Contains the game over rendering cycle.
*/
/**
* Prevent that from happening!!
* @returns {undefined}
*/
function gameOver() {
context.fillStyle = "black";
context.fillRect(0, 0, 800, 600);
if (aniCount < 30)
return;
if (aniCount === 44) {
bgm.pause();
... |
//# sourceMappingURL=component---src-pages-who-we-are-js-2f98e7f89bd07b024c85.js.map |
/*
* Copyright (C) 2014 raznara
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distribut... |
import {createRouter, createWebHashHistory} from 'vue-router'
import Home from '../Home.vue';
import App from '../App.vue';
const routes = [
{
path: '/',
name: 'home',
exact: true,
component: Home
},
{
path: '/',
name: 'App',
component: App,
c... |
import OpCodes from './OpCodes';
export default class OpCodeEmitter {
unreachable() {return this.emit(OpCodes.unreachable);};
nop() {return this.emit(OpCodes.nop);};
block(blockType, label = null) {return this.emit(OpCodes.block,blockType, label);};
loop(blockType, label = null) {return this.emit(OpCodes.loop,bloc... |
export default (function () {
function Shaders (obj) {
this.vertexCode = obj && obj.vertexCode || null;
this.fragmentCode = obj && obj.fragmentCode || null;
return this;
}
Shaders.prototype.addVertexAttr = function (name, value, size, type, normalized) {
var attrs = {
name: name,
valu... |
//----------------------------------------------------------------------------------
// Microsoft Developer & Platform Evangelism
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
// EITHER EXPRESSED OR IMPLIED, INCLUDING... |
const server = require('../server/serverHandle.js');
const {playerDataPath} = require('../config.json');
const fs = require('fs');
const ex = require('./exampleFile');
module.exports = {
editFile: function(part, newValue, steamId, type, bReturn) {editFile(part, newValue, steamId, type, bReturn)},
editPlayerDa... |
/*
Holder - 2.0 - client side image placeholders
(c) 2012-2013 Ivan Malopinsky / http://imsky.co
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var preempted = false,
fallback = false,
canva... |
import React, { useEffect, useState } from 'react';
import { withRouter } from 'react-router-dom';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import TextField from '@material-ui/core/TextField';
import { Avatar } from '@material-ui/core';
import MySelect from '../.... |
import getPluginApi from '../plugin-api'
export function buildSearch (prefix, fields = []) {
let str = `${prefix}:`
fields.forEach(({ name, values, operator = '=' }, fieldIndex) => {
if (name && values.length > 0) {
// add conjunction if needed
str = fieldIndex > 0 ? `${str} and` : str
// a... |
const db = require('../database')
module.exports = (req, res) => {
db.addUser(req.body)
.catch(error => {
res.status(500).send(error.message)
})
} |
/**
* polyfill for ES2015 `startsWith` string method
*/
if (!String.prototype.startsWith) {
String.prototype.startsWith = function(search, pos) {
return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
};
} |
// @flow
// Copyright (c) 2016 Uber Technologies, 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 la... |
const json = require( './codegen/page.json' )
const script = require( './codegen/page.script' )
const style = require( './codegen/page.style' )
const template = require( './codegen/page.template' )
const component = require( './codegen/component' )
const slots = require( './codegen/slots' )
const createCodegenFn = req... |
const promisify = require('./promisify');
const fs = require('fs');
const mkdirp = require('mkdirp');
exports.readFile = promisify(fs.readFile);
exports.writeFile = promisify(fs.writeFile);
exports.stat = promisify(fs.stat);
exports.exists = function(filename) {
return new Promise(resolve => {
fs.exists(filenam... |
var fs = require('jsdoc/fs');
//var template = require('jsdoc/template');
var helper = require('jsdoc/util/templateHelper');
var taffy = require('taffydb').taffy;
var path = require('jsdoc/path');
//var util = require('util');
//var htmlsafe = helper.htmlsafe;
var rst = require('./rst/utils');
var readme = require('./r... |
import React from 'react';
import PropTypes from 'prop-types';
import { css } from '@emotion/react';
import SpacingsStack from '@commercetools-uikit/spacings-stack';
import { designSystem } from '@commercetools-docs/ui-kit';
import { ReleaseNoteListTitle } from '../../components/release-note-heading';
import Link from ... |
import getContract from "@/utils/abiUtil";
function judgeToken(rootState) {
if (!state.token) state.token = getContract.getContractByName('RBT', rootState.app.web3)
}
const state = {};
const mutations = {};
const actions = {
addFreeUser ({rootState},{ userAddress }){
judgeToken(roo... |
phina.globalize();
// 定数
var BLOCK_SIZE = 40; // ブロックサイズ
var BLOCK_COLS = 10; // ブロックの横に並ぶ数
var BLOCK_ROWS = 20; // ブロックの縦に並ぶ数
var BLOCK_ALL_WIDTH = BLOCK_SIZE * BLOCK_COLS; // ブロック全体の幅
var BLOCK_ALL_HEIGHT = BLOCK_SIZE * BLOCK_ROWS; // ブロック全体の高さ
var INTERVAL = 10; // ブロックの移動速度調整用
// ブロック(7種)の配置情報
var BLOCK_LAYOUT =
... |
import Navbar from 'react-bootstrap/Navbar';
import Nav from 'react-bootstrap/Nav';
import React, { Component } from "react";
class PokemonNavbar extends Component {
state = { newTrainer: false };
constructor(props) {
super(props);
if (!!props.newTrainer) {
this.state.newTrainer = true;
}
}
render() {
... |
import {
GET_ALL_LEVEL_LIST_ADMIN,
STORE_LEVEL,
DELETE_LEVEL,
UPDATE_LEVEL,
} from "../../redux/actions/types";
import RestClientServices from "../../redux/actions/restClient/client";
import { alertActions } from "src/redux/actions/alertMessage";
import { toast } from "react-toastify";
// List for levels
expor... |
const { sticker, sticker5 } = require('../lib/sticker')
let handler = async (m, { conn, usedPrefix, command }) => {
let stiker = false
try {
let q = m.quoted ? m.quoted : m
let mime = (q.msg || q).mimetype || ''
if (/webp/.test(mime)) {
let img = await q.download()
stiker = await sticker5(i... |
(this["webpackJsonpieee-web"]=this["webpackJsonpieee-web"]||[]).push([[4],{41:function(e,i,s){"use strict";s.r(i),i.default=s.p+"static/media/APS.3d377995.png"}}]);
//# sourceMappingURL=4.1a7ee3fd.chunk.js.map |
// Copyright 2016 Microsoft, Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
It is a SyntaxError if BoundNames of FormalParameters also occurs in the LexicallyDeclaredNames of Async... |
function GeographicCtrl($scope, searchModelService) {
var linkModel = function() {
// Get a reference to the geographic regions from the model
$scope.geographic = searchModelService.getModel().getGeographicRegions();
$scope.$watchCollection('geographic.selectedRegions', function() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.