text stringlengths 3.22k 29.5k |
|---|
import Brick from '../baseBrick';
import PropsRenderer from './renderer';
import { ast, CodeOperation, Commit, j } from '../../utils';
class PropsBrick extends Brick {
static initialState = {
props: [],
hasPropTypesImport: false,
hasPropTypes: false,
hasDefaultProps: false,
hasStaticPropTypes: fa... |
const _ = require('lodash');
const {commandReceiver} = require('../lib/command_receiver.md/command_receiver.md');
const {createDialog} = require('../lib/conversation/index');
const {ADAPTER_MAPPINGS, HELP_WORDS, ORIGINAL_RESPONSE_MSG, HUBOT_I18N_REGISTER_NAME} = require('../lib/const');
const logger = require('winston'... |
import React, {
useState,
useEffect,
useRef,
useCallback,
forwardRef,
isValidElement,
cloneElement,
} from "react";
import ElementPopper from "react-element-popper";
import DateObject from "react-date-object";
import Calendar from "../calendar/calendar";
import getFormat from "../../shared/getFormat";
imp... |
const dialog = remote.dialog
const recursive = require('recursive-readdir')
const mm = require('music-metadata')
const imgFolder = remote.app.getPath('userData')+'/Artworks'
/**
Get the metadatas of a disk file
@param filename: the path of the file
@param callback: function to call when over
**/
const getTrackMetad... |
'use strict';
export function createElement(type, classNames, content){
type = type || 'div';
let el = document.createElement(type);
if(classNames){
classNames.forEach(function(name){
el.classList.add(name);
});
}
if(content) el.innerHTML = content;
return el;
}
exp... |
// //*********************************** Get data from HTML Network Chart *****************************************************
var Missionarea = JSON.parse(document.getElementById('missionlist').textContent);
var Collegenames = JSON.parse(document.getElementById('Collegenames').textContent);
// console.log("campus ... |
import React from 'react';
import PropTypes from 'prop-types';
import { Router } from 'react-router-dom';
import invariant from 'tiny-invariant';
import { ApolloProvider } from 'react-apollo';
import * as rtl from '@testing-library/react';
import { createMemoryHistory } from 'history';
import { IntlProvider } from 'rea... |
import _extends from '../../../node_modules/@babel/runtime/helpers/extends.js';
import _defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js';
import _styled from 'styled-components';
import React from 'react';
import ExtendedPropTypes from '../../proptypes.js';
import Popper from '../../... |
"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... |
// import path from 'path'
import del from 'del'
import gulp, { src, dest, series, parallel } from 'gulp'
import gulpBabel from 'gulp-babel'
import gulpUglify from 'gulp-uglify'
import gulpRename from 'gulp-rename'
import gulpIf from 'gulp-if'
import gulpHtmlMin from 'gulp-htmlmin'
import gulpFileInclude from 'gulp-fil... |
var HookEvent = require('./HookEvent');
var _ = require('underscore');
// Create a local reference to a common array method we'll want to use later.
var slice = Array.prototype.slice;
function Events (hookPrefix) {
var methodName;
// Default hookPrefix
this._hookPrefix = hookPrefix || '___';
for (key in t... |
import Vue from 'vue'
import * as types from './mutation-types'
import apis from '../api'
export default {
[types.CREATE_SESSION] (state, {remark, from}) {
createSession(state, from, remark)
},
[types.RECEIVE_ALL] (state, {messages}) {
let latestMessage
messages.forEach(message => {
// create n... |
const homeUserStatusPagLimit = 200; // allow sorting without pagination
let homeUserStatusPagToken = 0;
let selectedMember = null;
$.ajaxSetup({
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
});
/**
* Populate the health and describing information about active... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import Summary from "./Summary";
import Satisfied from "./Satisfied";
import SubmitBox from "./SubmitBox";
import OfferErc from "./OfferErc";
import { sendStatus, colours } from "../../Static";
import { ArcaContract, ArcaCalls, Erc20Contrac... |
exports.TimeseriesWidget=TimeseriesWidget;
TimeDisplay = require('./timedisplayclass.js').TimeDisplay
function TimeseriesWidget() {
TimeDisplay(this);
var that=this;
this.setTimeseriesModel=function(X) {setTimeseriesModel(X);};
this.setFiringsModel=function(X) {setFiringsModel(X);};
this.setChannel... |
import { changeTopbar, changeAllColors, changeBackColor, changeFontColor, changeButtonColor, setBlurOn, roundC, newFontFamily, changeFontSize, extendEnable } from './styles.js'
import { streakEnable } from './script.js';
export var textTag = 'pre';
export const items = document.getElementsByClassName('pane');
functio... |
var letterResponseEditors = [];
var LetterResponseEditor = function(obj, index) {
var self = this;
this.index = index;
this.obj = obj;
this.data = obj.data();
this.previewCache = null;
self.createPreviewListeners();
};
LetterResponseEditor.prototype = {
constructor: LetterResponseEditor,
... |
import ENS from 'ethereum-ens';
import Registrar from 'eth-registrar-ens';
import initCollections from './collections';
import Daefen from './daefen';
//These get assigned at init() below
export let ens;
export let registrar;
export let network;
export let errors = {
invalidNetwork: new Error('Sorry, ENS is not ava... |
import {JetView} from "webix-jet";
import AddActionView from "views/p-fmea/add_action";
import EditActionView from "views/p-fmea/edit_action";
import {user} from "models/data_user";
var saveAction = webix.proxy("rest", "/actions/save", {
meta: "csrf_field()", //some param
save:function(view, params){
p... |
'use strict'
const alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
const base = alphabet.length
export default class Helper {
static decode (string) {
let tmp
const num = [0]
for (let i = 0; i < string.length; i++) {
let digit = alphabet.indexOf(string[i])
for (let ... |
import BigNumber from 'bignumber.js'
import ERC20 from '../web3/abi/ERC20.json'
import StakingRewards from '../web3/abi/StakingRewards.json'
import ShortOptionAbi from '../web3/abi/ShortOption.json'
import {formatAmount, fromWei} from '../utils/format'
import {multicallClient, ClientContract} from '../web3/multicall'
i... |
// case, motherboard, ram, cpu, gpu, cooling, powerSupply, storage
const PATH = require("path");
// eslint-disable-next-line no-undef
const __DATA_PATH = PATH.join(__dirname, "..\\..\\dataSets\\computerParts\\");
const globalFunctions = require("../global");
const casePart = () => {
const cases = [
"Cooler Mas... |
/**
* Known problems
* if by any chance calling this : $targetTable.DataTable();
* - will duplicated the table or it's part
* - will do nothing
* then make sure that:
* - your table has id (must be)
* - that for more than 1 tables each table has unique id (must be)
*/
import * as $ from 'jquery';
import ... |
var util = require('util');
var jest = require('jest'),
models = require('../models'),
fs = require('fs'),
path = require('path'),
async = require('async');
var formage = require('formage-admin').forms;
var knox;
try
{
knox = require('knox');
}
catch(e)
{
}
var ACTION_PRICE = 2;
var user_public_... |
import * as scale from 'd3-scale';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { is } from 'immutable';
import {
View, PanResponder, StyleSheet, Dimensions,
} from 'react-native';
import Svg from 'react-native-svg';
import { throttle } from 'lodash';
import {
second2Hms, pad... |
module.exports = findParameters
const _ = require('lodash')
const markdownTable = require('markdown-table')
const PAGINATION_VARIABLES = [
{
name: 'per_page',
type: 'integer',
required: false,
description: 'Results per page (max 100)',
default: 30,
location: 'query'
},
{
name: 'page'... |
/* eslint-disable no-bitwise */
/* eslint-disable no-self-assign */
/* eslint-disable no-param-reassign */
/* eslint-disable no-unused-vars */
//= ==========================================================
// Utilities
//= ==========================================================
// https://github.com/darkskyapp/stri... |
'use strict';
var noble = require('noble');
var Drone = require('./drone');
var debug = require('debug')('rollingspider');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var _ = require('lodash');
/**
* Constructs a new RollingSpider Swarm
*
* @param {Object} options to construct th... |
const ciscoVpn = require('cisco-vpn');
// eslint-disable-next-line import/no-unresolved
const {spawn, exec} = require('node:child_process');
// eslint-disable-next-line import/no-unresolved
const path = require('node:path');
const {xml2js} = require('xml-js');
// eslint-disable-next-line import/no-unresolved
const {rea... |
"use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.ap... |
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _createClass = (function () { function defineProperties(target, props) { for (var key in props) { var prop = props[key]; prop.configurable = true; if (prop.value) prop.writable = true; } Object.definePrope... |
var noop = function () {},
gulp = require('gulp'),
//browserSync = require('browser-sync'),
qunit = require('node-qunit-phantomjs'),
plugins = require('gulp-load-plugins')(),
browserify = require('browserify'),
fs = require('fs'),
DOWNLOAD = 'download/',
DEST_JSR = '../jsrender/',
DEST_JSV = '../jsviews/',
D... |
/* jslint browser: true */
/***********************************************************
Fields.
************************************************************/
var _uniform_location_cache = {},
_current_program,
_glsl_compile_timeout = null,
_glsl_parser_worker = new Worker("dist/worker/parse... |
/* Amplify Params - DO NOT EDIT
ENV
FUNCTION_FILLSTATICTHINGGROUP_NAME
REGION
Amplify Params - DO NOT EDIT */
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
// Permission is hereby granted, free of charge, to any person obtaining a copy of this... |
var Path = require('path')
var papath = require('./lib/path')
module.exports = function(grunt) {
var ais = grunt.file.readJSON('ais.json')
var media = ais.media || papath.media('stable')
var options = {
data: {
config: ais,
media: media,
}
}
ais.ais.forEach(function(ai) {
options.dat... |
import React, { Component } from "react";
import web3 from "../../web3.js";
import profileAbi from "../../profile";
//CORE-UI
import {
CCol,
CRow,
CCard,
CCardBody,
CCardHeader,
CListGroup,
CListGroupItem,
CCardFooter,
CButton,
} from "@coreui/react";
//MATERIAL-UI
import Dialog from "@material-ui/co... |
import React, { Component } from "react";
import moment from 'moment';
import ReactDOM from 'react-dom';
import {
Col,
Row,
Button,
Input,
Form,
Modal,
Avatar,
Divider,
Comment,
} from 'antd';
import ImageGallery from 'react-image-gallery';
import { GetBookingInfo } from './action.js'
import { Link } ... |
const Format = require('../utils/Format.js');
const Streamable = require('./Streamable.js');
class MessageMedia extends Streamable {
constructor(params = {}) {
super(params);
// this._peerManager = params.peerManager;
// this._apiObject = params.apiObject; // object returned from TG api
// this._messageApiO... |
import React, { Component } from 'react'
import { Button, Dimmer, Divider, Form, Grid, Header, Icon, Label, Message, Popup } from 'semantic-ui-react'
import { UIFormField } from 'react-form-fields-library'
import { defaultVersioning } from '../producers'
import { extractName, splitOnUppercase } from '../utilities/Comm... |
import cors from 'cors';
import express from 'express';
import path from 'path';
import http from 'http';
import { Server } from 'socket.io';
import { HOSTNAME, PORT, CUSTOM_HEADER_KEY, FRONTEND_URL } from './const.js';
import { ioProxy, games } from './game.js';
// see https://socket.io/get-started/chat for basic c... |
import React, { Component } from 'react';
import { GoogleApiWrapper } from 'google-maps-react';
// MUI
import { withStyles } from '@material-ui/core/styles';
// Components
import Map from '../components/Map';
import InputField from '../components/InputField';
import CardTable from '../components/CardTable';
// UI
i... |
module.exports = EndPointService;
var async = require('async');
function EndPointService(mesh, internals, exchangeAPI, eventAPI, happn) {
this.mesh = mesh;
this.Internals = internals;
this.exchangeAPI = exchangeAPI;
this.eventAPI = eventAPI;
this.Happn = happn;
}
function EndPointInstance(
mesh,
intern... |
// This is a JavaScript file
// Our question will be of the form : First 3 terms of GP is equal to 1st, (m+1)th, (m+n+1)th term of AP.
// (ai) We will show the equation mr^2 - (m+n) r + c = 0 (students will be asked for second and third coefficient)
// (aii) We will find/show the common ratio r
// (aiii) We will ask f... |
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... |
load('util.js');
load('rhino-compat.js');
load('lang.js');
load('dom.js');
load('fxdom.js');
var javafx = Packages.org.mozilla.javascript.FXWrapFactory.FX;
print('javafx ' + javafx.scene.shape.Rectangle); // << somehow this is necessary?
var Color = javafx.scene.paint.Color;
var Rectangle = javafx.scene.shape.Recta... |
'use strict'
const _ = require('lodash');
const assert = require('assert');
const BigNumber = require('bignumber.js');
const cw3p = require('create-web3-provider');
const ethjstx = require('ethereumjs-tx');
const ethjs = require('ethereumjs-util');
const util = require('./util');
const Resolver = require('./resolver')... |
import React from "react";
//import { connect} from 'react-redux'
import {
TextInput,
TileGroup,
RadioTile,
Form
} from "carbon-components-react";
import {
Star24 as Star,
StarFilled24 as StarFilled,
//StarHalf24 as StarHalf,
Number_124 as Number1,
Number_224 as Number2,
Number_324 as Number3,
Nu... |
/*jshint laxcomma:true, multistr: true */
// This is the code that defines the design of the book
// and some minor UI of the book-maker, including
// picking which content is included, turning on/off crop
// marks, etc.
// ---------------
// User interface
var toggler = document.getElementById("toggleguides");
var ... |
"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... |
/* global EventHub */
import React from 'react'
import fs from 'fs'
import path from 'path'
import _ from 'lodash'
import {findRoot, status as gitStatus} from 'isomorphic-git'
import {FileList} from 'react-file-browser'
import pify from 'pify'
import FileNavigatorFileComponent from './FileNavigatorFileComponent'
import... |
var trackingNumbers = new Array();
var nodeUrl = "";
if (window.location.href.endsWith("node")) {
nodeUrl = window.location.origin + "/proxy?url=";
}
var urlPosta = nodeUrl + "http://www.posta.com.mk/tnt/api/query?id=";
function httpGetAsync(theUrl, callback, param) {
var xmlHttp = new XMLHttpRequest();
... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import Chart from "react-apexcharts";
import { getDataForDashboard } from "../../../redux/actions/dashboard";
import { Row, Col, Spin } from "antd";
import moment from "moment";
class Dashboard extends... |
import React, { useEffect, useState } from 'react'
import { useParams, useLocation } from 'react-router-dom'
import Modal from '../components/Modal'
import { View, ResumeView } from './Components'
import { SearchFavorite } from './ResumeDetalis'
import { EditJournal } from '../commonFetch'
import moment from 'moment'
... |
/**
* Created by kras on 19.07.16.
*/
/* eslint global-require:off */
'use strict';
const clone = require('clone');
const parseDuration = require('lib/duration');
const session = require('express-session');
const FO = require('core/FunctionCodes');
const Store = session.Store;
const MemoryStore = session.MemoryStore... |
var winScore = 100000;
var pawnSquareTable = [0, 0, 1, 3, 13, 50, 201, 804];
var pieceValues = [0, 96, 300, 325, 500, 900, 3950, 1500];
function evaluate(pieceIds, side){
var allMoves = findAllMoves(pieceIds);
var numAllMoves = genNumAllMoves(allMoves);
return evaluateScore(pieceIds, allMoves, numAllMoves,... |
"use strict";
const fs = require('fs');
const path = require('path');
const { parseMidi } = require('midi-file');
const { midiTrackToCommands, rebuildCommands, commandStats } = require('./js/midiparser.js');
const { commandsToText, commandsToNotes, textToCommands } = require('./js/mmlparser.js');
console.debug = func... |
/* di.whtnDice is an opensource project to study the legendary dice curse
* of <NAME>
* and get to the bottom of bad juju. At the moment,
* it's just a dice roller, but later
* functions will include a rolls database that can track
* any sinking feeling that the kind of
* cheetos you're eating is influencing... |
// ==UserScript==
// @id iitc-plugin-banners@aeurielesn
// @name IITC plugin: Banners
// @category Info
// @version 0.1.7
// @namespace https://github.com/aeurielesn
// @updateURL https://github.com/aeurielesn/iitc-plugin-banners/raw/master/iitc-plugin-banners.meta.js
// @do... |
// A B C D E F
var pesos = [
[-1, 5, 10, 15, 25, 10], // A
[5, -1, 13, 11, 18, 12], // B
[10, 13, -1, 6, 14, 2], // C
[15, 11, 6, -1, 20, 23], // D
[25, 18, 14, 20, -1, 8], // E
[10, 12, 2, 23, 8, -1] // F
]
var cidades = ['A', 'B', 'C', 'D', 'E', 'F']
var tamanhoPopulacao = cidades.length * ... |
import React, {useEffect, useState} from 'react'
import CircleLoader from "react-spinners/RotateLoader";
import informationIcon from '../../../resources/assets/information.svg'
import { getSourceList } from '../../../util/API/DocumentsAPI';
import { Link } from 'react-router-dom';
import { useTable, useGlobalFilter, us... |
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]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
import React, { Component } from 'react';
class Calendar extends Component {
constructor(props) {
super(props);
this.state = { showCalendarType: 0 };
}
gotoPreviousMonth = () => {
let viewableMonth = this.props.viewableMonth - 1;
let date = new Date(this.props.viewableYear, viewableMonth);
t... |
"use strict";
/**
* @file The Waigo module loader.
*/
const _ = require('lodash'),
debug = require('debug')('waigo_loader'),
findup = require('findup-sync'),
path = require('path'),
fs = require('fs'),
globule = require('globule'),
walk = require('findit');
const WAIGO_FOLDER = __dirname,
DEFAULT_AP... |
import React, { Component } from 'react';
import _ from 'lodash';
import {
Modal, Form, Input, Select, Icon,
} from 'choerodon-ui';
import { stores, Content, axios } from 'choerodon-front-boot';
import './CreateBranch.scss';
import './commom.scss';
const { AppState } = stores;
const { Sidebar } = Modal;
const { Opti... |
const apn = require('apn')
const firebase = require('firebase-admin')
const Sequelize = require('sequelize')
const web3Utils = require('web3-utils')
const Identity = require('@origin/identity/src/models').Identity
const MobileRegistry = require('./models').MobileRegistry
const { messageTemplates } = require('../templa... |
/*
* Copyright (c) 2017 Cornell University
*
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactJsonPretty = _interopRequireDefault(require("react-json-pretty"));
var _lodash = _interopRequireDefault(require("lodash"));
var _jsonwebtoken = ... |
import React, { useState, useEffect } from 'react'
import { Link, useHistory } from 'react-router-dom'
import { Layout, Divider, Collapse, List, Modal, Input, Radio, Switch, Breadcrumb, InputNumber, PageHeader, Button, message } from 'antd'
import { SaveOutlined, PlusOutlined, DeleteOutlined } from '@ant-design/icons'
... |
import React from 'react'
import {
Anchor, Box, Button, DataTable, Grommet, Paragraph, Text, TextInput, grommet,
} from 'grommet'
import { Next, Previous, Share, Unlink } from 'grommet-icons'
import { bareConfig, clearFilters } from './config'
import { datumValue, buildProps } from './data'
import Loading from './Loa... |
const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const Meta = imports.gi.Meta;
const St = imports.gi.St;
/**
* Simplify global signals and function injections handling
* abstract class
*/
const BasicHandler = new Lang.Class({
Name: 'DashToDock.BasicHandler',
_init: function() {
this._... |
import React, { Component } from 'react';
import classNames from 'classnames';
import { Input, Accordion, TextArea, Container, Segment, Sidebar, Menu, Button, Message, Icon, Divider } from 'semantic-ui-react'
class DataViewer extends Component {
state = {
docs: [],
sidebar: [],
docLoading:... |
/**
* Array con todas las casillas del tablero
* @type {any[]}
*/
let posiciones = Array();
posiciones[0] = ["GO", "COLLECT $200 SALARY AS YOU PASS.", "#FFFFFF",0,0,0,0,0,0,0];
posiciones[1] = ["Mediterranean Avenue", "$60", "#8B4513", 60, 3, 2, 10, 30, 90, 160, 250];
posiciones[2] = ["Community Chest", "FOLLOW INS... |
const data = require('../app/data');
const express = require('express');
const fs = require('fs');
const sao = require('../app/server/sao');
const utils = require('../app/utils/utils');
const db = require('../app/db');
const cons = require('../app/common/constants');
const logger = require('log4js').getLogger('index');... |
import { useEffect, useState } from 'react';
import {
Box,
Button,
Card,
CardContent,
CardHeader,
Divider,
Grid,
Container,
TextField,
DialogContentText,
DialogActions,
DialogContent,
Dialog,
Alert,
AlertTitle
} from '@mui/material';
import PropTypes from 'pro... |
/*eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]*/
const _ = require("lodash");
// meStartCoord; meEndCoord
function buildRead(read) {
let alignmentStart = read.alignmentStart;
let readStart = read.alignmentStart;
let alignmentEnd = readStart + read.lengthOnRef;
let readEnd = alignmentEnd;
... |
'use strict';
var React = require('react');
var numeral = require('numeral');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var numeral__default = /*#__PURE__*/_interopDefaultLegacy(nu... |
const app = angular.module('auctionApp', ['ui.bootstrap', 'toastr']);
let httpHeaders = {
headers : {
"Content-Type": "application/x-www-form-urlencoded"
}
};
app.controller('AppController', function($http, toastr, $uibModal) {
const demoApp = this;
const apiBaseURL = "/api/exa... |
import events from 'enketo-core/src/js/event';
import Widget from 'enketo-core/src/js/widget';
const FLASH = 'flash';
const STOP = 'stop';
const START = 'start';
const FINISH = 'finish';
// TODO: add disable/enable functions
/**
* Conduct Literacy Tests inside an Enketo Form
*/
class LiteracyWidget extends Widget {... |
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
// for details on configuring this project to bundle and minify static web assets.
// Write your JavaScript code.
$(document).ready(() => {
$.ajaxSetup({
complete: function (event, xhr) {
... |
//@ts-check
'use strict';
/*
* markdown-it-table-of-contents
*
* The algorithm works as follows:
* Step 1: Gather all headline tokens from a Markdown document and put them in an array.
* Step 2: Turn the flat array into a nested tree, respecting the correct headline level.
* Step 3: Turn the nested tree into HTML code... |
$(document).ready(function () {
document.getElementById("fullnameubah").maxLength = 200;
document.getElementById("usernameubah").maxLength = 50;
document.getElementById("passwordubah").maxLength = 50;
// document.getElementById("validate_password").maxLength = 50;
var route = "/get_select_group";
... |
// This file tests whether XmlHttpRequests correctly handle redirects,
// including rewriting POSTs to GETs (on 301/302/303), as well as
// prompting for redirects of other unsafe methods (such as PUTs, DELETEs,
// etc--see HttpBaseChannel::IsSafeMethod). Since no prompting is possible
// in xpcshell, we get an error ... |
'use babel';
import { CompositeDisposable } from 'atom';
import { EventEmitter } from 'events';
import ControlPanelView from './control-panel-view';
import UpdateLibraryView from './update-library-view';
import ToolchainDownloadView from './toolchain-download-view';
const http = require('https');
const fs = require('... |
/*
[Script]
# 今日校园假条(ptu.campusphere.net)
今日校园假条 = type=http-response, pattern=^https:\/\/ptu\.campusphere\.net\/wec-counselor-leave-apps\/leave\/stu\/.*, requires-body=1, max-size=-1, script-path=https://raw.githubusercontent.com/StarsbySea/surge/main/scripts/leave_ptu.js
[Mitm]
hostname = %APPEND% ptu.campusphere.n... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var akashic_label_1 = require("@akashic-extension/akashic-label");
var game = g.game;
module.exports = function () {
var scene = new g.Scene({
game: game,
assetIds: ["bmpfont", "bmpfont-glyph", "mplus", "mplus-glyph"... |
const { exec } = require('child_process');
const fs = require('fs');
const fs_extra = require('fs-extra');
const chalk = require('chalk');
const log = console.log;
var path = require('path')
const markdown_string=`<template>
<div class='components-container'>
<h3 class='intro-head'>超赞的👍 <a href='https://g... |
const express = require("express");
const session = require("express-session");
const passport = require("passport");
const WebAppStrategy = require("ibmcloud-appid").WebAppStrategy;
const bodyParser = require("body-parser");
const path = require("path");
const { nextTick } = require("process");
const Cloudant = requir... |
// Displays and locates the user's location
var geocoder;
var map;
var createMarker;
var infobox;
// var moment = require('moment');
// Defaults to San Francisco
var lat = 37.783;
var lng = -122.409;
var markerArray = [];
// Content for infobox
var boxText = document.createElement("div");
boxText.setAttribute('class'... |
'use strict'
const httpreq = require('./httprequest.js');
const sentiment_zh = require('./sentiment.js');
const Summarizer = require('./node-summary.js');
const summarizer = new Summarizer(true);
/**
* get page html via http.get
* @param {[string]} url [link]
* @param {Function} callback [description]
* @... |
import React, { useState, useEffect, useCallback } from 'react';
import {
Dimensions,
Image,
Alert,
View,
ScrollView,
Button,
Text,
StyleSheet,
Platform,
TextInput,
TouchableOpacity,
Switch,
ImageBackground
} from 'react-native';
import { HelperText, HeaderButtons, It... |
import "./keypad.css";
import "./Pelli/PelliFont.css";
import "./Sloan/SloanFont.css";
import "./OpenOptotypes/OpenOptotypes.css"
import { KeypadPeer } from "./keypadPeer.js";
class Keypad extends KeypadPeer {
constructor(
keypadParameters = {
//keypadUrl: "https://aryamantaore.github.io/dist/keypad?",
... |
var async = require ('async');
var filth = require ('filth');
var likeness = require ('likeness');
/** @module/class substation:Action
Wraps a reaction function with its html templates, input schemata, minimum authentication
requirements and other minor configuration options to create a multi-transport ha... |
function addMarker2(latlng2, time2, id2, map2, iconObj, veh_obj, rpm2) {
var marker = new google.maps.Marker({
position: latlng2,
// map: map2,
icon: {
url: iconObj,
scaledSize: new google.maps.Size(40, 40) // scaled size
// origin: new google.maps.Point(0,0), // origin
// anchor: ... |
import moment from "moment-timezone";
import _ from "underscore";
import { isDate } from "metabase/lib/schema_metadata";
import { parseTimestamp } from "metabase/lib/time";
import { unexpectedTimezoneWarning, multipleTimezoneWarning } from "./warnings";
const TIMESERIES_UNITS = new Set([
"minute",
"hour",
"day... |
import React, {useRef} from 'react';
import {Link} from 'react-router-dom';
import emailjs from 'emailjs-com';
import { SRLWrapper } from "simple-react-lightbox";
import pic1 from './../../images/gallery/pic1.jpg';
import pic2 from './../../images/gallery/pic2.jpg';
import pic3 from './../../images/gallery/pic3.jpg';... |
'use strict';
var _ = require('lodash');
var logger = require('../../config/logger.js');
var Timeline = require('./timeline.model');
var Operation = require('../operation/operation.model');
var TAG = "TimelineController";
// récupére la liste de toutes les timelines
exports.index = function(req, res){
// récupére t... |
import _extends from '@babel/runtime/helpers/esm/extends';
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
import { decode, encode } from 'extended-json';
import { ResourcesServerError } from 'liwi-resources-client';
import { Logger } from 'nightingale-logger';
impor... |
var debug = require('debug')('climate'),
events = require('events'),
tty = require('tty'),
util = require('util'),
repl = require('./repl'),
rl = require('readline'),
_rli,
reTrailingNewline = /[\n\r]$/,
counter = 0,
RUN_DELAY = 50; // the time we wait before running the runner (allo... |
import {
Action,
MessageType,
MapUtility,
Coordinate,
TileType,
} from "../src/index.js";
import { getPlayersInProximity, getTileType } from "../ownUtils/ownUtils.js";
import fs from "fs";
// Q-learning bot
export const BOT_NAME = "Im a QT";
const mapFileName = "ql.json"; // File containing existing QTable
... |
//les fondations du jeu
let plateau, tailleCase, tailleFen;
let joueurTour;
let finPartie;
//compte le nombre de pièces posées sur une case
let compte;
let vainqueur;
let boutton;
//partie indiquant le tour du joueur
let infoJoueur;
//selecteur de mode
let selectMode;
let mode = "PvP";
let textMode;
// l'intelligence a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.