text stringlengths 5.97k 41.2k |
|---|
var member_chat_list_member = jQuery(".jobsearch-chat-member-list-wrapper"), window_width = jQuery(window).width();
jQuery.fn.ignore = function (sel) {
return this.clone().find(sel || ">*").remove().end();
};
function FrontChattriggerFile(user_id) {
jQuery('.user-' + user_id + ' form[name="fileForm"] input:fi... |
// These functions are available to be redefined by individual pages:
//
// Tells whether the content table should include a row of droppable label targets
function usingLabelTargets() {
return true;
}
// onFileContentLoaded fires a short while after the file has finished loading.
function onFileContentLoaded(file)... |
import {ipush, iremove, iset, redact} from "../frontendlib";
import {animateScroll, scroller} from "react-scroll";
import _ from "lodash";
import {terminalRef} from "../RunCode";
import firebase from "firebase/app";
import "firebase/auth";
import "firebase/analytics";
import pagesUrl from "./pages.json.load_by_url"
imp... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fetchData = fetchData;
exports.download = download;
exports.spawnAsync = spawnAsync;
exports.makeWaitForNextTask = makeWaitForNextTask;
exports.assert = assert;
exports.debugAssert = debugAssert;
exports.isString = isString;
exports... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var fs = require("fs");
var os = require("os");
var path = require("path");
var url = require("url");
var request = require("request");
var AsciiTable = require("ascii-table");
var extractZip = require("extract-zip");
var index_1 = require("./... |
//Método inicial
$(document).ready(function () {
//Atribui eventos aos controles da página
atribuiEventos();
//Valida Formulario
validaFormulario();
//Valida Formulário Parceria
validaFormularioParceria();
//Carrega Logotipos Clientes
carregaClientes();
});
function atribuiEve... |
'use strict';
/**
* Basic dependency module import.
* Importing jQuery and underscore.
*/
var $ = require('jquery');
var _ = require('underscore');
var jsonMarkupGen = require('json-markup');
var jsonFormatter = require('format-json');
/**
* Custom dependency module import for JSON Editor View... |
var ctx_c1 = document.getElementById('statistics_all_chart').getContext('2d');
var chart1 = new Chart(ctx_c1, {
type: 'line',
data: {
labels: ['Days'],
datasets: [{
label: 'Active',
borderColor: '#e91e63'
},
{
label: 'Total',
border... |
import merge from 'deepmerge';
import CodeMirror from 'codemirror';
import Monkberry from 'monkberry';
import directives from 'monkberry-directives';
import 'monkberry-events';
import ExecutableCodeTemplate from './executable-fragment.monk';
import WebDemoApi from '../webdemo-api';
import TargetPlatform from "../target... |
const express = require('express');
const sharp = require('sharp');
var Client = require('ftp');
const zlib = require('zlib');
/* Part under construction
require("@babel/register")({
presets: ["@babel/preset-env"]
});
import { Fits, Hdu } from "@hscmap/fits";
*/
// Reading FITS?
// Auxiliary for external requests... |
console.log("%c JOIN OUR TEAM, CONTACT INPCJT ", "color:grey; font-size: 18px; line-height: 160px; padding-top:60px; background-image:url(https://sbo-car-pool.firebaseapp.com/icons/android-chrome-48x48.png); background-repeat:no-repeat; ");
function logout_js() {
}
function requestConfirmation() {
alert('... |
/*
Copyright 2014 <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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
import React from "react";
import ReactDom from "react-dom";
import $ from "jquery";
import Header from "./header";
import "../styles/common.css";
import "../styles/header.css";
import "../styles/sign-login.css";
$(document).ready(function(){
let clientHeight = $(window).height();
$(".sign-login").css({
... |
import React, { useState, Component, useEffect, useRef, useCallback, useContext } from 'react'
import Loader, { Network, Head } from '../loader';
import Provider from './usercontext';
import apiClient from '../axios';
import { data } from 'jquery';
import Axios from 'axios';
import { FontAwesomeIcon } from '@for... |
import React, {useEffect, useState, useRef} from 'react';
import * as d3 from 'd3';
import raw from 'raw.macro';
import * as polished from 'polished';
import styled, {keyframes} from 'styled-components';
const Tooltip = styled.div`
position: fixed;
max-width: 100px;
font-family: 'OfficeCodeProWeb', monospace;
... |
import * as _ from 'lodash';
// chunk (immutable)
// Agrupa los elementos del array en subarrays de longitud n
var measures = [5.12, 42.20, 43.1, 0.10, 19.20, -32.1, 25.3, 22.2];
var grouppedInPairs = _.chunk(measures, 4);
console.log(grouppedInPairs);
// [ [ 5.12, 42.2, 43.1, 0.1 ], [ 19.2, -32.1, 25.3, 22.2 ] ]
//... |
/* ==================================================
* SIMPLIFY GMAIL
* By <NAME>: leggett.org
* Copyright (c) 2019 <NAME>
* More info: simpl.fyi/gmail
* Code base: github.com/leggett/simplify/blob/master/gmail/
* License: github.com/leggett/simplify/blob/master/gmail/LICENSE
*/
// == SIMPL =================... |
// Copyright (c) Microsoft Corporation and others. Licensed under the MIT license.
// SPDX-License-Identifier: MIT
import React from 'react'
import PropTypes from 'prop-types'
import { TwoLineEntry, InlineEditor, QuickEditModel, ModalEditor, SourcePicker, FileCountRenderer } from './'
import { Row, Checkbox, Col, Over... |
$(document).ready(function () {
$('select').material_select();
$(".search_wrapper").removeClass("hide");
});
$('body').on({
mouseenter: function () {
var Hoverindex = $(this).attr('id');
// console.log(Hoverindex);
$("#hidden_active_div").val(Hoverindex);
},
mouseleave: fu... |
// pages/order_detail/order_detail.js
const app = getApp();
let QQMapWX = require('../../libs/qqmap-wx-jssdk.min.js');
var star_data = require("../../js/test.js").star_data;
var latstart = '';
var lngstart = '';
var latend = '';
var lngend = '';
var star_num = 0;
// 实例化API核心类
let qqmapsdk = new QQMapWX({
key: '<KEY>'... |
/*
This component handles VerusPay, the Verus Mobile one step
payment solution. It should be as general as possible, and
able to handle as many different kinds of payment protocols
as possible while still looking and feeling the same from the
user side of things.
*/
import React, { Component } from "react";... |
function zeroZero() {
return Vector2.Zero.copy();
}
import Vector2 from './vector2.js';
export default class Input {
constructor(domElementId) {
var that = this;
this.bindings = {};
this.actions = {};
this.presses = {};
this.locks = {};
this.delayedKeyup = {};
this.isUsingMouse = fal... |
import React, { Component, Fragment } from 'react';
import { connect } from 'react-redux';
import { Map, TileLayer, GeoJSON } from 'react-leaflet';
import MarkerClusterGroup from 'react-leaflet-markercluster';
import 'leaflet-draw';
import { withTheme } from '@material-ui/core/styles';
import { Grid } from '@material-... |
'use strict';
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; };
Object.defineProperty(exports, "__esModule", {... |
/* global chrome, extLib, jQuery */
var USER_PREFERENCE_ALL_FRAMES = 'all-frames',
USER_PREFERENCE_SHOW_REAPPLYING_STYLES_NOTIFICATION = 'show-reapplying-styles-notification',
USER_PREFERENCE_SHOW_REAPPLYING_STYLES_NOTIFICATION_AT = 'show-reapplying-styles-notification-at';
var TR = extLib.TR;
console.log('I... |
$(document).ready(function () {
let key = 0
$('.leftmenutrigger').on('click', function (e) {
$('.side-nav').toggleClass("open");
e.preventDefault();
});
$('.cloneVideoDiv').click(cloneVideoDiv);
$('.cloneTaskDiv').click(cloneTaskDiv);
$('.cloneSubTaskDiv').click(cloneSubtaskDiv)
... |
import { e as entries, aU as isObject, ba as getCustomUrlParameter, bb as attackplayerUrl, E as querySelectorArray, bc as doAddIgnore, K as getTextTrim, z as setText, f as insertHtmlBeforeEnd, F as playerLinkSelector, D as querySelector, w as callApp, T as nowSecs, s as partial, aT as fromEntries, bd as combatSelector,... |
var users = [[]];
var username = null;
var chat = null;
var layerIndex = 10;
$(function () {
chat = $.connection.chatHub;
chat.client.addMessage = function (message, strFrom, strTo) {
console.log("NEW MESSAGE: " + message + " [" + strFrom + " - " + strTo + "]");
// checks if the window is a... |
import React, { Component } from 'react';
import { connect } from 'dva';
import SmartItem from './SmartItem';
import TokenLogin from '../User/TokenLogin';
import moment from 'moment';
import SmartLink from './SmartLink';
import { Badge, message, Modal, Form, Row, Col, Input, Button, Icon, Spin } from 'antd';
const conf... |
/*
Manages functionalities around the UI/viewport/canvas,
such as control buttons (select, add, zoom, etc.).
2019-20 <NAME>
*/
const ACTIONS = {
DO_NOTHING: 0,
ADD_ANNOTATION: 1,
REMOVE_ANNOTATIONS: 2,
ZOOM_IN: 3,
ZOOM_OUT: 4,
ZOOM_AREA: 5,
PAN: 6
}
const CURSORS = [
'poi... |
// LanguageExt.Process.js
// The MIT License (MIT)
// Copyright (c) 2014-2015 <NAME>
// https://github.com/louthy/language-ext/blob/master/LICENSE.md
var unit = "(unit)";
var failwith = function (err) {
console.error(err);
throw err;
}
var Process = (function () {
var withContext = function (ctx, f) {
... |
import { escape } from "pretty-text/sanitizer";
import toMarkdown from "discourse/lib/to-markdown";
const homepageSelector = "meta[name=discourse_current_homepage]";
export function translateSize(size) {
switch (size) {
case "tiny":
return 20;
case "small":
return 25;
case "medium":
re... |
$(document).foundation();
var atlantisUtilities = {
init: function(arguments) {
if (arguments) {
if (arguments == 'atlCheckbox') {
this.atlCheckbox();
}
return;
}
if (arguments) {
if (arguments == 'addMedia') {
this.addMedia();
}
return;
}
this.atlCheckbox();
this.sidePanel();
t... |
let races = {
2019: {
'sgp': {
id: 14,
name: 'Singapore',
start: '20190922T121000Z',
length: '1:58:33'
},
'rus': {
id: 15,
name: 'Russia',
start: '20190929T111000Z',
length: '1:33:38'
},
... |
var gulp = require('gulp');
var runSequence = require('run-sequence');
var to5 = require('gulp-babel');
var paths = require('../paths');
var compilerOptions = require('../babel-options');
var assign = Object.assign || require('object.assign');
var through2 = require('through2');
var concat = require('gulp-concat');
var... |
/*!
=========================================================
* Argon Dashboard React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:/... |
/**
* Здесь нужно перегружать объекты и дополнять функционал.
* Этот файл подключается последним.
*/
/**
* Реализация bind, если таковой нет (для поддержки в IE)
*/
if (!Function.prototype.bind) {
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible t... |
import m from 'mithril'
import ImageSelector from '../components/image_selector'
import {short_description} from '../components/description'
import {COLORS, PIXEL_WIDTH, LOUPE_VIEW_PAD, PIXEL_DENSITY, MOBILE_MAX_WIDTH, TABLET_MAX_WIDTH} from '../constants'
import {capitalize, closestRect, normalizeRect, setCanvasSize, ... |
import Config from './config';
/**
* Get by key helper
* @param obj
* @param path
* @param defaultValue
* @returns {data}
*/
export const get = (obj, path, defaultValue = false) => {
let value = path.split('.').reduce((current, key) => (current && current.hasOwnProperty(key) ? current[key] : undefined), obj... |
/** api: module = layer */
/** api: synopsis
* Layer related functionality.
*/
/** api: summary
* The :mod:`layer` module provides a constructor for Layer objects.
*
* .. code-block:: javascript
*
* js> var LAYER = require("geoscript/layer");
*/
var UTIL = require("./util");
var GeoObject = require... |
"use strict";
/* global $, getSyncStorage, setStorage, getStorage, gitHubInjection */
const isPR = (path) => /^\/[^/]+\/[^/]+\/pull\/\d+/.test(path);
const isIssue = (path) => /^\/[^/]+\/[^/]+\/issues\/\d+/.test(path);
const getCurrentUser = () => $(".js-menu-target img").attr("alt").slice(1) || "";
const isPrivate =... |
/* jshint esnext:true */
/*
*
* Weather extension for GNOME Shell
* - Displays a small weather information on the top panel.
* - On click, gives a popup with details about the weather.
*
* Copyright (C) 2011 - 2013
* ecyrbe <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <NAME> <<EMAIL... |
import Ember from 'ember';
import * as d3 from 'd3';
import { cloneDeep, drop, each, find, indexOf, last, max, min, sortBy, take, takeRight } from 'lodash-es';
import ChartComponent from './chart-component';
import FormattableMixin from '../mixins/formattable';
import FloatingTooltipMixin from '../mixins/floating-toolt... |
var express = require("express");
var app = express();
var cfenv = require("cfenv");
var bodyParser = require('body-parser')
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))
// parse application/json
app.use(bodyParser.json())
let mydb, cloudant;
var vendor; // Because t... |
/**
* @license
* Copyright 2013 Google Inc. 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 requir... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _invoke from "lodash/invoke";
import _isNil from "lodash/isNil";
import { chatMessageBehavior, IS_FOCUSABLE_ATTRIBUTE, keyboardKey, menuAsToolbarBehavior } from '@fluentui/accessibility';
import { getElementType,... |
const GROWTHFACTOR = 8;
const PROTOCOL = {
// Misc
LDAP_VERSION_3: 0x03,
LBER_SET: 0x31,
LDAP_CONTROLS: 0xa0,
// Search
SCOPE_BASE_OBJECT: 0,
SCOPE_ONE_LEVEL: 1,
SCOPE_SUBTREE: 2,
NEVER_DEREF_ALIASES: 0,
DEREF_IN_SEARCHING: 1,
DEREF_BASE_OBJECT: 2,
DEREF_ALWAYS: 3,
FILTER_AND: 0xa0,
FILTER_OR: 0xa1,
... |
(function ($) {
'use strict';
function initNavbar() {
if (!$('section:first').is('.parallax-bg, .dark-bg, .colored-bg') && $('#home-slider').length == 0) {
$('#topnav').addClass('stick affix-top');
$('body').addClass('top-padding');
}
if ($('section:first').is(... |
/**
* Copyright 2016 The AMP HTML Authors. 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 require... |
const CONSTANTS = {
months: [
'jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sept', 'okt', 'nov', 'dec'
],
types: {
'sutaz': 'súťaž',
'seminar': 'seminár',
'sustredenie': 'sústredenie',
'vikendovka': 'víkendovka',
'tabor': 'tábor',
'olympiada': 'olympiáda',
'prednasky': 'prednášky',
'othe... |
const child_process = require('child_process');
const exec = child_process.exec;
var execFile = require('child_process').execFile;
const os = require('os');
const express = require("express");
const sqlite3 = require("sqlite3").verbose();
const fs = require('fs');
const uuid = require('node-uuid');
const key = "齉龘靐齾... |
require = require('esm')(module /*, options*/ );
const Decoder = require('midi-file-parser')
const Encoder = require('jsmidgen')
const Util = require('./Util')
// import Util from "./Util"
const {
Track
} = require('./Track')
const {
parseHeader
} = require('./Header')
const scales = [
[ // major scale
['C', 'F'... |
var lastrow,lastcell,lastcellname;
$(function(){
var now = new Date();
var nowTime = now.getTime() ;
var day = now.getDay();
var oneDayTime = 24*60*60*1000 ;
//显示周一
var startTime = nowTime-(day-1)*oneDayTime;
//显示周日
var endTime = nowTime +(7-day)*oneDayTime ;
//初始化日期时间
var startday = new Date(startTime... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const gl_matrix_1 = require("gl-matrix");
const modelinstance_1 = require("../../modelinstance");
const node_1 = require("../../node");
const datatexture_1 = require("../../gl/datatexture");
const node_2 = require("./node");
const attac... |
const axios = require('axios');
const qs = require('qs');
const rp = require('request-promise');
const shuffle = require('shuffle-array');
const url = require('url');
const constant = require('./constant');
const config = require('./config');
const utils = require('./utils');
// ページのロード時に、daysとsolvedの設定に応じてinput属性の値を変... |
import { connect } from 'react-redux';
import withPageTitle from 'HOCs/withPageTitle';
import { Loader, IconButton, Button, Icon, SlideModal } from 'UI';
import { fetchList as fetchListSlack } from 'Duck/integrations/slack';
import { remove as removeIntegrationConfig } from 'Duck/integrations/actions';
import { fetchLi... |
var keystone = require('keystone');
var async = require('async');
var _ = require("underscore");
var manager = require("../../manager/manager");
var _config = keystone.get("_config");
var winston = require("winston");
var utils = require("../../manager/util/utils");
require("../../manager/util/datetime")... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.proto... |
// This is an amateur attempt at building a front-end for loading data and
// training a machine learning model using TensorFlow.js.
// I mentioned I'm an amateur, right?
// This accompanies a multi-part series I'm writing about
// my experiences as a ML n00b in training a system.
// It's openly licensed but you surely... |
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
rename = require('gulp-rename'),
replace = require('gulp-replace'),
ignore = require('gulp-ignore'),
sourcemaps = require('gulp-sourcemaps'),
request = require('re... |
const fs = require('fs');
const Dockerode = require('dockerode');
const joi = require('joi-cron-expression')(require('joi'));
const cron = require('node-cron');
const parse = require('parse-docker-image-name');
const { parse: parseSemver, isGreater: isGreaterSemver } = require('../../../semver');
const event = require(... |
var mustSlowCircles = false,
gameExited = false,
playButton = false,
goingRight = false,
menusAreOut = false,
mustRemoveMenus = false,
namesAreSet = false,
playerOneNameScreenOver = false,
playerOneName,
playerTwoName;
window.onload = toLoad();
function toLoad() {
var svg = doc... |
// ############################## Helper functions ##############################
// Shows slides. We're using jQuery here - the **$** is the jQuery selector function, which takes as input either a DOM element or a CSS selector string.
function showSlide(id) {
// Hide all slides
$(".slide").hide();
// Hide all su... |
var vm = new Vue({
el: '#vmx',
data: {
contracts:[
{"n":0,"name":"Agrigation Contract (Multi Oracles & APIs)"},
{"n":1,"name":"Service Level Agreement Contract (Multi Oracles & APIs)"}
],
type:0,
oracles:{"Mainnet":[{"n":"LinkPool","o":"0x240BaE5A27233Fd3aC5440B5a598467725F... |
"use strict";
$(window).on('load', function() {
changeClass("nav_2");
makeRequest("datasets/search", {}).then(function(response) {
const data = JSON.parse(response);
const listOfDatasetId = data['results']['datasets'];
let dropdown = document.getElementById("dropdown-menu");
... |
class SvgUtils {
static createSVG(tag, attrs) {
const el = document.createElementNS("http://www.w3.org/2000/svg", tag);
for (let attr in attrs) {
el.setAttribute(attr, attrs[attr]);
}
return el;
}
}
class MainMenu {
constructor() {
this.playerName = "Bar... |
// Client-side script implementing dashboard behavior
// 04.24.2018 tps Created.
// 04.25.2018 tps Added crude callback system for indicating when data done loading.
// 05.21.2018 tps Revise for reorganization of Canvas courses for Summer 2018 term.
// 05.28.2018 tps Revise for survey module 11's layout.
// 06.20.2018 ... |
/** * Copyright (c) 2018, Neap Pty Ltd.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const { parse } = require('graphql')
const shortid = require('shortid')
let _start
const startTime = anything => {
... |
const path = require('path');
const fs = require('fs');
const Discord = require('discord.js');
const { createCanvas, loadImage } = require('canvas');
module.exports = {
name: 'blur',
dev: false,
usage: {
doc: 'blur',
example: 'blur'
},
category: path.basename(__dirname),
description: '... |
export const APP_NAME = 'MyRangeBC'
// page titles
const createTitle = title => `${title} | ${APP_NAME}`
export const LOGIN_TITLE = createTitle('Sign in')
export const DETAIL_RUP_TITLE = createTitle('View RUP')
export const SELECT_RUP_TITLE = createTitle('Select RUP')
export const MANAGE_CLIENT_TITLE = createTitle('Ma... |
// Time object, for easy use and abstraction
function Time(milliseconds, scramble, element) {
this.time = milliseconds;
this.formattedTime = formatTime(this.time);
this.plusTwo = false;
this.dnf = false;
this.scramble = scramble;
this.element = element;
// Averages of 5 and 12 where this time is last t... |
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import { withTranslation } from 'react-i18next';
import { withRouter } from 'react-router-dom';
import { compose } from 'recompose';
import ReactTimeAgo from 'react-time-ago';
import PropTypes from 'prop-types';
import {
Block,... |
var pathSearchObj = pathSearch();
/**
* 路径搜索
* @author chengxg
* @since 2017-09-01
*/
function pathSearch() {
let edges = []; //邻接矩阵,棋盘铁路线的图
edges.push([0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //0
edges.push([1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
/* Copyright (C) 2016 NooBaa */
/* eslint max-lines: ['error', 2500] */
'use strict';
const _ = require('lodash');
const fs = require('fs');
const url = require('url');
const request = require('request');
const P = require('../../util/promise');
const dbg = require('../../util/debug_module')(__filename);
const cutil ... |
var relativ_base_dir = _PS_MR_MODULE_DIR_;
var num_mode_actif = -1;
img_loader = new Image;
img_loader.src = _PS_MR_MODULE_DIR_+'images/loader.gif';
var google_map_general = null;
var geocoder = null;
var recherche = 0;
var json_addresses = null;
function affiche_mydiv_mr(id_carrier, args)
{
if ($('#id_carrier_mr' ... |
/*
* Copyright (c) 2014ff <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the fol... |
var traceAPI=false;
var traceAPIdiagnostics=false;
var traceWIN=null;
var traceReady=false;
var traceString="";
var bIgnoreStatus=false;
function WriteTrace(str)
{
if (traceAPI && traceWIN!=null && !traceWIN.closed)
{
if (traceReady)
{
traceWIN.document.traceform.log.value=traceWIN.documen... |
const Constants = require('./constants')
const Helpers = require('./helpers')
class TablesSet {
constructor () {
}
toObject(){
let props = Object.getOwnPropertyNames(this)
let plain = {}
props.forEach(prop => {
plain[prop] = this[prop].table.toObject()
})
}
}
module.exports = function ... |
import React from "react";
import styled from 'styled-components';
import {BaseContainer} from '../../helpers/layout';
import {api, handleError} from '../../helpers/api';
import Button from '@material-ui/core/Button';
import {withRouter} from 'react-router-dom';
import LobbylistEntry from "../overview/LobbylistEntry";... |
// const config = require('../services/config')
const nano = require('nano')(config.getEnv('dbServer'));
const examdb = nano.db.use('examineer_exam')
const metadb = nano.db.use('examineer_metadata')
// for questions wise statistics
let getQuestionData = async (quizId) => {
// loadJSON
try {
let data ... |
/*
* TERMS OF USE: MIT License
*
* 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, modify, merge, pu... |
const async = require('async');
/**
Record current time in milliseconds
*/
function startTimer() {
return new Date().getTime();
}
/**
Given start time, return a string containing time difference in ms
*/
function stopTimer(timeStart) {
return `[${String(new Date().getTime() - timeStart)} ms]`;
}
function Key... |
import {deepAssign} from "../_util/deep_assign.js";
import {assert as assert2} from "../_util/assert.js";
class TOMLError extends Error {
}
class KeyValuePair {
constructor(key, value) {
this.key = key;
this.value = value;
}
}
class ParserGroup {
constructor(type, name) {
this.type = type;
this.na... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { formatMessage, defineMessages } from 'umi/locale';
import { Layout, message, Modal } from 'antd';
import IconTips from '@/frontlib/components/IconTips';
import IconButton from '@/frontlib/components/IconButton';
import DotTag from '..... |
if (!getCookie("name") || !getCookie("pass")) {
window.location.href = "/login?redirectTo=maths";
}
// INITIAL //
//general
var c = document.getElementById("c");
var ctx = c.getContext("2d");
var running;
var running = true;
var questionFontSize = 80;
//background fade
var showBackground = true;
var hid... |
'use strict';
var $ = require('jquery');
var Marionette = require('backbone.marionette');
var _ = require('underscore');
var academicCalendar = require('../../academicCalendar.json');
var analytics = require('../../analytics');
var padTwo = require('../../common/utils/padTwo');
var template = require('../templates/exp... |
$(document).ready(function () {
$('#input_tgl_lahir').on('changeDate', function(ev){
$(this).datepicker('hide');
var age = getAge(document.getElementById("input_tgl_lahir").value);
document.getElementById("input-usia").value = age;
});
$('#input_tgl_masuk_rs').on('changeDate', functi... |
/**
*
* Copyright 2013 University of Washington, School of Nursing.
* http://opensource.org/licenses/BSD-3-Clause
*
*/
// Journals Controller:
// just a wrapper around some old, ugly code
function JournalsController(options) {
var journals = this;
this.defaults = {
... |
import React, { useState, useRef } from 'react';
import "./newReceta.css"
import dataReceta from '../../../api/recetas.json'
import {AdvancedImage, responsive} from "@cloudinary/react";
import {getImagen} from "../../imagen/getImagenCloud";
import classNames from 'classnames';
import { Button } from 'primereact/button'... |
//https://littleflute.github.io/cchess/play/ii.html?f=9/3PPc3/3kb1n1P/5C2c/9/6R2/4P1C2/9/3r1p3/4K4%20w&id=303
var strRun = "#i23: v1.1. 22 ";
var g_FEN = "3rk4/5C3/5R3/9/9/9/9/9/5K2c/3p5 w";
var STARTUP_FEN = [
"rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w",
"rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1... |
var socket = io('/rooms', {transports: ['websocket'],
upgrade: false,
query: {room : window.location.pathname.split("/").pop()}},
);
var room_url = window.location.pathname.split("/").pop();
if (!socket){
window.location.href = '../auth/sign_in'
}
var host = false;
$(docu... |
/**
* Created by <NAME> on 14.02.2014.
*/
var stage, isTouchEnable = true, w, h, loader, background, sprSheet,
ground, outerPadding = 0, items = {}, startX, startY, wiggleDelta,
pipes, isGameStart = false, isHeartDead = false, masterPipeDelay = 1.75,
pipeDelay = masterPipeDelay, gap = 80, pipe, pipe2, co... |
/*
* 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
* distrib... |
import {GenericObject, Light} from "./objects";
import {Camera, Ray, Math3D, Matrices3D, World} from "./lib";
import SyntheticWorker from "synthetic-webworker";
export const Version = "1.1.0a"
if(window){
window.raytracer_version = Version;
}
/**
* Raytracer object to raytrace a world definition
* @para... |
var RaceOptions = ["Human"];
var HumanMaleFirsts = ["Arne", "Bjørn", "Eirik", "Geir", "Gisle", "Gunnar", "Harald", "Håkon", "Inge", "Ivar", "Knut", "Leif", "Magnus", "Olav", "Rolf", "Sigurd", "Snorre", "Steinar", "Torstein", "Trygve", "Ulf", "Valdemar", "Vidar", "Yngve"];
var HumanFemaleFirsts = ["Astrid", "Bryn... |
function outPwdControl(width) {
if (checkControl()) {//innerHTML中的div去掉了
document.getElementById("pwdControl").innerHTML='<OBJECT CLASSID="CLSID:135B5FDA-315E-47C2-8198-AC488DFD917A" id="inPwd" width="'+width+'px" height="26px" tabindex="3" CodeBase="./download/itruspta.cab#version=3.0.5.0"><PARAM NAME="ObjectName" ... |
import React, { useRef, useState, useCallback, useMemo, useEffect } from "react";
import PropTypes from "prop-types";
import clsx from "clsx";
import isNil from "lodash/isNil";
import { withStyles } from "@material-ui/core";
import { setId, useControlled } from "../utils";
import {
HvFormElement,
HvListContainer,
... |
import React, { useState, useEffect, useRef, useMemo } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { motion, AnimatePresence } from 'framer-motion';
import { moveListName, updateListNameEditors, updatePopup } from '../actions';
import {
SETTINGS_LISTS_MENU_POPUP, LIST_NAMES_POPUP, MY... |
/* USER INTERFACE **************************************************************
UI setup:
+objects do not create UI_Items themselves
-call g_UI.add(NAME, [parent]), which returns the item for customisation
-call g_UI.remove(FULLNAME), deletes a node and all child nodes
-call g_UI.get(FULLNAME), returns the node
*/
... |
let previous = document.getElementsByClassName("previous");
let pause = document.getElementsByClassName("pause");
let next = document.getElementsByClassName("next");
let title = document.getElementsByClassName("title");
let trackName = document.getElementsByClassName("name-track");
let aritstName = document.getElements... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.