text
stringlengths
7
3.69M
export const heroBarObj = { title: 'Projects', description: 'From configuration to security, web apps to big data—whatever the infrastructure needs of your application may be, there is a Spring Project to help you build it. Start small and use just what you need—Spring is modular by design.' };
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React from 'react'; export default class SearchForm extends React.Component { constructor() { super(); this.state = { search: '' }; } updateSearch(event) { this.setState({search: event.target.value.substr(0, 60)}) } handleSearch(event) { event.preventDefault(); const ...
import vuexModule from "./main/vuex.js"; import Injector from "./main/injector"; import Body from "./main/body.vue"; function setup(frontend) { frontend.store.registerModule("dashboard", vuexModule); frontend.inject("dashboard", new Injector(frontend)); frontend.worker.import("dashboard/worker.mjs"); frontend...
'use strict'; const { resolve } = require('path') module.exports = { plugins: [ require('postcss-import')({ path:[resolve(__dirname,'./app/web/asset/css')] }), require('postcss-cssnext'), require('postcss-pxtorem')({ rootValue: 75, propList: ['*', '!font*'] }), ] };
import { assert } from '../assert'; /** * @param {string=} env * @returns {typeof DEFAULT} */ export const getConfig = (env) => { assert( !env || env === 'staging' || env === 'green', `env: ${env} is not supported`, ); return { ...DEFAULT, ...(env ? CONFIGS[env] : {}), }; }; const DEFAULT ...
import { createMuiTheme } from '@material-ui/core/styles'; const palette = { primary: { main: '#1565c0' }, secondary: { main: '#e91e63' } }; const themeName = 'Jacksons Purple Heliotrope Cardinal'; export default createMuiTheme({ palette, themeName });
import { useReducer } from "react" export default initialState => { const reducer = (state, action) => { switch (action.type) { case "error": return { ...state, error: action.error } default: return { ...state, value: action.value } } } const [state, dispatch] = useReducer(re...
export const DAI_TOKEN_ADDRESS = '0xf249104DEf3BA2EC205734E5159f1A3d61789C0a'; export const FAUCET_ADDRESS = '0x49261749Cdd32d4f4d403CdBB5179EE5DB6aac59'; const DEPLOYER_ADDRESS = '0xD0CEe0e407bdd1d844bC9061D39873F2a42F1D9b'; export const ETHLEND_CONTRACT_ADDRESS = '0x55C0b8E264EB72D54A99c15820c7C024E4F53657'; //mi...
import React from 'react'; import { Provider } from 'react-redux'; import { AppState, Platform, View, Navigator, StyleSheet } from 'react-native'; import configureStore from './store/configureStore'; import Router from './Router'; export default class Application extends React.Component { state: { isLoading: boo...
import React, {useState} from 'react'; const FunctionState =() => { const [counter, setCounter] = useState(0) // useState nous permet d'avoir un state au sein d'une fonction return ( <div> <p> Counter : {counter} </p> <button onClick={()=> setCounter(prevCounter => ...
var APP_DATA = { "scenes": [ { "id": "0-1conv", "name": "1conv", "levels": [ { "tileSize": 256, "size": 256, "fallbackOnly": true }, { "tileSize": 512, "size": 512 } ], "faceSize": 500, "initialVi...
import React from "react"; import { Link } from "react-router-dom"; import pic from "./Travel/Pics/Me_Matterhorn.png"; import './index.css'; import '../node_modules/react-vis/dist/style.css'; const childStyle = {"width": "100%", "height": "100%", "fontSize": "50px"} function home() { return ( <div style={...
import {pageSize, pageSizeType, paginationConfig, searchConfig} from '../../globalConfig'; import name from '../../dictionary/name'; const filters = [ {key: 'serviceName', title: '所属服务名', type: 'text'}, {key: 'controllerName', title: '所属控制层名称', type: 'text'}, {key: 'url', title: 'URL路径', type: 'text'}, {key: '...
const express = require('express'); const passportRouter = express.Router(); const passport = require('../helpers/passport'); const User = require('../models/User'); passportRouter.get('/login', (req, res, next) => { res.render('passport/login'); }); passportRouter.post('/login', (req, res, next) => { passport.au...
import React from 'react' import "./ReporteSistema.css"; import { LeftCircleTwoTone, RightCircleTwoTone, CloseCircleTwoTone } from "@ant-design/icons" export default function ReporteSistema() { return ( <> <div className="row"> <div className="col-2"> <div ...
/*globals App Class Events $merge*/ App.ns('App.Messanger'); App.Messanger = new (new Class((function(){ // private var _message_dict = {}; var _message_stack = []; var _fire_update_onmove = true; var _message_stack_limit = 6; // public return { Implements: Events, /** * setAu...
module.exports = { STORE_COLLECTION : 'stores', USER_COLLECTION : 'users' }
import { h, Component } from 'preact' import { remote } from 'electron' import hyperx from 'hyperx' import * as TimeFormat from 'hh-mm-ss' const hx = hyperx(h) const refreshInterval = 4000 class BatteryInformation extends Component { componentWillMount () { this.translator = remote.getGlobal('translator') t...
#!/usr/bin/env node const program = require("../src/main"); program.main();
'use strict'; function isEmpty(val) { return val === undefined || val === null || val.length <= 0 ? true : false; } function getCookie(name) { if (isEmpty(document.cookie)) return null; const documentCookieArr = document.cookie.split(';'); const nameCookieArr = documentCookieArr.filter(x =>...
var Boxcar = { /** * Initialize push module * * @param data.clientKey * @param data.secret * @param data.server */ init: function(data) { var verifyTo = {clientKey: 0, secret: 0, server: 0, richUrlBase:0}; if (device.platform == 'android' || device.platform == 'Andr...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Chip from '@material-ui/core/Chip'; import Paper from '@material-ui/core/Paper'; import DoneIcon from '@material-ui/icons/Done'; const useStyles = makeStyles(theme => ({ root: { display: 'flex', justifyContent: 'center', ...
var _ = require("underscore"), request = require("superagent"), Promise = require("promise"), { DOMParser } = require("xmldom"), xpath = require("xpath"), fasta = require("fasta-parser"); const ENTREZ_URL = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils"; const SEARCH_URL = `${ENTREZ_URL}/esearch.fc...
import React from 'react'; import LogoAboutPage from '../components/LogoAboutPage'; import AboutPage from '../components/AboutPage'; import '/client/landing.css'; export default class About extends React.Component { componentDidMount() { document.title = "OWO - About Us" } render() { return ( <...
import axios from 'axios' export default { // a dummy sever wake up wakeFileUploadApp() { axios({ method: 'GET', url: 'https://core-util.herokuapp.com/' }) }, sendFileData(imageFile) { const bodyFormData = new FormData(); bodyFormData.append('upl', imageFile); return axio...
define(['unicorn.tables'], function(){ wgn.console('gateways module loaded','f'); });
var gulp = require('gulp'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer'); var plumber = require('gulp-plumber'); //setting var settings = require('../gulpfile_settings'); gulp.task('css', function () { return gulp.src( [ settings.watch.cssBase.dir ] ) .pipe(plu...
import React, { useEffect, useState } from 'react'; import { emojisService } from '../services/emojisService' import InsertEmoticonIcon from '@material-ui/icons/InsertEmoticon'; import PetsIcon from '@material-ui/icons/Pets'; import LocalBarIcon from '@material-ui/icons/LocalBar'; import SportsSoccerIcon from '@materia...
// Native dependencies. const path = require('path'); // Webpack dependencies. const HtmlWebPackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); // Constants defines. const srcDir = path.resolve('./examples'); const distDir = path.resolve('./examples_dist'); m...
var resize________________8js________8js____8js__8js_8js = [ [ "resize________8js____8js__8js_8js", "resize________________8js________8js____8js__8js_8js.html#ac1dc9ad426416305a4d520de207e5d2b", null ] ];
/* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/interactive-supports-focus */ import React from 'react'; import { withRouter } from 'react-router-dom'; import { defaultPhoto100 } from '../../constants/defaultPhotos'; import { StyledFollowingsSection, StyledFollowingsCard }...
function ObjAjax() { var xmlhttp = false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { xmlhttp = new XMLHttpRequest(); } re...
import { object, string, number, boolean } from 'yup' const dogSchema = object().shape({ name: string().max(20).required(), age: number().min(1).max(20).required(), isPedigree: boolean().optional().default(false) }) export default dogSchema
import React from "react"; import { Component } from 'react'; import {Trail, config} from 'react-spring/renderprops' export class Header extends Component { constructor(props){ super(props); this.items = []; for (let i = 0; i < props.text.length; i++){ this.items.push({ ...
const config = { host: '47.95.204.85', // 数据库地址 user: 'root', // 数据库用户 password: '123456', // 数据库密码 database: 'test' // 选中数据库 } module.exports = config;
import { headerMdHeight, headerSmHeight } from '../../assets/themes' export default (theme) => ({ root: { width: '90%' }, button: { marginTop: theme.spacing.unit, marginRight: theme.spacing.unit, [theme.breakpoints.up('md')]: { marginTop: headerMdHeight }, [theme.breakpoints.down('sm...
import React, { Fragment } from "react"; import { BrowserRouter as Router, Switch, Route, useLocation, useRouteMatch, Link, } from "react-router-dom"; import Usernavbar from "../layouts/userprofilenavbar"; import ProfileHeader from "../layouts/profileheader"; import ProfileAbout from "../layouts/...
const petOwnerData = require("./petOwner"); const homepageData = require("./homepage"); const petsData = require("./pets"); const messages = require("./messages"); const shelterAndRescueData = require("./shelterAndRescue"); module.exports = { homepageData: homepageData, pets: petsData, petOwnerData: petOwnerData...
import React, { useState } from 'react' import { Card, CardBody, CardTitle } from 'reactstrap'; const Products = ({ products, onCreate }) => { const [name, setName] = useState(""); const resetForm = () => { setName(""); } return ( <div className="dp-card-wrapper"> <Card cl...
const { MessageEmbed } = require("discord.js") module.exports = async (client, guild) => { const guildDB = await client.database.GuildSchema.findOne({ '_id': guild.id}) if (!guildDB) { await client.database.GuildSchema.create({ '_id': guild.id }) } }
var language; var uid; var selectedLanguage; $(document).ready(function() { uid = $('#uid').val(); $.get("/api/v1/getLanguage/" + uid, function(data) { language = String(JSON.stringify(data.language)); language = language.slice(1, language.length-1) console.log("language: " + lang...
import React, { Component } from 'react'; import './Home.css'; class Home extends Component{ render() { return( <div> <div>Welcome</div> <p className='para1'>Tri-tip pork loin rump shank kielbasa swine. Cow andouille pork venison. Boudin landjaeger buffalo, short...
/** * Created by lavystord on 16/9/10. */ module.exports = require("./qiniu.native");
const path = require('path'); const autoprefixer = require('autoprefixer'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const SRC_DIR = path.resolve(__dirname, '..', 'src'); const DIST_DIR = path.resolve(__dirname, '..', 'dist'); module.exports = { devtool: 'cheap-s...
import * as React from 'react'; import './Canvas.css' var gameArea = document.getElementById('gameArea'); var widthToHeight = 4 / 3; var newWidth = window.innerWidth; var newHeight = window.innerHeight; var newWidthToHeight = newWidth / newHeight; if (newWidthToHeight > widthToHeight) { // window width is too wi...
/* --------------------------- INTUIT CONFIDENTIAL --------------------------- spendingOvertime.js Written by Date Jason Harris 07/14/10 Revised by Date Summary of changes Mickey Roberson 08/25/10 [S674] The SOT table is now composed of two separate adjoining tables. The leftmost is fixed while ...
const { movieLookup } = require("../tmdb/movie"); const { showLookup } = require("../tmdb/show"); const Request = require("../models/request"); const Sonarr = require("../services/sonarr"); const Radarr = require("../services/radarr"); const logger = require("../util/logger"); const Promise = require("bluebird"); asyn...
function filtrar() { fetch ("http://localhost:8080/intervalo/" + document.getElementById("txtinicio").value + "/" + document.getElementById("txttermino").value) .then(res => res.json()) .then(res => { var tabela = "<table border='1' align='center' width='100%'>" + "<tr...
// Packages import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import { connect } from 'react-redux'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' // Action Creators import { setAuthedUser } from '../actions/authedUser'; // Material UI import Avatar from '@material-u...
window.onload = function() { const calc = new Calc(); const n = document.getElementById('n'); const start = document.getElementById('start'); const answer = document.getElementById('answer'); const answer1 = document.getElementById('first'); const answer2 = document.getElementById('second'); function wr...
import { GET_CONTACTS_SUCCESS, GET_CONTACTS_LOADING, GET_CONTACTS_FAIL } from "../../constants/actionTypes"; const contacts = (state, { type, payload }) => { // used because API not authing because login not working const tempData = [ {id: "1", first_name: 'ting1'}, {id: "2", first_name: 'tin...
if (typeof HMS == 'undefined' || !HMS) { var HMS = {}; } HMS.namespace = function () { var a = arguments, o = null, i, j, d; for (i = 0; i < a.length; i = i + 1) { d = ('' + a[i]).split('.'); o = HMS; for (j = (d[0] == 'HMS') ? 1 : 0; j < d.length; j = j + 1) { ...
import React, {useState, useEffect} from 'react' import {Group} from '../../domain/group' import { Timetable } from '../../domain/timetable'; import {Timetables} from './timetable' import AddConditions from './addCondition' import ConditionList from './conditionList' const FindTimetable = ({grouplist, _seeDetails}) =...
// 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, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
function callAnotherPage(){ // alert("aqui"); var req = new XMLHttpRequest(); req.open('GET', '/json', true); xhttp.send(); };
var pushedButton=""; $(".button").on("click", function(){ pushedButton =$(this).attr("txt"); console.log("pushed button: " + pushedButton); displayInfo(pushedButton); }); function displayInfo(sentButton) { var api_URL = "https://sv443.net/jokeapi/v2/joke/"+sentButton; //grabs a joke with the given cat...
import React, { useState, useEffect } from "react"; import SelectCategory from "../Fields/Select/SelectCategory"; import { getCategory, storeTestType } from "../Utils/Shared/apiCall"; const TestType = () => { const [data, setData] = useState(); const [testType, setTestType] = useState(""); const [testCost, setTe...
var mongoose = require('mongoose'); var Schema = mongoose.Schema, ObjectId = Schema.ObjectId; var MeetingSchema = new Schema({ patient: { type: ObjectId, ref: 'user' }, doctor: { type: ObjectId, ref: 'user' }, date: Date, slot: Number, patientNotRegister: { phone: String, name: ...
$(document).ready(function () { var selectedCountry = localStorage.getItem("selected_country"); var rec_country = selectedCountry; console.log("Random country " + rec_country + " successfully retrieved!"); var rec_city = ""; //creating switch case so the right city will be selected once the r...
import { Dimensions } from 'react-native' const { height } = Dimensions.get('window') import theme from './theme' export const getStyling = () => { console.log(height); switch (height) { case 667: return { // topBar: 15, input: 13, titleHead: 19, button: 17, buttonP...
import React from 'react' export default function adapter(props) { return ( <div style={{width: `${props.size}px`}} dangerouslySetInnerHTML={{__html: `${props.svg.data}`}}/> ); };
// JavaScript Document function indexInicializar() { var crearWidgets = function () { // Menú de opciones $("#jqxMenu_Index").jqxMenu({ width: $("#jqxMenu_Index").parent.width, height: $("#jqxMenu_Index").parent.height, animationShowDuration: 300, animationHideDuration: 100, animationShowDelay: 300...
$(document).on('mouseenter', '[data-toggle="tab"]', function () { $(this).tab('show'); }); $(document).on('click', '[data-toggle="tab"]', function () { window.location.href=$(this).attr("data-url"); });
const http = require('http') const { PORT = 3000 } = process.env const psi = require('psi'); http.createServer(async (req, res) => { const searchParams = new URL(req.url, 'https://example.org').searchParams; const targetURL = searchParams.get('url') || 'https://icing.space/'; const { data } = await psi(target...
import React, { Component } from 'react' import {useForm, userForm , useStep} from 'react-hooks-helper' import Names from './StepForm/Names' import Address from './StepForm/Address' const defaultData = { firstName : "", lastName : "", nickName : "" } const steps = [ { id : "names" }, { ...
import React, { Component } from 'react' import { Link } from 'react-router-dom'; class Navbar extends Component { render() { return ( <div> <nav className="navbar navbar-expand navbar-dark bg-success"> <div className="nav navbar-nav"> ...
import Vue from "vue"; import VueRouter from "vue-router"; // 商城 import center from "@/pages/shop/center/index.vue"; import lists from "@/pages/shop/lists/index.vue"; import cart from "@/pages/shop/cart/index.vue"; import index from "@/pages/shop/index/index.vue"; import goodsDetail from "@/pages/shop/goods_detail/ind...
import React from "react"; import { scrollById } from "../../utils/Tools"; import "./menu.css"; const Menu = () => { return ( <div className="menu d-flex"> <p onClick={() => scrollById("aboutMe")}>About me</p> <p onClick={() => scrollById("projects")}>My projects</p> <p onClick={() => scrollBy...
$(document).ready(function () { $(".message-user").hide(); $(".message-recipient").hide(); $("form").hide(); $(".reloaded").show(); // if message was sent from inbox, show the thread // get id of message thread that the user clicks on $(".message-threads").click(function () { $(".message-user").hide()...
import React, { Component } from "react"; import { Button } from "react-bootstrap" import BubbleSort from "../Algorithms/BubbleSort.js"; import InsertionSort from "../Algorithms/InsertionSort.js"; import MergeSort from "../Algorithms/MergeSort.js"; import NavBar from "./NavBar.jsx"; import Slider from "./Slider.jsx" im...
import React, { useContext } from "react"; import Head from "next/head"; import { fetchAPI } from "../lib/api"; import { GlobalContext } from "../pages/_app"; import stylesheet from "styles/main.scss"; import Image from "../components/Image"; import format from "date-fns/format"; import NavBar from "../components/NavBa...
/** * Created by cl-macmini-63 on 2/1/17. */ /** * Created by cl-macmini-63 on 1/18/17. */ 'use strict'; const responseFormatter = require('Utils/responseformatter.js'); let commonFunction=require('Utils/commonfunction.js'); var config=require('../config'); const cardSchema = require('schema/mongo/cardschema'); co...
'use strict'; require('es6-promise').polyfill(); // Load required files that aren't auto-loaded by // gulp-load-plugins (see below) var argv = require('yargs').argv, fs = require('fs'), gulp = require('gulp'), mainBowerFiles = require('main-bower-files'), merge ...
(function () { 'use strict'; /** * @ngdoc object * @name posters.controller:PostersCtrl * * @description * */ angular .module('posters') .controller('PostersCtrl', PostersCtrl); function PostersCtrl($scope, $rootScope, $mdDialog,Posters) { $scope.posters = []; $scope.getAl...
var wordBank = ['Zeus', 'Cronos', 'Ares', 'Hermes', 'Apollo', 'Uranus', 'Helios','Atlas', 'Hephaestus','Prometheus','Kratos','Tyche','Athena','Poisedon','Aphrodite','Demeter','Hestia','Hera','Artemis','Hades'] ; var random = Math.floor(Math.random() * wordBank.length); var randomWord = wordBank[random]; module.exports...
import React, { useState } from 'react'; import { Table, Input, Button, Space, Popconfirm } from 'antd'; import { SearchOutlined, QuestionCircleOutlined } from '@ant-design/icons'; import Highlighter from 'react-highlight-words'; import ReactDOM from 'react-dom'; import 'antd/dist/antd.css'; import Modal from "../Modal...
import React from 'react'; import FA from 'react-fontawesome'; import Tile from 'components/tiles/tile.js' export default class WebGL3D extends React.Component { constructor(props) { super(props); this.state = { } } render() { var main = ( <Tile className="bg-...
/* Implements the logic for editing the profile's bio and avatar. */ const csrftoken = document.querySelector('[name=csrfmiddlewaretoken]').value; // When page renders. document.addEventListener('DOMContentLoaded', () => { // if current user if the profile's owner, add ability to edit bio on click. cons...
/** * Created by xuwusheng on 15/12/12. */ define(['../../../app'], function (app) { app.factory('platformDestroyDetail', ['$http','$q','HOST',function ($http,$q,HOST) { return { getThead: function () { return [ {name:'序号',type:'pl4GridCount'}, ...
function register(env) { env.addGlobal("crm_object", handler); } function handler(object_type, query_or_object_instance_id, properties, formatting) { return 'crm_object not implemented yet'; } export { handler, register as default };
/** * @author v.lugovsky * created on 16.12.2015 */ (function () { 'use strict'; angular.module('BlurAdmin.pages.app.FREnreport.report_stock', []) .config(routeConfig); /** @ngInject */ function routeConfig($stateProvider) { $stateProvider .state('app.FREnreport.report_stock', { u...
import React from 'react'; import Omikuji from "./components/Omikuji"; const omikujiPossibilities = [ { name: 'daikichi', weight: 30, }, { name: 'kichi', weight: 50, }, { name: 'daikyo', weight: 20, }, ]; class App extends React.Component { constructor(props) { super(props); ...
import log4js from 'log4js'; import fs from 'fs'; import path from 'path'; export default class Log { constructor() { var objConfig = JSON.parse(fs.readFileSync(path.join(config.configpath,'log4js.json'), "utf8")); if (objConfig.appenders) { var baseDir = path.join(config.rootpath, objC...
Ext.define('Gvsu.modules.docs.model.DocTypesModel', { extend: "Core.data.DataModel" ,collection: 'gvsu_docstypes' ,fields:[{ name: '_id', type: 'ObjectID', visable: true },{ name: 'name', type: 'string', filterable: true, editable: t...
export default { '': [ 'rgba', 'hsl', 'hsla', ], };
../../../../../shared/src/App/Pornstar/actions.js
var express = require('express'); const errors = require("../../../../../errors"); const models = require("../../../../../../models"); const ResponseTemplate = require("../../../../../ResponseTemplate"); const SimpleValidators = require("../../../../../../util/SimpleValidators"); const {hasValue} = SimpleValidators; c...
import { window, document, setTimeout } from "./globals"; import equiv from "./equiv"; import dump from "./dump"; import module from "./module"; import Assert from "./assert"; import Logger from "./logger"; import Test, { test, pushFailure } from "./test"; import exportQUnit from "./export"; import reporters from "./r...
/** * 海底漂浮物 */ class Dust { constructor(){ this.x = []; this.y = []; this.amp = [];//振幅 this.pic = []; this.NO = []; this.num; this.alpha = 0; } init(){ this.num = 30; for(let i = 0; i < 7; i++){ this.pic[i] = new Image();...
export { default } from 'ember-print-this/services/print-this';
import * as React from "react"; function PmIcon(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="5.262" height="5.263" viewBox="0 0 5.262 5.263" {...props} > <path id="Path_245" data-name="Path 245" d="M4.926,7.512c-.081,0-.162,0-.24...
import React, { Component, PropTypes } from 'react'; import AddTodo from '../components/AddTodo.js'; import TodoList from '../components/TodoList.js'; import Footer from '../components/Footer.js'; import { connect } from 'react-redux'; import { addTodo, toggleTodo, setVisibilityFilter, VisibilityFilters } from '../acti...
'use strict'; // let fileInput = $('#fileToUpload'); // const uploadImage = function () { // console.log(this.files[0]); // } // fileInput.on('change', uploadImage); var ali = 'hgoli'; var axios = require('axios'); function uImage(e) { console.log(e.target); }
import React from 'react' import { shallow, mount } from 'enzyme' import CardContainer from '../CardContainer' describe('CardContainer', () => { let wrapper let mockData let mockCompare beforeEach(() => { mockData = [] wrapper = shallow(<CardContainer data={mockData} ...
var markedLog = [] for(var i = 0 ; i< 29; i++ ) { for(var j = 1 ; j< 1200; j++) { var key = i + "_" + j if (localStorage.getItem(key)) { markedLog.push(key) } } } var eleLink = document.createElement('a'); eleLink.download = 'markers.json'; eleLink.style.display = 'none'; //...
const dbHelper = require("../utils/dbHelper"); const Response = require("../models/response"); const RESPONESE_CODE = require("../enum/responseCode"); class ContentsController { read(req, res) { dbHelper.query("SELECT * FROM my_contents", function(error, results, fields){ if (error) throw error...
import React from 'react'; import { withPrefix } from 'gatsby' import { AnchorLink } from 'gatsby-plugin-anchor-links'; import { useLaxElement } from 'use-lax'; import styled from 'styled-components' import SEO from "../seo" import Layout from '../layout' import Section from '../sections' import Header from '../header...
import DS from 'ember-data'; const {RESTSerializer} = DS; export default RESTSerializer.extend({ normalizeQueryRecordResponse(store, primaryModelClass, payload, id, requestType) { payload.room.id = payload.room.rates[0].rateToken; return this._super(store, primaryModelClass, payload, id, requestType) } })...
function knuthShuffle(numbers) { var length = numbers.length; for (var i = 0; i < length; i++) { var r = Math.floor(Math.random() * (i + 1)); var temp = numbers[i]; numbers[i] = numbers[r]; numbers[r] = temp; } } exports.knuthShuffle = knuthShuffle;