text
stringlengths
7
3.69M
variable = "varIabLe"; console.log(`This is one way to pass a ${variable}`); console.log('This is another way to pass a ' + variable); console.log('Let\'s check types:\n'); var number = 5.1234098098098345098153451; console.log(`${number} is a type of ` + typeof number); var string = "Stringy" + "cheese"; var num2str = ...
(function() { 'use strict'; var app = angular.module("githubViewer"); var GithubOneRepoController = function($scope, $routeParams) { //$scope.repoName = $routeParams.repoName; $scope.repoNameTest = "Test REPO NAME"; $scope.repoName = $routeParams.repoName; //$scope.contribu...
let first = document.body.firstChild; first.innerHTML = "I am the first child!"; // first.parentNode.innerHTML = 'I am the parent and my inner HTML has been replaced!';
function spawnCommentBox(){ document.getElementById('commenting-box').style.display = 'block'; } function postComment(){ console.log('Posting Comment...'); let commentValue = document.getElementById('comment-input').value; let currentUserPk = currentDetailUserPk; $.ajax({ type: "POST", ...
import React from "react"; import { connect } from "react-redux"; import { getFastSearch } from "./redux/actions.js"; import { getHash } from "../util/getHash.js"; import "./css/hot_search.css"; const fastSearchOptions = [ { className: "hot-search__image-new-building", elements: [ { title: "Каталог н...
const express = require("express"); const router = express.Router(); const insertExperiment = require("../library/insertExperiment"); /** * Express.js router for /newExperiment * * Create a new experiment under specific project with given experiment information */ const newExperiment = router.post('/newExperiment...
'use strict'; const express = require('express'); const app = express(); let count = 42; // this should update based on sensor reading app.use('/static', express.static(__dirname + '/src/public/')); app.set('view engine', 'pug'); app.set('views', __dirname + '/src/templates/'); app.use('/static', express.static(__...
"use strict"; class listTableOptions { constructor(options) { if (options.withColumns === undefined) { this.withColumns = false; } if (options.withPrimaryKey === undefined) { this.withPrimaryKey = true; } } } module.exports = listTableOptions;
// JS Partials - Used in concat & uglify tasks var jssrc = [ // NO CONFLICT 'source/js/cagov/noconflict.js', // BOOTSTRAP 'source/js/bootstrap/alert.js', 'source/js/bootstrap/button.js', 'source/js/bootstrap/collapse.js', 'source/js/bootstrap/dropdown.js', 'source/js/bootstrap/modal.js', 'source/js/bo...
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsRepositories = { name: 'repositories', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 23.01l2.5-1.5 2.5 1.5V19H8v4.01zM8 5h2v2H8zM8 10h2v2H8zM8 15.01h2v2H8z"/><path d="M18.36 1.05A1.47 1.47 0 0018 1H6a2 2 0 00-2 2v...
QUnit.module( "Test call count - second case" ); QUnit[ window.sessionStorage ? "test" : "skip" ]( "does not skip tests after reordering", function( assert ) { assert.equal( window.totalCount, 2 ); } );
import React, {Component} from 'react'; import ListGroup from'react-bootstrap/ListGroup' class Category extends Component { render() { let {category} = this.props; return ( <ListGroup.Item variant="info" href="/category/:name">{category.name}</ListGroup.Item> ) } }...
/* * ProGade API * Copyright 2012, Hans-Peter Wandura (ProGade) * Last changes of this file: Aug 21 2012 */ /* @start class @param extends classPG_ClassBasics */ function classPG_Nodes() { // Declarations... // Construct... // Methods... /* @start method @return axInfos [type]mixed[][/typ...
var story = { "title": "Booking-flight", "pages": [{ "title": "Booking-flight", "height": 805, "width": 1001, "image": "Booking-flight.png", "links": [], "image2x": "Booking-flight@2x.png" }], "highlightLinks": true, "resolutions": [2] }
import React from 'react'; import { Scene, Router, Actions } from 'react-native-router-flux'; import LoginForm from './components/LoginForm'; import PetList from './components/PetList'; import PetCreate from './components/PetCreate'; import PetProfile from './components/PetProfile'; import PetEdit from './components/Pe...
import styled from 'styled-components'; const IconButton = styled.button` display: inline-flex; align-items: center; justify-content: center; min-width: 42px; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; outline: 0; transition: all 0.2s; background-color: transpare...
const { rem, hsla } = require('csx/lib') const { padding, scroll } = require('csstips') module.exports = ({ } = {}) => { return [ scroll, padding(rem(.8)), { $debugName: 'Debug', fontSize: rem(.96), backgroundColor: hsla(0, 0, 0, 1).lighten(0.2).toString(), color: hsla(0, 0, 1,...
import axios from 'axios'; import qs from 'qs'; function feedback(category, text) { const url ="https://script.google.com/macros/s/AKfycbwaeyBnsnO-zOXopeVfEF5r3cszfs6xOo_2WRb_vMduIY5Xy2c/exec"; return axios.post(url, qs.stringify({ category: category, text: text })); }; export default feedb...
import React, { Component } from 'react'; import "./containerone.css"; import ceepc from "../Assets/Pics/ceepc.png"; import logoc1 from "../Assets/Pics/LOGO_c_1.png" class ContainerOne extends Component { render() { return ( <div className="cards"> <article className="card"> ...
// initialization // condition // final statement // let i = 0; // for (; i < 5; ) { // // console.log(i); // // i++; // } // console.log(i); // let arr = [1, 2, 3, 4, 5]; // for (let i = 0; i < arr.length; i++) { // console.log(arr[i]); // } for (let i = 1; i <= 1000; i++) { if (i % 3 === 0 && i % ...
const passportHttp = require('passport-http'); const users = require('./../secure/users') || []; module.exports = new passportHttp.BasicStrategy({}, (username, password, done) => { const targetUser = users.find(user => user.username === username && user.password === password); if (targetUser) { return...
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "4f50f770b9c62ef204a5afc0cfb99bd5", "url": "/index.html" }, { "revision": "86c5fca0da678fa72dc0", "url": "/static/css/main.aa177f17.chunk.css" }, { "revision": "72729f8c5b9726d368f5", "url": "/static/js/2....
/** * Created by hui.sun on 15/12/10. */ /** * 4pl Grid thead配置 * check:true //使用checkbox 注(选中后对象中增加pl4GridCheckbox.checked:true) * checkAll:true //使用全选功能 * field:’id’ //字段名(用于绑定) * name:’序号’ //表头标题名 * link:{ * url:’/aaa/{id}’ //a标签跳转 {id}为参数 (与click只存在一个) * click:’test’ //点击事件方法 参数test(index(当前索引)...
import * as home from './action-type' export const saveBanner = ( data ) => { return { type : home.saveBanner , data } }
var request = require('request'); const common = require('./common'); //const { response } = require('express'); //need to handle for all the metricanmes exports.metricAlert = async(req,res) =>{ try { Promise.all(req.query.metricnames.map(async function (eachMetricName){ url = `https://managemen...
import React from 'react'; import logo from './logo.svg'; import './App.css'; import App1 from './App1'; import { useTranslation } from 'react-i18next'; import Particles from 'react-particles-js'; const App = () => { const { t, i18n } = useTranslation(); const changeLang = lang => { i18n.changeLanguage(lang) } c...
// Constant export const acrossBackFactor = 0.97 export const frontOverlap = 0.01 export const frontArmholeDeeper = 0.005 // Fit export const armholeDepthFactor = { pct: 70, min: 60, max: 80, menu: 'fit' } export const backScyeDart = { deg: 2, min: 0, max: 6, menu: 'fit' } export const centerBackDart = { pct: 2, min: 0...
import Link from 'next/link'; import React from 'react'; import useSticky from '../../hooks/use-sticky'; import MobileMenu from './mobile-menu'; import NavMenus from './nav-menus'; const HeaderTwo = () => { const { headerSticky } = useSticky(); return ( <React.Fragment> <header className="d-none d-lg-blo...
var Dom = require('xmldom').DOMParser; var fs = require('fs'); var FileKeyInfo = require('xml-crypto').FileKeyInfo; var select = require('xml-crypto').xpath.SelectNodes; var SignedXml = require('xml-crypto').SignedXml; /** * this piece of middleware verifies a digital signature from a soap web service **/ ...
import Codeck from '../src/Codeck' const smallDeck = ['AS', 'KS', 'QS', 'JS'] const smallCharset = [' ', 'X'] describe('Codeck', () => { test('Can be instantiated with or without `new`', () => { expect(new Codeck()).toBeInstanceOf(Codeck) expect(Codeck()).toBeInstanceOf(Codeck) }) test('Can be given a ...
const mongoose = require("mongoose"); const userModel= require("./createTask"); // to read task by id module.exports = readTask =async (id,owner)=>{ try{ const task = await userModel.findOne({ _id:id, createdBy: owner }) if(!task){ throw "Task not found"; } return task; } catch(e){ throw e; } }
'use strict'; /** * @ngdoc overview * @name cookieApp * @description * # cookieApp * * Main module of the application. */ /*angular .module('cookieApp', [ 'ngCookies' ]);*/ angular .module('cookieApp', ["ui.router","ngCookies"]).controller('zd',['$scope','$http','$cookieStore',function ($scope,$http,$...
const inquirer = require('inquirer') const clear = require('clear') const edit = (next, task) => inquirer .prompt([ { type: 'input', name: 'update', message: `Update`, default: () => `${task.name}`, validate: function (value) { return value !== '' } } ]).then(answ...
'use strict'; const { expect } = require('chai'); const { createStubInstance } = require('sinon'); const { CollectionReference, DocumentReference, Firestore } = require('@google-cloud/firestore'); const StaffMembershipRequestRepository = require('../../../src/lib/repository/staff-membership-request-repository');...
import {LOAD_PRODUCTS_BY_CATEGORY, LOAD_PRODUCTS_BY_CATEGORY_ERROR} from "../constants/productConstant"; const DEFAULT_STATE = { products: [], loading: true }; export default function(state = DEFAULT_STATE, action) { switch (action.type) { case LOAD_PRODUCTS_BY_CATEGORY: return { ...st...
// ==UserScript== // @name Assignments UC Paste Comments // @namespace https://jorgecardoso.eu // @version 0.1 // @license MIT // @description Allows pasting Comments directly on the Assignments page of the InforDocente system of the University of Coimbra. Just copy (Ctrl-C) a table from a spreadsheet ...
import angular from 'angular' (function() { 'use strict' angular.module('tc.account').config(routes) routes.$inject = ['$stateProvider'] function routes($stateProvider) { var states = { 'auth': { parent: 'root', abstract: true, data: { authRequired: false ...
$(document).ready(function(){ (function(){ $("input:password").bind("copy cut paste",function(e){ return false; }); $("#reg").validate({ rules:{ userName:{ required: true, rangelength:[5,10], ...
import NodeSelector from "./NodeSelector" export default NodeSelector
/* See license.txt for terms of usage */ define([ "firebug/lib/trace", ], function(FBTrace) { // xxxHonza: FBTrace isn't available when loading from within bootstrap.js // The default FBTrace implementation should buffer all logs that are fired // before the tracing console is opened. // ************************...
// Show the table with the robot /** * Draw the table with the robot on screen. * * @param {object} state Simulation state. */ export function draw(state) { // Set the CSS variables for the number of rows and columns document.documentElement.style.setProperty("--colNum", state.xMax + 1); document.document...
var person = readline("Please enter your name", "Harry Potter"); console.log('hello'+ person)
module.exports = require('./filter.js')
'use strict' let lolConfig = require('./lolConfig') module.exports = { lolConfig }
import React from 'react'; import ReactDOM from 'react-dom'; import Index from './pages/index'; import Vendor from './pages/Vendor'; import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; import './assets/styles/app.css'; const theme = createMuiTheme({ palette: { type: 'dark', ...
import Mock from 'mockjs'; import $store from '../../../store/index.js' const login_adminUrl = $store.state.mock.url.loginAdminUrl; const login_admin = { 'success': true, 'flag':'login_success', 'user|1': [ { "data": { "grade": 0, "account": /^[a-zA-Z]{1...
const youreSuperSpecial = false; const doYouLikeCarrotCake = "yes I do"; console.log({ youreSuperSpecial, doYouLikeCarrotCake });
/** * Created by ssanchez on 28/12/15. */ /** * Home controller * * @param $rootScope * @param $scope * @constructor */ function HomeCtrl ($rootScope, $scope, $window) { $scope.scrollerNavVisible = true; } /** * Se añadio la funcionalidad * al buscador de la home * * @param $rootScope * @param $windo...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { configure, shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() }); describe('App tests', () => { it('App renders without a problem', () => { const div = documen...
import React from "react" import rp from "request-promise" import mathjs from "mathjs" import katex from "katex" import Sherlock from "sherlockjs" // time parsing library const {clipboard} = window.require("electron") const wolframtoken = require("./secret.js").wolframToken const dataURI = require("./dataURIs.js") co...
import React from 'react'; import ReactDOM from 'react-dom'; // import createReactClass from 'create-react-class'; const Welcome = ((props) => { return ( <div> <h4>Welcome to my site, {props.firstName}!</h4> <h4>{props.lastName}</h4> </div> ) }); class App extends React.Component ...
import React from 'react' import Link from 'gatsby-link' const IndexPage = () => ( <div> <h1>Reformulação do site</h1> <p>A versão atual do site do OpenStreetMap Brasil é feita em jekyll e hospedada via Github Pages. Este é o primeiro esboço do site no processo de migração para uma <a href="https://jamstack....
/* * ProGade API * Copyright 2012, Hans-Peter Wandura (ProGade) * Last changes of this file: Aug 22 2012 */ var PG_CODEHIGHLIGHTER_DELIMITERS_INDEX_NAME = 0; var PG_CODEHIGHLIGHTER_DELIMITERS_INDEX_START = 1; var PG_CODEHIGHLIGHTER_DELIMITERS_INDEX_END = 2; var PG_CODEHIGHLIGHTER_DELIMITERS_INDEX_NOSLASHES = 3;...
import React from 'react'; import { shallow } from 'enzyme'; import { Link } from 'react-router-dom'; import Welcome from './Welcome'; describe('Welcome', () => { let wrapper; beforeEach(() => { wrapper = shallow(<Welcome />); }); it('Should contain an h1 displaying the word "Stratagem"', () => { expe...
"use strict"; class Utils { /** * Función getRandomIndexOfArray: Retorna una posición random desde un array. * @param {Array} array * @returns {Number} newRandomPosition */ static getRandomIndexOfArray(array) { return Math.floor(Math.random() * Number(array.length)); } /...
(function (window) { 'use strict'; /* * GAME CONFIGURATION */ var Game = { init: function () { this.canvas = document.getElementById("game"); this.canvas.width = this.canvas.width; this.canvas.height = this.canvas.height; this.ctx = this.canva...
/** * * @license Andy Mercer, (c) Stack Exchange Inc * licensed under CC BY-SA 3.0 - https://creativecommons.org/licenses/by-sa/3.0/ * source: https://stackoverflow.com/a/38225299/14570657 * * Modified into ES6 * * */ HTMLSelectElement.prototype.contains = function (value) { for (let option of this.op...
module.exports = function (req, res) { req.getCredentials(function (error, credentials) { if (error) res.json({ authenticated: false }); else res.json({ authenticated: credentials }); }); }
import React, { useEffect, Fragment, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getMyProfile, createProfile } from '../../actions/profile'; import { getJournals } from '../../actions/journal'; import { Form, Row, Col, ListGroup } from 'react-bootstrap'; ...
"use strict"; /***********************************************/ /* script to setup map and initialise plots */ /***********************************************/ const map = L.map('mapid', { renderer: L.canvas(), worldCopyJump: true }).setView([0, 0], 3); L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}...
/* 公共视图 */ let View = require("../../frameworks/mvc/View"); cc.Class({ extends: View, properties: { WAITING_ZORDER: 10, waiting: null, }, //显示透明loading并屏蔽掉所有事件响应 showWaiting(param) { if (!this.waiting) { // this.waiting = new WaitingLayer(); // th...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; class Dropdown extends Component { constructor(props) { super(props); this.state = { show: false, children: null, }; } render() { return ( <div className="bui-dropd...
function LikeButton(props){ return React.createElement('button', {}, props.titulo); }
// Controllers list define([ './generator', './mosaic' ], function(){});
'use strict'; module.exports = function(sequelize, DataTypes) { var jobType = sequelize.define('jobType', { typeName: DataTypes.STRING }, { classMethods: { associate: function(models) { // associations can be defined here } } }); return jobType; };
<%@ page import="org.opencms.jsp.*, org.opencms.workplace.*, org.opencms.main.*, org.opencms.file.types.CmsResourceTypeBinary" %><% %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><% CmsJspActionElement cms = new CmsJspActionElement(pageContext, reque...
{ "version": 1603013902, "fileList": [ "data.js", "c2runtime.js", "jquery-3.4.1.min.js", "offlineClient.js", "images/player-sheet0.png", "images/laser-sheet0.png", "images/bugenemy-sheet0.png", "images/crescentenemy-sheet0.png", "images/fighterenemy-sheet0.png", "images/bladeenemy-she...
const app = require('./app') const mongodbConn = require('./db/mongodb/mongodbConn') const { dbConfig } = require('./config') const port = process.env.PORT || 3001 async function appInit( port, app, dbConfig ){ try { await mongodbConn( dbConfig ) await app.listen(port, () => console.log(`listen: $...
angular .module('altairApp') .controller("orgPublicCtrl", ['$scope','lptypes','role_data', function ($scope,lptypes,role_data) { $scope.domain="com.peace.users.model.mram.SubLegalpersons."; var tool=[]; var com=[]; if(role_data[0].create>0){ to...
app.controller('indexController', function($scope, $location, friendsFactory){ $scope.friends = []; friendsFactory.index(function(data){ $scope.friends = data; }); //console.log($scope.friends); $scope.show = function(id){ $location.url('/show/' + id); } $scope.delete = function(id){ console.log(id); f...
const config = require('../config/baseConfig'); const jsonwebtoken = require('jsonwebtoken'); const logger = require('./logger').getLogger('err'); const checkToken = (req, callback) => { const token = req.body.token || req.query.token; if(!token) { logger.error('verify should be have token'); c...
'use strict' function Queue(){ var q = []; this.enqueue = function(v){ //console.log("enqueue "+v); q.push(v); } this.dequeue = function(){ var e = q.shift(); // console.log("dequeue "+e +"qu" +q); return e; } this.isEmpty = function(){ return ...
import baseBehavior from '../helpers/baseBehavior' import { $wuxBackdrop } from '../dialog-util' Component({ /** * 组件的属性列表 */ properties: { }, behaviors: [baseBehavior], externalClasses: ['wux-class'], /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { hide() { ...
export default function Log (prefix, msg) { let backPage = chrome.extension.getBackgroundPage() backPage.console.log(prefix) backPage.console.log(msg) console.log(msg) }
const express = require('express'); const { MongoClient } = require('mongodb'); var cors = require('cors'); // niddisto id onosare data delete korte hole ObjectId id import korte hobe - karon holo mongodb te _id ar por ObjectId onosare ase. such as , _id:ObjectId("032djos3993ndse09u3") const ObjectId = require('mongod...
import React, {useRef, useState} from 'react'; import { StyleSheet, Text, View, TouchableOpacity, TextInput, Keyboard, } from 'react-native'; import {Colors, Fonts} from '../../../Theme'; import {NrmIcon} from '../../../Components'; import {popup} from '../../../Common/Helpers'; const SearchBox = ({ goBa...
/** * Module dependencies. */ const appConsts = require('./app/config/appConstants') var express = require('express') var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var cors = require('cors'); var morgan = require('morgan'); /********************* Routes************************...
/* global _babelPolyfill */ export default typeof _babelPolyfill !== "undefined" && _babelPolyfill === true
/** * 保障房项目初始化 */ var queryProject = { id: "queryProjectTable", //表格id seItem: null, //选中的条目 table: null, layerIndex: -1, url:"", secondLayerIndex:-1 }; /** * 初始化表格的列 */ queryProject.initColumn = function () { return [ {field: 'selectItem', radio: false}, {title: '登记编号'...
import React from 'react'; import { connect } from 'react-redux'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { setSidePanel } from '../layout/uilayout-actions'; class NetworkAudit extends React.Component{ static icon = "wrench"; static label = "Network Audit"; constructor...
import React from 'react' import { connect } from 'react-redux' import { closeSnackbar } from '../actions/uiAction' import { Snackbar as SnackbarMI } from 'material-ui' const CLOSE_TIME_IN_MILLIS = 5000 const Snackbar = props => { const { closeSnackbar, isOpen, message } = props if (isOpen) { setT...
import React from 'react'; import PropTypes from 'prop-types'; import {withRouter} from 'react-router-dom'; import classes from './index.module.css'; import logo from './image.png'; import {languageHelper} from '../../../tool/language-helper'; export class NotificationCardReact extends React.Component { constructor...
const Trust = artifacts.require("Trust"); const Registration = artifacts.require("Registration") const P1Selection = artifacts.require("P1Selection") const P2Selection = artifacts.require("P2Selection") module.exports = async function(deployer,network, accounts ) { //async keyword is used to deploy in the order ne...
(function ($) { $.fn.extend({ //pass the options variable to the function confirmModal: function (options) { var html='<div class="modal fade" >'+ '<div class="modal-dialog">'+ '<div class="modal-content">'+ '<div class="modal-header"...
import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { makeStyles } from '@material-ui/styles'; import { IconButton, Popover, Typography } from '@material-ui/core'; import { HelpOutlineRounded } from '@material-ui/icons'; import { humanLevel } from '../utils/propTypes'; con...
function display(list) { if (list.head === null) { console.log(list.head) } else { let i = 0; let item = list.head; while (item.next !== null) { console.log(`${i}: ${item.value}`); i++; item = item.next; } ...
const Elevator = require('./elevator.js'); const Person = require('./person.js'); let elevator = new Elevator(); let jane = new Person("Jane", 1, 6); let bob = new Person("Bob", 2, 5); let mark = new Person("Mark", 3, 0); let tom = new Person("Tom", 5, 1); elevator.call(tom); elevator.call(jane); elevator.call(m...
import React, {useEffect, useState, useRef} from 'react' import $ from 'jquery'; import Link from "next/link"; import Modal from 'react-modal'; import Slider from "react-slick"; function Testimonies(props) { const [state, setState] = useState({ show: false }); let slider = useRef() const nex...
const path = require("path"); const mongoose = require("mongoose"); const Faculty = mongoose.model("Faculty"); const User = mongoose.model("User"); const bcrypte = require("bcrypt-nodejs"); module.exports.facultyHomePage = function(req, res){ dispathPageFaculty("home", res); } module.exports.facultyTakeAttendan...
import { ADD_FRIEND, REMOVE_FRIEND} from './friendsReducer'; const SHOW_MORE_USERS = 'SHOW-MORE-USERS'; // user: id, isActive, lastLogin, accountStatus, firstName, lastName, imgUrl, intro, country, city, gender, isFriend let initialState = { users: [], page: 1 }; export function searchPeopleReducer(state = initi...
import React from 'react' import { bindActionCreators } from 'redux' import Communications from 'react-native-communications' import { connect } from 'react-redux' import { Clipboard } from 'react-native' import * as actions from '../../store/reducer/sendMoney' import { openLoginForm, LOGIN_STATUSES } from '../../store...
import React from "react"; import "bootstrap/dist/css/bootstrap.min.css"; import { Container, Alert, Card, ListGroup, ListGroupItem } from "react-bootstrap"; import "../ReclamoBuscado/ReclamoBuscado.css"; import cerradura from "../../photos/cerradura.png"; export default class ReclamoBuscado extends React.Co...
//Debemos lograr mostrar un mensaje al presionar el botón 'MOSTRAR'. function Mostrar() { alert("Funciona 2-EntradaSalida"); var importe; importe=prompt("ingrese importe"); importe=importe*1.21 importe=document.getElementById("importe").value=importe; }
import React from 'react'; export default class App extends Component { render() { return ( <div> <h1 class="text-primary">Hi I'm Omer, and this is my Drumset app.</h1> <Controller /> </div> ) } }
document.getElementById("EGSEAplot1button").addEventListener("click", myFunction3); function myFunction3() { var plotHeight = document.getElementById("EGSEA1_plot_height").value + "px"; document.getElementById("EGSEA1").style = "height:" + plotHeight; }
goog.provide('SB.AmbientLight'); goog.require('SB.Light'); SB.AmbientLight = function(param) { param = param || {}; SB.Light.call(this, param); } goog.inherits(SB.AmbientLight, SB.Light); SB.AmbientLight.prototype.realize = function() { this.object = new THREE.AmbientLight(this.color); SB.Light.prototype.rea...
$(document).ready( function() { $('.flash_notice').fadeOut(3000); });
import React from 'react'; import Switch from '@material-ui/core/Switch'; const SwitchButton = (props) => { return ( <Switch onChange={props.onChange} color={props.color} checked={} /> ) }; export default SwitchButton;
'use strict' const mongo = require('mongodb').MongoClient const dbUrl = 'mongodb://localhost:27017/' + process.argv[2] const collection = process.argv[3] const id = process.argv[4] mongo.connect(dbUrl, (err, db) => { if (err) throw err db.collection(collection).remove({ _id: id }, err => { if (err) throw err ...
// Select color input and assign to a variable const color = document.querySelector('#colorPicker'); const table = document.querySelector('#pixelCanvas'); // Select size input const formSize = document.querySelector('#sizePicker') //I want to see if this shows up in my git // When size is submitted by the user, c...