text stringlengths 3.22k 29.5k |
|---|
import * as fs from 'fs';
import * as xlsx from 'xlsx';
import { Client } from '@googlemaps/google-maps-services-js';
import countyNameMapping from './countyNameMapping';
import * as futil from '../../lib/files';
import {
eventCounty,
eventLocation,
eventMonth,
eventAm,
eventYear,
eventTime,
API_KEY,
pu... |
'use strict';
var _ = require('lodash');
var hooker = require('hooker');
var glob = require('glob');
var path = require('path');
var os = require('os');
var comment = require('comment-regex');
var fs = require('fs');
/**
* This module is a grunt task to generate automatic documen... |
/*基于向听数指标的启发式评估算法 */
var m_util = require('../shared/mahjong_util'),
shanten = require('./shanten');
var vals = m_util.vals;
var TypeOfTiles = function (hist){
var list=[];
for(var i=0;i<hist.length;i++)
{
if(hist[i]>0){
list.push(i)
}
}
... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); ... |
/**
* Created by freddyrondon on 4/16/16.
*/
import React, {Component, PropTypes} from 'react';
import classSet from 'classnames'
import TableRow from './TableRow'
import Const from './Const'
const isFun = function (obj) {
return obj && (typeof obj === 'function');
};
class TableBody extends Component {
... |
// Hack described here http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/paragraph-style-names-don-t-match-config.aspx
function OnClientSelectionChange(editor, args) {
var tool = editor.getToolByName("FormatBlock");
if (tool) {
setTimeout(function () {
var default... |
var wrap_with_box=false;
var box=wrap_with_box?{}:globalThis;
/**
* Range generator
* @param {*} a start
* @param {*} b end
* @param {*} step step
* @param {*} mapper mapper function eg. i=>sin(i)
*/
box.rangen=function *(a,b,step=1,mapper){
if(typeof(step)=='function'){
mapper=step;
step=a/... |
// code to calculate Lambert W function in javascript
// https://github.com/protobi/lambertw
const GSL_DBL_EPSILON = 2.2204460492503131e-16;
const one_over_E = 1 / Math.E;
function halley_iteration(x, w_initial, max_iters) {
var w = w_initial, i;
var result = {};
for (i = 0; i < max_iters; i++) {
var tol;... |
export const colors = [
0x3484d5,
0x41c248,
0xf3df40,
0xeceadd,
0xf7762e,
0xf22d54,
];
// prettier-ignore
export const runtimeFacePermutation = [
20, 32, 53, 12, 27, 45, 7, 25, 40, // front
2, 22, 35, 9, 26, 42, 15, 29, 48, // back
14, 28, 47, 17, 30, 50, 19, 31, 52, // up
6, 24, 39... |
const Native = require("./Native");
const EventEmitter = require('events').EventEmitter;
const SemanticSDP = require("semantic-sdp");
const cloneDeep = require('clone-deep');
const SDPInfo = SemanticSDP.SDPInfo;
const Setup = SemanticSDP.Setup;
const MediaInfo = SemanticSDP.MediaInfo;
const CandidateInfo = Semanti... |
/* eslint no-console: 0 */
const chalk = require('chalk');
const path = require('path');
const rollup = require('rollup');
const rbabel = require('rollup-plugin-babel');
const resolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const rollupLess = require('rollup-plugin-... |
/**
* Class representing ModuleLauncher
*/
class ModuleLauncher {
/**
* Creates instance of ModuleLauncher
* @param modules
* @param {DataObserver} dataObserver
* @param {ElementBuilder} elementBuilder
* @constructor
*/
constructor(modules = [], dataObserver, elementBuilder) {
... |
//////////
// Copyright <NAME> (munc at mac dot com)
// License: http://creativecommons.org/licenses/by/2.5/
//////////
//window.onerror = null;
/*
* Replace the main portfolio content with the body contents of the named page.
* Relies on the prototype.js library.
*/
function swapContent(pageName) {
var url = ... |
'use strict';
const EventEmitter = require('events');
const util = require('util');
const _ = require('lodash');
const helpers = require('./helpers');
class ServiceObserver extends EventEmitter {
constructor(options) {
super();
this._consul = helpers.checkOptionsAndCreateC... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable functional/no-expression-statement */
const ava_1 = __importDefault(require("ava"));
c... |
var device;
var gatt;
var service;
var characteristic;
const SETTINGS_FILE = 'cscsensor.json';
const storage = require('Storage');
const W = g.getWidth();
const H = g.getHeight();
const yStart = 48;
const rowHeight = (H-yStart)/6;
const yCol1 = W/2.7586;
const fontSizeLabel = W/12.632;
const fontSizeValue = W/9.2308;
... |
var VIETNAMESE_N_ASCII_MAP = {
"à": "a", "ả": "a", "ã": "a", "á": "a", "ạ": "a", "ă": "a", "ằ": "a", "ẳ": "a", "ẵ": "a",
"ắ": "a", "ặ": "a", "â": "a", "ầ": "a", "ẩ": "a", "ẫ": "a", "ấ": "a", "ậ": "a", "đ": "d",
"è": "e", "ẻ": "e", "ẽ": "e", "é": "e", "ẹ": "e", "ê": "e", "ề": "e", "ể": "e", "ễ": "e",
"ế"... |
// Task: Implement a class named 'RangeList'
// A pair of integers define a range, for example: [1, 5). This range includes integers: 1, 2, 3, and 4.
// A range list is an aggregate of these ranges: [1, 5), [10, 11), [100, 201)
class RangeList {
constructor() {
this.ranges = [];
}
/**
* Adds ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
// Mensajes de error para transferencias ajax
$.ajaxSetup({
error: function(jqXHR, exception) {
... |
"use strict"
const vscode = require('vscode');
const shiki = require('shiki');
const path = require('path');
module.exports.activate = (context) => {
vscode.workspace.onDidChangeConfiguration((change) => {
if (change.affectsConfiguration('markdownShiki.theme') ||
change.affectsConfiguration('w... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ChipGroup = exports.ChipGroupContext = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var React = _interopRequireWildcard(require("react"));
var _chipGroup = _interopRequireDefault(require("@patternfly/re... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//... |
import AsyncStorage from '@react-native-community/async-storage';
import { Alert, Platform, Linking , Dimensions } from 'react-native';
import deepGet from 'lodash/get';
import pricer from './Pricer';
import reduxGetters from './ReduxGetters';
import { FlyerEventEmitter } from '../components/CommonComponents/FlyerHOC... |
/*:
-------------------------------------------------------------------------
@title Event Trigger Labels
@author Hime --> HimeWorks (http://himeworks.com)
@version 1.0
@date Dec 31, 2015
@filename HIME_EventTriggerLabels.js
@url http://himeworks.com/2016/01/event-trigger-labels-mv/
If you enjoy my work, consider sup... |
/* eslint-disable eol-last */
/* eslint-disable no-trailing-spaces */
/* eslint-disable no-undef */
/* eslint-disable indent */
/* eslint-disable no-unused-vars */
'use sttict ';
let serviceImage=document.getElementById('imageService');
// let image =document.getElementsByClassName('catg');
// let x;
let array=[];
f... |
import React, { Component } from "react"
import { geoPath } from "d3-geo"
import { PanResponder, Animated } from "react-native"
import { createNewChildren } from "./utils"
import { G } from 'react-native-svg';
class ZoomableGlobe extends Component {
constructor(props) {
super(props)
const initialRotation ... |
//all of the js code
//two variables used to store the value of input parameters and modifiers
var s = 20;
var n = 1;
var m = 0;
//storing preset code
var wholePresetCode = "";
var presetCodeArray = "";
//setting preset dropdown menu
function preSet() {
//preset code will have the following format: "![name],[num... |
import React, { Component } from 'react';
import { View, StyleSheet, Button, Text, TouchableOpacity } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import RNSecureStorage from 'rn-secure-storage';
import ClusteredMapView from '../../utils/MarkerClustering'
import { Marker } from... |
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('wordpress', '');
function TinyMCE_wordpress_initInstance(inst) {
if (!tinyMCE.settings['wordpress_skip_plugin_css'])
tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/wordpress/wordpress.css");
}
function TinyMCE_wordpress_getC... |
"use strict";
const AbstractOperation = {
toString() {
return this.args.map(el => el.toString()).join(' ') + " " + this.strOp;
},
evaluate(...variables) {
return this.doEvaluate(...this.args.map(el => el.evaluate(...variables)));
},
diff(variable) {
return this.doDiff(this.a... |
var updateVRControllers = function(){
if(vr.isActive()){
let snLeft = $("vr.controller.left");
let snRight = $("vr.controller.right");
//{ // update button states
// let stateLeft = vr.getControllerStateLeft();
// let stateRight = vr.getControllerStateRight();
//}
if(false){ // update pose
let righ... |
/*
------------------------------------------------------------------------------------------
Copyright (c) 2021 <NAME>
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, includi... |
var path = require('path')
, request = require('request')
, fs = require('fs')
, qs = require('querystring')
, validator = require( path.resolve(__dirname, '..', 'utils/validation.js') )
, db_client = require( path.resolve(__dirname, '..', 'database/redis-client.js') )
, redis = require('redis')
/*******... |
import React, {Component} from 'react';
import {Dashboard} from './Dashboard';
import Sidebar from 'react-sidebar';
import {css} from 'emotion';
import styled from 'react-emotion';
import {VideoDetails} from './VideoDetails';
import {Route, withRouter} from 'react-router';
import {Channel, link} from './Channel';
impor... |
import {
CircularProgress,
Divider,
MenuItem,
Typography,
} from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import { Extension } from '@material-ui/icons';
import PropTypes from 'prop-types';
import * as R from 'ramda';
import React, { PureComponent } from 'react';
import { HotK... |
/* The MIT License (MIT)
*
* Copyright (c) 2015 <NAME>
*
* 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, copy, ... |
function Mapper(C, D) {
cO(this, C);
if (this.parent) {
this.parent = $(this.parent)
} else {
return
}
var B;
this.mouseX = this.mouseY = 0;
this.editable = this.editable || false;
if (this.editable) {
this.zoomable = this.toggle = false;
this.show = this.... |
/**
* Feed.js
*
* Represents the Feed section/page of the
* SPA. It provides an interface for the user
* to search and stream data from Twitter. Also,
* it provides facilities for trends tracking via
* the tweet frequency chart component.
*
* @author <NAME>
*
* Last updated: 22/05/2017
*/
import React, ... |
import React from 'react';
import { connect } from 'dva';
import Moment from 'moment/moment';
import lodash from 'lodash';
import {
Card,
Button,
Form,
Icon,
Col,
Row,
Input,
Select,
Popover,
Upload,
notification,
Modal,
Divider,
InputNumber,
} from 'antd';
import FooterToolbar from '@/compo... |
// javascript function to show two distributions:
// The standard t which holds if the null hypothesis is true
// and the noncentral t which holds for some alternative hypothesis
//Redo: showing the plots doesn't help students see what's happening.
// Version 2.0:
// Generate data from true alternative distribution ... |
/**
* page-test.js
*/
var g_graph;
var g_linkForce;
$(document).ready(function(){
// 최신 정보로 키워드 은하계 그리기
initGalaxy('apis/getLastTimeunit', false)
// Button
$('#btnPrev').click(function(){
var toGoNum= Math.abs($('#posNum').val() - 2);
pagenation(toGoNum);
});
$('#btnNext').click(function(){
var orig... |
/* eslint-disable react/prop-types */
/* eslint-disable no-unused-vars */
import React, { useState, useEffect } from "react";
import { Route, Switch, Redirect } from "react-router-dom";
import SignInSlide from "components/login/SignInSlide";
import LicenseeLayout from "./layouts/Licensee";
import PropTypes from "prop-t... |
import { vec2, vec3, vec4, quat } from 'gl-matrix';
import toNDC from '../../util/toNDC';
import TranslateMode from './translate';
import ScaleMode from './scale';
import RotateMode from './rotate';
let tempQuat = quat.create();
export default class ObjectAction {
constructor() {
this.rightHeld = false;
thi... |
'use strict';
function listPeople(showList) {
$.ajax({
type: "POST",
traditional: true,
async: true,
cache: false,
url: "listContacts/",
context: document.body,
beforeSend: function (result) {
//$body.addClass("loading");
},
succ... |
/**
* Number of decimal digits to round values to in the simulation list dialog.
* @const
* @type {number}
*/
const SIMU_LIST_ROUNDING = 3;
/**
* Will be called when a simulation is deleted.
*
* @callback SimuTable~deleteCallback
* @param {number} index - index of simulation to be deleted
*/
/**
* Will be c... |
// <NAME> <<EMAIL>>
"use strict";
// - modules
const ForceGraph = require('force-graph');
const assert = require('../assert.js');
const { Action } = require('../ir.js');
const { hexColor, patternColor } = require('./colors.js');
const ContextMenu = require('./contextmenu.js');
// - constants
const spaceX = 100; // av... |
import React from 'react'
import p from 'prop-types'
import Query from '../util/Query'
import { debounce } from 'lodash-es'
import MaterialSelect from './MaterialSelect'
import { mergeFields, fieldAlias, mapInputVars } from '../util/graphql'
import FavoriteIcon from '@material-ui/icons/Star'
import { DEBOUNCE_DELAY } f... |
async function init() {
var is_test_user = document.cookie.lenght === 0;
var token = await get_token();
var tasks_data = null;
if(token) {
tasks_data = await get_task_data(token, true);
}
for(var e of document.getElementsByClassName('test_section')) {
const task_data = await parse_task_data(e, token, tasks_d... |
import React, { useEffect, useState } from 'react';
import axios from 'axios';
import { useQuery, useQueries } from 'react-query';
import Header from '../components/layouts/Header';
import PageContainer from '../components/layouts/PageContainer';
import TableLoader from '../components/placeholders/TableLoader';
import ... |
/*
Copyright 2019 Square Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
'use strict';
const chalk = require('chalk');
const fs = require('fs');
const path = require('path');
const querystring = require('querystring');
const recursive = require('recursive-readdir');
const {
upload,
get,
multipartUpload,
post,
getFileVerificationStream,
MULTIPART_MIN_SIZE
} = require('../../api'... |
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
var nextRandomId = getRandomId();
var configData;
resetconfigData();
getMcampConfigDetails("default");
function resetconfigData(){
configData = {'mail_sign': {'cert':{}, 'pvk':{}}, 'mail_enc': {'cert':{}}};
}
$(document).on('click', '.number-spinner button', function () {
var btn = $(this),
oldValue ... |
/*
Curso Arduino Avanzado 3ed
Practica 06
Alumno: <NAME>
*/
/*
Titulo: Galletas de la fortuna con Nodejs y Websockets
Descripción:
En esta práctica el objetivo es hacer un simulador de las míticas galletas de la fortuna que nos muestre el mensaje en el LCD,
asi como en una web en nuestro servidor local (localhost:xx... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withStyles } from '@material-ui/core/styles';
import { withRouter } from 'react-router-dom';
import APITransport from '../../actions/apitransport/apitransport';
import dashboardAPI from ... |
#! /usr/bin/env node
/* Copyright 2012, <NAME> (twitter: @mrtnkl)
Released under the MIT license. Refer to MIT-LICENSE.txt.
A nodejs script that allows you to watch a folder for changes and
compile the less css files into another folder, optionally passing
original lessc compiler arguments.
... |
import React from 'react'
import Router from 'next/router';
import { connect } from 'react-redux';
import Img from 'react-image';
import userActions from '../redux/actions/userActions';
import historyActions from '../redux/actions/historyActions';
import pageActions from '../redux/actions/pageActions';
import initial... |
var positionsBuffer, verticesIndexBuffer, texture;
var vrHMD, vrSensor;
/*jshint -W069 */
(function(global) {
'use strict';
var webGL = {
gl: null,
initWebGL: function() {
webGL.gl = null;
try {
webGL.gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
... |
'use strict';
import React, { useState, useMemo, useCallback } from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import memoize from 'memoize-one';
import { console, ajax } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { Alerts } from '@hms-dbmi-bgm/shared-portal-... |
$win = $(window),
$body = $('body'),container = $('#LAY_app'),
tabs = $('#LAY_app_tabsheader>li')
element = layui.element,
TABS_HEADER = '#LAY_app_tabsheader>li',
TABS_BODY = 'layadmin-tabsbody-item',
APP_BODY = '#LAY_app_body',
FILTER_TAB_TBAS = 'layadmin-layout-tabs',
APP_SPREAD_SM = '... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import { css, keyframes } from 'styled-components'
import theme from './theme'
import media from './media'
const {
flat,
borderRadius,
gradients,
link,
transition,
lineHeights,
fontSizes: { sm, smish, md, lg },
} = theme
const rippleEffect = keyframes`
0% {
transform: scale(1);
opacity: 1;
... |
import React, { Component } from 'react';
import {
Dimensions, View, Text,
StyleSheet, Image, ScrollView,
TouchableOpacity
} from 'react-native';
import ScrollSinger from './ScrollSinger';
import Map from './Map';
import Information from './Infomation';
import SwiperShow from './SwiperShow';
import getSh... |
const botconfig = require("./botconfig.json");
const Discord = require("discord.js");
const bot = new Discord.Client({disableEveryone: true});
const API_KEY = '<KEY>';
const got = require('got');
const fs = require("fs");
bot.commands = new Discord.Collection();
fs.readdir("./commands/", (err, files) => {
... |
function SFGovTranslate() {
$ = jQuery;
this.currentSelectedTranslation = null;
this.sfgovGTranslateFireEvent = function (a, b) {
try {
if (document.createEvent) {
var c = document.createEvent("HTMLEvents");
c.initEvent(b, true, true);
a.dispatchEvent(c)
} e... |
'use strict';
// #############
// Example: MIFARE Ultralight EV1 and NTAG 213/215/216 – implementation of card's specific commands
// - note: for instructions on reading and writing the data,
// please see read-write.js, which is common for all ISO/IEC 14443-3 tags
// - note: this guide applies to NTAG 213/215/216 c... |
//import {ErrorMessage} from '@hookform/error-message';
import {yupResolver} from '@hookform/resolvers/yup';
import axios from "axios";
import React, {createRef, useState} from "react";
import ReCAPTCHA from "react-google-recaptcha";
import {useForm} from 'react-hook-form';
//import {useRecaptcha} from "react-hook-reca... |
import React from 'react';
import Typography from '@material-ui/core/Typography';
import Grid from '@material-ui/core/Grid';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import SwipeableDrawer from '@material-ui/core/SwipeableDrawer';
import Button from '@material-ui/core/Button';
imp... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://github.com/google/blockly
*
* 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... |
const errorGuidelines = [
'Recarregue a página;',
'Verifique sua conexão de internet;',
'Caso as duas últimas orientações não resolvam o problema tente novamente mais tarde, pois um dos serviços externos pode estar indisponível;',
'Caso o problema persista entre em contato com o suporte do sistema;'
]
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EVENTS = undefined;
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).don... |
/*---------------GAME------------------*/
var over;
var game = new Phaser.Game(window.innerWidth, 450, Phaser.AUTO, 'game', {
preload: preload,
create: create,
update: update
});
// setInterval(function () {
// console.clear();
// },500);
function preload() {
game.load.image('ground', 'img/grou... |
"use strict";
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanc... |
const functionHelper = require("./parsers/functionHelper");
const procedureHelper = require("./parsers/procedureHelper");
const parseDatabaseStatement = (statement) => {
const characterSetRegExp = /CHARACTER\ SET\ (.+?)\ /i;
const collationRegExp = /COLLATE\ (.+?)\ /i;
const commentRegExp = /COMMENT\ \'([\s\S]*?)\'... |
import React from 'react';
import { Form, Row, Col, Input, Button, Select, Table, Popconfirm, message } from 'antd';
import EditableItem from '../../components/EditableItem';
import { erpPost } from '../../services/ajax';
require('../FormAndList.less');
const FormItem = Form.Item;
const { Option } = Select;
const fo... |
// This is the js for the default/index.html view.
var app = function() {
var self = {};
Vue.config.silent = false; // show all warnings
self.extend = function(a, b) {
for (var i = 0; i < b.length; i++) {
a.push(b[i]);
}
};
self.update_board_options = function() {
... |
/******************************************************************
* editFormSection.js
*
* This JavaScript file refers to the form field section of the edit event page. A user can
* edit the name, location, file upload option, anonymous option, and description of the event here.
* Basically anything that isn't ... |
/**
* @file Ce module contrôle la navigation intéractive du site
* @author <NAME>
* @license 0BSD
*/
"use strict";
// on définit un type JSDoc pour les identifiants de page:
/**
* l'identifiant textuel d'une page; il s'agit du nom de son fichier, sans l'extension .html
* @typedef {string} IdentifiantPage
*/
/*... |
import Ember from 'ember';
import layout from '../templates/components/basic-dropdown';
import getOwner from 'ember-getowner-polyfill';
import config from 'ember-get-config';
import { currentTransform } from 'ember-basic-dropdown/matrix';
const { Component, run, computed } = Ember;
const MutObserver = self.window.Muta... |
/* global Comunica */
import auth from 'solid-auth-client';
import { createDocument, fetchDocument } from 'tripledoc';
import { rdf, schema, solid, space } from 'rdf-namespaces';
import * as uuid from 'uuid';
const resourceDefinitions = {
products: {
schema: schema.Product,
fields: {
id... |
$(document).ready(function() {
var heights = [];
// Save the heights of every element into an array
$("div.panel-height").each(function() {
var height = $(this).height();
heights.push(height);
});
// Get the biggest height
var maxHeight = Math.max.apply(null, heights);
// Show in the console to ve... |
const colors = require('colors')
const sql = require('mssql')
const connection = require('../db/connection.js')
const Storage = require('../db/storage.js')
const search = require('../stops/search.js')
const cache = require('../cache.js')
const config = require('../../config.js')
let lineData = {}
cache.preReady.push(... |
import * as React from 'react';
import { withStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import { Link } from 'react-router-dom';
import Mo... |
const mm = require("micromatch");
const Irrigable = require("./irrigable.js");
const InputStream = require("./input.js");
const castInput = InputStream.cast;
const hashJSON = InputStream.hashJSON;
const objectToString = Object.prototype.toString;
const equalProperties = ["filter", "micromatch", "split", "cache", "watch... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import NavigationBar from 'react-native-navigation-bar';
import {
View,
Alert,
ListView,
ScrollView,
StyleSheet,
TouchableOpacity,
Image,
InteractionManager,
Platform,
KeyboardAvoidingView,
RefreshControl,
AsyncStor... |
import _ from 'lodash'
import PropTypes from 'prop-types'
import { observable, action, runInAction } from 'mobx'
import { observer, PropTypes as MobxPropTypes } from 'mobx-react'
import styled from 'styled-components'
import FormControlLabel from '@material-ui/core/FormControlLabel'
import { Grid, Hidden, MenuItem } fr... |
const UI = require('../../utils/UI.js');
const Icon = require('../icons/Icon.js');
class EditAvatarPopup extends UI {
constructor(params) {
super(params);
this._data = {
state: 'undefined',
canvasDim: 400,
};
this._components = {
IconAdd: this.newC(Icon, {icon: 'photo'}),
IconClose: this.newC(Ic... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/*!
* thoughtful-release <https://github.com/nknapp/thoughtful-release>
*
* Copyright (c) 2019 <NAME>.
* Released under the MIT license.
*/
'use strict'
var cpp = require('../lib/promised-child-process')
var fs = require('fs-extra')
var path = require('path')
var moment = require('moment')
var debug = require('de... |
import './_ClusterRules.scss';
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { useLocation } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';
import capitalize from 'lodash/capitalize';
import CheckI... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// Outermost scope,
// You can access these variables from *anywhere*, in fxns, or in html
let myP5 = undefined
let mode = "mandala" // defines the drawing tool being used
let mousePositions = [] // holds the history of mouse positions
let mandalaCounter = 0
let MAXMANDALA = 3
let imgCount = 0
let autodraw = false
let... |
import { OAuth2Client } from 'google-auth-library';
import { google } from 'googleapis';
import { createServer } from 'http';
import open from 'open';
import readline from 'readline';
import { URL } from 'url';
import { ClaspError } from './clasp-error.js';
import { DOTFILE } from './dotfile.js';
import { ERROR, LOG } ... |
importScripts('geojson-path-finder.js') // GeoJSONPathFinder global
class WorkerLatLng {
constructor(lat, lng) {
this.lat = parseFloat(lat)
this.lng = parseFloat(lng)
}
}
class WorkerLatLngBounds {
constructor(pointA, pointB) {
pointA.lat = parseFloat(pointA.lat)
pointB.lat = parseFloat(pointB.lat)
... |
'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]; } } }... |
import React, { useEffect, useState } from 'react';
import { Link, useLocation } from 'react-router-dom';
import EventBox from '../components/event/eventBox';
import PageWrapper from '../components/Layout/UnAuthorizedLayout';
import { Splitter, SplitterPanel } from 'primereact/splitter';
import { httpRequest } from '..... |
/*----------------*/
/* Global JS */
/*----------------*/
/* Polyfills */
// For object.assign (effects older safari browser on IOS)
if (!Object.assign) {
Object.defineProperty(Object, 'assign', {
enumerable: false,
configurable: true,
writable: true,
value: function (target, f... |
/* eslint-disable max-len */
require('dotenv').config();
const cors = require('cors');
const morgan = require('morgan');
const compression = require('compression');
const apicache = require('apicache');
// Swagger api docs
const swaggerUI = require('swagger-ui-express');
const openApiJson = require('./openapi.json');
/... |
/*
* PlugfestBridge.js
*
* <NAME>
* IOTDB.org
* 2016-01-22
*
* Copyright [2013-2016] [<NAME>]
*
* 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.or... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.