text stringlengths 3.22k 29.5k |
|---|
"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... |
/*
新浪新闻标准版/极速版签到(二选一)
1.打开app,点击”我的“=>”签到“,获取第一个Cookie,通知获取信息成功
2.在未签到情况下,先禁用第一条Cookie链接,然后再次进入签到,通知获取签到Cookie成功 surge极速版配置请自行更换
Surge 4.0:
[Script]
新浪新闻 = type=cron,cronexp=35 5 0 * * *,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/sinanews.js,script-update-interval=0
新浪新闻 = type=http-reque... |
import React, { Component } from 'react';
import { withRouter } from 'react-router';
import AutoForm from 'react-auto-form';
import PropTypes from 'prop-types';
import pick from 'pedantic-pick';
import numeral from 'numeral';
import { Box, Heading, Anchor, Button, TextInput, RadioButton } from 'grommet';
import { Circ... |
'use strict';
const $ = require("lodash");
module.exports = {
/**
* 余额提现
* @url user/pub/test1 前端调用的url参数地址
* @description 此函数描述
* @params {Object} data 请求参数
* @params {String} uniIdToken 用户token
* @params {String} userInfo 当前登录用户信息(可信任,仅kh目录下的函数有此值)
* pub目录下请求参数需要带上 need_user_info = true
* ... |
/*
* JavaScript Code Generator Tests
*
* These tests check that the JavaScript generator produces the target
* JavaScript that we expect.
*/
const parse = require("../../ast/parser");
const { analyze } = require("../../semantics/analyzer");
const generate = require("../javascript-generator");
const factorialFunct... |
// @flow
import React, { Component, PropTypes } from "react"
import { connect } from "react-redux"
import { NSNotifier } from "../../../components/atoms/"
import styles from "./styles.css"
import * as Chart from "react-chartjs"
const LineChart = Chart.Line
const options = {
scaleShowGridLines : false,
scaleShowLabe... |
//
// paella-standalone
//
paella.standalone = {}
// Standalone Access Control
//
// By default read/write access
class StandaloneAccessControl extends paella.AccessControl {
checkAccess(onSuccess) {
this.permissions.canRead = true;
this.permissions.canWrite = true;
this.permissions.canContribute = true;
thi... |
import React, { memo, useEffect, useRef, useState } from 'react'
import CommonDialog from '@/components/common/dialog'
import { withStyles } from '@material-ui/core/styles';
import i18next from "i18next";
import _ from 'lodash'
import { Box, Checkbox, Button, ListItemAvatar, Avatar, ListItem, List, InputBase, Icon, Inp... |
/* * * * * * * * * * * * * *
* MAIN *
* * * * * * * * * * * * * */
// init global variables & switches
let myDataTable,
myMapVis,
myBarVisOne,
myStackedBarVis
let gradientColor = "green";
let selectedButton = -1;
let selectedCountry = 'none';
// category to show: gender, education, age, relati... |
import React from 'react';
import './admin_dailyplan.scss';
import DatePicker from "react-datepicker";
import Card from 'react-bootstrap/Card';
import Form from 'react-bootstrap/Form';
import Button from 'react-bootstrap/Button';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import "rea... |
/**
* Do not edit directly
* Generated on Thu, 13 Jan 2022 11:25:21 GMT
*/
export const ColorBlack = "#000000";
export const ColorWhite = "#ffffff";
export const ColorGray50 = "#f9fafb";
export const ColorGray100 = "#f9fafb";
export const ColorGray200 = "#e5e7eb";
export const ColorGray300 = "#d1d5db";
export const... |
'use strict';
const test = require('ava');
const sinon = require('sinon');
const omit = require('lodash/omit');
const awsServices = require('@cumulus/aws-client/services');
const {
promiseS3Upload,
recursivelyDeleteS3Bucket
} = require('@cumulus/aws-client/S3');
const { randomString } = require('@cumulus/common/t... |
import {SegmentSet} from "./segmentSet"
import * as Sweep from "./sweep";
import { EventPositionFlags } from "./sweepEvent"
// adds a new segment set to the result object with the given name
function resultAddSet(result, context, name) {
result[name] = new SegmentSet(context);
return result;
}
... |
var fs = require('fs');
var path = require('path');
var moment = require('moment');
var utils = require('../utils.js');
var MONTHS = ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'];
var DAY_SUFFIXES = ['st','nd','rd','th'];
var DAY_NAMES = ['monday','tuesday','wednesday','thursday','friday'... |
/**
* @Author tina
* @DateTime 2018-10-18
* @copyright 题干控件
*/
import React, { Component } from 'react';
import { Input, Tabs, Form, Modal } from 'antd';
import IconButton from '../../../../IconButton';
import UpLoadImg from './UpLoadImg';
import TextareaClearData from './TextareaClearData';
import { formatMes... |
var datable;
$(document).ready(function(){
$("#show_hide_password a").on('click', function(event) {
event.preventDefault();
if($('#show_hide_password input').attr("type") == "text"){
$('#show_hide_password input').attr('type', 'password');
$('#show_hide_password i').addClass( "fa-eye-slash" ... |
let hola = [];
class NodoBinaryTree {
constructor (value) {
this.value = value
this.derecha = null
this.izquierda = null
}
}
class Tree {
constructor () {
this.raiz = null
}
isEmpty () {
return this.raiz === null
}
addBinary (value) {
// arbol... |
import Web3 from 'web3';
import Token from '../abis/Token.json';
import Exchange from '../abis/Exchange.json';
import { ETHER_ADDRESS } from '../helpers.js';
import {
web3Loaded,
web3NetworkTypeLoaded,
web3NetworkIdLoaded,
web3AccountLoaded,
tokenLoaded,
exchangeLoaded,
cancelledOrdersLoaded,
filledOrd... |
import React, { PureComponent, Fragment } from 'react';
import moment from 'moment';
import { connect } from 'dva';
import { Link, routerRedux } from 'dva/router';
import { Card, Button, List, Table, Radio, Input, Tag, Avatar, Tabs } from 'antd';
import pageHeaderLayoutStyle from '../../layouts/PageHeaderLayout.less';
... |
const express = require('express')
const router = express.Router()
// Tier 1 version 2
// Select an action
router.post('/actions-answer', function (req, res) {
var action = req.session.data['what-action']
if (action == "agroforestry"){res.redirect('/tier1-v2/actions-answers?agroforestry[selected]=true&agrofores... |
import {BaseComponent} from "../../components/base/BaseComponent";
import React from "react";
import {Dimensions, Image, ScrollView, StyleSheet, Text, View} from "react-native";
import ImageView from "../../components/ImageView";
import TouchableView from "../../components/TouchableView";
import Request from "../../uti... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import throttle from 'react-throttle-render'
import { Card, CardHeader, CardText } from 'material-ui/Card'
import Chip from 'material-ui/chip'
import Highcharts from 'react-highcharts'
import SwipeableViews from 'react-swipeable-views';
im... |
import * as DateUtils from '../lib/dates.js';
import { getKeyMonthYear as getKeyDate, getDatesInGroupMonthYear as getDatesInGroup } from '../lib/dates.js';
import * as Log from '../lib/log.js';
import { removeChildren, groupListElements, getGroupListElements, formatString, formatterCost} from '../lib/utils.js';
import... |
import alt from 'alt-client';
import * as native from 'natives'
let lang = 0;
const name = ['Car tuning ', 'Тюнинг авто', 'Auto-Tuning']
const modTypes = [
['Spoiler', 'Спойлер', 'Autospoiler '], // 0
['Frontbumper', 'Передний бампер', 'Frontstoßstange'], // 1
['Rearbumper', 'Задний бампер', 'H... |
jQuery(document).ready(function($)
{
// Show First Slide
var _slides = $(".async_slider li");
_slides.hide().first().show();
$('.gallery a').hoverZoom({
overlay: true,
overlayColor: '#4997c9',
overlayOpacity: 0.9,
zoom: 0,
speed: 300
});
// Testimonals
var _testimonals_ti... |
function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}class App extends React.Component {
/***********************************************************
Initiates the... |
import React from "react";
import Card from "react-bootstrap/Card";
import Col from "react-bootstrap/Col";
import Row from "react-bootstrap/Row";
import Container from "react-bootstrap/Container";
import OverlayTrigger from "react-bootstrap/OverlayTrigger";
import Tooltip from "react-bootstrap/Tooltip";
import Icon fro... |
const fs = require("fs");
const Video = require("../models/Video");
const User = require("../models/User");
const jwt = require("jsonwebtoken");
const path = require("path");
const { unlink } = require("fs-extra");
const { imgFolder } = require("../public/img/path");
const appDir = require("../config");
const { getVi... |
const textarea_sections = ["Fullname","Recovery_email","Totalexperience","Review","Phone_number","About","Designation"]
const form_sections = ["Address","Payment","Experience","Education"]
const checkbox_sections= ["Licence"]
const errors_email = {"same":"Recovery email id is same as registered email id","invalid":"E... |
import React, { useEffect, useContext, useState } from "react";
import {
Header,
Button,
Segment,
Icon,
Modal,
Form,
Grid,
Loader,
Divider,
Search,
Item,
List,
} from "semantic-ui-react";
import { Context } from "../../Context";
import "./styles.scss";
import { debounce } from "../../utils";
co... |
let sPathName = location.pathname;
let lstPathName = sPathName.split('/');
let iProductoId = lstPathName.pop();
let vueProductosFiltrados = new Vue({
el: '#content',
data: {
locale: 'es',
iCargando: 1,
sBuscar: '',
pagina: {},
lstCarritoCompras: [],
iAgregand... |
import elk from './elk';
import assign from './assign';
import defaults from './defaults';
const elkOverrides = {};
const getPos = function(ele, options) {
const dims = ele.layoutDimensions(options);
const parent = ele.parent();
const k = ele.scratch('static') || ele.scratch('elk');
const p = {
... |
'use strict'
const hasOwnProperty = Object.prototype.hasOwnProperty
const mergeDeep = require('merge-deep')
const deepEqual = require('deep-equal')
const deep = require('deep-dot')
const names = require('browser-names')
const isForkPr = require('is-fork-pr').isForkPr
const prerelease = /[^\d.]/
const numeric = /^\d+$... |
import React from 'react';
import BobcatCoursesApi from "../../api/BobcatCoursesApi";
import { connect } from 'react-redux';
import CourseDetail from '../CourseDetail/CourseDetail';
import CourseSelector from '../CourseSelector/CourseSelector';
import { extractSectionsFromSchedule } from '../../utils/WeeklyCalendarUtil... |
/*
* Developed by <NAME> on 1/11/20 12:42 PM.
* Last modified 1/11/20 12:42 PM.
* Copyright (c) Cognoteq Software Solutions 2020.
* All rights reserved
*/
import Base from './base';
let mouseY = 0; // mouse pointer position on Y axis
let paddle = {};
let paddleBox = {
position: {x: 0, y: 0},
dimensions: {wi... |
import React from 'react';
import Confetti from 'react-confetti';
import styled from 'styled-components';
import io from 'socket.io-client';
import withNotification from './components/withNotification';
import Modal from './components/Modal';
import Spinner from './components/Spinner';
import LoadingOverlay from './co... |
"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... |
import React, { useState, createContext, useContext } from 'react';
import styled, { useTheme } from 'styled-components';
import { MdKeyboardArrowDown } from 'react-icons/md';
import Stack from './Stack';
import { ButtonReset } from '../ui';
import { motion, AnimatePresence } from 'framer-motion';
import { useMargaret ... |
import React, { useState, useEffect } from 'react';
import firebase from '../../config/firebase';
import {useParams} from "react-router-dom";
import { Container, Row, Col, CustomInput, Form, FormGroup, Label} from 'reactstrap';
//components
import MapData from "../../components/mapsData";
import Chart from "../../comp... |
const key = '&appid=<KEY>'
const days = 5
const currenturlquery = 'https://api.openweathermap.org/data/2.5/weather?q='
const UVUrl = 'https://api.openweathermap.org/data/2.5/uvi/forecast?lat='
const futureurlquery = 'https://api.openweathermap.org/data/2.5/forecast?q='
const button = document.querySelector("button")... |
import {applyMiddleware, combineReducers, createStore} from 'redux';
import {default as thunk} from 'redux-thunk';
import sinon from 'sinon';
import {MOCK_WATERWATCH_FLOOD_LEVELS} from 'ui/mock-service-data';
import {Actions, floodDataReducer, floodStateReducer} from './flood-inundation';
describe('monitoring-locati... |
const assert = require("assert");
const expect = require("expect");
//const expect = chai.expect;
const should = require("should");
//const should = chai.should;
const chai = require("chai");
// test('Não aceita lance com valor menor do que zero', () => {
// expect(true).toBe(true);
// })
describe("validateLogin... |
import './app_manager';
import { Clean } from "./support_classes/clean_sideform";
import { DB } from './support_classes/persist_data_frontend';
const db = new DB();
const clean = new Clean();
db.localDB.changes({
since: 'now',
live: true,
include_docs: true
}).on('change', async (change)=> {
// change.id cont... |
import CanvasKitUtils from "./canvaskit-utils.js";
import Transformable from "./transformable.js";
const XML_TAB = ' ';
export default class Drawable extends Transformable {
constructor(props) {
super(props);
this._id = CanvasKitUtils.newID();
this.children = [];
this.showChildre... |
"use strict";
var _get_uid = function(objs)
{
var uid;
if (objs == null)
uid = null;
else if (typeof(objs) === "object")
{
var inst = objs.GetFirstPicked();
uid = (inst!=null)? inst.GetUID():null;
}
else
uid = objs;
return uid;
... |
import React, { useState, useEffect } from 'react';
import { withParentSize } from '@vx/responsive';
import { scaleTime, scaleLinear } from '@vx/scale';
import { LinePath, AreaClosed, Bar, Line } from '@vx/shape';
import { LinearGradient } from '@vx/gradient';
import { PatternLines } from '@vx/pattern';
import { withTo... |
/*
* Copyright 2018-2021 Membrane Software <<EMAIL>> https://membranesoftware.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list... |
// React & Next
import { useContext, useEffect, useState } from "react";
import { useTranslation } from "next-i18next";
// Material UI
import {
Avatar as MuiAvatar,
Button,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
IconButton,
List,
ListItem,
ListItemAvatar,
ListItemIcon,
ListItemSecondaryAction,
... |
// Initiating a call example. Note: we use bogus sdp, so no real rtp session will be established.
// https://gist.github.com/mheadd/906216
var sip = require('sip');
var util = require('util');
var os = require('os');
var callmap= require('./call_map.js')
module.exports = function(initialIpAddress){
//node make_call.... |
// This loads the environment variables from the .env file
require('dotenv-extended').load();
var builder = require('botbuilder');
var restify = require('restify');
var Store = require('./store');
// Setup Restify Server
var server = restify.createServer();
server.listen(process.env.port || process.env.PORT || 3978, ... |
var idvic = 0;
var ajax_url = $('#ajax_url').val();
var tbl_obj = {};
$('#confirmationBox').modal({
backdrop: 'static',
keyboard: false
})
$(document).ready(function () {
/*tbl_obj=$('#manageUser').DataTable({
"bPaginate": true,
"bLengthChange": false,
"bInfo": false,
"bFilter": true,
"bAutoWidth": fals... |
// Connect to NATS server
const nats = require('nats').connect("nats://localhost:4222");
const crypto = require('crypto');
// List of users and their passwords
const users = {
admin: { id: 1, name: "Administrator", role: "admin", password: "<PASSWORD>" },
guest: { id: 2, name: "Guest", role: "guest", password: "<PAS... |
/* jshint esversion: 6 */
import {
output,
ParamGui
}
from "../libgui/modules.js";
import {
colorTable,
displayRectangularColorTable
}
from "./modules.js";
/**
* create an initial configuration for the cells
* choosing between different symmetries, deterministic or random
* display always
* activ... |
import React, {Component} from 'react';
import {Avatar, Paper, Typography, withStyles, TextField, IconButton, Icon} from '@material-ui/core';
import {FuseScrollbars} from '@fuse';
import classNames from 'classnames';
import moment from 'moment/moment';
import * as Actions from './store/actions';
import {bindActionCreat... |
var io = require("socket.io-client");
var process = require("process");
var util = require("util");
var argv = require('yargs')
.usage('Usage: $0 [-m measurements] [-p pairs] [-w wait_ms] server_url')
.default('measurements', 0)
.default('pairs', 1)
.default('wait', 0)
.alias('m', 'measurements')
... |
/***************************************************************************************************************************
FileName : sdkNotificationManager.js
Purpose : Handles HID-Approve push notifications and dynmically Injects Notification UI in form
Author : <NAME>
Org ... |
function readUint8(array)
{
byt = array[ofset];
ofset+=1;
return byt;
}
function readUint64(array) {
var BigInt = window.BigInt, bigThirtyTwo = BigInt(32), bigZero = BigInt(0);
var left = BigInt(readUint32(array)>>>0);
var right = BigInt(readUint32(array)>>>0);
var numb = (right<<bigThirtyTwo... |
import React, { useEffect, useCallback, useRef, useState } from 'react';
import classNames from 'classnames';
import {
sRGBEncoding,
LinearFilter,
Color,
TextureLoader,
Vector3,
MathUtils,
Group,
AmbientLight,
DirectionalLight,
WebGLRenderer,
PerspectiveCamera,
Scene,
WebGLRenderTarget,
Plan... |
var runsList;
$(function() {
$("#runData").on('click', 'tr.runRowItem', function() {
var repoName = $(this).attr('data-repoName');
var branch = $(this).attr('data-branch');
var buildId = $(this).attr('data-buildId');
var buildNumber = $(this).attr('data-buildNumber');
var path = [repoName, 'jobs'... |
/*eslint-disable*/
import React, { Component } from 'react';
import { Card, Form, Input, Select, Col, Button, Radio, InputNumber, DatePicker, TreeSelect, message } from 'antd';
import { connect } from 'dva';
import moment from 'moment';
const dateFormat = 'YYYY-MM-DD HH:mm';
import styles from './PaymentCreate.less';
i... |
const lib = require(__dirname + '/../lib')
const lokinet = require(__dirname + '/../lokinet')
let config
function start(pConfig) {
config = pConfig
}
const nodeVer = Number(process.version.match(/^v(\d+\.\d+)/)[1])
async function status() {
// calls areWeRunning && getPids
var running = lib.getProcessState... |
/**
* Allows the current user to update basic information
* first name, last name, etc (not username)
*/
// import react things
import React, { PropTypes } from 'react';
import ReactNative from 'react-native';
import { connect } from 'react-redux';
// import react-native components
import Alert from 'Alert';
import D... |
const pathResolve = require('path').resolve;
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const InlineManifestWebpackPlugin = require('inli... |
//checkbox requiere solicitud interempresas
function reqconcepto(cheked) {
rconcepto = document.getElementById('conceptostable');
var checkfield = cheked.checked;
console.log(checkfield);
if (checkfield == true){
rconcepto.style.display ='block';
document.getElementById("concepto").value = "SOLI... |
/* eslint-disable max-lines */
/* eslint-disable no-undef */
const main = document.querySelector('main');
const createAboutUsSection = () => {
const itemFragment = document.createDocumentFragment();
const aboutUsBootstrapWrap = makeBootstrapWrap();
const aboutUsContainer = createElement('section', 'about-us');
... |
var SerialPort = require('serialport');
var PixelPusher = require('heroic-pixel-pusher');
var getPixels = require('get-pixels');
var fs = require('fs');
var q = require('q');
var gm = require('gm');
var files;
var debug;
var noise;
var teensy;
[files, debug, noise, teensy].forEach((debugMode) => {
debugMode = funct... |
/*!
* Copyright(c) 2021 <NAME>
* MIT Licensed
*/
'use strict'
var fs = require('fs');
const ibmdb = require('ibm_db');
var exports = {};
var dataBase = ibmdb.Database;
exports.connect = connect;
exports.getDb = getDb;
exports.compareTables = compareTables;
module.exports = exports;
/**
* Return a promisse wit... |
var app = (function () {
'use strict';
/* code here */
// http://www.roguebasin.com/index.php?title=Dungeon-Building_Algorithm
function init() {
console.log('Inicio');
dungeon.createDungeon();
renderer.setMyCanvas();
renderer.drawMyCanvas(dungeon.map);
}
return {
init: init
};
}());
... |
const fs = require('fs')
const jsincss = require('jsincss')
const puppeteer = require('puppeteer')
module.exports = function(
plugins = {},
inputCSS = '',
outputJS = '',
outputCSS = ''
) {
plugins = Object.assign(
{
stylesheet: {},
rule: {}
},
plugins
)
return (async () => {
... |
//Socket do cliente (client-side)
var socket = io();
socket.on('userConnected', function() {
showUserConnected();
});
socket.on('userDisconnected', function() {
showUserDisconnected();
});
socket.on('updateClientsCount', function(count) {
updateClientsCount(count);
});
socket.on('resultSearchBO', function(bo) {
... |
// ATALHO PARA QUERY SELECTOR
let qs = (el) => {
return document.querySelector(el);
}
let qsa = (el) => {
return document.querySelectorAll(el);
}
// VARIÁVEIS GLOBAIS
let pokes = [];
// FAZENDO REQUISIÇÃO E JOGANDO NA TELA
async function getPokes() {
// Loop for para fazer a requisição do tanto de pokemons ... |
// Extension of Snap.svg for easy construction of simple graphs.
// Copyright (c) 2015 <NAME>. All rights reserved.
function plotAxes(p, xMin, xMax, yMin, yMax, grid) {
/* Draws a set of 2d axes on p. */
if (typeof xMin === 'undefined') xMin = -10;
if (typeof xMax === 'undefined') xMax = 10;
if (typeof... |
import droidSans from '-/assets/fonts/helvetiker_bold.typeface.json'
import * as THREE from 'three'
import threeOrbitControls from 'three-orbit-controls'
import particleTexture from '-/assets/particle3.png'
export const createAxes = ({ size, fontSize = 3 }) => {
const fontLoader = new THREE.FontLoader()
const font... |
import React from 'react'
import { Row, Col, Form, FormGroup, FormControl, Container, Card, Dropdown, ListGroup } from 'react-bootstrap'
import BootstrapTable from 'react-bootstrap-table-next'
import Web3 from 'web3';
import getWeb3 from '../../utils/getWeb3'
import Solo from '../../artifacts/Solo'
import { Button, Sty... |
"use strict";
// A region cannot be changed!
// Must have at least one square
class Region {
constructor(name, colour, x, ys) {
const points = ys.split(' ')
this.x = x
this.froms = []
this.tos = []
this.cities = []
this.name = name
this.colour = colour
this.count = 0
this.minX = ... |
/**
* server.js
* This file defines the server for a
* simple photo gallery web app.
*/
"use strict;"
/* global variables */
var multipart = require('./multipart');
var http = require('http');
var url = require('url');
var fs = require('fs');
var port = 3600;
/* load cached files */
var config = JSON.parse(fs.rea... |
import React, { useState, useEffect } from "react"
import styled, { css } from "styled-components"
import {
SVG,
arrowDropUp,
arrowDropDown,
search,
} from "project-pillow-components"
import { SURFACE, HIGH_EMPHASIS, MAIN_THEME } from "../../../constants/theme"
import useKeyPress from "../../../hooks/useKeyPre... |
////////////////////////////////////////////////////////////////////////////
/// Part of nano-orm ///
////////////////////////////////////////////////////////////////////////////
/// \brief Tests for fields of type datetime
////////////////////////////////////////////... |
'use strict';
const co = require('co');
const zlib = require('zlib');
const lodash = require('lodash');
const child_process = require('child_process');
const EventEmitter = require('events').EventEmitter;
const event = new EventEmitter();
module.exports = function (_common, config, logger) {
/**
* @param {str... |
import { SeqStream } from "bytestreamjs";
import { BaseClass } from "../BaseClass.js";
//**************************************************************************************
// Standard names
// https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6post.html
//
const standardNames = [
".notdef",
".n... |
import React, {useEffect, useState, } from 'react'
import L, {map} from 'leaflet'
import 'leaflet/dist/leaflet.css'
import { MapContainer, TileLayer, Marker, Popup, useMapEvents } from 'react-leaflet'
import { confirmAlert } from 'react-confirm-alert'; // Import
import useInterval from '../useInterval'
import 'react-co... |
import React, {Component} from "react";
import {faPlusCircle, faTrashAlt} from '@fortawesome/free-solid-svg-icons'
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import './keyspace.css';
const $ = window.$;
export default class Keyspace extends Component {
state = {
title: '',
id:... |
"use strict";
// Require Node.js Dependencies
const stream = require("stream");
const { promisify } = require("util");
const { join, sep } = require("path");
const { createGunzip } = require("zlib");
const { spawn, execFile } = require("child_process");
const {
createReadStream,
promises: { mkdir, rmdir, renam... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _objectWitho... |
import React from 'react';
import { connect } from 'react-redux';
import Immutable from 'immutable';
import { Time } from '../Time';
import Icon from '../Icon';
import * as NotebookActions from '../../actions/NotebookActions';
import { EmbedTypes } from '../../constants/Embed';
import TaggedInput from '../TaggedInput';... |
'use babel';
/*
<NAME>
https://exponentialworks.com
*/
import { CompositeDisposable, Disposable, TextEditor, File, Directory, Emitter } from 'atom';
var _electron = require("electron");
const path = require('path');
const fs = require('fs');
const dom = require('./exwDOMHelper.js');
console.log(dom);
const exwFileS... |
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var debug = require('debug')('qp:Job');
var f = function(e) {
if (e) console.log(e);
};
var Job = module.exports = function(queue, data, opts) {
this.data = data;
this.queue = queue;
this.state = 'unsaved';
this.redis = queue.red... |
function moveItemLeft(itemToMove,nextElement){
console.log("moving")
itemToMove.style.transform = 'translateX(-100%)'
nextElement.style.transform = 'translateX(0%)'
}
function moveItemRight(itemToMove,nextElement){
console.log("moving")
itemToMove.style.transform = 'translateX(100%)'
nextElem... |
module.exports.scoreHand = function (hand, isCrib) {
if (typeof hand !== "string") throw 'A hand must be supplied';
// normalize the input and then split into individual cards
const fullHand = hand.trim().toUpperCase().split(",");
if (fullHand.length != 5) throw '5 cards must be supplied as a comma sep... |
import config from './config';
import DBHelper from './libs/dbhelper';
import {
formatDate,
getResponsiveImageUrl,
isOnline,
scrollToElementBottom,
setElementVisibility,
} from './libs/utils';
import {
listenForNetworkChanges,
listenForFavouriteAction,
} from './libs/listeners';
import {
... |
import React from 'react';
import connectToStores from 'alt/utils/connectToStores';
import NotebookStore from 'stores/NotebookStore';
import WindowStore from 'stores/WindowStore';
import WindowActions from 'actions/WindowActions';
import NotebookActions from 'actions/NotebookActions';
import NotionNavBar from 'componen... |
// adding custom buttons to tinymce.
// to activate, add 'musicalsymbols' to 'plugins' and 'theme_advanced_buttons1' below.
var meiElementName = "";
var meiAtts = {};
var defaultMeiAtts = {};
tinymce.PluginManager.add('musicalsymbols', function(editor, url) {
function showDialog() {
/... |
'use strict'
const dbtype = global.dbtype;
const comp = global.comp;
module.exports = {
title: "Collection Cash Discount",
autoid: true,
idprefix: 'CD',
printing: true,
committer: true,
approval: true,
dept_id_field: 'dept_id',
doc_id: 'CASHDISC',
persistent: {
'trn_collcashdisc': {
comment: 'Daftar Ca... |
import React, { Component } from 'react'
import { Divider, Icon, Spin, Input, Tooltip, Button, Form, Select, } from 'antd'
import { inject, observer } from 'mobx-react';
import { Row, Col } from 'reactstrap'
import { css } from 'emotion';
import LayoutMain from "../Main/LayoutMain";
import SearchModal from './Sea... |
/* ==================================================
// ____ _ _ _ _ _ _____ _
// | _ \(_)___| |_(_)_ __ ___| |_(_)_ ____|_ _| |__ ___ _ __ ___ ___ ___
// | | | | / __| __| | '_ \ / __| __| \ \ / / _ \| | | '_ \ / _ \ '_ ` _ \ / _ \/ __|
// |... |
import { promises as fsp } from 'fs'
import * as path from 'path'
import pump from 'pump'
import concat from 'concat-stream'
import Hyperbee from 'hyperbee'
import { client } from './hyperspace.js'
import * as hyperspace from './hyperspace.js'
import { PublicServerDB, PrivateServerDB } from './server.js'
import { Publi... |
/**
* qlimiter - nodejs call limiter
*
* Copyright (C) 2016 <NAME>
* Licensed under the Apache License, Version 2.0
*/
'use strict';
var qlimiter = require('../');
var Limiter = qlimiter.Limiter;
var Limit = qlimiter.Limit;
var LimitPerInterval = require('../lib/LimitPerInterval');
module.exports = {
'setup... |
class Shader {
constructor(vertexSource, fragmentSource) {
this.vertexSource = vertexSource;
this.fragmentSource = fragmentSource;
this.program = gl.createProgram();
this.createProgram();
}
initShader(code, type) {
const shader = gl.createShader(type);
gl.sha... |
import React, { Component } from 'react'
import FormComponent from './FormComponent'
import Confirm from '../dialogs/Confirm'
import TextInput from '../inputs/TextInput'
import SingleMultipleInput from '../inputs/SingleMultipleInput'
import SelectInput from '../inputs/SelectInput'
import DatePickerInput from '../inp... |
"use strict";
import snabbdom from 'snabbdom';
import h from 'snabbdom/h';
var Group = 'solo';
var Name = 'Fred';
const monad = h('pre', {style: {color: '#AFEEEE' }}, ` class Monad {
constructor(z) {
this.x = z;
this.bnd = (func, ...args) => {
return func(this.x, this, ...args);
};
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.