text stringlengths 2 1.04M |
|---|
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.env} object, which constains
* environment and browser information.
*/
if ( !CKEDITOR.env )
{
/**
* @namespace Environ... |
import React, {useRef, useState} from "react";
import {InputButton} from "../styles/Button";
import Input from "../styles/Input";
import {CardPadding} from "../styles/Card";
import {Flex} from "../styles/Grid";
import api from "../lib/apiGraphQL";
import {isValidRepoUrl} from "../lib/util";
import {repoStatusCode} from... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @emails react-core
*/
'use strict';
module.exports = {
siteMetadata: {
title: 'React: Library JavaScript untuk membangun antarmuka pengguna',
siteUrl: 'https://reactjs.org',
rssFeedTitle: 'React',
rssFeedDescription: 'Library JavaScript ... |
import React from 'react'
import { Component } from 'react'
import { Link } from "gatsby"
import '../css/header.css'
import Toggle from './Toggle'
class Header extends Component {
function () {
const intoMe = document.getElementById('addtlInfo');
intoMe.onclick("mE!");
}
render (){
return (
... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Gen Manager-Invol Mkt Svcs.", "CONTRIBUTION AMOUNT (F3L Bundled)": "39.42", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Liberty Mutual", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "222 Berkeley St", "CONTRIBUTOR MIDDLE NAME": "J", "DONOR CANDIDATE FEC... |
/**
* stores the hooks that where added by the plugins
*/
/**
* hook-functions that can be extended by the plugin
*/
export var HOOKS = {
createRxDatabase: [],
preCreateRxCollection: [],
createRxCollection: [],
/**
* functions that get the json-schema as input
* to do additionally checks/manipulatio... |
/**
* vue-good-table v2.16.0
* (c) 2018-present xaksis <shay@crayonbits.com>
* https://github.com/xaksis/vue-good-table
* Released under the MIT License.
*/
//# sourceMappingURL=vue-good-table.min.js.map |
const SCHEMA_HEADER = {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "model",
"description": "Generated Schema",
"type": "object",
"properties": { }
};
/**
* <p>Augmented.Utility.SchemaGenerator<br/>
*
* Genrate a schema from a set of data</p>
* @param {object} data a dataset to produce... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Renders this Game Object with the WebGL Renderer to the given Camera.
* The object will not render if any of i... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Card from '@material-ui/core/Card';
import reserves from "assets/img/reserves.jpeg"
import styles from "assets/jss/material-kit-react/views/HomeStyle/homeSoftware.js";
const ... |
$(document).ready(function() {
$('[data-toggle="offcanvas"]').on('click', function() {
$('.row-offcanvas').toggleClass('active')
});
// Bootstrap >> dropdown
$('.dropdown-toggle').dropdown();
}); |
var context;
var bufferLoader;
// default options
var stopOnChange = true;
var allowOverlap = false;
window.onload = init;
// Is used for loading in all the buffers which are then played!
var bList;
// Holds all active buffers. Is used so that we can stop them at all times
var activeBuffers = [];
// mp3 files and... |
import {expect} from "chai";
import {Map} from "immutable";
import configureStore from "redux-mock-store";
import thunk from "redux-thunk";
import userEmailChanged, {CRISP_USER_EMAIL_CHANGED} from "../../../../../../src/lib/actions/crisp/userEmailChanged";
describe("userEmailChanged", function () {
let mockStore;
... |
const fs = require('fs')
const path = require('path');
const {updateJsonSync} = require('./updateJson.js')
function dataExists() {
let data
let posts
//Create a json folder if one does not exist
if (!fs.existsSync('json')) {
fs.mkdirSync('json')
}
//Checks if all the json files inside... |
// flow-typed signature: 42da4377533d9a8d06edd609bb9b4f43
// flow-typed version: <<STUB>>/@bam.tech/react-native-make_v^3.0.0/flow_v0.113.0
/**
* This is an autogenerated libdef stub for:
*
* '@bam.tech/react-native-make'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encoura... |
// @flow
import React, { useState } from "react";
import {
SafeAreaView,
Text,
View,
Dimensions
} from "react-native";
import MiniMap from "../mini-map";
import { getClosestSite } from "../../libs/geo-helpers";
import ButtonBar from "../button-bar";
import Site from "../site";
type PropsType = {
on... |
;(function($, window, document, undefined) {
// Strict Mode
'use strict';
// Constants
var NAME = 'parallax';
var MAGIC_NUMBER = 30;
var DEFAULTS = {
relativeInput: false,
clipRelativeInput: false,
calibrationThreshold: 100,
calibrationDelay: 500,
supportDelay: 500,
calibrateX: fal... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('@angular/material/core'), require('@angular/cdk/layout'), require('@angular/animations'), require('@angula... |
// Copyright 2016 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.
import * as Common from '../../core/common/common.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as SDK from '../../core/sdk/sdk.js';
impor... |
angular.module("storageExplorer").service("evalService", function (devtools, $q, $rootScope) {
this.evalFunction = function (closure, parameters) {
var deferred = $q.defer();
var closureString = closure.toString();
if (parameters) {
Object.keys(parameters).forEach(function (key... |
window.NREUM || (NREUM = {})
NREUM.init = {
distributed_tracing: { enabled: true },
privacy: { cookies_enabled: true },
ajax: { deny_list: ['bam.nr-data.net'] },
}
window.NREUM || (NREUM = {}),
(__nr_require = (function (t, e, n) {
function r(n) {
if (!e[n]) {
var o =... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchView = exports.gulpWatch2 = exports.gulpWatch = void 0;
var tslib_1 = require("tslib");
var gulp = tslib_1.__importStar(require("gulp"));
var config_1 = require("./config");
var upath_1 = tslib_1.__importDefault(require("upath"));... |
YUI.add('charts', function(Y) {
/**
* The Charts widget provides an api for displaying data
* graphically.
*
* @module charts
* @main charts
*/
var DOCUMENT = Y.config.doc,
Y_Lang = Y.Lang,
LeftAxisLayout,
RightAxisLayout,
BottomAxisLayout,
TopAxisLayout,
_getClassName = Y.ClassNameManage... |
const mongoose = require('mongoose');
require('dotenv').config();
/**
* Start DB Connection
*/
const DB = `mongodb://${process.env.DB_HOST}:${process.env.DB_PORT}/${process.env.DB_NAME}`;
mongoose.connect(DB, { useMongoClient: true })
.then(() => console.log('MongoDB connection success'))
.catch(erro... |
'use strict';
const yargs = require('yargs');
const path = require('path');
const merge = require('lodash.merge');
const reduce = require('lodash.reduce');
const cliUtil = require('./util');
const fs = require('fs');
const set = require('lodash.set');
const get = require('lodash.get');
const findUp = require('find-up'... |
var searchData=
[
['far_5fptr_1003',['FAR_PTR',['../far__ptr_8h.html#aea7a313c991baf8e28c1d73cf6595209',1,'far_ptr.h']]],
['fixed_1004',['fixed',['../asm_2types_8h.html#ab61f8ff6a444351a91fc9a67c8e6145f',1,'types.h']]],
['font_5ft_1005',['font_t',['../font_8h.html#a0356deab046e522bc369dfd4cf108e5e',1,'font.h']]]
... |
class Form {
constructor() {
this.input = createInput("").attribute("placeholder", "Enter your name");
this.playButton = createButton("Play");
this.titleImg = createImg("./assets/title.png", "game title");
this.greeting = createElement("h2");
}
setElementsPosition() {
this.titleImg.position(1... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
// @flow
import React, {Component} from 'react'
import VirtualizedSelect from 'react-virtualized-select'
import {getEntityName} from '../util/gtfs'
import type {Entity, Style} from '../../types'
export type EntityOption = {
entity: Entity,
label: string,
value: string
}
type Props = {
clearable?: boolean,
... |
import graphqlFields from 'graphql-fields';
import { Op } from 'sequelize';
import GrahpQL from '../../classes/GraphQL';
import DateResolver from './Date';
import BuildingNumberResolver from './BuildingNumber';
/**
* Get options.
*
* @param {Object} args - Arguments.
* @param {Object} info - Info.
*
* @return... |
/**
* Created by 15061857 on 2017/4/24.
* new and sent a request by cookie
* if the cookie have no auth to get the user message,then return user a login page
*/
var http = require('http');
const userInfo = (hostname,path,cookie) => {
return new Promise((resolve,reject) =>{
console.log("fffff")
... |
import styled from 'styled-components'
import Dropzone from "react-dropzone";
export const File = styled(Dropzone)`
border: 2px dashed #ff3333;
width: 100%;
max-width: 660px;
font-size: 16px;
color: #777777;
text-align: center;
display: grid;
grid-template-columns: 100px 100px 100px;
grid-gap: 5px;
... |
/*
* TransactionsList.js - View
*
* Handles displaying transaction history list
*/
Ext.define('FW.view.TransactionsList', {
extend: 'Ext.dataview.List',
xtype: 'fw-transactionslist',
config: {
id: 'transactionsList',
cls: 'fw-panel fw-transactionslist',
bgCls: 'fw-background',... |
'use strict';
const {createTest} = require('@putout/test');
const removeEmpty = require('..');
const test = createTest(__dirname, {
'remove-empty': removeEmpty,
});
test('plugin-remove-empty: complex: report: block', (t) => {
t.report('not-function', 'Empty block statement');
t.end();
});
test('plugin-re... |
const DrawCard = require('../../drawcard.js');
class ArtisanAcademy extends DrawCard {
setupCardAbilities() {
this.action({
title: 'Make top card of conflict deck playable',
phase: 'conflict',
condition: () => this.controller.conflictDeck.size() > 0,
handler:... |
class Boundary {
constructor(x1, y1, x2, y2) {
this.a = createVector(x1, y1)
this.b = createVector(x2, y2)
}
show = () => {
stroke(210, 90, 90)
line(this.a.x, this.a.y, this.b.x, this.b.y)
}
} |
import Mock from 'mockjs'
import { doCustomTimes } from '@/libs/util'
const Random = Mock.Random
export const getMessageInit = () => {
let unreadList = []
doCustomTimes(3, () => {
unreadList.push(Mock.mock({
title: Random.cword(10, 15),
create_time: '@date',
msg_id: Random.increment(100)
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Dashboard.vue?vue&type=script&lang=js&":
/*!****************************************************... |
'use strict';
let externrefs = {};
let externsym = Symbol("externref");
function externref(s) {
if (! (s in externrefs)) externrefs[s] = {[externsym]: s};
return externrefs[s];
}
function is_externref(x) {
return (x !== null && externsym in x) ? 1 : 0;
}
function is_funcref(x) {
return typeof x === "function" ... |
const route = (app, request, cheerio) => {
app.get('/matchendirect', (req, res, next) => {
request.get('http://www.matchendirect.fr/pronostics/', (err, response, body) => {
if (err) {
next(Object.assign(err, { status: 502 }));
}
const $ = cheerio.load(body);
const games = $('#bloc... |
require('dotenv').config({ path: `.env.${process.env.NODE_ENV}` })
const axios = require('axios')
const path = require('path')
const _ = require('lodash')
exports.sourceNodes = async ({ actions, createNodeId, createContentDigest }) => {
const { createNode } = actions
const { data } = await axios.get(`https://she... |
import { useState, useEffect } from "react";
import Card from "@mui/material/Card";
import Grid from "@mui/material/Grid";
import SuiBox from "components/SuiBox";
import SuiTypography from "components/SuiTypography";
import SuiAvatar from "components/SuiAvatar";
import breakpoints from "assets/theme/base/breakpoints";
... |
import React from "react";
import PropTypes from "prop-types";
import { makeStyles } from "@material-ui/core/styles";
import { Grid } from "@material-ui/core";
import { Paper, Typography } from "@material-ui/core";
import Tabs from "@material-ui/core/Tabs";
import Tab from "@material-ui/core/Tab";
import Box from "@... |
const fs = require('fs')
const os = require('os')
const path = require('path')
const puppeteer = require('puppeteer')
const spawnSync = require('child_process').spawnSync
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000
if (process.env.KEEP_OPEN) {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000 * 1000
}
const DATA_DIR_PREFIX =... |
import { createI18n } from 'vue-i18n'
/**
* Load locale messages
*
* The loaded `JSON` locale messages is pre-compiled by `@intlify/vue-i18n-loader`, which is integrated into `vue-cli-plugin-i18n`.
* See: https://github.com/intlify/vue-i18n-loader#rocket-i18n-resource-pre-compilation
*/
function loadLocaleMessage... |
// @ts-check
'use strict'
/**
* @typedef {import('./index').Test} Test
* @typedef {(t: Test) => Promise<void> | void} TestCase
* @typedef {{
* bootstrap(): Promise<void>
* close(): Promise<void>
* }} Harness
*/
/**
* @template {Harness} T
* @typedef {{
* (
* name: string,
* cb?: (harnes... |
/* import assert from "assert";
describe("tests", function () {
it("package.json has correct name", async function () {
const { name } = await import("../package.json");
assert.strictEqual(name, "tests");
});
if (Meteor.isClient) {
it("client is not server", function () {
assert.strictEqual(Me... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
'use strict';
var browser = chrome || browser;
function handleInstalled(details) {
console.log(details.reason);
if (details.reason === 'install') {
browser.tabs.create({
url: browser.runtime.getURL('/options/options.html')
});
}
}
browser.runtime.onInstalled.addListener(handleInstalled); |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var messageSchema = new Schema({
name:String,
content: String
});
var Message = module.exports = mongoose.model('Message',messageSchema);
module.exports.createMessage = function(message,callback){
if(err){
callback(err,null);
}else{
call... |
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlLW9mLXRydXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZ2VudGxlbWFuLXN0YXRlLW1hbmFnZXIvc3JjL2xpYi9tb2RlbHMvc291cmNlLW9mLXRydXRoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI... |
/// <reference path="../chrome/Types.js" />
/// <reference path="../chrome/DebuggerWebAudioDomain.ts" />
/// <reference path="../utils/Types.ts" />
/// <reference path="Types.ts" />
import {beforeEach, describe, expect, it, jest} from '@jest/globals';
import dagre from 'dagre';
import {BehaviorSubject, Observable, pa... |
var searchData=
[
['pack',['pack',['../classOpenSim_1_1DataTable__.html#ad6017c57d7cf47fb8fe44a9a353872d6',1,'OpenSim::DataTable_::pack() const '],['../classOpenSim_1_1DataTable__.html#a67d63cc682a7ce0b9e0858a5320bd9f5',1,'OpenSim::DataTable_::pack(const std::vector< std::string > &suffixes) const ']]],
[... |
/*
________________________________________________
/ \
| _________________________________________ |
| | | |
| | MeCodes BlackList System By KINGMAN | |
... |
import React, { useState, useEffect } from "react";
import Layout from "./Layout";
import { getProducts } from "./apiCore";
import Card from "./Card";
import Search from "./Search";
const Home = () => {
const [productsBySell, setProductBySell] = useState([]);
const [productsByArrival, setProductByArrival] = useSta... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React from 'react';
import { Link, graphql } from 'gatsby';
export default ({ data }) => (
<React.Fragment>
<h2>{data.site.siteMetadata.title}</h2>
<div>{data.site.siteMetadata.description}</div>
<Link to="/">Back to home</Link>
</React.Fragment>
)
export const query = graphql `... |
import {commonParams} from './config'
import axios from 'axios'
const debug = process.env.NODE_ENV !== 'production'
export function getAlbum(options) {
const url = debug ? 'http://localhost:3000/getAlbum' : '/pc/getAlbum'
const data = Object.assign({}, commonParams, {
g_tk: 1194859437,
hostUin: 0,
log... |
/**
* event json model
*/
const mongoose= require('mongoose');
const EventSchema= mongoose.Schema;
const eventSchema=new EventSchema({
id:Number,
event_name_en:String,
event_name_de:String,
event_date: String,
access: String,
imageURL: String,
iconName: String,
createdby: String,
even... |
async function game_initalization(firebase_admin, playerInfo, gameLocation) {
let playerDocumentRef = await firebase_admin.firestore().collection("players").add(playerInfo);
const gameInfo = {
location: gameLocation,
players: [playerDocumentRef.id]
};
let gameDocumentRef = await firebase_admin.firesto... |
g_db.quests[16567]={id:16567,name:"Drifting Away",type:0,trigger_policy:2,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,start_on_enter:{world:132,east:358.22198486,bottom:-10.00000000,south:848... |
const Discord = require('discord.js');
module.exports = {
name: 'disconnect',
aliases: ['dc'],
description: 'Disconnects the bot from the voice channel',
execute(message, misc,musicUrls) {
if(!message.member.voice.channel){
message.channel.send("**Please join a voice channel first**");
}else if(!misc.botMem... |
import React from "react"
import './cv-download.css'
export default function CV() {
return (
<section className="CV">
<h2 className="text-center">tess</h2>
<button className="btn"><i className="fa fa-download"></i>Download CV</button>
</section>
)
} |
module.exports = async function ssg(folder = 'ssg') {
process.env.NULLSTACK_ENVIRONMENT_MODE = 'ssg';
const dir = process.cwd();
const application = require(`${dir}/.production/server`).default;
const { resolve } = require('path')
const { existsSync, mkdirSync, writeFileSync, copySync, rmSync } = require('fs... |
(function() {
switch (request.method) {
case 'GET':
response.head(200);
response.end(JSON.stringify(data.rules, null, ' '));
return;
case 'POST':
if (request.headers['content-type'].match(/^application\/json/)) {
var newRule = request.query;
if (newRule.isEnabled === false) {
ne... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
import React from 'react';
import { makeMove, endTurn } from '../../both/action-creators';
import Game from '../../both/game';
imp... |
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function (config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '../../',
// testing framework to use (jasmine/mocha/qunit/...)
frame... |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example96/index.html");
});
it('should init with 1234.56', function() {
expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');
expect(element(by.id(... |
const handleSignalEvents = require('./handleSignalEvents')
module.exports = {
handleSignalEvents
} |
import React from 'react';
import CreateSvgIcon from '../CreateSvgIcon'
export default CreateSvgIcon({
path: <React.Fragment><g><rect fill="none" height="24" width="24"/></g><g><path d="M19.8,18.4L14,10.67V6.5l1.35-1.69C15.61,4.48,15.38,4,14.96,4H9.04C8.62,4,8.39,4.48,8.65,4.81L10,6.5v4.17L4.2,18.4 C3.71,19.06,4.1... |
var apod = {
//Create a random date
randomDate: function(start, end) {
//Randomize the date https://gist.github.com/miguelmota/5b67e03845d840c949c4
let date = new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));
//Format the date
let d = date.getDate();
let m = date.getMonth() + ... |
import React from 'react';
import './styles.scss';
import {Link} from 'react-router-dom';
import logoBmindHolidaysWhite from "../../images/logo-bmind-holidays-white.png";
function Landing() {
return (
<div className="page__container">
<div className="main__container">
<div>
... |
/**
* Click ripple effect
*
* @param {[event]} e [description]
* @param {[Object]} argOpts [description]
* @return {[bollean]} [description]
*/
export default function(e, argOpts) {
var opts = Object.assign({
ele: e.target, // Corrugated element
type: 'hit', // Hit click position sprea... |
//# sourceMappingURL=app.f4785bb8.js.map |
import React from 'react';
import { shallow } from 'enzyme';
import { stub } from 'sinon';
import DemoVideo from 'components/headers/slim-header/slim-header-content/demo-video';
import RichTextEditable from 'components/inline-editable/editable-section/rich-text-editable';
describe('DemoVideo component', function () ... |
function apiDirectoryEntryNew(directory_id) {
var json_url = Routes.api_v1_directory_entries_path();
var directory_entry_label = $('#directory_form_label').val();
var directory_entry_description = $('#directory_form_description').val();
var directory_entry_directory = $('#directory_form_directory').val();
$.ajax(... |
// @flow
import React, { PureComponent } from 'react'
import { compose } from 'redux'
import { connect } from 'react-redux'
import { translate } from 'react-i18next'
import { createStructuredSelector } from 'reselect'
import SyncSkipUnderPriority from 'components/SyncSkipUnderPriority'
import Track from 'analytics/T... |
module.exports = `
SELECT
*
FROM
tasks
WHERE
title like '%' || coalesce(?, '') || '%'
` |
'use strict';
module.exports = {
read(data) {
return data;
},
write(data) {
// escape single quote characters using '"'"'
// They will be processed and converted back to ' via the shell so
// I don't have to explicitly un-escape them when reading. See https://stackoverflow.com/questions/1250079/... |
var debug = require('debug')('interface:driver'); // Interface
var nssocket = require('nssocket');
var Url = require('url');
var Cipher = require('../Cipher.js');
var pm2 = require('../../..');
var PushInteractor = require('../PushInteractor');
var Conf = require('... |
import React from 'react'
import { View, Text, TouchableOpacity, TextInput } from 'react-native'
import Icon from "react-native-vector-icons/FontAwesome"
import { connected } from 'redux-container'
import { loginRequired } from '../../common/hoc'
import { saveTopic } from '../action'
import preferredThemer from '../../... |
(function ($) {
"use strict";
const optionsDefaults = {
/* action='download' options */
filename: "table.csv",
/* action='output' options */
appendTo: "body",
/* general options */
separator: ",",
newline: "\n",
quoteFields: true,
trimCon... |
const express = require('express');
const validate = require('express-validation');
const cutiController = require('../../controllers/cutiController');
const { authorize, ADMIN, LOGGED_USER } = require('../../../middleware/auth');
const router = express.Router();
const {
listUsers,
createUser,
replaceUser,
upda... |
import { gql } from 'apollo-server'
// ! Make plural where multiple mutations are contained
const mutationDef = gql`
extend type Mutation {
createSeekerReview (
input: SeekerReviewInput
): SeekerReview
updateSeekerReview (
input: SeekerReviewUpdateInput
): SeekerReview
... |
const jwt = require('jsonwebtoken');
const User = require('../../database/models/user');
module.exports.verifyUser = async (req) => {
try {
req.email = null;
req.loggedInUserId = null;
const bearerHeader = req.headers.authorization;
if (bearerHeader) {
const token = bearerHeader.split(' ')[1];
... |
var assert = require('assert'),
// cradle = require('cradle'),
Model = require('../lib/index'),
db = require('./spec_helper').db,
BlogPost, Comment;
describe("Saving multiple embedded docs", function () {
before(function (done) {
Comment = Model.define("Comment", {
name: String,
... |
import React from "react"
import { graphql, Link } from "gatsby"
import Layout from "../components/Layout"
import SEO from "../components/SEO"
import { rhythm } from "../utils/typography"
import { css } from "@emotion/core"
import Utterances from "../components/Utterances"
export default function BlogPost({ data, page... |
const dirs = {
src: './source/',
dest: './build/'
};
export const paths = {
source: {
root: dirs.src,
styles: dirs.src + 'sass/',
scripts: dirs.src + 'js/',
fonts: dirs.src + 'fonts/',
images: {
all: dirs.src + 'img/',
content: dirs.src + 'img/content/',
icons: dirs.src + 'i... |
exports.catchAsync = fn => {
return (req, res, next) => {
fn(req, res, next).catch(next);
};
}; |
beforeEach(function() {
browser.url("/Hidden-Elements/index.html");
})
describe('Test whether hidden elements are visible', function() {
it('Button display is set to non display therefore should return false', function(done) {
var isVisible = browser.isVisible('#not-displayed');
console.l... |
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _inherits from "@babe... |
// Source: https://en.wikipedia.org/wiki/Gift_wrapping_algorithm#Pseudocode
class GiftWrapping {
constructor(n = 20) {
this.points = [];
this.path = [];
for (let i = 0; i < n; i++) {
let x = random(offset, W - offset);
let y = random(offset, H - offset);
this.points.push(createVector(x... |
module.exports={A:{A:{"2":"O F H E A B mB"},B:{"1":"K L KB P M R S T U ZB","2":"C N D I J"},C:{"1":"0 1 2 3 4 5 6 7 8 9 z AB BB CB DB EB FB QB HB IB JB Y LB MB NB OB GB X W WB RB SB TB UB VB KB P M PB R S T","2":"fB cB G Z O F H E A B C N D I J K L a b c d e f g h i j lB tB","132":"k l m n o p q r s t u v w x y"},D:{"1... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
... |
import {getSizeReadable} from '../shared/generic.js';
import {getUnixFormat} from '../shared/time.js';
export {MyAdminMails as default};
let MyAdminMails = {
name:'my-admin-mails',
template:`<div class="admin-mails contentBox grow">
<div class="top">
<div class="area">
<img class="icon" src="images/mai... |
import React, { Component } from "react";
//import ReactDOM from "react-dom";
import { ResponsiveLine } from "@nivo/line";
import { quantile, mean } from "d3-array";
import { area, curveMonotoneX } from "d3-shape";
import moment from "moment";
import numeral from "numeral";
import {
red,
volcano,
orange,
yellow... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
const calculateItemsHash = require('../../../lib/stPacket/calculateItemsHash');
describe('calculateItemsHash', () => {
it('should return null if contracts and documents are empty', () => {
const result = calculateItemsHash({
contracts: [],
documents: [],
});
expect(result).to.be.null();
})... |
import { useState } from "react"
import { Switch } from "@headlessui/react"
export default function Example() {
const [enabled, setEnabled] = useState(false)
return (
<div className="py-16">
<Switch
checked={enabled}
onChange={setEnabled}
className={`${enabled ? "bg-teal-900" : "... |
/* Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. */
'use strict';
/* jshint quotmark: double */
window.SwaggerTranslator.learn({
"Warning: Deprecated":"Warning: Deprecated",
"Implementation Notes":"Implementation Notes",
"Response Class":"Response Class",
"Status":"Status",
"P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.