text stringlengths 2 1.04M |
|---|
import React from "react"
import { Link } from "gatsby"
import { library } from "@fortawesome/fontawesome-svg-core"
import { fab } from "@fortawesome/free-brands-svg-icons"
import mobileStyles from "./mobileNav.module.css"
// create fontawesome library
library.add(fab)
const NavLink = props => (
<li>
<Link to={... |
import React, { useState, useContext } from "react";
import { useHistory } from 'react-router-dom';
import * as Realm from 'realm-web'
import { Button, Form } from "react-bootstrap";
import { Formik } from "formik";
import * as Yup from "yup";
import AuthContext from "../context/AuthContext";
import MongoContext from... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault(ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var deindent = _interopDefault(require('de-indent'));
var he = _interopDefault(require('he'));
/* */
/**
* 统计一个字符串的行数
*
* @... |
import 'angular';
import core from 'app/core/core.module.js';
import config from './shell.config.js';
import route from './shell.route.js';
import controller from './shell.controller.js';
import directive from './shell.directive.js';
export default angular.module('app.shell',[
core.name,
//Module
config.... |
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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
'use strict';
angular.module('observatory3App', [
'observatory3App.auth',
'observatory3App.admin',
'observatory3App.constants',
'ngCookies',
'ngResource',
'cgNotify',
'ngSanitize',
'btford.markdown',
'ui.router',
'ui.bootstrap',
'ngFileUpload',
'validation.match',
'angular-markdown-editor'
])... |
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "guildMuteRemove",
async execute(bot, guild, mute) {
const webhook = await bot.getWebhook(guild);
if (!webhook) return;
const { member, executor } = mute;
const embed = new MessageEmbed()
.setTitle("User unmuted")
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt for details.
//>>built
define("esri/geometry/geodesicUtils","dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point ./Polyline ./Polygon".split(" "),function(s,B,... |
const { promisify } = require("util");
const fs = require("fs");
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
const { v4: uuidv4 } = require("uuid");
class DB {
read() {
return readFile("db/db.json", "utf8");
}
write(note) {
return writeFile("db/db.json", JSON.strin... |
self["webpackHotUpdatesoham_manoli"]("cms",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ "use strict";
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "d3790963aef4647ed98f"; }
/******/ }();
/******/
/***... |
/**
* @file test/module-simple_expression-test.js
* @author graeme@converse.ai
* @description Evaluate a one line expression. E.g. `1 + 2` will
* return 3.
*
* Generated by the converse-cli tool for use with the Converse AI
* Plugins SDK. https://developers.converse.ai/
*/
const request = require('supertes... |
const pickPeaks = arr => {
const obj = {
pos: [],
peaks: []
};
let pos = -1;
for (let i = 1; i < arr.length; i++) {
if (arr[i - 1] < arr[i]) {
pos = i;
} else if (arr[i] < arr[i - 1] && pos !== -1) {
obj.pos.push(pos);
obj.peaks.push(arr[pos]);
pos = -1;
}
}
retur... |
/* eslint-env mocha */
const assert = require('assert');
const captureModel = require('../../model/captureModel');
const locationModel = require('../../model/locationModel');
const moodModel = require('../../model/moodModel');
describe('Capture Model', function() {
it('completes Insert > Read integration test', fu... |
/**
* Auto-generated action file for "Bufferapp" API.
*
* Generated at: 2019-05-07T14:39:50.266Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / bufferapp-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under... |
export function buildAttribs(gl, layout) {
var attribs = {};
for (var key in layout) {
attribs[key] = {
buffer: new GLBuffer(gl),
size: layout[key]
};
}
return attribs;
}
export function getExtensions(gl, extArray) {
var ext = {};
for (var i = 0; i < ext... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _nodeBuilder = require("../node-builder");
var _esotopeHammerhead = require("esotope-hammerhead");
var _instrumented = require("../instrumented");
// -------------------------------------------------------------
// WARNING: this file is used by... |
/**
* Created by Boxedsolutions on 2016-12-07.
*/
window.method = null;
window.address_selected = null;
window.latestScroll = null;
var BillmateIframe = new function(){
var self = this;
var childWindow = null;
this.loadingBlockId = '#checkout-loader';
this.updateAddress = function (data) {
// ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{541:function(n,e,t){"use strict";t.r(e),e.default={"index.html":'<!DOCTYPE html>\r\n<html lang="en">\r\n<head>\r\n <meta charset="UTF-8">\r\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\r\n <link rel="stylesheet" href="css/index.css... |
const JSON2_mod = require('json2-mod');
const json_beautifier = require('./json_beautifier.js');
const object = {"pi": "3.14159265359", "e": "2.7182818284", "prime": [2, 3, 5, 7, 11, 13, 17, 19], "1+6": 7};
const json = json_beautifier(object, {dropQuotesOnNumbers: true, inlineShortArrays: true});
const expected = `{
... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { cleanUp } = require("./ErrorHelpers");
const WebpackError = require("./WebpackError");
const makeSerializable = require("./util/makeSerializable");
class ModuleError extends WebpackError {
/**
... |
/*
Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold:
B.length >= 3
There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1]
(Note that B could be any subarray of A, including the entire array A.)
Given an array ... |
process.env.RBC_ESM_BUILD = 'true'
module.exports = require('./babel.config') |
/**
* ====================================================================
* About
* ====================================================================
* Sarissa cross browser XML library - IE XPath Emulation
* @version 0.9.9.6
* @author: Copyright 2004-2007 Emmanouil Batsis, mailto: mbatsis at users full stop... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/rta/command/FlexCommand'],function(q,F){"use strict";var M=F.extend("sap.ui.rta.command.Mov... |
var mongoose = require('mongoose');
// create a todo model
var Todo = mongoose.model('Todo', {
text: {
type: String,
// validate
required: true,
minlength: 1,
// trim whitespace
trim: true
},
completed: {
type: Boolean,
// set the default pro... |
define(["underscore", "js/models/settings/course_grading_policy"], (_, CourseGradingPolicy) =>
describe("CourseGradingPolicy", function() {
beforeEach(function() {
return this.model = new CourseGradingPolicy();
});
describe("parse", () =>
it("sets a null grace period... |
import security from '../lib/security';
import CategoriesService from '../services/products/productCategories';
class ProductCategoriesRoute {
constructor(router) {
this.router = router;
this.registerRoutes();
}
registerRoutes() {
this.router.get(
'/v1/product_categories',
security.checkUserScope.bind(... |
/**
* angular-strap
* @version v2.0.0-rc.1 - 2014-01-28
* @link http://mgcrea.github.io/angular-strap
* @author [object Object]
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
angular.module('mgcrea.ngStrap.dropdown').run(['$templateCache', function($templateCache) {
'use strict';
$template... |
var expect = require("expect");
var installer = require("../src/installer");
var Plugin = require("../src/plugin");
var util = require("util");
var webpack = require("webpack");
describe("plugin", function () {
beforeEach(function () {
this.check = expect.spyOn(installer, "check").andCall(function (dep) {
... |
import React from 'react';
import { connect } from 'dva';
import { WhiteSpace, List, Icon, ActivityIndicator, Toast, Modal } from 'components';
import Nav from 'components/nav';
import FileUpload from 'react-fileupload';
import { routerRedux } from 'dva/router';
import { getErrorImg, getImages, getLocalIcon, config, co... |
import React, {Component} from 'react';
import { Button, Container, Row, Col } from "reactstrap";
class MainHeader extends Component {
render() {
return (
<>
<div className="position-relative">
{/* Hero for FREE version */}
<section className="section section-hero section-... |
import { toErrorMessage, toLabel } from "../helpers";
export function blank(options) {
return (attribute, input, values) => {
var _a;
input = [undefined, null, false, ""].includes(input) ? "" : String(input);
return {
valid: input.trim() === "",
type: ((_a = options) ... |
'use strict';
function factory (type, config, load, typed) {
var sqrt = load(require('../arithmetic/sqrt'));
var variance = load(require('../statistics/var'));
/**
* Compute the standard deviation of a matrix or a list with values.
* The standard deviations is defined as the square root of the va... |
import { LitElement, html, css } from "lit-element/lit-element.js";
/**
* `game-show-quiz-modal`
* @customElement game-show-quiz-modal
* `Modal for the quiz show`
* @microcopy - the mental model for this element
* - game show - a display board in the style of Jeopardy
*/
class GameShowQuizModal extends LitEleme... |
$(function() {
consoleInit(main)
});
async function main() {
const App = await init_ethers();
_print(`Initialized ${App.YOUR_ADDRESS}\n`);
_print("Reading smart contracts...\n");
const BELT_CHEF_ADDR = "0xD4BbC80b9B102b77B21A06cb77E954049605E6c1";
const rewardTokenTicker = "BELT";
const B... |
/*!
* jQuery JavaScript Library v1.12.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-02-22T19:07Z
*/
(function( global, factory ) {
if ( typeof module ... |
// @flow
import * as Types from '../../../constants/types/chat2'
import * as More from '../../../constants/types/more'
import * as Constants from '../../../constants/chat2'
import * as Chat2Gen from '../../../actions/chat2-gen'
import * as KBFSGen from '../../../actions/kbfs-gen'
import Fullscreen from './'
import {com... |
const path = require("path");
const extractDtsModules = require("../../scripts/extractDtsModules");
const fixturesDir = path.join(__dirname, "./fixtures");
describe("extractDtsModules", () => {
it("Should throw error if one file doesn't exist", () => {
expect(() => extractDtsModules(["~/path/to/non/existing/fil... |
const db = require("./connection");
const { User, Product, Category } = require("../models");
db.once("open", async () => {
await Category.deleteMany();
const categories = await Category.insertMany([
{ name: "Full Stack Web Application Development" },
{ name: "Computer science" },
{ name: "Python" },
... |
/* global require, module, __dirname */
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const config = require('./webpack.common.js');
const { resolve } = require('path');
const pkg = require('../package.json');
const webpackConfig = {
mode: process.env.NODE_ENV === '... |
const {
app,
BrowserWindow,
ipcMain,
Menu
} = require('electron')
const childprocess = require('child_process');
let print = console.log;
let win;
function createWindow() {
win = new BrowserWindow({
width: 1280,
height: 720,
darkTheme: true,
webPreferences: { nodeInt... |
// Part of <http://miracle.systems/p/h5.modbus> licensed under <MIT>
'use strict';
const EventEmitter = require('events').EventEmitter;
const ExceptionCode = require('./ExceptionCode');
const FunctionCode = require('./FunctionCode');
const Response = require('./Response');
const ExceptionResponse = require('./message... |
import React from 'react';
import _ from 'lodash';
import {getPage, classNames, Link, withPrefix, pathJoin, getPages} from '../utils';
import DocsSubmenu from './DocsSubmenu';
export default class DocsMenu extends React.Component {
render() {
let site = _.get(this.props, 'site', null);
let page = ... |
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { Typography, Icon } from '..';
const CloseButton = ({ onClick }) => {
return (
<Icon
data-cy="close-button"
onClick={onClick}
name="close"
className="cursor-pointer text-primary-ac... |
function drawCrossLine(chart, height) {
// 画出阈值线
let g = chart.append('g');
g.append('line')
.attr('class', 'cross-line')
.attr('x1', 0)
.attr('y1', 80)
.attr('x2', 0)
.attr('y2', height + 80)
.attr("stroke-width", 1.5)
.style("stroke", 'orange')
.style('opacity', 0);
}
export default drawCrossLine; |
window.setInterval(function(){
fnGetlchatCount();
fnGetchatnotify();
fnGetcallnotify();
}, 5000);
function fnGetlchatCount() {
$.ajax({
url: '/student/getchatcount',
method: 'POST',
dataType:'json',
success: function(response) {
if(response.unre... |
module.exports = function toReadable (number) {
let numberStr = number.toString(),
numberArr = numberStr.split(''),
reStr = '',
resultStr = '';
for (let i = 0; i < numberArr.length; i++){
if (numberArr.length == 3 && i == 0) {
switch (numberArr[0]){
case '0':... |
// Copyright 2021, University of Colorado Boulder
// Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly.
import Shape from '../../../kite/js/Shape.js';
import tintSolidString from './tintSolidString.js';
export default new Shape( tintSolidString ); |
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 24,
height: 24,
},
content: [
{
elem: 'path',
attrs: {
d:
'M7 5.21a.77.77 0 0 1-.46-1.38A15.46 15.46 0 0 1 16 1c2.66 0 6.48.45 9.5 2.62a.77.77 0 0 1 .18 1.07... |
"use strict";
/**
* Resets all information stored in the `mock.calls` array.
*
* <example>
:clear.js
it('should clear mock', () => {
const mock = browser.mock('https://google.com/')
browser.url('https://google.com')
console.log(mock.calls.length) // returns 1
mock.clear()
... |
/*
Ejemplos, trucos y tips para trabajar con arreglos en JavaScript
*/
// ----------------------------------------------------------------------------------------
// Metodo at: permite leer un elemento en un indice dado
// ----------------------------------------------------------------------------------------
const... |
import React from 'react'
export default function ChatSearch () {
return (
<div className='chat-search'>
<input
type='search'
className='chat-search-input'
placeholder='Search Messages'
/>
</div>
)
} |
export const add = (a, b) => {
return a + b;
};
export const minus = (a, b) => {
return a - b;
}; |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
import * as PIXI from 'pixi.js-legacy';
import BaseTrack from './baseTrack';
import {Subject} from 'rx';
import {getRenderer} from '../configuration';
import menuFactory from './menu';
import {scaleModes} from '../../tracks/common/scaleModes';
import {displayModes} from '../../tracks/wig/modes';
import { displayModes a... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
isPrime1 = (num) => {
if (isNaN(num) || !isFinite(num) || num % 1 !== 0 || num < 2) {
return false;
}
/* Explanation of (num % 1 !== 0) - This is the standard way to check if a number is a decimal - The logic for (num % 1 !== 0) >>>> ( num % 1 ) will return 0 only if the num is an integer (whole number) bu... |
const mongoose = require('mongoose')
const Schema = mongoose.Schema
// Create Schema
const UserSchema = new Schema({
name: {
type: String,
required: true
},
email: {
type: String,
required: true,
unique: true
},
password: {
type: String,
requ... |
/*
* Copyright (c) 2008-2021, Massachusetts Institute of Technology (MIT)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyrig... |
const brs = require("brs");
const { RoArray, RoAssociativeArray, BrsBoolean, BrsString, Int32, BrsInvalid, Float } = brs.types;
const { Interpreter } = require("../../../lib/interpreter");
const { createMockStreams } = require("../../e2e/E2ETests");
describe("RoArray", () => {
describe("comparisons", () => {
... |
module.exports={A:{A:{"2":"J D E F A B uB"},B:{"1":"P Q R S T U V W Z a b c d e f g h i j k X H","2":"C K L G M N O"},C:{"1":"SB Y TB UB VB WB XB YB ZB aB bB cB dB eB fB gB P Q R mB S T U V W Z a b c d e f g h i j k X H nB","2":"0 1 2 3 4 5 6 7 8 9 vB jB I l J D E F A B C K L G M N O m n o p q r s t u v w x y z AB BB C... |
/* eslint curly: 0 */
import paypal from 'paypal-rest-sdk';
// import nuuid from 'node-uuid';
import express from 'express';
import bodyParser from 'body-parser';
import config from '../config';
import User from '../api/models/user';
import Payment from '../api/models/payment';
// requests
import basePayReq from './pa... |
/* -*- tab-width: 2; indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* 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/. */
//------------------------------------------... |
typeSearchIndex = [{"p":"<Unnamed>","l":"Account"},{"p":"<Unnamed>","l":"Administrator"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"<Unnamed>","l":"Playground.Avaliability"},{"p":"<Unnamed>","l":"Booking"},{"p":"<Unnamed>","l":"eWallet"},{"p":"<Unnamed>","l":"locationComparator"},{"p":"<Unnamed>","l":"Play... |
//# sourceMappingURL=app.ed1e73de.js.map |
/**
* Konversi Penanggalan:
* - Jawa Ke Hijriyah
* - Hijriyah ke Jawa
* - Jawa Ke Masehi
* - Masehi Ke Jawa
*/
import { MasehiKeHijriyah } from "./m2h";
import { HijriyahKeMasehi } from "./index";
/**
* Perbedaan penanggalan Jawa dan Hijriyah terutama pada tahun
* dengan selisih tahun yaitu 512. (butuh testing... |
search_result['3726']=["topic_0000000000000DFF.html","DWM_SBT Enumeration",""]; |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ActionSwapVerticalCircle = React.createClass({
displayName: 'ActionSwapVerticalCircle',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M12... |
define("complain/tips.js",["biz_common/utils/string/html.js","biz_common/dom/event.js"],function(t){
"use strict";
t("biz_common/utils/string/html.js");
var i=t("biz_common/dom/event.js"),o={
tipsTimeoutId:null,
tipsDom:document.getElementById("tips")
},s={
showErrTips:function(t,i){
var s=i||o.tipsDom;
return t===!1?v... |
const path = require('path')
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const bundleOutputDir = './wwwroot/dist'
module.exports = () => {
console.log('Building for \x1b[33m%s\x1b[0m', proc... |
const RedisParser = require("redis-parser")
const net = require("net")
const { inspect } = require("util")
const { Logger } = require("colourlogger")
const { selectFields } = require("./utils")
const { RedisTransactionError, RedisCommandError, ConnectionError }
= require("./errors")
class RedisConnection extends ... |
/**
* Pre-fetch an image source with a simple promise interface.
* Supports optional timeout for rejection.
*
* @param {String} src Image Source
* @param {Number} [timeout] Optional timeout in milliseconds
* @return {Promise} Promise that resolves on successful image load
*/
export function prefetch(... |
class Chain
{
constructor(bodyA,bodyB){
var options = {
bodyA : bodyA,
bodyB : bodyB,
stiffness : 0.04,
length : 10
}
this.chain = Constraint.create(options);
World.add(world,this.chain);
}
display(){
var pointA = this.chain.bodyA.position;
var pointB = ... |
import axios from "axios";
const state = {
allClassLevels: [],
classLevel: []
};
const getters = {
getAllClassLevels: state => state.allClassLevels,
getClassLevel: state => state.classLevel
};
const actions = {
async fetchAllClassLevels({ commit }) {
const response = await axios.get("api/... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
"use strict";
var React = require('react');
var ReactDOM = require('react-dom');
var timer_app_1 = require("./components/timer-app");
ReactDOM.render... |
import $ from'../internals/export.js';import IS_PURE from'../internals/is-pure.js';import anObject from'../internals/an-object.js';import aFunction from'../internals/a-function.js';$({target:"Map",proto:!0,real:!0,forced:IS_PURE},{update:function update(key,callback){var map=anObject(this),length=arguments.length;aFunc... |
'use strict';
let config = {
appName: 'fascom',
auth_server: {
ip: '139.196.217.41',
port: '3000',
path: '/auth'
},
interval: 2000
}
module.exports = config; |
var SG = require('strong-globalize');
SG.SetRootDir(__dirname);
var g = new SG();
function fn(name) {
return name;
}
var fileName = fn('data/data.json');
var json = g.t(
'data/dataNonExistent.json',
'[' +
' "title",' +
' ["types", 0],' +
' ["types", 1],' +
' ["types", 2],' +
' ["types",... |
module.exports = function (ecModel) {
var paletteScope = {};
ecModel.eachSeriesByType('graph', function (seriesModel) {
var categoriesData = seriesModel.getCategoriesData();
var data = seriesModel.getData();
var categoryNameIdxMap = {};
categoriesData.e... |
/*! Summernote v0.8.2 | (c) 2013-2015 Alan Hong and other contributors | MIT license */ |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*
*/
'use strict';
const getDevServer = require('./getDevServer');
import NativeSourceCode from '../../NativeM... |
"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 Vue from 'vue'
import VueRouter from 'vue-router'
import Bookmarks from '../views/Bookmarks.vue'
import Authentication from '../views/Authentication.vue'
import {default as uuid} from 'uuid/v4';
import {PubSub} from '../PubSub';
let ps = new PubSub('net.hochreiner.more-bookmarks', uuid);
Vue.use(VueRouter);
c... |
/**
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
export default function transformer(file, api, options) {
const j = api.jscodeshift;
const printOptions = options.printOptions;
return j(file.source)
.findJSXElements('CircularProgress')
.forEach((path) => ... |
var setData = require('@progress/kendo-angular-intl').setData;
setData({
name: "zgh",
identity: {
language: "zgh"
},
territory: "MA",
numbers: {
symbols: {
decimal: ",",
group: " ",
list: ";",
percentSign: "%",
plusSign: "+"... |
import styled from 'styled-components';
const DropdownContainer = styled.div`
position: relative;
`;
export default DropdownContainer; |
'use strict'
describe('Weather', () => {
let weather
beforeEach(() => {
weather = new Weather();
});
it('gives stormy sometimes', () => {
spyOn(Math, 'random').and.returnValue(1);
expect(weather.isStormy()).toBeTruthy();
});
it('gives not stormy other times', () => {
spyOn(Math, 'rand... |
const userMetadata = {
title: `Jeongyun.log`, // Blog title - Used for display in the navbar and used for SEO.
description: `배우고 기록하고 성장하자.`, //Blog Description - Used for SEO.
author: `Je0ngyun`,
otherSite: `https://github.com/je0ngyun`, // Please enter the address of another site such as Facebook, Twitter, or... |
/**
* Sort questions.
* The requirement is such that the first 2 questions will be the highest liked and then we will show the questions that were created recently.
*
* @param {array} questions
*/
export const sortQuestions = questions => {
// Sort questions by likes and get the top 2.
const mostLikedQuestions... |
import React, {useState} from 'react'
import { Container, Flex } from '../../styles/globalStyles'
import { AccordionHeader, AccordionIcon, AccordionContent, HomeAboutSection, About, Services } from '../../styles/homeStyles';
import { motion } from 'framer-motion';
const accordionIds = [
{
id: 0,
title: "Pre-... |
const {createGovernanceProposal} = require('./EncodeGovernanceProposalAbi')
const createProposalForBurningTokens = async (
governorAlpha,
erc20Token,
timelockAddress,
deployerAddress,
burnAmountWei,
dmgBurner,
wethAddress,
dmgToken,
) => {
console.log('deployerAddress ', deployerAddress);
console.l... |
var void_tests =
[
// NOTE: not (yet?) supporting non-strict eq test for undefined
// expr !== void(...)
function() {
var x : ?string = "xxx";
if (x !== void(0) && x !== null) {
var y : string = x; // ok
}
},
function() {
var x : ?string = "xxx";
if (void(0) !== x && x !== null) {... |
/* eslint-env node */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
podModulePrefix: 'dummy/pods',
environment: environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary ... |
var searchData=
[
['json_20web_20token_20_28jwt_29_20methods_20_28atca_5fjwt_5f_29',['JSON Web Token (JWT) methods (atca_jwt_)',['../a00995.html',1,'']]]
]; |
function map(n, start1, stop1, start2, stop2, withinBounds) {
var newval = (n - start1) / (stop1 - start1) * (stop2 - start2) + start2;
if (!withinBounds) {
return newval;
}
if (start2 < stop2) {
return this.constrain(newval, start2, stop2);
} else {
return this.constrain(ne... |
//# sourceMappingURL=main.92868bf1.chunk.js.map |
/* eslint-disable func-names */
import Connection from './Connection'
class ConnectionPool {
/**
* Initialize a new `ConnectionPool` with `connections`.
* All Connection options are also supported.
*
* @param {Connection|string[]} connections Connections
* @param {object} [options] Options
*/
con... |
module.exports = {
// publicPath: process.env.NODE_ENV === 'production' ? '/sigma-vue' : '/'
publicPath: '/'
} |
const GM = require('./../../dependencies/gm_functions.js');
function clear_page () {
clear_children(document.head);
clear_children(document.body);
}
function clear_children (node) {
while (node.firstChild) {
remove_node(node.firstChild);
}
}
function move_children (donor_node, new_node) {
while (donor_node.fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.