text
stringlengths
7
3.69M
import React from 'react'; // import { Header } from '../styles/app.styles'; import { HeaderContainer } from '../styles/app.styles'; const Header = (props) => { return ( <HeaderContainer>{props.text}</HeaderContainer> ) } export default Header;
import React, { Component, PropTypes } from 'react'; import styled from 'styled-components'; import {MLIcon} from '../index'; import Colors from '../colors.js'; const Button = styled.div` position: relative; display: inline-block; font-family: 'Source Sans Pro',sans-serif; font-size: 15px; line-height: 33px...
define(['SocialNetView','text!templates/menu/contacts.html'], function(SocialNetView,ContactsMenuTemplate) { var contactMenuView = SocialNetView.extend({ el: $('#Qcontacts'), initialize: function(options) { }, render: function() { this.$el.html(_.template(ContactsMenuTemplate,{model:this.model})...
export function initTexture(gl) { const texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); const level = 0; const internalFormat = gl.RGBA; const width = 1; const height = 1; const border = 0; const srcFormat = gl.RGBA; const srcType = gl.UNSIGNED_BYTE; const ...
'use strict'; import FamousEngine from 'famous-creative/scaffolding/FamousEngine'; FamousEngine.init(); require('babelify/polyfill'); require('./app/index');
import React from 'react' import { Modal, Header, Body, Footer } from 'bypass/ui/modal' import { Button } from 'bypass/ui/button' import { Text } from 'bypass/ui/text' const CreateWallet = ({ onCreate, onClose }) => ( <Modal onClose={onClose}> <Header> <Text size={19}> {__i18n('LANG.SERVICE.LOAD_OV...
const app = getApp(); Component({ data: { selected: 0, color: "#7A7E83", selectedColor: "#BAEFFF", list: [{ pagePath: "/pages/index/index", iconPath: "../static/images/home.png", selectedIconPath: "../static/images/home_actived.png", text: "首页", isSpecial: false }, { pagePath: "/pages/dyn...
import React from 'react' import { Link, navigate } from '@reach/router' import { Grid, Button, Modal, Icon, Header, Label } from 'semantic-ui-react' import './AdminInspirationCard.css' const buttonStyle = { width: '145px', margin: '3px' } const AdminInspirationCard = ({ inspiration, deleteInspiration, remove, se...
$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("src/test/resources/com/selenium/rediff/login.feature"); formatter.feature({ "name": "Logging in to Rediff Money", "description": "", "keyword": "Feature", "tags": [ { "name": "@Login" ...
App.TooltopController = (function () { return { init: function () { var that = this; $(document).on('changeDevice', function (event, data) { switch (data.device) { case 'mobile': break; case 'tablet': break; default: // desktop functions } }); thi...
class NomSlider extends HTMLElement { constructor() { super(); this.attachShadow({mode: 'open'}); this.mapToQuerySelector="notyet"; this.init(); } connectedCallback(){ } init() { const input = document.createElement('INPUT'); input.type = 'range...
/** * Created by wen on 2016/8/17. */ import React from 'react'; import search from './search'; import searchResult from './searchResult'; export default { path: '/search', children: [ search, searchResult ], async action({next}) { return await next(); } };
$(function() { $('#popup-open-btn').click(function () { $('body').addClass('popup-show'); }); $('#popup-video-open-btn').click(function () { $('body').addClass('popup-show'); $('.video-wrap .video-box').append('<iframe frameborder="0" allowfullscreen src="https://www.youtube.com/embed/UQ4ytWPE-HY?rel=0&a...
const fs=require('fs'); var dateFormat = require('dateformat'); var now = new Date(); const filelog=__dirname+"\\log.txt" var writeLog= async (data) => { var logTxt="["+dateFormat(now)+"] "+data; await fs.appendFileSync(filelog,logTxt+"\n"); return ; } module.exports.writeLog=writeLog;
'use strict'; // supplanting the mds_admin collection var Proprietor = { tableName: 'mds_proprietors', attributes: { email_address: { type: 'string' }, password: { type: 'string' }, is_proprietor: { type: 'boolean' }, proprietor: { type: 'json' }, last_logi...
/** * Created by Administrator on 2016/8/31 0031. */ $(function () { $('#drag').draggable({ // axis:'y', containment:'parent', cursor:'wait', cursorAt:{top:100,left:100}, // delay:'1000', // distance:'100', // revert:true, // revertDuration:50, ...
import styled from "styled-components"; import { theme, mq } from "constants/theme"; const { offWhite } = theme.colors; const Main = styled.main` margin-left: 2rem; margin-right: 2rem; display: flex; align-items: center; justify-content: center; min-height: calc(100% - 119px); min-height: -o-calc(100% ...
import React, {Component, PropTypes} from 'react'; import Helmet from 'react-helmet'; import {connect} from 'react-redux'; import * as productActions from 'redux/modules/products'; import {isLoaded, load as loadproducts} from 'redux/modules/products'; import {initializeWithKey} from 'redux-form'; import { asyncConnect ...
// write a functio called minSubarrayLen which accepts two parameters - an array of positive integers // and a positive integer. This function should return the minimal length of a contigous sibarray of which // the sum is greater than or equal to the integer passed to the function. If, there isn't one, return 0 instea...
Ext.require('Ext.panel.Panel'); Ext.require('Ext.Component'); Ext.define ( 'FPT.view.helper.Step' , { extend : 'Ext.panel.Panel' , alias : 'widget.step' , border : true , layout : 'fit' , collapsible: true , collapsed: true , animCollapse: true , title: "More Help" , bodyPadding: 5 , hidden: tru...
var arrays = require("ringo/utils/arrays"); var objects = require("ringo/utils/objects"); var {EventEmitter} = require("ringo/events"); var Message = exports.Message = function(data, options) { EventEmitter.call(this); this.messageObject = { data: typeof(data) == "object" ? data : {message: data} ...
const Router = require('express-promise-router') const Ably = require('ably') const ably = new Ably.Realtime(process.env.ABLY_AKY_KEY) const { db } = require('./db') const isProduction = process.env.FLY_APP_NAME != null const READ_ONLY_SQL_TRANSACTION = 25006 const router = new Router() module.exports = router rou...
const express = require('express'); const path = require('path'); const bodyParser = require('body-parser'); const cors = require('cors'); const {getItems} = require('../database/index.js'); const app = express(); const PORT = 3001; app.use(cors()); app.use(express.static(path.join(__dirname, '../client/dist'))); a...
function suma(){ s=$('#formulario').serialize(); $.get("/suma",s,function(data){ $("#resultado").html(data); }) } function multiplica(){ s=$('#formulario').serialize(); $.get("/multiplicar",s,function(data){ $("#resultado").html(data); }) } function divi(){ s=$('#formulario')...
/** * @param {number[]} nums * @return {number[]} * @author sujiexin */ var sortArray = function(nums) { if(nums.length<2){ return nums; } var l = 0; var h = nums.length-1; return quicksort(nums,l,h); }; function quicksort(nums,l,h){ var low = l; var high = h; if(l>=h){ ...
import React from 'react'; const ScoreButton = (props) => { return ( <button onClick={() => props.handleScoreClick() }>Score BTN</button> ) } export default ScoreButton;
import React from 'react'; import './ForgotPassword.scss'; import { Form, Row, Col, Image } from 'react-bootstrap'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import { Button, FormControl } from '@material-ui/core'; import ClickAwayListener from '@material-ui/cor...
const fs = require('fs'); const path = require('path'); // Create a folder fs.mkdir(path.join(__dirname, 'test'), {}, err => { if (err) throw err; console.log('Folder created'); }); // Create and write to file fs.writeFile(path.join(__dirname, '/test/', 'hello.txt'), 'Hello, Trent, this is a file created with Nod...
'use strict'; /** * @workInProgress * @ngdoc service * @name angular.service.$xhr.bulk * @requires $xhr * @requires $xhr.error * @requires $log * * @description * * @example */ angularServiceInject('$xhr.bulk', function($xhr, $error, $log){ var requests = [], scope = this; function bulkXHR(method,...
var map_MM, reduce_M; map_MM= function() { var values =1; //var v1=this.genres.genres emit(this.year, values); }; reduce_M = function(k, values) { return Array.sum(values); }; db.full_info2.mapReduce( map_MM, reduce_M, { out: "map_reduce_example" }); //db.map_reduce_example.find() /...
var count = 0; var randomNum = Math.floor(Math.random() * 100) + 1; document.querySelector("#try").onkeypress = function (e){ if(e.keyCode == 13 || e.which == 13){ find(); return false; } }; function find(){ var userNum = document.querySelector("#try").value; var output = document.quer...
const { router } = require('../../../config/expressconfig') const User = require('../../models/user') let changeUserStatus = router.patch("/change-user-status", async (req, res) => { let { id, status } = req.body; let obj = { status }; const result = await User.findByIdAndUpdate(id,obj) if...
import Vue from "vue" import Vuex from "vuex" Vue.use(Vuex) // initial state const state = { loading:false } // getters const getters = { } // actions const actions = { loading ({commit}, status) { commit("loading",status); } } // mutations const mutations = { loading (state, status) { state.loa...
var searchData= [ ['light',['Light',['../classLight.html',1,'']]], ['linearsecondchild',['LinearSecondChild',['../unionBVHLinearNode_1_1LinearSecondChild.html',1,'BVHLinearNode']]], ['logarithm',['Logarithm',['../classsymcpp_1_1Logarithm.html',1,'symcpp']]] ];
import React from 'react' import ReactDOM from 'react-dom' import { Layout } from './components/layout' import registerServiceWorker from './services/service-worker' ReactDOM.render(<Layout />, document.getElementById('root')) registerServiceWorker()
const round = (number, abbr) => { let rounded; switch (abbr) { case 'T': rounded = number / 1e12 break case 'B': rounded = number / 1e9 break case 'M': rounded = number / 1e6 break case 'K': rounded = number / 1e3 break case '': rounded ...
// Require the friends file var friends = require("../data/friends.js"); var path = require("path"); // Routing module.exports = function (app) { // API GET Request for json data of all users app.get("/api/friends", function (req, res) { res.json(friends); }); // API POST Request of user data ...
const calc = document.createElement('div'); const btns = document.createElement('div'); let numOne = document.createElement('input'); numOne.setAttribute('type', 'number'); numOne.setAttribute('placeholder', 'num 1'); let numTwo = document.createElement('input') numTwo.setAttribute('type', 'number'); numTwo.setAttri...
(function () { 'use strict'; angular .module('panel6') .config(config); function config($stateProvider) { $stateProvider .state('panel6', { url: '/6', templateUrl: 'panel6/views/panel6.tpl.html', controller: 'Panel6Ctrl', controllerAs: 'panel6' }); } }()...
// # IsAdmin Helper // Usage: `{{#isAdmin}}` // Checks whether the user has admin or owner rule var _ = require('lodash'), isAdmin; isAdmin = function (options) { options = options || {}; var user = options.data.root.user; if (_.includes([user.role], 'owner', 'admin')) { return ...
const mongoose = require("mongoose"); const DonutStore = require("./DonutStore"); console.log("Looking for DonutStore in Bucketlist", DonutStore); const BucketlistSchema = new mongoose.Schema ({ userName: String, favDonut: String, bucketlist: [DonutStore.schema], visitedStores: [DonutStore.schema], });...
const { I, loginSubdomainPage, loginAccountPage, createLeadPage, leadStatusPage } = inject(); module.exports = { logIntoZendeskSellWebApp(subDomainName, userEmail, userPassword) { loginSubdomainPage.goToSubdomainLoginPage(); loginSubdomainPage.acceptToUseCookies(); loginSubdomainPage.checkSubdomainPage(...
// Code your solution in this file function findMatching(collection, string){ const newCollection = []; for (var i = 0; i < collection.length; i++) { if (collection[i].toUpperCase() === string.toUpperCase()) { newCollection.push(collection[i]); } } return newCollection; } function fuzzyMatch(co...
// affiche le template du dashboard // l'action de ce controller est appelée par défaut module.exports = { load : function(req, res){ res.render('dashboard'); } };
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-u...
import React, { PureComponent, Component, createRef } from 'react'; class Modal extends PureComponent { modalWrapper = createRef(); renderHeader = () => { const { useModalHeader, modalTitle, modalClosed } = this.props; const headerMarkup = ( <div className="modal-header"> ...
var con = require('../db'); // Retrieve data async function getData() { var rows; //Works for doadmin user rows = await dbQuery("SELECT questions.questionId, questions.question AS question, questions.answer AS answer, GROUP_CONCAT(options.optionValue SEPARATOR ', ' ) AS options FROM options JOIN q...
$(document).ready(function () { GetStudents(); }); function GetStudents() { $.ajax ({ url: "../api/Students", type: "GET", contentType: "application/json;charset=utf-8", dataType: "json", success: function (result) { var html = ''; $.each(res...
import React from 'react' import { Title } from 'bypass/ui/title' import { Container } from 'bypass/ui/page' import { AutoSizer, ColumnLayout, RowLayout, Layout } from 'bypass/ui/layout' import { Condition } from 'bypass/ui/condition' import { Button } from 'bypass/ui/button' import { Aside } from './aside' import { Li...
class RobinhoodApp { constructor() {} start() { // TODO: Get username and password from user, // then authenticate, // then get SMS from user // // This should only kick in when using a custom function, btw } }
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) // 例示用に非同期処理を行う関数 // 実際のアプリではサーバーからデータを取得する function getCountNum (type) { return new Promise(resolve => { // 1秒後にtypeに応じたデータを返す setTimeout(() => { let amount switch (type) { case 'one': amount = 1 break ...
$(document).ready(function() { $("#botao_teste").click(function(){ $nome = document.getElementById("nome").value; $senha = document.getElementById("senha").value; $.ajax({ url : "ServletLogin", data : {nome:$nome, senha:$senha, acao:"inserir"}, meth...
const titleGen = new ml5.charRNN('./models/titles'); const descriptionGen = new ml5.charRNN('./models/descriptions'); const meaningGen = new ml5.charRNN('./models/meanings'); const guideGen = new ml5.charRNN('./models/guide'); console.log('titlegen: ', titleGen); let cards = []; function setup() { generateButton = s...
import { defineMessages } from 'react-intl'; export const scope = 'app.containers.CreateAd'; export default defineMessages({ title: { id: `${scope}.title`, defaultMessage: 'Новое заявление', }, vacation: { id: `${scope}.vacation`, defaultMessage: 'Очередной отпуск', }, dayOff: { id: `${s...
"use strict"; require('choices.js/public/assets/scripts/choices.min.js'); exports.new = element => { return options => { // let opts = require('../../output/Chosen.Chosen').optionsToObject(options); let opts = {} return () => { console.log(Choices); let choices = new Choices(element, {addIt...
import uuid from 'uuid/v4'; import Note from '../models/note'; import Lane from '../models/lane'; export function addNote(req, res) { if (!req.body.task) { res.status(403).end(); } const newNote = new Note(req.body); newNote.id = uuid(); newNote.save((err, saved) => { if (err) { res.status(5...
import React, { useState } from 'react'; import { Modal } from 'react-bootstrap'; import { useForm } from 'react-hook-form'; import bcrypt from 'bcryptjs'; import { useDispatch, useSelector } from 'react-redux'; import { updateUser } from '../../../redux/userReducers'; import LoadingSpinner from '../../Helpers/LoadingS...
const express = require('express'); const router = express.Router(); const users = require('../data/users.json') const fs = require('fs') router.post('/:id', (req, res) => { const { id } = req.params const { status } = req.body const userFind = users.find((user) => user.id === Number(id)); if (typeof (...
import App from "./App"; window.customElements.define("the-app", App); const main = document.getElementById("main"); const app = document.createElement("the-app"); main.appendChild(app);
var _number_mngr_8cpp = [ [ "PagedArray", "class_paged_array.html", "class_paged_array" ], [ "ToQuickSort", "class_to_quick_sort.html", "class_to_quick_sort" ], [ "FileScanner", "class_file_scanner.html", "class_file_scanner" ], [ "main", "_number_mngr_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ...
const cats = [ { name: "Blob", age: 10 }, { name: "Harold", }, { name: "Blurt", age: 21 } ]; /* Question 1 */ const cat = { complain: function () { console.log("Meow"); } } cat.complain(); /* Question 2 */ const heading = document.query...
Eutil = require('ethereumjs-util'); EcommerceStore = artifacts.require("./EcommerceStore.sol"); module.exports = function(callback) { current_time = Math.round(new Date() / 1000); amt_1 = web3.toWei(1, 'ether'); EcommerceStore.deployed().then(function(contractInstance,error) {contractInstance.addProductToStore('ipho...
const apiUrl = `https://api.coindesk.com/v1/bpi/historical/close.json` axios .get(apiUrl) .then(responseFromAPI => { console.log(responseFromAPI); const BTCValue = responseFromAPI.data.bpi; const dates = Object.keys(BTCValue); const values = Object.values(BTCValue); con...
import React from "react"; import Grid from "@material-ui/core/Grid"; import InputLabel from "@material-ui/core/InputLabel"; import FormControl from "@material-ui/core/FormControl"; import Select2 from "react-select"; import withStyles from "@material-ui/core/styles/withStyles"; import isEqual from "lodash/isEqual"; im...
function countingSort(list, minNum, maxNum) { var range = maxNum - minNum + 1, count = new Array(range); list.forEach(function (num) { count[num - minNum] = count[num - minNum] ? count[num - minNum] + 1 : 1; }); curr = 0; for (var i = 0; i < count.length; ++i) { while (count[i] > 0) { li...
const nameSelectJQuery = $(".node-select"); const typeSelectJQuery = $("#type-select"); const nodeQuery = $("#node-query"); const ignoreQuery = $("#ignore-query"); const allConnections = $("#all-connections-button button"); const minConnections = $("#min"); const nameSelectD3 = d3.select("#name-select"); const newNam...
const test = require('tape'); const solveRPN = require('./solveRPN.js'); test('Testing solveRPN', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof solveRPN === 'function', 'solveRPN is a Function'); //t.deepEqual(solveRPN(args..)...
// const obj = { // name:'Vikram', // getName(){ // return this.name; // } // }; // // console.log(obj.getName()); // const getNamme = obj.getName; // this actually broken the this.binding. when we create getNamme we created a refernce to obj.getName // console.log(getNamme()); // the same code wil...
$(function(){$(".datepicker").datetimepicker({format:"DD MMM YYYY"})});
/** * General Handler for Controlling the modes of the Touchstrips * * @param {TrackBankContainer} mixerTrackBank * @param {TrackBankContainer} effectTrackBank * @param {int} numTracks * @param {ClipLaunchView} clipview * @param {Device} cursorDevice * @param {TrackHandler} trackHandler */ function S...
import {Link} from 'react-router-dom' import './Last.css' function Last(){ return( <div className='last'> <h2 style={{color:'white'}} >thank you for submitting the resume</h2> <h3 style={{color:'white'}} >submit another resume <Link to='/'>here</Link></h3> </div> ) } export defa...
import React from 'react' const MCOM5332= (props) => { return ( <div> <h1>MCOM 5332</h1> <p>This bit of content comes fropm the {props.activeSection}.js component.</p> <p>MCOM 5332 arguments and content hard-coded here.</p> </div> ) } export default MCOM5332
// /* eslint-disable */ // const mongoose = require('mongoose'); // // 定义Account结构体 // module.exports = mongoose.model('Account', { // accountName: { // type: String, // default: '', // }, // passwd: { // type: String, // default: '', // }, // nickName: { // type: String, // default: ...
//this контекст вызова var user= { name: 'Ilya', surname: 'Polyakov', sayHI: function(){ console.log("hi "+ this.name); } fullname: function(){ console.log(this.name+this.surname); } } user.sayHI(); var user2= { ...user }; user2.name='Petya'; user2.fullname();
document.getElementById("channelSend").onkeydown = sendMessage; var calle = false; let localConnection; let remoteConnection; let sendChannel; let receiveChannel; const chatSend = document.getElementById('channelSend'); const wsClient = new WebSocket('ws://localhost:1234'); if (document.location.hash === "" || docum...
class Watcher { constructor(vm,expOrFn,cb,options){ this.cb = cb; this.vm = vm; Dep.target = this; this.cb.call(this.vm); } update(){ this.cb.call(this.vm); } } export default Watcher;
var Album = require('../models/album'); // POST /albums exports.postAlbums = function(req, res) { var album = new Album({ Title: req.body.Title, Id: req.body.Id, Authors: req.body.Authors, Narrator: req.body.Narrator, Description: req.body.Description, LastUpdateTime...
import { AsyncStorage } from 'react-native' import { Types } from '../reducer/Trips/trips' export const addTrips = (trips, newTrip) => { trips.push(newTrip) AsyncStorage.setItem('trips', JSON.stringify(trips)) return updateTrips(trips) } export const loadTrips = () => async dispatch => { const trips ...
"use strict"; var Model = require('./../models/activity.model'); var CustomError = require('./../utils/custom-error'); var mongoose = require('mongoose'); // Get All function getAll(req, res, next){ Model.getAll((err, objects)=>{ if(err){return next(err);} if(!objects){return next(new CustomError('No data fo...
/* begin copyright text * * Copyright © 2016 PTC Inc., Its Subsidiary Companies, and /or its Partners. All Rights Reserved. * * end copyright text */ /*global module*/ /* jshint node: true */ /* jshint strict: global */ /* jshint camelcase: false */ 'use strict'; var Q = require('q'); var debug = require('debug')(...
import React, { Component } from 'react'; import { View, Button, ScrollView } from 'react-native'; import Header from '../header'; import Footer from '../footer'; import Category from './category'; import InputFiled from './inputFiled'; import UploudImage from './uploudImage'; export default class AddItem extends Compo...
/** * @flow */ import 'whatwg-fetch' // for browser compatibility import React, { Component, } from 'react' import ReactNative, { AppRegistry, } from 'react-native' import { Router, Route, Redirect, IndexRedirect, withRouter, browserHistory, // this is a singleton } from 'react-router' import { S...
import Page from '../layouts/main' import Grid from '../components/grid' import PostItem from '../components/post-item' import PrimaryTitle from '../components/primary-title' import textEffect from '../styles/text-effect' const metaData = { title: 'Nipher - Blog', description: 'Articles about web development', ...
import React, { Component } from 'react' import s from './Controls.css' import SearchContainer from '@/containers/SearchContainer' import WaypointsContainer from '@/containers/WaypointsContainer' import DetailsContainer from '@/containers/DetailsContainer' class Controls extends Component { constructor(props) { ...
var wpi=require('node-wiring-pi') var exec = require('child_process').exec; wpi.setup('wpi') var pin=2; var result=0; // var i = new Date().getSeconds() // console.log(i) wpi.pinMode(pin, wpi.INPUT) setInterval(()=>{ result = wpi.digitalRead(pin); var date = new Date() if(result){ console.log('Take ...
const numbers = [1, 2, 3, 4] const vowels = ['a', 'e', 'i', 'o', 'u'] const people = [{ name: 'Bob' }, { name: 'Sally' }, { name: 'Mary' }]
// Specifically request an abstraction for MetaCoin var LimitedMintableNonFungibleToken = artifacts.require("LimitedMintableNonFungibleToken"); contract('LimitedMintableNonFungibleToken', function(accounts) { it("should implement ERC721 interface", function(){ return LimitedMintableNonFungibleToken.deploye...
var myArray = [2.34, 3.98, 7.32, 6.51, 9.99]; var roundedArray = []; var randomArray = []; for(var i = 0; i < myArray.length ; i++){ var rNum = Math.round(myArray[i]); roundedArray.push(rNum); } function tenRandom(rdmArray){ var numOfNumbers = 10; for (var i = 0; i < numOfNumbers; i++){ var rdm = Math.fl...
var timer; chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { switch(true){ case request.type == 'video': console.clear(); if(timer){ clearInterval(timer); } timer = setInterval(function(){ video(request.type,request.selection,request.value); }, 1); break; case req...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = require('../../../ssr-module-cache.js'); /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /***...
// set up vector class class Vec { constructor(x = 0, y = 0) { this.x = x; this.y = y; } //set up length get len(){ return Math.sqrt(this.x *this.x + this.y* this.y) } set len(value) { const fact = value / this.len; this.x *= fact; this.y *= fact; } } // set up R...
function calPrice(){ if (typeof days !== 0) { Price("Mont-Blanc PackT", days); Price("alpinismShoes", days); Price("Crampons", days); Price("iceAxe", days); Price("helmet", days); Price("harness", days); Price("gaiters", days); Price("poles", days); Price("techIceAxes", days); Price("backpack", day...
"use strict"; (function () { const CLOUD_WIDTH = 420; const CLOUD_HEIGHT = 270; const CLOUD_X = 100; const CLOUD_Y = 10; const GAP = 10; const GAP_BAR = 50; const FONT_GAP = 18; const GREETING_X = 120; const GREETING_Y = 30; const MAX_BAR_HEIGHT = 150; const BAR_WIDTH = 40; const renderCloud = ...
controllers .controller('canceledNotificationsController', function ($scope, $state, canceled) { console.log('canceledNotificationsController started'); var vm = this; $scope.consulta = canceled.data; vm.return = function () { $state.go('app.notifications.list'); ...
function loadList() { var service = 'services/video.php' ; var method='GET'; var args = {"_": new Date().getMilliseconds()} //CallService(service,args,setview); utility.service(service,method,args,setview,settinglightSlider) } function loadvideomain(){ var service = 'services/video.php' ; var method='GET';...
/* ** Copyright (c) Richard Uren 2012 - 2015 <richard@teleport.com.au> ** All Rights Reserved ** ** -- ** ** LICENSE: Redistribution and use in source and binary forms, with or ** without modification, are permitted provided that the following ** conditions are met: Redistributions of source code must retain the ** abo...
import React from "react"; import Banner from '../components/Banner'; import AboutUsHome from "../components/AboutUsHome"; import Testimonials from '../components/Testimonials'; const HomePage = () => { return( <> <Banner /> <AboutUsHome/> <Testimonials /> </> ) } export default HomePage
export const ARTIST = "spotify" export const objectCreator = value => ({ type: ARTIST, value })
import mongoose from 'mongoose'; const schema = new mongoose.Schema({ 'name': String, 'price': String, 'picture': String }); const Item = mongoose.model('item', schema); export function getListOfItems() { return Item.find(); }; export function saveItem(data) { if(!data._id) { delete data._id; return (n...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import svgLoader from '../img/svg-loader.svg'; import {Alert, Button, ButtonGroup, Col, Row} from 'reactstrap'; import {loadBig, loadHuge, loadSmall} from "../api/api"; class ToolsPanel extends Component { constructor(props) { super(pro...