text stringlengths 2 1.04M |
|---|
import { Collapse, Form, Tabs, Card, Button, Modal,message } from "antd";
import "antd/dist/antd.css";
import Axios from 'axios';
import Personaldetails from '../../../../Compositeviews/Personaldetails/Personaldetails';
import Addressdetails from '../../../../Compositeviews/Addressdetails/Addressdetails';
import Loan... |
self.addEventListener('install', function () {
self.skipWaiting()
})
self.addEventListener('activate', function () {
self.registration
.unregister()
.then(function () {
return self.clients.matchAll()
})
.then(function (clients) {
clients.forEach((client) => client.navigate(client.url))
... |
'use strict'
const fs = require('fs')
const path = require('path')
const Sequelize = require('sequelize')
const basename = path.basename(__filename)
const env = process.env.NODE_ENV || 'development'
const config = require(path.join(__dirname, '/../../../config/database.js'))[env]
const db = {}
let sequelize
if (conf... |
'use strict';
const Mailer = require('./mailer');
const shared = require('./shared');
const SMTPPool = require('./smtp-pool');
const SMTPTransport = require('./smtp-transport');
const SendmailTransport = require('./sendmail-transport');
const StreamTransport = require('./stream-transport');
const JSONTransport = requi... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 10V7c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3c-1.1 0-2 .9-2 2v5h1.33l.51 1.53c.1.28.36.47.66.47.3 0 .56-.19.66-.47L5.67 17h12.67l.51 1.53c.09.28.35.47.65.47.3... |
/* Copyright 2016 Mozilla Foundation
*
* 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... |
'use strict';
import _ from 'lodash';
import { ClosingPathContext } from '../../utils';
export default class SemiCircleScale {
constructor(cx, cy, radius, options) {
options = _.defaults({}, options, {
offset: 0
});
this.cx = cx;
this.cy = cy;
this.r = radius;
this.offset = options.o... |
import translations from './translations.json';
import OffTopicTag from './containers/OffTopicTag';
import OffTopicFilter from './containers/OffTopicFilter';
import OffTopicCheckbox from './containers/OffTopicCheckbox';
import reducer from './reducer';
/**
* talk-plugin-offtopic depends on talk-plugin-viewing-options... |
function createElements0JQ(){
$("#contentJQuery").append("<div id='divJQ'></div>")
$("#divJQ").append("<p>(selector).click(function)</p>")
$("#divJQ").append("<button id='btn'>Click me</button>")
$(document).ready(function(){
$("#btn").click(function(){
$("#divJQ").append("<br>")
... |
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
// the BrowserRouter object interacts with the history library
// and decides what to do based on a change inside the url
// the Route object provides configuration to r... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekAndCoptic.js
*
* Copyright (c) 2009-2017 The MathJax Consortium
*
* 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 a... |
let result;
if (a + b < 4) {
result = 'Below';
} else {
result = 'Over';
}
let result = (a + b < 4) ? 'Below' : 'Over';
//another task
let message;
if (login == 'Employee') {
message = 'Hello';
} else if (login == 'Director') {
message = 'Greetings';
} else if (login == '') {
message = 'No login';
} ... |
import flow from 'lodash.flow'
import crio from 'crio'
import shortid from 'shortid'
function updatePayments(invoice) {
const payments = invoice.get(`payments`)
if (!crio.isArray(payments)) return invoice
const updatedPayments = payments
.filter(payment => payment.message || payment.date || payment.amount)
... |
var socket, Codename = io('/codename', {forceNew:true});
var cardsTable = [], libraryOfImages = [], imagesOnDisplay = [], totalImages = 0;
var animalImages = [], animeImages = [], cartoonImages = [], gameImages = [], additionalImages = [];
var spriteRatioWidthtoHeight =1, spriteRatioHeighttoWidth=1;
var Width, Height, ... |
var struct_sl_wlan_get_network_list_command__t =
[
[ "Count", "struct_sl_wlan_get_network_list_command__t.html#a97a328d08e84d5c2904189abc7478988", null ],
[ "Index", "struct_sl_wlan_get_network_list_command__t.html#a4aabef62c50245f5015caa15961c5aa6", null ],
[ "padding", "struct_sl_wlan_get_network_list_com... |
import styled from 'styled-components';
import { palette } from 'styled-theme';
import { borderRadius, transition } from '@iso/lib/helpers/style_utils';
import WithDirection from '@iso/lib/helpers/rtl';
const WDGithubResultListStyleWrapper = styled.div`
width: 100%;
display: flex;
flex-direction: column;
.iso... |
var classtranslate =
[
[ "translate", "classtranslate.html#a5f381bd7c3525e742f5f2ab8deba7038", null ],
[ "~translate", "classtranslate.html#ad01524bcb0a9634fd44fbbc8a891ebfa", null ]
]; |
import productActions from '../../constants/products';
export default function fetchProductSuggestions(context, payload, done) {
context.dispatch(productActions.PRODUCTS_SUGGESTIONS);
context.api.products.find({collections: payload.metadata.mainCollection}).then(function successFn(result) {
context.dis... |
module.exports = "bilge" |
<rtl code>
var m = function (){
var cs1 = "abc" + "cde";
var cs2 = "\"" + "\"";
var s = '';var s1 = '';var s2 = '';
var b = false;
var i = 0;
function p1(a/*ARRAY OF CHAR*/){
}
function pChar(c/*CHAR*/){
}
function pString(s/*STRING*/){
var r = s;
}
function pStringByRef(s/*VAR STRING*/){
s.set("abc");
}
s = s1 +... |
import { camelizeKeys, decamelizeKeys } from 'humps';
import pickBy from 'lodash/pickBy';
import isEmpty from 'lodash/isEmpty';
import { normalize } from 'normalizr';
import { RSAA, getJSON } from 'redux-api-middleware';
import constants from '../constants/AppConstants';
function buildAPIUrl(endpoint, params) {
let... |
var summernoteComponent = {
replace: true,
inherit: false,
template: "<textarea class='form-control' :name='name'></textarea>",
props: {
model: {
required: true,
twoWay: true
},
language: {
type: String,
required: false,
... |
'use strict';
var _ava = require('ava');
var _ava2 = _interopRequireDefault(_ava);
var _reduxAva = require('redux-ava');
var _controller = require('../src/controller');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _ava2.default)('setUsername', (0, _reduxAva.a... |
const path = require('path');
const fs = require('fs');
const os = require('os');
const childProcess = require('child_process');
const log = require('electron-log');
const Store = require('electron-store');
const WalletShellSession = require('./ws_session');
const WalletShellApi = require('./ws_api');
const uiupdater =... |
//sales chart start
var options = {
series: [
{
name: "Desktops",
data: [18, 30, 25, 51, 34, 40, 34],
},
],
chart: {
height: 142,
type: "line",
zoom: {
enabled: false,
},
toolbar: {
show: false,
},
dropShadow: {
enabled: true,
bottom: 2,
... |
import axios from '@/libs/api.request';
export const uploadImg = formData => {
return axios.request({
url: 'image/upload',
data: formData
})
}
export const getDragList = () => {
return axios.request({
url: 'get_drag_list',
method: 'get'
})
}
export const getTableData = () => {
return axios.req... |
import React from 'react';
const App = () => {
return (
);
}
export default App; |
$(function() {
var webSiteType = $("#issue").val();
$('#dg').datagrid({
url: 'article/queryPageIssueArticle?issueState=已发布&webSiteType='+webSiteType,
method: 'get',
striped: true,
pagination: true,
pageNumber: 1,
nowrap: true,
rownumbers:true,
auto... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-ary-rest.case
// - src/dstr-binding/default/cls-expr-gen-meth-dflt.template
/*---
description: Rest element containing a rest element (class expression method (default parameter))
esid: sec-class-definitions-runtime-... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/ui/core/Renderer', 'sap/f/DynamicPageTitleRenderer'],
function(Renderer, DynamicPageTitleRenderer) {
"use strict";
var ObjectPageDynamicHeader... |
import React from "react"
import { Box } from "@material-ui/core"
import styled from "styled-components"
import WrapTypo from "../components/WrapTypo"
const Movie = () => {
return (
<Box bgcolor="#211D1A" maxWidth="450px" margin="auto">
<Box width="90%" margin="auto">
<Box mt={4} mb={4}>
... |
const fs = require('fs')
const lines = fs.readFileSync(__dirname + '/aoc2021-19.txt', 'utf-8').split(/\r?\n/);
const scanners = [];
let currentScanner = null;
lines.forEach(l => {
if (l.length <= 1);
else if (l.startsWith('---')) {
currentScanner = [];
scanners.push(currentScanner);
} else currentScanne... |
/**
* @fileoverview Rule to enforce a particular function style
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../sha... |
/**
* Copyright 2018 The WPT Dashboard Project. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
import '../node_modules/@polymer/polymer/lib/elements/dom-repeat.js';
import { html } from '../node_modules/@polymer/polymer/polymer-element.... |
var _ = require('../util').lodash,
marked = require('marked'),
sanitizeHtml = require('sanitize-html'),
escapeHtml = require('escape-html'),
E = '',
DEFAULT_MIMETYPE = 'text/plain',
MARKDOWN_DEFAULT_OPTIONS = {
renderer: new marked.Renderer(),
gfm: true,
tables: true,
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var CircumferencePoint = require('./CircumferencePoint');
var FromPercent = require('../../math/FromPercent');
var MAT... |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
// opts - parent, list, doc, email
frappe.views.CommunicationList = Class.extend({
init: function(opts) {
this.comm_list = [];
$.extend(this, opts);
if(this.doc.__islocal) {
$(this.parent).empty();
re... |
/*eslint-disable*/
import React from "react";
// reactstrap components
import { Container } from "reactstrap";
// core comments
function PresentationHeader() {
return (
<>
<div className="wrapper">
<div
className="page-header section-dark"
style={{
backgroundImage:
... |
const readline = require("readline")
// Create readline interface
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
})
// Function to call once the user chose if they want the sequence to end on the Nth number
const numQuestion = stop => {
// Declare F Array with the init... |
var pConfig = require('./../../../utils/protractor.configuration.js');
var config = pConfig.getConfig({
configFileName: 'recordset/histogram-facet.dev.json',
chaiseConfigFilePath: 'test/e2e/specs/delete-prohibited/chaise-config.js',
specs: [
"histogram-facet.spec.js"
],
setBaseUrl: function... |
/*
* TShirtUomo Messages
*
* This contains all the text for the TShirtUomo container.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.containers.TShirtUomo';
export default defineMessages({
header: {
id: `${scope}.header`,
defaultMessage: 'This is the TShirtUomo container!',
... |
import definitions from 'Schema/definitions';
const NAME = 'textColor';
export default {
[NAME]: Object.assign({
title: NAME,
description: 'Navigation link color',
}, definitions.color)
}; |
/* Copyright (c) 2019-2020 Digital Dream Labs. See LICENSE file for details. */
var { RtsCliUtil } = require("./rtsCliUtil.js");
var { Anki } = require("./messageExternalComms.js");
if (!Rts) {
var Rts = Anki.Vector.ExternalComms;
}
class RtsV2Handler {
constructor(vectorBle, sodium, sessions) {
this.vectorB... |
/**
* Default model settings
* (sails.config.models)
*
* Your default, project-wide model settings. Can also be overridden on a
* per-model basis by setting a top-level properties in the model definition.
*
* For details about all available model settings, see:
* https://sailsjs.com/config/models
*
* For more... |
const express = require('express')
var bodyParser = require('body-parser');
const spawn = require('child_process').spawn;
var fs = require('fs');
const app = express()
app.use(express.static('public'))
app.use('/audio', express.static('audio'))
app.use(bodyParser.json()); // for parsing application/json
app.listen(30... |
const cleanData = getKeys => {
let cleanedData = getKeys;
return cleanedData = cleanedData.filter(item => item.guid !== null);
}
export {
cleanData
} |
var synchd = require('./synchronized-bind');
exports['functions executed in sequence and arguments passed to done'] = {
'multiple calls with objects as scope': function(test){
var self = this;
var scopes = {
scopeA: {},
scopeB: {}
};
var completedOrder = [];
test.expect(9);
sy... |
"use strict";
//
// Render a chart to a particular element on the page.
//
function renderChart (bindto, data, size) {
var chart = c3.generate({
bindto: bindto,
size: size,
data: data, // The entire data object is now being passed through from Node.js.
transition: {
dura... |
import styled from "styled-components"
import { Margins, FontSizes, Colors } from "../../../constants"
export const Container = styled.div`
grid-area: gridfixedbottom;
height: 100%;
width: 100%;
box-sizing: border-box;
padding: ${Margins.BrowserSmall};
transform: skew(-15deg, 0deg) translateX(-6.5%);
bac... |
/*jslint browser: true, sloppy: true */
/*global UNIVERSE, THREE, Constants, CoordinateConversionTools, MathTools */
/**
The Earth positioned at the center of the Universe
@constructor
@param {UNIVERSE.Universe} universe - A Universe instance to draw the Earth in
@param {UNIVERSE.EarthExtensions} earth... |
import React from "react"
import { SEO, Layout, News } from "../components"
const IndexPage = () => (
<Layout>
<SEO title="Noticias" />
<News />
</Layout>
)
export default IndexPage |
const validator = require("./password-validator");
const required = [
{ password: " ", expected: validator.messages.required },
{ password: "", expected: validator.messages.required },
{ password: null, expected: validator.messages.required },
];
const length = [
{ password: "aB1}", expected: validator.mess... |
import React from 'react';
import './Footer.scss';
import FooterNavigation from '../FooterNavigation/FooterNavigation';
export default () => (
<footer className="footer">
<div className="footer__wrapper">
<div className="footer__section">
<p className="p p--white">© Alex Mayer 2018</p>
<FooterNavigation ... |
import Vue from "vue";
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
library.add(fas);
Vue.component("font-awesome-icon", FontAwesomeIcon); |
/**
* Show or hide desired white gradients in a
* scrolled list generated with jScrollPane.
*
* cdb.common.ScrollPaneGradient({
* list: scrollpane element
* })
*
*/
cdb.common.ScrollPaneGradient = cdb.core.View.extend({
initialize: function() {
if (!this.options.list) {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcar... |
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
contractABI=JSON.parse('[{"constant":false,"inputs":[],"name":"getInitialAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],... |
'use strict';
export default class BaseResource {
constructor(biz) {
this.biz = biz;
}
createService(name) {
return this.biz.service(name);
}
extractSort(query) {
let sort = {};
if (!query['sort_key']) {
return sort;
}
sort[query['sort_key']] = (query['sort_type'] && query... |
import React, { Component } from 'react';
import {DataTypes} from '../utilities/enums';
import FieldUI from './fieldUI';
import FieldContainer from '../containers/container_fieldui'
class JsonForm extends Component {
getRowData(displayMarix, rowIndex)
{
let requestedRow = displayMarix.filter( (row) =>... |
[{"Owner":"Pryme8","Date":"2018-08-09T20:25:17Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI might be tripping but I have a scene where on my iPhone 6s it seems to lag a little bit when in portrait orientation vs when it’s in landscape. \n_lt_/p_gt_\n\n_lt_p_gt_\n\tAnyone else run across this... |
import * as React from "react";
function IconSelector({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg className="icon icon-tabler icon-tabler-selector" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="round" strokeLinejoi... |
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var Route = require('./route');
var Layer = require('./layer');
var methods = require('methods... |
describe(`Client only paths`, () => {
const routes = [
{
path: `/client-only-paths`,
marker: `index`,
label: `Index route`,
},
{
path: `/client-only-paths/page/profile`,
marker: `profile`,
label: `Dynamic route`,
},
{
path: `/client-only-paths/not-found`,
... |
'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]; } } }... |
const assert = require("assert");
const sleep = require("../helpers/utils/sleep");
const bootstrap = require("../helpers/contract/bootstrap");
const confirmGasPrice = require("./lib/confirmGasPrice");
const initializeTestProvider = require("../helpers/susyweb/initializeTestProvider");
const randomInteger = require("../... |
import React from 'react';
import { Link } from 'react-router-dom';
import ReactMarkdown from 'react-markdown';
import { usePosts } from '../../contexts/PostContext';
import '../components.css';
function PostList() {
const postArray = usePosts();
let array = [...postArray];
if (array.length > 3) {
array.spl... |
(function($) {
$.widget("ui.combobox", {
_create: function() {
var self = this;
var select = this.element;
select.hide();
// process select options into an array
var opts = new Array();
$('option',select).each(function(index) {
var opt = new Object();
opt.value = $(this).val();
opt.... |
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.charting.PlotArea");
dojo.require("... |
import {ManagerAPIGet} from "./mangerAPI";
export function getPhone(token, phoneNumber) {
return ManagerAPIGet(`/Phone/` + phoneNumber, {headers: {active,'X-Token': token, contentType: 'application/json'}})
} |
/* eslint-disable max-len */
const DefaultConfigurations = {
direction: 'ltr',
palette: {
primary: {
// light: will be calculated from palette.primary.main,
main: '#006e9c',
// dark: will be calculated from palette.primary.main,
// contrastText: will be ca... |
const request = require('request');
const jwt = require('jwt-simple');
function Anvil(url) {
const createJwtToken = (props) => {
props = props || {};
const claims = {
iat: props.issuedAt || Math.floor((Date.now() / 1000)),
exp: props.expire || Math.floor((Date.now() / 1000) + 300),
iss: pr... |
/*
Author: Adam Carlton
Project #4
This JS will allow for a user to move around a sprite in the canvas as well as display a video when the sprite reaches a certain location in the canvas
*/
//my sprite sheet and video source
const mySprite = "ogre.png"
let videoPlaying = false
let infiniteFun = false
//canvasInfo
le... |
import React, { useEffect, memo, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import get from 'lodash/get';
import debounce from 'lodash/debounce';
import isEmpty from 'lodash/isE... |
if(!naver){
/**
*
* @namespace
*/
var naver = {};
}
/**
*
* @namespace
*/
naver.model = naver.model || {};
/**
*
* @namespace
*/
naver.collection = naver.collection || {};
/**
*
* @namespace
*/
naver.view = naver.view || {}; |
/**
* @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
*/
import { StringMapWrapper } from '../facade/collection';
import { StringWrapper, isBlank, isPresent } from '../facade... |
'use strict'
let n = 0
let resultado = 0
print("Digite um numero: ");
n = Number(readline())
function n_perfeito(n){
let soma = 0
for (let index = 1; index <= n; index++) {
if (n % index == 0) {
soma = soma + index
}
}
return soma / 2
... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.0.7 (2019-06-05)
*/ |
const data = require('../data/user')
module.exports = {
'login page renders elements': function (browser) {
const loginPage = browser.page.LoginPage()
loginPage
.navigate()
.waitForElementVisible('@app', 500)
.assert.visible('@usernameInput')
.assert.visible('@passwordInput')
.... |
'use strict';
var assert = require('chai').assert;
var should = require('chai').should();
var expect = require('chai').expect;
var Crypt = require('../lib/crypt');
var helpers = require('../lib/helpers');
var RSA = require('../lib/rsa');
describe('RSA', function() {
var options = {
saveKeys: false,
... |
'use strict';
const cfg = require('../config');
const twilio = require('twilio')(cfg.twilioAccountSid, cfg.twilioAuthToken);
/**
* Gets or creates a new assistant for the autopilot
* @param {string} name
* @param {string} baseUrl
* @param {TwilioClient} client
* @return {Promise<AssistantInstance>}
*/
async fun... |
const mix = require('laravel-mix');
const webpack = require('webpack');
const tailwindcss = require('tailwindcss')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a cl... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {PostMessageAPIClient} from 'chrome-untrusted://projector/js/post_message_api_client.m.js';
import {RequestHandler} from 'chrome-untrusted://projec... |
// COPYRIGHT © 2020 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedB.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* 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
*
* ... |
/*
* Copyright (c) 2015-2017, Michael A. Updike All rights reserved.
* Licensed under the BSD-3-Clause
* https://opensource.org/licenses/BSD-3-Clause
* https://github.com/opus1269/photo-screen-saver/blob/master/LICENSE.md
*/
window.app = window.app || {};
/**
* Controller for the screen saver
* @namespace
... |
const demo = new autoComplete({
selector: '#auto-complete',
minChars: 1,
source: function(term,suggest){
term = term.toLowerCase();
var suggestions = [];
for (i=0;i<data.length;i++) {
if (~data[i].code.toLowerCase().indexOf(term)) {
suggestions.push(data[... |
// Modules
var winston = require( 'winston' );
var elastical = require( 'elastical' );
var winston_es = require( 'winston-elasticsearch' )
var http = require( 'http' );
// Be advised, the default ES port is 9200, this is for demonstration purposes.
var _instance = new winston_es({
level: 'info',
... |
/* ************************************************************************************************
* *
* Please read the following tutorial before implementing tasks: *
* https://develope... |
import React from "react";
import agent from "../../agent";
import {connect} from "react-redux";
import {Link} from "react-router-dom";
//Na componentDidMount fetchamo sve poslove
class Modal extends React.Component {
constructor(props){
super(props);
this.state={
username: '',
... |
import { Movement } from 'wasm-snake-game'
const MOVEMENT_KEYS = {
[Movement.TOP]: [87, 38],
[Movement.RIGHT]: [68, 39],
[Movement.DOWN]: [83, 40],
[Movement.LEFT]: [65, 37]
}
const STOP_KEY = 32
export class Controller {
constructor(onStop = () => { }) {
// passing which from rust which ... |
import meta from 'docs/components/image/meta';
import Example from 'docs/components/image/example';
import content from 'docs/components/image/content.md';
import source from '!raw-loader!./example';
export default {
meta,
source,
content,
example: Example,
}; |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Member = mongoose.model('Member');
/**
* Globals
*/
var user, member;
/**
* Unit tests
*/
describe('Member Model Unit Tests:', function() {
beforeEach(function(done) {
... |
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const Key = new Schema({
id : {type : String, unique:[ true]},
name : { type : String,unique:[ true, 'name already exists'], required:[true, ' this field is required']},
key : { type: String, unique:[ true, 'key already exists'], requi... |
import { RESOURCE_TYPE } from '../domain/constants.js';
import FolderIcon from '../components/icons/files/folder-icon.js';
import FilePdfIcon from '../components/icons/files/file-pdf-icon.js';
import FileTextIcon from '../components/icons/files/file-text-icon.js';
import FileImageIcon from '../components/icons/files/fi... |
// eslint-disable-next-line
require = require('esm')(module /*, options */)
module.exports = require('./main.js') |
/*
* Copyright (C) 2010 Google Inc. 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 copyright
* notice, this list of conditions ... |
function ContextMenu(menu, options){
var self = this;
var num = ContextMenu.count++;
this.menu = menu;
this.contextTarget = null;
if(!(menu instanceof Array)){
throw new Error("Parameter 1 must be of type Array");
}
if(typeof options !== "undefined"){
if(typeof options !== "object"){
throw new Error("P... |
import React from 'react'
import PropTypes from 'prop-types'
import getPluginApi from '_/plugin-api'
import config from '_/plugin-config'
import DataProvider from '_/components/helper/DataProvider'
import { webadminToastTypes } from '_/constants'
import { engineGet, ansiblePlaybookPost } from '_/utils/fetch'
import {... |
/**
* JavaScript code for the Location view.
*
* Created by Branden Ogata on 4/29/2015.
*/
/*
* Recursive merge sort.
*
* Parameters:
* toSort The list of jQuery results to sort.
*
* Return:
* The sorted array.
*
*/
function mergeSort(toSort) {
var sorted = [];
// If the length of toSort is l... |
const FluidImageFragment = `
fragment GatsbyImageSharpFluid_tracedSVG on ImageSharpFluid {
tracedSVG
aspectRatio
src
srcSet
sizes
}
`
module.exports.FluidImageFragment = FluidImageFragment |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.