text stringlengths 2 1.04M |
|---|
/* eslint-disable max-len */
/**
* @file ext-overview_window.js
*
* @license MIT
*
* @copyright 2013 James Sacksteder
*
*/
import { dragmove } from './dragmove/dragmove.js';
export default {
name: 'overview_window',
init ({ _$ }) {
const svgEditor = this;
const { $id } = svgEditor.svgCanvas;
con... |
$(document).ready(function () {
const derivationPath = "m/44'/60'/0'/0/";
//const provider = ethers.providers.getDefaultProvider('ropsten');
let nodeIdUrl = "http://localhost:5555";
//let nodeIdUrl = "https:/stormy-everglades-34766.herokuapp.com";
var restfulCallTimeout = 60000;
let wallets = {};
... |
var videoViewer = {
UI : {
playerTemplate : '<header><link href="'+OC.filePath('files_videoplayer', 'videojs', 'src')+'/video-js.css" rel="stylesheet"><script src="'+OC.filePath('files_videoplayer', 'videojs', 'src')+'/video.js"></script>' +
'</header><video id="my_video_1" class="video-js vjs-sublime-skin" contro... |
var expect = require('chai').expect;
var sinon = require('sinon');
var proxyquire = require('proxyquire');
var https = {
request: sinon.stub(),
};
var utils = require('../../../utils/chapi');
var Perspective = proxyquire('../../../components/perspective', {
'https': https,
'../utils/chapi.js': utils,
});
var Eve... |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
'use strict';
/* eslint-env node */
const path = require( 'path' );
const webpack = require( 'webpack' );
const { bundler, styles } = req... |
"use strict";
// welcome to the events system!
// events are an important piece of a larger puzzle I'm trying to solve related to adding lots of behavior into the game
// events will allow miscellaneous behavior to be organized into a single object
// miscellaneous behavior is anything which does not belong in the core... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
var searchData=
[
['v2b_5flsb_2054',['V2B_LSB',['../vector_8c.html#a2c022c73385ae30c8718a94a07402b18',1,'V2B_LSB(uint8_t *B, int index, int size, uint32_t val): vector.c'],['../vector_8h.html#a2c022c73385ae30c8718a94a07402b18',1,'V2B_LSB(uint8_t *B, int index, int size, uint32_t val): vector.c']]],
['v2b_... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as tslib_1 from "tslib";
/**
* Polyfill for [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Head... |
const DI = require('./../bin/main.js');
const SimpleClass = require('./simple-class');
const SingleInstanceClass = require('./single-instance-class');
const StaticService = require('./static-service');
const AsyncService = require('./async-service');
const sampleCont = new DI();
sampleCont.inject('SimpleClass', Simple... |
/*
* @flow
* Copyright (C) 2018 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import he from 'he';
import * as React from 'react';
impor... |
var SIM_LableHash = {
'lvl':'Skill Lv.',
'MP':'Fee MP',
'cast':'Skill Type',
'CD':'Cooldown',
'lvlup':'Level Up Requirements',
'effect':'Skill Description',
'element':'Attribute',
'weapon':'Required Weapon',
'nexteffect':'Skill Description (Next Level)'
};
SIM_AddSkill({
"3210": {
name: "Heart of Glory",
... |
// Programmer: Bikram Chatterjee
// Mac App Store
// login.js
// Original HTML content
let login_html = "<img src='Images/logo.png' draggable='false' alt='logo' height='200px'> <p class='login'>Sign in to Mac App Store</p> <form style='height: 84px' method='post' action='form.php'> <input type='text' placeholder='Appl... |
import React from 'react';
import Img from 'react-image';
import Loader from 'react-loader-spinner';
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
import './ImagePreview.scss';
function ImagePreview({title, hdurl, url, newTab=true}) {
return (
<div className="image-preview">
... |
import { Bucket } from './bucket';
import { ListCollector } from './collector';
import { Switch } from './switch';
const predicates = {
even: ({ input, onOutput }) => onOutput(input !== null && input % 2 === 0),
negative: ({ input, onOutput }) => onOutput(input < 0),
small: ({ input, onOutput }) => onOutput(inpu... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import toJson from 'enzyme-to-json';
import About from '../index';
describe('<About />', () => {
it('should render <About /> component', () => {
const component = shallow(<About />);
const tree = toJson(component);
expect(tree).toMatchSn... |
const CustomError = require("../extensions/custom-error");
module.exports = function repeater(str, options) {
str = String(str);
if(options.separator === undefined)
options.separator = '+';
if(options.additionSeparator === undefined)
options.additionSeparator = '|';
if(options.repeatTimes === undefin... |
//Scatter Plot
// reference to: http://bl.ocks.org/weiglemc/6185069
// @Author: Xinyu(Bruce) Li
// TODO: tooltip, study axis text compared to reference
console.log("Loading homework2.js");
// 1. Margin;
var outWidth = 1000, outHeight = 800;
var margin = {top: 50, right: 50, bottom: 70, left: 100},
width = outWidth -... |
var ldr=new ldresize({host:svg2,root:svg}),path=ld$.find(document,"path"); |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
var objToStick = $(".home-properties"); //Получаем нужный объект
if (objToStick.length) {
var topOfObjToStick = objToStick.offset().top; //Получаем начальное расположение нашего блока
$(window).scroll(function () {
var windowScroll = $(window).scrollTop(); //Получаем величину, показывающую на сколько прокручено ... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-c-4.js
* @description Object.freeze - all own properties of 'O' are not writable and not configurable
*/
function testcase() {
var obj = {};
var resultSetFun = false;
Object.d... |
module.exports = {
COMMON_USER_AGENT: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
TEST_PROJECT_KEY: '8f645054173ca9427912f8cc4181e2e9',
TEST_NODE_ENV: 'test',
}; |
export const blockedUI = () => ({
type: 'BLOCK_UI'
})
export const unblockedUI = () => ({
type: 'UNBLOCK_UI'
}) |
import React, { useState, useEffect } from 'react';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import Box from '@material-ui/core/Box';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material-ui/core/styles';
import { Magic }... |
var plugins = [{
plugin: require('/Users/melanietabroff/portfolio-practice/node_modules/gatsby-plugin-react-helmet/gatsby-ssr'),
options: {"plugins":[]},
},{
plugin: require('/Users/melanietabroff/portfolio-practice/node_modules/gatsby-plugin-manifest/gatsby-ssr'),
options: {"plugins":[],"na... |
import React from 'react'
import PropTypes from 'prop-types'
import PreviewCompatibleImage from './PreviewCompatibleImage'
const FeatureGrid = ({ gridItems }) => (
<div className="columns is-multiline">
{gridItems.map(item => (
<div key={item.text} className="column is-6">
<section className="sect... |
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var _react=require("react"),_react2=_interopRequireDefault(_react),_propTypes=require("prop-types"),_propTypes2=_interopRequireDefault(_propTypes),_classnames=require("classnames")... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[56],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./resources/js/views/users/SelfProfile.vue?vue&type=script&lang=js&":
/*!***********************************************... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modu... |
'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'development';
process.env.NODE_ENV = 'development';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will
... |
/**
* @typedef {object} Phaser.Types.Renderer.WebGL.WebGLPipelineUniformsConfig
* @since 3.55.1
*
* @property {string} name - The name of the uniform as defined in the shader.
* @property {number} location - The location of the uniform.
* @property {number} [value1] - The first cached value of the uniform.
* @pr... |
import { Meteor } from 'meteor/meteor'
import { bank, auditor, publics } from './api'
import { Accounts, PairingRequests } from './collections'
import mnid from 'mnid'
const methods = {}
Object.keys(publics).forEach(key => {
methods[`publics.${key}`] = () => {
if (!Meteor.isServer) {
return
}
retu... |
exports.adminManagerActions = require('./adminManagerActions.js');
exports.downloadLog = require('./downloadLog.js');
exports.fxCommands = require('./fxCommands.js');
exports.fxControls = require('./fxControls.js');
exports.getActionLog = require('./getActionLog.js');
exports.getAddExtension = require('./getAddExtensio... |
/*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... |
/**
* Generated by Apache Royale Compiler from org\xfltools\core\ApplicationFactory.as
* org.xfltools.core.ApplicationFactory
*
* @fileoverview
*
* @suppress {missingRequire|checkTypes|accessControls}
*/
goog.provide('org.xfltools.core.ApplicationFactory');
/* Royale Dependency List: flash.display.Stage,org.apa... |
import * as yup from 'yup'
export default yup.object().shape({
title: yup.string().required('Campo obrigatório'),
url: yup.string().url('URL dever ser válida').required('Campo obrigatório'),
imageUrl: yup
.string()
.url('URL dever ser válida')
.required('Campo obrigatório'),
price: yup.number().req... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
/*
* This component is built using `gatsby-image` to automatically serve optimized
* images with lazy loading and reduced file sizes. The image is loaded using a
* `useStaticQuery`, which allows us to load the ... |
const usersMap = {};
function* createIdGen() {
let i = 1;
while(true) {
yield i++;
}
}
const idGenerator = createIdGen();
const getUsers = (query) => {
const users = Object.keys(usersMap).map(userId => usersMap[userId]);
if(!query) {
return users;
}
return users.filter(u... |
//>>built
define("dojorama/layers/nls/release-widgets_en-gb",{"dojorama/ui/release/mixin/nls/_ReleaseActionsMixin":{indexLabel:"Overview",createLabel:"Create New Release"},"dojorama/ui/release/mixin/nls/_ReleaseBreadcrumbsMixin":{homeLabel:"Home",releaseIndexLabel:"Releases",releaseCreateLabel:"Create New Release"},"do... |
import { gql } from 'apollo-server-express'
const UsersDefs = gql`
extend type Query{
user:User!
}
input UserSignUp{
name:String!
emailId:String!
password:String!
}
input UserLogin{
emailId:String!
password:String!
}
extend type Mutation{
signUp(input:UserSignUp!):User
login(input:U... |
import { useState } from 'react';
import Box from './box';
import Prop from './prop';
function formatStepAmount(amount) {
return amount >= 1000000
? `${amount / 1000000}M`
: `${amount / 1000}k`
}
const CoinButtons = ({ minted, increase, decrease, steps, mintable, redeemable }) => {
const [selectedStep, s... |
/* eslint-disable no-console */
'use strict'
var Benchmark = require('benchmark')
var moment = require('moment')
var dateFormat = require('dateformat')
var format = require('date-format')
var fecha = require('fecha')
var speedDate = require('speed-date')
const dateFnsFormat = require('date-fns-tz').format
var DATE_FO... |
/*:
-------------------------------------------------------------------------
@title HMS: Choice Display Mode
@author Hime --> HimeWorks (http://himeworks.com)
@date Oct 24, 2016
@version 1.3
@filename HIME_HMSChoiceDisplayMode.js
@url http://himeworks.com/2016/04/hms-choice-display-mode/
If you enjoy my work, conside... |
module.exports = {
komut: "jailkur",
async run(Client, msg, args) {
const starlix = require("../models/starlix")
if(!msg.guild.members.cache.get(msg.author.id).permissions.has("ADMINISTRATOR")) return msg.channel.send("Bu İşlemi Yapabilmek İçin `ADMINISTRATOR` Yetkisine Sahip Olmalısınız.")
... |
import Overlayer from './overlay';
/**
* initCanvasOverlayer based on mapboxgl-canvas
*/
export class CanvasOverlayer extends Overlayer {
constructor(opts) {
let _opts = opts || {};
super(_opts);
this.canvas = this._init();
this.redraw = _opts.render ? _opts.render : _redraw.bind(... |
var talk = function(){
console.log(this.sound);
}
// An object called bormir which makes a sound
var bormir = {
sound: "mur mur mur mur",
}
// If executed without bind, the talk function's "this" keyword will refer to
// the global object (NodeJS environment) or window object (browser)
// even if it is assigned t... |
/*
* FooTable v3 - FooTable is a jQuery plugin that aims to make HTML tables on smaller devices look awesome.
* @version 3.1.6
* @link http://fooplugins.com
* @copyright Steven Usher & Brad Vincent 2015
* @license Released under the GPLv3 license.
*/
(function($, F){
// add in console we use in case it's missing
wind... |
let list = []
// Helpers
function esPar(numerito) {
return numerito % 2 === 0;
}
function calcularMediaAritmetica(lista) {
const sumaLista = lista.reduce(
function (valorAcumulado = 0, nuevoElemento) {
return valorAcumulado + nuevoElemento;
}
);
const promedioLista = sumaLi... |
// This module will be executed before all other tests are executed,
// so import all necessary modules which should be included for webpack compiling.
import 'babel-polyfill';
import axios from 'axios';
import httpAdapter from 'axios/lib/adapters/http';
import './jsdom-setup';
if (process.env.NODE_ENV === 'test') {
... |
import { useState, useEffect } from 'react'
import { getSession } from 'next-auth/client'
import { useRouter } from 'next/router'
import {
Button,
ButtonGroup,
Flex,
Heading,
Icon,
IconButton,
Skeleton,
Tag,
Tooltip,
} from '@chakra-ui/react'
import { LockIcon, UnlockIcon } from '@chakra-ui/icons'
imp... |
(window.webpackJsonp = window.webpackJsonp || []).push([
[23],
{
'+ByK': function (e, t, n) {
e.exports = {
itemWrap: 'itemWrap-3qF9ynvx',
item: 'item-112BZuXZ',
icon: 'icon-2y6cSg4c',
selected: 'selected-3tUrY97Z',
label: 'label-1uw3rZaL',
};
},
'1Kfe... |
import layout from '@/layout';
export default {
path: '/article',
component: layout,
redirect: '/article/ranking',
name: 'articleRanking',
meta: {
title: 'article',
icon: 'personnel'
},
children: [
{
path: '/article/ranking',
component: () => import('@/views/article-ranking/index'... |
export { default } from './es/icons/DiffOutlined'; |
'use strict';
/**
* Module dependencies.
*/
var express = require('express'),
mongoStore = require('connect-mongo')(express),
flash = require('connect-flash'),
helpers = require('view-helpers'),
config = require('./config');
module.exports = function(app, passport, db) {
app.set('showStackError'... |
/*
Copyright (c) 2018-2019 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
/* THIS FILE IS AUTO-GENERATED. DO NOT MODIFY. */
/* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
export d... |
/*Title: Fetch API
Description: Fetch API - JavaScript API for making HTTP requests
Author: Md. Samiur Rahman (Mukul)
Website: http://www.SamiurRahmanMukul.epizy.com
Github: https://www.github.com/SamiurRahmanMukul
Email: example2022@gmail.com [FAKE EMAIL]
Date: 06/12/2021 */
/* // ? Fetch API - Fetching ... |
// Generated by CoffeeScript 1.9.0
var date, mood;
if (singing) {
mood = greatlyImproved;
}
if (happy && knowsIt) {
clapsHands();
chaChaCha();
} else {
showIt();
}
date = friday ? sue : jill; |
define(['./baseSortedIndexBy', '../identity'], function(baseSortedIndexBy, identity) {
/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295,
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
/**
* The base implementation of `_.sortedIndex` and `_.sorte... |
var $ = require("jquery"),
translator = require("animation/translator"),
styleUtils = require("core/utils/style"),
transformStyle = styleUtils.styleProp("transform");
QUnit.module("translator", {
beforeEach: function() {
this.$container = $("<div>").css({ position: 'relative', height: '100px' }... |
class QueueNode {
constructor(val) {
this.val = val;
this.next = null;
}
}
class Queue {
constructor() {
this.first = null;
this.last = null;
}
push(val) {
if(this.last)
this.last.next = new QueueNode(val);
else {
this.... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var dir_4b1d0a538485b83e39cd718a81c6251b =
[
[ "Polling.cs", "_polling_8cs.html", [
[ "Polling", "class_socket_1_1_quobject_1_1_engine_io_client_dot_net_1_1_client_1_1_transports_1_1_polling.html", "class_socket_1_1_quobject_1_1_engine_io_client_dot_net_1_1_client_1_1_transports_1_1_polling" ],
[ "SendE... |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to
* load core scripts and their dependencies from _source.
*/
if ( typeof CKEDITOR == 'u... |
"use strict"
exports.__esModule = true;
exports.UsersCogIconConfig = {
name: 'UsersCogIcon',
height: 512,
width: 640,
svgPath: 'M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-... |
'use strict';
/* global contacts, MockSearchHtml, Normalizer, MockSearchSource */
requireApp('communications/contacts/test/unit/mock_search.html.js');
requireApp('communications/contacts/test/unit/mock_search_source.js');
require('/shared/js/text_normalizer.js');
require('/shared/js/contacts/utilities/event_listeners.... |
import React from "react";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faMale, faFemale } from '@fortawesome/free-solid-svg-icons'
import './style.css';
export default function Gender(gender) {
let isMale = false;
if (gender.gender === "male") {
isMale = true;
}
... |
const sass = require('sass');
const fs = require('fs-extra');
const path = require('path');
module.exports = (scssPath, cssPath) => {
//If cssPath directory doesn't exist...
if(!fs.existsSync(path.dirname(cssPath))) {
//Encapsulate rendered css from scssPath into result variable
const result = ... |
'use strict';
const SERVER_HOST = "localhost";
const SERVER_PORT = 8080;
const SERVER_URI = `http://${SERVER_HOST}:${SERVER_PORT}/`;
const ES_HOST = "localhost";
const ES_PORT = 9200;
const ES_URI = `http://${ES_HOST}:${ES_PORT}`;
const API_URL_START = "https://api.themoviedb.org";
const API_KEY = '0c9b2502c13f4dcc22... |
const chalk = require('chalk');
module.exports = (client, con) => {
console.log(chalk.cyan(client.ascii.line1));
console.log(chalk.cyan(client.ascii.line2));
console.log(chalk.cyan(client.ascii.line3));
console.log(chalk.cyan(client.ascii.line4));
console.log(chalk.cyan(client.ascii.line5));
console.log(ch... |
window.bookSummaryJSON = "<p>The Earth is under siege - and no one knows about it because the invaders erase those whom they consume. A handful of men and women stand on the border between the mundane and the magical. They have a special spark of soul - not quite enough to be naturally gifted in spellcraft but greater ... |
// Copyright 2021 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 agreed to in ... |
load("188875624e386d01d46f59a2dbf5d1c9.js");
/**
File Name: expression-007.js
Corresponds To: 11.2.2-2-n.js
ECMA Section: 11.2.2. The new operator
Description:
Author: christine@netscape.com
Date: 12 november 1997
*/
var SECTION = "expression-00... |
//>>built
define("dojox/mobile/app/List",["dojo","dijit","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(c,l,k){c.provide("dojox.mobile.app.List");c.experimental("dojox.mobile.app.List");c.require("dojo.string");c.require("dijit._WidgetBase");(function(){var g={};c.declare("dojox.mobile.app.List",l._Widg... |
export class DescriptionController {
constructor(Knekt) {
this.knekt = Knekt;
}
plugins(_, res) {
res({success: true, err_code: null, plugins: this.knekt.plugins});
}
} |
let path = require('path');
let fs = require('fs');
module.exports = {
'init': function(browser) {
browser
.url('file://' + path.join(__dirname, 'index.html'))
.waitForElementVisible('body', 1000)
.pause(20)
.end();
}
}; |
import { AppLoading } from 'expo';
import { Asset } from 'expo-asset';
import * as Font from 'expo-font';
import React, { useState } from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import AppNavigator from './navigation/AppNavigator';
... |
import mainImage from './assets/jay-wennington-N_Y88TWmGwA-unsplash.jpg';
import tabFactory from './tab';
const restaurantModule = (container) => {
const obj = {
title: 'Restaurant',
image: mainImage,
content: [
{
title: 'Heavenly food',
body: 'I made a reservation in advance for my... |
import React, { useEffect, useRef, useState } from 'react'
import Reserver, {
Bar,
useReserver,
reserverReducer,
createBar,
getPosition,
resizeBars,
finishEditingBars,
Peg,
Tag,
evaluatePosition
} from 'react-reserver'
import moment from 'moment'
import Modali, { useModali } from 'modali'
import {
... |
CKEDITOR.plugins.setLang("div","bn",{IdInputLabel:"Id",advisoryTitleInputLabel:"Advisory Title",cssClassInputLabel:"Stylesheet Classes",edit:"Edit Div",inlineStyleInputLabel:"Inline Style",langDirLTRLabel:"Left to Right (LTR)",langDirLabel:"Languages Direction",langDirRTLLabel:"Right to Left (RTL)",languageCodeInputLa... |
/**
* Test dependencies.
*/
var start = require('./common')
, should = require('should')
, mongoose = start.mongoose
, random = require('../lib/utils').random
, Query = require('../lib/query')
, Schema = mongoose.Schema
, SchemaType = mongoose.SchemaType
, CastError = SchemaType.CastError
, Validator... |
// Depends on jsbn.js and rng.js
// Version 1.1: support utf-8 encoding in pkcs1pad2
// convert a (hex) string to a bignum object
function parseBigInt(str,r) {
return new BigInteger(str,r);
}
function linebrk(s,n) {
var ret = "";
var i = 0;
while(i + n < s.length) {
ret += s.substring(i,i+n) + "\n";
... |
'use strict';
const isPng = require('is-png');
const pngout = require('pngout-bin');
const execa = require('execa');
module.exports = options => async buf => {
options = {
strategy: 0,
...options
};
if (!Buffer.isBuffer(buf)) {
return Promise.reject(new TypeError(`Expected a \`Buffer\`, got \`${typeof buf}\`... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
// Copyright 2013 The Closure Library Authors. All Rights Reserved.
// Use of this source code is governed by the Apache License, Version 2.0.
////////////////////////// NOTE ABOUT EDITING THIS FILE ///////////////////////
// //
// Any edits to ... |
/**
* Auto-generated action file for "PayRun.IO" API.
*
* Generated at: 2019-05-07T14:43:40.645Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / payrun-io-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the... |
let updated = false;
updated = true;
if (!updated) throw new Error('Update was not tracked'); |
import React from 'react';
import Dropdown from './Dropdown';
import Select from 'react-select';
import WebFont from 'webfontloader';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCaretDown, faCaret } from '@fortawesome/free-solid-svg-icons'
const gradients = [
{value: 'blue', label:... |
/*!
=========================================================
* NextJS Material Kit - v1.0.0 based on Material Kit - v2.0.2 and Material Kit React - v1.8.0
=========================================================
* Product Page: https://www.creative-tim.com/product/nextjs-material-kit
* Copyright 2019 Creative ... |
import React from 'react'
import { Link } from 'react-router-dom'
import footer_logo from '../assets/footer_logo.png'
const Footer = () => (
<div className="services" style={{backgroundColor: '#0f0f0f', color: '#fff'}}>
<div className="container footer">
<div className="row">
... |
import React from 'react';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import cheerio from 'cheerio';
import {
nodeEqual,
containsChildrenSubArray,
propFromEvent,
withSetStateAllowed,
propsOfNode,
typeOfNode,
} from './Utils';
import {
debu... |
/* eslint-disable no-undef, prefer-arrow-callback, func-names, space-before-function-paren */
const assert = require('assert')
const debug = require('debug'); // eslint-disable-line
const http = require('http')
const ServiceDiscovery = require('../src')
const DEBUG = debug('service-discovery')
class EchoServer extend... |
const jwt = require('jsonwebtoken');
const config = require('config');
module.exports = (req, res, next) => {
// Get token from header
const token = req.header('x-auth-token');
// Check if not token
if (!token) {
return res.status(401).json({ msg: 'No token, authorization denied' });
}
// Verify toke... |
import React from 'react';
import Image from 'gatsby-image';
import {css} from '@emotion/core';
import useInstagram from '../hooks/use-instagram';
const Insta = () => {
const instaPhotos = useInstagram();
const {username} = instaPhotos[0];
return(
<>
<h2>Instagram posts from @staceoverf... |
$(document).ready(function(){
$('#forget-password-btn').on('click', function(e){
e.preventDefault();
$('#main-login-card').hide(400);
$('#forget-password-card').show(500);
});
$('#back-on-login').on('click', function(e){
e.preventDefault();
$('#forget-password-ca... |
import React, { Component } from 'react'
import styled from 'styled-components'
export default class ConversationPlaceholder extends Component {
render() {
return <PlaceholderMessage>CLICK A CONVERSATION</PlaceholderMessage>
}
}
const PlaceholderMessage = styled.div`
color: black;
` |
import React from "react";
import { Route, Redirect } from "react-router-dom";
// rest operator(looks a lot spread operator)
const PrivateRoute = ({ component: Component, ...rest }) => {
const token = window.localStorage.getItem("token");
console.log("Token: ", token);
return (
<Route
{...rest}
... |
/* eslint-disable no-unused-vars */
import FloatingIp from '../../models/openstack/FloatingIp'
const deleteFloatingIp = (req, res) => {
// TODO: account for tenancy
const { floatingIpId } = req.params
console.log('Attempting to delete floatingIpId: ', floatingIpId)
const floatingIp = FloatingIp.findById(floati... |
// Copyright 2018, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
define(['./apply', './baseToPath', './isKey', '../last', './parent'], function(apply, baseToPath, isKey, last, parent) {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
/**
* The base implementation of `_.invoke` without support for individual
* method arguments.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.