text
stringlengths
7
3.69M
function initialize_phone() { touchable = 0, i = 0, $(".flip-card-inner").css("transform", "rotateY(0deg)"), $("#earringsL").css("opacity", "0"), $("#earringsR").css("opacity", "0"), $(".flip-card").css("z-index", "1"), $(".flip-card").eq(1).css("z-index", "2"), $("#cover").css("z-index", "5"), $("#cup")....
define(['./module'], function(app){ 'use strict'; app.controller('GeneratorController', [ '$scope','$interval','$rootScope','$http', 'config.paths','config.generator','config.http','config.messages','service.profileHistory','profiles', function($scope, $interval, $rootScope, $http, path...
const Order = require("./assignment1Order"); const OrderState = Object.freeze({ WELCOMING: Symbol("welcoming"), OPTION: Symbol("option"), SIZE: Symbol("size"), TOPPINGS: Symbol("toppings"), DRINKS: Symbol("drinks"), PAYMENT: Symbol("payment") }); module.exports = class ShwarmaOrde...
var unirest = require('unirest'); exports.run = function(client, message, args) { unirest.get("http://api.icndb.com/jokes/random?firstName=Chuck&lastName=Norris") .header("Accept", "application/json") .end(function(result) { // For Debug Only //console.log(result.status,...
var map; var boxpolys; var directions; var routeBoxer; var distance; //km var service; var gmarkers = []; var boxes; var infowindow = new google.maps.InfoWindow(); var places; var countryRestrict = { 'country': 'it' }; var countries = { 'fr': { center: { lat: 46.2, lng: 2.2 }, zoom: 6 }, '...
import React, { useEffect, useState } from 'react' import Tabela from "../../components/tabela" import { GetPosts } from '../../common/Service'; const Posts = () => { const [posts , setPosts] = useState(null); // componentDidMount useEffect(() => { getPosts(); }, []); const ...
import React, { Component } from 'react'; import { View, Text, TouchableOpacity, StyleSheet, Modal, TouchableHighlight, } from 'react-native'; import { StackActions, NavigationActions } from 'react-navigation'; import firebase from 'react-native-firebase'; import DatePicker from 'react-native-da...
/*******************************************************************************************************/ /** *************************************** 房源平台--房源跟进记录 *****************************************/ /*******************************************************************************************************/ import {...
import "../Header/header.css" import Freshnesecom from "../Icons/freshnesecom" import Person from "../Icons/person" import Basket from "../Icons/basket" import Four from "../Icons/four" import GreenDown from "../Icons/greenDown" import Search from "../Icons/search" import { Link } from "react-router-dom" function Heade...
var mysql = require('mysql'); module.exports = { /** * データベース接続の初期化 * @return {Connection} MySQL DB connection */ db: function () { var connection = mysql.createConnection({ host : 'chloringoame17.dip.jp', user : 'oden', password : 'Oden-1218', port : 993, database : 'robocup' ...
const continueButton = document.getElementById('overlayContinue'); const overlay = document.getElementById('overlay'); continueButton.addEventListener('click', (e)=>{ console.log(overlay); overlay.style.opacity = 0; setTimeout(()=>{ overlay.style.display = 'none'; }, 500); }); // let svg = d3.select("s...
/** * DomoGeeek v0.1 * https://github.com/ltoinel/domogeeek * * Copyright 2014 DomoGeeek * Released under the Apache License 2.0 (Apache-2.0) * * @desc: Energy module for the Aenon Lab HEM2. * @author: [email protected] */ // Local require var bus = require( '../bus' ); var config = require('../config'); var ...
import "../../Styles/HomePageStyle/ExclusiveBrands.css" import React from 'react'; const ExclusiveBrands = () => { return ( <div className="ExclusiveBrands"> <h5>ExclusiveBrands</h5> <div className="ExclusiveBrandsImg"> <div className="ExclusiveBrandsImg1"> ...
for(var i = 0; i < 24; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); } $axure.eventManager.pageLoad( function (e) { }); gv_vAlignTable['u3'] = 'center';gv_vAlignTable['u21'] = 'center';u12.tabIndex = 0; u12.style.cursor = 'pointer'; $axure.eventManager.click('u12', function(e)...
function TactileController(){ this.texture = GET().texture || "corn"; this.engine = GET().engine || "shade"; this.current_model; this.loaded = {}; this.env = new WebEnv($("#ThreeJS")); this.preview; this.magnitude = parseFloat(GET().m) || 5; this.base_height = parseFloat(GET().bh) || 10; this.width = parseFloa...
function material(id, unitmass){ return {id: id, unitmass: unitmass}; } const materials = { oil: material('oil', 0.97), saltwater: material('salt water', 1.04), freshwater: material('fresh water', 1.0), honey: material('honey', 1.42), quartz: material('quartz', 2.37), shale: mater...
import React from 'react'; import './BodyComponents.css'; function BodyComponent(props) { return ( <div className='bodyComponents'> <img src={props.image} alt='reference'/> <h1>{props.title}</h1> <p>{props.text}</p> </div> ) } export default BodyComponent
var controller = require('../index').getController(); /** * Lits all of the OOO events a user has set * @param {Object} bot * @param {Object} message */ module.exports = function list(bot, message) { bot.startPrivateConversation(message, function(err, convo) { if (err) { return console.tr...
export const validationConstants = { VALIDATION_REQUEST: "VALIDATION_REQUEST" }
$(document).ready(function () { initSeaechCriteriaSkill(); }); function initSeaechCriteriaSkill() { viewModel.jobSeekerList = ko.observableArray(); viewModel.listJobSeeker = ko.observable('0'); viewModel.dataCompetency = ko.observable(createListCompetency()); viewModel.dataSkill = ko.observable();...
import { Swal } from '../../utils' describe('getIcons()', () => { it('getIcons()', () => { Swal.fire({ icon: 'success' }) const icons = Swal.getIcons() expect(icons.length).to.equal(5) expect(icons.filter(icon => icon.className.match('success'))[0].style.display).to.equal('flex') expect(icons.fil...
#!/usr/bin/env node var CLI = require('./cli'); module.exports = new CLI(); module.exports.start();
import React from 'react'; const CallToAction = () => ( <section> <div class="front-splatter"></div> <div class="call2action"> <span class="action-text">Paint Your Rage</span> <span class="today-text">Today</span> <a href="/pricing" class="res-button">Make A Res...
var validator = require('yode-validator'); Ext.define('Gvsu.modules.orgs.model.OrgsPubl', { extend: "Gvsu.modules.orgs.model.OrgsModel" ,regPatterns: { name: ['name', false] ,fullname: ['name', false] ,headers: ['string', false] ,founders: ['string', false] ,inn...
import Lote from '@/models/ModeloLote'; export default { namespaced: true, state: { lote: new Lote('', '', '', '', '', ''), // Modelo lote formLoteValido: false, // Indica si el formulario de lote es valido }, actions: { }, mutations: { // Coloca un nuevo lot ...
import React from 'react' import { shallow } from 'enzyme' import toJson from 'enzyme-to-json' jest.mock('fm-components', () => ({ SearchBar: 'SearchBarMocked', LayoutGrid: 'LayoutGridMocked' })) import SearchView from './SearchView' describe('<SearchView />', () => { describe('@renders', () => { it('i...
import React, { useEffect, useState } from 'react'; import { Table } from 'react-bootstrap'; import ListDetails from './ListDetails'; const List = () => { const [listInfo, setListInfo] = useState([]); useEffect(() =>{ fetch('https://powerful-fjord-39182.herokuapp.com/allUsersBooking') .then(res => res.jso...
import {combineReducers} from "redux"; import query from "./query"; import ui from "./ui"; const rootReducer = combineReducers({query, ui}); export default rootReducer;
// ================================================================================ // // Copyright: M.Nelson - technische Informatik // Die Software darf unter den Bedingungen // der APGL ( Affero Gnu Public Licence ) genutzt werden // // =============================================...
import { Cart } from '../../model/cart' const cart = new Cart() Page({ /** * 页面的初始数据 */ data: { cartItems: [], allChecked: null, isEmpty: false, totalPrice: 0, totalCount: 0, }, /** * 生命周期函数--监听页面加载 */ onLoad: async function (options) { if (cart.isEmpty()) { this.isE...
import React, { useContext, useState } from 'react'; import { PostContext } from './App'; import { Button, Modal } from 'react-bootstrap'; const RenderList = (props) => { const [modalOpen, setModalOpen] = useState(false) const { handleDelete, updateValues, setUpdateValues, handleUpdate } = useContext(PostContext)...
import addUserData from './addUserData'; import hasLoggedIn from './hasLoggedIn'; import userCity from './userCity'; import addCenters from './addCenters'; import {combineReducers} from 'redux'; const allReducers = combineReducers({ addUserData, hasLoggedIn, userCity, addCenters }) export default allR...
/** * Http 请求 */ var HttpClient = (function () { function HttpClient() { this.callbackList = new HashMap(); } var d = __define,c=HttpClient;p=c.prototype; p.send = function (url, data, callback) { var loader = new egret.URLLoader(); this.callbackList.set(loader.hashCode, callba...
import { NEW_CARD, DELETE_CARD, NEW_CATEGORY } from './types.js'; export const deleteCard = (categories, categoryIndex, cardIndex) => dispatch => { let updatedCards = {name: categories[categoryIndex].name, cards:categories[categoryIndex].cards.slice(0, cardIndex).concat(categories[categoryIndex].cards.slice(cardInde...
import React, { Fragment, useEffect, useState } from 'react'; import { Container, Row, Col, Image } from 'react-bootstrap'; import BootstrapTable from 'react-bootstrap-table-next'; import { connect } from 'react-redux'; import noImage from '../../images/image-not-found.png'; import { FontAwesomeIcon } from '@fortawesom...
'use strict'; $(document).ready(function(){ $('#open_nav, #close_nav').on('click', function(){ $('#nav').toggleClass('show'); }); });
import React from 'react'; import axios from 'axios'; import { Button, Container, Typography, TextField } from '@material-ui/core'; import { useForm } from 'react-hook-form'; import { useStyles } from './styles'; import { useHistory } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import { saveAuth...
import React from 'react'; import { TouchableOpacity, ImageBackground, View, Text, StyleSheet, } from 'react-native'; import Ionicons from 'react-native-vector-icons/Ionicons'; const FoodCard = ({item, setModalVisible, setSelectedFood}) => { return ( <TouchableOpacity onPress={() => { setS...
function create_card(id, header, responsible_name, responsible_surname, deadline, priority_name, description, status_name) { let title_color = "text-muted"; if(status_name === "Выполнена") { title_color = "text-success"; } else if(Date.now() > Date.parse(deadline)) { ti...
/* ====== Primitive Type ====== 1. Number 2. String 3. Boolean 4. undefined 5. null 6. Symbol */ // Number let num = '10.66'; // String let name = 'Saidur Rahman'; // Boolean let isAged = true; // undefined let variable; // Initial // null let myVar; console.log(typeof myVar);
 $(document).ready(function () { $("#main-menu-min").click(); var notification = $("#notification").kendoNotification({ position: { pinned: true, top: 50, right: 450 }, autoHideAfter: 2000, stacking: "down", templates: [ ...
import React from 'react'; import { Link } from 'react-router-dom'; const NoAuthor = () => { return ( <div> <h4 className="text-danger mt-5 mb-5">We're sorry, but we could not find the author you are looking for. Would you like to add this author to our database?</h4> <Link to="/ad...
var Light = artifacts.require("./Light.sol"); module.exports = function(deployer) { deployer.deploy(Light); };
import React from "react"; import { View, Text, TextInput, TouchableHighlight, StyleSheet, Alert } from "react-native"; const styles = StyleSheet.create({ bar: { backgroundColor: "#333", flexDirection: "row", paddingHorizontal: 5, paddingVertical: 5 }, btn: { backgroundColor: "#19...
'use strict'; var app = angular.module('confusionApp', []); app.controller('menuController', ['$scope', function ($scope) { var dishes=[ { name:'Uthapizza', image: 'img/uthapizza.png', category: 'mains', label:'Hot', ...
const AsUrl = 'https://c5.gluu.org'; const clientID = '@!82F6.00B8.C20E.272F!0001!DC79.0594!0008!1E13.CB20.2F74.F9BE'; // const responseType = 'id_token token code' const scopes = 'openid profile email' // Utilities // function randomString() { // Create unique identifiers for state and nonce. const validChar...
// 预约功能 const koa = require( 'koa') const bodyParser= require('koa-bodyparser') // 实例化 const app = new koa() const router = require('koa-router')() const DB = require('../../db') app.use(bodyParser()); // 将模块作为koa的中间件引入 // 查询全部信息 router.get("/appointment", async (ctx) => { const data = await DB.find('app...
import React, {Component} from 'react'; import ColorBox from './ColorBox'; class App extends Component { constructor(){ super(); this.boxes = [ { title: "Animal", subtitle: 'strange', information: "It's a very rare sort", backgroundColor: "beige" }, { ...
//https://www.hackerrank.com/challenges/insertionsort2 //sorting strings doesn't work so well... next time remember to .map(Number) function processData(input) { 'use strict'; const size = input.split('\n'); const arr = size.pop().split(' ').map(Number); let e = 0; let prev = 0; for(let i = 1; i...
const ObjectId = require("mongodb").ObjectID; const sendMail = require("./../helper/mail"); const scheduleJob = require("./../helper/scheduler"); const { createLogger, format, transports } = require("winston"); const { combine, prettyPrint, timestamp } = format; const logger = createLogger({ format: combine(timesta...
var count = 0, result = 0; function init() { setInterval(function() { result = count; count = 0; }, 1000); } function request() { count++; } function get() { return result; } exports.init = init; exports.request = request; exports.get = get;
var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/flairevents', {useNewUrlParser: true}); var db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error:')); db.once('open', function(){ console.log('Connected to databse succesfully'); }); var conne...
((win, doc) => { const tableAluno = doc.querySelector('#alu'); const tableCola = doc.querySelector('#cola'); const idAluno = doc.querySelector('#idAluno'); const idColaborador = doc.querySelector('#idColaborador'); tableAluno.addEventListener('click', (e) => { let clickAluno = e.target.classList.contains...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _from = require('babel-runtime/core-js/array/from'); var _from2 = _interopRequireDefault(_from); exports.default = handleEditorPaste; var _prosemirrorView = require('prosemirror-view'); var _ImageUploadPlaceholderPlugin = require('...
define('xstyle/core/Proxy', ['xstyle/core/utils'], function(utils){ var when = utils.when; function Proxy(value){ // just assume everything will be observed, we could change the optimizations later if(value){ this.setSource(value); } } Proxy.prototype = { property: function(key){ var properties = thi...
import express from 'express'; import { fetchJsonByNode, postOption } from '../../../common/common'; import { host } from '../../globalConfig'; const service = 'integration_service'; const URL_LIST = `${host}/${service}/excelModelConfig/listExcelModelByTenantIdModelTypeCode`; const URL_UP = `${host}/${service}/excelM...
import {Api} from './api.js'; export {FavoriteApi}; class FavoriteApi { static get url() { return `${Api.baseUrl}/favourites`; } static async add(routineId, controller) { return await Api.post(`${FavoriteApi.url}/${routineId}/`, true, {}, controller); } static async get(data, con...
import { AppRegistry, Dimensions } from 'react-native'; import App from './App'; XMLHttpRequest = GLOBAL.originalXMLHttpRequest ? GLOBAL.originalXMLHttpRequest : GLOBAL.XMLHttpRequest; AppRegistry.registerComponent('MobioTV', () => App);
import React from "react"; import styles from "./Header.module.css"; import Button from "../Button/Button"; import RedesSocais from "../Helper/RedesSociais"; import { ReactComponent as TesteWeb } from "../../Assets/Teste web.svg"; const Header = () => { return ( <div className="bgWhite"> <header classNam...
const express = require("express"); const morgan = require("morgan"); const Podlet = require("@podium/podlet"); /** * definizione del manifest */ const podlet = new Podlet({ name: "recos", version: "1.0.2", pathname: "/recos", fallback: "/fallback", development: true, }); /** * definizione del css */ po...
import Comment from '../models/Comment.js'; export default { async index(req, res) { const { id } = req.params; const comments = await Comment.findAll({ attributes: ['id', 'text', 'updated_at'], where: { idea_id: id, }, include: { association: 'user', attributes: ['id', 'name'] }, }); return r...
var main = require('./handlers/main'); var newsletter = require('./handlers/newsletter'); var test = require('./handlers/test'); var email = require('./handlers/email'); var cart = require('./handlers/cart'); var vacation = require('./handlers/vacation'); var api = require('./handlers/api'); var extensions = require('....
// Dependencies import React from 'react'; import { Redirect } from 'react-router-dom'; // UserSignOut export default (props) => { // context const { context } = props; // signout context.actions.signOut(); // redirect return ( <Redirect to='/' /> ); };
/** * Created by mimi on 7/5/17. */ var gulp = require('gulp'); var nodemon = require('gulp-nodemon'); gulp.task('default',function () { nodemon({ script: 'reportServer.js', ext:'js', env:{ PORT:5000 }, ignore:['./node_modules/**'] }) .on('restart', funct...
$(function () { $(".btn_reload").click(function () { var url = $(".btn_reload").data("url"); console.log(url); $.dialog({ title: "温馨提示", content: "亲,重新加载权限可能需要耗费很长的时间,你确定加载吗?", ok: function () { $.post(url, function (data) { ...
const http = require('http'); const proveRoutes = require('./routes/prove01-routes'); const server = http.createServer(proveRoutes.hander); server.listen(3000);
/** * Created by cl-macmini-63 on 1/18/17. */ 'use strict'; //create logger var log = require('../../Utils/logger.js'); var logger = log.getLogger(); var mongoose = require('mongoose'); var joi = require('joi'); //mongoose schema var phoneotpSchema = mongoose.Schema({ phone : String, countryCod...
'use strict'; /*jshint esnext: true */ // this variable is defined in the global scope, // but it will be wrapped in an AMD requirejs define statement // creating a file local scope, making 'self' global only in this file. let self; let authenticationInterceptor = class AuthenticationInterceptor { /*@ngInject*/ ...
import {FaReact, FaNodeJs, FaHtml5, FaCss3Alt, FaSass, FaBootstrap, FaAws} from 'react-icons/fa'; import {DiMysql, DiMongodb, DiJavascript1} from 'react-icons/di'; import {GrHeroku} from 'react-icons/gr'; import {SiAdobephotoshop, SiAdobepremiere} from 'react-icons/si'; const skill_items = [ { name: 'REACT...
// Filename: snips/binders.js // This is the place for rivets binders
import React from 'react'; import Dashboard from './Dashboard'; import cossDashboardData from './cossDashboardData.json'; import Spacer from './Spacer'; export default class Coss extends React.Component { constructor(props) { super(props); this.state = ""; } render() { return ( ...
const Register = require('./../lib/register'); const requestIdPool = new Register(); function getId(compassname) { let id = requestIdPool.get(compassname); if( typeof id === 'undefined'){ id = 0; } id++; if (id > 0xFFFFFF) { id = 1; } requestIdPool.set(compassname, id); ...
#!/usr/bin/env node /** * Module dependencies. */ var app = require("../app"); var debug = require("debug")("mailprobe:server"); var http = require("http"); var db = require("../db/authdb"); var crypto = require("crypto"); const readline = require("readline"); /** Check if there is a command to create user */ var ...
const rpn = require('request-promise-native') const host = 'ecki.ceair.com' const origin = `http://${host}` const m = [/^\d{15}(\d{2}[\dXx])?$/, /^\w{3,12}$/, /^\d{3}-?\d{10}$/, /^[a-zA-Z]{3}\d{12}$/] const p = ['NI', 'PP', 'TN', 'NI'] let options = { uri: `${origin}/WebCheckin/uniEnter/query.shtml`, method: 'P...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(function () { $("#savePerBtn").click(function() { var server = $("#savePerMailForm select[name=sid]").val(); if...
"use strict"; angular.module("mushroom").factory("factory",function($q,$http){ let getShrooms = ()=>{ return $q((resolve,reject)=>{ $http .get("https://mushroom-mania-67f25.firebaseio.com/mushrooms.json") .then((mushrooms)=>{ resolve(mushroom...
/* Copyright 2016-2018 Stratumn SAS. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
#target Illustrator #targetengine main if ( app.documents.length > 0 ) { var curDoc = app.activeDocument; }else{ Window.alert("You must open at least one document."); } #include "color-conversion-algorithms.jsx" #include "hueMe.jsx" increment = -0.025; var sel = curDoc.selection; // get selection for (var i =...
/** * Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license * * CKFinder 2.x - sample "dummy" plugin. * * To enable it, add the following line to config.js: * config.extraPlugins = 'dummy'; */ /** * See http://docs.cks...
import axios from "axios" import env from "react-dotenv" const TimKiemLichTrinh = (param)=>{ console.log(param) return axios.post(env.API_ADMIN_LOCAL + "lichtrinh/date", param) } const GetDanhSachNhaGa = ()=>{ return axios.get(env.API_ADMIN_LOCAL + "nhaGa") } const GetNhaGa = (id)=>{ return axios.ge...
// require.config({ // The shim config allows us to configure dependencies for // scripts that do not call define() to register a module shim: { 'underscore': { exports: '_' }, 'socketio': { exports: 'io' }, 'backbone': { deps: [ 'underscore', 'jquery' ...
import React, { Component } from 'react'; import BarNavigation from './../../components/BarNavigation' import Footer from './../../components/Footer' import Divider from '@material-ui/core/Divider' import mainLogo from './../../img/footer/mainLogoWhite.png' import './styles.css' class LoginE extends Component { r...
import React, { Component } from 'react'; import './Card.css'; import { withStatus, NavContext } from "./Navbar"; //const NavbarWithStatus = withStatus(Card); class Card extends Component { // state = { // activities: [] // } render() { let label1=""; let label2=""; if (this.props.in...
import { renderString } from '../../src/index'; describe(`Renders an image tag`, () => { it(`unnamed case 0`, () => { const html = renderString(`{% image "image" %}`); }); it(`unnamed case 1`, () => { const html = renderString(`{% image "executive_image", label="Executive photo", alt="Photo of...
var pony = {}; pony.image = new Image(800,600); pony.init = function(){ pony.coord = new Object(); pony.vel = new Object(); pony.coord.x = -10; pony.coord.y = -201; pony.vel.x = 1.9; pony.vel.y = -0.9; pony.rotation = 0; pony.width = pony.height = 200; pony.frame = 0; pony.touchGround = true; pony.touchGr...
const express = require('express') const mongoose = require('mongoose') const bodyParser = require('body-parser') const app = express() mongoose.connect('mongodb://localhost:27017/userApp'); //Middleware app.use(bodyParser.json()) //Routes const routes = require('./routes') routes(app) app.listen('3000', () => { c...
import React, { Component } from "react"; import Navigation from './components/Navigation'; import Landing from './components/Landing'; import About from './components/About'; import Portfolio from './components/Portfolio'; import { Router } from 'react-router-dom'; export default class Home extends Component { rende...
import SideMenu from '@/components/SideMenu/index.vue' import moduleMenu from './views/children/menu/index.vue' export default () => ( { path: '/module1/menu2', component: SideMenu, redirect: '/module1/menu2/moduleMenu1', meta: { title: '实有房屋', }, children: [ { path: '/modu...
import get from 'simple-get'; import initDebug from 'debug'; const debug = initDebug('torrent-http-bridge:chunkstore'); export default class HTTPChunkStore { constructor(pieceLength, opts) { this.pieceLength = pieceLength; this.file = opts.file; this.url = opts.url; debug('created chunk store for %s'...
var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost:27017/iC5'); var AVs = require('../models/AV.js'); var BVs = require('../models/BV.js'); const bvList = [ { title: 'BV10', description: 'Старт Установки', readOnly: false, value: false }, { ti...
/** * Creates A, B, C... blocks for exercise order. * 1 for each exercise (though they may not all be used if circuits exist). */ P.views.workouts.order.Blocks = function(exercises) { var blocks = [], index = {}, letter = "A".charCodeAt(0), prev, block, i; for (i = 0; i < exercises.length; i++) { ...
"use strict" console.log('Hello People!'); console.warn('Hello Warning!'); console.error('This is Error!'); console.info('Information'); alert('Hello ALERT!');
import React from "react"; import { useDispatch } from "react-redux"; import Button from "./Shared/Button"; import Section from "./Shared/Section"; import { create } from "../slices/game"; import { useHistory } from "react-router"; import Center from "./Shared/Center"; import styled from "styled-components"; const Sta...
const _ = require('lodash'); const fs = require('fs'); const parse = require('csv-parse'); const { loadFileContent } = require('./util.js'); const preparePortfolio = (entries) => { return _.map(entries, (entry) => { return { title: _.get(entry, 'Produkt'), ISIN: _.get(entry, 'Symbol/ISIN'), ...
import React from 'react'; import Todo from './todo'; const todo_output= ({todos, setTodos}) => { console.log(todos); return ( <div className="todo-container"> <ul className="todo-list"> { todos.map( (todo) => ( <Todo todo={todo} setTodos={setTodos} /> ))} </u...
var Framework = function() { } Framework.prototype.preload = function() { } Framework.prototype.setup = function() { } Framework.prototype.draw = function() { } Framework.prototype.onMouseClicked = function() { } Framework.prototype.onMousePressed = function() { } Framework.prototype.onMouseMo...
import authTypes from "src/redux/auth/types"; import { createAction } from "redux-actions"; import authBackend from "src/services/backend/auth"; export const authRequest = () => { return { type: authTypes.authRequest }; }; export const logIn = user => ({ type: authTypes.logInResponse, payload: user })...
$(document).ready(function() { // Загрузчик $('.preloader').delay(100).fadeOut(300); // ============================= // Анимация $(window).scroll( function () { // Классы var priceBlock = $('.price-box'); // Неизменны var $winTop = $(this).scrollTop(); var $winHeight = $(this).height(); ...
/********************************************************************************************* /** * Grand Central ajax call (everything goes in POST, but current GET is rerooted) * @author [email protected] **#******************************************************************************************/ (function($) { ...
const liteSchema = "https://vega.github.io/schema/vega-lite/v5.json"; const url = "https://vega.github.io/editor"; const geourl = 'https://vega.github.io/vega-lite'; export const vegaLitePieSpec = { $schema: liteSchema, data: { name: "table" }, transform: [ { aggregate: [{ op: "sum", field: "value", as...