text
stringlengths
7
3.69M
/* jshint node: true, -W030 */ /* globals Phoenix, Window, Modal, Screen, _ */ 'use strict'; var keys = []; var cmd = ['cmd']; var cmdAlt = ['cmd', 'alt']; var grids = { '1 Up': {rows: 1, cols: 1}, '2 Up': {rows: 1, cols: 2}, '3 Up': {rows: 1, cols: 3}, '4 Up': {rows: 2, cols: 2}, '6 Up': {rows: 2, cols: 3}...
"use strict"; var models = require('../models'); var shortid = require('shortid'); var fs = require('fs'); var path = require('path'); var resource_dir = path.resolve(__dirname + '/../resource/'); exports.addClass = function(req, res) { if (req.body.className.split(' ').join('').length === 0) return res.redirect('/d...
import React from 'react'; const getName = name => name .split('-') .map(n => n.substr(0, 1).toUpperCase() + n.substr(1)) .join(''); export default ({ baseUrl, components }) => { const Items = components.map(item => { const name = getName(item); return <li key={name} className="sg-nav__component-item"> ...
import React from 'react' import '../styles/main.scss' export default class TeamName extends React.Component { render () { return ( <h1 className="title">{this.props.name}</h1> ) } }
import React, {useEffect, useRef, useContext} from 'react'; import classes from './Cockpit.css'; import AuthContext from '../../context/auth-context'; //props.showPersons is this.state.showPersons //props.persons is this.state.persons const cockpit = (props) => { const toggleButtonRef = useRef(null); const aut...
require('@code-fellows/supergoose'); require('../jest.config'); const NotesCRUD = require('../libs/model/note-collection'); beforeEach(NotesCRUD.clear); describe('Note collection', () => { it('can create a new note', async () => { const note = { category: 'test', payload: 'test message' }; const createdNo...
const nodemailer = require('nodemailer'); const transporter = nodemailer.createTransport({ host: "smtp.gmail.com", port: 465, secure: true, auth: { user: "ezequielromerobertani@gmail.com", pass: "ktgchrwctkwxcgor" } }); // verify connection configuration transporter.verify().then(...
(function(_) { // 2 param es el arreglo de las dependencias angular.module('kingGrafic.controllers', []) //sin ; al final para tener chainmethods .controller('ProductsController', ['$scope', 'kinggraficService', function ($scope, kinggraficService){ kinggraficService.all().then(function (data){ $scope.p...
import Pair from "crocks/Pair"; import State from "crocks/State"; import type from "crocks/core/type"; import isFunction from "crocks/predicates/isFunction"; import { matcherHint } from "jest-matcher-utils"; import { isObjValueSameType, slice, popLastSlide } from "./helpers"; const sampleArray = [1, 2, 3, 4, 5, 6, 7, ...
Write a function that returns the total surface area and volume of a box as an array: [area, volume] function getSize(width, height, depth) //surface area (SA)=2lw+2lh+2hw //volume = w * L * h const getSize = (width, height, depth) => { let sArea, volume; let ansArr = []; sArea = 2*width*depth + 2*depth*hei...
///TODO:REVIEW /** * @param {number} N * @return {number} */ var countArrangement = function(N) { var visited = []; for(var i = 0; i<=N; i++) { visited[i] = false; } var count = {val: 0} calculate(N, 1, visited, count); return count.val; }; function calculate(N, pos, visited, count) { if(pos>N) { ...
'use strict'; const configFetchHandler = require('handler/config/userhandler'); //const all = [].concat(configFetchHandler); const all = [].concat(require('handler/config/userhandler'),require('handler/config/authhandler')); module.exports = all;
$(document).on('ready', function() { var userId = null; getUserInfo(); var timer = setInterval(getUserInfo, 2000); // 签名 $('.canvas').jqSignature(); // 保存签名 $('.submit').on('click', function () { console.log('提交') var dataUrl = $('.canvas').jqSignature('getDataURL'); ...
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Body = Matter.Body; const Render = Matter.Render; var ground1, ground2; var stick1, stick2, stick3, stick4, stick5, stick6; var ball1, ball2; function preload(){ } function setup(){ createCanvas(1270, 750); engine = En...
class MyElement extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); const changeNameButton = document.createElement('button'); changeNameButton.textContent = 'changeName()'; changeNameButton.addEventListener('click', () => { this.changeName(); }); thi...
module.exports = { port : process.env.PORT || 8080, web : '/public' }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.App = App; exports.Page = Page; function App(opts) { var err = { err: 'xxx', message: '错误消息' }; opts.onError(err); opts.onLaunch(); // opts.data; opts.onShow(); } function Page(opts) { opts.onLoad({}); // opts...
import React, { useEffect } from "react"; import { Row, Col, Card, CardBody, CardHeader, CardTitle, CardText, Container, Jumbotron } from "reactstrap"; import { connect } from "react-redux"; import { Redirect } from "react-router-dom"; import { fetch_history } from "../../store/actions/cartAction"; im...
import React, { Component } from 'react'; import {getParse, parseString} from './parser' import Formula from './Formula' import ReactJson from 'react-json-view' import Tree from './Tree' import Message from './Message' import {getRandomArray} from './helpers' // import eqs from './data/all_equations.json' const Finish...
var nodemailer = require('nodemailer'); var credentials = require('../credentials'); module.exports = (function() { let mailTransport = nodemailer.createTransport({ service: '163', port: '465', secureConnection: true, auth: { user: credentials.mail.user, pass...
/** * @author Hank * * */ const express = require('express'); const app = express(); const Stream = require('stream'); app.use(express.static('./dist')); app.use(async (req, res) => { // 或者从 CDN 上下载到 server 端 // const serverPath = await downloadServerBundle('http://cdn.com/bar/umi.server.js'); const render = ...
var controllers = require('../controllers'), api = require('../controllers/api'); module.exports = function(app) { app.get('/', controllers.index); app.get('/login', controllers.login); // API app.get('/api/home', api.home); app.get('/api/reward', api.reward); app.get('/api/behavior', api.behavior); app.get('/...
function isAlpha(word) { return ( word .toLowerCase() .match(/\w/g) .map((x) => x.charCodeAt(word) - 96) .reduce((a, b) => a + b) % 2 === 0 ); } const result = isAlpha('True'); console.log(result); // function isAlpha(word) { // return word.match(/[a-z]/g).reduce((a, b) =>...
import React, {useCallback, useContext} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {deleteRequestFromList} from "../../api/api"; import style from './RequestItem.module.css'; import DeleteIcon from "../DeleteIcon/DeleteIcon"; import {ContextApp} from "../../reducers/...
import { LightningElement } from 'lwc'; export default class ComponentLifecycleParent extends LightningElement { constructor() { super(); // eslint-disable-next-line no-console console.log('Parent - Constructor'); } connectedCallback() { // eslint-disable-next-line no-conso...
import React, { Component } from 'react'; import './UnanswerTableView.css'; import { Dropdown, Icon, Label, Table, Checkbox } from 'semantic-ui-react' // import SortableTree, { changeNodeAtPath, addNodeUnderParent, removeNodeAtPath } from 'react-sortable-tree'; // import { searchedListData, NERTagging } from '../../ML...
var thumbs = document.getElementsByClassName("imageThumbs"); var images = []; var modal = document.getElementById("modal"); var modalOverlay = document.getElementById("modalOverlay"); var j, i; function cacheImages() { for (j = 0; j < cacheImages.arguments.length; j++) { images[j] = new Image; ...
import movieService from "../services/movie.js"; export default class MoviePage { constructor() { this.template(); } template() { document.getElementById('content').innerHTML += /*html*/ ` <section id="movies" class="page"> <header class="topbar"> <h2>Movies</h2> <a cla...
import { AppColors, MaterialColors } from './Colors' import * as Themes from './themes' import { FontWeights, FontSizes, BorderWidths, BorderRadius, } from './Typography' export { AppColors, MaterialColors, FontWeights, FontSizes, BorderWidths, BorderRadius, Themes, }
const argon2 = require('argon2') const faker = require('faker') const { range } = require('lodash') const { USERS_MAX } = require('../length') faker.locale = 'pt_BR' const firstEmail = 'user@test.com' const basePassword = '12345678' const modelUser = async email => { const firstName = faker.name.firstName() cons...
import ListCommerces from './ListRestaurants'; import CommerceSettings from './CreateCommerce'; export { ListCommerces, CommerceSettings };
define(['apps/system2/docquery/docquery', 'apps/system2/docquery/docquery.service'], function (app) { app.module.controller("docquery.controller.search", function ($scope,$rootScope, $uibModal, $filter, docqueryService, stdApiUrl, stdApiVersion) { $scope.downloadUrl = stdApiUrl + stdApiVersion; ...
import React, { useEffect, useState } from 'react'; import Container from 'react-bootstrap/Container'; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import InputGroup from 'react-bootstrap/InputGroup'; import FormControl from 'react-bootstrap/FormControl'; import Accordion from 'react-b...
import './App.css'; import NetworkComponent from "./Components/NetworkComponent"; function App() { return ( <div className="App"> <NetworkComponent/> </div> ); } export default App;
/** * Created by Des on 15/11/29. */ blog.run( ['$rootScope', function($rootScope) { }] );
/** * 备注: * slug 对应配置中心名称 */ module.exports = { 1001: { slug: 'hotsites', name: '热门网站', tpl: 'card/hotsite', method: 'getSiteList' }, 1002: { slug: 'site_navi', name: '网址导航', tpl: 'card/navigation', method: 'getData' }, 1004: { slug: 'video', name: '热门视频', tpl: ...
const CheckoutSystem = require('../src/checkout-system'); describe('example scenarios', () => { const checkoutSystem = new CheckoutSystem(); it('calculates total for default customer', async () => { const checkout = await checkoutSystem.createCheckout('default'); await checkout.add('classic'); await ...
// import { get, isUndefined, once, remove } from 'lodash' // import Promise from 'bluebird' // import memoize from 'utils/memoize' // import uasParser from 'ua-parser-js' // import loggerFactory from 'utils/logger' // import { // actions as gamestateActions, // selectors as gamestateSelectors, // isActive, // } ...
lolDmgApp.controller('DamageSimulationController', function($scope, RiotApi) { //$scope.currentchampion = {}; RiotApi.getChampionList().then( function(response) { $scope.champions = response.data.data; // console.log($scope.champions); }); RiotApi.getItemList().then( function(response) { $scope.ite...
(function() { 'use strict'; var userServices = function($q, $http, $cookies, $window) { var deferred = $q.defer(); // Function to login a user this.login = function(user, remember) { return $http.post('/api/login', user) .success(function(res) { ...
// designer_details.css const d = document.querySelector('.d'); const info = document.querySelector('.info'); const pic_all = document.querySelector('.pic_all'); const profile_content = document.querySelector('.profile_content'); d.addEventListener("click",function(){ pic_all.style.display = 'flex'; profile_c...
class Slingshot{ constructor(bodyA , bodyB){ var options ={ bodyA:bodyA , bodyB:bodyB , stiffness:.04 , length:10} this.slingshot = Constraint.create(options) World.add(world,this.slingshot) } display(){ strokeWeight(4) line(this.s...
// Global Variables var errorColor = "#777777"; var u_minL = 2; var u_maxL = 32; var e_minL = 6; var e_maxL = 64; var p_minL = 8; var p_maxL = 64; var fn_minL = 0; var fn_maxL = 64; /* ============================== General Field Validations ============================== */ // Check if field is empty functio...
import React from 'react'; export default class ResultComponent extends React.Component{ // TODO: change style constructor(props){ super(props) this.state = { data: this.props.data } this.componentWillReceiveProps = this.componentWillReceiveProps.bind(this) } componentWillReceiveProps(newProps) { ...
wms.controller('ShipmentEditCtrl', function ($scope, $filter, $http, $location, $q, $stateParams, UserService, Auth) { var baseUrl = '/shipment_maintenance' var shipment_header_id = $stateParams.header_id var shipment_detail_id = $stateParams.detail_id var app_parameters = Auth.getAppParameters() var c...
/** * Created by patrick conroy on 2/7/18. */ import Link from 'next/link' import moment from 'moment' const formatArticleDate=(articleDate) =>{ return moment(articleDate).format('MMMM Do YYYY') } const ArticleListItem= ({article, id}) => ( <li> <a onClick={()=>{window.location.href=window.location.o...
import React, { useContext } from "react"; import styled from "styled-components"; import "@styles/fontello/css/fontello.css"; import { SpeedSlider } from "@home/SpeedSlider"; import { WrapperButton, SvgIcon } from "@common/Generic"; import { ThemeContext } from "@common/Layout"; import { SlideFromLeft } from "@styles/...
const GameObject = require('./GameObject') class Engine{ let canvas const obj = [] let update constructor(id) { getCanvas(id) isRunning = true } start() { obj.forEach(element => { element.OnInit() })array this.update = setInterval(obj.for...
import React, { useState, useEffect, useRef } from 'react'; import { Button, Row, Col, Form, Input, notification, Select } from "antd"; import { updateComesApi } from "../../Api/Sistema/comestibles"; import { UserOutlined, NumberOutlined } from '@ant-design/icons'; export default function EditComesForm(props) { c...
import { ADD_TODO, TOGGLE_TODO_STATUS, UPDATE_TODO, DELETE_TODO, TODO_ITEMS_HYDRATE } from 'Actions/actionTypes'; const deleteTodo = (state, id) => { const index = state.findIndex((todo) => { return todo.id === parseInt(id); }); return [ ...state.slice...
/** * Created by OXOYO on 2019/8/29. * * 节点基础方法 */ import utils from '../utils' export default { setState (name, value, item) { // 设置锚点状态 utils.anchor.setState(name, value, item) // 设置shapeControl状态 utils.shapeControl.setState(name, value, item) }, // 绘制后附加锚点 afterDraw (cfg, group) { //...
const Pokemon = require('../Pokemon.js') const Attack = require('../Attack.js') const Weakness = require('../Weakness.js') const Resistance = require('../Resistance.js') class Pikachu extends Pokemon { constructor() { super( 'Pikachu', 60, 60, 'Lightning', [ new Attack('E...
import { BackgroundImage, Paper, Player, Bot, Scissor, Rock, } from '../../../../../assets'; import {PLAYER_SELECT, PLAY, RESET, RESULT} from '../actions/gameAction'; const initialState = { arrayGame: [ { id: 'scissor', image: Scissor, status: true, }, { id: 'rock', ...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisa...
import knex from '../config/db'; class Colaborador { constructor(nome, bi, photoBi, idCoordenador, photoAvatar, idCurso) { this.nome = nome; this.bi = bi; this.idCurso = idCurso; this.idCoordenador = idCoordenador; this.photoAvatar = photoAvatar; this.photoBi = photoBi; this.nivelSession =...
var Member = require('../models/member') var _ = require('underscore') exports.fetch = function (req, res) { Member.fetch(function (err, members) { if (err) { res.send({ success: false, reason: err }) } else { res.send({ ...
import jwt from 'jsonwebtoken' import { secret } from '../config' export default async (ctx, next) => { const XToken = ctx.get('X-Token'); // console.log(XToken) if (XToken === '') { // ctx.throw(401, "no token detected in http header 'X-Token'"); ctx.body = { code: 40001, message: '请求头里面没有对应的...
$('.number').keypress(function (event) { if ((event.which != 46 || $(this).val().indexOf('.') != -1) && (event.which < 48 || event.which > 57)) { event.preventDefault(); } }); $(document).on("input", '.number', function (event) { $(this).val(fixDecimalIn($(this).val())); //alert("Sim"...
console.log(soma(3,4)) // console.log(sub(3,4)) Aqui gera erro pois não está declarado //Function Declaration (funções declaradas desta forma são carregadas primeiro pelo interpretador) function soma(x, y){ return x + y } //Function expression const sub = function(x, y){ return x - y } //Named function expre...
function isMobile() { return window.innerHeight > window.innerWidth; } const fetchData = async (url) => { const response = await fetch(url); return response.json(); }; export { isMobile, fetchData };
//handles the creating, and deletion of assets auraCreate.assetManagement = function($scope, $http){ //adds an asset to a obect $scope.addAssets = function(){ $http({ method: 'PUT', url: $scope.queryObjects, data: { name: $scope.curObj.name, desc: $scope.curObj.description...
/** * Created by kdehbi on 21/04/2016. */ 'use strict'; eventsApp.controller('CompileSampleController', function CompileSampleController($scope, $compile, $parse) { //function will be called by button on our page //takes in markup $scope.appendDivToElement = function(markup) { //calling $compil...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {NavigationContainer} from '@react-navigation/native'; import {createStackNavigator} from '@react-navigation/stack'; import {createDrawerNavigator} from '@react-navigation/drawer'; import Home from '../screen/Home'; import Load ...
import React, { Component } from 'react'; import { Jumbotron, Row, Col, Button } from 'reactstrap'; import CardComponent from '../../components/Card/card'; import PropTypes from 'prop-types'; import styles from './jumbotron.scss'; import TalkToWeddingPlanner from '../../components/TalkToWeddingPlanner/t...
module.exports = { createOrder: (req,res) => { const db = req.app.get('db'); const {shipping_address, user_id} = req.body; db.order_create([shipping_address, user_id]).then(order => { res.status(200).json(order) }) }, createLine: (req,res) => { const db = ...
import React, {Component} from 'react' import {connect} from 'react-redux' import {checkout} from '../store/currentCart' import {StripeProvider} from 'react-stripe-elements' import {Elements} from 'react-stripe-elements' import Stripe from './Stripe' class Checkout extends Component { constructor() { super() ...
import React from 'react'; import PropTypes from 'prop-types'; import {Link} from 'react-router-dom'; import {MDBIcon} from 'mdbreact'; import classes from './index.module.css'; const Title = (props) => ( <div className={classes.wrapper}> <Link to={{ pathname:`/question/${props.questionId}/answer/${props....
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */ import React from 'react'; import {SafeAreaView} from 'react-native'; import Container from './src/components/container'; import {Provider} from 'react-redux'; import configureStore from './src/store'; const App = ()...
var leftArray=0 var rightArray=0 var numParts=0; var secondWord = ''; function functionInit() { return new Promise(function(resolve, reject) { getConfig('6').then(function() { return getConfigByElement("act6","act",1,null); }).then(function(c){ return functionCallback(c); }).then(function() { removeLoa...
import React, {Component} from 'react' import Panel from './Panel' class Staff extends Component { render(){ return( <div className="staffView">{this.props.position + ' ' + this.props.name + ' ' + this.props.family}</div> ) } } export default Staff;
// eslint-disable-next-line import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import Divider from 'material-ui/Divider'; import DatePicker from 'material-ui/DatePicker'; class DeniedForm extends Component { // constructor(props) { // super(props); // this.state = { //...
/** * 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...
export { default } from './component' export { default as Label } from './label' export { default as Supporting } from './supporting'
angular.module('manager') .controller('NotesController', [ '$scope', '$filter', '$http', '$modal', 'settingsService', 'Str', function ($scope, $filter, $http, $modal, $db, str) { var api = $db.getApi("Notes"); $scope.current = { user: 0, ...
// @flow import * as React from 'react'; import classNames from 'classnames'; import _ from 'lodash'; import { getUnhandledProps, prefix, defaultProps } from '../utils'; type Props = { classPrefix?: string, value?: string, className?: string, children?: React.Node, style?: Object, onChange?: (value: strin...
var chart = Highcharts.chart('container', { chart: { type: 'line' }, title: { text: '三种算法归一化折损累计增益对比' }, subtitle: { text: 'gowalla' }, xAxis: { categories: [1, 101, 201, 301, 401, 501, 601, 701, 801, 901, 1001] }, yAxis: { title: { text: 'ndcg rate' } }, plotOptions: { line: { dataLabels...
import React, { PropTypes, Component } from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import Subheader from 'material-ui/Subheader'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; //config import config from '../../configurati...
(function(){ return function(request,script){ return [ { "coord":[122.841114,45.619026],"value" : 87,"name":"白城市"}, {"coord":[124.823608,45.118243],"value":80,"name":"松原市"}, {"coord":[126.55302,43.843577],"value":43,"name":"吉林市"}, {"coord":[125...
import Vue from 'vue'; import 'document-register-element/build/document-register-element'; // include vue-custom-element plugin to Vue import VueCustomElement from 'vue-custom-element' Vue.use(VueCustomElement) // include vue-touch plugin to Vue import VueTouch from 'vue-touch' Vue.use(VueTouch, {name: 'v-touch'}) // ...
function runTest() { FBTest.openNewTab(basePath + "firebug/4153/issue4153.html", function (win) { detachFirebug(function (win) { FBTest.ok(FBTest.isDetached(), "Firebug must be detached now."); deactiveFirebug(function () { FBTest.ok(isDeactive...
import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) ...
$(document).ready(function(){ var default_value = 'find replacer...'; $('.default-value').each(function() { $(this).focus(function() { if(this.value == default_value) { this.value = ''; } }); $(this).blur(function() { if(this.value == '') { this.value = defaul...
#!/usr/bin/env node 'use strict'; // check update first require('update-notifier')({ pkg: require('../package.json') }).notify({ defer: false }) var chalk = require('chalk') var commander = require('commander') process.on('exit', function() { if (process.argv.length === 2) { console.log(chalk.cyan(' ...
import React from 'react'; import { connect } from 'react-redux'; import { Form, Row, Col, Container } from 'react-bootstrap'; // Helper Components import StyledButton from '../common/Button/StyledButton'; import BaseDropDown from '../CreatePizza/BaseDropDown'; // Actions import { setBase, clearPizza, setQuantity } f...
(function(){ "use strict"; function Tivo(imagePath){ //call to super createjs.BitmapAnimation.call(this); //var var _this = this; _this.life = 100; _this.leftPress = false; _this.rightPress = false; _this.walkingLeft = false; _this.walkingRight = false; //set sprite data _this.spriteData = n...
// Task 1 const name = 'Gil'; const age = 28; const isCool = true; const friends = ['liat', 'dana', 'efrat', 'oded', 'amos', 'nimrod']; console.log(`Name: ${name}\nAge: ${age}\nIs cool: ${isCool}\nFriends: ${friends}`); // Task 2 const person = { name, age, isCool, friends } for (const value of Obje...
// Node.js fiddle var http = require('http'); var fs = require('fs'); http.createServer((rq,wr)=>{ if(rq.url=='/client.js'){ wr.writeHead(200,{"Content-Type":"text/javascript"}); fs.readFile('client.js', (e,data)=>{ if(!e)wr.write(data) ...
import React, { Component } from "react"; import { connect } from "react-redux"; import Grid from "@material-ui/core/Grid"; import Table from "@material-ui/core/Table"; import TableCell from "@material-ui/core/TableCell"; import TableRow from "@material-ui/core/TableRow"; import TableBody from "@material-ui/core/TableB...
import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/layout.js'; import { Link } from "gatsby"; import BlockContent from '@sanity/block-content-to-react'; import Image from 'gatsby-image' export const query = graphql` query($slug: String) { sanityProject(slug: { current:...
var baseUrl = "http://127.0.0.1:8080"; var d = new DimensionsHelper(); function log(i){ console.log(i); } function male_vs_female_corr(){ var name = "Personality Correlation"; var sH = new ScatterPlotHelper(); var g = new Graph(d.height, d.width, name, {x:"Male", y:"Female"}, {x:[-1, 17], y:[-1, 17]}); g.value...
// これは検証用です // // export文を使ってhello関数を定義する。 // export function hello() { // alert('Bootstrap'); // }
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'; export const getSeason = createAsyncThunk( 'getSeason', async () => { const res = await fetch('https://api.jikan.moe/v4/seasons/2021/fall') if(res.ok) { const seasonList = await res.json() return { seasonL...
$(function () { $('.glyphicon-remove').on('click', function (event) { var id = $(event.currentTarget).attr('data-id'); $('#deletingModal').attr('data-id', id); $('#deletingModal').modal(); }); $('#yes').on('click', function () { var id = $('#deletingModal').attr('data-id'),...
const aws = require('aws-sdk'); exports.send = function(sessionParams){ var emailParams = { Destination:{ ToAddresses:[] }, Message:{ Subject:{ Charset:'UTF-8', Data:'' }, Body:{ Html:{ ...
const editAbwesenheit = require('./editAbwesenheit') const putAbwesenheit = (req, res) => { const updateAbwesenheit = { from: req.query.from, until: req.query.until, title: req.query.title, description: req.query.description } editAbwesenheit(req, res, updateAbwesenheit) } ...
import { createOptionParser, OPTION_CONFIG_PRESET } from 'dr-js/module/common/module/OptionParser' import { parseOptionMap, createOptionGetter } from 'dr-js/module/node/module/ParseOption' const { SingleString, SingleInteger } = OPTION_CONFIG_PRESET const SingleStringPath = { ...SingleString, isPath: true } const OPT...
import React, {Component} from 'react'; import FacebookLoginButton from 'react-facebook-login/dist/facebook-login-render-props'; import {connect} from "react-redux"; import Facebook from 'react-icons/lib/fa/facebook-square'; import IconButton from '@material-ui/core/IconButton'; import config from "../../../config"; ...
"use strict"; class App { map; constructor(artist) { this.artist = artist; this.upcomingShows = []; this._getClientPostion(); } _getClientPostion() { navigator.geolocation.getCurrentPosition(this._renderMap.bind(this)); artistForm.classList.add("invisible"); document.getElementById("m...
var portaApp = angular.module('portaApp', ['ngRoute']); portaApp.config(function ($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); $routeProvider .when('/booking', { templateUrl: 'wp-content/themes/stlportawash/pages/begin.html', controller: 'mainControll...
const jwtSecret = process.env.JWT_SECRET || 'foofdytdyd'; module.exports = { jwtSecret }