text stringlengths 2 1.04M |
|---|
/*!
* This file is a part of Mibew Messenger.
*
* Copyright 2005-2020 the original author or authors.
*
* 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/li... |
// @ts-check
import fs from 'fs';
import { createRequire } from 'module';
import path from 'path';
import { deeplyFulfilled, defangAndTrim, stringify } from './code-gen.js';
import {
makeCoreProposalBehavior,
makeEnactCoreProposalsFromBundleCap,
} from './coreProposalBehavior.js';
const { details: X } = assert;
... |
window.config = {
path: "/",
/** This is an array, but we'll only use the first entry for now */
servers: [
{
id: "J4Care",
url: "https://test.j4care.com:8443/dcm4chee-arc/aets/DCM4CHEE/rs",
write: false
},
{
id: "Google Cloud",
url: "https://idc-external-006.uc.r.appspot... |
function TestDominos() {
var shape = new b2EdgeShape;
shape.Set(new b2Vec2(-40.0, 0.0), new b2Vec2(40.0, 0.0));
var bd = new b2BodyDef;
var b1 = world.CreateBody(bd);
b1.CreateFixtureFromShape(shape, 0.0);
shape = new b2PolygonShape ;
shape.SetAsBoxXY(6.0, 0.25);
bd = new b2BodyDef;
bd.position.Se... |
var babelHelpers = require('./babel-helpers.js');
/**
* MUI React Row Component
* @module react/row
*/
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = babelHelpers.interopRequireDefault(require("react"));
var util = babelHelpers.interopRequireW... |
//# sourceMappingURL=component---src-pages-index-tsx-695d7e7eecddbbc15cc9.js.map |
import { createMuiTheme } from '@material-ui/core/styles';
const theme = createMuiTheme({
palette: {
primary: {
main: "#B5E6C5",
},
secondary: {
main: "#00AEEF",
},
info: {
main: "#730071",
},
},
typography: {
fontFamily: 'Spartan'
},
});
export default theme; |
/* Magic Mirror Test config default weather
*
* By fewieden https://github.com/fewieden
*
* MIT Licensed.
*/
let config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
language: "en",
timeFormat: 24,
units: "imperial",
electronOptions: {
webPreferences: {
nodeIntegration: true
... |
(function () {
'use strict';
describe('Sponsors Controller Tests', function () {
// Initialize global variables
var SponsorsController,
$scope,
$httpBackend,
$state,
Authentication,
SponsorsService,
mockSponsor;
// The $resource service augments the response object ... |
'use strict';
/* ------------------------------------------------------------------------------------------------
CHALLENGE 1 - Review
Write a function that iterates over an array of people objects
and creates a new list of each person's full name using the array method 'map'.
Each object will have the shape {firstNa... |
var classarm__compute_1_1_pyramid_info =
[
[ "PyramidInfo", "classarm__compute_1_1_pyramid_info.xhtml#a9e7e3f78b86c0a7f2cdd1ab1e836b2ed", null ],
[ "~PyramidInfo", "classarm__compute_1_1_pyramid_info.xhtml#a443529237e92a4364aaf662644dfc686", null ],
[ "PyramidInfo", "classarm__compute_1_1_pyramid_info.xhtml... |
var TextToVoice = function () {};
TextToVoice.prototype.say = function (text, callback) {
// for some reason firefox reports speechSynthesis to be an object but it's not compatible with the
// polyfill for the utterance
var fallbackSpeechSynthesis = window.SpeechSynthesisUtterance
? window.speechSynthesis
... |
window.fbAsyncInit = function() {
FB.init({
appId: '217132752218567',
autoLogAppEvents: true,
xfbml: true,
version: 'v3.0'
});
getContent();
};
(function(d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
j... |
//# sourceMappingURL=hryvnia-icon.d.js.map |
//META{"name":"SpellCheck","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SpellCheck","source":"https://raw.githubusercontent.com/mwittrien... |
/**
* Copyright 2019 Arcus Project
*
* 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 agre... |
/**
* ioBroker MiHome
*
* Copyright 2017-2018, bluefox <dogafox@gmail.com>
*
* License: MIT
*/
'use strict';
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const MiHome = require('./lib/Hub');
const adapter = utils.Adapter('mihome');
let objects = {};
let delayed ... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/ |
//修改表的状态
$('.status').click(function(){
var this_=$(this);
var table,id,status,statusInfo,text1,text2;
table = this_.find('a').attr('data-table');
id = this_.find('a').attr('data-id');
status = this_.find('a').attr('data-status');
text1 = this_.find('a').attr('data-text1');
text2 = this_.find('a').attr('d... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('bootstrap');
import Vue from 'vue';
window.Vue = Vue;
require('popper.js');
/**
* T... |
/* eslint-disable strict */
describe('Ring3DList', function()
{
var test;
beforeEach(function()
{
test = [1, 3, 5, 7, 8, 9];
});
describe('getBinarySearchIndex()', function()
{
it('특정 인덱스의 값을 입력값으로 주었을때 동일한 위치의 인덱스를 구한다.', function()
{
for (var i=0, len=test.length; i<len; i++)
{
expect(Rin... |
// Generated by CoffeeScript 2.5.1
// # Stream Transformer Sync
// Provides a synchronous alternative to the CSV transformer.
// ## Usage
// `const records = transform(records, [options], handler)`
// ## Source Code
var clone, transform;
transform = require('.');
({clone} = require('mixme'));
module.exports ... |
import {
INIT_GROUP_FILTER,
INIT_STATE_FILTER,
INIT_TAG_FILTER,
REMOVE_FILTERS,
SET_FILTER_TAG_OPTIONS,
SET_FILTERS
} from '../constants'
const initialState = {
dates: {
value: ['', ''],
isPredefined: false
},
iter: 'iter',
labels: '',
name: '',
groupBy: INIT_GROUP_FILTER,
state: INIT... |
const addNewImages = (event , setState , images) => {
event.preventDefault();
const currentImages = images.slice(0);
currentImages.push('');
return setState(state => {
return {
...state,
images: currentImages
};
});
};
const handleImageChange = (event, se... |
/*
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
module.exports = {
commands: ['POGU'],
description: 'Shows POGU emoji.',
usage: null,
minArgs: null,
maxArgs: 0,
permissions: [],
requiredRoles: [],
callback: (message) => {
message.channel.send(`<:POGU:775530743945625610>`)
}
} |
//Timeline
var timeTotal = 250234+10;
var t = window.t = new Timeline({length: timeTotal, frequency:10 });
var stdouts = [
{ time: 0, content: ' terminal-recorder by @cortezcristian\r\n'}
, { time: 182, content: "]2;crisboot@crisboot-Aspire-S3-391 ~/[m [34mcrisboot[32m@crisboot-Aspire-S3-391 [m[1m[... |
'use strict';
const ava = require('ava');
const yabbc = require('./ya-bbcode.js');
let newlineTest = `[h1]Nodecraft[/h1]
[b]Game Servers Done Right[/b]`;
let newlineNoTagTest = `Nodecraft
Game Servers Done Right`;
let bbcodes = {
'none': 'Nodecraft Game servers',
'invalid': '[Nodecraft]Game servers[/nodecraft]',
'... |
import ApolloClient from "apollo-boost";
import { ApolloProvider } from "react-apollo";
import App from "next/app";
import { AppProvider } from "@shopify/polaris";
import { Provider, useAppBridge, Context } from "@shopify/app-bridge-react";
import { authenticatedFetch } from "@shopify/app-bridge-utils";
import { Redire... |
import {Tw2CurveKey, Tw2Curve} from './Tw2Curve';
/**
* Tw2ScalarKey2
*
* @property {number} value
* @property {number} leftTangent
* @property {number} rightTangent
* @property {number} interpolation
* @class
*/
export class Tw2ScalarKey2 extends Tw2CurveKey
{
value = 0;
leftTangent = 0;
rightTan... |
returnLongestNonRepeatSubString(s){
if(!s){
return "";
}
let subCollection = [];
let currentSub = "";
for(let i = 0; i < s.length; i ++) {
let c = s[i];
if(currentSub.indexOf(c) === -1) {
currentSub += c;
}
else {
subCollection.push(currentSub);
... |
'use strict';
var through2 = require('through2'),
gutil = require('gulp-util'),
path = require('path'),
commandRunner = require('./lib/' + (isTest() ? 'test_' : '') + 'commandRunner'),
cmdMap = {
'bower.json': {cmd: 'bower', args: ['install', '--config.interactive=false']},
'package.json': {... |
import React, {PropTypes} from 'react'
import {render} from 'react-dom'
import Slider from '../src'
import styles from './styles.css'
const s2Logo = (
<svg viewBox='0 0 133.68 18' width={134} fill='currentcolor'>
</svg>
)
const center = {
position: 'absolute',
top: '50%',
left: '50%',
transform: 'translate... |
/*
Copyright 2019 New Vector Ltd
Copyright 2020 The Matrix.org Foundation C.I.C.
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 a... |
import React from 'react'
import BaseIcon from './BaseIcon'
const SuccessIcon = (props) => (
<BaseIcon color={props.color || '#31B404'}>
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14" />
<polyline points="22 4 12 14.01 9 11.01" />
</BaseIcon>
)
export default SuccessIcon |
/**
* @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
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = fac... |
import React, {useState, useEffect, useCallback} from "react";
const Network = ({config, setConfig}) => {
const [interfaces, setInterfaces] = useState([]);
const [iface, setIface] = useState(null);
const [address, setAddress] = useState(null);
useEffect(() => {
window.network.interfaces();
win... |
"use strict";
/* eslint-disable import/no-commonjs */
module.exports = {
get createAppContainer() {
return require('./createAppContainer').default;
},
get createKeyboardAwareNavigator() {
return require('./createKeyboardAwareNavigator').default;
},
get createNavigationAwareScrollable() {
return... |
//[Master Javascript]
//Project: Maximum Admin - Responsive Admin Template
//Version: 1.1.0
//Last change: 15/08/2017
//Primary use: Maximum Admin - Responsive Admin Template
//should be included in all pages. It controls some layout
// Make sure jQuery has been loaded
if (typeof jQuery === 'undefined') {
thro... |
import {Howl, Howler} from 'howler';
import { ApiSubsonic } from '../../api-subsonic';
import NoSleep from 'nosleep.js';
import cssData from './media-player.css';
window.customElements.define('media-player', class extends HTMLElement {
constructor(node, api){
super();
this.noSleep = new NoSleep();
this.api = ... |
import { $wuxVcode } from '../../components/wux'
Page({
data: {},
onLoad() {
this.getDeafultVcode()
this.getCustomVcode()
},
getDeafultVcode() {
if (!this.defaultVcode) {
this.defaultVcode = $wuxVcode.init('vcode')
}
this.defaultVcode.draw(true, (val... |
var form = document.getElementById("contact_form");
var inputName = document.getElementById("name");
var inputEmail = document.getElementById("email");
var textAreaMessage = document.getElementById("message-text");
var formButton = document.getElementById("button_contact");
var maxLength = 200;
var showAlertError =... |
import Component from '@ember/component';
import FormMixin from 'open-event-frontend/mixins/form';
import { inject as service } from '@ember/service';
export default Component.extend(FormMixin, {
identification : '',
password : '',
isLoading : false,
router : service(),
getValidationRules... |
const { expect } = require('chai');
let tableSql;
const sinon = require('sinon');
const PG_Client = require('../../../lib/dialects/postgres');
const client = new PG_Client({ client: 'pg' });
const knex = require('../../../knex');
const equal = require('chai').assert.equal;
describe('PostgreSQL Config', function () ... |
import React, { useEffect } from 'react';
import { GET_MY_FAVORITES } from '../gql/query';
import { useQuery, gql } from "@apollo/client";
import NoteFeed from '../components/NoteFeed';
const Favorites = () => {
const { loading, error, data } = useQuery(GET_MY_FAVORITES);
useEffect(() => {
document.t... |
import React from 'react';
import PropTypes from 'prop-types';
import FirstPageIcon from '../icons/FirstPage';
import LastPageIcon from '../icons/LastPage';
import LeftIcon from '../icons/Left';
import RightIcon from '../icons/Right';
import ExpanderCollapsedIcon from '../icons/ExpanderCollapsedIcon';
import ExpanderEx... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=JOSEHeaderType.js.map |
import { AsyncStorage } from "react-native";
import { call, put, takeLatest, all, select } from "redux-saga/effects";
import { createAction } from "@reduxjs/toolkit";
import { completeQuestionnaire } from "../api/questionnaire";
import { addCompleteExercise } from "../api/completeExercise";
import { completeExerciseSu... |
const request = require('supertest')
const app = require('../src/app')
const signup = require('../src/models/user')
const userOne = {
email: "parth.170410116046@gmail.com",
password: "PaassPAA1234",
confirmPassword: "PaassPAA1234",
userRole: "FOUNDER"
}
beforeEach( async() => {
await signup.deleteMany(... |
"use strict";
import React from 'react';
import {Card, Button, TextField, FontIcon, Grid, Subheader} from 'react-md';
import {withRouter, Link} from 'react-router-dom';
import {AlertMessage} from './AlertMessage';
import Page from './Page';
import CardTitle from "react-md/lib/Cards/CardTitle";
import CardText from "r... |
/**
* @author dforrer / https://github.com/dforrer
* Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
*/
/**
* @param object THREE.Object3D
* @param attributeName string
* @param newValue number, string, boolean or object
* @constructor
*/
var Se... |
'use strict';
/**
* egg-spark default config
* @member Config#spark
* @property {String} SOME_KEY - some description
*/
exports.spark = {
}; |
import React, {useEffect, useState} from 'react';
import * as d3 from 'd3';
import axios from 'axios';
const Chart = props => {
useEffect(() => {
async function setup() {
let firstPairData = await axios.get(`https://api.coingecko.com/api/v3/coins/${props.pairs[1]}//market_chart?vs_currency=usd&days=30... |
'use strict';
/**
* Module dependencies
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Ticket Schema
*/
var MailTicketSchema = new Schema({
from: {
type: String,
default: '',
trim: true
},
to: {
type: String,
default: '',
trim: true
},
title: {
type:... |
import React, { Component, Fragment } from "react";
import PropTypes from "prop-types";
import "./index.css";
import history from "../../../history";
import EmojiContainer from "../../../components/EmojiStory/EmojiContainer";
import LoginOverlay from "../../../components/LoginOverlay";
import LoginInfoOverlay from "../... |
$(function(){
$('html').toggleClass('no-js js');
// build side menu
var html = '';
$('.bs-docs-section h1').each(function () {
var mainheader = $this = $(this);
var subheaders = $this.nextUntil('h1', 'h2, h3');
if (mainheader.length) {
html += '<li><a href="#' + ma... |
var utils = require("../utils");
var firstOrOnly = utils.firstOrOnly;
var errorMessage = utils.errorMessage;
function validate (definition, property, value, context) {
var isValid = firstOrOnly(definition.validate);
if (!isValid.call(context, value))
return errorMessage(definition, property, value, "validate")... |
/**
* Copyright (C) 2018, Allen Wu ( jiaming0507@gmail.com )
*
* 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,... |
// from http://jaypatel.co/sideSites/wc/#frms/
$(document).ready(function() {
//-----------------------------------upload dropdown code-----------------------------------
var inptChgFunc; //what to do when input changes -- depends on whether or not drag and drop is complatible
// gray dropzone on file hover fu... |
const Router = require('koa-router')
const {TokenValidator, NotEmptyValidator} = require('../../validators/token')
const {LoginType} = require('../../lib/enum')
const {User} = require('@models/user')
const {generateToken} = require('../../../core/util')
const {Auth} = require('@middlewares/auth')
const {WXManager} = ... |
'use strict';
// From http://stackoverflow.com/a/19846473/650722
PhonicsApp.directive('stopEvent', function () {
return {
restrict: 'A',
link: function (scope, element) {
element.bind('click', function (e) {
e.stopPropagation();
});
}
};
}); |
const chalk = require("chalk");
class OAuthWarning {
/**
* Creates and throws a new OAuth Warning.
*
* @param {Object} options The Warning parameters.
* @param {String} options.message The Warning message.
* @param {String} options.warning The Warning consequence.
* @constructor
*/
construct... |
(function() {
document.getElementById("nav-toggle").addEventListener ("click", toggleNav);
function toggleNav() {
var nav = document.getElementById("nav-menu");
var className = nav.getAttribute("class");
if(className == "nav-right nav-menu") {
nav.className = "nav-right nav-m... |
;
define(function (require) {
var ng = require('angular');
var d3 = require('d3');
var $ = require('jquery');
var barChart = require('./barCharPluggin');
require('../../../ngModule').directive('plotBarChart', function () {
return {
restrict: 'EA',
templateUrl: '/app/... |
const { desktopCapturer } = require('electron');
const captureScreen = (displayId, width, height) => {
return new Promise((resolve, reject) => {
desktopCapturer.getSources({ types: ['screen'] }, (error, sources) => {
if (error) throw error;
for (let i = 0; i < sources.length; ++i) {
if (sourc... |
/* global jQuery */
jQuery( function ( $ ) {
'use strict';
// Object holds all methods related to fields' index when clone
var cloneIndex = {
/**
* Set index for fields in a .rwmb-clone
* @param $inputs .rwmb-clone element
* @param index Index value
*/
set: function ( $inputs, index ) {
$inputs.e... |
/*!
* Copyright (c) 2017-present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required ... |
import jsan from 'jsan';
import { DATA_TYPE_KEY, DATA_REF_KEY } from '../constants/dataTypes';
export function reviver(key, value) {
if (
typeof value === 'object' && value !== null &&
'__serializedType__' in value && typeof value.data === 'object'
) {
const data = value.data;
data[DATA_TYPE_KEY] =... |
function sceneLevel12() {
__game.clearUi()
__game.buildMap([
[0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0],
[0, 0, 0, 4, 0, 0],
[0, 0, 0, 0, 0, 0],
[0, 3, 3, 3, 3, 0],
])
__game.buildPlayer({ x: 5, y: 1, state: 'idle' })
if (sessionStorage.__state === 'start') {
__gam... |
import _mergeJSXProps from 'babel-helper-vue-jsx-merge-props';
import _extends from 'babel-runtime/helpers/extends';
import shallowEqual from 'shallowequal';
import omit from 'omit.js';
import { getOptionProps, getListeners } from '../props-util';
import PropTypes from '../vue-types';
import proxyComponent from '../pro... |
/**
* (c) 2013 jDropdown http://www.github.com/paulhodel/jdropdown
*
* @author: Paul Hodel <paul.hodel@gmail.com>
* @description: Custom dropdowns
*/
jSuites.dropdown = (function(el, options) {
var obj = {};
obj.options = {};
obj.items = [];
obj.groups = [];
if (options) {
obj.option... |
// flow-typed signature: 1d9f5826f2312dfd6969c5dd92908f39
// flow-typed version: <<STUB>>/babel-eslint_v^7.1.1/flow_v0.52.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with ... |
import { getTypeRenderer } from './mappingTypeRenderer';
describe('#avrorender', () => {
it('should return the mapping corresponding to the type', () => {
expect(getTypeRenderer({ type: 'double', logicalType: '' })).toBe('int');
});
it('should return the mapping corresponding to the logical type', () => {
expe... |
var data = require('../users.json');
exports.view = function(req, res){
res.render('archive', data);
}; |
/**
* APP
*
* The app controller manages the global scope.
*/
var util = require('util'),
events = require('events'),
rewriter = require('../util/jsonrewriter'),
genericUtils = require('../util/generic'),
Amount = ripple.Amount;
angular
.module('app', [])
.controller('AppCtrl', AppCtrl);
AppC... |
module.exports={A:{A:{"2":"J D E pB","257":"F A B"},B:{"1":"C K L G M N O","513":"P Q R U V W X Y Z a b c d e f S g H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z AB BB CB DB EB FB GB HB IB JB KB LB gB MB hB NB OB T PB QB RB SB TB UB VB WB XB YB ZB aB bB cB P Q R iB U V W X Y Z a b c d e f S g H jB","2":"qB fB I h J D E F A... |
var mysql = require("mysql");
function REST_ROUTER(router, connection, md5) {
var self = this;
self.handelRoutes(router, connection, md5);
}
REST_ROUTER.prototype.handelRoutes = function(router, connection, md5) {
router.get("/", function(req, res) {
res.json({
"message": "hello world"
});
});
}
module.e... |
import { stringify } from 'qs';
import request from '@/utils/request';
import { cleanParams,getnyr } from '@/utils/utils';
import { requestUrl_kxjs, requestUrl_sport } from '@/global.js';
// 专家服务类别
export async function serviceType_list(params) {
return request(requestUrl_kxjs + '/service_postion/web/list', {//ser... |
import EditController from 'alpha-amber/controllers/application/edit';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
export default class BookEditController extends EditController {
@service fetch;
successTransitionTarget =... |
'use strict';
angular.module('ontimeApp')
.config(function ($stateProvider) {
$stateProvider
.state('status', {
parent: 'entity',
url: '/statuss',
data: {
authorities: ['ROLE_USER'],
pageTitle: 'ontimeApp.st... |
import { expect } from 'chai';
import HeaderUtil from '../src/header_util';
describe('Header Util', function () {
describe('isText', function () {
it('should return true for textual content types', function () {
let trueExamples = HeaderUtil.KNOWN_TEXTUAL_CONTENT_TYPES;
trueExamples.forEach(functio... |
const FlightSuretyApp = artifacts.require("FlightSuretyApp");
const FlightSuretyData = artifacts.require("FlightSuretyData");
BigNumber = require('bignumber.js');
const Config = async function(accounts) {
// These test addresses are useful when you need to add
// multiple users in test scripts
let te... |
'use strict';
const names = ["Juan", "Marina", "Manolo", "Alex", "Ignacio", "Maria", "Miguel"];
const ages = [18, 13, 14, 17, 22, 34, 55];
const gender = ["hombre", "mujer", "hombre", "hombre", "hombre", "mujer", "hombre"];
const subject = ["Maths", "Biology"];
const groups = ["A", "B"];
const students = [];
const tea... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ZoomOut = props =>
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-... |
import Ember from 'ember';
import PaginationMixin from 'cargo/mixins/pagination';
export default Ember.ArrayController.extend(PaginationMixin, {
queryParams: ['page', 'per_page'],
page: '1',
per_page: 10,
totalItems: function() {
return this.store.metadataFor('dependency').total;
}.propert... |
!(function(){
var uniAppViewReadyCallback = function(){
document.dispatchEvent(new CustomEvent("generateFuncReady", { detail: { generateFunc: $gwx('./pages/tougao/tougao.wxml') } }));
}
if(window.__uniAppViewReady__){
uniAppViewReadyCallback()
}else{
document.addEvent... |
import { mapState, mapGetters } from 'vuex';
import get from 'lodash/get';
import set from 'lodash/set';
import { extend } from '@helpers/utils';
import Companies from '@api/Companies';
import GoogleDrive from '@api/GoogleDrive';
import { NotifyNegative, NotifyPositive, NotifyWarning } from '@components/popup/notify';
... |
* Vue.js v1.0.10-csp
* (c) 2015 Evan You
* Released under the MIT License.
*/ |
const assert = require('assert');
class JsonValue {
constructor(options = {}) {
assert.ok(!!options.path, 'JsonValue requires a path');
this.options = options;
}
static isAPath(object) {
return object instanceof this || typeof object === 'string';
}
static getPath(object) {
if (object insta... |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/ZjVyKXp9hec
function Blob(x, y, r) {
this.pos = createVector(x, y);
this.r = r;
this.vel = createVector(0, 0);
this.update = function() {
var newvel = createVector(mouseX - width / 2, mous... |
import React from 'react';
import { Container, Row, Col, Card, CardImg } from 'react-bootstrap';
import { CardTitle, CardImgOverlay } from 'reactstrap';
import TracksPage from './TracksPage'
const HomePage = () => {
return (
<Container>
<TracksPage/>
<Row>
<Col xs="4... |
/*
* @Author: your name
* @Date: 2020-06-03 19:01:11
* @LastEditTime: 2020-06-19 16:55:09
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \officialWebsite\request\news_detail.js
*/
$(function(){
var id = window.location.search.split('?id=')[1]
getNewsByid({id}).... |
import createNewsletterSchema from '../schema'
import Container from './Container'
import StyledFigure from './Figure'
import Center from '../../../components/Center'
import {
FigureCover,
FigureImage,
FigureCaption,
FigureByline
} from '../../../components/Figure'
import { Sub, Sup } from '../../../component... |
class Navigation extends HTMLElement{
constructor(){
super();
const shadow = this.attachShadow({mode:'open'});
// const template = document.getElementById('navigation');
// const templateContent = template.content;
const tp = document.createElement('template');
tp.se... |
import Check from "./Check.js";
import defaultValue from "./defaultValue.js";
import Rectangle from "./Rectangle.js";
import Resource from "./Resource.js";
import defined from "./defined.js";
import DeveloperError from "./DeveloperError.js";
var url = "https://dev.virtualearth.net/REST/v1/Locations";
/**
* Provides ... |
module.exports = [
'didi/cube-ui',
'XiaoMi/soar',
'YMFE/yapi',
'remaxjs/remax',
'typicode/husky',
]; |
import assert from 'assert';
import v1 from './v1.js';
import v3 from './v3.js';
import v4 from './v4.js';
import v5 from './v5.js';
function usage() {
console.log('Usage:');
console.log(' uuid');
console.log(' uuid v1');
console.log(' uuid v3 <name> <namespace uuid>');
console.log(' uuid v4');
consol... |
export const isNumber = val => typeof val === 'number';
export const isString = val => typeof val === 'string';
export const isObject = val => typeof val === 'object';
export const isArray = val => Array.isArray(val);
export const isNumeric = val => (isNumber(val) || isString(val)) && !isNaN(val);
export const isHtmlEl... |
import { OutlineHotel as OutlineLocalHotel } from './OutlineHotel';
export { OutlineLocalHotel }; |
/** Module được clone ra từ 1 module gốc ( Không quan trọng là "procoder hay gì cả" mà quan trọng là ý tưởng làm ra nó. Nếu có module ngon hơn thì hãy dùng module đó ! Xin đừng đánh giá **/
/** Đổi Credit ? Bọn t đã không mã hóa cho mà edit rồi thì tôn trọng nhau tý đi ¯\_(ツ)_/¯ **/
const request = require("request");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.