text stringlengths 2 1.04M |
|---|
import React, { Component } from "react";
import { BrowserRouter as Router } from "react-router-dom";
import "./App.scss";
import { withFirebase } from "./components/Firebase";
import Routes from "./components/Routes/Routes.js";
class App extends Component {
constructor(props) {
super(props);
this.state = ... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("jquery"));
else if(typeof define === 'function' && define.amd)
define(["jquery"], factory);
else if(typeof exports === 'object')
exports["dataTable"] = fac... |
/*
* we use semantic-release to automate the whole
* package release workflow and the options,
* mode and plugins can be set here
* more info: https://github.com/semantic-release/semantic-release
*/
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
[
'@semantic-release/release-note... |
const path = require('path');
const HtmlWebpackPlugin = require('@builder/pack/deps/html-webpack-plugin');
const CopyWebpackPlugin = require('@builder/pack/deps/copy-webpack-plugin');
const WebpackPluginImport = require('webpack-plugin-import');
const WebpackPluginQueryLoader = require('query-loader-webpack-plugin').de... |
angular.module('myApp.services').factory("Category", ['$resource', function($resource){
return $resource("/api/categories/:id", {id: "@id"}, {
"update": {method: "PUT"},
"page": {method: "GET", isArray: false}
});
}]) |
function generatePassword() {
var chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+?><:{}[]";
var len = 14; // Length of the Password (Can be changed later)
var output = "";
for(var i=0; i<len; i++) {
var ran = Math.floor(Math.random() * chars.length);
... |
[{"Owner":"Jbo","Date":"2014-02-27T04:46:36Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_Hi_co_ does anyone know the reason? _lt_/p_gt__lt_p_gt__lt_a class_eq__qt_ipsAttachLink ipsAttachLink_image_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/uploads/monthly_02_2014/post-7206-0-36258900-139347627... |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { typedDependencies } from './dependenciesTyped.generated.js';
import { createIsPrime } from '../../factoriesAny.js';
export var isPrimeDependencies = {
typedDependencies,
createIsPrime
}; |
/**
* @Author: Caven
* @Date: 2020-02-12 18:53:12
*/
// eslint-disable-next-line no-console
console.clear()
// eslint-disable-next-line no-console
console.log(
`%c \n DC-SDK \n %c \n 用数字描绘世界之美 %c \n
版本:${__VERSION__} - ${__TIME__}
Cesium版本:1.86.1
开发作者:${__AUTHOR__}
网站主页: ${__HOME_PAGE__}
gi... |
if(typeof translations == 'undefined'){
translations = {};
}
translations.fr_FR = {
// header
'Search': 'Rechercher',
// Nav menu
'Add': 'Ajouter',
'By URIs': 'Par URIs',
'By Torrents': 'Par Torrents',
'By Metalinks': 'Par Metaliens',
'Manage': 'Gérer',
'Pause All': 'Tout suspendre'... |
var check = 0;
$(document).ready(onDocumentReady);
function onDocumentReady() {
console.log("ready");
$(".photo").on("click", onToggleClick);
}
function onToggleClick() {
var img=this;
if (img.height > 400) {
$(img).animate({height: "300px"}, 1000);
console.log("Yus");
} else... |
const fs = require('fs');
const input = fs.readFileSync('./input.txt')
.toString("utf8")
.split('\n')
.map(value => parseInt(value, 10));
class Counter {
increased = 0;
decreased = 0;
last = undefined;
updateLast = (fn) => (value) => {
const res = fn(value);
this.last = va... |
#! /usr/bin/env node
console.log('This script populates some test books, authors, genres and bookinstances to your database. Specified database as argument - e.g.: populatedb mongodb+srv://cooluser:coolpassword@cluster0-mbdj7.mongodb.net/local_library?retryWrites=true');
// Get arguments passed on command line
var us... |
import React from 'react';
import {
View,
Text,
Image,
StyleSheet,
StatusBar,
TouchableOpacity,
ScrollView,
ImageBackground,
} from 'react-native';
import {useTheme} from '@react-navigation/native';
const HomeScreen = ({navigation}) => {
const theme = useTheme();
return (
<ScrollView style={s... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
length property contains the number of characters in the String value
represented by this String object
es5id: 15.5.5.1_A1
description: Create strings and check its ... |
module.exports = {
client: {
default: require.resolve('./ProtoMenuItem.cli.js')
}
}; |
import React, { Component } from "react";
import {
View,
Text,
StyleSheet,
Image,
ScrollView,
TouchableOpacity
} from "react-native";
import firebase from "react-native-firebase";
import { material, iOSColors, systemWeights } from "react-native-typography";
import moment from "moment";
import Icon from "rea... |
import React from 'react';
import { mount } from 'enzyme';
import {
Button,
DropdownKebab,
Filter,
FormControl,
Icon,
MenuItem,
Sort,
Toolbar
} from '../../index';
import { mockFilterExampleFields } from '../Filter/__mocks__/mockFilterExample';
import { mockSortFields } from '../Sort/__mocks__/mockSort... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){function z(a){return a&&a.domId&&a.getInputElement().$?a.getInputElement():a&&a.$?a:!1}function I(a){if(!a)throw"Languages-by-groups list are required for const... |
/*
|--------------------------------------------------------------------------
| Providers
|--------------------------------------------------------------------------
|
| Providers are building blocks for your Adonis app. Anytime you install
| a new Adonis specific package, chances are you will register the
| provider ... |
(function() {
"use strict"
console.log("reading js");
let body = document.querySelector('body');
let main = document.querySelector('main');
let toSecPage = document.getElementById("toSecPage");
let toThirdPage = document.getElementById("toThirdPage");
let sec1 = document.getElementById("pg1... |
<Button> </Button>; |
import request from '@/utils/request';
//get请求
export async function query(params) {
//接口地址和参数应该可以一目了然了吧!
return request(`/server/api/test222?${stringify(params)}`);
}
//post请求
// export async function query(params) {
// return request('/server/api/getUserName', {
// method: 'POST',
// body: param... |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
var _require = require('./RelayConcreteVariables'),
... |
const router = require("express").Router();
const round2Controller = require("../controller/user/round2");
const validater = require("../middleware/validation");
const schemas = require("../utils/schemas");
router.get("/slots", round2Controller.getSlots);
router.get("/fetchgdp", round2Controller.fetchGdp);
router.get(... |
this.EXPORTED_SYMBOLS=["CommonDialog"];const Ci=Components.interfaces;const Cr=Components.results;const Cc=Components.classes;const Cu=Components.utils;Cu.import("resource://gre/modules/Services.jsm");this.CommonDialog=function CommonDialog(args,ui){this.args=args;this.ui=ui;}
CommonDialog.prototype={args:null,ui:null,... |
// 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... |
/**
* @module ol/render/canvas/ExecutorGroup
*/
import BuilderType from './BuilderType.js';
import Executor from './Executor.js';
import {buffer, createEmpty, extendCoordinate} from '../../extent.js';
import {
compose as composeTransform,
create as createTransform,
} from '../../transform.js';
import {createCanv... |
'use strict'
module.exports = function(args, check) {
check(args, "knowledgeids", "Number", true);
check(args, "source", "Number", true);
} |
/*!
* Qoopido.js library v3.3.1, 2014-5-24
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,o,n,s,a){"use strict";var r=e.support;return r.addTest("/element/canvas",function(... |
// const CategoryList = () => import('./components/category/list.vue' /* webpackChunkName: "resource/js/components/category/list" */)
import Vue from "vue";
import Router from "vue-router";
import CategoryList from "./components/category/list.vue";
Vue.use(Router);
export const routes = [
{
name: 'category... |
describe("@esm-bundle/angular__upgrade", () => {
describe("@angular/upgrade", () => {
["es2015", "es2020"].forEach((ecma) => {
it(`can load the System.register ${ecma} bundle`, async () => {
const m = await System.import(
`/base/system/${ecma}/ivy/angular-upgrade.js`
);
exp... |
layui.use(['laydate', 'layer'], function () {
var laydate = layui.laydate;
var layer = layui.layer;
const reportSummaryR1_URL = "retailTradeDailyReportSummary/retrieve1Ex.bx"; //表格数据
const reportSummaryRN_URL = "retailTradeDailyReportSummary/retrieveNForChart.bx"; //月报表接口
const MonthlyReportSummary_URL = "reta... |
const addTask = task => ({
type: 'ADD_TASK',
task,
});
const addIdea = idea => ({
type: 'ADD_IDEA',
idea,
});
export { addTask, addIdea }; |
'use strict';
const gulp = tars.packages.gulp;
const cache = tars.packages.cache;
const changed = tars.packages.changed;
const plumber = tars.packages.plumber;
const notifier = tars.helpers.notifier;
const imagesPath = `${tars.config.fs.staticFolderName}/${tars.config.fs.imagesFolderName}`;
/**
* Raster SVG-files (... |
/**
* Created by Unetitebiere on 31/05/2015.
*/
app.views.result = Backbone.View.extend({
template: _.template($("#resultSearchTemplate").html()),
events: {
},
initialize: function() {
this.model = new app.collections.wines;
this.model.request = 'q= &sortField="score"&numberOfResults=... |
/* global afterEach, beforeEach, describe, expect, it, L, sinon */
describe('L.npmap.map', function() {
var element,
server;
afterEach(function() {
element = null;
server.restore();
});
beforeEach(function() {
element = document.createElement('div');
element.id = 'map';
server = sinon.... |
import StandardDice from './StandardDice.js';
/**
* Represents a percentile die.
*
* @extends StandardDice
*/
class PercentileDice extends StandardDice {
/**
* Create a `PercentileDice` instance.
*
* @param {number} [qty=1] The number of dice to roll (e.g. `4`)
* @param {Map<string, Modifier>|Modifie... |
'use strict';
/**
* @param {Egg.Application} app - egg application
*/
module.exports = app => {
const { router, controller } = app;
router.get('/', controller.home.index);
router.get('/clean', controller.home.clean);
}; |
export { default as Button } from './Button';
export { default as SEO } from './SEO'; |
// This file was automatically generated. Do not modify.
'use strict';
Blockly.Msg["ADD_COMMENT"] = "टिप्पणी थप्दे";
Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'"; // untranslated
Blockly.Msg["CHANGE_VALUE_TITLE"] = "मान ब... |
const Commando = require('discord.js-commando')
const { oneLine } = require('common-tags');
module.exports = class LoveCommand extends Commando.Command {
constructor(client) {
super(client, {
name: 'love',
group: 'fun',
memberName: 'love',
description: 'Find ... |
module.exports=['\u2500','\u2501','\u2502','\u2503','\u2504','\u2505','\u2506','\u2507','\u2508','\u2509','\u250A','\u250B','\u250C','\u250D','\u250E','\u250F','\u2510','\u2511','\u2512','\u2513','\u2514','\u2515','\u2516','\u2517','\u2518','\u2519','\u251A','\u251B','\u251C','\u251D','\u251E','\u251F','\u2520','\u2521... |
'use strict';
/**
* This widget displays who is currently transmitting on the radio.
* <p>
* <b>Note:</b> iRacing does not show yourself transmitting currently.
* <p>
* Example(s):
* <p><b>
* <sra-radio-transmitting></sra-radio-transmitting><br />
* </b>
* <img src="../widgets/RadioTransmitting/i... |
import React, { Component } from 'react';
import { Animated } from "react-animated-css";
import Pagination from './../shared/Pagination';
import AddCompany from './AddCompany';
import $ from 'jquery';
import EditCompany from './EditCompany';
import CompanyObjectView from './CompanyObjectView';
import Docs from '../docu... |
require('dotenv').config();
// Checks for required environment variables.
[
'MICROSOFT_APP_ID',
'MICROSOFT_APP_PASSWORD'
].forEach(name => {
if (!process.env[name]) {
throw new Error(`Environment variable ${ name } must be set.`);
}
});
const { createServer } = require('restify');
const createBot = requir... |
it('basic', function() {
expect(isNil(null)).to.be.true;
expect(isNil(void 0)).to.be.true;
expect(isNil(undefined)).to.be.true;
expect(isNil(false)).to.be.false;
expect(isNil(0)).to.be.false;
expect(isNil([])).to.be.false;
}); |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import cRq from 'network/cloudMusic'
export default {
replacePlayList(context, payload) {
return new Promise((resolve, reject) => {
// payload为新歌单
context.commit('replacePlayList', payload)
})
},
changeMusic(context, payload) {
console.log()
return new Promise((resolve, reject) => {
... |
import React, { useEffect } from 'react';
import { GlobalStyle } from '../theme/global';
import { ThemeProvider } from 'styled-components';
import { theme } from '../theme/theme';
import Footer from '../components/Footer/Footer';
import AllTextFormatter from '../utils/TextFormatter';
const SubpageTemplate = ({ childre... |
module.exports={A:{A:{"2":"L D H F A B jB"},B:{"2":"C E d K N I J BB"},C:{"2":"2 gB FB G L D H F A B C E d K N I J O P Q R S T U V W X Y Z a b aB ZB","132":"0 1 3 4 6 7 8 9 c e f g h i j k l m n o M q r s t u v w x y z AB JB CB DB GB HB"},D:{"2":"0 1 2 3 4 6 7 8 9 G L D H F A B C E d K N I J O P Q R S T U V W X Y Z a b... |
import React from 'react';
import { Provider } from 'react-redux';
import { mount } from 'enzyme';
import configureMockStore from 'redux-mock-store';
import NotificationContainer from './NotificationContainer';
const state = {
NotificationReducer: {
text: 'text',
show: false,
},
};
const store = configureM... |
module.exports = 'folder-b'; |
$(document).ready(function(){
var regresarTexto, placeHolder, celda;
var resetContenedor = $("#contenedorFotos").html();
$(document).on("click", ".editarTexto", function(){
fila = $(this).closest("td");
celda = fila.find("input").val();
regresarTexto = fila.html();
placeHol... |
const Event = require('../structures/Event');
const Guild = require('../database/schemas/Guild')
module.exports = class extends Event {
constructor(...args) {
super(...args, {
name: "messageCreate",
});
}
async run(message) {
if (!message || !message.member || message.m... |
/* istanbul instrument in package npmdoc_parse_json */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - init-before
(function () {
... |
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
row: {
flex: 1,
flexDirection: 'row',
alignItems: 'center',
padding: 15,
borderBottomWidth: 1,
borderBottomColor: '#cccccc',
backgroundColor: '#ffffff'
},
checkbox: {
width: 24,
height: 24,
margi... |
const util = require('util')
const multer = require('multer')
const config = require('./config')
const storage = multer.memoryStorage()
const uploadFile = multer({
storage: storage,
limits: { fileSize: config.ATTACHMENT_MAX_SIZE }
}).array('files')
const uploadMiddleware = util.promisify(uploadFile)
module.ex... |
import { connect } from "react-redux"
import QuestionsListUnanswered from '../components/QuestionsListUnanswered'
function mapStateToProps({ authedUser, questions }) {
return {
questions,
questionListFiltered: Object.keys(questions).filter(q => {
return (!questions[q].optionOne.votes.... |
"use strict";
const { Router } = require("express");
const router = Router();
const categoryCtrl = require("../controllers/category.controller");
const { validarJWT, hasRole } = require("../middlewares/jwt");
router.get("/", categoryCtrl.getCategories);
router.get("/:_id", categoryCtrl.getCategory);
router.post("/",... |
_ = require('underscore'); |
package( "com.sun.org.glassfish.gmbal" );
com.sun.org.glassfish.gmbal.ManagedObjectManagerFactory = (function() {
function ManagedObjectManagerFactory() {
}
// getMethod(java.lang.Class<?> cls, java.lang.String name, java.lang.Class<?>... types)
ManagedObjectManagerFactory.getMethod__Ljava_lang_Class2_Ljav... |
var passport = require('passport');
var BasicStrategy = require('passport-http').BasicStrategy;
//JDS: 2016-01-06 PASSPORT DOESN'T SUPPORT BASIC AUTH OVERRIDES, CODE BELOW TO MITIGATE, BASIC WWW-Authenticate forces a browser to attempt a HTTP authorization (a popup), this prevents that, DO NOT REMOVE - may need to be m... |
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const isProduction = EmberApp.env() === 'production';
const gradient = require('./tailwind/plugins/gradient');
module.exports = {
purge: {
enabled: isProduction,
content: [
'./app/index.html',
'./app/components/**/*.hbs',
'./app/... |
import router from './router'
import store from './store'
import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { getToken } from '@/utils/auth' // get token from cookie
NProgress.configure({ showSpinner: false }) // NProgre... |
module.exports = {
app: 'src/main/webapp/',
dist: 'target/www/',
test: 'src/test/javascript/',
scss: 'src/main/webapp/scss/',
sassSrc: 'src/main/webapp/scss/**/*.{scss,sass}',
sassVendor: 'src/main/webapp/scss/vendor.scss',
cssDir: 'src/main/webapp/content/css',
bower: 'src/main/webapp/b... |
const jwt = require('jsonwebtoken');
const config = require('config');
const secret = config.get("JWT.secret");
const expiresInSeconds = config.get("JWT.expiresInSeconds");
module.exports.getInfoJWT = (JWT) => jwt.verify(JWT, secret, {expiresIn: expiresInSeconds}).data;
module.exports.createToken = (login, password) ... |
import { Host, h } from "@stencil/core";
import { getIonMode } from '../../global/ionic-global';
import { findItemLabel } from '../../utils/helpers';
import { createColorClasses, hostContext } from '../../utils/theme';
/**
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
*/
expor... |
({
loadingState: "Yükleniyor...",
errorState: "Üzgünüz, bir hata oluştu"
}) |
var path = require('path');
var assert = require('assert');
var fs = require('fs-extra');
var curDir = fs.realpathSync('.');
describe('source maps', function() {
var server, child, results, ok = false;
before(function(done) {
this.timeout(0);
server = createTCPServer(13013);
child = spawnChildProces... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubscribeUserAgentClient = void 0;
var tslib_1 = require("tslib");
var subscription_dialog_1 = require("../dialogs/subscription-dialog");
var subscription_1 = require("../subscription");
var timers_1 = require("../timers");
var transac... |
import makeStyles from '@material-ui/core/styles/makeStyles';
import roundInputBaseStyles from './roundInputBase.styles';
const useRoundInputBaseStyles = makeStyles(roundInputBaseStyles, { name: "RoundInputBase" });
export { roundInputBaseStyles, useRoundInputBaseStyles };
export { default } from './roundInputBase.s... |
var VueTestUtils = (function (Vue,vueTemplateCompiler) {
'use strict';
Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
//
function throwError (msg) {
throw new Error(("[vue-test-utils]: " + msg))
}
function warn (msg) {
console.error(("[vue-test-utils]: " + msg));
}
var camelizeRE = /-(\w)/... |
import { Renderer } from '../src/Renderer.js';
import * as utils from '../src/utils.js';
import { config } from '../src/config.js';
import { registerBidder, getIabSubCategory } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO, ADPOD } from '../src/mediaTypes.js';
import { auctionManager } from '.... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
"use strict";
const Bacon = require("baconjs").Bacon;
const statsStore = require("./stores/statsStore");
const alertsStore = require("./stores/alertsStore");
const Alerts = require("./alerts/Alerts");
module.exports = {
init: function init(agentSocket, serverSocket, configuration) {
const stream = creat... |
// ************************************************
// Teugg Soccer Physics
// Rip-off of the once popular Soccer Physics game
// Horribly coded by : Kevin Le Teugg, 2020
// File : sketch.js
// Description : Constants declaration, variables initialization, setup, animation loop and mouse / keys events
// **************... |
export { default as DefaultPage } from './DefaultPage';
export { default as CounterPage } from './CounterPage';
export { default as RedditListPage } from './RedditListPage'; |
export const store1 = 'delayed_action_STORE_1'
export function changeStore1(payload) {
return (dispatch) => {
console.log('changeStore1');
setTimeout(() => {
dispatch({
type: store1,
payload: {
value: payload
}
});
}, 1000)
}
}
const initialState = {
va... |
import React from "react";
import ProductItem from "../ProductItem";
import "../Product.css";
function BNWSet() {
return (
<div>
<div className="p-cards__header__info">
<h1>Available Products</h1>
</div>
<div className="p-cards__container">
<div className="p-cards">
<d... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
import { bootstrap } from 'angular2/bootstrap';
import { NG_VALIDATORS } from 'angular2/common';
import { Provider } from 'angular2/core';
let MyApp = null;
let myValidator = null;
// #docregion ng_validators
bootstrap(MyApp, [new Provider(NG_VALIDATORS, { useValue: myValidator, multi: true })]);
// #enddocregion |
codebrowser.model.TagName = Backbone.RelationalModel.extend({
urlRoot: config.api.main.root + 'tagnames'
}); |
// 8kyu
// You and a friend have decided to play a game to drill your statistical intuitions. The game works like this:
// You have a bunch of red and blue marbles. To start the game you grab a handful of marbles of each color and put them into the bag, keeping track of how many of each color go in. You take turns rea... |
/* vim:set ts=2 sw=2 sts=2 expandtab */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const { messageManager } = require("chrome");
const { channel } = require(... |
import React from "react"
import { injectIntl, Link } from "gatsby-plugin-intl"
import Img from "gatsby-image"
import { Container, Row, Col } from "react-bootstrap"
import TimeAndAuthor from "../shared/timeAndAuthor"
import removeMd from "remove-markdown"
class ArticleSlideshowItem extends React.Component {
render()... |
import FeedingViz from './FeedingViz'
import HousingViz from './HousingViz'
import HealthViz from './HealthViz'
import BehaviourViz from './BehaviourViz'
// import React, { useRef, useLayoutEffect } from 'react';
import React from 'react';
const Vizcontent=({btnIndex})=>{
if(btnIndex==="1"){
return(
... |
/**
* @jest-environment node
*/
import bluster from './implementation';
function openDatabase(path) {
}
test('blustered-function-properties', () => {
const blusteredOpenDatabase = bluster(openDatabase);
expect(blusteredOpenDatabase.length).toBe(1);
expect(blusteredOpenDatabase.name).toBe('blustered openDatabase'... |
import React from 'react';
import { Link } from 'gatsby';
const Pokemon = ({ pageContext: { pokemon } }) => {
return (
<div style={{ width: 960, margin: "4rem auto" }}>
<h1>{pokemon.name}</h1>
<img src={pokemon.sprites.front_default} alt={pokemon.name} />
<h2>Abilities</... |
import React from "react"
import styles from "./about-css-modules.module.css"
import Container from "../components/container"
console.log(styles)
const User = props => (
<div className={styles.user}>
<img src={props.avatar} className={styles.avatar} alt="" />
<div className={styles.description}>
<h2 c... |
var searchData=
[
['is_5fwhitespace_1871',['IS_WHITESPACE',['../__speedups_8c.html#a8e0cab4dcc3ef592793ac045edcd6344',1,'_speedups.c']]]
]; |
// if (process.env.NODE_ENV === "production") {
// module.exports = require("./prod");
// } else {
// module.exports = require("./dev");
// } |
/* */
define( [
"./core",
"./core/init",
"./manipulation", // clone
"./traversing" // parent, contents
], function( jQuery ) {
"use strict";
jQuery.fn.extend( {
wrapAll: function( html ) {
var wrap;
if ( this[ 0 ] ) {
if ( jQuery.isFunction( html ) ) {
html = html.call( this[ 0 ] );
}
// The ... |
const models = require('../models/index')
exports = module.exports = function securityQuestion () {
return (req, res, next) => {
const email = req.query.email
models.SecurityAnswer.find({
include: [{
model: models.User,
where: { email: email }
}]
}).success(answer => {
i... |
import React from 'react'
import Layout from "../components/layout"
import SEO from "../components/seo"
const AboutPage = () => (
<Layout>
<SEO title="HOME" description="About page" lang="id" />
<h1>Our Services</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque tempore harum dolore... |
import * as cache from "../../helpers/recordsDB/configCache.js";
import { removeRecordUserType } from "../../helpers/recordsDB/removeRecordUserType.js";
export const handler = async (request, response) => {
const success = await removeRecordUserType(request.body.recordUserTypeKey);
cache.clearCache();
retur... |
export default function deepCopy (objectpassed) {
// arrays return "object" in js so any object or array will be looped to copy deeply.
// strings, numbers and booleans are deep copied naturally, while any objects within arrays or objects
// or objects within arrays are only copied shallowly.
if (objectpassed =... |
import React from 'react';
import { Link } from 'react-router-dom';
import { BookOutlined, MenuOutlined, SlackOutlined } from '@ant-design/icons';
import { Layout, Menu, Dropdown } from 'antd';
import * as PropTypes from 'prop-types';
import styled from 'styled-components';
import { useMediaQuery } from 'react-responsi... |
import { apiRequest } from '../utils/';
export default {
route: 'matches',
async getMatches(filters = {}) {
const result = await apiRequest(this.route, filters);
return result.matches;
},
async getMatch(id) {
const route = `${this.route}/${id}`;
return await apiRequest(route);
},
}; |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = false;
var argument3 = "!";
var argument4 = function callback(){callbackArguments.push(arguments)};
var argument5 = function callback(){callbackArguments.push(arguments)};
var argument6 = null;
var argume... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.