text
stringlengths
7
3.69M
import { createSlice } from "redux-starter-kit"; import generateBoard from "game/generateBoard"; import levelData from "game/levelData"; import { GRASS, COW, BARN } from "assets/constants"; // Types of tiles const types = [GRASS, COW, null]; // Initial state (Either from localStorage or from object below) const saveD...
//author: froginafog (Liang D.S.) var canvas = document.getElementById("canvas_1"); var context = canvas.getContext("2d"); var x_rectangle = canvas.width/6; var y_rectangle = 0; var width_rectangle = 900; var height_rectangle = 900; //---------------------------------------- var x_gradient_start_0; var y...
angular.module('weatherApp') .directive('currentWeather', currentWeather); function currentWeather(){ var directive = { restrict: 'E', scope: { city: '@' }, replace: true, templateUrl: 'templates/weatherCard.html', controllerAs: 'weatherCardCtrl', controller: weatherCardControlle...
const express = require('express'); const app = express(); const http = require('http'); const WebSocket = require('ws'); const port = 6969; // const server = http.createServer(app); // const wss = new WebSocket.Server({ server }) var clients = {} // wss.on('connection', function connection(ws) { // console.log('c...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { userlogout } from '../../redux/actions/userActions'; import { Confirm, Icon } from 'semantic-ui-react'; class Navbar extends Component { const...
import React, {Component, useContext} from 'react'; import Quiz from './pages/Quiz'; import Scoreboard from './pages/Scoreboard'; import ThemeContext, {themes} from './Context/ThemeContext'; import QuizMenu from './pages/QuizMenu'; import Notifications from './pages/Notifications'; import Login from './pages/Login'; im...
import React from 'react'; import './home.css'; import * as firebase from 'firebase'; import Slider from "react-slick"; class Home extends React.Component { constructor(props) { super(props); this.state = { postinfo: [], urls: [] }; } componentDidMount() { let newState = []; le...
'use strict'; angular.module('miwurster.directives') .directive('tree', [function () { return { restrict: 'EA', templateUrl: 'common/directives/tree/tree.tpl.html', scope: { id: '@', treeModel: '=', selection: '=' } }; }]) .directive('treeModel', ['$compi...
"use strict"; function clickEvent() { document.querySelector("article").classList.add("animation"); }
//Help with IE compatibility for .load and .get $.ajaxSetup({ cache: false }); //Fix column header widths on jquery dataTables $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { //$($.fn.dataTable.tables(true)).DataTable().columns.adjust(); $($.fn.dataTable.tables(true)).DataTable().scroller.measure(...
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' const FormData = ({ children, className }) => { return ( <div className={ classNames('row mt-2', className) }> { children } </div> ) } FormData.propTypes = { children: PropTypes.node.isReq...
export default class ComponentWithShadowDom extends HTMLElement{ constructor(){ super(); /** * Creo lo shadow root */ var shadow = this.attachShadow({mode: 'open'}); /** * Creo vari spans */ var wrapper = document.createElement('span'); ...
import React from 'react'; import { Row, Button } from 'react-bootstrap'; import { connect } from 'react-redux'; import { getAllUsres } from '../../helpers/requstHelper'; import { fetchUsers } from '../../actions/usersActions'; import User from './User'; class UsersList extends React.Component { constructor(props...
(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/consultants/card/_medals" ], { "13f8": function(n, e, a) { var t = a("71a7"); a.n(t).a; }, "2efc": function(n, e, a) { a.d(e, "b", function() { return t; }), a.d(e, "c", function() { ret...
const initialState = { newCredits: false, newConsultationsCredits: false, }; export default (state = initialState, action) => { switch (action.type) { case 'SET_NEW_CREDITS': return { ...state, newCredits: action.payload.newCredits }; break; case 'SET_NEW_CONSULTATIONS_CREDITS': return...
import { useState } from 'react'; import './Sidebar.css'; import {Link} from 'react-router-dom'; import {TiDelete} from 'react-icons/ti'; import songArr from './Dummydb'; const Sidebar = () => { const [sidebarOpen, setSidebarOpen] = useState(false); const sidebarOpenClick = () => { console.log('sidebar...
const productsModel = require('../models/ProductsModel') exports.getHome = (req,res,next) => { productsModel.getAllProducts().then(products =>{ res.render('index', {products}) }) } exports.getContact = (req, res) => { res.render("contact") }
#!/usr/bin/env node node_modules/nodeunit/bin/nodeunit var util = require ('util'); function helper (test, u, x, n, k, str, max) { function rp () { return Math.floor(Math.random()*0xFFFFFFFF); } function rn () { return -Math.floor(Math.random()*0xFFFFFFFF); } var R, Z; u.write[n](x, k, max); ...
var l, dice,ice, turn, rollTimes, hands, activePlayer,setScore; var gameScores=[[],[],[],[]]; var setScore = 5000; // debugger; init(); document.querySelector(".btn-roll").addEventListener('click', function() { if (rollTimes > 0) { var n = hands[activePlayer].length; //0 l=[['.btn-keep',1],['.dice1',1],['.dic...
let menu = ['pupusas','tamales','yuca', 'chicharon', 'platano']; for (let i = 0; i < menu.length; i++) { console.log(i,',',menu[i]) }
module.exports = function(grunt) { 'use strict'; require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ babel: { options: { sourceMap: true, // experimental: true, modules: 'amd' }, dev: { files: [{ expand: true, ...
$(document).ready(function(){ $("ul.menu_list li.sub").click(function(){ $(this).next("li.sub_list").slideToggle("slow").siblings("li.sub_list:visible").slideUp("slow"); $(this).toggleClass("current"); $(this).siblings("li.sub").removeClass("current"); return false; }); $("#pag...
var mongoose = require('mongoose'); var FriendsSchema = new mongoose.Schema({ screen_name: String, data: Date, following_user_history: Array, following_account: String, user_has_unfollowed_history: Array, user_is_following_history: Array, unfollowing_user_history: Array, }); module.exports = mongoose.mo...
var t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }; (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/...
module.exports.command = function (callback) { var self = this; self.getLogTypes().getLog("browser", function (logEntriesArray) { logEntriesArray.forEach(function (log) { if (log.message.includes("current-password")) { // console.log('[' + log.level + '] ' + log.timestamp + ' : ' + log.message); ...
var searchData= [ ['cs371p_2dnetflix',['cs371p-netflix',['../md_README.html',1,'']]] ];
//cacher l'aide $password = $("#password"); $conferm = $("#confirm_password"); $("form span").hide(); function passwordEvent(){ if ($password.val().length > 8){ $password.next().hide(); }else{ //else afficher le hint $password.next().show(); } }; //si le mot de passe est valid ...
//-------------------------------------------------- // // G-CodeGenerator // // ExtendScript for Illustrator // //-------------------------------------------------- #include 'classes/GCode.jsx'; #include 'classes/Analyzer.jsx'; #include 'classes/NumTable.jsx'; #include 'classes/FileManager.jsx'; #incl...
import React, { Component } from "react"; import { connect } from "react-redux"; import { toggleTodo, deleteTodo } from "../Redux/Actions/todoActions"; class TodoItems extends Component { render() { const { id, name, done } = this.props.todo; const { toggleDone, deleteItem } = this.props; console.log("i...
export const compareNums = (a,b) => Number(a) - Number(b); export const compareStringsOrNums = (a,b) => { if(a === undefined) { return -1; } if(b === undefined) { return 1; } if(typeof a === 'string' && typeof a === 'string') { return a.toLowerCase().localeCompare(b.toLowerCase()); } const re...
const AWS = require("aws-sdk"); const hostName = 'http://' + process.env.LOCALSTACK_HOSTNAME + ':4569' AWS.config.update({ region: "us-east-1", endpoint: hostName, accessKeyId: 'secret', secretAccessKey: 'alsosecret', maxRetries: 3 }); const docClient = new AWS.DynamoDB.DocumentClient(); let handle...
import React from 'react'; import { AuthUserContext } from '../Session'; const landingpage = () => { return ( <AuthUserContext.Consumer> {authUser => ( <div>Hello {authUser.username}</div> )} </AuthUserContext.Consumer> ) } export default landingpage;
const Store = require('electron-store'); const store = new Store(); module.exports.sotreSet = function (key, value) { return store.set(key, value); }; module.exports.sotreGet = function (key) { return store.get(key) }; module.exports.sotreDel = function (key) { return store.delete(key) }; module.exports...
import React from "react"; import PropTypes from "prop-types"; import Question from "./Question"; let uniqid = require("uniqid"); export default class Exercice extends React.Component { static propTypes = { exercice: PropTypes.object }; render() { const exercice = this.props.exercice; const question...
// public/js/main.js // var app = angular.module('contatooh',['ngRoute']); angular.module('contatooh',['ngRoute', 'ngResource']) .config(["$routeProvider", function($routeProvider) { $routeProvider.when('/contatos', { templateUrl: 'partials/contatos.html', controller: 'ContatosController' }); ...
;(function (angular) { angular.module('backpackData', []) .controller('BackpackDataController', function($scope, backpackData, $timeout) { var that = this; that.something = 'a variable for something'; $timeout(function() { backpackData.get().then(function(response) { ...
import React, { useContext, useState } from "react"; import HomeSharpIcon from "@material-ui/icons/HomeSharp"; import ExploreOutlinedIcon from "@material-ui/icons/ExploreOutlined"; import { Avatar, Button, Icon, IconButton, } from "@material-ui/core"; import "./Header.css"; import { Link } from "react-router-dom"; impo...
class Divisions { constructor(x, y, w, h) { var options = { isStatic: true } this.body = Bodies.rectangle(x, y, w, h, options); this.w = w; this.h = h; this.points = Math.round(random(1,5)) * 100; World.add(world, this.body); } ...
const express = require('express'); const port = 8000; const bodyParser = require('body-parser'); let app = express(); let catRoutes = require('./routes/cats'); let dbRoutes = require('./config/db'); app.use(bodyParser.urlencoded({extend: false})); app.use(bodyParser.json()); app.use(bodyParser.json({type : 'applic...
//variable xPositionBigRectangles controls the horizontal position of the visualization $(document).ready(function() { "use strict"; var av_name = "T1-T3CON"; // Load the config object with interpreter and code created by odsaUtils.js var av; av = new JSAV(av_name); var widthBig = 40; var lengthBig = 140;...
var app = angular.module('app'); app.component('homeComponent', { controller: 'homeController', templateUrl: './app/components/home/index.html' });
import React from "react" import styled from "styled-components" import { useStaticQuery, graphql } from "gatsby" import Image from "gatsby-image" import useRenderBackgroundImage from "../../hooks/useRenderBackgroundImage" import useIsBackgroundReady from "../../hooks/useIsBackgroundReady" import BackgroundImageLoader...
module.exports = function(ReglaDistribucion) { require('./regla-distribucion/crear')(ReglaDistribucion); require('./regla-distribucion/actualizar')(ReglaDistribucion); require('./regla-distribucion/eliminar')(ReglaDistribucion); };
angular.module('gt-gamers-guild.games-ctrl',[]) .factory('selectedGameData', function($http) { return { currentlySelectedGame : null } }) .controller('GamesCtrl', function($scope, $state, $http, selectedGameData) { $scope.selectGame = function(d) { selectedGameData.currentlySelectedGame = d; $state.g...
import React from 'react'; import ImageView from '../client/components/imageView/imageView'; import ImageList from '../client/components/imageView/imageList'; import MainImage from '../client/components/imageView/mainImage'; describe('<ImageView />', () => { it('should render an <ImageList /> component', () => { ...
const express = require('express'); const helmet = require('helmet'); const cors = require('cors'); const questionsRouter = require("./api/questionsRouter"); const server = express(); server.use(helmet()); server.use(cors()); server.use('/questions', questionsRouter); module.exports = server;
import React from "react"; import "./App.css"; // import ReactFundamentals from "./components/ReactFundamentals"; // import ReactOnChange from "./components/ReactOnChange"; // import ReactRefHook from "./components/ReactRefHook"; // import ReactForwardRef from "./components/ReactForwardRef"; // import UseEffectHook fr...
var walls = { colors: ["brick", "white"], windows: 2, howManyWindows: function() { return "This Room has " + this.windows + " windows." } } var coffeeCup = { type: "Travel Mug", colors: ["black", "stainless steel"], isEmpty: false, contents: "Black Coffee", identify: function...
export function generateNumber(minValue, maxValue, amountOfValues) { if(amountOfValues) { let results = []; for( let i = 0; i<amountOfValues; i++ ) { results.push(generateRandomNumber(minValue, maxValue)); } return results; } else { return generateRandomNumber...
const express = require('express') const app = express() app.get('/a', (req, res) => { res.redirect('/b') }) app.get('/b', (req, res) => { res.redirect('/c') }) app.get('/c', (req, res) => { res.redirect('/a') }) if (require.main === module) { const port = process.env.PORT || 3000 app.listen(port, () => { co...
import { createElement, PureComponent } from 'react'; import { connect } from 'react-redux'; import { func } from 'prop-types'; import { map, list } from 'react-immutable-proptypes'; import { GameBoard } from 'Game/components/GameBoard'; import { clickBoard, initializeBoard, getHighlighted } from 'Ducks/GameDuck'; c...
import { GET_MOVIES, GET_SERIES, // GET_MOVIE_DETAILS, // GET_SERIES_DETAILS, } from '../actions/index'; const initialState = { movies: [], series: [], moviesLength: 0, seriesLength: 0, // movieDetails: {}, // seriesDetails: {}, }; const rootReducer = (state = initialState, action) => { switch (action.type...
const prepareGreenTea = () => 'greenTea'; const prepareBlackTea = () => 'blackTea'; const getTea = (prepareTea, numOfCups) => { const teaCups = []; for(let cups = 1; cups <= numOfCups; cups += 1) { const teaCup = prepareTea(); teaCups.push(teaCup); } return teaCups; }; const tea4GreenTeamFCC = g...
function render(data){ if(data !== undefined && data != null && data.length > 0){ //&& covid !== undefined && covid != null && covid.length > 0){ var width = 500; var height = 650; var margin = 100; var labelXX = width - data.length/3 - margin/3; var labelXY...
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Transaction.module.css'; const TransactionHistory = ({items}) => { return ( <table className={styles.table}> <thead> <tr> <th>Type</th> <th>Amount</th> ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* generateView.js :+: :+: :+: ...
var app = angular.module('bestfacts', []); app.config(["$httpProvider", function(provider) { "use strict"; provider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content'); }]);
var View = (function () { //Jquery center functtion $.fn.center = function() { this.css("position","absolute").css("z-index","5000") .css("top","50%").css("left","50%") .css("margin",(-(this.height()/2))+"px 0 0 "+(-(this.width()/2))+"px"); return this; }; //Page ojects variables var divTable; var divF...
import React from 'react' import {Button, StyleSheet, TextInput, Alert, View, Text} from 'react-native'; const styles = StyleSheet.create({ container: { width : '100%', height: '100%', } }) export default class HomePage extends React.Component { constructor(props) { super(props) this.s...
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faPencilAlt } from "@fortawesome/free-solid-svg-icons"; const EditTodoBtn = ({ className, setIsBeingEdited }) => { const defaultStyle = "bg-purple-700 hover:bg-purple-600 button "; return ( <div className={cla...
export const rect = context2d => (x, y, width, height) => { context2d.fillRect(x, y, width, height) } export const circle = context2d => (x, y, radius) => { context2d.beginPath(); context2d.arc(x, y, radius, 0, 2 * Math.PI) context2d.fill() } export const dot = context2d => (x, y) => { context2d.beginPath()...
var NotificationController = function () {}; NotificationController.prototype = { initialize: function () { /* ALERTA SIMPLES */ navigator.notification.alert( 'Eu sou uma mensagem! essa mensagem é diferente do simples alert()', // mensagem null, // callback 'Titulo aqui', // titulo 'OK' // botoes ...
'use strict'; module.exports = function( ) { this._modeldata; this.setModel = function( theModel ) { var self = this; self._modeldata = theModel._modeldata } // constructing EB beam element stiffness matrix this.calcElmStiffMatr = function( elemID ) { var ...
import axios from 'axios'; const createWorkout = () => { return axios.post("/workout"); } export default createWorkout;
const mongoose = require('mongoose') //mongoose.set('useFindAndModify', false) const mongoUrl = 'mongodb://localhost:27017/volunteer' module.exports = app =>{ mongoose.connect(mongoUrl,{useFindAndModify:false, useNewUrlParser:true, useUnifiedTopology:true},()=>{ console.log('mongdb connect') }) }
import React, { useContext } from 'react'; import StoreContext from '../../../context/StoreContext'; import { ButtonStyle2Large } from '../../reusableStyles/buttons/Button'; import LineItem from './lineItem/LineItem'; const ShopifyCart = () => { const { store: { checkout }, } = useContext(StoreContext); con...
import React from 'react' function EmptyGameCard() { return ( <> <div className="game-box"> <div className="row"> <div className="col-sm-4 center-flex"><h5></h5></div> <div className="col-sm-4 center-flex"><h6></h6></div> <div className="col-sm-4 center-flex"><h6></h6...
'use strict'; const Code = require('@hapi/code'); const Lab = require('@hapi/lab'); const Path = require('path'); const Utils = require('../lib/index.js'); // Fixtures // Set-up lab const lab = exports.lab = Lab.script(); const describe = lab.describe; const it = lab.it; const expect = Code.expect; describe('File'...
import React, { useState } from "react"; import { func } from "prop-types"; import { Grid, Input, Button } from "semantic-ui-react"; import { toast, ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import axios from "../axios"; const propTypes = { onSubmit: func.isRequired, }...
/** * @author Shreya Jain */ // const Constants = require('../shared/constants'); // const Constants = require('./constants'); const Player = require('./player'); const Location = require('./location'); class RailRoad {//extends Ownable{ //onstructor(nom,price,color,owner,rents,pos constructor(name,position) { ...
import NewsList from './news-list.js'; export default NewsList;
"use strict"; const Joi = require("@hapi/joi"); const mysqlPool = require("../../../database/mysql-pool"); async function validate(payload) { const schema = Joi.object({ companyId: Joi.string() .guid({ version: ["uuidv4"] }) .required() }); Joi.a...
function curry(fn) { let g = (...allArgs) => allArgs.length >= fn.length ? fn(...allArgs) : (...args) => g(...allArgs, ...args); return g; } let foo = curry((a, b, c, d) => { console.log(a, b, c, d); }) foo(1)(2)(3)(4) function add(a) { return function (b) { return function (c) { ...
(function(){ 'use strict'; angular.module('app') .controller('SubjectModalController', subjectModalController); subjectModalController.$inject = ['subjectService', '$uibModalInstance', 'currentSubject']; function subjectModalController(subjectService, $uibModalInstance, currentSubject...
// React import React, {Component} from 'react'; // CSS import './App.css'; // utlities import calculateStars from './calculateStars'; // Custom Components import DisplayStarRating from './DisplayStarRating'; import Reviews from './Reviews'; const RestaurantFullPage = props => { return ( <div> <h1> {props....
// pages/recordDetail/recordDetail.js let app = getApp(); let baseUrl = app.globalData.baseUrl; const utils = require('../../utils/util.js') const regeneratorRuntime = require('../../lib/runtime'); var page = 1; Page({ /** * 页面的初始数据 */ data: { showAlert: false, list: [{ id: '0', title:...
class UserController{ constructor(userView, requester,baseUrl, appKey){ this._userView = userView; this._requester = requester; this.appKey = appKey; this._baseServiceUrl = baseUrl +"/user/" + appKey + "/"; // todo } showLoginPage(isLoggedIn){ this._userView.showLogi...
module.exports = { setupFilesAfterEnv: ['<rootDir>/.jest/toMatchString.ts'], moduleNameMapper: { '^.+\\.(css)$': '<rootDir>/.jest/mocks/css.ts' }, collectCoverage: true };
export function newPushArray(addCallback) { return new PushArray(addCallback); } export class PushArray { constructor(addCallback) { this._addCallback = addCallback; } } export function map(f, pha) { return newPushArray(v=>cpha._addCallback(f(v))); } export function add(pha, v) { pha._addCallback(v); }
(function() { // IIFE // Loop through items in local storage for (var i = 0; i < localStorage.length; i++) { var key = localStorage.key(i); if (key.substring(0, 6) == 'sticky') { // Test to see if begins with sticky var value = localStorage.getItem(key); addSticky(value...
function fn(min, max){ var r = Math.random()*(max-min) // 8999以内的数 return parseInt(r+min) // 大于1000的数,并且小于9999 } Router.post('/getCode',(req,res)=>{ let {email}=req.body; let RNum=fn(100000, 999999); let RandomNum=RNum.toString(); console.log(RandomNum); mail.sendmail(email,RandomNum) .then((...
// var str = "London is the capital of Great Britain"; // // console.log(str.substring(0, 10)); // // console.log(str.substring(5)); // // console.log(str.substr(2,10)); // // console.log(str.substr(2)); // // console.log(str.slice(1,18)); // // console.log(str.slice(0,-1)); // console.log(String.fromCharCode(1000));...
import React, { useState, useRef } from 'react'; import arrow from '../assets/images/icons/icon-arrow.svg'; import greenArrow from '../assets/images/icons/icon-arrow-green.svg'; const ContactForm = () => { const [validForm, setValidForm] = useState(false); let formEl = useRef(null); function isEmpty() { ...
module.exports = { KEY_DOWN_EVENT: require('./KeyDownEvent'), KEY_UP_EVENT: require('./KeyUpEvent') };
//EXEMPLO 1 - PARA CRIAÇÃO de PROMISE E EXECUÇÃO const p1 = new Promise((resolve, reject) => { setTimeout(() => resolve("Sucesso P1."), 2000); }); p1.then( (res) => { console.log(res); }, (rej) => {} ); new Promise((resolve, reject) => { setTimeout(() => resolve("Sucesso P1."), 2000); }).then( (res) =...
import React, { Component } from 'react' import { connect } from 'react-redux' import { handleInitialData } from '../actions/shared' import Dashboard from './Dashboard' import LoadingBar from 'react-redux-loading' import NewTweet from './NewTweet' import TweetPage from './TweetPage' import { BrowserRouter as Ro...
const fileIO = require('bozoid-file-grabber'); const parser = require('freestyle-parser'); exports.eventGroup = 'onMessage'; exports.description = "Remove users from the command blacklist"; exports.masterOnly = true; exports.command = 'unblacklist'; exports.parameters = [ { input: true, description: '@mention' }...
import React, { useState, useEffect } from "react"; //Styles import "./style.scss"; const Services = ({services, onChange, value}) => { return ( <div className="services-container"> <div className="title"> <h3>اختر الخدمات</h3> </div> <div className="services"> {services...
import ButtonIcon from '@components/ButtonIcon'; import HeaderCardSearch from '@components/HeaderCardSearch'; import LogoHeader from '@components/LogoHeader'; import HomeScreen from '@features/main/HomeScreen'; import { createStackNavigator } from '@react-navigation/stack'; import images from '@res/icons'; import * as ...
import "./styles.css"; let issueEventTicket = (ticketId, ticketPerPerson, fullName, email) => { return new Promise((resolve, reject) => { setTimeout(() => { let result = { name: fullName, email, ticketId, now: Date.now() }; // console.log("res inside: ", result); resolve(result); }, 6000); ...
/** @override CQ.form.rte.plugins.ImagePlugin by EPAm */ CQ.Ext.override(CUI.rte.plugins.ImagePlugin, { handleContextMenu: function(menuBuilder, selDef, context) { var subItems; var ui = CQ.form.rte.ui; if (this.isFeatureEnabled("image")) { if (this.editorKernel.queryState("image")) { ...
const express = require("express"); const models = require("../models"); const router = express.Router(); const stripe = require("stripe")(process.env.STRIPE_PUBLIC_KEY); require("dotenv").config(); router.post("/", async (req, res) => { try { const { id, amount, customer } = req.body; const payment = await...
'use strict'; var controllers = angular.module('wow.controller.tabs', []); controllers.controller('TabsController', ['$scope', function($scope) { $scope.navType = 'pills'; }]);
var searchData= [ ['readme_2ejava',['Readme.java',['../_readme_8java.html',1,'']]], ['resizebaseactivity_2ejava',['ResizeBaseActivity.java',['../_resize_base_activity_8java.html',1,'']]] ];
// input 엘리먼트가 보관하는 값은 자료형이 문자열입니다. var a = "10"; var b = "20"; console.log(a+b); console.log(a-b); console.log(a*b); console.log(a/b); console.log("----------"); console.log("a+b="+a+b); console.log("a-b="+a-b); console.log("a*b="+a*b); console.log("a/b="+a/b); console.log("----------"); a = parseInt(a, 10); // 문자열을...
import React, { Component, PropTypes } from 'react'; import Lozenge from './Lozenge'; export default class RunMessageCell extends Component { propTypes = { run: PropTypes.object, t: PropTypes.func, }; render() { const run = this.props.run; const t = this.props.t; le...
var searchData= [ ['cv',['cv',['../namespacecv.html',1,'']]] ];
import { useState, useEffect, useContext } from 'react'; import './App.css'; // --------- REDUXTOOLKIT COMPONENTS ------------- // import Profile from './components/Profile'; // import Login from './components/Login'; // import ChangeColor from './components/ChangeColor'; // import List from './components/List'; // i...
var Phaser = Phaser || {}; var Tacit = Tacit || {}; Tacit.TreeManager = function(gameState) { "use strict"; Object.call(this); this.gameState = gameState; var position = { x: 435 + 1043/2, y: 1041/2 + 20 }; this.curTree = new Tacit.Tree(this.gameState, position, 'tree', 'tree'); this.lastTree = ...
function PrintStatement() { this.statement = []; this.print = 'date || credit || debit || balance\n'; } PrintStatement.prototype.printProcess = function (transactions) { this._order(transactions); this._formatStatement(); return this.print; }; PrintStatement.prototype._order = function (transactions) { tr...