text stringlengths 2 1.04M |
|---|
import jwt from 'jsonwebtoken';
import User from '../models/User';
function TokenController() {
}
TokenController.prototype.store = async (req, res) => {
const { email = '', password = '' } = req.body;
if (!email || !password) {
return res.status(401).json({
errors: ['Credênciais inválidas.'],
});... |
export const BOARD_SIZE = 3
export class GameData {
constructor () {
this.x = new Player()
this.o = new Player()
this.platformSize = 150
this.spaceSize = 10
this._winner = null
this._endGame = false
this._randomI = null
this._randomJ = null
}
get randomValues () {
return { i:... |
'use strict';
const JSON6 = require( ".." );
describe('Object keys', function () {
describe('Erring', function () {
it('Unencapsulated hyphenated key with space', function () {
expect(function () {
const result = JSON6.parse( "{ my- key:3}" );
//console.log( "result:", result );
}).to.throw(Error);
... |
module.exports = {
extends: [
'semipretty',
'plugin:jest/recommended',
'plugin:react/recommended'
],
settings: {
react: {
version: 'detect'
}
}
}; |
// Babel is only used to compile the jest tests!
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-typescript"
]
}; |
var assert = require('assert');
describe('wsProxy', function() {
it('Start server', function(done) {
try {
require('../index.js');
}
catch(e) {
done(e);
}
setTimeout(function() { done() }, 1000);
})
}) |
import VueRouter from 'vue-router'
import MainPage from '@/pages/MainPage.vue'
import LoginPage from '@/pages/LoginPage.vue'
import ProfilePage from '@/pages/ProfilePage.vue'
const routes = [
{ path: '/', component: MainPage },
{ path: '/login', component: LoginPage },
{
path: '/profile',
component: Prof... |
#! /usr/bin/env node
/**
* Rolldash - The minimalist lodash minified builder for node
* Flynn Buckingham - 2018
*/
const path = require('path');
const fs = require('fs');
const child_process = require('child_process');
const semver = require('semver');
const minimist = require('minimist');
const { rollup } = req... |
import React from 'react'
import { Link } from 'gatsby'
import logo from '../img/logo.svg'
const Navbar = class extends React.Component {
constructor(props) {
super(props)
this.state = {
active: false,
navBarActiveClass: '',
}
}
toggleHamburger = () => {
// toggle the active boolean ... |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var iconPropTypes = require('./iconPropTypes-b9203099.js');
va... |
import Creators from "./actions";
import Api from "../../lib/Api";
const subscribeToRates = function (props) {
return function (dispatch) {
const {
saveCable,
saveSubscription
} = Creators;
const {
jwt,
cable,
subscription,
onRatesReceived
} = props;
let ap... |
ModuleLoader.require(["tinymce/text/Zwsp"], function(Zwsp) {
module("tinymce.text.Zwsp");
test('ZWSP', function() {
strictEqual(Zwsp.ZWSP, '\u200b');
});
test('isZwsp', function() {
strictEqual(Zwsp.isZwsp(Zwsp.ZWSP), true);
});
test('isZwsp', function() {
strictEqual(Zwsp.trim('a' + Zwsp.ZWSP + 'b'), 'a... |
import Playlist from '../models/Playlist';
export default {
async index(req, res) {
const playlists = await Playlist.find();
return res.json(playlists);
},
async store(req, res) {
const playlist = await Playlist.create({
name: req.body.name,
});
return res.json(playlist);
},
}; |
import styled from 'styled-components'
import {
appearanceProps,
cssProps,
dimensionProps,
flexProps,
growShrinkProps,
positionProps,
textProps,
} from '@sharedProps'
import { createStyle, convertValue } from '@utils'
export const StyledFlexBox = styled.div`
${props =>
props.alignSelf &&
create... |
script: {
const newdata = data.newdata;
const olddata = data.olddata;
const newStatus = newdata && newdata.status;
const oldStatus = olddata && olddata.status;
if (newStatus === "submitted" && oldStatus !== "submitted") {
value = value || {};
value.submitted = new Date(newdata.statusSetAt);
} else if (newStatu... |
///Script para obtener los datos necesarios de cada pestaña
/// funciones para crear y obtener datos de estudiantes
function nuevosEstudiantes(Estudiantes,Editando,Eliminando){
console.log(Estudiantes);
var objetoJSON = JSON.stringify(Estudiantes);
localStorage.setItem("Estudiantes",objetoJSON);
if(Editando){
... |
'use strict';
const gulp = require('gulp');
const imagemin = require('gulp-imagemin');
const pngquant = require('imagemin-pngquant');
const notify = require("gulp-notify");
const plumber = require('gulp-plumber');
const size = require('gulp-size');
/**
* Path
* ------------------------------------------------------... |
var SogreyJs = (function () {
var clearConsole = function () {
try {
window.console && window.console.clear && console.clear();
window.console && window.console.log && console.log('%c %c\nWelcome to%c\nSogrey\'s Blog\n%chttps://sogrey.github.io \n... |
import assert from 'assert';
import IconService from '../build/icon-sdk-js.node.min';
const tests = [{
value: [
{
type: 'function',
name: 'balanceOf',
inputs: [
{
name: '_owner',
type: 'Address',
},
],
outputs: [
{
type: 'int',
... |
//node modules - nodemon (deixa o server)
const http = require('http');
const usuario = require('./data/usuarios.json')
const { getUsuario, criaMensagem,deletarMensagem,criaUsuario} = require('./controllers/usuarioController')
const server = http.createServer((request, response) => {
/*if (request.url === '/api/... |
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var EXCLUDE = /\.\/node_modules/;
module.exports = {
bail: true,
... |
(function (angular) {
"use strict";
angular.module("dbcheck.planner.controllers", [])
.controller("dbcheck.planner.controllers.setup",[
"$scope", "$state", "dbcheck.planner.formly.user_targets",
"dbcheck.resource.linkRecipeThings",
"errorMessage",
function($scope, $state, fo... |
/*! DataTables 1.10.7
* ©2008-2015 SpryMedia Ltd - datatables.net/license
*/
(function(Ea,Q,k){var P=function(h){function W(a){var b,c,e={};h.each(a,function(d){if((b=d.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=d.replace(b[0],b[2].toLowerCase()),e[c]=d,"o"===b[1]&&W(a[d])});... |
import { AuthTypes } from "../types";
const initialState = {
user: {},
isLoggedIn: false,
isLoading: false,
errorMessage: "",
};
const AuthReducer = (state = initialState, action) => {
console.log(action);
switch (action.type) {
case AuthTypes.LOGIN_REQUEST:
return {
...state,
us... |
(function e(b,g,d){function c(m,j){if(!g[m]){if(!b[m]){var i=typeof require=="function"&&require;if(!j&&i){return i(m,!0)}if(a){return a(m,!0)}var k=new Error("Cannot find module '"+m+"'");throw k.code="MODULE_NOT_FOUND",k}var h=g[m]={exports:{}};b[m][0].call(h.exports,function(l){var o=b[m][1][l];return c(o?o:l)},h,h.... |
///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 - 2018 Esri. 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
//
// h... |
/**
* Main application routes
*/
'use strict';
var errors = require('./components/errors');
module.exports = function(app) {
// Insert routes below
app.use('/api/pages', require('./api/page'));
app.use('/api/strings', require('./api/string'));
app.use('/api/things', require('./api/thing'));
app.use('/ap... |
"use strict";
require("../../style/default.less");
require("./index.less");
require("../../button/style");
require("../../empty/style");
require("../../radio/style");
require("../../checkbox/style");
require("../../dropdown/style");
require("../../spin/style");
require("../../pagination/style");
require("../.... |
module.exports = function solveEquation(equation) {
var equationStringArr = equation.split(' ');
var a = Number(equationStringArr[0]);
if (equationStringArr[3] == "+"){
var b = Number(equationStringArr[4]);
}
else {
var b = -Number(equationStringArr[4]);
}
if (equationStringArr[7] == "+"){
var... |
//== Class definition
var BootstrapTouchspin = function() {
//== Private functions
var demos = function() {
// minimum setup
$('#m_touchspin_1, #m_touchspin_2_1').TouchSpin({
buttondown_class: 'btn btn-secondary',
buttonup_class: 'btn btn-secondary',
min: 0,... |
describe('The Publication detail page', function() {
it('should load successfully', function() {
cy.visit('/record/2737390');
});
}); |
function _daysAgoStringBuilder(date) {
var t = date.split(/[- : T]/);
var d = new Date(Date.UTC(t[0], t[1] - 1, t[2], t[3], t[4], t[5]));
var today = new Date();
var daysAgo = parseInt((today - d) / 86400000);
if (daysA... |
import formComponents, { Checkbox, FormControlText, Radio, Rangeslider, Togglebox } from "./index";
describe("formComponents - ", () => {
it("is defined", () => {
expect(formComponents).toBeDefined();
});
it("Checkbox is defined", () => {
expect(Checkbox).toBeDefined();
});
it("Fo... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import Debounce from 'lodash-decorators/debounce';
import {
Row,
Col,
Form,
Card,
Table,
AutoComplete,
Input,
Modal,
Icon,
Select,
notification,
InputNumber,
} from 'antd';
import { stringify } from 'qs';
import PageHea... |
// TODO: refactor
import { check, Match } from 'meteor/check';
import { Meteor } from 'meteor/meteor';
import Images from '../../lib/images';
// publish images owned by user
Meteor.publish('images', function() {
check(arguments, Match.Maybe({}));
return Images.find({ 'meta.owner': this.userId }).cursor;
}); |
export default {
state: {
isDarkTheme: true,
},
getters: {
isDarkTheme: state => state.isDarkTheme,
},
mutations: {
SET_THEME: (state) => {
state.isDarkTheme = !state.isDarkTheme
}
},
actions: {
setTheme: ({ commit }) => {
commit('SET_THEME')
},
},
} |
import React, { useEffect, useState } from 'react';
import { withTranslation } from 'react-i18next';
import { compose } from 'recompose';
import { connect } from 'react-redux';
import copy from 'copy-to-clipboard';
import { withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import {
Block,
Bl... |
define(
({
"name":"Name",
"fax":"Fax",
"zip":"Zip/Postal Code",
"newContact":"New Contact",
"home":"Home",
"save":"Save",
"export":"Export",
"contact":"Contact",
"city":"City",
"country":"Country",
"email":"Email",
"work":"Work",
"mobilephone":"Mobile Phone",
"import":"Import",
"removeContact":"Remove Contact",
"phone... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import App from './App';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<App />
</Provider>
)... |
/*!
* fullPage 3.0.8
* https://github.com/alvarotrigo/fullPage.js
*
* @license GPLv3 for open source use only
* or Fullpage Commercial License for commercial use
* http://alvarotrigo.com/fullPage/pricing/
*
* Copyright (C) 2018 http://alvarotrigo.com/fullPage - A project by Alvaro Trigo
*/
(function( root, win... |
// All contract functionality is fully testing in the tests below. The testing structure
// is to address each major usecase of the contract, in accordance with the contract
// interface. The time of the blockchain is modified using the advanceToBlock, increseTime
// and latestTime javascript helpers to simulate partic... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import webpack from 'webpack';... |
import React, { useState , useEffect} from 'react';
import { StyleSheet, Text, View, Image } from 'react-native';
import { Images, Profiles } from '../Themes';
import { Dimensions, TouchableOpacity } from 'react-native';
import NavigationBar from './NavigationBar';
import Icon from 'react-native-vector-icons/FontAwesom... |
/**
* Launch Screen
* - Shows a nice loading screen whilst:
* - Preloading any specified app content
* - Checking if user is logged in, and redirects from there
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes... |
const { createWriteStream } = require("fs");
const { json } = require("../serializers");
const levels = require("../levels");
const { getLevelNum } = require("../tools");
const defaultOptions = {
level: Object.values(levels)[0],
serializer: json(),
file: `${process.cwd()}/l0gg3r.log`
};
const fileTransport = (o... |
import { _ as _export_sfc, c as createElementBlock, o as openBlock, a as createStaticVNode } from "./app.9cd63efa.js";
const __pageData = '{"title":"less","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u5B9A\u4E49\u53D8\u91CF\u4E0E\u4F7F\u7528\u53D8\u91CF","slug":"\u5B9A\u4E49\u53D8\u91CF\u4E0E\u4F7F... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'far';
var iconName = 'faucet-drip';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = 'e006';
var svgPathData = 'M416,480a32,32,0,0,0,64,0c0-17.67-32-64-32-64S416,462.33,416,480ZM368,160H323.18c-18.67-23.11-44.... |
'use strict'
const opentracing = require('opentracing')
const SPAN_STATUS_CODE = require('../../../../ext/status')
const now = require('performance-now')
const Span = opentracing.Span
const SpanContext = require('./span_context')
const constants = require('../constants')
const id = require('../id')
const tagger = requ... |
"use strict";
var $__ParseTreeTransformer_46_js__,
$___46__46__47_syntax_47_trees_47_ParseTrees_46_js__,
$__ParseTreeFactory_46_js__,
$___46__46__47_syntax_47_trees_47_ParseTreeType_46_js__,
$___46__46__47_syntax_47_TokenType_46_js__;
var ParseTreeTransformer = ($__ParseTreeTransformer_46_js__ = require... |
///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 - 2017 Esri. 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
//
// h... |
var abp = window.abp || {};
(function() {
if (!toastr) {
return;
}
/* DEFAULTS *************************************************/
toastr.options.positionClass = 'toast-bottom-right';
/* NOTIFICATION *********************************************/
var showNotification = function(type,... |
'use strict';
let fakeHidService = undefined;
function hid_test(func, name, properties) {
promise_test(async (test) => {
assert_implements(navigator.hid, 'missing navigator.hid');
if (fakeHidService === undefined) {
// Try loading a polyfill for the fake hid service.
if (isChromiumBased) {
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var path = _interopDefault(require('path'));
var fs = _interopDefault(require('fs'));
var mkdirp = _interopDefault(require('m... |
import { addGenPbHandler } from '../../../errors/handler.js'
import { DEFAULT_FORMAT, getFormat, getMimes } from '../../../formats/get.js'
// Retrieve format asked by client for the response payload
export const getFormatFunc = function({ queryvars, format }) {
const formatA = getFormatName({ queryvars, format })
... |
// this lets us require files with JSX/ES6 in them
require('babel/register')
// require React and our two React components
var React = require('react')
var HomePage = require('./src/home-page')
var OtherPage = require('./src/other-page')
// our hjs-webpack, of course
var getConfig = require('hjs-webpack')
module.exp... |
import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgNumber1(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M14 1.5V22h-2V3.704L7.5 4.91V2.839l5-1.339z" />
</Svg>
);
}... |
import constants from '../internals/constants';
import isMatching from '../internals/isMatching';
import topics from './events';
const INDEX_SEPARATOR = constants.INDEX_SEPARATOR;
/**
* Removes all events, that has id same or matching via isMatching().
* RemoveEvents('0.1') removes events '0.1', '0.1.0', '0.1.1', ... |
// Some fake-ish data to represent server responses for the basic-graphql-server github project
// https://github.com/globalroo/basic-graphql-server.git
// Images and meta data courtesy of https://www.themoviedb.org/
// This product uses the TMDb API but is not endorsed or certified by TMDb.
import { config } from "..... |
'use strict'
const Schema = use('Schema')
class GroupteamsSchema extends Schema {
up() {
this.create('groupteams', (table) => {
table.increments()
table.integer('group_id').unsigned().references('id').
inTable('groups').onDelete('CASCADE').onUpdate('CASCADE')
table.integer('team_id').u... |
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se... |
/*!
* Copyright 2017 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const Command = require("../BaseCommand");
const Flags = require("../flags");
const Logger = require("../Logger");
const Errors = require("../errors");
const {
findCVEsWithoutCache, updateLocalCVECache, findCVEsWithCache, localCVECacheExists,
} = require("../CVEs");
class CVECommand extends Command {
async run... |
fixture `Password is not a string`
.httpAuth({ username: 'username', password: {} });
test('Some test', () => {
}); |
var jQuery_1_9_1 = $.noConflict();
(function(f) {
function h(a, b) {
this.id = "" + p.id++;
this.ua = 0;
this.xa = a.width();
this.Y = f(document).width();
this.V = !1;
this.lb = b;
var c = f.extend({}, h.defaults, b);
... |
class Controller {
}
module.exports = Controller |
const expect = chai.expect;
import Vue from 'vue'
import Toast from '../src/toast'
Vue.config.productionTip = false;
Vue.config.devtools = false;
describe('Toast', () => {
it('存在.', () => {
expect(Toast).to.exist
});
describe('props', function () {
it('接受 autoClose', function (done) {... |
var catPage = function () {
var _self = this;
var page;
/**
* 初始化
*/
_self.init = function () {
uiInit();
}
/**
* 销毁
*/
_self.distroy = function () {
page.removeSelf();
}
/**
* ui初始化
*/
function uiInit() {
page = new catUI... |
// Write a function that takes in a sorted array and returns the first pair that sums up to zero in an array.
// If not return undefined.
// O(log(arr.length)) time | O(1) space
const sumZero = arr => {
let pt1 = 0;
let pt2 = arr.length - 1;
while (pt1 < pt2) {
const sum = arr[pt1] + arr[pt2];
if (sum =... |
/*!
* headroom.js v0.9.4 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2017 Nick Williams - http://wicky.nillia.ms/headroom.js
* License: MIT
*/
|
import React, { Component } from 'react';
import { View, Text, StyleSheet, Animated, TouchableOpacity } from 'react-native';
import Icon from './icons/icons'
import PropTypes from 'prop-types'
export default class MenuItem extends Component {
constructor(props) {
super(props);
this.state = {
translat... |
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:3000/api',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
},
outputDir: '../rokaf-letter-backend/publ... |
define(['axios'], function (axios) {
var jsonIO = async function (url) {
url = localStorage.getItem('baseUrl')+'json/'+url;
const reqJson = async function () {
return axios.get(url);
};
const getJson = await reqJson();
var data = getJson.data;
const upd... |
import { div, h4, a, p } from '@cycle/dom';
import xs from 'xstream';
export default function Todo(sources) {
const todo$ = sources.todo$;
const deleteClick$ = sources.DOM.select('.delete').events('click').debug('Clicked');
const delete$ = xs.combine(todo$, deleteClick$)
.map(([todo]) => todo.id)
.deb... |
$(document).ready(function() {
$('#deleteDocketLabelModal').on('show.bs.modal', function(e) {
$('#deleteDocketLabelModal .flash-message').css('display','none');
$('#deleteDocketLabelModal .submit').html('Yes');
$('#deleteDocketLabelModal .docket-label-id').val($(e.relatedTarget).attr('data-... |
/**
* @see http://www.chaijs.com/guide/styles/#should
*/
'use strict';
const should = require('chai').should();
import '../src/js/to-separated.js';
describe('to-separated', function() {
it('should exists', function() {
should.exist(Object.prototype.toSeparated);
});
it('should return an empty... |
const parse = require('../lib')
const assert = require('assert')
parse(`
lastname,firstname,fullname
Ritchie
Lovelace,Ada,"Augusta Ada King, Countess of Lovelace"
`.trim(), {
relax_column_count: true,
columns: true
}, function(err, records){
assert.deepStrictEqual(
records, [
{ lastname: 'Ritchie' },
... |
var searchData=
[
['q_9891',['Q',['../da/df3/classnil_1_1crypto3_1_1zk_1_1components_1_1element__g2__is__well__formed.html#a088be3acfa9e0177d2e97e02cf37123e',1,'nil::crypto3::zk::components::element_g2_is_well_formed::Q()'],['../df/da1/classnil_1_1crypto3_1_1zk_1_1components_1_1mnt__miller__loop__add__line__eval.html... |
import routes from '@mobile-routes'
import config from '@config'
import VueRouter from 'vue-router'
import Vue from 'vue'
import { get } from 'lodash-es'
import { inIframe, isPhone } from '../utils'
const originalReplace = VueRouter.prototype.replace
VueRouter.prototype.replace = function replace(location, onResolve, ... |
import expect from 'must';
import Github from '../lib/GitHub';
import testUser from './fixtures/user.json';
import loadImage from './fixtures/imageBlob';
import {assertSuccessful, assertFailure} from './helpers/callbacks';
import getTestRepoName from './helpers/getTestRepoName';
describe('Repository', function() {
... |
fil = new Array();
fil["0"]= "_networking_services_neutron.html@@@Networking Services (Neutron) - MidoNet Quick Start Guide for RHEL 7 / Juno (RDO) - 2015.06-rev5@@@null";
fil["1"]= "_zookeeper_installation.html@@@ZooKeeper Installation - MidoNet Quick Start Guide for RHEL 7 / Juno (RDO) - 2015.06-rev5@@@null";
fil["... |
function move()
{
let x = document.getElementById('soumettre');
let pos = 0;
let id = setInterval(frame, 5);
function frame()
{
if (pos == 385){
clearInterval(id);
}else{
pos++;
x.style.visibility='visible';
x.style.left ... |
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const path = require('path');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'app.js'
},
module: {
rules: [{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}... |
/**
* A Javascript object to encode and/or decode html characters using HTML or Numeric entities that handles double or partial encoding
* Author: R Reid
* source: http://www.strictly-software.com/htmlencode
* Licences: GPL, The MIT License (MIT)
* Copyright: (c) 2011 Robert Reid - Strictly-Software.com
*
* Perm... |
/*!
* Paradigm Framework - Web Shared
* Copyright (c) 2017 Miracle Devs, Inc
* Licensed under MIT (https://github.com/MiracleDevs/Paradigm.Web.Shared/blob/master/LICENSE)
*/
var gulp = require("gulp");
var log = require("fancy-log");
var typescript = require("gulp-typescript");
var yargs = require("yargs");
var cl... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = NotchedOutline;
var _objectWithoutPropertiesL... |
import add2D from './2d/add2D';
import { complexChromatogram } from './complexChromatogram';
import postProcessingNMR from './postProcessingNMR';
import profiling from './profiling';
import simpleChromatogram from './simpleChromatogram';
export default function postProcessing(entriesFlat, result, options) {
// conve... |
// @flow
import React from "react";
import type {
Action,
Device,
} from "@ledgerhq/live-common/lib/hw/actions/types";
import { useTranslation } from "react-i18next";
import { useNavigation } from "@react-navigation/native";
import ValidateOnDevice from "../ValidateOnDevice";
import {
renderWarningOutdated,
ren... |
'use babel';
var robot = undefined;
var Hubot = require('hubot');
var user = undefined;
var sendRequest = undefined;
var changeScript = undefined;
var $ = require('jquery');
var controller = undefined;
var isDragging = false;
var isMouseDown = false;
var mouseDownX = 0;
var sendRequest = function() {
controller.sen... |
'use strict';
module.exports = crawlerResponse => Object.keys(crawlerResponse).reduce((acc, key) => {
const {priority: isPriority, orgName, position} = crawlerResponse[key];
return acc + `${isPriority ? '(осн.)' : '(зап.)'} ${orgName}: ${position}\n`;
}, ''); |
/////////////////////////////////////////////////////////////////////////////////////////////
//
// allume.request.github
//
// PKX request module for fetching releases from GitHub.
//
// License
// Apache License Version 2.0
//
// Copyright Nick Verlinden (info@createconform.com)
//
/////////////////////////////... |
import knex from 'knex';
export const apiURL = process.env.API_URL_TEST;
export const password = process.env.API_PASSWORD;
export const db = (() => {
return {
init() {
const {
DB_HOST_TEST,
DB_PORT_TEST,
DB_USER_TEST,
DB_DATABASE... |
var _e_z_m_q_publisher_8h =
[
[ "EZMQPUBCallback", "classezmq_1_1_e_z_m_q_p_u_b_callback.html", "classezmq_1_1_e_z_m_q_p_u_b_callback" ],
[ "EZMQPublisher", "classezmq_1_1_e_z_m_q_publisher.html", "classezmq_1_1_e_z_m_q_publisher" ],
[ "EZMQErrorCB", "_e_z_m_q_publisher_8h.html#af63b61aec2258186ed280a3720a3... |
import React ,{Component} from 'react'
import { connect } from 'react-redux'
import { test } from '../actions/testAction'
import { Link } from 'react-router-dom'
export const Home=({match,history,outputTest})=>(
<div>
<h2>this is Home</h2>
<h3>param-id: {match.params.id}</h3>
<h3>history length: {history... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
[
{
id: '',
name: '',
room: ''
}
];
class Users {
constructor() {
this.users = [];
}
addUser(id, name, room) {
var user = { id, name, room };
this.users.push(user);
return user;
}
removeUser(id) {
var user = this.getUser(id);
if (user) {
this.users = this.users.... |
const express = require('express')
const bodyParser = require('body-parser')
const { graphqlExpress, graphiqlExpress } = require('apollo-server-express')
const voyager = require('graphql-voyager/middleware').express
const graphqlHTTP = require('express-graphql')
const schema = require('./schema')
const dbConnect = req... |
import _ from 'lodash';
import template from './filter_pill.html';
import { uiModules } from '../../modules';
const module = uiModules.get('kibana');
module.directive('filterPill', function () {
return {
template,
restrict: 'E',
scope: {
filter: '=',
onToggleFilter: '=',
onPinFilter: '... |
import React from 'react'
import PropTypes from 'prop-types'
import './PageLayout.scss'
import MyHeader from './PageHeader'
import Nav from './PageNavBar'
import Main from './PageContent'
import { Layout,Icon } from 'antd'
const { Header, Sider, Content } = Layout;
class PageLayout extends React.Component{
state ... |
import React from 'react'
import Editable from 'src/components/common/Editable'
import css from './index.css'
const Goals = () => {
return (
<React.Fragment>
<div className={css.wrap}>
<div className={css.title}>
Цели спринта
</div>
<div className={css.goalsWrap}>
... |
const yes = require("reactide-config")
yes.config() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.