text stringlengths 2 1.04M |
|---|
/*
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
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... |
const getMessage = (message, placeholders) => {
for (let placeholder in placeholders) {
if (!placeholders.hasOwnProperty(placeholder)) {
continue;
}
message = message.split(placeholder).join(placeholders[placeholder]);
}
return message;
};
export {getMessage}; |
'use strict'
/**
* Module dependencies.
*/
const cookie = require('..')()
describe('.setOptions(options)', () => {
it('should have default options', () => {
cookie.options.algo.should.equal('RSA-SHA3-512')
cookie.options.digest.should.equal('base64')
})
})
describe('.setOptions(options)', () => {
... |
//inst classes// --> crea las clases que vamos a usar
const ft = new Fetch(); // --> para hacer el fetch al web service
const ui = new UI(); // --> encargado de montar la interfaz html
//add event listeners// --> event listener al click del boton submit
const search = document.getElementById("searchUser"); // --> elem... |
var play_state = {
create: function(){
this.score = 0;
game.physics.startSystem(Phaser.Physics.P2JS);
game.world.setBounds(0, 0, 1600, 900);
game.physics.p2.setImpactEvents(true);
game.physics.p2.updateBoundsCollisionGroup();
game.physics.p2.gravity.y = 2000;
//
this.cursors = game.i... |
/a/lib/tsc.js --w
//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts]
export interface ITest {
title: string;
}
//// [/user/username/projects/myproject/lib1/tools/public.ts]
export * from "./tools.interface";
//// [/user/username/projects/myproject/app.ts]
import { Data } from "lib2/public";
ex... |
define(["exports", "../../../lit-element/lit-element.js"], function (_exports, _litElement) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports.HaxUiStyles = _exports.HaxTrayDetailHeadings = _exports.HaxTrayDetail = _exports.HaxComponentStyles = _exports.HaxFields = _ex... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
// js/phoenix_live_view/constants.js
var CONSECUTIVE_RELOADS = "consecutive-reloads";
var MAX_RELOADS = 10;
var RELOAD_JITTER = [1e3, 3e3];
var FAILSAFE_JITTER = 3e4;
var PHX_EVENT_CLASSES = [
"phx-click-loading",
"phx-change-loading",
"phx-submit-loading",
"phx-keydown-loading",
"phx-keyup-loading",
"phx-b... |
module.exports = function(application){
application.get('/', function(req, res){
application.app.controllers.home.index(application, req, res);
});
} |
/* Credits to Kyza for making this custom SettingsHandler */
const fs = require('fs')
const path = require('path')
const notesPath = path.join(__dirname, 'notes.json')
class NotesHandler {
constructor() {
this.initNotes()
}
initNotes = () => {
if (!fs.existsSync(notesPath)) {
fs.writeFileSync(notesPath, JSO... |
// @flow strict
import React from 'react';
const GoogleLogo = () => (
<svg
width="20"
height="20"
viewBox="0 0 24 24"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
>
<title>Google Logo</title>
<desc>Created using Figma</desc>
<g id="C... |
import { LightningElement } from "lwc";
export default class Meetings extends LightningElement {
handleMenuClick() {
this.dispatchEvent(
new CustomEvent("switchsection", {
detail: {
section: "MENU",
},
})
);
}
} |
import React from 'react';
import { graphql } from 'gatsby';
import Layout from 'components/Layout';
import SEO from 'components/SEO';
class NotFoundPage extends React.Component {
render() {
const { data } = this.props;
const siteTitle = data.site.siteMetadata.title;
return (
<Layout location={th... |
const logSection = (text) => {
console.log(`\n${text}...`);
};
module.exports = logSection; |
module.exports = {
root: true,
env: {
commonjs: true,
es2020: true,
node: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier'],
ignorePatterns: ['node_modules/**/*.js'],
parserOptions: {
ecmaVersion: 11,
},
rules: {
'prettier/prettier': 'error',
},
}; |
function GetDialogArguments() {
return getRadWindow().ClientParameters;
}
function getRadWindow() {
if (window.parent.radWindow) {
return window.parent.radWindow;
}
if (window.parent.frameElement && window.parent.frameElement.radWindow) {
return window.parent.frameElement.radWindow;... |
class IndexController {
constructor() {
this.name = 'Index';
}
}
export default IndexController; |
'use strict';
exports.calculate = function(req, res) {
req.app.use(function(err, req, res, next) {
if (res.headersSent) {
return next(err);
}
res.status(400);
res.json({ error: err.message });
});
// valid operations
var operations = {
'add': function(a,b) { return +a + +b }... |
/**
* @license Angular v6.0.7
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('@angular/animations', ['exports'], factory) :
(fac... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'mean';
// getting white screen
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ng... |
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import Drawer from '@material-ui/core/Drawer'
import history from '../../history'
import Divider from '@material-ui/core/Divider'
import IconButton from '@material-ui/c... |
/**
* @param {number} n
* @param {number} start
* @return {number}
*/
var xorOperation = function (n, start) {
let result = 0;
for (let i = 0; i < n; i++) {
result ^= start;
start += 2;
}
return result;
}; |
(function($) {
var isBuilder = $('html').hasClass('is-builder');
$.extend($.easing, {
easeInOutCubic: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return c / 2 * t * t * t + b;
return c / 2 * ((t -= 2) * t * t + 2) + b;
}
});
$... |
const path = require('path');
function excludeNodeModulesExcept(modules) {
var pathSep = path.sep;
if (pathSep == '\\')
// must be quoted for use in a regexp:
pathSep = '\\\\';
var moduleRegExps = modules.map(function(modName) {
return new RegExp('node_modules' + pathSep + modName);
});
return f... |
// Project Model
dc.model.Project = Backbone.Model.extend({
constructor : function(attrs, options) {
var collabs = attrs.collaborators || [];
delete attrs.collaborators;
Backbone.Model.call(this, attrs, options);
this.collaborators = new dc.model.AccountSet(collabs);
this._setCollaboratorsResour... |
/**
* 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... |
/*!
* © 2014 Second Street, MIT License <http://opensource.org/licenses/MIT>
* Talker.js 1.0.1 <http://github.com/secondstreet/talker.js>
*/
var TALKER_TYPE = 'application/x-talkerjs-v1+json';
var TALKER_ERR_TIMEOUT = 'timeout';
//region Third-Party Libraries
/**
* Object Create
*/
var objectCreate = function(pr... |
import React from "react";
import Svg, { Path } from "react-native-svg";
const SvgOx = props => (
<Svg fill="none" {...props}>
<Path
d="M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12z"
fill="#4392CD"
/>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="... |
/*
*
* Login actions
*
*/
import { LOGIN, LOGOUT } from './constants';
export function logintAction(userID, name, email, picture) {
return {
type: LOGIN,
userID,
name,
email,
picture,
};
}
export function logoutAction(userID, name, email, picture) {
return {
type: LOGOUT,
userID... |
import React from 'react'
import notfound from './404.jpg'
import Layout from '../components/Layout'
const NotFoundPage = () => (
<Layout>
<section className='post-cover'>
<div>
<img
src={notfound}
alt='GitHub'
/>
</div>
</section>
<section className='secti... |
// Made by Robin Savemark
function background() {
const background = ["http://www.droidviews.com/wp-content/uploads/2016/09/iOS10_wall_droidviews_005.jpg", "http://www.droidviews.com/wp-content/uploads/2016/09/iOS10_wall_droidviews_002.jpg", "http://www.droidviews.com/wp-content/uploads/2016/09/iOS10_wall_droidviews_... |
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import AuthService from 'shlack/services/auth';
export default class LoginFormComponent extends Component {
@tracked
userId = null... |
$(function() {
$('body').scrollspy({ target: '#navbar-example' })
$('a[href*="#"]:not([href="#"])').click(function() {
var target = $(this.hash);
if (target.length) {
$("html, body").animate(
{
scrollTop: target.offset().top - 80
},
100... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
export function getParent(node) {
return node.parent;
}
//# sourceMappingURL=get-parent.js.map |
import { hasPermissionAsync } from '../../../../authorization/server/functions/hasPermission';
import { LivechatVisitors } from '../../../../models/server/raw';
export async function findVisitorInfo({ userId, visitorId }) {
if (!await hasPermissionAsync(userId, 'view-l-room')) {
throw new Error('error-not-authorize... |
/**
* The taskScheduler keeps track of the spec files that needs to run next
* and which task is running what.
*/
'use strict';
var ConfigParser = require('./configParser');
// A queue of specs for a particular capacity
var TaskQueue = function(capabilities, specLists) {
this.capabilities = capabilities;
this.... |
/**
* @fileoverview added by tsickle
* Generated from: lib/ionic4-datepicker.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
import { Component, forwardRef, Input, ElementRef, Rende... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var UpCircleTwoTone = {
name: 'up-circle',
theme: 'twotone',
icon: function (primaryColor, secondaryColor) {
return {
tag: 'svg',
attrs: { viewBox: '64 64 896 896' },
children: [
... |
import { createSlice } from "@reduxjs/toolkit";
import Cookies from "universal-cookie";
import Ajax from "../components/Ajax";
import Alert from "../components/Alert";
import Confirm from "../components/Confirm";
export const initialState = {
status: `loading`,
post: {},
posts: [],
postsObj: {},
access_token... |
export default {
state: {
selectedMethod: "",
adding: [
{
name: "insert",
shortDesc: "element to a list",
desc: "Inserts element to a list.",
example: `list.insert(2, 'tacos');<br>
print(list);`,
output: `[5, 1, 'tacos', 8]`
},
{
name: ... |
/* -------------------------------------------------------------------------- */
/* Setup Server */
/* -------------------------------------------------------------------------- */
/* --------------------------- Import Dependencies -------------------------... |
var requireDir = require('require-dir');
var gulp = require('gulp');
var config = require('./gulpfile/config');
var uglify = require('gulp-uglify');
var dist = './app/assets/javascripts/dist/';
requireDir('./gulpfile', { recurse: true });
gulp.task('default', ['browserify', 'browser-sync']);
gulp.task('compress',... |
describe('stretchH option', () => {
let $table;
let $container;
let $wrapper;
let debug = false;
beforeEach(() => {
$wrapper = $('<div></div>').css({overflow: 'hidden', position: 'relative'});
$wrapper.width(500).height(201);
$container = $('<div></div>');
$table = $('<table></table>'); // cr... |
//@flow
import UsersCount from './UsersCount.jsx'; |
var searchData=
[
['icoropromise',['ICoroPromise',['../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a63eea5b5603a5b215a927889143ad69d',1,'Bloomberg::quantum::ICoroPromise']]],
['inccompletedcount',['incCompletedCount',['../d5/de7/structBloomberg_1_1quantum_1_1IQueueStatistics.html#ad5943edf87a8f47e900ef66... |
const key = 'list';
const ICON_SIZE_SMALL = `${key}.icon-size-small`;
const ICON_SIZE_MEDIUM = `${key}.icon-size-medium`;
const ICON_SIZE_LARGE = `${key}.icon-size-large`;
const IN_ITEM_ALIGNMENT_LEFT = `${key}.in-item-alignment-left`;
const IN_ITEM_ALIGNMENT_CENTER = `${key}.in-item-alignment-center`;
const IN_ITEM_A... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... |
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(function() {
'use strict';
/**
* T-Rex runner.
* @param {string} outerContainerId Outer containing element id.
* @param {Object} opt_config
* @con... |
"use strict";
// Copyright 2018, Google, LLC.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
import urlRegex from 'url-regex'
import { ERROR_MESSAGES as ERROR } from '../../constants/locales/en'
import { FORM_CONTROL_STATUS as STATUS } from '../../constants/status_types'
export function isFormValid(states) {
return states.every(state => state === STATUS.SUCCESS || state.status === STATUS.SUCCESS)
}
export ... |
import BLOG from '@/blog.config'
import Link from 'next/link'
import React from 'react'
import CONFIG_FUKA from '../config_fuka'
import Card from './Card'
const BlogCard = ({ post, showSummary }) => {
const showPreview = CONFIG_FUKA.POST_LIST_PREVIEW && post.blockMap
return (
<Card className="w-full lg:max-w-s... |
import ChartMaximum20 from "./ChartMaximum20.svelte";
export default ChartMaximum20; |
/**
* Copyright 2017 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... |
const initialState = {
items: [],
loading: false,
error: null,
updating: false
}
const networkReducer = (state = initialState, action) => {
switch (action.type) {
case 'FETCH_NETWORK_PENDING':
return {
...state,
loading: true
};
case 'FETCH_N... |
let contador = 0
let contabilizador = 0
function somar(variavel) {
if (variavel == 'contador') {
contador = contador + contabilizador
render()
}
if (variavel == 'contabilizador') {
contabilizador = contabilizador + 1
render()
}
}
function subtrair(variavel) {... |
import { LOGIN,
LOGOUT,
CREATE_USER,
DELETE_USER,
CREATE_PROFILE,
DELETE_PROFILE,
CREATE_GROUP,
DELETE_GROUP,
CREATE_LOAN,
DELETE_LOAN } from "../constants/action-types";
// const initialState = {
// articles: []
// };
// function rootReducer(state = initialState, action) {
// if (action.type ==... |
"use strict";
/**
* @module {function} can-connect/constructor/callbacks-once/callbacks-once constructor/callbacks-once
* @parent can-connect.behaviors
*
* Prevents duplicate calls to the instance callback methods.
*
* @signature `callbacksOnce( baseConnection )`
*
* Prevents duplicate calls to the instance c... |
import React from 'react'
import { useSwipeable } from 'react-swipeable'
export const Swipeable = ({ children, ...props }) => {
const handlers = useSwipeable(props)
return <div {...handlers}>{children}</div>
} |
/**
* @fileoverview added by tsickle
* Generated from: test_files/return_this/return_this.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
goog.module('test_files.return_this.return_this');
var module = module || { id: 'test_f... |
const state = {
shouldShowClickButtonMenu: false,
clickMode: "openPosts", // openPosts | addLink | changeLink | addPost | attachPostsToGraphs
newLinkSource: null,
newLinkTarget: null,
newLinkType: "reply",
newLinkSubgraphIds: [],
linkToEdit: null,
wantsToChangeSource: false,
wants... |
import Link from 'next/link'
export default () => (
<div>
<p>This is the about page.</p>
<div>
<Link href="/">
<a>Go Back</a>
</Link>
</div>
<img width={200} src="/static/zeit.png" />
</div>
) |
module.exports = new Date(2028, 2, 1) |
const { GCF } = require('../../problems/easy/E075GCF');
describe('GCF', () => {
it('returns a correct answer for primes', () => {
expect(GCF([5, 7])).toBe(1);
});
it('returns correct answer for nonprimes with common factors', () => {
expect(GCF([18, 81])).toBe(9);
});
}); |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[85],{
/***/ "./frontend/src/@core/components/b-card-code/index.js":
/*!************************************************************!*\
!*** ./frontend/src/@core/components/b-card-code/index.js ***!
\*****************************************************... |
load();
function load() {
$.ajax({
url: "all-customer",
method: "GET",
success: function (a) {
$("#container").html(a)
}
})
}
$(document).ready(function () {
var a = ".menu-item";
$(a).on("click", function () {
$(a).removeClass("menu-item-active");
... |
import ClientsContainer from './ClientsContainer';
export {
ClientsContainer
} |
import React from "react"
import { Helmet } from "react-helmet"
import logo from "../../img/logo.png"
const SEO = () => (
<Helmet>
<html lang="en-GB" />
<meta charSet="utf-8" />
<meta name="description" content="Python web developer portfolio"/>
<meta name="google-site-verification"... |
import React from "react";
import PropTypes from "prop-types";
import { StyleSheet, Image, TouchableOpacity, Linking } from "react-native";
import {
Container,
Content,
Icon,
Form,
Item,
Card,
CardItem,
ListItem,
Left,
Right,
Body,
Label,
Input,
Text,
CheckBox,
Button,
View
} from "nat... |
import React, { useState, useEffect } from 'react';
import { Text } from 'react-native';
import { Provider } from 'react-redux';
import { store, persistor } from './src/store';
import { PersistGate } from 'redux-persist/integration/react';
import RootNavigator from './src/navigation';
import SplashScreen from './src/sc... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return false; };
var argument2 = function() {
callbackArguments.push(arguments)
return -96; };
var argument3 = null;
var argument4 = true;
var argument5 = function() {
callbackArguments.push(arguments)
return 78.28631539... |
var React = require('react-native');
var { StyleSheet, Dimensions, Platform } = React;
import colors from '../../../utils/Colors';
import { Dimens } from '../../../utils/Dimens';
import { widthPercentageToDP as wp } from 'react-native-responsive-screen';
export function isIphoneXorAbove() {
const dimen = Dimensi... |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/config/Theme', './v5/personnel-view', './v4/personnel-view'], function (Theme, personnelView$2, personnelView$1) { 'use strict';
const pathData = Theme.isTheme("sap_horizon") ? personnelView$1 : personnelView$2;
var personnelView = { pathData };
return personnelVi... |
// Articles
export { default as ArticlesForm } from './Articles/Form';
export { default as ArticlesList } from './Articles/List';
export { default as ArticlesSingle } from './Articles/Single';
export { default as WebView } from './Articles/View'; |
var interface_ext_1_1_net_1_1_i_x_object =
[
[ "HasExplicitValue", "d8/dd3/interface_ext_1_1_net_1_1_i_x_object.html#ada2c9e7a99d53c6f93ddc8740bc641e4", null ],
[ "ConfigOptions", "d8/dd3/interface_ext_1_1_net_1_1_i_x_object.html#afb00e1b4e3b67657cac25f8c2e311dd2", null ],
[ "ConfigOptionsExtraction", "d8/d... |
//---------------------------------------------------------------------------------------
// Copyright (c) 2001-2019 by PDFTron Systems Inc. All Rights Reserved.
// Consult legal.txt regarding legal and license information.
//---------------------------------------------------------------------------------------
((exp... |
/* @flow */
export function runQueue (queue: Array<?NavigationGuard>, fn: Function, cb: Function) {
const step = index => {
if (index >= queue.length) {
// 整个回调队列完成执行时回调cb
cb()
} else {
if (queue[index]) {
fn(queue[index], () => {
// 第二个参数作为一个回调函数,在fn的内部应该被主动调用
/... |
$(function() {
function disable_checkbox(elem) {
if (!elem.is(':checkbox'))
return;
elem.prop('checked', false);
elem.prop('disabled', true);
}
function enable_checkbox(elem) {
if (!elem.is(':checkbox'))
return;
elem.removeAttr('disabled');
}
function toggle_others(elem) {
var code_elem = $(".c... |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built |
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import * as actions from './actions'
import fetchMock from 'fetch-mock'
const middlewares = [thunk]
const mockStore = configureMockStore(middlewares)
describe('async actions', () => {
afterEach(() => {
fetchMock.restore(... |
import apiConstrainst from './api';
import parameterConstraints from './parameter';
import commandConstraints from './command';
import Promise from 'bluebird';
import Joi from 'joi';
function validAPI(props,cb){
Joi.validate(props,apiConstrainst,cb);
}
function validCommand(props,cb){
Joi.validate(props,commandCons... |
import React from 'react';
import { Link } from 'gatsby';
import styles from './styles.module.scss';
const Footer = () => (
<footer className={styles.footer}>
<div className={styles.row}>
<Link className={styles.navLink} to={`/blog`}>
Blog
</Link>
<Link className={styles.navLink} to={`... |
// interactive
var React = require('react');
var { Container, Segment, Header, Icon, Label, Divider } = require('semantic-ui-react');
var Blog = React.createClass({
render: function() {
return (
<Container id="topDiv">
<Header as="h1">Blog</Header>
<Divider />
<... |
import express from 'express'
const router = express.Router()
import {
authUser,
getUserProfile,
registerUser,
updateUserProfile
} from '../controllers/userController.js'
import { protect } from '../middleware/authMiddleware.js'
router.route('/').post(registerUser)
router.post('/login', authUser)
route... |
const { CustomerCreatedEvent } = require('common-module/eventsConfig');
class Customer {
constructor({ id, name, creditLimit, creditReservations }) {
this.id = id;
this.name = name;
this.creditLimit = creditLimit;
this.creditReservations = creditReservations
}
static create({ name, creditLimit }... |
const BASE64_PLACEHOLDER = '*b64'
const SQL_REGEX = /^SELECT (.*) FROM '([^']+)'/
const SELECT_PART_REGEX = /^(.*?)(?: as (.*))?$/i
const WHERE_REGEX = /WHERE (.*)/
const parseSelect = sql => {
const [select, topic] = sql.match(SQL_REGEX).slice(1)
const [whereClause] = (sql.match(WHERE_REGEX) || []).slice(1)
re... |
'use strict';
/**
* @module paper/lib/logger
*/
/**
* Log message
* @returns {void}
*/
function log() {
console.log.apply(console, arguments);
}
/**
* Log error message
* @returns {void}
*/
function logError() {
console.error.apply(console, arguments);
}
module.exports = {
log: log,
logError: l... |
import React from "react";
export const TextArea = props => (
<div className="form-group">
<textarea className="form-control" rows="14" {...props} />
</div>
); |
const { REST } = require("@discordjs/rest");
const { Routes } = require("discord-api-types/v9");
const fs = require("fs");
const chalk = require("chalk");
/**
*
* @param {Client} client
* @param {Array} commands
* @param {Array} commandsInfo
*/
module.exports = async (client, commands) => {
const commandFiles ... |
import { RESET_ERROR_MESSAGE } from './types';
export * from './types';
export {
unconnectedLoadStocks,
unconnectedSetErDate,
unconnectedUpdateAfterLocationUpdate,
unconnectedSetSortedStocks
} from './stocks';
export {
unconnectedLoadTradingDays
} from './tradingDays';
export {
unconnectedSetFilterExpec... |
import React from 'react'
import PropTypes from 'prop-types'
import { Modal, List, Header, Table, Divider, Input, Button } from 'semantic-ui-react'
import _ from 'lodash'
class Order extends React.Component {
constructor(props) {
super(props)
this.state = {
modalOpen: false
}
... |
var h;
var $div;
var showflag2 = 0;
var showflag3 = 0;
var openFlag = 0;
var flag = 0;
var overlayHeight;
var overlayWidth;
var numberOfOffers;
var centerWidth;
var centerHeight;
var arrParams = new Array();
arrParams[0] = "10/10/2011";
arrParams[1] = "5";
arrParams[2] = "7";
arrParams[3] = "9";
arrParams[4] = "DOH";
a... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
// Setup
const myArray = [];
let i = 10;
// Only change code below this line
do {
myArray.push(i);
i++;
} while (i < 10); |
Proj4js.defs["EPSG:3658"] = "+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs " |
import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import { connect } from 'react-redux';
import CheckoutSummary from '../../components/Order/CheckoutSummary/CheckoutSummary';
import ContactData from './ContactData/ContactData';
class Checkout extends Component {
checkoutCancelledHa... |
// 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, publish, distribute, sublicense, and/or sell co... |
const path = require('path');
const PRODUCTLINE_DIR = process.env.PRODUCTLINE_DIR;
const context = require('ginjs').context;
const settings = {
introduce_webpackConfig: {
context: PRODUCTLINE_DIR,
devtool: 'source-map',
entry: ['./features/gap/entrypoint'],
module: {
loaders: [],
},
ou... |
const HtmlWebpackPlugin = require("html-webpack-plugin");
const common = require("./webpack.common");
const { merge } = require("webpack-merge");
const path = require("path");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.