text stringlengths 2 1.04M |
|---|
'use strict';
/**@type {{[k: string]: TemplateData}} */
let BattlePokedex = {
bulbasaur: {
num: 1,
species: "Bulbasaur",
types: ["Grass", "Poison"],
genderRatio: {M: 0.875, F: 0.125},
baseStats: {hp: 45, atk: 49, def: 49, spa: 65, spd: 65, spe: 45},
abilities: {0: "Overgrow", H: "Chlorophyll"},
heightm:... |
// Last value cache
// Uses XPUB subscription messages to re-send data
var zmq = require('zeromq');
var frontEnd = zmq.socket('sub');
var backend = zmq.socket('xpub');
var cache = {};
frontEnd.connect('tcp://127.0.0.1:5557');
frontEnd.subscribe('');
backend.bindSync('tcp://*:5558');
frontEnd.on('message', functio... |
/*
This module looks through all lines of the code and checks for import and export statements.
Each of these statements are then converted to CommonJS require and export calls.
It does the trick for now.
Issues:
- No support for live bindings. Requires checking for various re-assignments of ex... |
var setEqualHeights = function() {
// set all the main element to same height
$('#sidebar-left, #sidebar-right, #main').equalHeights();
};
$(document).ready( function() {
setEqualHeights();
$(window).resize( function() {
setEqualHeights();
});
$('#sidebar-left-toggle').click( function() {
if ($(this).has... |
/**
* ----------------------------------------------------------------------------------------------------
* List Sip Auth Calls Ip Access Control List Mapping [Run]
*
* @description - Retrieve a list of ip access control list mappings belonging to the domain used in the request
*
* @author Buildable Technolog... |
var HtmlWebpackPlugin = require('html-webpack-plugin');
var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: __dirname + '/app/index.html',
filename: 'index.html',
inject: 'body'
});
module.exports = {
entry: [
'./app/index.js'
],
output: {
path: __dirname + '/dist',
filename: "index... |
import PageObject from '<%= pageObjectsRoot %>';
let {
text
} = PageObject;
export default {
title: text('h1')
}; |
/**
* Created by yqdong on 2017/11/24.
* qq: 1013501639
* @author yqdong
*
*/
import tree from './tree.vue'
const components = [
tree
]
components.forEach(component => {
component.install = function (Vue) {
Vue.component(component.name, component)
Vue.component(component.name.replace(/c|C/, 'zg'), com... |
graph(f, from=-100, to=100, step=0.1) {
let array = {}
for (var i = new BigNumber(from); i.lessThanOrEqualTo(new BigNumber(to)); i = i.plus(new BigNumber(step))) {
array[i.toString()] = f.core(i).toFixed(15)
}
return array
} |
// /**
// * Implement Gatsby's Browser APIs in this file.
// *
// * See: https://www.gatsbyjs.org/docs/browser-apis/
// */
import Amplify from 'aws-amplify';
import Auth from '@aws-amplify/auth';
import { setUser } from './src/utils/auth';
import config from './src/aws-exports';
Amplify.configure(config);
export... |
import React from 'react';
import Footer from '../components/Footer';
import Image from 'next/image';
import Head from "next/head"
function Card() {
return (
<section>
<Head>
<title>Css Cards | Funcss Framework</title>
<meta name='description' content='
Create... |
export default Ember.HTMLBars.template({"id":"+BR6iOiv","block":"{\"symbols\":[\"&default\"],\"statements\":[[6,\"div\"],[9,\"class\",\"md-container\"],[7],[0,\"\\n \"],[6,\"div\"],[9,\"class\",\"md-icon\"],[7],[8],[0,\"\\n\"],[8],[0,\"\\n\"],[4,\"if\",[[22,1]],null,{\"statements\":[[0,\" \"],[6,\"div\"],[9,\"class\"... |
import { useLayoutEffect, useReducer, useMemo } from "react";
import createMediaListener from "./createMediaListener";
let canUseDOM = typeof window !== "undefined";
function reducer(state, action) {
if (action.state) {
return {
...state,
...action.state
};
}
return state;
}
export function... |
define(['./generated-dep3'], function (dep1) { 'use strict';
var main1 = dep1.x + dep1.y;
return main1;
}); |
'use strict';
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/*
* JavaScript Load Image
* https://github.com/blueimp/JavaScript-Load-Image
*
* Copyright 2011,... |
import CoreUtils from '../modules/CoreUtils'
import Bar from './Bar'
import Graphics from '../modules/Graphics'
import Utils from '../utils/Utils'
/**
* ApexCharts BarStacked Class responsible for drawing both Stacked Columns and Bars.
*
* @module BarStacked
* The whole calculation for stacked bar/column is differ... |
/**
* Created by Andrey on 22.02.2015.
*/
angular.module('navigatorApp', ['ngRoute', 'ngCookies', 'mainMuseum', 'museumView', 'museumImagesView',
'mainEvent', 'eventView'])
.controller('navigatorCtrl', ['$scope', '$http', '$location', '$cookies', '$rootScope',
function ($scope, $http, $location, $... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ParseWebSocket = exports.ParseWebSocketServer = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = desc... |
import banner1 from '../img/amaroossa-banner-1.jpg';
const homeBannerData = [
{
id: 0,
img: banner1,
title: 'No weakened, it\'s weekend!',
content: 'Find something you weren\'t searching for'
}
];
export default homeBannerData; |
import UserModel from '../User';
test('It accepts all parameters and implements all methods', () => {
const raw = { _id: '1234', username: 'jon', email: 'jon@company.co', role: 'admin' };
const user = new UserModel(raw);
expect(user.getId()).toBe(raw._id);
expect(user.getUsername()).toBe(raw.username);... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'print', 'tt', {
toolbar: 'Бастыру'
} ); |
import colors from 'vuetify/es5/util/colors'
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: '%s - IREEN',
title: 'IREEN',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'desc... |
import Elem from './Elem';
/**
* An Elem wrapper only exposing root methods.
* Extended by other primivite components to expose an initial set of methods.
*/
class RootElem {
/**
* Creates a new RootElem instance
* @param {string|function} tagName Tag name. Eg. 'div', or Elem~node builder function. If a funct... |
import React from 'react';
import PropTypes from 'prop-types';
import Grid from '@material-ui/core/Grid';
const DataTableSearch = ({ handleSearchChange, search, searching }) => {
return (
<Grid item md={6} sm={12}>
{
searching &&
<div className="dataTables_filter">
<label>Buscar:... |
import { StyleSheet } from "react-native";
/**
* Custom AnimatedText that works around an issue with RN on iOS
* when animating the opacity of a Text component.
* Seems like the same issue as reported here:
* https://github.com/facebook/react-native/issues/12453
*/
export function splitTextStyles(style) {
const... |
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/strongly-recommended',
// '@vue/standard'//取消Eslint语法检查
],
rules: {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'generator-star-spacing': 'off',
'no-mixed... |
notesApp.factory("SessionService", function() {
return {
get: function(key) {
return sessionStorage.getItem(key);
},
set: function(key, val) {
return sessionStorage.setItem(key, val);
},
unset: function(key) {
return sessionStorage.removeIt... |
import produce from 'immer';
const INITIAL_STATE = {
items: [],
current: null,
errors: {},
isFetchingMeetups: false,
isSavingMeetup: false,
};
export default function MeetupsReducer(state = INITIAL_STATE, action) {
return produce(state, draft => {
switch (action.type) {
case '@meetups/LOAD_REQUE... |
import React from "react"
import SocialLinks from "../constants/socialLinks"
const Footer = () => {
return <footer className="footer">
<div>
<SocialLinks styleClass="footer-links"></SocialLinks>
<h4>copyright © {new Date().getFullYear()}
<span>Issa Abu Awada</span> All rights reserved
... |
import Vue from 'vue';
import merge from 'topaz-ui/src/utils/merge';
import PopupManager from 'topaz-ui/src/utils/popup/popup-manager';
import getScrollBarWidth from '../scrollbar-width';
import { getStyle, addClass, removeClass, hasClass } from '../dom';
let idSeed = 1;
let scrollBarWidth;
export default {
props:... |
let nextId = 1;
const todos = {};
function getTodos(callback) {
callback(Object.values(todos));
}
function getTodo(id, callback) {
callback(todos[id]);
}
function createTodo(todo, callback) {
todo.id = nextId++;
if (!todo.done) {
todo.done = false;
}
todos[todo.id] = todo;
callbac... |
'use strict'
import { configure } from '@storybook/react'
function loadStories() {
require('./../stories')
}
configure(loadStories, module) |
angular.module( 'App.profile', [
'ui.router',
'angularFileUpload',
'ngImgCrop'
])
.config(function config( $stateProvider ) {
$stateProvider.state( 'editProfile', {
url: '/profile/edit?webid',
views: {
"main": {
controller: 'EditProfileCtrl',
templateUrl: 'app/profile/edit.tpl.html... |
import { createStore } from 'redux'
import rootReducer from './reducers'
export default function configureStore (initialState) {
return createStore(
rootReducer,
initialState
)
} |
module.exports = "Handler" |
mycallback( {"CONTRIBUTOR OCCUPATION": "Private Equity", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "G2008", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Kachi Partners", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "PO Box 20650", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "... |
(function($) {
$(document).ready(function() {
var musicWrapper = $('#musicWrapper');
/**
* @NAME template,experienceShow: add the video and the vote buttons to screen (HTML)
*
*
*/
var template = '<div class="wrap-input100 input100-select">';
te... |
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
/... |
function ClientPlanset(){
var WidtchClient = $('.W').text();
var HeightClient = $('.H').text();
console.log("Planshet");
$('.setings').css('width',WidtchClient);
//$('.setings').css('height',HeightClient);
///////
$('.client').css('width',WidtchClient);
//$('.client').css('height',HeightClient);
/////
$('.sate').... |
/* eslint-env mocha */
/* global assert contract */
const fs = require('fs');
const config = JSON.parse(fs.readFileSync('./conf/config.json'));
const paramConfig = config.paramDefaults;
const utils = require('../utils.js');
contract('Registry', (accounts) => {
describe('Function: isWhitelisted', () => {
const ... |
import { INITIATIVE_ACTIONS } from '../constants';
import initialState from './initialState';
export default function initiativeListReducer(state = initialState.initiativeList, action){
let newState, index;
switch (action.type){
case INITIATIVE_ACTIONS.INSERT_BEFORE:
newState = [...state.filter( player => playe... |
// Angular-CLI build configuration
// This file lists all the node_modules files that will be used in a build
// Also see https://github.com/angular/angular-cli/wiki/3rd-party-libs
/* global require, module */
var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
module.exports = function(defaults) {
... |
import React, { useState, useEffect } from "react";
import axios from "axios";
import GenderChart from "./Charts/genderchart";
import AgeChart from "./Charts/agechart";
import NationalityChart from "./Charts/nationalitychart";
import AllStatesChart from "./Charts/allstates";
import TotalConfirmedChart from "./Charts/to... |
import { DaysOfWeek, today } from './date';
import { report } from './debug';
export const ScheduleType = {
blockingTime: 'blocking',
allowedTime: 'allowed',
};
export const newScheduleTimeRange = () => ({
time: {
start: '',
end: '',
},
type: ScheduleType.blockingTime,
});
export const defaultSched... |
/**
@Name: String.prototype.linkify
@Author: Paul Visco
@Version: 1.0 11/19/07
@Description: Converts all URLs in a text block into actual html links
@Param: String target The target to open the links in, defaults to blank
@Return: String The original text withe links converted to HTML
@Example:
var myString = 'Here ht... |
import _ from 'lodash'
export default function cloneNodes (nodes) {
return _.map(nodes, node => node.clone())
} |
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
//window.Vue = require('vue');
Vue.component('ag-block', require('./components/ProductBlock/ProductBlock').default);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page.... |
/**
* Copyright 2017 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Home.vue?vue&type=script&lang=js&":
/*!*********************************************************... |
var redis = require("redis");
var client = redis.createClient();
client.zadd("presidents", 1732, "George Washington");
client.zadd("presidents", 1809, "Abraham Lincoln");
client.zadd("presidents", 1858, "Theodore Roosevelt");
var luaScript = [
'local elements = redis.call("ZRANGE", KEYS[1], 0, 0)',
'redis.call(... |
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.nextStart = void 0;
var _indexJs = _interopRequireDefault(require("next/dist/compiled/arg/index.js"));
var _startServer = _interopRequireDefault(require("../server/lib/start-server"));
var _utils = require("../s... |
const AsyncStorage = require('@react-native-community/async-storage');
module.exports = AsyncStorage; |
import { checkAccess, Role } from '../../util/accessControl'
export const allUsers = async (root, args, context) => {
await checkAccess(context, { minimumRole: Role.ADMIN })
return await context.prisma.users()
}
export const userById = async (root, { id }, context) => {
await checkAccess(context, {
minimumR... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nativeClientKeys = void 0;
exports.nativeClientKeys = [
'agent',
'auth',
'createConnection',
'defaultPort',
'family',
'headers',
'host',
'hostname',
'insecureHTTPParser',
'localAddress',
'loo... |
import React from 'react';
import axios from 'axios';
import classNames from 'classnames';
import styled from 'styled-components';
import MXChipShaking from '../images/mx_chip_angled_shaking.gif';
import TriggerOverlay from './trigger-overlay';
import Accelerometer from './accelerometer';
import AtmosphericPressureGaug... |
module.exports = {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['**/*.ts', '!**/node_modules/**'],
coverageDirectory: './test/coverage',
coveragePathIgnorePatterns: ['/node_modules/'],
coverageReporters: ['text', 'lcov', 'json', 'clover'],
moduleFileExtensions: ['js', 'json', 'ts'],
ro... |
import User from "../../../dist/models/user";
import mongoose from "../../../dist/db/mongoose";
const conn = mongoose.connection;
const createUser = require("../../fixtures/createUser");
const createUser2 = require("../../fixtures/createUser2");
const path = require("path");
const createFile = require("../../fixtures/c... |
/*!
* Copyright (c) 2014 Neil Vallon (http://limn.io)
* Licensed under MIT (http://opensource.org/licenses/MIT)
*/ |
'use strict';
module.exports = app => {
// ajust middleware sort, ['session', 'singleSignOut', 'bodyParser']
let sessionIdx = app.config.coreMiddleware.findIndex(middleware => {
return middleware == 'session';
});
app.config.coreMiddleware.splice(sessionIdx, 1);
let bodyParserIdx = app.co... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import ApolloClient from "apollo-boost";
import { ApolloProvider } from "@apollo/react-hooks";
const client = new ApolloClient({
uri: "http://localhost:3000/g... |
// global constants
const clueHoldTime = 1000; //how long to hold each clue's light/sound in milliseconds
const cluePauseTime = 333; //how long to pause in between clues
const nextClueWaitTime = 1000; //how long to wait before starting playback of the clue sequence
//Global Variables
var pattern = [2, 1, 4, 3, 2, 2, 1... |
//@ts-check
class jestReporter {
constructor(globalConfig, options) {
this._globalConfig = globalConfig;
this._options = options;
}
onTestResult(test, testResult, aggregatedResult) {
for (const assertionResult of testResult.testResults) {
const result = {
... |
import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Typography, withStyles } from '@material-ui/core';
import TextArrowLink from './TextArrowLink';
const styles = theme => ({
root: {
flexGrow: 1,
display: 'flex',
padding: '3.125rem 1.875rem',
paddingBottom: '6.75rem',
f... |
(function() {
var Player = Backbone.Model.extend({
type: 'Player',
defaults: {
identifier: -1,
name: 'Unnamed Player',
cardsInHand: []
},
playCardFromHand: function(card, game) {
card.set('owner', game);
var cardsInHand = _.clone(this.get('cardsInHand'));
var inde... |
'use strict'
const co = require('co')
const cli = require('heroku-cli-util')
const pg = require('@heroku-cli/plugin-pg-v5')
function * run (context, heroku) {
const db = yield pg.fetcher(heroku).database(context.app, context.args.database)
const query = `
SELECT c.relname AS name,
pg_size_pretty(pg_table_size(... |
/**
* @author wangzhidong
* @modified DongYi 2018/06/27
*/
import {
FrontSide,
BackSide,
DoubleSide,
RGBAFormat,
NearestFilter,
PCFShadowMap,
RGBADepthPacking
} from "../../Core/Constants.js";
import {WebGLRenderTarget} from '../WebGLRenderTarget.js';
import {MeshDepthMaterial} from '../.... |
import { connect } from 'react-redux'
import { ConnectionType } from 'components/Onboarding/Steps'
import { setConnectionType, resetOnboarding } from 'reducers/onboarding'
import { stopLnd } from 'reducers/lnd'
const mapStateToProps = state => ({
lndConnect: state.onboarding.lndConnect,
connectionType: state.onboa... |
import * as sweet from 'express-sweet';
import ProfileModel from './ProfileModel';
import CommentModel from './CommentModel';
import BookModel from './BookModel';
/**
* User model.
*/
export default class extends sweet.database.Model {
/**
* The name of the table that the model accesses.
*/
static get tabl... |
function routes (server) {
// server.route(require('./get-all-ticket-change'))
// server.route(require('./post-ticket-change'))
return server
}
module.exports = routes |
module.exports = {
future: {},
darkMode: 'media',
purge: [
'./components/**/*.{html,js,ts,jsx,tsx}',
'./pages/**/*.{html,js,ts,jsx,tsx}',
],
theme: {
screens: {
lg: '800px',
xl: '1200px',
},
extend: {
screens: { print: { raw: 'print' } },
visibility: ['hover', 'grou... |
import React, { useState, useEffect, useRef } from "react";
import * as Yup from "yup";
import { Formik, FieldArray, Form, Field } from "formik";
import { toast } from "react-toastify";
import { FormControlLabel } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { green } from ... |
export default {
css() {
return `
/* generated from dna-version: 5.3.0 */
/* generated from dna-version: 5.3.0 */
/* Temporary skin variables that need to be moved into origins */
:root {
/* Icon Button*/
/* Button */
/* Shell */
/* haha remove this */
/* Custom selection color for placeholde... |
module.exports = function () {
this.World = require("../support/ZombieWorld.js").World;
this.Given("I have signed up", function(callback) {
this.generateUser(this.fixtures.users.Joe, callback);
});
this.When("I enter my credentials", function(callback) {
this.authenticateUser(this.fixtures.users.Joe, ... |
/* eslint no-param-reassign: 0 */
const defaultOption = {
useSaveFunction: true,
useRetrieveFunction: true,
onSave: value => JSON.stringify(value),
onRetrieve: value => JSON.parse(value),
};
const generateStorageObject = (windowStorage, options) => ({
set(key, value) {
windowStorage.setItem(
... |
// @flow
import {fromRau} from 'iotex-client-js/dist/account/utils';
import Component from 'inferno-component';
import Helmet from 'inferno-helmet';
import isBrowser from 'is-browser';
import window from 'global';
import {CommonMargin} from '../common/common-margin';
import {EmptyMessage, ErrorMessage, LoadingMessage}... |
import Octicon from '../components/Octicon.vue'
Octicon.register({"database":{"width":12,"height":16,"d":"M6 15c-3.31 0-6-.9-6-2v-2c0-.17.09-.34.21-.5.67.86 3 1.5 5.79 1.5s5.12-.64 5.79-1.5c.13.16.21.33.21.5v2c0 1.1-2.69 2-6 2zm0-4c-3.31 0-6-.9-6-2V7c0-.11.04-.21.09-.31.03-.06.07-.13.12-.19C.88 7.36 3.21 8 6 8s5.12-.6... |
const express = require('express');
const passport = require('passport');
const OrderService = require('../services/order.service');
const router = express.Router();
const service = new OrderService();
router.get('/my-orders',
passport.authenticate('jwt', {session: false}),
async (req, res, next) => {
try {
... |
import AvatarUploader from './AvatarUploader'
import MobileVerify from './MobileVerify'
import CategorySelector from './CategorySelector'
import UEditor from './UEditor/components/vue-ueditor-wrap.vue'
import UserSelector from './UserSelector'
import OrgSelector from './OrgSelector'
import DictionarySelect from './Dict... |
import model from 'modules/book/bookModel';
const { fields } = model;
export default [
fields.id,
fields.bookName,
fields.author,
fields.subject,
fields.bookOwner,
fields.createdAt,
fields.updatedAt
]; |
/**
* @file service-worker.js with workbox api
* @desc [example](https://workbox-samples.glitch.me/examples/workbox-sw/)
* @author PunkMilkCan(916386570@qq.com)
*/
/* globals workbox */
workbox.core.setCacheNameDetails({
prefix: 'lavas-cache',
suffix: 'v1',
precache: 'install-time',
runtime: 'run-t... |
// 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 writing, software
// distributed un... |
var validators = require('../validators');
function CAA(flag,tag,value) {
let alltags=["issue","issuewild","iodef","contactemail","contactphone"];
if (typeof(flag) !== 'number')
throw new TypeError('flag (number) is required');
if (!alltags.includes(tag))
... |
const wordsTypes = {
GET_REVERSE_WORD: 'GET_REVERSE_WORD',
};
export default wordsTypes; |
import { h, BLACK, WHITE, BLANK } from './common.js';
import { patchBoard, createBoard } from './board.js';
import { confirmMove, $gameOver } from './toolbar.js';
import { $round } from './header.js';
const VIEW_SIZE = .9; // x100%
const CELL_SIZE = 7.69; // 100% / 13
const RESIZE_DELAY = 100;
const FOCUS_STROKE = '#0... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
define(["require", "exports", "../../../Styling", "../PersonaConsts"], function (require, exports, Styling_1, PersonaConsts_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GlobalClassNames = {
presence: 'ms-Persona-presence',
presenceIcon: 'ms-Persona-pr... |
/**
* Created by marija on 22.02.18.
*/
var p1 = Promise.resolve(18);
var p2 = Promise.reject(17);
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = {"122":1.1314923760512652e+308,"460":"","1.4648946788439138e+308":7.495211305190054e+307,"_I... |
const fetch = require("node-fetch");
const Discord = require("discord.js");
module.exports.run = async (client, message, args) => {
const embed = new Discord.MessageEmbed()
.setAuthor(`Invite Me to your server!`, client.user.displayAvatarURL())
.setColor("#2A2A2A")
.setDescription(
`[Click Here (Recommand Pe... |
'use strict'
const { test, given, forCases } = require('sazerac')
const NpmTypeDefinitions = require('./npm-type-definitions.service')
describe('NPM type definitions badge', function() {
test(NpmTypeDefinitions.transform, () => {
forCases([
given({ devDependencies: { typescript: '^2.4.7' }, files: [] }),
... |
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { FieldArray } from 'react-final-form-arrays';
import { values } from 'lodash';
import { Accordion } from '@folio/stripes/components';
import NoticesList from '../components';
import {
requestNoticesT... |
const db = require('quick.db');
const Discord = require("discord.js")
module.exports = {
name: 'room-ban',
description: 'Bans a user from a room',
/**
*
* @param {Discord.Message} message
* @param {Array<string>} args
*/
execute(client, message, args) {
if (!args.length) return... |
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import ListEditing from '../src/listediting';
import ListCommand from '../src/listcommand';
import IndentCommand from '../src/indentcommand';... |
import React, { Component } from 'react';
import Spotify from "../Spotify";
Spotify.collectAccessToken();
class Callback extends Component {
render() {
return <div>{console.log(this.props)}</div>
}
}
export default Callback; |
import React, { Component } from 'react';
import { View, Animated } from 'react-native';
import { NavigationActions } from 'react-navigation';
import { connect } from 'react-redux';
import Layout from '../../../native/Layout';
import { completeTrainingStep } from '../step';
import { onTrainingRouteCompleted } from '..... |
/**
* @license
* Copyright Google LLC 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
*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtaGFybmVzcy1maWx0ZXJzLmpzIiwi... |
import React, { useState} from 'react'
// import Ionicon from 'react-ionicons';
// import MdHeart from 'react-ionicons/lib/MdHeart';
import MdHeartOutline from 'react-ionicons/lib/MdHeartOutline';
const Heart = (props) => {
const [beat, setBeat] = useState(false);
const clickBeat = () => {
if (beat) {
setB... |
const documentTable = document.getElementById('documentTable')
const carnet = getSession();
fetch(endpoint('docs',[carnet]))
.then(res=>res.json())
.then(documentation=>{
documentation.forEach((document)=>{
documentTable.innerHTML+=`<tr>
<td>${document.documento}</td>
<td>${document.fecha}<... |
var fs = require("fs");
var color = require("ansi-color").set;
var jshint = require("jshint").JSHINT;
var path = require("path");
var preGlobal = global.minion;
var doLog = false;
/*
Yes we are assigning a global variable of `minion`. We have to because browser-based implementations don't do
var minion = require("m... |
import React, { Component } from "react";
import ReactDOM from "react-dom";
import "./validation";
import "./style.css";
const app = (
<div>
<h1 className = "message">Please, fill out the form below!</h1>
<form id="myform">
Phone:<input type="text" name="phone" />
Email:<inp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.