text stringlengths 7 3.69M |
|---|
self.__precacheManifest = [
{
"revision": "4ab22eca4053c14a34e4bdb6390deae9",
"url": "/img/faces/face-5.jpg"
},
{
"revision": "6be21e8a1b7d63048728851c6003e189",
"url": "/img/sidebar-1.jpg"
},
{
"revision": "897b4cf909210560a84398d36da51983",
"url": "/img/sidebar-4.jpg"
},
{
"r... |
import React from 'react'
import identity from 'ramda/src/identity'
const Td = ({ cellData, transformer = identity }) => (
<td>{transformer(cellData)}</td>
)
export default Td
|
../../../../../shared/src/generic/PornstarList/index.js |
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import { compose } from 'redux';
import get from 'lodash.get';
import { Form, Button, Input, Select, message } from 'antd';
import formStyle from '../../antdTheme/form/style/index.less';
import buttonStyle from '../../antdTheme... |
'use strict';
describe('BasicSelector Test Self', function() {
it('basic attribute', function() {
browser.get('test/e2e/testee/basic_selector/web/self.html')
.then(function(){
browser.waitForAngular();
browser.sleep(2000);
});
var list = element.all(by.cs... |
import React from 'react';
import Article from './Article';
function Content(props) {
return props.articlesList.map(item => (
<Article
key = {item.id}
title = {item.title}
text = {item.text}
/>
)
);
}
export default Content;
|
/*
* Toady
* Copyright (c) 2013 Tom Frost
*/
// Dependencies
var config = require('config');
var irc = require('irc');
var client = new irc.Client(
config.server.host,
config.identity.nick,
{
userName: config.identity.user,
realName: config.identity.name,
port: config.server.port || 6667,
pas... |
/**
* use fast-json-stringify accelerate JSON serialization
*/
const fastJson = require('fast-json-stringify')
const obj = {
name: 'levin',
age: 26,
city: 'shenzhen',
skill: ['java', 'javascript']
}
console.time('json')
for (let i = 0; i < 1000000; i++) {
JSON.stringify(obj)
}
console.timeEnd('... |
( function( angular ) {
'use strict';
/**
MIT Licensed.
Copyright (c) 2011 Andy Hume (http://andyhume.net, [email protected]).
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software''),... |
function assert(cond, ...args) {
if (!cond) console.log(...args);
}
if (!ArrayBuffer.transfer) {
ArrayBuffer.transfer = function(source, length) {
if (!(source instanceof ArrayBuffer))
throw new TypeError('Source must be an instance of ArrayBuffer');
if (length <= source.byteLength)
return source.slice(0... |
import { makeStyles } from "@material-ui/core";
import { useGoogleAuthLogin } from "../../fooks/useGoogleAuthLogin";
export const GoogleAuth = () => {
const login=useGoogleAuthLogin()
const classes = useStyles();
return (
<>
<img
onClick={() => {
login();
}}
src="ht... |
$(document).ready(function() {
var height = $('.navbar-header').height();
$('#start-content').css('margin-top', height);
});
var firebaseConfig = {
apiKey: "AIzaSyAuPuaJCP08o5JKW09F1XUWAy5GIiJ_cf8",
authDomain: "link-save-d79c8.firebaseapp.com",
databaseURL: "https://link-save-d79c8-default-rtdb.f... |
const mongoose = require("mongoose");
// Function to connect MongoDB, And 1st parameter is pass the URL for the Database
// single call back function - err to ensure connectivity status
mongoose.connect(
"mongodb://localhost:27017/PhDstudentDB",
{ useNewUrlParser: true },
err => {
if (!err) {
console.l... |
import React from 'react'
import CVCard from '../components/CVCard'
import CVCompetenceCard from '../components/CVCompetenceCard'
import '../style/CVStyle.css'
const CV = () => {
return (
<div className="CV">
<div className="content">
<h1>Curriculum Vitae</h1>
... |
import React from 'react'
import {Bar} from 'react-chartjs-2'
import 'chartjs-plugin-annotation'
import TableItems from './tableItems'
const Chart = (props) => {
const dataUnsorted = props.selectedGraph.set;
const nombrePrueba = props.selectedGraph.name;
// sort by value
const data = dataUnsorted.sort... |
hsalsa20 = function() {};
hsalsa20.ROUNDS = 20;
hsalsa20.rotate = function(u, c)
{
return (u << c) | (u >>> (32 - c));
};
hsalsa20.load_littleendian = function(x, offset)
{
return (parseInt(x[offset])&0xff) |
(((parseInt(x[offset + 1])&0xff)) << 8) |
(((parseInt(x[offset + 2])&0xff)) << 16) |
(((parseInt(... |
/* eslint-disable no-unused-expressions */
import {getRequest, postRequest} from "../request";
import {CLEAR_QUERIES, CLEAR_QUERY, QUERY, REQUEST_FAILED, UPDATE_SNACK, UPDATE_SPIN} from "../constants";
import SnackType from "../model/SnackType";
import { requestUrls } from "../constants/requestUrls";
export const getQ... |
import MainNavigation from "./MainNavigation";
import classes from "./Layout.module.css";
import { Slider } from "../../Slider";
import "../../scss/Main.css";
import MainFooter from "./MainFooter";
import News from "./News";
function Layout(props) {
return (
<div>
<MainNavigation />
<div>
<d... |
//############### DASHBOARD COMPLETE STATE ###############//
export const getFullObjectOfTheState = () => {
return {
dashboard: {
rooms:{
actual: 0,
pagination: ['asdf2kf0asdfnasdf90', 'pqioerp0923klfqpsd890u2n', 'mcio-029na98-2in'],
byId: {
... |
const assert = require('assert');
function G() { while(false) {} };
function F(x) {
G();
const z = arguments;
function H() {
x = 10;
}
return x;
}
assert(F(42) === 42);
|
import React, { Component, Fragment } from 'react'
import { render } from 'react-dom'
import { Table } from 'reactstrap'
function TableViewer(props) {
const headers = Object.keys(props.data[0])
const { keyCol } = props
return <Table striped bordered hover onClick={props.onClick}>
<thead>
... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import bento from './bento.png'
class LandingPage extends Component {
render() {
return (
<div className="landingpage">
<p>This is an app for you to contribute, update, and of course, browse restaurants that fit var... |
/*************************** for User-Profile **********************************/
var usertoken = localStorage.token;
var FBtoken = localStorage.accessToken;
var email, uid, name;
var os;
// document.addEventListener("deviceready", onDeviceReady, false);
// function onDeviceReady() {
// os = device.platform;
// ... |
const redis = require('redis');
const fetch = require('node-fetch');
var subscriber = redis.createClient('redis://redis:6379');
subscriber.on("message", function(channel, message) {
body = JSON.parse(message);
fetch(body.address,
{
method: 'POST',
body: JSON.stringify(body.bo... |
import React from 'react';
import "./Loader.css";
export const Loader = () => {
return (
<>
<div className="loader-wrapper">
<div className="loadingio-spinner-ellipsis-vs2gffnmha"><div className="ldio-66naq67fyfq">
<div></div><div></div><div></div><div></... |
export default function ({ $axios, redirect , app }) {
$axios.onRequest(config => {
//console.log('Making request to ' + config.url)
});
$axios.onError(err => {
console.log(err.response.data.message);
console.log(err.response.data.exception);
console.log(err.response.data.file);
console.log(e... |
const ShipResource = function(capacity) {
this.remaining = capacity;
};
ShipResource.prototype = {
subtract(val) {
this.remaining = this.remaining - val;
}
};
export default ShipResource; |
// https://www.youtube.com/watch?v=g8E2XikfTqA menu music
// https://www.youtube.com/watch?v=Kjxs_pXFOb4 game music
// works in radiansssss and not degreessss
// function radianConverter(radian, distance){
// console.log(degree)
// let posx = distance * Math.cos(degree);
// let posy = distance ... |
import React from "react";
import Search from "./search";
import Results from "../results";
import { BASE_API_URL } from "../../const";
import Controls from "../controls";
const scrappingResponse = {
};
export default class SearchContainer extends React.Component {
constructor(props) {
super(props);
this.... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { Session } from 'meteor/session';
import { Products } from '../Collections/Products.js';
import { Carts } from '../Collections/Carts.js';
import { FlowRouter } from 'meteor/kadira:flow-router';
import './SearchPageBuyer.html'... |
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');
const uniqueValidator = require('mongoose-unique-validator');
const Schema = mongoose.Schema;
const UserSchema = mongoose.Schema(
{
email: { type: String, required: false, unique: true },
passwordHash: { type: String, required: true },
... |
/* eslint global-require: 0 import/no-dynamic-require: 0 */
/* istanbul ignore file */
const internalLoaders = require('./domain/bootloaders');
const startApp = async () => {
await internalLoaders.boot();
global.app = {
...internalLoaders
};
const port = process.env.APP_PORT || 8080;
app.server.liste... |
import React, { useState } from "react";
import Card from "../Card/Card";
import AuthForm from "../AuthForm/AuthForm";
import PurchaseForm from "../PurchaseForm/PurchaseForm";
import InfoForm from "../InfoForm/InfoForm";
import "../../App.css";
import "./style.css";
const GalleryItem = props => {
const [openAuth, se... |
const express = require("express");
const morgan = require("morgan");
const app = express();
const es6Renderer = require("express-es6-template-engine");
const session = require("express-session");
const port = process.env.PORT || 3000;
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(e... |
export default class Rank {
};
|
var util = require("util");
var underscore = require("underscore");
var Adapter = require("./adapter");
var Commit = require("../commit");
function WebSQLAdapter(options, callback) {
var defaultOptions = {
name: "trailmix",
description: "TrailMix Database"
}
var options = underscore.defaults(options... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import {Image} from 'cloudinary-react';
const styleSheet = createStyleSheet('ImageMessag... |
import React, { Component } from "react";
class ProfileCard extends Component {
render() {
return (
<div className="profile-card">
<h1>HEYYYYY</h1>
</div>
);
}
}
export default ProfileCard;
|
"use strict";
//Constantes de VIP.
const Attributes = require('../Classes/Attributes');
const Libraries = require('../Base/Libraries');
class UtilsVIP {
/**
* Función getRepromptText: Retorna el reprompt de Alexa de forma dinámica.
* @returns {String} RepropmtSpeakText
*/
static getRepromptTex... |
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import './../styles/styles.css';
import logo from './../images/logo.svg';
import location from './../images/location.svg';
import jd from './../images/jd.png';
import MenuLink from './../components/MenuL... |
import React from 'react';
import { connect } from 'react-redux';
import { updateReview} from '../../actions/reviews_actions';
// TODO from tony // get the review
import { requestEvent} from '../../actions/business_actions';
import ReviewForm from './review_form';
class EditReviewForm extends React.Component {
com... |
const intCard = (int) => {
return `<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">${int.empFirstName}</h5>
<h6 class="card-subtitle mb-2 text-muted">${int.role}</h6>
<p class="card-text">ID: ${int.empID}</p>
<p class="card-text">Email: ${int.empEmail}</p>
... |
//main.js contents
//Pass a config object to require
require.config({
"packages": ["cart", "store"]
});
require(["cart", "store", "store/util"],
function (cart, store, util) {
//use the modules as usual.
});
|
import axios from "axios";
import { weatherMapAPIKey } from "./apiKeys/keys";
// Type imports
import {
GET_CITY,
GET_CITY_WEATHER,
LOADING_CITY,
LOADING_CITY_WEATHER,
CLEAR_CITY,
CITY_ERRORS
} from "./types";
// Fetches city data using the provided city id
export let fetchCityById = cityId => dispatch =>... |
// Importar los módulos requeridos
const mongoose = require("mongoose");
const Usuario = mongoose.model("Usuarios");
const { validationResult } = require("express-validator");
const year = new Date().getFullYear();
// Cargar el formulario de la creación de una cuenta de usuario
exports.formularioCrearCuenta = (req, r... |
const validateEntityMiddleware = require("./validation.middleware")
const validUUIDMiddleware = require("./uuid-validation.middleware")
module.exports = {
validateEntityMiddleware,
validUUIDMiddleware
} |
(function(){
Route.getinlanddiscount(function(data){
var str = template('tpl',data);
$('main .info').html(str);
})
})(); |
import React from 'react'
import './backTop.css'
let indexWrap = document.getElementsByClassName("indexWrap")[0]
class BackTop extends React.Component {
state = {
scHeight: 100,
flag: false
}
goToBack(){
let pos = indexWrap.scrollTop;
if(pos > 0){
indexWrap.scrollTop = (pos - 28)
}e... |
// let authentication = require('./controllers/authentication');
// const passportService = require('./services/passport');
// const passport = require('passport');
// const requireAuth = passport.authenticate('jwt', { session: false });
// const requireSignIn = passport.authenticate('local', { session: false });
// c... |
module.exports = {
apps : [
{
name: "server",
script : "../server/server.js",
watch: true,
instances: 2,
exec_mode: "cluster",
ignore_watch: ["node_modules"],
watch: true,
},
{
name: "websocket",
script: "../server/websocket.js",
watch: true,
... |
import React, { useState } from "react";
import { Grid, Button } from "@material-ui/core";
import { connect } from "react-redux";
import ShareIcon from '@material-ui/icons/Share'
function Insights(props) {
return (
<div className="home-insights">
<div className="title border pb-sm-10">OUR LATEST INSIGHTS</... |
import React from 'react'
import './Cards.css'
function Cards({ cardset }) {
const renderCardsets = (cardset) => {
const wrappedCardsets = []
for (let i = 0; i < cardset.length; i++) {
let cardrow = cardset[i]
wrappedCardsets.push(<ul className="cards__items" key={i}>{cardro... |
import mongoose from 'mongoose';
import logger from './logger';
mongoose.Promise = global.Promise;
const uri =
process.env.NODE_ENV === 'test'
? `mongodb://${process.env.TEST_DB_USER}:${process.env.TEST_DB_PASS}@${process.env.TEST_DB_SERVER}/${process.env.TEST_DB_NAME}`
: `mongodb://${process.env.DB_USER}:$... |
import _start from "../sounds/start.mp3";
import _pause from "../sounds/pause.mp3";
import _reset from "../sounds/stop.mp3";
import _end from "../sounds/alarm-buzzer.mp3";
export const start = new Audio(_start);
export const pause = new Audio(_pause);
export const reset = new Audio(_reset);
export const end = new Audi... |
/**
* @param {number} n
* @return {string}
*/
var countAndSay = function (n) {
if (n === 1) return "1";
let answer = "1";
// iterate it n-1 times
for (let i = 1; i < n; i++) {
let iteration = "";
let count = 0;
let int = "";
for (let number of answer) {
if (number !== int && count > ... |
define([
'angular',
'lodash',
'config'
],
function (angular, _, config) {
'use strict';
var module = angular.module('kibana.services');
module.service('fields', function(dashboard, $rootScope, $http, esVersion, alertSrv, ejsResource) {
// Save a reference to this
var self = this;
var ejs = e... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
import React from 'react'
import { View, Text, StyleSheet, Button } from 'react-native'
export default function Store({history}) {
return (
<View style={styles.container}>
<Button title="Go Back" color="red" onPress={() => history.goBack()} />
</View>
)
}
const styles = ... |
/*
* Copyright 2011-2012 the original author or authors.
*
* 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 app... |
import axios from 'axios';
export function loginHandler(data) {
return dispatch => {
dispatch({
type: 'LOGIN_PENDING',
});
axios
.post("http://192.168.1.100:8000/users/api/auth/login", data)
.then(res => {
dispatch({type: 'LOGIN_SUCCESS', payload: res.data});
... |
import {Color} from 'spritejs';
export function parseColor(colors) {
if(Array.isArray(colors)) {
return colors.map((c) => {
if(typeof c === 'string') {
return new Color(c);
}
return c;
});
}
return typeof colors === 'string' ? new Color(colors) : colors;
} |
/**
* @author lxl
* @version v1.0.12
* 等于类型 符号: 等于(==) 不等于(!=)
* 范围 符号: 大于(>) 小于(<) 不小于(>=) 不大于(<=)
* 模糊 符号: 像(~=)
* eg:
* let qs = 'at>123456789,tid==00895485acb,tid>=null,at<233456789,hid~=A01**1223++300\\03+++,at!=200,hid!=B01122330003,pid==,cid!=00,ppd>,value==138,,[email protected]';
*... |
$(document).ready(function() {
var $window = $(window);
checkHeight($window);
$window.resize(function () { checkHeight($window); });
});
function checkHeight($window) {
var windowsHeight = $window.height();
var headerHeight = $('.header').height();
var borderBottomHeight = $('.border.hor... |
// <--- LISTENERS --->
// Listener for the landing page button. Launches the game, refreshes the screen.
$('.landing-pageContent #startButton').on('click',(e) => {
$userInput = $('#petName')
game.checkName($userInput);
})
// listener to decide if cat or dog
$('.catOrDog').on('click',(e) => {
$petType = $(e.target... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('./userPhoto');
require('./showCircle');
require('./showMeeting'... |
let Vue = require("vue");
let VueRouter = require("vue-router");
let VueResource = require("vue-resource");
let page = {};
let Snackbar = require("snackbarlightjs");
Vue.use(VueRouter);
Vue.use(VueResource);
Vue.use(Snackbar);
// Router
let router = new VueRouter({
//history: true,
saveScrollPositi... |
import { combineReducers } from 'redux';
import pdv from './pdv';
export const rootReducer = combineReducers({ pdv });
|
const helpers = require("../helpers");
const elements = {
emailInput: element(by.css("input[type='email']")),
passwordInput: element(by.css("input[type='password']")),
signInButton: element(by.css("button[type='submit']"))
};
async function waitUntilReady() {
await helpers.waitUntilClickable(elements.emailInp... |
/**
* This file is part of Sesatheque.
* Copyright 2014-2015, Association Sésamath
*
* Sesatheque is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation.
*
* Sesatheque is distributed in the... |
function aspectResize () {
var w = $('.boardMinWidth').width();
$('.boardMinWidth').css('height',w + 'px');
$('.numbers').css('line-height', w/8 + 'px');
$('.letters').css('line-height', w*6/88 + 'px');
var sqsize = $('#square0').width();
$( '.piece').draggable( 'option', 'cursorAt', {left: sqsize/2, top: s... |
$(document).ready(function(){
// Now access it with that path
var path_to_the_webservice = "lorem.json";
$('#runner').runner({
countdown: true,
startAt: 59000,
milliseconds: false,
stopAt: 0
}).on('runnerFinish', function(eventObject, info) {
$('.bodyLower .toggleB... |
/*
* @Author: anchen
* @Date: 2016-03-17 17:18:18
* @Last Modified by: anchen
* @Last Modified time: 2016-03-21 17:25:56
*/
var assertEqual = function(val1, val2, msg) {
if (val1 !== val2){
console.log(msg || (val1 + " does not equal " + val2));
}else if(val1 === val2){
console.log('val1 i... |
const parseClassconstant = require('./parseClassconstant');
const classconstants = JSON.parse(require('fs').readFileSync(require('path').join(__dirname, '/../../tests/data/kinds/classconstant.json'), 'utf-8'));
const table = [
[0, {constants: {CONSTANT1: 123}, visibility: 'protected'}],
[1, {constants: {CONSTANT2: ... |
import React from 'react'
import './footer.styles.scss'
export const Footer = () => (
< div className='footer'>
<div className='options'>
<a className="btn btn-social-icon btn-google" href="http://google.com/+"><i className="fa fa-google-plus"></i></a>
... |
/**
* This is a function that adding 1 to your numbers
*/
function incArray(...myArray) {
for (let i = 0; i < myArray.length; i++) {
myArray[i] += 1
}
console.log(myArray)
}
incArray(1, 2, 3, 4) |
'use strict';
angular.module('FEF-Angular-UI.openingTimes', [])
.directive('openingTimes', [function() {
return {
restrict: 'AE',
replace: true,
templateUrl: 'templates/opening-times.html',
scope: {
times: '='
}
}
}]); |
// database/firebaseDb.js
import * as firebase from 'firebase';
import firestore from 'firebase/firestore'
const firebaseConfig = {
apiKey: "AIzaSyBYcJZEroIUBLA_yOGPCzXS9-qEZWTNz28",
authDomain: "empapp-56e97.firebaseapp.com",
databaseURL: "https://empapp-56e97.firebaseio.com",
projectId: "empapp-56e97... |
/* flow */
import configure from 'redux-idle-monitor'
import { IDLE_STATUSES } from './constants'
import { idleStatusDelay, activeStatusAction, idleStatusAction } from './actions'
const opts = { appName: 'example-ui',
IDLE_STATUSES,
idleStatusDelay,
activeStatusAction,
... |
// banmi.js - 1.0
// A simple module for rate-limited lockouts
// (c) 2019 Charlton Trezevant
// MIT License
var Banmi = {};
// Initial ban length, which is used to calculate the scaling ban length per
// the total number of failed attempts
Banmi.initialBanLength = 120;
// Maximum failure threshold that login attemp... |
function tripleFive() {
for (i = 0; i < 3; i++) {
console.log("Five!");
}
}
tripleFive();
function lastLetter(s) {
return s.charAt(s.length-1);
}
console.log(lastLetter("hello"));
function square(num) {
return num * num;
}
console.log(square(4));
function negate(num) {
num -= num * 2;
... |
/*
* @lc app=leetcode.cn id=235 lang=javascript
*
* [235] 二叉搜索树的最近公共祖先
*/
// @lc code=start
/**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {TreeNode} root
* @param {TreeNode} p
* @param {TreeNode} q
* @re... |
$(document).ready(function(){
var time1 = 0
var time2 = 0
var difference = 0
$("#q2").hide();
$("#diff").hide();
$("#yourName").change(function(){
time1 = new Date().getTime();
//alert("The first name was changed at " + time1);
$("#q2").show();
});
$("#q2").change(function(){
time2 =... |
import React from "react";
import { render, cleanup, fireEvent } from "@testing-library/react";
import ListItem from "./ListItem";
const setup = (text, checked, onCheck, url) => {
return render(
<ListItem
checked={checked}
text={text}
onCheckChange={onCheck}
... |
import React from "react";
import "react-accessible-accordion/dist/fancy-example.css";
import "bootstrap/dist/css/bootstrap.min.css";
import {
Accordion,
AccordionItem,
AccordionItemHeading,
AccordionItemButton,
AccordionItemPanel,
} from "react-accessible-accordion";
const CardListView = (props) => {
retu... |
'use strict';
const moment = require('moment');
const debug = require('./debug');
function next(context, curr) {
if (context.workflows.indexOf(curr) < -1) {
debug.stack(`Unsupported workflow : ${curr}`);
}
const index = context.workflows.indexOf(curr);
if (index + 1 >= context.workflows.length) {
retu... |
import React from 'react';
import { NavLink } from 'react-router-dom';
const NavLinks = () => {
const navigationlistLinks = ['portfolio', 'about', 'contact'];
const renderList = navigationlistLinks.map((link, i) => (
<li className="link-item" key={i}>
<NavLink activeClassName="hoverColor" t... |
/*
* C.Utils.Intersection //TODO description
*/
'use strict';
C.Utils.Intersection.Test = function (a, b, p) {
if ((a.Y > p.Y) !== (b.Y > p.Y) && (p.X < (b.X - a.X) * (p.Y - a.Y) / (b.Y - a.Y) + a.X)) {
return (true);
}
return (false);
};
C.Utils.Intersection.IsPointInsideRectangle = functi... |
var results = ["hello", "world"];
var i = -1;
exports.obj1 = {
toString: function () {
i = i+1;
return results[i];
}
};
var counter = 0
exports.obj2 = {
valueOf: function () {
counter++;
return counter;
}
};
|
exports.invoiceFooter = (doc) => {
doc
.fontSize(9).font("Helvetica").text("Thank you for your business!", 40, 530)
.fontSize(9).font("Helvetica").text("Any question? Please contact us anytime at [email protected]", 40, 550)
} |
/**
* @fileoverview General-purpose key frame animation
* @author Tony Parisi
*/
goog.provide('SB.MeshAnimator');
goog.require('SB.Component');
// MeshAnimator class
// Construction/initialization
SB.MeshAnimator = function(param)
{
SB.Component.call(this, param);
param = param || {};
this.skins = ... |
import Product from '../components/product/product';
import {shallow} from 'enzyme';
import apiService from '../services/apiService';
import store from '../redux/store';
// TODO, broken after adding state,
describe('Testing product component', () => {
let component;
beforeEach(() => {
component = shal... |
// # Ghost Server
// Handles the creation of an HTTP Server for Ghost
const debug = require('ghost-ignition').debug('server');
const Promise = require('bluebird');
const fs = require('fs-extra');
const path = require('path');
const _ = require('lodash');
const config = require('../shared/config');
const urlUtils = req... |
import React from 'react'
import PropTypes from 'prop-types'
import { NavLink } from 'react-router-dom'
import { Icon } from 'semantic-ui-react'
import classes from './ToolbarSub_1.module.scss'
import SubMenu from './ToolbarSub_2'
const toolbarSub_1 = props => {
const { navigations, showup, activateHandler, actives... |
const express = require("express");
const router = express.Router();
const deleteEnvPeak = require("../library/deleteEnvPeak");
const sendFailureMess = require("../library/sendFailureMess");
const submitTask = require("../library/submitTask");
const updateEnvStatusSync = require("../library/updateEnvStatusSync");
const... |
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "statsPosted",
execute(client) {
const embed = new MessageEmbed()
.setTitle("Bot stats posted!")
.setDescription("stats listed below")
.addField("Guilds", client.utils.formatNumber(client.guilds.cache.size));
},
};
|
import React from "react";
import All from "./components/all";
import Home from "./pages/home";
import Tel from "./pages/tel";
import { useParams } from "react-router-dom";
import Settings from "./pages/settings";
import Dashboards from "./pages/dashboards";
import Error from "./components/error";
const Dpages = () =>... |
class controller{
constructor(model,view){
this.model=model;
this.view=view;
this.model.ListConnection(this.UpdateListConnection);
this.view.FilterButtonsEventer(this.FilterConnection);
this.view.SubmitTodo(this.SubmitConnection);
this.view.RemoveTodo(this.RemoveConn... |
import React, { useState,useEffect, useLayoutEffect } from 'react';
import { useOktaAuth } from '@okta/okta-react';
import {Card} from 'primereact/card'
import { InputText } from 'primereact/inputtext';
import { ProgressSpinner } from 'primereact/progressspinner';
const SignInForm = () => {
const { oktaAuth } = useOk... |
/**
* init
*/
$(document).bind('pageshow', function(){
if($('.search_result_container:visible').length == 0) return;
// menu
//$('#menu:visible').children().removeClass('selected');
//$('.menu_search:visible').addClass('selected');
// introduction
var resultContainer = $('.search_result_container .intro... |
//const { options } = require('yargs');
const { crearArchivo } = require('./helpers/multiplicar')
const argv = require('./config/yargs')
console.clear();
//console.log(process.argv);
//console.log(argv);
//console.log('base:yargs', argv.base);
//const [, , arg3 = 'base=5'] = process.argv;
//const[, base] = arg3.sp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.