text stringlengths 2 1.04M |
|---|
import React, { Component, PropTypes } from 'react';
import FacetValue from './FacetValue';
class FacetValueList extends Component {
constructor(props) {
super(props);
this.renderValue = this.renderValue.bind(this);
this.childClickCallback = this.childClickCallback.bind(this);
this.checkSelected = th... |
/** @jsx jsx */
import { css, jsx } from "@emotion/core";
import { Link } from "gatsby";
import PropTypes from "prop-types";
import Logo from "./logo";
import { colors } from "../style";
const Header = ({ siteTitle }) => (
<header css={headerWrapper}>
<div css={headerInnerWrapper}>
<Link css={styledLogoLin... |
const crypto = require('crypto');
module.exports = function GenerateUniqueId() {
return crypto.randomBytes(4).toString('HEX');
} |
import React from 'react'
import styled, { keyframes } from 'react-emotion'
const spin = keyframes`
100% {
transform: rotate(360deg);
}
`
const Spinner = styled('div')`
margin: 10px auto;
width: 40px;
height: 40px;
border-radius: 100%;
box-sizing: border-box;
border: 4px solid var(--color-primary-... |
/* @flow strict-local */
import React, { PureComponent } from 'react';
import type { TextStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet';
import type { UserPresence, UserStatus, Dispatch } from '../types';
import { connectFlowFixMe } from '../react-redux';
import { getPresence, getUserStatus } from '.... |
window.Vue = require('vue');
//Vue Particles
import VueParticles from "vue-particles";
Vue.use(VueParticles);
//Bootstrap JS
require('./bootstrap');
//Vue Router
require('./router');
$(document).ready(function() {
$('#summernote').summernote({
tabsize: 2,
height: 400
});
}); |
import Icon from '../components/Icon.vue'
Icon.register({
wrench: {
width: 512,
height: 512,
paths: [
{
d: 'M507.7 109.1C505.5 100.1 494.2 97 487.6 103.6L413.3 177.9 345.4 166.6 334.1 98.8 408.4 24.4C415 17.8 411.9 6.5 402.8 4.2 355.4-7.5 303.2 5.1 266.2 42.2 226.5 81.8 215.6 139.3 232.1 18... |
//snippet-sourcedescription:[ec2_describeinstances.js demonstrates how to retrieve information about one or more Amazon EC2 instances.]
//snippet-keyword:[JavaScript]
//snippet-keyword:[Code Sample]
//snippet-keyword:[Amazon EC2]
//snippet-service:[ec2]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[2018-06-... |
'use strict';
const TestWrapper = require('test/util/TestWrapper');
const StartApply = require('app/steps/ui/screeners/startapply');
const StopPage = require('app/steps/ui/stoppage');
const testCommonContent = require('test/component/common/testCommonContent.js');
const commonContent = require('app/resources/en/transl... |
/*
* bootstrap-table - v1.10.1 - 2016-02-17
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2016 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(a){return"每页显示 "+a+... |
var mongoose = require('mongoose');
module.exports = function(uri) {
mongoose.connect(uri);
mongoose.connection.on('connected', function() {
console.log('Mongoose! Conectado em ' + uri);
});
mongoose.connection.on('disconnected', function() {
console.log('Mongoose! Desconectado de ' + uri);
});
mongoo... |
/*
* Copyright 2011 eBay Software 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 o... |
/*! jQuery Validation Plugin - v1.14.0 - 6/30/2015
* http://jqueryvalidation.org/
* Copyright (c) 2015 Jörn Zaefferer; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a, b){return this.o... |
import { gql } from "@apollo/client";
export const PRODUCT_BY_SLUG_QUERY = gql` query Product($slug: ID!) {
product(id: $slug, idType: SLUG) {
id
databaseId
averageRating
slug
description
shortDescription
galleryImages {
nodes {
id
title
altText
... |
class Connection {
#connected;
#port;
#msgHandler = null;
#onDisconnectHandler = null;
constructor(port) {
const that = this;
this.#connected = true
port.onDisconnect.addListener((port) => {
that.onDisconnect(port);
})
port.onMessage.addListener... |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'preview', 'ku', {
preview: 'پێشبینین'
} ); |
import {post, get, del} from "@/plugin/utils/request";
export const k8sCluster = (params) => post('/api/v1/k8s/cluster', params)
export const fetchK8SCluster = (params) => get('/api/v1/k8s/cluster', params)
export const clusterSecret = (params) => get('/api/v1/k8s/cluster/secret', params)
export const delK8SCluster = ... |
// COPYRIGHT © 201 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 ... |
import chai from 'chai';
import { describe, it } from 'mocha';
import Request from '../src/Request';
chai.should();
describe('Request', () => {
it('should parse Message and Listener into request', () => {
const msg = {
type: 'message',
value: {
text: 'something',
mentioned: false
... |
/* eslint-disable quotes */
module.exports = function createCommonsChunkPlugin(chunk) {
return (
"new webpack.optimize.CommonsChunkPlugin({name:" + "'" + chunk + "'" +
",filename:" + "'" + chunk + "-[hash].min.js'})"
);
}; |
const path = require('path');
module.exports = {
port: process.env.PORT || 8081,
db: {
database: process.env.DB_NAME || 'alms',
user: process.env.DB_USER || 'alms',
password: process.env.DB_PASS || 'alms',
options: {
dialect: process.env.DIALECT || 'sqlite',
host: process.env.HOST || 'l... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{348:function(t,s,a){},421:function(t,s,a){"use strict";a(348)},589:function(t,s,a){"use strict";a.r(s);a(421);var r=a(25),n=Object(r.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.s... |
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);retur... |
import React from 'react';
import './index.css';
import { chooseTransformation } from './EncryptionProgram';
import Input from './components/Input'
import Settings from './components/Settings'
import EncryptSwitch from './components/EncryptSwitch'
import EncryptType from './components/EncryptType'
import Output from '.... |
const {spawn} = require('child_process');
let reBuilding = false;
let reBuildCode = 0;
let reBuildData = '';
let waitReBuild = false;
const cmdStr = 'cd ./public/home && npm install --registry=https://registry.npm.taobao.org/ && npm run export-cb && cd ../m && npm install --registry=https://registry.npm.taobao.org/ &&... |
function navBar(strData){
var data;
if(typeof(strData) == "string"){
var data = JSON.parse(strData); //部分用户解析出来的是字符串,转换一下
}else{
data = strData;
}
var ulHtml = '<ul class="layui-nav layui-nav-tree">';
for(var i=0;i<data.length;i++){
if(data[i].checked){
if(data[i].status==1){
ulHtml += '<li data-_id="... |
define([], function () {
'use strict';
const Z_FIXED = 4;
const Z_BINARY = 0;
const Z_TEXT = 1;
const Z_UNKNOWN = 2;
function zero(buf) {
let len = buf.length;
while (--len >= 0) {
buf[len] = 0;
}
}
const STORED_BLOCK = 0;
const STATIC_TREES = 1;
... |
class Score {
player1Score;
player2Score;
constructor() {
this.player1Score = 0;
this.player2Score = 0;
}
}
export { Score }; |
import React, { useState } from 'react'
import './activationButton.scss'
/** @type {{ event: string; event_action: string; event_label: string; }[]} */
export const ActivationButton = ({
// @ts-ignore
activate,
// @ts-ignore
deactivate,
// @ts-ignore
initialState,
buttonTexts = ['Activate map', 'Activate... |
(function () {
'use strict';
// Thanks underscore
var debounce = function (func, wait, immediate) {
var timeout, args, context, timestamp, result;
var later = function () {
var last = Date.now() - timestamp;
if (last < wait && last > 0) {
timeout = setTimeout(later, wait - last);
... |
/**
* @NApiVersion 2.x
* @NScriptType UserEventScript
* @NModuleScope SameAccount
*/
define(['N/email', 'N/record', 'N/search'],
/**
* @param {email} email
* @param {record} record
* @param {search} search
*/
function(email, record, search) {
/**
* Function definition to be triggered before record... |
import axios from 'axios';
const apiKey = '0240b5b76e694a97b5bfa18f38c7c2bc';
axios
.interceptors
.request
.use(request => {
console.log('Starting Request', request)
return request
})
axios
.interceptors
.response
.use(response => {
console.log('Response:', response)
return response
}... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
d: "M3 19h18V5H3v14zm9-13c4.42 0 8 2.69 8 6s-3.58 6-8 6-8-2.69-8-6 3.58-6 8-6z",
opacity: ".3"
}), h("path", {
d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9... |
const assert = require('assert')
const api = require('./../api')
let app = {}
const MOCK_HEROI_CADASTRAR = {
name: 'Chapolin Colorado',
poder: 'Marreta Bionica'
}
const MOCK_HEROI_INICIAL = {
nome: "Gaviao Negro",
poder: 'A mira'
}
let MOCK_ID = ''
describe('Suite de testes da API Heroes', function ... |
/*! Tablesaw - v3.1.2 - 2019-03-19
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2019 Filament Group; Licensed MIT */
/*! Shoestring - v2.0.0 - 2017-02-14
* http://github.com/filamentgroup/shoestring/
* Copyright (c) 2017 Scott Jehl, Filament Group, Inc; Licensed MIT & GPLv2 */
(function( factory ) {
if... |
/* Copyright 2020 Avetti.com Corporation - All Rights Reserved
This source file is subject to the Avetti Commerce Front End License (ACFEL 1.20)
that is accessible at https://www.avetticommerce.com/license */
import { SHOW_CONFIRM, HIDE_CONFIRM } from "../types.js";
const initialState = {
showConfirm: false,
conf... |
* jQuery JavaScript Library v3.2.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2017-03-20T18:59Z
*/
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com... |
import createStatementData from '../createStatement'
import util from 'util'
import fs from 'fs'
import plays from '../../assets/plays.json'
import invoices from '../../assets/invoices.json'
// not clear how to start this in node
var invoice = invoices[0]
function createTestJson() {
var actual = createStateme... |
import { combineReducers } from 'redux';
import woofchiReducer from './woofchiReducer';
export default combineReducers({
woofChi: woofchiReducer,
}); |
//messages.js
module.exports = {
click_text: 'Already have an account? Click to sign-in',
create_account_text: 'Create account',
welcome_text: 'Welcome to easyWallet!'
} |
var WrapperView = require("./card_wrapper_view");
var CollectionView = Ember.CollectionView.extend({
tagName:"ul",
classNames: ["sortable"],
classNameBindings:["isHovering:ui-sortable-hover"],
attributeBindings: ["style"],
style: Ember.computed.alias("controller.style"),
content: Ember.computed.alias("cont... |
// Globals:
// target: { x, y }
// renderer: THREE.WebGLRenderer
(function () {
var interval = -1;
function clamp(value, min, max) {
return Math.min(Math.max(value, min), max);
}
function clamp_d(value) {
return clamp(value, -30, 30);
}
function pause_idle_animation() {
IDLE = false;
clea... |
//** Import Modules */
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import { Route, Switch } from 'react-router-dom';
import { useHistory } from 'react-router-dom';
import axios from 'axios';
//** Import Components */
import { Header } from '../../common';
import { NotFoun... |
// Generated by CoffeeScript 1.7.1
(function() {
var bom, builder, events, isEmpty, processName, processors, sax,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = chi... |
//The first two integers are the game screen dimensions (x, y).
var game = new Phaser.Game(800, 600, Phaser.AUTO, '');
//Add each state. Casual name when we call it and an official name.
game.state.add('boot', bootState);
game.state.add('load', loadState);
game.state.add('menu', menuState);
game.state.add('play', play... |
const initialState = {
userInfo:{},
classList:[]
};
const getters = {
getUserInfo:(state, getters)=>{
return state.userInfo;
},
getClassList:(state, getters)=>{
return state.classList;
},
};
const actions = {
SetUserInfo({ commit, state },data) {
commit('SETUSERINFO',data);
},
SetClassL... |
module.exports = {
testEnvironment: "jsdom",
coverageDirectory: "./coverage/",
coverageReporters: ["json"],
collectCoverage: true,
collectCoverageFrom: ["packages/**/src/*.(ts|tsx)"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
modulePathIgnorePatterns: ["<rootDir>/examples"],
transform: {
"^.... |
import React from 'react'
export const Error = () => {
return (
<div className="alert alert-danger">
<strong>Something went wrong</strong>
</div>
)
} |
import * as React from 'react'
export default class PauseIcon extends React.Component {
render () {
return (
<svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" width="40" height="48" viewBox="0 0 40 48">
<g fillRule="evenodd">
<path d="M2 0L14 0C15.1 0 16 0.... |
Page({
/**
* 页面的初始数据
*/
data: {
timeInfo: '',
on_stop: {},
off_stop: {}
},
onLoad: function() {
this.setData({
timeInfo: '2018年10月3日',
on_stop: {
name: '平安金融中心'
},
off_stop: {
name: ... |
import expect from 'expect';
import html from '../src/html';
describe('html util', () => {
it('htmlEscape', () => {
const original = '<div>"This"</div>';
const escaped = '<div>"This"</div>';
expect(html.htmlEscape(original))
.toEqual(escaped);
});
it('htmlUnescape', () => ... |
/* eslint-disable flowtype/require-valid-file-annotation */
import { flushdb } from "../test/support";
import { Document } from "../models";
import { buildDocument, buildCollection, buildTeam } from "../test/factories";
beforeEach(flushdb);
beforeEach(jest.resetAllMocks);
describe("#getSummary", () => {
test("shoul... |
'use strict';
const { Types } = require('mongoose');
const { ObjectId } = Types;
const checkId = id => ObjectId.isValid(id);
const checkArrayString = arr =>
!arr.map(item => typeof item === 'string').includes(false);
module.exports = { checkId, checkArrayString }; |
const express = require('express');
const response = require('../utils/response');
const policies = require('../config/policies');
const models = require('../models');
const avatar = require('../utils/avatar');
const PDFGenerator = require('../utils/pdf-generator');
const moment = require('moment');
const router = exp... |
import { PerspectiveCamera } from "three";
import State from "./state";
class TrackingCamera extends PerspectiveCamera {
constructor() {
super(75, window.innerWidth / window.innerHeight, 0.1, 10000);
}
Update() {
if (!State.isXRSession) return;
this.matrixWorld.decompose(this.position, this.quaterni... |
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
'react-app',
],
parserOptions: {
parser: 'babel-eslint',
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
semi: 'off',
'import/prefer-defa... |
import axios from 'axios'
import React, { Component } from 'react'
import ApiFavData from './ApiFavData'
export class FavPage extends Component {
constructor() {
super()
this.state = {
favData: [],
showFavData: false
}
}
componentDidMount = () => {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var checkDecoratorArguments_1 = require("./utils/checkDecoratorArguments");
var decorateHandler_1 = require("./decorateHandler");
var registerSource_1 = require("./registerSource");
var createSourceFactory_1 = require("./createSourceFactory");... |
import Fetcher from './main'
Object.freeze(Fetcher)
export default Fetcher |
jest.dontMock('./NewspaperArticleForm');
import NewspaperArticleForm from './NewspaperArticleForm';
function setup(testProps = {}) {
const props = {
...testProps,
submitting: testProps.submitting || false, // : PropTypes.bool,
};
return getElement(NewspaperArticleForm, props);
}
describe(... |
/**
* Copyright (c) Human Brain Project
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from "react";
import View from "./_View";
import { GenericList, ActionIcon } from "hbp-quickfire";
import { Col, Row } from "react-bo... |
/* ------------------------------------------------------------------------------
*
* # D3.js - stacked and multiple bars
*
* Demo d3.js bar chart setup with animated transition between stacked and multiple bars
*
* Version: 1.0
* Latest update: August 1, 2015
*
* ------------------------------------------... |
import React from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
// import ProjectHeaderContainer from '../../containers/ProjectHeaderContainer';
import Header from '../../../../components/navigation/Header';
import ProjectFooterContainer from '../../containers/ProjectFooterContainer';
import './ProjectNo... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.oc');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Apondre un comentari";
Blockly.Msg.CHANGE_VALUE_TITLE = "Modificar la valor :";
Blockly.Msg.CLEAN_UP = "Netejar los blòts";
Blockly.Msg.COLLAPSE_ALL = "Redu... |
/**
* @hello.js
*
* HelloJS is a client side Javascript SDK for making OAuth2 logins and subsequent REST calls.
*
* @author Andrew Dodson
* @website https://adodson.com/hello.js/
*
* @copyright Andrew Dodson, 2012 - 2015
* @license MIT: You are free to use and modify this code for any use, on the condition tha... |
//# sourceMappingURL=13.e4b95eb2.chunk.js.map |
import { quad, block } from './helpers'
const lightMaterial = {
lambertian: {
// albedo: [1, 1, 1],
albedo: [0, 0, 0],
// emittance: [20, 15, 10]
emittance: [10, 10, 10]
}
}
const skyMaterial = {
lambertian: {
// albedo: [0.2, 0.2, 0.2],
albedo: [0, 0, 0],
emittance: [0xdd / 255, 0xe... |
const should = require('should');
const sinon = require('sinon');
const Promise = require('bluebird');
const errors = require('@tryghost/errors');
const models = require('../../../core/server/models');
const permissions = require('../../../core/server/services/permissions');
const validation = require('../../../core/se... |
(function(){
var who = window.who || (window.who = {});
who.wikitoc = function(){
var height = 600,
maxRectWidth = 30,
oneDayPixel = 0.5,
x2,
allDates,
allDatesString,
morePixel,
dispatch = d3.dispatch("clicked");
function wikitoc(selection){
selection.each(functio... |
//code from carlos' grammar tests need to modify
import assert from "assert"
import ast from "../src/ast.js"
// Programs expected to be syntactically correct
const syntaxChecks = [
["print statements", 'reveal "Place your bets"'],
["integer declaration", "chip x: 5"],
["string declaration", 'stringBet y: "hello... |
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = function (config, options) {
config = config || {};
if (!options.isDev) {
config.minify = {
minimize: true,
removeComments: true,
collapseWhitespace: true,
minifyCSS: false,
minifyJS: true,
removeScrip... |
/**
* @param {any} props
*/
const FreeIcon = (props) => (
<svg {...props} width="125" height="135" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M67.871 135c-5.86 0-10.742-4.891-10.742-10.761V61.386 44.022c0-4.647-3.662-8.316-8.3-8.316-4.64 0-8.302 3.669-8.302 8.316v55.76c0 5.87-4.883 10.761-10... |
import socketio from "socket.io-client";
const socket = socketio("http://192.168.0.36:3333", {
autoConnect: false
});
function connect(latitude, longitude, techs) {
socket.io.opts.query = {
latitude,
longitude,
techs
};
socket.connect();
socket.on("message", text => {
console.log(text);
}... |
import Color from '../Core/Color.js';
import defined from '../Core/defined.js';
import defineProperties from '../Core/defineProperties.js';
/**
* A feature of a {@link Cesium3DTileset}.
* <p>
* Provides access to a feature's properties stored in the tile's batch table, as well
* as the ability ... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js
*
* Initializes the HTML-CSS OutputJax to use the STIX-Web fonts
* Copyright (c) 2013-2019 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
*... |
'use strict';
// MODULES //
var isArrayLike = require( 'validate.io-array-like' ),
ctors = require( 'compute-array-constructors' );
// APPLY //
/**
* FUNCTION: apply( fcn, ...array[, opts] )
* Applies a function to each array element.
*
* @param {Function} fcn - function to apply
* @param {Array|Int8Array|Uint8Ar... |
import {
SET_FINGERPRINT,
SET_USER,
SET_AUTHENTICATED,
SET_UNAUTHENTICATED,
LOADING_USER,
LIKE_SNIPPET,
PLAY_SNIPPET,
UNLIKE_SNIPPET,
MARK_NOTIFICATIONS_READ
} from "../types";
const initialState = {
fingerprint: null,
authenticated: false,
loading: false,
credentials: {},
likes: [],
pla... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
module.exports = mongoose.model(
"OAuthAuthorizationCode",
new Schema({
authorizationCode: String,
expiresAt: Date,
scope: String,
redirectUri: String,
user: { type: Schema.Types.ObjectId, ref: "User" },
client: { type: S... |
const array = [10, 4, 40, 32 , 67, 12, 43, 31, 65, 1]
function bubbleSort(array){
// Recorrer el arreglo basado en su tamaño total
for (let i = 0; i < array.length; i++) {
for(let j = 0; j < array.length; j++) {
//Comprobar el valor actual con el valor siguiente
if(array[j] > ar... |
'use strict';
var loadTemplate = require('../utils/loadTemplate'),
baseModal = require('./baseModal');
module.exports = baseModal.extend({
className: 'guid-still-creating-modal',
events: {
},
render: function() {
var self = this;
loadTemplate('./js/templates/guidStillCreatingModal.html', functi... |
//How do you find the duplicate number on a given integer array?
//[1,2,7,4,6,3,6,3,7,8,9]
function findDuplicate(inputList) {
for (let i = 0; i < inputList.length; i++) {
for (let j = 0; j < inputList.length - 1; j++) {
if (inputList[j] > inputList[j + 1]) {
let c = inputList[j];
inputList[... |
const User = require('./User');
const Meal = require('./Meal');
const SelectMeal = require('./SelectMeal');
const Diet = require('./Diet');
const MealDiet = require('./MealDiet');
const UserProfile = require('./UserProfile');
//USER AND USER PROFILE ASSOCIATIONS
UserProfile.belongsTo(User, {
foreignKey: 'user_id'
... |
'use strict';
var expect = require('chai').expect;
var sinon = require('sinon');
var createAnnounceParams = require('./helpers/create-announce-params');
describe('TrackerService', function () {
var TrackerService = require('../release/tracker-service').default,
MemoryTorrentStore = require('../release/memory-tor... |
var stream_edit = (function () {
var exports = {};
function setup_subscriptions_stream_hash(sub) {
var id = sub.stream_id;
subs.change_state.prevent_once();
window.location.hash = "#streams" + "/" + id + "/" + hash_util.encodeHashComponent(sub.name);
}
function settings_for_sub(sub) {
var id = parse... |
jQuery('.skillbar').each(function(){
jQuery(this).find('.skillbar-bar').animate({
width:jQuery(this).attr('data-percent')
},2000);
}); |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
"main";_21d.x([["formatNumber",()=>formatNumber],["formatCurrency",()=>formatCurrency],["getThumbnailUrl",()=>getThumbnailUrl],["getParentIds",()=>getParentIds]]);const formatNumber = (number = 0, settings) => {
const x = 3;
const re = '\\d(?=(\\d{' + x + '})+' + (settings.decimal_number > 0 ? '\\D' : '$') + ')';
... |
console.log('utils.js')
const name = 'rajan';
const add = function(a, b) {
return a + b ;
}
//module.exports = name
module.exports = add |
self.__precacheManifest = [
{
"revision": "ff66b25a0ebf00d45f6a72f7fc265f2c",
"url": "/img/brand/logo.png"
},
{
"revision": "1dd2fce4c79c5cd8fa2a06fc30baca5d",
"url": "/img/brand/plots screenshot.png"
},
{
"revision": "0fc390b64ce6957d01f9",
"url": "/js/chunk-vendors.15824258.js"
},
... |
import {TYPE, URL} from "../../config"
import 'whatwg-fetch'
const _URL = URL.EVALUATION.EVALUATION_ALL
const _TYPE = TYPE.EVALUATION.EVALUATION_ALL
export function getUserEvaluation(calendar, semester) {
return function (dispatch) {
fetch(_URL.GET_USER_EVALUATION(calendar, semester), {
creden... |
//
// debugSurfaceGeometryPass.js
//
// Created by Sam Gateau on 6/6/2016
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
//
// Set up the qml ui
var qml = Script.resolvePath('am... |
module.exports={A:{A:{"1":"E A B","2":"K C G YB"},B:{"1":"D w Z I M H"},C:{"1":"0 1 3 5 6 7 8 P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x","2":"WB AB","260":"F J K C G E A B D w Z I M H N O UB OB"},D:{"1":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j ... |
<html>
<body>
<div class="container">
<div class="header">
<ul class="nav">
<li class="active"><a href="#"></a>Home</li>
<li><a href="#"></a>About</li>
<li><a href="#"></a>Contact</li>
</ul>
<h3 class="text-muted">CSS In... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-71713531.js');
function generateClasses(classes) {
return classes.filter(Boolean).join(' ');
}
const ProButton = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.variant... |
var express = require('express');
var router = express.Router();
var databaseConfig = require('../../models/db');
var fs = require('fs');
// Danh sách nhân viên
router.get('/', function (req, res, next) {
const sql = 'SELECT * FROM quydinh '
databaseConfig.query(sql, function (err, rows) {
if (err) {
... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'link', 'ru', {
acccessKey: 'Клавиша доступа',
advanced: 'Дополнительно',
advisoryContentType: 'Тип содержимого',
advisoryTitle: 'Заголовок',
anc... |
var moment = require("../../moment");
/**************************************************
Traditional Chinese
*************************************************/
exports["lang:zh-tw"] = {
setUp : function (cb) {
moment.lang('zh-tw');
cb();
},
tearDown : function (cb) {
... |
"use strict";
var assign = require('object-assign');
var projectHeader = 'X-Sanity-Project-ID';
module.exports = function (config) {
var overrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var headers = {};
var token = overrides.token || config.token;
if (token) {
headers... |
const path = require('path');
module.exports = {
stories: ['../getting-started/*.story.(js|mdx)', '../packages/**/*.story.(js|mdx)'],
addons: [
{
name: '@storybook/addon-storysource',
options: {
rule: {
test: [/\.story\.(js)?$/],
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core = require("@actions/core");
const AWS = require("aws-sdk");
const format_1 = require("./format");
const fs_1 = require("fs");
async function run() {
const region = process.env.AWS_DEFAULT_REGION;
const ssm = new AWS.SSM({ re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.