text stringlengths 2 1.04M |
|---|
const { Normal } = require('../../../src/models/normal.model.js');
const moment = require('moment');
const faker = require('faker');
const _ = require('lodash');
const mongoose = require('mongoose');
const bcrypt = require('bcryptjs');
const save = jest.fn();
const createFakeUser = () => {
const password = faker.int... |
'use strict';
const GenerateTask = require('./generate-from-blueprint');
class DestroyTask extends GenerateTask {
constructor(options) {
super(options);
this.blueprintFunction = 'uninstall';
}
}
module.exports = DestroyTask; |
const userPresenter = require('./user');
module.exports = ({id_str, text, user, created_at}) => ({
id: id_str,
text,
created_at,
user: userPresenter(user)
}); |
var React = require('react');
class DungeonCell extends React.Component {
//state = {};
componentDidMount() {
//console.log(this.props.cell);
}
render() {
let cell = this.props.cell;
if (!cell) {
cell = '.';
}
return (
<span>{cell}</span>
)
}
}
module.exports = DungeonC... |
/**
* @name Paginator
* @constructor
*/
class Paginator {
/**
*
* @param {object} options
* @param {any[]} options.elements
* @param {number} options.size
*/
constructor (options = {}) {
this.elements = options.elements
this.pages = {
actual: 1,
total: Math.ceil(options.elemen... |
/**
* Recipe model
*/
class Recipe {
constructor(data = {}) {
this.recipeId = null;
this.recipeName = null;
this.authorId = null;
this.cuisine = null;
this.cost = null;
this.ingredient = null;
this.pictureLocation = null;
this.content = null;
... |
//code below executes on load
window.api = "https://best-way.herokuapp.com/api";
let app = angular.module("myApp", []);
app.controller("myCtrl", [
"$scope",
"$window",
function ($scope, $window) {
fetch(`${window.api}/cities`)
.then(response => response.json())
.then(json =>... |
import React from 'react';
import { BrowserRouter, Switch, Route } from "react-router-dom";
import io from "socket.io-client";
import LoginPage from './pages/LoginPages';
import RegisterPage from "./pages/RegisterPages";
import DashboardPage from "./pages/DashboardPages";
import IndexPage from './pages/IndexPages';
imp... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import * as React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import Header from "./header"
import "./layout.css"
... |
import React, { PropTypes } from 'react'
import one from "./../images/gaobie.jpg"
import two from "./../images/two.jpg"
import three from "./../images/three.jpg"
class Blog extends React.Component {
constructor(){
super()
this.state={
num:0,
string:'',
index:0,
show:true
}
}
co... |
// function to generate markdown for README
function generateMarkdown(data) {
return `# ${data.title}
${data.license == "MIT" ? "[](https://opensource.org/licenses/MIT)" : ""}${data.license == "APACHE 2.0" ? "[;
// Making resharper less noisy - These are defined in Generate.js
if (typeof (copyTree) === "undefined") copyTree = function () { };
if (typeof (getApiJson) === "undefined") getApiJson = function () { };
if (typeof (generateApiSummaryLines) === "undefined") generateApiSummaryLines = functio... |
'use strict'
for (var c = 1; c <= 100; c++)
/*
// first version
console.log(
c % 3 === 0 ?
"Fizz" :
c % 5 === 0 ?
"Buzz" :
c
)
// second version
for (var c = 1; c <= 100; c++)
console.log(
c % 3 === 0 && c % 5 === 0 ?
"FizzBuzz" :
c
)
*/
// third version (obvious, I ... |
define({"topics" : [{"title":"Topic","shortdesc":"\n <p class=\"shortdesc\">The MQTT Publisher destination writes messages to a single topic on the MQTT broker. Any MQTT client subscribed to\n that topic receives the messages. A topic is a string that the broker uses to fi... |
//# sourceMappingURL=victory-histogram.min.js.map |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'horizontalrule', 'ug', {
toolbar: 'توغرا سىزىق قىستۇر'
} ); |
import {groupBy, map} from 'lodash';
import React from 'react';
import {Radio} from 'react-bootstrap';
import {Menu, MenuItem, Token, Typeahead} from '../../src/';
import options from '../../example/exampleData';
const MenuDivider = props => <li className="divider" role="separator" />;
const MenuHeader = props => <li... |
'use strict'
const HFS = require('../../')
module.exports = async (state = {}, update = {}) => {
const { price, mts } = update
const { macd } = HFS.indicators(state)
const current = macd.v()
const previous = macd.prev()
const crossedOver = (
(current.macd >= current.signal) &&
(previous.macd <= pre... |
import React from "react"
import Helmet from "react-helmet"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import styled from 'styled-components';
import Header from "../common/Header"
import Footer from "../common/Footer"
import appleTouchIcon from '../../images/favicon/apple-touc... |
var x = String . prototype . endsWith . call ( new String ( { [ Symbol . match ] : async function ( x ) { } } ) , { [ Symbol . match ] : async function ( x ) { } } , { [ Symbol . match ] : async function ( x ) { } } ) ; |
jQuery(document).ready(function() {
jQuery('.rpm-menu-close').click(function() {
var parent = jQuery(this).parent();
parent.css('display', 'none');
});
jQuery('.rpm-menu-open').click(function() {
console.log('hola');
var menu = jQuery(this).parents('.rpm-menu').find('.rpm-menu-toggle');
menu.css('display',... |
export { RkText } from './src/components/text/rkText';
export { RkBadge } from './src/components/badge/rkBadge.component';
export { RkButton } from './src/components/button/rkButton';
export { RkChoice } from './src/components/choice/rkChoice';
export { RkChoiceGroup } from './src/components/choiceGroup/rkChoiceGroup';... |
import React, { Component } from 'react';
import $ from 'jquery';
import Cookies from 'js-cookie';
import Announcement from './Announcement';
import Nav from '../containers/Nav';
export default class AnnouncementFeed extends Component {
constructor(props) {
super(props);
this.state = {
user: JSON.par... |
import DashboardMediaContainer from 'components/DashboardMedia/DashboardMediaContainer'
import DashboardMediaData from 'components/DashboardMedia/DashboardMediaData'
import DashboardMediaPresentation from 'components/DashboardMedia/DashboardMediaPresentation'
export default {
Container: DashboardMediaContainer,
Da... |
// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../../../static/disturbance_vue/index.html'),
assetsRoot: path.resolve(__dirname, '../../../static/disturbance_vue'),
as... |
var auth = require('../../../lib/auth.js');
var google = require('googleapis');
var Promise = require('bluebird');
exports.GET = function(req, res){
return new Promise(function(resolve, reject){
var req = google.admin('directory_v1').members.list({
auth: res.locals.google.auth,
groupKey: 'family@wind... |
angular.module("umbraco").controller("Chillies.SettingType.FieldConditionsController",
function ($scope, $routeParams, pickerResource) {
function init() {
if (!$scope.setting.value) {
$scope.mappings = [];
} else {
$scope.mappings = JSON.parse($scope.setting.value);
... |
import _Object$entries from "babel-runtime/core-js/object/entries";
export default function splitComponentProps(props, Component) {
var componentPropTypes = Component.propTypes;
var parentProps = {};
var childProps = {};
_Object$entries(props).forEach(function (_ref) {
var propName = _ref[0];
var prop... |
import React from 'react';
import { StyleSheet, View} from 'react-native';
import Searcher from '../components/Searcher';
import Locations from '../components/Locations';
import { connect } from 'react-redux';
import ErrorScreen from './ErrorScreen'
const LocationsSearchScreen = ({fetching,error,route}) =>{
... |
// @flow
import * as React from 'react'
// import css
type PropsType = {
closeModal: Function,
youtubeId: string
};
class YoutubeModal extends React.PureComponent<PropsType> {
closeModal = () => {
const { closeModal } = this.props
closeModal('youtube')
}
render (): React.Element<'div'> {
const ... |
import _ from 'lodash';
import path from 'path';
import Client from './Client.js';
import FileManager from './FileManager.js';
class ClientManager {
constructor(){
this.client = new Client();
this.fileManager = new FileManager();
}
initUserCredentials(options){
return this.client.... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
import React from "react";
import SettignsForm from "./SettignsForm";
export default function Header() {
return (
<div className="flex justify-between bg-blue-300 border-b-5 text-black p-6">
<div>Correo</div>
<div>Buscador</div>
<div>
<SettignsForm />
</div>
</div>
);
} |
import React from 'react';
const Input = (props, context) => {
return (
<label>
<input
name={props.name}
onChange={context.onInputChange}
value={props.value || ''}
/>
{props.label}
</label>
);
}
Input.contextTypes = {
onInputChange: React.PropTypes.fu... |
/**
* Load all Middleware functions
* All middlware here is loaded before app.router
**/
// System definitions
var connectTimeout = require('connect-timeout')
, redis = require("./datastores/redis.js")
, mongoose = require("./datastores/mongoose.js")
, expressValidator = require("express-validator")
, se... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const exec = require('child_process').exec;
const path = require('path');
const webpack = require('webpack');
const tsTransformer = require('@formatjs/ts-transformer');
const PLUGIN_ID = require('../plugi... |
import axios from 'axios'
import qs from 'qs'
import { message } from 'antd'
message.config({
top: 60,
duration: 5,
})
const config = {
baseURL: window.__pathname_prefix__, // eslint-disable-line no-underscore-dangle
headers: {
Accept: 'application/json',
},
}
const fetch = (options) => {
let {
met... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.adapter = f()}... |
$(function(){
var peerReviewCanvas = $('#peer-review')[0];
var peerReviewCtx = peerReviewCanvas.getContext('2d');
var color = [
'yellow',
'purple',
'red',
'silver',
'green',
'blue',
'orange',
'fuschia',
'cyan'
]
// Draw peer review chart
peerReviewCtx.fillText("Peer Review... |
'use strict';
(function () {
var eprosesoApp = angular.module("eprosesoApp");
var ReportController = function ($scope,$http, $routeParams,$location,$timeout)
{
//common error function
//$scope.reportby = "d";
/*$scope.viewReportBy= function(){
window.alert('kl');
... |
/*! bootstrap3-wysihtml5-bower 2014-09-08 */
|
import {Component} from './Component';
import {attributes, copy} from './prototype/attributes';
import {CompositionError} from './errors';
@attributes(
copy('position', 'rotation', 'quaternion', 'target')
)
class CameraComponent extends Component {
static defaults = {
...Component.defaults,
build: true,
... |
import { checkNumArgs } from '../_check_inline_args';
import { getArrDepth } from '../libs/arrs';
import { multMatrix, xformMatrix } from '../libs/matrix';
import { vecAdd, vecCross, vecFromTo, vecMult, vecNorm, vecRot, vecSetLen } from '../libs/vectors';
/**
* Creates a ray from an origin "o" and a direction vector "... |
function newVideoRecorder() {
let thisObject = {
recordCanvas: recordCanvas,
physics: physics
}
let lastAction
let wheelAnimationCounter = 0
let lastWheelPointerIcon
return thisObject
function physics() {
wheelAnimationCounter--
if (wheelAnimationCounter < 0)... |
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { useDispatch, useSelector } from 'react-redux';
import { translate } from 'react-i18next';
import { push } from 'connected-react-router';
import { Box, Flex, Text } from 'rebass/styled-components';
import baseTheme from '../../themes/... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
import { createStore } from 'redux'
import reducers from './reducer.js'
import { persistStore, persistReducer } from 'redux-persist'
import storage from 'redux-persist/lib/storage'
import autoMergeLevel2 from 'redux-persist/lib/stateReconciler/autoMergeLevel2'
const persistConfig = {
key: 'music-box',
storage: sto... |
const t = require('tap')
const { resolve, join } = require('path')
const { fake: mockNpm } = require('../../fixtures/mock-npm')
const noop = () => null
let libnpmdiff = noop
const config = {
global: false,
tag: 'latest',
diff: [],
}
const flatOptions = {
global: false,
diffUnified: null,
diffIgnoreAllSpac... |
import * as React from 'react';
import Typography from '@mui/material/Typography';
import Breadcrumbs from '@mui/material/Breadcrumbs';
import Link from '@mui/material/Link';
import PrintIcon from '@mui/icons-material/Print';
import WhatshotIcon from '@mui/icons-material/Whatshot';
import GrainIcon from '@mui/icons-mat... |
const app = require('./app');
const PORT = process.env.PORT || 8000;
app.listen(PORT, () => {
// eslint-disable-next-line no-console
console.log(`Running on PORT ${PORT}`);
}); |
'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-karma');
var ciOptions = {
singleRun: true,
browserStack: {
username: process.env.BS_USERNAME,
accessKey: process.env.BS_ACCESS_KEY,
retryLimit: 2,
},
// define browsers
customLaunchers: {
bs_fir... |
define(['lodash',
'async!http://maps.googleapis.com/maps/api/js?libraries=places'
],
function (_) {
'use strict';
var api = {
myOptions: {
// correspond aux coorcodées de Paris, France
center: new google.maps.LatLng(46.227638, 2.213749),
... |
import HalinQuery from '../../HalinQuery';
export default new HalinQuery({
description: 'Lists active tasks the database',
dependency: ctx => {
const version = ctx.getVersion();
return {
pass: version.major >= 3 && version.minor >= 5,
description: 'Requires Neo4j >= 3.4'... |
module.exports=require('../../decode-ranges.js')('goAgxAeAgkAcAw55AAAwddAwl9ACAglAg2AOAp5AAAdAwQ9AAAAAAAAAAAAAhPAfAAAAAAAAAmTAAAAAAAAAAAAAAAAAAAAAg_AAAggAwQaAIAAAAAAAYAnEAAAAAAAAACAAAAAAABA4M0gAjWAcAAAAAAAAAAAAAAACAQAAAAAipAgxAeACABAzL0CgqAAAjvAxJTA') |
define([ 'lodash' ], function(_) {
return function(coll) {
return _(coll)
.sortBy(function(item) {
return item.first + ' ' + item.last;
});
};
}); |
'use strict';
const express = require('express');
const files = require('../models/file-list');
const router = express.Router();
router.get('/api/file/:fileGrp', function (req, res) {
files.get(req.params.fileGrp, res);
});
router.post('/api/file', function (req, res) {
files.create(req, res);
});
router.d... |
let input = {"type":"input","timeStamp":1533538938481,"detail":{"value":"test update","cursor":5},"target":{"id":"","dataset":{"compId":"0","eventId":"0"},"offsetTop":0,"offsetLeft":0},"currentTarget":{"id":"","dataset":{"compId":"0","eventId":"0"},"offsetTop":0,"offsetLeft":0},"touches":[]}
export {
input
} |
jQuery.extend(jQuery.fn.pickadate.defaults, {
monthsFull: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"],
monthsShort: ["jan", "feb", "maa", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"],
weekdaysFull: ["zondag", ... |
import React from "react";
import { StyleSheet, SafeAreaView, StatusBar, ScrollView } from "react-native";
import {
Layout,
Text,
Icon,
Input,
Button,
MenuItem,
OverflowMenu,
TopNavigation,
TopNavigationAction,
} from "@ui-kitten/components";
import { showMessage, hideMessage } from "react-native-fla... |
import stripTags from 'striptags';
export default function isBlank(html) {
return !!stripTags(html).match(/^\s*$/);
} |
function AppBackground($state, $rootScope) {
'ngInject';
return {
restrict: 'A',
link: function(scope, element, rootScope) {
$rootScope.$on('$stateChangeStart',
function(event, toState, toParams, fromState, fromParams) {
if (toState.title == 'Hom... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
const playground = require('../');
const SCHEMA = `
type User {
name: String
age: Int
best_friend: User
}
ty... |
const schema = {};
schema.Intangible = require("./Intangible.js");
/**
* Schema.org/MenuItem
* A food or drink item listed in a menu or menu section.
*
* @author schema.org
* @class MenuItem
* @module org.schema
* @extends Intangible
*/
module.exports = class MenuItem extends schema.Intangible {
/**
* Constr... |
/*
* /MathJax/extensions/TeX/HTML.js
*
* Copyright (c) 2012 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apach... |
(function($){
"use strict"; // Start of use strict
$(function() {
"use strict";
// Just the defaults.
$("span.pie").peity("pie",{
width: '80',
height: '80'
})
$('span.donut').peity('donut',{
width: '50',
height: '50'
})
$(".peity-line").peity("line",{
... |
/*
Created On: 04-06-18
Version: 0.0.1.1
*/
'use strict';
var _auto_init = false;
(function(){
(function (funcName, baseObj) {
funcName = funcName || "docReady";
baseObj = baseObj || window;
var readyList = [],
readyFired = false,
readyEventHandlersInstalled = false;
// call this when the document is re... |
/**
*
* 1min毎データ表示用のデータ作成
*
*
*
*/
import moment from 'moment'
/**
* 1時間ごとにトグルするデータ
* state = 0,1
* 偶数時間 dnum/60 >>>奇数のとき、偶数時間データ作成中
*
*
*/
//eslint-disable-next-line
function alternative1h(){
var x = []
for(let h=0; h<24; h++){
for(let m=0; m<60; m++){
if(h%2 === 0){
... |
var BookInstance = require('../models/bookinstance');
var Book = require('../models/book');
var async = require('async');
var { DateTime } = require('luxon');
const { body, validationResult } = require('express-validator');
// Display list of all BookInstances.
exports.bookinstance_list = function(req, res) {
... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var PiedPiperAlt = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createElem... |
module.exports = { "default": require("core-js/library/fn/array/filter"), __esModule: true }; |
import React from 'react'
import {Link} from 'gatsby'
import "./layout.css"
const Navigation = ({ navItems}) => {
return(
<ul className = "navigation">{
navItems.map(({text, link}) =>(
<Link key={link} to={link} activeStyle={{border: '1px solid #... |
import gql from 'graphql-tag';
export default gql`
mutation add_politico($nombre: String!, $cargo: String!, $partido: ID!, $estado: ID!, $lugar_estudio: ID!, $grado_academico: ID!, $titulo: String!, $usuario: ID!, $referencia: String!) {
add_politico(nombre: $nombre, cargo: $cargo, partido: $partido, estado: $estado... |
import * as path from 'path'
import externalLinks from 'remark-external-links'
const modifyBundlerConfig = config => {
config.resolve.alias = Object.assign({}, config.resolve.alias, {
'@smooth-ui': path.resolve(__dirname, 'packages'),
'@docs': path.resolve(__dirname, 'docs'),
})
return config
}
export ... |
import React from "react";
import "./src/styles/global.css";
export default ({ element, props }) => {
return <div className='outerDiv'>{props.children}</div>;
}; |
var namespaceIoex =
[
[ "anonymous_namespace{Ioex_BaseDatabaseIO.C}", "namespaceIoex_1_1anonymous__namespace_02Ioex__BaseDatabaseIO_8C_03.html", "namespaceIoex_1_1anonymous__namespace_02Ioex__BaseDatabaseIO_8C_03" ],
[ "Assembly", "structIoex_1_1Assembly.html", "structIoex_1_1Assembly" ],
[ "BaseDatabaseIO"... |
const pkg = require('../package.json')
module.exports = function version () {
return { out: `v${pkg.version}` }
} |
const notFound = (req, res, next) => {
const error = new Error(`Not Found - ${req.originalUrl}`)
res.status(404)
next(error)
}
const errorHandler = (err, req, res, next) => {
const statusCode = res.statusCode === 200 ? 500 : res.statusCode
res.status(statusCode)
res.json({
message: err.message,
sta... |
'use strict';
describe('parser', function() {
describe('lexer', function() {
it('should tokenize a string', function() {
var tokens = lex("a.bc[22]+1.3|f:'a\\\'c':\"d\\\"e\"");
var i = 0;
expect(tokens[i].index).toEqual(0);
expect(tokens[i].text).toEqual('a.bc');
i++;
expect(... |
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
import { Buffer } from "node:buffer";
const algorithm = "aes-256-ctr";
const secretKey = randomBytes(32);
/**
* Encrypt a string
*
* @param {string} string String to encrypt
* @param {string} iv Initialization vector
* @returns {string}... |
function(){return function(){return _await(function(){return this;});};} |
$(document).ready(function() {
d3.csv("data/map_slider.csv", function(data) {
drawMarkerArea(data);
window.myData = data;
});
var drawMarkerArea = function(csvfile) {
var groupname = "crimes";
var data = crossfilter(csvfile);
var all = data.groupAll();
var i... |
const { Pool } = require("pg");
const Postgres = new Pool({ ssl: { rejectUnauthorized: false } });
const {
ErrorHandler,
ErrorThemesExist,
ErrorThemesNotFound,
} = require("./themesErrors");
/**
* @description CRUD for themes
*/
class Themes {
/**
* Get all themes
* @route GET /themes
*/
getAllTh... |
const metaConfig = require('./gatsby-meta-config');
const path = require('path');
const {
NODE_ENV,
URL: NETLIFY_SITE_URL = 'https://everycode.shop',
DEPLOY_PRIME_URL: NETLIFY_DEPLOY_URL = NETLIFY_SITE_URL,
CONTEXT: NETLIFY_ENV = NODE_ENV,
} = process.env;
const isNetlifyProduction = NETLIFY_ENV === 'pr... |
(function(d){d['gu']=Object.assign(d['gu']||{},{a:"ફાઇલ અપલોડ ન થઇ શકી",b:"Image toolbar",c:"Table toolbar",d:"ઘાટુ - બોલ્ડ્",e:"Upload in progress",f:"ત્રાંસુ - ઇટલિક્",g:"Insert image or file",h:" વિચાર ટાંકો",i:"Choose heading",j:"Heading",k:"Enter image caption",l:"image widget",m:"Increase indent",n:"Decrease inde... |
/*global define*/
// geohash.js
// Geohash library for Javascript
// (c) 2008 David Troy
// (c) 2010 Chris Williams
// (c) 2013 Jackson Tian
// Distributed under the MIT License
!(function (name, definition) {
// this is considered "safe":
var hasDefine = typeof define === 'function',
// hasDefine = typeof def... |
var searchData=
[
['parsespecstring',['ParseSpecString',['../classreranker_1_1_tokenizer.html#a382e4b9ef37548a753d84b13b31a444b',1,'reranker::Tokenizer']]],
['peek',['Peek',['../classreranker_1_1_stream_tokenizer.html#a7f53bc3134419cb7b7f00bbd39430b42',1,'reranker::StreamTokenizer']]],
['peekprev',['PeekPrev',['.... |
import ColumnCalculator from './columnCalculator';
import { isFunction } from './helpers/variableType';
class TableProcessor {
constructor(tableNode) {
this.tableNode = tableNode;
}
beginTable(writer) {
const getTableInnerContentWidth = () => {
let width = 0;
tableNode.table.widths.forEach(w => {
wi... |
let BluenetLib = require("../dist/index");
let fs = require("fs");
// You can use the template JSON to make your own userData.json
// mandatory fields: sphereId
// possible combinations:
// email and password
// email and sha1Password
// token
// token and userId // this saves a call to the cloud.
let userData = JSON... |
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
pageSettings: {
loadImages: false, // The script is much faster when this field is set to false
loadPlugins: false, // The script is much faster when this field is set to false
userAgent: 'Mozilla/5.0 (Windows ... |
var addTodoBtn = document.getElementById('add-todo');
var textarea = document.getElementById('the-textarea');
var todoList = document.getElementById('todo-list');
var showHideTodoBtn = document.getElementById('show-hide-todo');
addTodoBtn.addEventListener('click', function () {
if (textarea.value !== '') {
... |
import { Matrix4, Vector4 } from "./math.js";
export class Object3D {
constructor() {
this.position = new Vector4();
this.rotation = new Vector4();
this.scale = new Vector4(1, 1, 1);
}
updateMatrix() {
this.matrix = Matrix4.translate(this.position.x, this.position.y, this.p... |
var request = require('request');
for(var i=1;i<=5;i++){
(function(i){
console.log("for");
request.post({
url:"http://127.0.0.1:3017",
json:{
"owner":"bottle"+i,
"type":"male",
"content":"content"+i
}
});
})(i);
}
for(var i=6;i<=10;i++){
(function(i){
console.log("... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import { Row, Col, Card, Form, Input, Select, Icon, Button, Dropdown, Menu, InputNumber, DatePicker, Modal, message, Badge, Divider, Table, Popconfirm } from 'antd';
import StandardTable from '../../compo... |
"use strict";
var
Promise = require('bluebird'),
moment = require('moment'),
_ = require('underscore'),
config = require('../config');
function promise_to_group_leaves(leaves) {
if ( ! leaves ) {
throw new Error('Did not get "leaves" in promise_to_group_leaves');
}
let grouped_leaves = {};... |
export { default } from '@upfluence/oss-components/components/upf-table/pagination'; |
const CRO = {
name: 'Wrapped CRO',
address: '0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23',
symbol: 'WCRO',
decimals: 18,
chainId: 25,
website: 'https://cronos.crypto.org/',
description: 'Crypto.com Coin',
logoURI: 'https://vvs.finance/images/tokens/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23.svg',
};
con... |
$(function() {
$("select#receipts").change(function() {
var id = $("select#receipts").val();
$("div.receipt:not(div#receipt"+id+")").hide();
$("div#receipt"+id).show();
});
$("select#receipts").change();
}); |
import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/Home.vue';
Vue.use(Router);
export default new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
name: 'home',
component: Home,
},
{
path: '/about',
name: 'about... |
//index.js
//获取应用实例
var app = getApp();
Page({
data: {
id: null,//商品id
share: 0,
userID: 0,
autoplay: true,
interval: 3000,
duration: 1000,
goodsDetail: {},
swiperCurrent: 0,
kanjiashare: true,//发起砍价 or 邀请好友砍价弹窗
helpkanjiashare: true,//受邀砍价弹窗
victorykanjia: true, //砍价成功弹窗... |
import { useState, useEffect } from "react";
import classNames from "classnames";
import PropTypes from "prop-types";
import { useRouter } from "next/router";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@mater... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.