text
stringlengths
2
1.04M
Handlebars.registerHelper("math", function(lvalue, operator, rvalue, options) { if (arguments.length < 4) { // Operator omitted, assuming "+" options = rvalue; rvalue = operator; operator = "+"; } lvalue = parseFloat(lvalue); rvalue = parseFloat(rvalue); ...
/** * 创建和删除Cookie * * Example: * * var cookie = new Service.PPCookies(); * cookie.set('key', 'value', { * expires: 7 // 7 day * }); * cooki.get('key'); // return value * */ ((function(Service) { /** * constructor */ function PPCookies() { } PPCookies.prototype._api = function(...
import { createStore, combineReducers } from "redux"; import { reducer as reduxFormReducer } from "redux-form"; const reducer = combineReducers({ form: reduxFormReducer // mounted under "form" }); const store = (window.devToolsExtension ? window.devToolsExtension()(createStore) : createStore)(reducer); export ...
const express = require('express') const { recoverPersonalSignature } = require('eth-sig-util') const { handleResponse, successResponse, errorResponseBadRequest, errorResponse: formatResponse, sendResponse } = require('../apiHelpers') const models = require('../models') const protocolRouter = express.Router...
/** * 反转链表 * input: a -> b -> c * output: a <- b <- c * * 思路 * 用三个指针指向前3个元素; * 改变前两个元素的指向; * 将3个指针依次往后移动一位; */ function reverse(head) { let a = head let b = a.next let c = b.next head.next = null while (c) { b.next = a a = b b = c c = c.next } b.next = a return b } module.e...
const Sequelize = require('sequelize'); const { STRING, TEXT, INTEGER } = Sequelize; const db = require('../db'); const Review = db.define('review', { title: { type: STRING }, content: { type: TEXT }, rating: { type: INTEGER, allowNull: false, validate: { isInt: true, min: 1, ...
// mojo/public/js/test/module_b_2.test-mojom.js is auto generated by mojom_bindings_generator.py, do not edit // Copyright 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. 'use strict'; (function() { var mojomId ...
(function(q,b){"object"===typeof exports&&"object"===typeof module?module.exports=b():"function"===typeof define&&define.amd?define("pdfjs-dist/web/pdf_viewer",[],b):"object"===typeof exports?exports["pdfjs-dist/web/pdf_viewer"]=b():q["pdfjs-dist/web/pdf_viewer"]=q.pdfjsDistWebPdfViewer=b()})(this,function(){return fun...
import React from 'react' import datosHotel from '../datos_tarjeta_hoteles.json' import datosCarrusel from '../carrusel.json' import datosPaseos from '../datos_paseos.json' import DatosServicio from '../servicios-del-hotel.json' import Hotel from '../hotel' class elHotel extends React.Component // en donde aparece [...
/* eslint-disable no-unused-vars */ require('dotenv').config(); const bcrypt = require('bcrypt'); const TypeProfessionalRepository = require('../repositories/TypeProfessionalRepository'); class TypeProfessionalController { async index(req, res) { const typeprofessional = await TypeProfessionalRepository.findAl...
export const theme = { name: 'SpaceDuckCustom', kind: 'dark', widgetsBackground: '#0f111b', main: '#FFFFFFAA', mainAlt: '#b3a1e6', minor: '#FFFFFFFF', red: '#B4C424', green: '#5ccc96', yellow: '#FFD700', orange: '#e39400', blue: '#686f9a', magenta: '#ce6f8f', cyan: '#00a3cc', black: '#000000...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { ListGroup, ListGroupItem, Button } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import util from '../../../../util/util'; import { dateOverlap } from '../../../../module...
import './Img.less'; import React from 'react'; import PropTypes from 'prop-types'; import { classNames } from '../../utils'; function Img({ className, rounded, cover, src }) { const imgClassName = classNames({ Img: true, [className]: true, cover: !!cover, rounded: !!rounded, }); return ( ...
const fs = require("fs") const path = require("path") const r = require("ramda") const resolve = r.curryN(2, path.resolve) // Make sure any symlinks in the project folder are resolved: // https://github.com/facebook/create-react-app/issues/637 const APP = fs.realpathSync(process.cwd()) const resolveApp = resolve(APP)...
var Pedersen = artifacts.require("./Pedersen.sol"); module.exports = function(deployer) { deployer.deploy(Pedersen); };
/* * Kendo UI Web v2013.3.1119 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Web commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx * If you do not own a commercial license, this file shall be governed by the * G...
/** * Edit by bookkilled on 16/4/8. */ 'use strict'; let compress = require('koa-compress'); let logger = require('koa-logger'); let serve = require('koa-static'); let koa = require('koa'); let koaJson = require('koa-json'); let bodyParser = require('koa-bodyparser'); //var router = require('koa-router')(); let pa...
/** * Created by zhaoyunlong on 2017/2/9. */ var productChoose=[ [1,1,1,1,1,1,1,1,1,2,4,4,8,8,8,8,8,8,16,16,32,32],//sslType [1,1,1,2,2,2,4,4,4,1,1,1,1,1,2,2,4,4,1,1,1,2],//company [1,2,4,1,2,4,1,2,4,1,1,2,1,2,1,2,1,2,1,2,4,4]];//protectType // jQuery var sslType="未选择",company="未选择",protectType="未选择",doma...
const optionDefinitions = [ { name: 'save', alias: 's', type: Boolean, defaultValue: true }, { name: 'verbose', alias: 'v', type: Boolean, defaultValue: false }, { name: 'device', alias: 'd', type: String, defaultValue: 'pi' }, { name: 'minrssi', alias: 'r', type: Number, defaultValue: -90 }, { name: 'period...
const { Client, Message, MessageEmbed } = require("discord.js") module.exports = { name: "holo", description: "Get a holo image", category: "Interaction", // owner: true, // aliases: [], // usages: [], // botPermissions: [], // userPermissions: [], /** * @param {Client} client ...
/* Leaflet.draw, a plugin that adds drawing and editing tools to Leaflet powered maps. (c) 2012-2013, Jacob Toye, Smartrak https://github.com/Leaflet/Leaflet.draw http://leafletjs.com https://github.com/jacobtoye */
QUnit.module( "manipulation", { teardown: moduleTeardown } ); // Ensure that an extended Array prototype doesn't break jQuery Array.prototype.arrayProtoFn = function() { }; function manipulationBareObj( value ) { return value; } function manipulationFunctionReturningObj( value ) { return function() { return val...
import './delivery.scss' export default { name: 'OrderDelivery', components: { noTo: () => import('@/components/noTo/index.vue') }, data() { return { list: [ { title: '测试商品四', // 商品名称 createdTime: '2019-09-09 18:53:07', // 创建时间 price: 100, // 价格 tot...
// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
'use strict'; import React from 'react'; import {BrowserRouter as Router, Link, Route} from 'react-router-dom'; // 推荐模块 import HomeNavComponent from '../components/HomeNavComponent' // 底部模块 import BottomComponent from '../components/BootomComponent' import ToTopComponent from '../components/ToTopComponent' requir...
//console.log('ola mundo!'); console.log('Gerenciado Financeiro') var cliente = 'Allan' console.log(`Cliente: ${cliente}`) var valProduct = 100 var valDiscount = 37 var discountFunc = require("./modules/calDiscount")///require chamar modulos var finale = discountFunc(valProduct,valDiscount) console.log(`valor fin...
/* * @adonisjs/mrm-preset * * (c) Harminder Virk <virk@adonisjs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const { MrmError } = require('mrm-core') /** * Build URL's for badges to be used inside the README.md file * * @clas...
/** * 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...
// Copyright (c) 2016, Matt Godbolt // All rights reserved. // // 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 con...
/*! * Vue Material v0.8.1 * Made with love by Marcos Moura * Released under the MIT License. */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var resizeTimeout,_xeUtils=_interopRequireDefault(require("xe-utils/methods/xe-utils")),_conf=_interopRequireDefault(require("../../conf")),_dom=_interopRequireDefault(require("../../tools/src/dom"));function _interopRequireDefau...
document.addEventListener("DOMContentLoaded", function(event) { (function(global) { function now() { return new Date(); } var force = ""; if (typeof (window._bokeh_onload_callbacks) === "undefined" || force !== "") { window._bokeh_onload_callbacks = []; ...
import { LitElement, html, css } from 'lit-element'; // import '@vaadin/vaadin-ordered-layout'; import { List } from '@material/mwc-list/mwc-list.js'; import { ListItem } from '@material/mwc-list/mwc-list-item.js'; // import { Icon } from '@material/mwc-icon'; import '@material/mwc-icon'; import { IconButton } from '@m...
/** * @fileoverview dom解析 * @authors liangdong2 */ define('lib/kit/dom/parseDom',function(require,exports,module){ var $ = require('lib'); //简单的dom解析 //根据一个父元素和内部自定义属性为data-role="xxx"的元素,取得dom元素列表 //nodes.root为根节点 //param {Element} node 做DOM解析的根节点 //param {Object} options 其他选项 /* example <div id="box"> ...
// Wrap whole file in a function to avoid polluting the global namespace (function() { jsTestOptions = function () { if (TestData) { return Object.merge(_jsTestOptions, { setParameters: TestData.setParameters, setParametersMongos: TestData.setParametersMongos, storageEngine: TestData...
import globalVariables from "../../util/global"; import urlUtil from "../../util/buildURLFilterQuery"; export default class TodosService { static getTodos(reqParams) { const url = `/todos`; const method = "GET"; let config = { headers: { "Content-Type": "todo/json", Accept: "application/json", },...
const fs = require("fs"); let getLocalString = function(key, local="de") { let locales = JSON.parse(fs.readFileSync(`${__dirname}/local/${local}.json`).toString()); if(locales[key]) { let locale = locales[key]; if(Array.isArray(locale)) { locale = locale.join('\n'); } ...
const Input = require('./input'); const Offer = require('./offer'); const { withCallback, withPromise } = require('./open'); /** * Default options */ const defaultOptions = { input: process.stdin, output: process.stdout, title: '', values: [], defaultValue: 0, selected: '➙', unselected: ' ', // allowMultipl...
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
module.exports = { siteMetadata: { title: `[RE]vent!`, description: `[RE]veeeent!`, author: `@m3h0w`, }, plugins: [ 'gatsby-plugin-resolve-src', `gatsby-plugin-theme-ui`, `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name: `images`,...
/* Copyright (c) 2004-2010, 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 */ dependencies={layers:[{name:"dojo.js",dependencies:["dojox.analytics","dojox.analytics.plugins.dojo","dojox.analytics.plugi...
// Test query stage sorting. if (false) { t = db.stages_sort; t.drop(); var N = 50; for (var i = 0; i < N; ++i) { t.insert({foo: i, bar: N - i}); } t.ensureIndex({foo: 1}) // Foo <= 20, descending. ixscan1 = {ixscan: {args:{name: "stages_sort", keyPattern:{foo: 1}, ...
/* eslint-env mocha */ 'use strict' const chai = require('chai') const dirtyChai = require('dirty-chai') const expect = chai.expect chai.use(dirtyChai) const waterfall = require('async/waterfall') const bl = require('bl') const crypto = require('crypto') const os = require('os') const GoDaemon = require('./daemons/go...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var FilmSchema = new Schema({ name: { type: String, unique: true, required: true }, description: { type: String }, poster: { type: String }, he_liked: { type: Boo...
const { body,validationResult } = require('express-validator'); var async = require('async'); var Book = require('../models/book'); var Author = require('../models/author'); // var debug = require('debug')('author'); /** * @swagger * /catalog/authors: * get: * description: Get all author Page * respon...
let mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel applica...
const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const { resolve } = require('path'); const { NODE_ENV } = process.env; const SRC_DIR = resolve(__dirname, 'src'); const BUILD_DIR = resolve(__dirname, 'build'); const PUBLIC_DIR = resolve(__dirna...
import $ from 'jquery'; import { debounce } from 'lodash'; import { __ } from '~/locale'; import { deprecatedCreateFlash as Flash } from '~/flash'; import axios from '~/lib/utils/axios_utils'; import SSHMirror from './ssh_mirror'; import { hide } from '~/tooltips'; export default class MirrorRepos { constructor(cont...
/* global SVG, System */ import { obj, promise, fun, num, properties, arr, string } from 'lively.lang'; import { Color } from 'lively.graphics'; import { styleProps, addPathAttributes, addSvgAttributes } from './property-dom-mapping.js'; import flubber from 'flubber'; import Bezier from 'bezier-easing'; import 'web-ani...
module.exports = { staticFileGlobs: [ '_site/assets/**.css', '_site/**.html', '_site/assets/images/**.*', '_site/assets/**.js', ], stripPrefix: '_site/', runtimeCaching: [{ urlPattern: '/', handler: 'networkFirst', }], root: '_site', };
//# sourceMappingURL=map.771438e0.js.map
import React from 'react' import Portal from './suggestion-portal' import { Selection } from '../slate' import { UP_ARROW_KEY, DOWN_ARROW_KEY, ENTER_KEY } from './constants' function getAllTextExceptIgnoredTypes(node, typesToIgnore) { let text = ''; // Only look at this node or it's children if it...
const moment = require("moment") module.exports = { siteMetadata: { title: `TRQ Pro`, description: `TRQPro jest społecznością stworzoną przez Traderów dla Traderów. Znajdziesz tu kompendium wiedzy na każdy możliwy temat dotyczący spekulacji wyłożone w prosty sposób. Dzielimy się swoimi taktykami rozgrywania ...
nv.models.lineChart = function() { //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var lines = nv.models.line() , xAxis = nv.models.axis() , yAxis = nv.models.axis() , legend = n...
/** * Copyright 2017, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ const {compose, withProps} = require('recompose'); const wpsAggregate = require('../../../observables/wps/aggr...
var registry = require('../utils/platform-registry.js'); var ubuntuplatform = require('./ubuntu-platform.js'); var shell = require('shelljs'); function checkIfXenial() { var result = shell.exec('cat /etc/lsb-release').grep('xenial'); return result.stdout.length > 5; } module.exports = registry.register({ ...
var gui = new dat.GUI(); var sortedImg; var sorted = false; var original; var pix = []; function Controls(){ this.imageURL = ""; this.imageName = ""; this.Upload = function(){ document.querySelector('input[type=file]').click(); } this.Create = function(){ var self = this; loadImage(this.imageURL, function(...
const {app, protocol, dialog} = require("electron"), {join, resolve} = require("path"), {existsSync, createReadStream, unlink, rmSync} = require("fs"), Store = require('electron-store'); module.exports = () => { /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
const inquirer = require("inquirer"); const generateMarkdown = require("./utils/generateMarkdown"); const fs = require("fs"); // array of questions for user const questions = [ { type: `input`, name: `title`, message: `What is the title of your project? (Required)`, validate: titleI...
self.importScripts('/TonyTang2001.github.io/assets/js/data/cache-list.js'); var cacheName = 'chirpy-20201114.1853'; function isExcluded(url) { for (const rule of exclude) { if (url.indexOf(rule) != -1) { return true; } } return false; } self.addEventListener('install', (e) => { self.skipWaiting(); e.waitUntil( caches.o...
import reactRouterDom from 'react-router-dom'; const pushMock = jest.fn(); reactRouterDom.useHistory = jest.fn().mockReturnValue({ push: pushMock }); import DetailsTab from '.'; jest.mock('react-router-dom', () => ({ useLocation: jest.fn().mockReturnValue({ pathname: '/another-route', search: '', hash: ...
const assert = require('assert') const math = require('../../../src/main') describe('random', function () { // Note: random is a convenience function generated by distribution // it is tested in distribution.test.js it('should have a function random', function () { assert.strictEqual(typeof math.random, 'fu...
export const fr = { english: 'Anglais', french: 'Français', "Continue": "Continuer" } export default fr
/* * jQuery-tableExport - v1.0 - 2016-05-25 * https://github.com/Archakov06/jQuery-tableExport * Released under the MIT License */ (function($) { $.fn.tableExport = function(options) { var defaults = $.extend({ filename: 'table', format: 'csv', cols: '', ...
export default class ListController { constructor($state, osService) { this.records = []; this._$state = $state; this._osService = osService; this.findAll(); this.cols = [ { label: "Data Entrada", value: "dataEntrada", type: "date" }, { label: "Dat...
'use strict' const resources = require('../resources') module.exports = { method: '*', path: '/api/v0/shutdown', handler: resources.shutdown }
let defaultCity = '北京' try { if (localStorage.city) { defaultCity = localStorage.city } } catch (error) { } export default { city: defaultCity }
import React from 'react'; import ExtLink from '../components/ExtLink'; import simpleStyles from '../commons/simple.module.sass'; export default () => ( <section className={simpleStyles.content}> <h1>Hola mundo!</h1> <p style={{fontSize: '1.3em'}}> Somos profes y colaboradores de <ExtL...
import React from 'react'; import HomeComp from '../components/HomeComp'; import NavTabs from '../components/NavTabs'; function Home() { return ( <div> <NavTabs /> <HomeComp /> </div> ) }; export default Home;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.msSquare = exports.appleIconLink = exports.iconLink = void 0; var appleIconRel = 'apple-touch-icon-precomposed'; var pngType = 'image/png'; var iconLink = function iconLink(href, size) { var type = arguments....
import React from 'react' import styled, { css } from 'styled-components' import { MolduraTop } from './moldura' const SeparadorWrapper = styled.div` margin-top: 2em; margin-bottom: 2em; margin: ${props => (props.nomargin ? '0' : null)}; height: 1em; position: relative; width: ${props => props.width}; m...
import * as actions from "./actions" import u from "updeep" import { combineReducers } from "redux" import { composeReducers } from "../../../components/react/utils/composeReducers" import { data as sd } from "sharify" import { contains } from "underscore" import { reducer as formReducer } from "redux-form" import { re...
import axios from 'axios' // Actions const INIT_INTERFACE_DATA = 'yapi/interface/INIT_INTERFACE_DATA'; const FETCH_INTERFACE_DATA = 'yapi/interface/FETCH_INTERFACE_DATA'; const FETCH_INTERFACE_LIST = 'yapi/interface/FETCH_INTERFACE_LIST'; const DELETE_INTERFACE_DATA = 'yapi/interface/DELETE_INTERFACE_DATA'; const DELET...
//# sourceMappingURL=main.23267b60.chunk.js.map
const {KiteTestError, Status} = require('kite-common'); const AppTestStep = require('../utils/AppTestStep'); class GetSipUriForCallStep extends AppTestStep { constructor(kiteBaseTest, sessionInfo, meetingId) { super(kiteBaseTest, sessionInfo); this.meetingId = meetingId; } static async executeStep(KiteB...
Nehan.BorderStyle = (function(){ /** @memberof Nehan @class BorderStyle @classdesc logical border style object @constructor */ function BorderStyle(){ } /** @memberof Nehan.BorderStyle @method clone @return {Nehan.BorderStyle} */ BorderStyle.prototype.clone = function(){ ...
var searchData= [ ['factory',['Factory',['../class_plazza_1_1_factory.html#a53fe6bbd3a547b15695dc07fa24f04cc',1,'Plazza::Factory::Factory(int arg1, int arg2, IIPC::IPCType type)'],['../class_plazza_1_1_factory.html#a29f817907de33084aa3eb7fee379de78',1,'Plazza::Factory::Factory(const Factory &amp;factory)=default']]],...
document.onkeyup = function (event) { if (event.keyCode == 113){ // listen for press of F2 button console.log('Button is pressed. Gathering open windows...'); var compose_ids = Array.prototype.slice.call(document.getElementsByClassName("Am Al editable LW-avf va_ar"));//for compose windows var reply_id...
/** * This is lumtify router. */ import VueRouter from 'vue-router' const Home = resolve => require(['./Views/Home.vue'], resolve) const About = resolve => require(['./Views/About.vue'], resolve) const Article = resolve => require(['./Views/Article.vue'], resolve) const Articles = resolve => require(['./Views/Artic...
module.exports = require("./../../_gen/openfl/display/ShaderData");
var _ = require('lodash'); module.exports = { join: function() { var url = arguments[0], parts = Array.prototype.slice.call(arguments, 1); _.each(parts, function(part) { url += '/' + part.replace(/^\//, '').replace(/\/$/, ''); }); return url.replace(/\/$/, ''); } };
(function () { 'use strict'; angular .module('app', ['ui.router', 'templates', 'ngMessages']) .config(function($httpProvider) { // for CSRF errors $httpProvider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content'); }) })();
import React from "react"; import styled from "styled-components"; import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; const useStyles = makeStyles((theme) => ({ boxes: { marginTop: "4rem", justifyContent: "space-between", "@media (max-width: 768px)": { ...
const { Pool } = require('pg'); const AWS = require("aws-sdk"); const fs = require('fs'); const SQL = require('@nearform/sql'); const config = JSON.parse(fs.readFileSync(`${__dirname}/config.${process.env.ENV}.json`)); AWS.config = { ...AWS.config, ...config.aws.config }; const sqs = new AWS.SQS(); function send...
(function() { var svg; //save off default references var d3 = window.d3, topojson = window.topojson; var defaultOptions = { scope: 'world', responsive: false, aspectRatio: 0.5625, setProjection: setProjection, projection: 'equirectangular', dataType: 'json', data: {}, done: fun...
'use babel'; import { CompositeDisposable } from 'atom'; import ConstConverter from './convertToConstructor'; import LiteralConverter from './convertToLiteral'; import Lib from './lib'; export default { /** * Atom events subscribed to by this package. */ subscriptions: null, /** * The use...
const ADMIN_PASSWORD = '12345'; let message; let input = prompt('Введите пароль:'); if (input === null) { message = 'Отменено пользователем!'; } else if (input === ADMIN_PASSWORD) { message = 'Добро пожаловать!'; } else message = 'Доступ запрещен, неверный пароль!'; alert(message);
const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel a...
var indexSectionsWithContent = { 0: "fglr", 1: "fglr", 2: "f", 3: "f", 4: "f" }; var indexSectionNames = { 0: "all", 1: "files", 2: "functions", 3: "groups", 4: "pages" }; var indexSectionLabels = { 0: "All", 1: "Files", 2: "Functions", 3: "Modules", 4: "Pages" };
import React, {Component} from 'react'; import { Editor } from '@tinymce/tinymce-react'; import { TINY_MCE_WIRIS, URL_IMAGE_UPLOAD } from '../const'; class TinymceEditor extends Component { constructor(props) { super(props); } render() { let {handleChangeEditor, value, simple} = this.props...
'use strict' exports.seed = (knex, Promise) => { let users = [ { id: 'eca664f6-d9d9-498d-bfdc-75ee1fb7800c', name: 'Amira Dooley', email: 'Raina_Kunde14@hotmail.com', created_at: new Date(), updated_at: new Date() }, { id: '6b7a192f-6e1c-4dcb-8e57-14ab16d5fdf4', ...
const path = require(`path`) const _ = require("lodash") const { createFilePath } = require(`gatsby-source-filesystem`) const { paginate } = require("gatsby-awesome-pagination") exports.createPages = async ({ graphql, actions, reporter }) => { const { createPage } = actions // Define a template for blog post co...
const app = { buildForm() { return [ $('#name').val(), $('#position').val(), $('#office').val(), $('#extn').val(), $('#startDate') .val() .replace(new RegExp('-', 'g'), '/'), `$${$('#salary').val()}` ]; }, sendToServer() { const formData = this.build...
/** * Helpers for export requests */ /* * 2011 Peter 'Pita' Martischka (Primary Technology Ltd) * * 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/licens...
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import Typography from '@material-ui/core/Typography' import UploadIcon from '@material-ui/icons/CloudUpload' import ImageIcon from '@material-ui/icons/Image' import { InvisibleDropArea, FileSelectAr...
var mainApp = angular.module('mainApp', ['ngRoute']) .config(function($routeProvider){ $routeProvider. when ('/clock', { templateUrl: 'clock.html', controller: 'clockCtrl' }). when ('/calendar', { templateUrl: 'calendar.html', controller: 'calendarCtrl' }). whe...
const {promisify} = require('util') const childExec = require('child_process').exec const fs = require('fs') const path = require('path') const addsrc = require('gulp-add-src') const archiver = require('archiver') const createReleaseManager = require('gulp-sentry-release-manager') const gulp = require('gulp') const lo...
import AsCss from './AsCss'; import AsSass from './AsSass'; import AsLess from './AsLess'; const FigmaStyles = () => ( <div className="section-block container text-center"> <div> You can export Figma Styles to different output.<br /> <a className="full" ...
const firebase = { getPushState: function() { return true; }, updatePushState: function(state) { return true; }, getNewestFact: function() { return Promise.resolve(null); }, getNewestImage: function() { return Promise.resolve(null); } }; var msgTrigger = require("./../functions/pushMess...
/** * Created by marija on 22.02.18. */ var p1 = Promise.resolve(18); var p2 = Promise.reject(17); var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = null; var argument3 = function callback(){callbackArguments.push(arguments)}; var argument4 ...