text
stringlengths
7
3.69M
const soap = require('soap'); const wsdlUrl = 'https://api.demo.ezidebit.com.au/v3-5/nonpci?singleWsdl'; const custUrl = 'https://api.demo.ezidebit.com.au/v3-5/pci?singleWsdl'; const Payments = require('../models/Payment.js'); const paymentAPI = async function (req, res, next) { try { // let Payments = []; ...
// Load config const { database } = require('../config.json') console.log('Loaded config') // Setup PG pool const { Pool } = require('pg') const db = new Pool(database) console.log('Created database connection') // Setup express app const express = require('express') const cors = require('cors') const app = express()...
import React from 'react'; import './footer.scss'; import classNames from 'classnames'; import {string, bool} from 'prop-types'; import {Link} from '../link/Link'; export class Footer extends React.Component { static propTypes = { className: string, portfolioMode: bool }; render() { const {classNam...
import React, {Component} from 'react'; import {Link} from 'react-router-dom'; class Exam extends Component { render() { return ( <div> <h1>Exam title</h1> <p> Exam description. This should give the user some context about the exam. ...
/* * Actions describe changes of state in your application */ // We import constants to name our Actions' type import axios from 'axios' import localStorage from 'localStorage' import {AUTH_BASE_URL} from '../Config/Constants' import {axiosInstance} from '../Config/AxiosInstance' import {FETCH_GROUP_REPOS, FETCH_GROU...
import React, { useState, useEffect } from "react"; import DeleteSweepIcon from "@material-ui/icons/DeleteSweep"; import Axios from "axios"; const FriendslistAdmin = () => { const [friends, setFriendsList] = useState([]); const [messageToDisplay, setMessageToDisplay] = useState(); let pseudonymeUserToDelete; ...
module.exports = { monthString :monthString, getDateTimeFromMySql: getDateTimeFromMySql, getNiceMonth : getNiceMonth, getNiceday : getNiceday, dayReportSql : dayReportSql, formDayStr : formDayStr, arrToTableRow : arrToTableRow } //============================================================...
define(['angular'], function (angular) { 'use strict'; /** * @ngdoc function * @name kvmApp.controller:ModalInstanceCtrlCtrl * @description * # ModalInstanceCtrlCtrl * Controller of the kubernetesApp */ angular.module('kvmApp.controllers.ModalInstanceCtrl', []) .contro...
var APP = this.APP || {}; (function (A, $) { var data, sandbox; var matchStr = function (str, q) { var words = q.split(' '); for (var i = 0; i < q.split.length; i += 1) { if (str && words[i]) { if ( str.toLowerCase().indexOf(words[i].toLowerCase()) !== -1) { return true; } } } retur...
'use strict' const express = require('express'); const app = express(); const path = require('path'); //Middleware to define folder for static files app.use(express.static('public')); app.get('/', (req,res) => { res.render(index.html); }); app.listen('3000', () => { console.log('server is listen on port 300...
export default { '.black': { color: '#2b2b2b' }, '.white': { color: 'white' }, '.critical': { color: 'red' }, '.positive': { color: 'green' }, '.secondary': { color: '#777' }, '.formAccent': { color: 'navy' }, '.neutral': { composes: 'black' } };
/** * Created by wen on 2016/8/19. */ import React, { PropTypes,Component } from 'react'; import s from './Radio.css'; import ClassName from 'classnames'; class Radio extends Component { constructor(props) { super(props); this.state = {}; } static contextTypes = { insertCss: Prop...
const MongoClient = require('mongodb').MongoClient; const assert = require('assert'); // Connection URL const url = 'mongodb://localhost:27017'; // Database Name const dbName = '3a'; const client = new MongoClient(url, { useNewUrlParser: true }); // Use connect method to connect to the Server client.connect(function...
// function globalFunction(x) { // return function outerFunction(y) { // return function innerFunction(z) { // return x + y + z; // }; // }; // } // let instance1 = globalFunction(2); // var instance2 = instance1(3); // console.log(instance2()); // let count = 0; // let interval = se...
define(['frame'], function (ngApp) { 'use strict' ngApp.provider.controller('ctrlDoc', [ '$scope', '$location', 'http2', 'facListFilter', 'CstNaming', function ($scope, $location, http2, facListFilter, CstNaming) { var _oMission, _oCriteria, hash if ((hash = $location.hash())) { ...
var combineReducers = Redux.combineReducers; var rootReducer = combineReducers({ todos: todos });
var express = require('express'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var sixlbrRoutes = require('./getSixlbrRoutes'); var request = require('request'); var flatten = require('flat'); var routes = { }; var rou...
const express = require('express'); const indexController = { showHome: (req, res) => { res.render('home'); }, showAgenda: (req, res) => { res.render('agenda-mentor'); }, showMentores: (req, res) => { res.render('mentores'); }, }; module.exports = indexController;
import React, {PropTypes} from 'react'; import BuildContainer from '../components/build/BuildContainer.jsx'; const Project = ({params}) => ( <div> <BuildContainer params={params} /> </div> ); Project.propTypes = { params: PropTypes.object.isRequired }; export default Project;
//lets require/import the mongodb native drivers. var mongodb = require('mongodb'); var assert = require("assert"); //We need to work with "MongoClient" interface in order to connect to a mongodb server. var MongoClient = mongodb.MongoClient; // Connection URL. This is where your mongodb server is running. var url = ...
const { MessageEmbed } = require("discord.js"); const Color = { info: "#2F3136", warn: "YELLOW", error: "RED", }; const CreateEmbed = (color, message) => { const embed = new MessageEmbed().setColor(Color[color]); if (message) embed.setDescription(message); return embed; }; module.exports = { CreateEmbed }...
export const INITIAL_STATE = { username: '', password: '' } export const CHANGE_USERNAME = 'CHANGE_USERNAME' export const CHANGE_PASSWORD = 'CHANGE_PASSWORD' export const changeUsername = username => ({ type: CHANGE_USERNAME, username }) export const changePassword = password => ({ type: CHANGE_PASSWORD, ...
'use strict'; const multimatch = require('multimatch'); const unique = require('uniq'); const path = require('path'); module.exports = function(opts) { opts = normalize(opts); const keys = Object.keys(opts); const match = matcher(opts); return (files, metalsmith, done) => { const metadata = metalsmith.metadata(...
function trazi_jedan() { var req = new XMLHttpRequest(); req.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById('rezultati').innerHTML = this.responseText; } } var ime = document.getElementById('trazi_ime1').value; var username = docum...
module.exports = function(settings) { if(settings) { return $.lib.concat(settings.options.path) } else { return $.lib.through2.obj() } }
var MAX = 10; $(document).ready(function() { initMainContentTabs(); //On Click Event $("#mainContentTabs li").click(changeMainContentTab); // Now define one more function which is used to fadeout the // fade layer and popup window as soon as we click on fade layer $('#fade').click(close); $('#cancel')...
import { eq, pick } from 'lodash'; import * as EDITOR from '../actions/editor'; import * as MODE from '../constants/Mode'; import * as SHAPE from '../constants/Shape'; import { StateStorage } from './state-storage'; const storage = new StateStorage( 'nekoboard/editor', { mode: MODE.DEFAULT, sha...
var express = require('express'); var mongoose = require('mongoose'); var bodyParser = require('body-parser'); var passport = require('passport'); var FacebookStrategy = require('passport-facebook').Strategy; var expressSession = require('express-session'); mongoose.Promise = global.Promise; // For devel...
PayHistory = React.createClass({ mixins: [ReactMeteorData], getMeteorData: function() { var username = Meteor.user().username; var thisID = StateVars.findOne({user: username}).editID; return { sessionID: StateVars.findOne({user: username})._id, thisClient: Clients.findOne({_id: thisID}), ...
import { createAsyncThunk } from "@reduxjs/toolkit" import axios from "axios" // Get All Categories export const getCategories = createAsyncThunk("getCategories", (async (_, thunkAPI) => { const { data } = await axios.get("http://localhost:4000/category/") if (data.status === "success") { return data.p...
let config = require('./config.js'); let http = require('http'); let chalk = require('chalk'); let path = require('path'); let url = require('url'); let {inspect,promisify} = require('util'); let fs = require('fs'); let stat = promisify(fs.stat); let readdir = promisify(fs.readdir); let mime = require('mime'); let zlib...
const debug = require('debug')('help') const help = async (message) => { try { const embed = { title: 'Coin bot commands:', description: '- !help (All commands)\n- !coins (All coins)\n- !github (Coin bot repository)\n- !donate (We are collecting for hosting)\n**Now in coins embeds you can fin...
let app_url = `${process.env.PUBLIC_URL}/api/`; let app_server = `${process.env.PUBLIC_URL}`; if(typeof window != "undefined"){ app_url = window.location.protocol+"//"+window.location.host+"/api/" app_server = window.location.protocol+"//"+window.location.host; } export default {app_url,app_server}
// ---------------Required Modules-------------------------- const inquirer = require('inquirer'); const fs = require('fs'); // --------------License Logo link Variables----------------- const mit = '![AUR license](https://img.shields.io/static/v1?label=License&message=MIT&color=blue)'; const apache = '![AUR license](...
var React = require("react"); var css = require("./CourseSelectList.css"); import CourseCardBundle from "../CourseCard/CourseCard.jsx" import Popover from 'material-ui/Popover' import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import {List, ListItem} from 'material-ui/List'; import Pape...
import { StyleSheet } from 'react-native'; import metrics from './config/metrics'; export default StyleSheet.create({ container: { flexDirection: 'row', }, content: { backgroundColor: 'rgba(0,0,0,0.3)', height: metrics.TIME_BAR_HEIGHT, borderColor: 'black', borderWidth: 1, }, });
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import Player from './../../src/components/Player'; import Button from './../../src/components/Button'; import { ButtonValues } from './../../src/components/Button' describe("Player", function() { it('rend...
const lookupChar=require('../Char-lookup') const assert=require('chai').assert; describe('Returns correct char', ()=>{ it('Returns correct index',()=>{ let index=2; let arg="Abkhazia"; let expected='k'; assert.strictEqual(expected, lookupChar(arg, index)); }); it('Retur...
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' const NavItem = ({ to, visible = true, children }) => <li><Link to={to}>{children}</Link></li> export default connect((state) => state.app)(({ session: { signedIn }}) => ( <nav id="navbar"> <ul> <NavItem ...
module.exports = { scriptVersion: '0.1.0', dirName: 'apiVersionnedTuto', linkedRepos: [ 'chooz-it-app' ], install: function() { console.log(process.cwd()); } };
import axios from 'axios'; import { ROOT_URL } from './constants'; export default { fetchRaces() { return axios.get(`${ROOT_URL}/races`) }, }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _secureDfu = require("./secure-dfu"); Object.defineProperty(exports, "SecureDFU", { enumerable: true, get: function get() { return _secureDfu.SecureDFU; } });
//very similar to tutorial angular. module('myApp'). config(['$locationProvider', '$routeProvider', function config($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); $routeProvider. when('/login', { templateUrl: '<login-view></login-view>' }). ...
/**\ * * (연계형 문제 - 88번을 먼저 풀고 오셔야 합니다!) 제코베의 도움을 받아 성공적으로 지도를 만들어낸 지식이는 캐릭터의 움직임을 구현했습니다. 하지만 지도 위의 캐릭터 위치를 나타내는데 문제가 발생했습니다. 지식이는 지도 위에서 캐릭터의 위치를 나타내기 위해 다시 한번 제코베에 도움을 요청합니다. 지도 위에서 캐릭터의 위치를 나타내주세요 1. 지도는 88번 문제의 해답을 사용해 주세요 2. 입력값은 지도, 캐릭터의 움직임입니다. 3. 캐릭터의 움직임은 { 상:1, 하:2, 좌:3, 우:4 }로 정수로 이루어진 배열이 들어갑니다. 4. 벽과...
var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var jsonParser = bodyParser.json(); var request = require('request'); // request.debug = true; // require("request-debug")(request); var Recipe = require('./models/recipe.js'); var mongoose = require('mongoose'); var Mongo...
import React from 'react'; import axios from 'axios' import Header from './components/ui/header' import Search from './components/ui/search' import CharacterGrid from './components/characters/characterGrid' import './App.css'; function App() { const [items, setItems] = React.useState([]) const [isLoading, setIsLoad...
const QueryType = require('./QueryType') const MutationType = require('./MutationType') const { GraphQLSchema } = require('graphql'); module.exports = new GraphQLSchema({ query: QueryType, mutation: MutationType });
import Light from './light' class RbgLight extends Light { constructor(identity,name,realm,defaultState = 'on',attributes,data){ super(identity,name,realm,defaultState,attributes,data); this.type = 'light'; this.supports = [Light.RBG_COLOR, Light.DIMMERABLE]; } } export default RbgL...
// node myFile.js const pendingTimers = [] // setTimeout, timer stuff const pendingOSTasks = [] // networking stuff const pendingOperations = [] // filesystem stuff // New timers, tasks, operations are recorded from myFile running myFile.runContents() function shouldContinue() { // Check one : Any pending setTimeo...
var route = require('express').Router(); var tasks = require('./tasks'); var knex = require('../db/knex'); var methods = require('../methods'); module.exports = route; route.use('/:id', function(request, response, next) { request.routeChain = request.routeChain || {}; request.routeChain.planitId = request.param...
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { Accounts } from 'meteor/accounts-base'; import { Link } from 'react-router'; import { browserHistory } from 'react-router'; import { renderErrorsFor } from '../../modules/utils'; import {addFolder} from '../../api/folders/methods'; export clas...
import React, { useState } from "react"; import { Filter } from "./Filter"; import AddMovie from "./AddMovie"; import { Navbar, Form, Nav, Image, Button, FormControl } from "react-bootstrap"; const NavBar = ({ handleAdd, handleinput, searchinit, handlerate }) => { const [modalShow, setModalShow] = React.useState(fal...
var mongoose = require('mongoose'); var Notificacion = require('../models/notificacion'); var UserML = require('../models/userML'); var Accion = require('../models/accion'); var meli = require('mercadolibre'); var client = require('../config/mlClient'); var meliObject = new meli.Meli(client.id...
/** * Formulaire du billetage * Remplissage automatique des champs * @author: Delrodie AMOIKON * @date: 23/06/2017 * @version: v1.0 */ //Formatage de la monnaie function format(number) { var numberStr = parseFloat(number).toFixed(2).toString(); var numFormatDec = numberStr.slice(-2); /*decimal 00*/ n...
var timeSlot = $('.time'); var greetSlot = $('.greeting'); var greetList = ['Hello, ', 'Hi, ', 'Greetings, ', 'Salve, ', 'Sveiki, ', 'Guten tag, ', 'Dia dhuit, ', 'Kamusta, ', 'Aloha, ', 'Hola, '] var randomGreet = Math.floor(Math.random() * greetList.length); timeSlot.text(moment().format('LT')); firebase.auth().onA...
var searchData= [ ['cabeza',['cabeza',['../structt__cola.html#aa60b2d7a3752db97b7f9d9163fb48afa',1,'t_cola']]], ['cola',['cola',['../structt__cola.html#ae6eec6efa2dd9d70da13b2a435c3de27',1,'t_cola']]], ['coladebug',['colaDebug',['../group___debug___external___variables.html#ga314fd637d927bd6a2551e119de623aa5',1,'...
var vt = vt || {}; vt.SyncManager = cc.Class.extend({ m_dict: null, m_timeOut: 10000, // 10秒超时 m_isSyncIcon: false, // 是否正在显示超时同步图标 m_curSyncUuid: null, ctor: function () { // this.m_dict = {}; var scheduler = cc.Director._getInstance().getScheduler(); scheduler...
var express = require('express'); var router = express.Router(); var wrap = require('co-express'); var mongoose = require('mongoose'); var Contact = mongoose.model('Contact'); var Category = mongoose.model('Category'); //Allowing Cross origin access router.all('/*', wrap(function*(request, response, next) { resp...
(function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function () { var clientWidth = docEl.clientWidth; if (!clientWidth) return; docEl.style.fontSize = 100 * (clientWidth / 75...
import React,{Component, useDebugValue} from 'react'; import {AppRegistry,FlatList,Image,Text,View,StyleSheet, Switch, Alert, TouchableHighlight, Dimensions,TextInput} from 'react-native'; import Modal from 'react-native-modalbox'; import Button from 'react-native-button'; import flatListData from '../data/FlatListDa...
import Taro from '@tarojs/taro' import React from 'react' import { View, Text, ScrollView } from '@tarojs/components' import { Loading } from '@components' import { connect } from 'react-redux' import { getWindowHeight } from '@utils/style' import Recommend from './recommend' import './home.scss' @connect(({ recommen...
function changeModalColor(color) { var modals = document.getElementsByClassName("modal"); for(i=0; i<modals.length; i++) { modals[i].style.backgroundColor = color; } }
import { h, Component } from 'preact'; import SectionUser from '@/components/LeftBlocks/SectionUser'; import SectionAccounts from '@/components/LeftBlocks/SectionAccounts'; import SectionDocument from '@/components/LeftBlocks/SectionDocuments'; import SectionScopes from '@/components/LeftBlocks/SectionScopes'; import ...
// a declaração desta variável ocorreu devido ao deploy no GCP onde a plataforma aponta a rota de forma difente. var PORT = process.env.PORT || 3000; module.exports = function (app) { app.post('/chat', function (req, res) { if (PORT === 3000) { // local app.app.controllers.chat.iniciaChat(app, req, res); ...
// sumZero(sortedArray) // accept: sorted array // return: return the first pair that sums up zero // sumZero([-2,-1,0,1,2,3,4]) // [-2,2] // sumZero([-3,-2,-1,0,1,2,3,4]) // [-3,3] // zero if not such value // sumZero([0,1,2,3,4]) // 0 // sumZero([]) // 0 function sumZero(arr) { if (arr[0] >= 0) { return 0 } ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const schema = new Schema({ productName: { type: String, required: true }, productBrand: { type: String, required: true }, productCategory: { type: String, required: true }, productBarcode: { type: String, required: true }, stock...
var roleDropHarvester = { /** @param {Creep} creep **/ run: function(creep, village) { if (BASE_CREEP.run(creep, village) == -1){ return; } village.debugMessage.append(`\t\t\t${creep.name} is running role DropHarvester`); // if my location isn't equal to my...
/*! * inspideez * dropdown */ $(function () { $('.dropdown-toggle').on("click", function (event) { event.stopPropagation(); //closing all other dropdown's and adding .closing for animating $('.dropdown.open').not($(this).parent('.dropdown')).removeClass('open').addClass('closing'); ...
import * as React from "react"; import Button from "@material-ui/core/Button"; import { makeStyles } from "@material-ui/core/styles"; import EmojiPeopleIcon from "@material-ui/icons/EmojiPeople"; import MonetizationOnIcon from "@material-ui/icons/MonetizationOn"; const useStyles = makeStyles((theme) => ({ button: {...
/* * 각 함수들의 정의가 끝난 후, 여기서 실제의 처리를 시작 */ Main.init(() => { Preloader.loads([ 'beat.mp3', ]); // 시스템에서 저장된 키-벨류 값을 가져옴 UserDefault.loadValueToSystemKey(); // 타이틀 화면 생성 Window.setSize(800, 600); Director.replaceScene(new SceneTitle()); });
/** * Created by Administrator on 2016/5/5. */ $(function(){ $('#dg').datagrid({ onLoadSuccess: function(data){ if (data.total == 0 && data.ERROR == 'No Login!') { var user_id = localStorage.getItem('user_id'); var user_pwd = localStorage.getItem('user_pwd'); ...
/* jshint indent: 2 */ module.exports = function (sequelize, DataTypes) { return sequelize.define( 'likes', { like_id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true, }, like_post_id: { type: DataTypes.INTEGER(1...
import commonModule from '../_common'; import appLayoutRouter from './layout.router'; import {headerModule} from './header'; import {footerModule} from './footer'; import {sidebarModule} from './sidebar'; export default angular.module('app.layout', [ commonModule.name, headerModule.name, footerModule.name, ...
import { Voices } from '../oscillators/voices'; import { VolumeEnv } from '../envelopes/volumeEnvelope'; import { Filtenv } from '../envelopes/filterEnvelope'; import { Recorder } from '../record/recorder.js'; export const SwarmEngine = audioContext => { const _swarmEngine = { audioContext, recorderNode: aud...
const data = [ { "title": "React Class", "content": "Today I learnt React" }, { "title": "Angular Class", "content": "Today I learnt Angular from server" } ] module.exports = data;
module.exports = function(grunt) { 'use strict'; var config = require('../grunt.conf'); grunt.config('browserSync', { dev: config.sync }); grunt.config('watch', config.watch); grunt.loadNpmTasks('grunt-browser-sync'); grunt.loadNpmTasks('grunt-contrib-watch'); };
const webpack = require('webpack'); module.exports = { mode: "development", devtool: 'inline-source-map', performance: { hints: false }, resolve: { extensions: [ '.ts', '.js' ] }, module: { rules: [ { test: /\.ts$/, us...
import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import Article from '../../components/ArticleCard'; import { articles } from '../../services/fakeArticleService'; import { ThemeContext } from '../../themContext'; const Articles = () => { const { t } = useTranslation(); const...
import './App.css'; import {HashRouter, Route} from "react-router-dom"; import Table from './components/Table'; import Writer from './components/Writer'; import Modify from './components/Modify'; import Header from './components/Header'; import Nav from './components/Nav'; import Footer from './components/Footer'; impo...
import React, { Component } from 'react' import PageTitle from '../PageTitle'; import GooMaps from './GooMaps'; import { Container, Row, Col } from 'react-bootstrap'; import ContactForm from './ContactForm'; class Contact extends Component { render() { return ( <div className="contact"> <...
import React, {Component} from 'react' class StudentsGrades extends Component{ render(){ const students = this.props.student.map((student, key)=>{ return student.score > 50 ? ( <tr key ={key}> <td>Name: {student.name}</td> <td>Score: {student.score}PASSED</td> </tr> ...
angular .module('blocJams') .controller('AlbumCtrl', function($scope, Fixtures, SongPlayer) { $scope.currentAlbum = angular.copy(Fixtures.getAlbum()), $scope.songPlayer = SongPlayer; // .controller('AlbumCtrl', function(Fixtures) { // this.albumData = angular.copy(albumPicasso); // } })...
import _ from "/ui/web_modules/lodash.js"; export default mnDocumentsListController; function mnDocumentsListController($rootScope, mnDocumentsListService, $state, $uibModal, removeEmptyValueFilter, jQueryLikeParamSerializerFilter) { var vm = this; vm.lookupSubmit = lookupSubmit; vm.showCreateDialog = showCrea...
import React from "react" import Img from "gatsby-image" import RightAngle from "../../images/right-angle.svg" const makePersonBlock = person => ( <li key={person.id} className="flex w-full flex-wrap mb-20 pl-0" > <div className="w-full md:w-1/3 md:pr-14"> {person.headshot ? <div ...
function solve(n){ let value = '';1 console.log('<div class="chessboard">') for(let i = 0; i < n; i++){ console.log(' <div>') for(let j = i; j < i + n; j++){ if(j % 2 == 0){ value = 'black'; }else{ value = 'white'; } ...
module.exports = { baseUrl: 'http://timage.xbniao.com', listPage:'/port/list', addPage:'/port/add', updatePage:'/port/update' };
import { expect, request, sinon } from '../../test-helper' import app from '../../../app' import GetArticlesMeta from '../../../src/use_cases/get-articles-meta' import { dummyArticleMeta } from '../../dummies/dummyArticle' describe('Integration | Routes | articles-meta route', () => { const articlesMeta = [dummyArti...
'use strict'; const Client = use('App/Models/Client'); class ClientController { async index() { const allClients = await Client.all(); return allClients; } async show({ request }) { const Client = use('App/Models/Client'); return await Client.findOrFail(request.params.id); } async store({ ...
var interface_c1_connector_register_device_options = [ [ "getDictionaryWithProperties", "interface_c1_connector_register_device_options.html#a865bd09b452b612dcc2750e5a644674d", null ], [ "appID", "interface_c1_connector_register_device_options.html#ab465abf43db41a20084544a7470b2b57", null ], [ "campaignID",...
module.exports = function(grunt) { //module to load all grunt tasks at once instead of individually calling loadNpmTasks on each. require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jest: { options: { coverage: true, testPathPattern: /.*-test.js/ } },...
const express = require("express"); module.exports = { funtest : async(req,res)=>{ //console.log("hii"); try{ await getsum(); }catch(error){ console.log(error) } res.send("hii"); }, }
import styled from 'styled-components/native'; import { View } from 'react-native'; import { Card } from 'react-native-paper'; export const EventCard = styled(Card)` border-radius: 0px; margin-top: 17px; margin-bottom: 17px; padding-top: ${(props) => props.theme.space[5]}; box-shadow: 0px 4px 4px ...
const express = require("express"); const router = express.Router(); const RoleController = require('./roles_controllers'); router.post('/post/addrole', RoleController.addrole); router.patch('/patch/role', RoleController.patchrole); router.get('/get/list', RoleController.listrole); router.get('/get/list/keyvalue'...
/* * Footer page object * * @package: Blueacorn Footer.js * @version: 1.0 * @Author: Luke Fitzgerald * @Copyright: Copyright 2015-07-24 10:28:51 Blue Acorn, Inc. */ 'use strict'; //enables the use of xpath to find selectors var x = require('casper').selectXPath; //set screen for better screen shots casper.options....
import * as counter from './counter'; import * as formula1 from './formula1'; export {counter, formula1,};
//EXAMPLES OF FASTER DOM TRAVERSAL BY FINDING ELEMENTS DIRECTLY //ALWAYS USING QUERYSELECTOR IS SLOWER const ul = document.querySelector('ul'); //a way to obtain individual child elements of the ul in the html ul.children[1] //gives an array of the items in the ul ul.childNodes //quicker to get first or last child ...
import React from "react"; import Hero from "../src/Pages/Hero"; import Passion from "../src/Pages/Passion"; import Summary from "../src/Pages/Summary"; import Expertise from "../src/Pages/Expertise"; import Portfolio from "../src/Pages/Portfolio"; import OpenSource from "../src/Pages/OpenSource"; import Subscribe from...
import React, { Component } from 'react' import ErrorComponent from './ErrorComponent' import LoadingComponent from './LoadingComponent' import './style/index.less' export default function asyncComponent(importComponent) { class AsyncComponent extends Component { constructor(props) { super(props) th...
// learn foreach from mdn // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach /* Questions to understand: */ /* 1. What does it do? make sure to explain all the parameters. If it has a function as a parameter, make sure to explain all of the parameters for that function. *...
import React from 'react' import { getUserData } from '../../store/auth/selectors' import { useDispatch, useSelector } from 'react-redux' import { logoutUser } from '../../store/auth/auth.thunks' import Link from 'next/link' import { useTranslation } from 'next-i18next' const UserImage = () => { const { t } = useTra...