text
stringlengths
7
3.69M
exports.run = () => { for (let i = 0; i < 5000; i++) { console.log("BEGONE THOT") } }
// FINCAD // React Assignment - Janurary 28, 2017 // Chedwick Montoril // License MIT // React-* dependencies. import React from 'react'; import Helmet from 'react-helmet'; import {FormattedMessage} from 'react-intl'; // Redux-* dependencies. import {bindActionCreators} from 'redux'; import {connect} from 'react-re...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = require("path"); const url_1 = require("url"); const electron_1 = require("electron"); co...
(function() { window.app = {}; app.sendMessage = function(form) { document.getElementById('loader').style.display = 'block'; var data = { email: form.inputEmail.value, message: form.inputMessage.value }; var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function() {...
import authService from '../../services/auth/auth'; import { types } from './types'; import { toast } from '../../utils/toast'; export const actions = Object.freeze({ login }); async function login({ commit }, requestBody) { const { data, message: errorMessage } = await authService.login(requestBody); if (erro...
const mongodb = require("mongodb") const common = require("../module/common") const db = require("../module/db") const jwt = require("../module/jwt") module.exports.getvalidate = function(req,res){ if(req.body.ploneId.length !== 11){ res.json({ ok : 2, ms...
import firebase from 'firebase'; import 'firebase/firestore'; import users_json from 'DB/users.json'; export default async function syncronicUsers() { const db = firebase.firestore(); users_json.forEach(async u => { await db.collection('users').doc(u.user) .set({ verify:u.verify, ...
import './App.css'; import Demo from "./Demo"; import Son from "./compoents/Son"; import {DadaProvider} from "./compoents/Mycontext"; function App() { return ( <div className="App"> <Demo></Demo> {/*<Son name="Puti name is Kalam"/>*/} <DadaProvider value="Dada Send massage to puti"> ...
import React, { useState, useRef, useEffect } from "react" import styled from "styled-components" import { TweenMax } from "gsap/TweenMax" import { Draggable } from "gsap/Draggable" import ClassKey from "../Nav/Schedule/ClassKey" import ClassScrollIndicator from "../Nav/Schedule/ClassScrollIndicator" import ClassSched...
window.onload = function(e){ var links = document.querySelectorAll('a[target=_blank]'); for(var i = 0; i < links.length; i++){ links[i].onclick = confirmAway; } function confirmAway(){ if(!confirm('Ssilka podozritelnay!!!')){ return false; } } var img = document.querySelectorAll('.img'); for(v...
/*: * @plugindesc Deactivates fast forward on events on a map when Z key is held down. * * @author NA * */ Scene_Map.prototype.isFastForward = function() { return false; //($gameMap.isEventRunning() && !SceneManager.isSceneChanging() && //(Input.isLongPressed('ok') || TouchInput.isLongPress...
import React from 'react'; import './App.css'; import fetchJsonp from "fetch-jsonp"; import SearchForPet from "./components/SearchForPet"; // API Key // 975b1fe8f29db679023e4bac68f2f3fa // // API Secret // ac623dbd3d77179e3bce73edbf3d3a6d // api call const API = 'http://api.petfinder.com/pet.find'; const API_KEY = '...
$(document).ready(function(){ $("#locationLoading").hide(); $("#getLocation").click(function() { $("#locationLoading").show(); navigator.geolocation.getCurrentPosition(geoSuccess); }) function geoSuccess(location) { alert(location.coords.latitude + ", " + location.coords.longitude); /*...
const { attributes } = require("structure"); const Product = attributes({ id: String, name: String, slug: String, status: Boolean, description: String, hot: Boolean, sale: Boolean, new: Boolean, createdBy: String, updatedBy: String, createdAt: Date, updatedAt: Date })( class Product { } ); ...
import React from "react"; import styled from "styled-components"; import City from './city'; const ContainerCities = styled.div` width: 98%; margin: 0 auto; display: flex; justify-content: center; flex-direction: column; font: var(--body2-regular); background: rgba(31, 31, 31, 7...
import './Calc.css'; import React, { useState } from 'react'; import Display from './display' import Button from './buttons' export default function Calculator() { // get number/simbols const [data, setData] = useState(() => { return 0 }); // dot rules const [dot, setDot] = useState(true) ...
/** * Created by a on 2017/11/1. */ const viewModal=require("../dao/userdao.js"); module .exports= { listPeo(req,res){ "use strict"; //查看mysql数据 viewModal.getUser66(function (err, data) { if (err) { res.send("数据出错"); } else { res.ren...
import React from 'react'; import styled from 'styled-components'; import { WIDGET_SHOW } from './constants'; const Container = styled.div` width: 200px; `; const Button = styled.button` `; const Popup = () => { const show = () => { chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => { c...
/* eslint-env node */ /* globals describe, it */ 'use strict'; describe('Middleware: getLatLon', function () { it('handles errors'); it('adds a latLon property to the req object'); });
const express = require("express"); const path = require("path"); const app = express(); var cookieParser = require("cookie-parser"); const fileUpload = require("express-fileupload"); const posts = require("./server/routes/posts"); const userPosts = require("./server/routes/user-posts"); const postDetail = require("./...
import React, { useState } from 'react'; import InputGroup from 'react-bootstrap/InputGroup' import FormControl from 'react-bootstrap/FormControl' import Button from 'react-bootstrap/Button' import Spinner from 'react-bootstrap/Spinner' import Pagination from 'react-bootstrap/Pagination' import axios from 'axios'; imp...
export default function bankCtrl($scope, $state) { $scope.clickHandler = function() { //$state.go('app.personnalInfo'); // $window.location.href = "/personnalinfo"; console.log("je suis dans le controlleur info bank"); } }
import React from 'react'; function Superhero(props){ let {name, img, phrase, add} = props; return( <div onClick={add}> <h1>{name}</h1> <img src={img} /> </div> ); } export default Superhero;
import React, {useState} from "react"; import { Row, Col, Image } from "react-bootstrap"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTimes, faEdit } from '@fortawesome/free-solid-svg-icons'; import moment from 'moment'; import mainService from "../../Common/service/mainService"; import...
var ASSEM = []; ASSEM[0] = function () { return '00'; }; ASSEM[1] = function () { return '10'; }; ASSEM[2] = function () { return '20' + this.rA + this.rB; }; ASSEM[3] = function () { return '30f' + this.rB + this.V; }; ASSEM[4] = function () { return '40' + this.rA + this.rB + this.D; }; ASSEM[5] = function...
import React, { Component } from 'react'; import Display from '../components/display'; const Projects = props => { const projects = [ { title: 'Cab-Ease', url: 'http://www.cab-ease.com', description: 'This is a project I designed for a client which runs entirely on top of a Google Sheet operat...
import React from 'react'; import { Col, Button } from 'react-bootstrap'; import './Logo.css'; export class Logo extends React.Component { render() { return ( <div id='logo'> <Button bsStyle='success'>Sign up</Button> <img className='logo' src={require('./../../../assets/sold.png')} alt='lo...
require('dotenv').config(); const {pool, cloudinary} = require('../config/config'); const jwt = require('jsonwebtoken'); exports.uploadGif = (req, res, next)=>{ // console.log(req.files.image, req.body.title ); const token = req.headers.authorization.split(' ')[1]; const decoded_token = jwt.verify(token, 'R...
import React from 'react' export default function MissionKey() { return ( <div className='mt-3 mb-1 row'> <div className="col-12"> <p> <span className='px-2 mr-1 bg-success rounded-circle'/> = Success <span className='px-2 ml-3 bg-danger rounded-circle'/> = Fail </p> </div> ...
// Take string, split into characters, put each character back in reverse order in new variable. function reverse(string) { var split = string.split(""); var reverse = split.reverse(); var newString = reverse.join(""); return newString; } require('readline'); var reversedString = reverse("apple"); if...
import client from "../../client"; export default { Query: { seeCoffeeShops: async (_, { offset }) => { const shops = await client.coffeeShop.findMany({ orderBy: { createdAt: "desc", }, take: 5, skip: offset ? o...
function mostrar() { //las variables que necesito edad y estado let edad; let estado; //llamo las dos variables una con parseInt por que es un numero y el otro solo el string edad = parseInt(document.getElementById("txtIdEdad").value); estado = document.getElementById("estadoCivil").value; //si edad es menor de ...
import Slide01 from "./Slide01"; import Slide02 from "./Slide02"; export default [ Slide01, Slide02, ];
alert('哈哈')
require('dotenv').config() const Discord = require('discord.js') const client = new Discord.Client() const handlers = require('./handlers') let state = { broadcast: null, voiceHandler: null, current: null, queue: [] } function start(message) { let channel = null const messageStack = [] let running = f...
import { createAction } from 'redux-actions'; const SEARCH_GIFS_FAILED = 'SEARCH_GIFS_FAILED'; const SEARCH_GIFS_GET = 'SEARCH_GIFS_GET'; const SEARCH_GIFS_RECEIVED = 'SEARCH_GIFS_RECEIVED'; const failedSearchGifs = createAction(SEARCH_GIFS_FAILED); const receivedSearchGifs = (payload = {}) => ({ type: SEARCH_GIFS_RE...
const router = require('express').Router() const {Order, Product, Order_Product} = require('../db/models') const nodemailer = require('nodemailer') module.exports = router router.get('/', async (req, res) => { try { // const order = await Order.findOne({where: {isOrder: false}}) // const {id} = order // ...
import React from 'react' import Jumbotron from "react-bootstrap/Jumbotron"; import Button from "react-bootstrap/Button"; const TitleBanner = () => { return ( <div> <Jumbotron> <h1>Welcome to Game Vibes!</h1> <p> Here you will find a list of games and the resulting reviews f...
import { ADD_TO_FAVORITS } from './types' const addToFavorites = (obj) => { return { type: ADD_TO_FAVORITS, obj: obj } } export default addToFavorites
i3GEOadmin.temas.dicionario = { 'txtDesc' : [ { pt : "Utilize as op&ccedil;&otilde;es abaixo para criar ou editar temas que ficar&atilde;o dispon&iacute;veis para o usu&aacute;rio acessar no subgrupo escolhido.", en : "", es : "" } ], 'adicionarTema' : [ { pt : "Adicionar tema", en : "", es : "" }...
var inherits = require('inherits') var shortid = require('shortid'); var dlnacasts = require('dlnacasts'); var airplayer = require('airplayer'); var vlc_tvos = require('./vlc_tvos') function Device(name, player_cb, type) { this.name = name; this.player_cb = player_cb; this.type = type; this.id = ...
// ./models/Order.js const mongoose = require('mongoose') const OrdersSchema = new mongoose.Schema( { products: [ { type: mongoose.Schema.Types.ObjectId, ref: 'Product' } ], buyer: [ { type: mongoose.Schema.Types.ObjectId, ref: 'User' } ] }, ...
function PermissionsController($scope,$http,$location,$filter) { $scope.role = {}; $scope.group = {}; $scope.allrole = []; $scope.allgroup = []; loading('hide'); $http({method: 'POST', url: url_base + 'admin/permissions/initpermissions', async:false}).success(function(data, status, headers, config) { conso...
; var Site, app; /* site.js */ (function(d, $) { Site = Site || {}; // global var app = {}; + function setupAppApi() { Site.Api = {}; Site.Api.isDesktop = function() { return $(document).width() >= 992; }; }(); + function setupHandlebarHelpers() { Han...
import React from 'react' export default function User({name, email, credit, id, balance}) { return ( <div className="userCard"> <h4>Name: {name}</h4> <p>Id: {id}</p> <p>Email: {email}</p> <p>Credit: {credit}</p> <p>Balance: {balance}</p> ...
const Joi = require('joi') const Payment = require('../models/payment-method') const PaymentSchema = Joi.object( { method: Joi.string() .min(3) .max(32) .required() }) // Middlewares const tryValidMethod = async (req, res, next) => { const newMethod = req.body try {...
import React, {useState} from 'react' export default function TextForm(props) { const UpConvert = () => { let upperText = Text.toUpperCase(); setText(upperText); props.showAlert("Converted to Uppercase!", "success"); } const LowConvert = () => { let lowerText = Text.toLower...
import React from "react"; import Cookies from "js-cookie"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import FixtureList from "./FixtureList"; import Loading from "../Loading"; import "./HistoryPage.css"; export default class HistoryPageView extends React.Comp...
var express = require('express'); var router = express.Router(); var monk = require('monk');//Object for monk var db = monk('localhost:27017/movies'); //Using monk to connect to MongoDB console.log("hello from login-auth"); router.get('/', function(req, res) { var collection = db.get('users'); console.log("Hel...
(function (App) { $.lib.addStyleSheet( 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css', 'sha384-aNUYGqSUL9wG/vP7+cWZ5QOM4gsQou3sBfWRr/8S3R1Lv0rysEmnwsRKMbhiQX/O', 'anonymous'); })
import React, { useState } from "react"; import { Button, Card } from "react-bootstrap"; export default function BodyItem(props) { // useState Hook const [count, setCount] = useState(0); const Users = [ { id: 1, name: "leezet", level: 2, image: "img_avatar1", note: "I'm a Fullst...
function wHELPERS() {}; // addEvent adapated from http://ejohn.org/projects/flexible-javascript-events/ // and Andy Smith's (http://weblogs.asp.net/asmith/archive/2003/10/06/30744.aspx) wHELPERS.prototype.addEvent = function(obj, type, fn) { if(!obj) { return; } if (obj.attachEvent) { obj['e'+ty...
#pragma strict var Missle01 : GameObject; var Missle02 : GameObject; var Laser : GameObject; var Plasma : GameObject; var currentWeapon = "Missile"; function Update () { if(Input.GetKeyDown(KeyCode.Q)){ SwapWeapons(); } } function SwapWeapons(){ if (Plasma.active == true){ Plasma.SetActive(false); Missle0...
import AboutPage from './AboutPage.svelte' export { AboutPage }
module.exports.getEvent = function getEvent(){ "use strict"; const obj = {}; obj.sourceUrl = null; obj.targetUrl = null; return obj; };
'use strict'; export default function configAppRouter($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/'); $stateProvider .state('tasks', { url: '', abstract: true, views: { 'category': { template: require('./category/category.html'), controller: 'CategoryController', ...
import {useEffect, useState} from "react"; import {useDispatch, useSelector} from "react-redux"; import {dataService} from "../../service"; import Episode from "../Episode/Episode"; import FilterEpisode from "../FilterEpisode/FilterEpisode"; import {filterEpisode} from "../../Redux/actions"; const Episodes = () => { ...
var searchData= [ ['read',['read',['../struct_s_f___v_i_r_t_u_a_l___i_o.html#af5fbdef0ac173a604b2dff50f210982a',1,'SF_VIRTUAL_IO']]], ['rewind',['rewind',['../classgui_1_1_gui.html#a67e330dafa5f5a20b707ceeca1d22d1b',1,'gui::Gui']]], ['root_5fkey',['root_key',['../struct_s_f___l_o_o_p___i_n_f_o.html#a2755451bf6c64...
import React, { Component } from 'react' import escapeRegExp from 'escape-string-regexp' class FilterComponent extends Component { state = { query : '', } componentDidMount(){ } updateQuery = (key) => { const { filter_markers ,filter_persist_datas } = this.props cons...
/** * Created by Administrator on 2016/5/15. */ (function () { var movieDetail=angular.module("my.movieDetail",["my.model"]); movieDetail.controller("MovieDetailController",function ($scope,$routeParams,myModel) { var id=$routeParams.id; myModel.getSubject(id,function (data) { $sc...
var BlogsCalendar = React.createClass({ render: function(){ return(<div className="blogBox"> I am an blog box and I have an blogs list <BlogList url={this.props.url} /> </div>); } }); React.render( <BlogList url="/blogs/all"/>, ...
// listener for alarm, execute when an alarm has elasped chrome.alarms.onAlarm.addListener((alarm) => { console.log("alarm", alarm); chrome.notifications.create({ type: 'basic', iconUrl: 'notification32.png', title: 'Alarm', message: alarm.name, buttons: [{ t...
// function n(){ // let about = document.getElementById("about"); // let ad = document.getElementById("ad"); // if (ad.style.display != 'block') { // ad.style.display = 'block'; // } // else{ // ad.style.display = 'none'; // } // };
import React, { Component } from 'react'; import API from './api' import './App.css'; import ListItem from './ListItem' class App extends Component { constructor(props){ super(props) this.state = { users:[] } } fetchUsers(last){ API.post('/', { query:`{ users(las...
/** * 登录 * @return */ function onLogin() { var username = document.getElementById("username").value; var passwd = document.getElementById("passwd").value; //非空判断 if (username == "" || username == null) { jQuery('#usernamenull').fadeIn(); document.getElementById("username").focus(); return; }else{ docume...
CHANGE TO .GITIGNORE node_modules .env *info.log .DS_Store
export const json1 = { b: 1 }
/* // ----------------------------> for // Necesitamos 3 veces // 1) Declarar uyna variable // 2) Condition (Expresion) // 3) Incrementar, Disminuir // Notemos que en la condion nop puedo usar ek "==" debo utilizar cosas como != o => o < for (let numeoroExMiCrush = 7; numeoroExMiCrush != 0; numeoroExMiCrush--){ ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class StatementUpdate { constructor(model) { if (!model) return; this.closeBalance = model.openBalance; this.closeBalance = model.closeBalance; this.transactionFailed = model.transactionFailed; ...
/** * Created by admin on 09-10-2015. */ describe("Check Quiz Module", function(){ var $scope, ctrl, quizService; beforeEach(module('quizModule')); beforeEach(inject(function($controller, $rootScope){ $scope = $rootScope.$new(); ctrl = $controller('QuizController',{ ...
/* jshint strict:true, esversion:5, es5:true */ window['user_context'] = { last_query: {} }; var ivo_api = 'https://api.ivo.si'; $(document).ready(function () { getUsersLocation(); }); $("form#stdin").on('submit', function (e) { if (e.preventDefault) e.preventDefault(); processInput($("input#text").val()); ...
// mongoose 모듈 생성 const mongoose = require('mongoose'); // schema 생성 const userSchema = mongoose.Schema({ // 필드 작성 name: { type: String, maxlength: 50 }, email: { type: String, trim: true, // space 없애주는 역할 unique: 1 }, password: { type: St...
export default class RedirectHandler { constructor(naja) { this.naja = naja; naja.addEventListener('interaction', (evt) => { const {element, options} = evt; if ( ! element) { return; } if (element.hasAttribute('data-naja-force-redirect')) { options.forceRedirect = element.getAttribute('data-n...
var fs = require('fs'); var http = require('http').createServer().listen(8080); http.on('request', function(req, res){ res.writeHead(200); //готовим поток для записи var newFile = fs.createWriteStream('file-4.txt'); //req.pipe(newFile); req.on('data', function(txt){ //txt = 'NEW: ' + txt; var buffer = newFile....
import AddEntry from './AddEntry' import Calendar from './Calendar' import DrawerContent from './DrawerContent' import Favourites from './Favourites' import Home from './Home' import Login from './Login' import Preferences from './Preferences' import Settings from './Settings' import Statistics from './Statistics' impo...
import firebase from "firebase"; const firebaseConfig = { apiKey: "AIzaSyDBaXZ89OdgMO8HMkoEyBqK1YlIWzGh45c", authDomain: "whatsapp-clone-47661.firebaseapp.com", databaseURL: "https://whatsapp-clone-47661.firebaseio.com", projectId: "whatsapp-clone-47661", storageBucket: "whatsapp-clone-47661.appspot.com", ...
import { getAllUsers, createUser, updateUser } from '../controllers/UserController.js' import { Router } from 'express' import * as Yup from 'yup' import authMiddleware from '../middlewares/ensureAuthenticated.js' const userRoutes = Router() userRoutes.get('/', authMiddleware, async (req, res) => { const users = ge...
// this is where the server will live import express from 'express' import mongoose from 'mongoose' import bp from 'body-parser' import PostController from './controllers/PostController' import './db/dbconfig' let server = express() let port = 3000 server.use(bp.json({ limit: '50mb' })) server.use('/api/blogs', new ...
$(function(){ $.getJSON('http://localhost:3000/positions', function(positions){ fillTable(positions); }); }); function fillTable(positions) { positions.forEach(function (position) { var $newTr = $('tr.template') .clone() .removeClass('template'); v...
const cruds = require('./crud/index') class Operations { constructor(entidade) { this._entidade = entidade } listar() { return cruds[this._entidade].listar() } buscarPorId(id) { return cruds[this._entidade].buscarPorId(id) } adicionar(item) { return cruds[this._entidade].adicionar(item...
/*globals angular */ 'use strict'; angular.module('tested-facts', []) .controller('FactsControllers', function ($scope, $http, $timeout, $interval) { $scope.name = 'Tested Facts'; $scope.headline = 'Facts from Around the World'; $scope.data = { value: [{ id: '0'...
export const ACTIONS = { SEARCH_HERO: 'SEARCH_HERO', ADD_HERO: 'ADD_HERO', REMOVE_HERO: 'REMOVE_HERO', }
import React, {Fragment, PureComponent} from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, TouchableOpacity, Dimensions, } from 'react-native'; import {SvgXml} from 'react-native-svg'; import SVG from '../components/SvgComponent'; import AsyncStorage from '@react-native...
function read_conf(fso, filename) { var conf = {} if (fso.FileExists(filename)) { var f = fso.OpenTextFile(filename, 1) while (!f.AtEndOfStream) { var line = f.ReadLine() var r = new RegExp(' *([^= ]+) *= *(.*)') var m = r.exec(line) if (m) { conf[m[1]] = m[2]; } } f.Close(); } return con...
/** * A multi-entry form input component. * This component will render multiple 'FormControl' text input fields the user can * edit. Each field will have 'remove' button with an X to their right. * Below, an 'Add' button is placed to add an entry. * * The 'value' represented by this input control is an array of...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var merchant_schema = new Schema({ company_name: String, company_address: String, email: { type: String, required: true, unique: true }, // Make email unique and required secret_key: String, public_key: String, account_balance: ...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Radio from '@material-ui/core/Radio'; import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked'; import RadioButtonCheckedIcon from '@material-ui/icons/RadioButtonChecked'; i...
// import { faCartShopping, faCoffee } from "@fortawesome/free-solid-svg-icons"; import Header from "../styles/head-section.styles"; import NavBar from "../styles/nav-bar.styles"; import avatar from "../images/image-avatar.png" const HeadSection = (prop) => { function openCart(){ let open = document.querySe...
/* eslint-disable jsx-a11y/img-redundant-alt */ import React, { useState, useEffect } from 'react'; import data from './assets/data.json'; import JobBoardComponent from './components/JobBoardComponent' function App() { const [jobs, setJobs] = useState([]); const [filters, setFilters] = useState([]); useEffect(...
const colors = ["#81c1ff", "#ff9494", "#789fff", "#ff9e81", "#b79bff", "#b4d36b", "#8ce0c9", "#e5e5e5", "#a7f07b", "#66d4fc", "#f8c384", "#d4eaa0", "#cbe86b", "#62cfe4", "#eaa680", "#6dd2e6", "#62cd94", "#9881F5", "#ec8785"]; const getStringToColor = (str) => { const count = str.toString().split('').reduce((pv, cv) ...
document.addEventListener('DOMContentLoaded', init); function init() { // look for the button var btn = document.querySelector('#message-submit'); // bind sendMessage when it's cliecked btn.addEventListener('click', sendMessage); // retrieves all messages in the background getMessages(); } function getM...
window.onload=function(){ window.SnakeGame={ // Snake Initialize positon and prototype snake:{ x:100, // x-coordinate y:40, // y-coordinate w:20, // width of each snake cell h:20, // height of each snake cell s:5, // no of snake cell d:"R" //Direction of the snake movement }, ...
import { Container, Row, Col } from 'react-bootstrap'; import './portifolio.css'; import './arrow.scss'; import olhosAzuis from '../../images/portifolio-inicial/foto.jpg' import louis from '../../images/portifolio-inicial/6.png' import jornal from '../../images/portifolio-inicial/15.jpg' import { Link } from "react-rou...
import './style' import h from '@kuba/h' import text from '@kuba/text' function component () { return ( <text.P className='pageNotFound__sorry' master md> Sorry, the page you are looking for doesn&apos;t exist. Here are some helpful links </text.P> ) } export default component
//task1 'use strict'; let admin, name; name = "Chanda Kumari"; admin = name; console.log(admin); //task2 let nameOfOurPlanet = "Earth"; let CurrentVisitor = "Chanda"; console.log(nameOfOurPlanet); console.log(CurrentVisitor); //task3 const birthday = 18041982; //const age = someCode(birthday); //birthday = 7071999;...
;(function ($) { 'use strict'; var content = $('#main').smoothState({ // onStart runs as soon as link has been activated onStart : { // Set the duration of our animation duration: 250, // Alterations to the page render: functio...
angular.module('Hotel.Room') .controller('ExchangeCtrl', function (RoomModel, RoomService) { var exchangeroom = this; //总共的层数设置 exchangeroom.floors = RoomService.getAllFloorTypes(); //总共的房子类型 exchangeroom.room_types = RoomService.getAllRoomTypes(); //当前的房间...
import React, { useState } from "react"; import eventWatcher from "./tools/eventWatcher"; import { useDispatch } from "react-redux"; const Create = ({ sendStatus }) => { const dispatch = useDispatch(); const [createFlow, setCreateFlow] = useState({ todo_title: null, todo_body: null, todo_status: false, ...
const inputs = document.querySelectorAll(".controls input"); function handleUpdate() { const px = 'px'; console.log(1); if(this.name == "spacing" || this.name == "blur") { document.documentElement.style.setProperty(`--${this.name}`, this.value + px); } else { document.documentElement.st...
var treasuretables = { drop: function (mission, pos, dropLevel) { if (UFX.random() < this.noDropChance(dropLevel)) return if (UFX.random() < this.getMetalChance(dropLevel)) { this.dropMetal(mission, pos, dropLevel) } else { if (UFX.random() < 0.75) { var item = makeWeapon(this.getRandomWeaponSpec(drop...