text stringlengths 2 1.04M |
|---|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var LeftArrow = function LeftArrow(props) {
return /*#__PURE__*/_... |
import React from 'react';
import PropTypes from 'prop-types';
import PDFViewer from 'mgr-pdf-viewer-react';
import CustomNavigation from './CustomNavigation';
const PdfViewer = props => {
const { file, scale } = props;
return (
<div className={`panel-heading`}>
<PDFViewer
d... |
); |
/* global noframe */
import Component from '@ember/component';
import layout from '../templates/components/koenig-card-embed';
import {NO_CURSOR_MOVEMENT} from './koenig-editor';
import {computed} from '@ember/object';
import {countTextLength} from '../lib/dnd/utils';
import {isBlank} from '@ember/utils';
import {run} ... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const bcrypt = require('bcryptjs');
let UserSchema = new Schema({
purchase_id: {
type: String,
required: true,
unique: true
},
fname: {
type: String
},
lname: {
type: String
},
email: {
type: String,
required: true
},
subscrib... |
// various tests for range errors in ctor calls
var buf = new ArrayBuffer(24);
var darray = new Float64Array(buf);
var farray = new Float32Array(buf);
var iarray = new Int32Array(buf);
var sarray = new Int16Array(buf);
var barray = new Uint8Array(buf);
darray[0] = 3.1415926535;
console.log (darray[0]);
console.log ... |
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { wrapIndex } from './TrieUtils';
import { Collection } from './Collection';
import {
isImmutable,
isCollection,
isKeyed,
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isHorizontal = isHorizontal;
exports.getAnchor = getAnchor;
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefaul... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.DHDevice = factory();
}
}(this, function() {
var utils = (function () {
'use strict';
var utils = {
i... |
/* global anchors: false, ClipboardJS: false, Holder: false */
(function ($) {
'use strict'
$(function () {
// Anchor
anchors.options = {
icon: '#'
}
anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5')
$('.bd-content > h2, .bd-content > h3, .bd-content... |
import {
SET_SPEED,
SET_EPOCH,
SET_EVOLUTION_RUNNING,
} from '../constants/actionTypes';
import initialState from './initialState';
export default function gameOfLifeReducer(state = initialState.gameOfLife, action) {
switch (action.type) {
case SET_EPOCH:
// For this example, just simulating a save b... |
/* <![CDATA[ */
// Jquery validate form booking
jQuery(document).ready(function(){
$('#availability-form').submit(function(){
var action = $(this).attr('action');
$("#message-booking").slideUp(750,function() {
$('#message-booking').hide();
$('#submit-booking')
.after('<img src="images/ajax-loader.gif"... |
var expect = require("expect.js");
var nock = require("nock");
var Eventflit = require("../../../lib/eventflit");
describe("Eventflit", function() {
var eventflit;
beforeEach(function() {
eventflit = new Eventflit({ appId: 1234, key: "f00d", secret: "beef" });
nock.disableNetConnect();
});
afterEach... |
import Firebase from 'firebase/app';
import 'firebase/database';
import 'firebase/storage';
const config = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
databaseURL: process.env.REACT_APP_DATABASE_URL,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBuc... |
const path = require('path');
const fs = require('fs');
const tempDir = path.resolve(__dirname, '../templates');
const render = employees => {
const html = [];
html.push(employees.filter(employee => employee.getRole() === 'Manager').map(manager => renderManager(manager)).join(''));
html.push(employ... |
// @flow
import React from 'react';
// storybook
import { storiesOf } from '@storybook/react';
// components
import { Button } from '../source/components/Button';
// skins
import { ButtonSkin } from '../source/skins/simple/ButtonSkin';
import { ButtonSpinnerSkin } from '../source/skins/simple/ButtonSpinnerSkin';
//... |
const jwt = require('jsonwebtoken');
const { User } = require("../config/dbConfig");
exports.checkUser = (req, res, next) => {
const token = req.cookies.jwtCookie; // récupérer le token dans le cookie
if (token) {
jwt.verify(token, process.env.SECRET_KEY, async(err, decodedToken) => {
... |
/* eslint-env jest */
let spy;
beforeEach(() => {
spy = jest.spyOn(console, "error").mockImplementation((message) => {
console.log(message);
throw new Error(message);
});
});
afterEach(() => {
spy.mockRestore();
}); |
"use strict";
import React from "react";
import Wprr from "wprr/Wprr";
import Layout from "wprr/elements/layout/Layout";
// import HorizontalMenuItem from "./HorizontalMenuItem";
export default class HorizontalMenuItem extends Layout {
/**
* Constructor
*/
constructor() {
//console.log("HorizontalMenuItem::... |
import { createStore, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import {persistStore, persistReducer} from 'redux-persist';
import storage from 'redux-persist/lib/storage';
import pokeapi from './reducers';
import rootSaga from './sagas';
const config = {
key:'poke_shop',
s... |
import Icon from "./icon.jsx";
export default Icon; |
/*!
* Lightbox v2.11.2
* by Lokesh Dhakar
*
* More info:
*
* Copyright Lokesh Dhakar
* Released under the MIT license
*
* @preserve
*/
// Uses Node, AMD or browser globals to create a module.
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an an... |
const path = require('path')
const fs = require('fs')
const test = require('tape')
const tempfile = require('tempfile')
const writeJson5File = require('.')
test('async', async t => {
const tmp = path.join(tempfile(), 'foo')
await writeJson5File(tmp, { foo: true }, { indent: 2 })
t.equal(fs.readFileSync(tmp, 'utf... |
//# sourceMappingURL=runtime~main.0021e2e3.iframe.bundle.js.map |
/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
* Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy
* of the license at https://github.com/palantir/blueprint/blob/master/LICENSE
* and https://github.com/palantir/blueprint/blob/master/PATENTS
*/
"use strict";
O... |
module.exports = ({ config, mode }) => {
config.module.rules.push({
test: /\.(ts|tsx)$/,
use: [
{
loader: require.resolve('babel-loader'),
options: {
presets: [['react-app', { flow: false, typescript: true }]],
},
},
require.resolve('react-docgen-typescript-... |
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also availa... |
import { useState, useEffect, useContext } from 'react';
import { FirebaseContext } from '../context/firebase';
export default function useAuthListener() {
const [user, setUser] = useState(JSON.parse(localStorage.getItem('authUser')));
const { firebase } = useContext(FirebaseContext);
useEffect(() => {
cons... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(ex... |
window.onload = function() {
var viewModel = {
chartOptions: {
type: "doughnut",
dataSource: dataSource,
palette: "Soft Pastel",
title: "Olympic Medals in 2008",
legend: {
horizontalAlignment: "right",
verticalAlignm... |
import { Controller } from 'stimulus'
import dompurify from 'dompurify'
import globalEventBus from '../services/event_bus_service'
import ws from '../services/messagesocket_service'
const conversionRate = 100000000
function makeNode (html) {
var div = document.createElement('div')
div.innerHTML = dompurify.saniti... |
import React, {useEffect, useState, useRef} from 'react';
import {useWindowDimensions, View, StatusBar} from 'react-native';
import SplashScreen from 'react-native-splash-screen';
import auth from '@react-native-firebase/auth';
import {theme} from 'App/theme';
import strings from '../../constants/strings';
import {show... |
import express from 'express';
import path from 'path';
import kraken from 'kraken-js';
import braintree from 'braintree';
import paypal from 'paypal-rest-sdk';
import PayPal from 'paypal-classic-api';
let app = express();
let krakenOpts = {
onconfig: (config, callback) => {
let btConfig = config.get('b... |
module.exports = {
verbose: true,
setupTestFrameworkScriptFile: '<rootDir>/setupTests.js',
moduleFileExtensions: ['js', 'jsx'],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/__tests__/__mocks__/'
],
moduleNameMapper: {
'^api(.*)$': '<rootDir>/src/api$1',
'^assets(.*)$': '<r... |
import { Form, Button } from 'antd';
import BaseInfo from './BaseInfo.js';
import ReportInfo from './ReportInfo';
import DiagnoseInfo from './DiagnoseInfo.js';
import styles from './index.less';
class CustomerDetail extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.handl... |
import React, { Component } from 'react';
import { Row, Col } from 'antd';
import { connect } from 'dva';
import PropTypes from 'prop-types';
/** */
class UserLayout extends Component {
/** 预挂载 */
componentDidMount() {
}
/** 组件挂载 */
render() {
const { children } = this.props;
retur... |
'use strict'
module.exports = {
'Local login test': function (browser) {
browser
.url(browser.launchUrl + '/login')
.waitForElementVisible('body', 1000)
.assert.title('nuxt-e2e-tests')
.assert.containsText('h1', 'Please login to see the secret content')
.assert.visible('input[type=t... |
import { Menu } from "antd";
import Link from "next/link";
const { SubMenu } = Menu;
const getBase64 = file => {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = () => resolve(reader.result);
reader.onerror = error => reject(error... |
import React from "react"
import styles from "./user.module.css"
const User = props => (
<div className={styles.user}>
{/* <img src={props.avatar} className={styles.avatar} alt="Written by" /> */}
<span>Written by</span>
<div className={styles.description}>
<a href={props.handle} target=... |
},"cFeature":"T","sFeature":"TableTools"}):alert("Warning: TableTools 2 requires DataTables 1.9.0 or newer - www.datatables.net/download"),d.fn.dataTable.TableTools=TableTools,d.fn.DataTable.TableTools=TableTools,TableTools};"function"==typeof define&&define.amd?define(["jquery","datatables"],d):"object"==typeof export... |
const serverlessExpress = require("@vendia/serverless-express");
const api = require("./api");
const server = serverlessExpress.createServer(api);
exports.handler = (event, context) =>
serverlessExpress.proxy(server, event, context); |
import React from 'react';
import * as helpers from './componentHelpers';
import Context from './Context';
/**
* The base class for all pure (state-less) view components.
*
* Unlike the "regular" components, pure components do not have any external
* state, and therefore are pure functions of their props and state... |
/**
* Template component
* explain what this class is doing
*/
export default class TemplateComponent {
constructor() {
/**
* Template component DOM selectors
* @type {{templateComponentArray: string, templateComponent: string, states: {isActive: string}}}
*/
this.DOM =... |
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2016 Skyscanner 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/licenses/LICENSE-2.0
*
* Un... |
'use strict'
/*
|--------------------------------------------------------------------------
| Factory
|--------------------------------------------------------------------------
|
| Factories are used to define blueprints for database tables or Lucid
| models. Later you can use these blueprints to seed your database
|... |
'use strict';
angular.module('apollo')
.controller('deploymentHistoryCtrl', ['apolloApiService', '$scope',
'$timeout' , '$state', 'growl', 'usSpinnerService', 'DTColumnDefBuilder',
function (apolloApiService, $scope, $timeout, $state, growl, usSpinnerService, DTColumnD... |
export { default } from './PlantInfoPageContainer'; |
module.exports = {
primary: "#a12614",
secondary: "#2b1e4e",
background: "#f0ece6",
font: "Poppins",
headingFont: "Forte",
} |
const electron = require('electron')
require('electron-debug')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const dialog = electron.dialog
const groove = require('groove')
const fs = require('fs')
const ini = require('ini')
const defaultConfig = app.getPath('home') + '/.config/splayer.conf'
/... |
import React from "react";
// reactstrap components
import {
Card,
CardHeader,
CardBody,
NavItem,
NavLink,
Nav,
TabContent,
TabPane,
Container,
Row,
Col,
} from "reactstrap";
// core components
function CompareVersions() {
const [leftFocus, setLeftFocus] = React.useState(false);
const [righ... |
// Assignment Code
var generateBtn = document.querySelector("#generate");
// Declare Global Data
// list of lower Case Letters
var lowerCase = ['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'];
// list of upper Case Letters
var upperCase... |
class titleScene extends Phaser.Scene {
constructor() {
super('Splash');
console.log("titleScene");
}
preload() {
/*this.load.image('sky', sky);
this.load.image("ground", ground);
this.load.image("diamond", diamond);
this.load.image("woof", woof);*/
}
create() {
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales['ar-kw... |
const commontags = require("common-tags");
const request = require("request-promise");
// Download and parse World CSV
const worldMap = new Map();
const init = (async () => {
const dataFile = await request("https://raw.githubusercontent.com/xivapi/ffxiv-datamining/master/csv/World.csv");
let lines = dataFile.match(/... |
var system;
var bezierCurve;
var polybezier;
var bezierCircle;
function setup() {
createCanvas(500, 500);
P5JsSettings.init();
resetShapes();
}
function draw(){
background(50);
noStroke();
shapes.forEach(s => s.draw());
}
function mousePressed(){
shapes.filter(s => s.dragEnabled == true)
.fin... |
/**
* Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved. ... |
//THIS IS THE HEADER
//implementing jquery to handle events based on functions
var pContainerHeight = $('.bird-box').height();
$(window).scroll(function(){
/* TO EXPLAIN
console.log('hi')--if we use this
the time we scroll will print hi that many number of time
if we scroll 40 px it will print 'hi' fo... |
/*
* JingleSession provides an API to manage a single Jingle session. We will
* have different implementations depending on the underlying interface used
* (i.e. WebRTC and ORTC) and here we hold the code common to all of them.
*/
var logger = require("jitsi-meet-logger").getLogger(__filename);
function JingleSess... |
import { useLocation } from 'react-router-dom';
import { IconButton } from '@material-ui/core';
import PdfIcon from './PdfSvg';
import React from 'react';
import jsPDF from 'jspdf';
import 'jspdf-autotable';
const CreatePdf = ({
height,
width,
className,
print,
setPrint,
pdflogo,
tableRef,
dateRangeRef... |
import {
getFormData,
getFormValidation,
callHooks,
filterHiddenFields,
bindTimestampValues,
serializeData,
addForeignKeyQuery,
} from "./helpers.js";
import Validator from "validatorjs";
import { HOOK_FUNCTIONS, TIMESTAMP_COLUMNS } from "./../constants.js";
export default async (context) => {
const { ... |
/***
* Excerpted from "Serverless Single Page Apps",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any purpose.
* V... |
const bcrypt = require('bcryptjs');
const config = require('../config/db');
const mongoose = require('mongoose');
// User Schema
const user_schema = mongoose.Schema({
first_name: {
type: String,
required: true
},
last_name: {
type: String,
required: true
},
username: {
type: String,
r... |
module.exports = {
title: 'Tailwind Design System',
themeConfig: {
sidebar: 'auto',
},
stylus: {
'include css': true,
include: [
'./node_modules/../' // Shortcut references possible everywhere, e.g. @import 'node_modules/bla'
]
},
postcss: {
... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ |
/**
* Legacy example of JSONata transformation.
*/
{
"id": id,
"type": "Vehicle",
"vehicleType": vehicleType,
"category": [
category1
],
"location": {
"type": "Point",
"coordinates": [
longitude,
latitude
]
},
"name": name,
"speed": speed,
"cargoWeight": cargoWeight,
"serviceStatus": serviceS... |
/**
* @flow
*/
import type {
NavigationScreenProp,
NavigationState,
NavigationStateRoute,
NavigationEventSubscription,
} from 'react-navigation';
import * as React from 'react';
import { Platform, ScrollView, StatusBar } from 'react-native';
import {
createStackNavigator,
SafeAreaView,
withNavigation,... |
/*
Rambunctious Recitation
*/
const fs = require("fs");
const input = fs
.readFileSync("./input.txt", (_, a) => a)
.toString()
.split("\r\n")
.map((a) => a.split(','))[0].map(a=>a >>>0);
/**
* Enumerates rules and returns the number at the stopAtTurn turn
* @param {[Number]} input Starting Set of Numbe... |
import convertToHTML from '../../src/convertToHTML';
import React from 'react';
import { convertFromRaw } from 'draft-js';
import uniqueId from '../util/uniqueId';
/* eslint-disable react/no-multi-comp */
const buildContentBlock = ({
type = 'unstyled',
depth = 0,
text = '',
styleRanges = [],
entityRanges = ... |
/*
* @Description: app 配置
* @Author: MoonCheung
* @Date: 2019-04-12 16:50:52
* @Github: https://github.com/MoonCheung
*/
const bash = require('../bash.js');
// NOTE: bash.js文件主要密钥,密码用来解析,而且需要你自己拥有这些才可以
const argv = require('yargs').config(bash).argv;
module.exports = {
// process.env属性返回一个包含用户环境信息的对象 See envir... |
/**
* @author Mahmud Ahsan <https://github.com/mahmudahsan>
*/
import React from 'react';
import { View, FlatList } from 'react-native';
import TodoListItem from '../components/TodoListItem';
export default class TodoList extends React.Component {
_keyExtractor = (item) => item.id
rgbToHex = (rgb) => {
va... |
// Copyright 2011 the V8 project authors. 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 ... |
/*globals jQuery,yii,window,moment,JSON:false */
(function ($, window, undefined) {
var animationEnd = (function (el) {
var animations = {
animation: 'animationend',
OAnimation: 'oAnimationEnd',
MozAnimation: 'mozAnimationEnd',
WebkitAnimation: 'webkitAnimationEnd'
};
for (var t in animations) {
... |
// Dependencies
var Config = require("./config")
, Request = require("request")
, Logger = require("bug-killer")
, Repo = require("gry")
, Async = require("async")
, Fs = require("fs")
, SameTimeLimit = require("same-time-limit")
;
// Logger configuration
Logger.config.progress = {
color: "#3498db"
... |
var fwd_2core_2common_8hpp =
[
[ "common_t", "fwd_2core_2common_8hpp.html#ga4da46c97755c0f430b063711b66ca05b", null ]
]; |
function render() {
return elementVoid("div", key, ["key", key]);
} |
var classsensesp_1_1_analog_voltage =
[
[ "AnalogVoltage", "classsensesp_1_1_analog_voltage.html#a7efac48b3e91d1afe29f935b09d607a4", null ],
[ "get_config_schema", "classsensesp_1_1_analog_voltage.html#adacc32fc9ee1c1fea837da53c797ff55", null ],
[ "get_configuration", "classsensesp_1_1_analog_voltage.html#a... |
/**
* returns the client timezone in ISO8601 format +-HH:MM or Z
*/
var client_timezone = function() {
var timezone_offset_min = new Date().getTimezoneOffset(),
offset_hrs = parseInt(Math.abs(timezone_offset_min/60)),
offset_min = Math.abs(timezone_offset_min%60),
timezone_standard;
if(offset_hrs ... |
// @ts-check
if (typeof $ != 'undefined') $(function() {
// Construct base link to project settings.
var baselink = window['app_path_webroot'] + 'ControlCenter/edit_project.php?project='
// Header.
var THr = $('div.hDiv div table tbody tr th')[1]
var THp = $('<th align="center"><div style="text-alig... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
import { withStyles, Button } from "@material-ui/core";
import PropTypes from "prop-types";
import Router from "translations/i18nRouter";
const styles = theme => ({
main: {
color: theme.palette.reaction.black80,
borderRadius: 10,
border: theme.palette.borders.default,
borderColor: theme.palette.react... |
/** Class implementing the table. */
class Table {
/**
* Creates a Table Object
*/
constructor(teamData, treeObject) {
//Maintain reference to the tree Object;
this.tree = treeObject;
this.tableElements = teamData.slice(); //
///** Store all match data for the 2014... |
/*! powerbi-client v2.10.3 | (c) 2016 Microsoft Corporation MIT */ |
/**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
const pkg = require('./package')
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: pkg.name,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: pkg.d... |
import {
ADD_COMMENT,
LOAD_ARTICLE_COMMENTS,
LOAD_COMMENTS_FOR_PAGE,
START,
SUCCESS
} from '../constants'
import { Record, OrderedMap, Map } from 'immutable'
import { arrToMap } from './utils'
const CommentRecord = Record({
id: null,
text: null,
user: null
})
const ReducerRecord = Record({
entities... |
import { BOOKMARK_PAGE_LOADED,
BOOKMARK_PAGE_UNLOADED,
ADD_BOOKMARK,
UPDATE_BOOKMARK,
REMOVE_BOOKMARK
} from '../actions/actionTypes'
let initialState = {
bookmarks: []
}
export default (state = initialState, action) => {
switch (action.type) {
case BOOKMARK_PAGE_LOADED:
re... |
var assert = require('assert')
, gm = require('gm')
, fs = require('fs')
, IMGR = require('../').IMGR;
var images = __dirname + '/images/'
, tmp = __dirname + '/tmp/';
var imgr = new IMGR();
describe('Converter', function () {
it('should copy images when no resize/crop/optimisation is specified', functi... |
/**
* Copyright (c) Benjamin Ansbach - all rights reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const Abstract = require('./Abstract');
const AccountNumber = require('@pascalcoin-sbx/common').Types.AccountNumber;
const C... |
import Vue from "vue";
import VueRouter from "vue-router";
import store from "@/store";
Vue.use(VueRouter);
const routes = [
{
path: "/",
name: "Home",
component: () => import("@/views/Keywords.vue"),
},
{
path: "/signup",
name: "SignUp",
component: () => import("@/views/SignUp.vue"),
... |
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/styles';
const useStyles = makeStyles(theme => ({
root: {
display: 'inline-block',
borderRadius: '50%',
flexGrow: 0,
flexShrink: 0
},
sm: {
height: theme.spacing(1)... |
/*
jQWidgets v3.7.1 (2015-Feb)
Copyright (c) 2011-2015 jQWidgets.
License: http://jqwidgets.com/license/
*/
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
module.exports = new Date(1987, 6, 6) |
const prompt = require('prompt');
prompt.colors = false;
prompt.start();
prompt.get(['first', 'second'], (err, result) => {
console.log('Command-line input received:');
console.log(` first: ${result.first}`);
console.log(` second: ${result.second}`);
}); |
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{37:function(n,o,t){"use strict";t.r(o);var i=t(0),c=t.n(i),e=t(109),a=t(105),w=t.n(a);o.default=function(){try{window&&window.location.replace("".concat(window.location.origin).concat(w()(window.location.search.substring(1))))}catch(n){console.log("Window still n... |
"use strict";
class UserController {
signup({ request, response }) {
return response.send(request);
}
}
module.exports = UserController; |
$(document).ready(function() {
pageLoad(1)
})
$('#search').on('keypress', function(e) {
if (e.which == 13) {
pageLoad(1);
}
});
function pageLoad(page=1) {
var search = $('#search').val();
var limit = $('#limit').val();
var id_th = $('#hidden_id_th').val();
var column_name = $('#hidden_column_name')... |
import React from 'react';
import Layout from '../../layout/Layout';
import SetCrumbs from '../../config/SetCrumbs';
const Codigomate = () => {
return (
<Layout>
<SetCrumbs second="Acerca" third="Codigo Mate" />
Codigo Mate
</Layout>
)
}
export default Codigomate; |
(function() {
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") {
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) {
return define(["jquery"], pivotModule);
} else {
... |
module.exports = function ( grunt ) {
'use strict';
/**
* Tasks and configuration
*
* @link https://github.com/firstandthird/load-grunt-config
*/
require('load-grunt-config')(grunt, {
configPath: require('path').join( process.cwd(), 'grunt-tasks' ),
init: true,
data: {
config: {
"theme" : {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.