text
stringlengths
2
1.04M
export default class WebWorker { constructor(worker) { const code = worker.toString(); const blob = new Blob(['('+code+')()']); return new Worker(URL.createObjectURL(blob)); } }
/* * Copyright 2017 Cray Inc. * * 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 law or agreed to in ...
module.exports = { "index": 1, "lineNumber": 1, "column": 2, "message": "Invalid regular expression: /(?<)/: Invalid capture group name" };
import gulp from 'gulp' import less from 'gulp-less' import msg from 'gulp-messenger' import config from './gulp.config' import path from 'path' import concat from 'gulp-concat' import size from 'gulp-size' gulp.task('less', () => { return gulp.src(config.less.src) .pipe(concat(config.less.filename)) ....
const assert = require('assert'); const mehdown = require('../../lib'); describe('kaltura', function() { it('https://cdnapisec.kaltura.com/index.php/extwidget/preview/partner_id/2056591/uiconf_id/33370462/entry_id/0_h4hdsqdk/embed/dynamic', function(done) { mehdown.render('https://cdnapisec.kaltura.com/in...
/* Copyright (c) 2018-2019 Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ // @flow // BASEUI-GENERATED-REACT-ICON // DO NOT EDIT THIS FILE DIRECTLY, SEE README.md import * as React from 'react'; import Icon from './icon...
module.exports = (text) => { return text.trim().split(/\\n*\s+|\s+/); }
const m = [0, 3, 1, 7, 5, 9, 8, 6, 4, 2, 0, 0, 0, 0, 0, 0, 7, 0, 9, 2, 1, 5, 4, 8, 6, 3, 0, 0, 0, 0, 0, 0, 4, 2, 0, 6, 8, 7, 1, 3, 5, 9, 0, 0, 0, 0, 0, 0, 1, 7, 5, 0, 9, 8, 3, 4, 2, 6, 0, 0, 0, 0, 0, 0, 6, 1, 2, 3, 0, 4, 5, 9, 7, 8, 0, 0, 0, 0, 0, 0, 3, 6, 7, 4, 2, 0, 9, 5, 8, 1, 0, 0, 0, 0, 0, 0, 5, 8, 6, 9, 7, 2, 0, ...
const path = require("path"); const nodeExternals = require("webpack-node-externals"); const FriendlyErrorsWebpackPlugin = require("friendly-errors-webpack-plugin"); module.exports = env => { return { target: "node", node: { __dirname: false, __filename: false }, externals: [nodeExternals...
'use strict'; /* @flow */ import React, { PropTypes, Component } from 'react'; import { Platform, View, Keyboard, LayoutAnimation, UIManager, } from 'react-native'; type Props = { offset?: number, } type State = { keyboardHeight: number } // Consider contributing this to the popular library: // https...
class Boat { constructor(x, y, width, height, boatPos) { this.body = Bodies.rectangle(x, y, width, height); this.width = width; this.height = height; this.image = loadImage("./assets/boat.png"); this.boatPosition = boatPos; World.add(world, this.body); } remove(index){ setTimeout(...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M5 19h14V5H5v14zm2.5-7c0-.2.02-.39.04-.58l-1.27-.99c-.11-.09-.15-.26-.07-.39l1.2-2.07c.08-.13.23-.18.37-.13l1.49.6c.31-.25.66-.44 1.02-.6l.22-1....
import 'pixi' import Phaser from 'phaser' import BootState from './states/Boot.js' import InGameState from './states/InGameState.js' import Level from './managers/level.js' var game = new Phaser.Game( 5000, 5000, Phaser.AUTO, ''); var bootState = new BootState( game ); var inGameState = new InGameState( game ); var l...
import React, {Component} from 'react'; import {View,Text,Button} from 'react-native' export default class Doc extends Component { render(){ return( <View> <Text>文档页</Text> </View> ) } }
wax = wax || {}; wax.g = wax.g || {}; // Bandwidth Detection // ------------------ wax.g.bwdetect = function(map, options) { options = options || {}; var lowpng = options.png || '.png128', lowjpg = options.jpg || '.jpg70'; // Create a low-bandwidth map type. if (!map.mapTypes['mb-low']) { ...
//# sourceMappingURL=main.a9c288f0.chunk.js.map
#!/usr/bin/env node 'use strict'; // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will // terminate the Node.js process with a non-zero exit code. process.on('unhandledRejection', err => { throw err; }); const spawn = re...
/** ========================================================= * Material Dashboard 2 PRO React - v2.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/material-dashboard-pro-react * Copyright 2022 Creative Tim (https://www.creative-tim.com) Coded by www....
var cy = cytoscape({ container: document.getElementById('cy'),// container to render in zoom: 1.6, // wheelSensitivity: 0.2, style: [ // the stylesheet for the graph { selector: 'node', style: { 'background-color': 'rgba(207, 103, 221, 0.49)', 'color': 'flo...
import React from 'react'; import { create } from 'react-test-renderer'; import { mount } from 'enzyme'; import Canvas from '../../Canvas'; jest.mock('../../Canvas/PureCanvas', () => 'PureCanvas'); const mockComponent = props => <Canvas {...props} />; describe('components/Common/<Canvas />', () => { it('should re...
"use strict"; var enhanceComponent_1 = require("./enhanceComponent"); exports.enhanceComponent = enhanceComponent_1["default"];
/* eslint-disable camelcase */ 'use strict' // eslint-disable-next-line one-var const reqlib = require('app-root-path').require const { Driver, NodeStatus, InterviewStage, extractFirmware } = require('zwave-js') const { CommandClasses } = require('@zwave-js/core') const utils = reqlib('/lib/utils.js') const Ev...
// Icon: Linear.ChevronDownCircle import React from 'react'; import defaultProps from 'components/common-ui/Icon/defaultProps'; export default props => ( <svg {...defaultProps} {...props}> <g> <path d="M830.336 881.538c91.869-91.869 142.464-214.016 142.464-343.938s-50.595-252.067-142.464-343.9...
(function() { // Instantiate our main module and pass ngRoute var myapp = angular.module('myapp', ['ui.router']); // Define the routes here myapp.config(function ($stateProvider, $urlRouterProvider) { // The "root" or default route uses the content of main.html for displa...
import React from 'react'; import { StyleSheet, TouchableOpacity, Text, View } from 'react-native'; import { createAppContainer } from 'react-navigation'; import { createStackNavigator } from 'react-navigation-stack'; import Home from './Home.js'; import CameraScreen from './CameraScreen.js'; import AnalysisStartScree...
'use strict' module.exports = args => { let options = {} let sources = [] if (!Array.isArray(args[args.length - 1]) && typeof args[args.length - 1] === 'object') { options = args.pop() } if (args.length === 1 && Array.isArray(args[0])) { // support ipfs.files.cp([src, dest], opts) sources = arg...
/********************************************/ /* © Arthur Guiot 2017 */ /* DisplayJS */ /* https://display.js.org/ */ /********************************************/ class DisplayJS { constructor(obj) { this.obj = obj; } /* DOM manipulation and browser API.*/ var (push) { ...
import React from 'react'; export default class App extends React.Component { constructor() { super(); this.state = { contador: 0 } } decrementar() { this.setState({ contador: this.state.contador - 1 }); } incrementar() { t...
require("dotenv").config({ path: `env/.env.${process.env.NODE_ENV}`, }) if (process.env.STAGING) { require("dotenv").config({ path: `.env.${process.env.NODE_ENV}.staging`, }) } else { require("dotenv").config({ path: `.env.${process.env.NODE_ENV}`, }) } module.exports = { siteMetadata: { title: ...
define(['data/web-worker/store', '../store/actions'], function(store, actions) { 'use strict'; return function(message) { var action = message.data.action; if (actions.isValidAction(action)) { store.getStore().dispatch(action); } else { console.error('Store actio...
<<<<<<< HEAD (function($) { /** * Generate an indented list of links from a nav. Meant for use with panel(). * @return {jQuery} jQuery object. */ $.fn.navList = function() { var $this = $(this); $a = $this.find('a'), b = []; $a.each(function() { var $this = $(this), indent = Math.max(0, $th...
function clearMessageField() { $(".error").text(""); $(".success").text(""); } // Changing password using AJAX $(document).ready(function () { $("#resestPassword").submit(function (event) { console.log("called"); event.preventDefault(); clearMessageField(); let formData = new...
import React, { useState, useEffect, useCallback, useContext } from 'react' import debounce from 'lodash/debounce' import { Input } from './Inputs' import CheckoutLineItem from './CheckoutLineItem' import { FormContext } from './CheckoutForm' import { Button } from '.' import { isEmpty, makeFullAddress } from '@open-te...
$(function(){ let $hoge = $('.hoge'); $hoge.morphing({ numVert: 10, spring: 0.005, friction: 0.8, radius: 65, fps: 90 }); });
import {collatedTasks} from '../constants' export const getTitle = (projects, projectId) => projects.find(project => project.projectId === projectId) export const getCollatedTitle = (projects, key) => projects.find(project => project.key === key ) export const collatedTasksExist = selectedProject => coll...
$(document).ready(function () { $('#login').click(function () { var username = $('#email').val(); var password = $('#psw').val(); $.ajax({ url: '/login', dataType: "json", contentType: "application/json", data: JSON.stringify({ ...
/** * jQuery scroroller Plugin 1.0 * * http://www.tinywall.net/ * * Developers: Arun David, Boobalan * Copyright (c) 2014 */ (function($){ $(window).on("load",function(){ $(document).scrollzipInit(); $(document).rollerInit(); }); $(window).on("load scroll resize", function(){ $('.num...
function generator$pathfinder$sylphs(type) { var nm1 = ["", "", "", "", "", "c", "d", "f", "g", "h", "j", "l", "m", "n", "s", "v", "w", "z"]; var nm2 = ["a", "e", "i", "u", "a", "e", "i", "u", "a", "e", "i", "u", "a", "e", "i", "u", "a", "e", "i", "u", "aa", "uu", "ii"]; var nm3 = ["d", "f", "g", "j", "k", "l", "m",...
/*! Select2 4.0.2-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Túl hosszú. ...
// Required for side-effects require("firebase/functions"); const XLSX = require("xlsx"); const Zlib = require("zlib"); const Tables = require("./tables"); // Common button color definitions amongst all files const LightBlue = " style=\"background-color:#33C3F0;color:#FFF\" "; const DarkBlue = " style=\"background-col...
import { AbstractEditor } from '../editor.js' import { extend } from '../utilities.js' export class SelectEditor extends AbstractEditor { setValue (value, initial) { /* Sanitize value before setting it */ let sanitized = this.typecast(value) const haveToUseDefaultValue = !!this.jsoneditor.options.use_de...
import React from "react" import Helmet from "react-helmet" import { StaticQuery, graphql } from "gatsby" import Header from "./header" import Footer from "./footer" const Layout = ({ children }) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { siteMetadata { ...
'use strict'; /* eslint no-use-before-define: "off" */ const assert = require('bsert'); const {StringDecoder} = require('string_decoder'); async function readLine(prefix = '', secret = false) { assert(typeof prefix === 'string'); assert(typeof secret === 'boolean'); const {stdin, stdout} = process; const de...
import 'vue-iclient/src/common/_assets/iconfont/icon-sm-components.css'; import 'vue-iclient/src/common/_utils/style/common/common.scss'; import 'vue-iclient/src/common/card/style/index.js'; import 'vue-iclient/src/common/collapse/style/index.js'; import 'vue-iclient/src/common/collapse-card/style/collapse-card.scss'; ...
// Copyright 2012 Traceur Authors. // // 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 law or agreed ...
import React from "react" import Layout from "../components/Layout" export default function recetas() { return ( <Layout> <h2>recetas</h2> </Layout> ) }
require('./bootstrap'); import { createApp, h } from 'vue'; import { createInertiaApp } from '@inertiajs/inertia-vue3'; import { InertiaProgress } from '@inertiajs/progress'; const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel'; createInertiaApp({ title: (title) => `${title} -...
/*Define a students variable and assign an empty array Assing students values in the following indexes: 0, 1, 2, 3, 4 and 5 Show the index number and value as otput: index 0: Marta*/ const students = []; students[0] = 'Marta'; students[1] = 'Nico'; students[2] = 'Mia'; students[3] = 'Pablo'; students[4] = 'Michal'; s...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.baToJSON = exports.addHexPrefix = exports.toUnsigned = exports.fromSigned = exports.bufferToHex ...
addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) const links = [ { 'name': 'My Professional Website', 'url': 'https://cthnn.github.io/' }, { 'name': 'My Favorite Project', 'url': 'https://github.com/Cthnn/VIP-Autonomous-Car' }, { 'name': 'A Link to my Favorite Song', 'url'...
function calculartemperature(){ let temperature1 = document.getElementById("firstselectbox").value let temperature2 = document.getElementById("secondselectbox").value let temepraturenumber = document.querySelector("input.temperatureconverter").value if (temperature1 == 1 && temperature2 ==2){ l...
import React, {Component} from 'react' import { AppRegistry, Text, View, StyleSheet } from 'react-native'; class Blink extends Component { constructor(props) { super(props); this.state = {showText: true}; setInterval(() => { this.setState(previousState => { ...
//아직 안쓰임
import React from 'react' import './bootstrap.min.css'; import './App.css'; import ChatPage from './views/home'; import { v4 as uuid } from 'uuid' import { useEffect, useState } from 'react' function App() { const [uid, setUid] = useState("") useEffect(() => { const generateUUID = uuid() setUid(generateUU...
"use strict"; var helpers = require("../../helpers/helpers"); exports["America/Juneau"] = { "guess:by:offset" : helpers.makeTestGuess("America/Juneau", { offset: true, expect: "America/Anchorage" }), "guess:by:abbr" : helpers.makeTestGuess("America/Juneau", { abbr: true, expect: "America/Anchorage" }), "1942" :...
(function() { var rendering; rendering = require("../../core/methods/rendering.js"); module.exports = { accepted: function(vars) { var list; list = vars.types[vars.type.value].shapes; if (list && !(list instanceof Array)) { list = [list]; ...
const {assert} = require('chai'); const {describe, it} = require('mocha'); const {EscapeRegExp, Unescape, Escape, Words, TrimChar} = require('./string'); describe('Core String Tests', () => { describe('[Method]: EscapeRegExp', () => { it('escape RegEx', () => { assert.equal(EscapeRegExp('[test]...
module.exports = { initiator: { incoming: { initiator: 'recvonly', responder: 'sendonly', both: 'sendrecv', none: 'inactive', recvonly: 'initiator', sendonly: 'responder', sendrecv: 'both', inactive: 'none' ...
import Axios from 'axios' import Vue from 'vue' import { Notify } from 'quasar' /** * axios initialization */ const axios = Axios.create({ // baseURL: Vue.prototype.$baseURL, timeout: Vue.prototype.$timeOut }) axios.interceptors.request.use( config => { const token = sessionStorage.getItem('access_token'...
/* eslint-env node */ import Typography from 'typography' import TypographyTheme from 'typography-theme-wordpress-2016' TypographyTheme.overrideThemeStyles = () => { return { h1: { fontFamily: textFontFamily.join(','), }, a: { boxShadow: `none`, }, 'a.social': { borderBottom: '1...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; var path = require('path'); // Don't forget to everything listed here to `package.json` // modulePathI...
import LinkedListNode from './LinkedListNode' import Comparator from '../../utils/comparator/Comparator' export default class LinkedList { /** * * @param {*} ComparatorFunction */ constructor (ComparatorFunction) { // 头指针 this.head = null // 尾指针 this.tail = null // 比较函数 t...
'use strict'; const common = require('../common'); const assert = require('assert'); const fixtures = require('../common/fixtures'); // Tests that calling disableRenegotiation on a TLSSocket stops renegotiation. if (!common.hasCrypto) common.skip('missing crypto'); const tls = require('tls'); // Renegotiation as ...
const Discord = require('discord.js'); const {crearDB} = require("megadb"); const account = new crearDB("cuenta", "usuarios"); module.exports = async(client, message, args) => { if(!args.join(" ") && !account.has(message.author.id)) return message.channel.send("You need to link your account (`!link <Account Name>`),...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'ion'; var iconName = 'git-branch-outline'; var width = 512; var height = 512; var ligatures = []; var unicode = null; var svgPathData = 'M 160 32 C 124.84329 32 96 60.84329 96 96 C 96 125.63868 116.50001 150.78793 144 157.95312 L...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.mqtt = f()}})(...
/** * Minified by jsDelivr using UglifyJS v3.1.10. * Original file: /npm/ngdraggable@0.1.10/ngDraggable.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ //# sourceMappingURL=/sm/f3ee4ea96493c4587a098e2d6864ab9e05e93ae9fa99c0ad2fb744...
/** * Created by ANDREW on 9/4/2015. */ import app from '../App'; app.directive('cntFixed', ['$document', '$log', ($document, $log) => { return { //controllerAs: 'ctrl', replace: true, scope: { dirWidth: '=cntWidth', dirHeight: '=cntHeight' }, t...
angular.module('web').factory('Cipher', function() { var crypto = require('crypto'); var ALGORITHM = 'aes192'; var KEY = 'x82m#*lx8vv'; return { cipher: cipher, decipher: decipher }; function cipher(buf, key, algorithm) { if (!buf instanceof Buffer) { buf = new Buffer(buf); } va...
const db = require("../database/db-config.js"); module.exports = { findByUserId, findById, add, update, remove }; function findByUserId(userId) { return db("userGenre") .where( "userGenre.userId", userId ); } function findById(genreId) { return db("userGenre").where({ genreId }); } function add(g...
module.exports = { // Keys and other mathematical constants KEY_ESC: 27, KEY_ENTER: 13, KEY_CHAT: 13, KEY_FIREFOOD: 119, KEY_SPLIT: 32, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT: 39, KEY_DOWN: 40, borderDraw: false, spin: -Math.PI, enemySpin: -Math.PI, mobile: false, ...
import React from "react"; import {FormGroup, Label, Input} from "helpers/reactstrap"; export default ({updateArgs, args, client}) => { return ( <FormGroup className="macro-addShortRangeComm"> <p> Create a comm using either the name of the signal, the frequency, or nothing. If the simulator...
module.exports = function(app) { app.get('/',function(req,res){ res.render('main_kr.html') }); app.get('/main_en',function(req,res){ res.render('main_en.html') }); app.get('/main_jp',function(req,res){ res.render('main_jp.html') }); }
import $ from "../utils/vent"; import logger from "../utils/logger"; document.addEventListener("DOMContentLoaded", () => { $(document).on("click", ".toggle-truncate", function (e) { if (e.target.classList.contains("truncate")) { // if truncate class was added directly to the element e.target.classLis...
var searchData= [ ['failure_88',['FAILURE',['../class_device_claim.html#a3b8fa73b094f9c15b4ad1faa8df37f5ba36fc6065a3e970bc3e6b2e59da52bf2a',1,'DeviceClaim::FAILURE()'],['../class_device_claim.html#a8fd4d037bc46f4327f658c34ea47589fa36fc6065a3e970bc3e6b2e59da52bf2a',1,'DeviceClaim::FAILURE()']]] ];
export const clientConfig = Object.freeze({ wsBaseUrl : 'http://localhost:3001/', isLoggerEnabled : true, isDefaultMessageHandler:true, lang:'en' })
var appRoutesMap = {}; var appRoutes = []; /** * @alias frontend.apps */ class AppInjector { /** * This portion of the API handles all pages relevant to apps. */ constructor(frontend) { this.store = frontend.store; // queryApp is called each time an event happens involving a app. ...
import { __extends } from "tslib"; import { Injectable } from '@angular/core'; import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core'; var FirebaseCrash = /** @class */ (function (_super) { __extends(FirebaseCrash, _super); function FirebaseCrash() { return _super !== null &...
/*! * Metro JS for jQuery * http://drewgreenwell.com/ * For details and usage info see: http://drewgreenwell.com/projects/metrojs Copyright (C) 2013, Drew Greenwell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
/* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable no-console */ import React, { useState, useEffect } from 'react'; import moment from 'moment'; // eslint-disable-next-line no-restricted-imports import { Table, Spin } from 'antd'; import { DATE_TYPE } from '~~constants/index'; import { TableApi } from ...
/* Name: Business Consulting 2 Written by: Okler Themes - (http://www.okler.net) Theme Version: 9.0.0 */ (function( $ ) { 'use strict'; // Accordion $("[data-parent='#accordionServices']").on("click", function() { var trigger = $(this); $("#accordionServices .collapse.show").each(function() { if (trigg...
'use strict'; const Model = require('../model.js'); const productsSchema = require('./products-schema.js'); class Product extends Model { constructor(schema) { super(schema); } } module.exports = new Product(productsSchema);
var firstName = prompt("What is your first name"); var lastName = prompt("What is your last name"); var age = prompt("What is your age"); console.log("Your full name is " + firstName + " " + lastName); console.log("Your age is " + age);
import { delay } from 'async-agent'; import keyCodes from 'keycodes'; import { applySettings, AUTO, DockPoint, HUNDRED_PERCENT, isString, methodArray, methodBoolean, methodString } from 'type-enforcer-ui'; import controlTypes from '../controlTypes.js'; import Div from '../elements/Div.js'; import Heading from '...
/*! * ScrollMagic v2.0.5 (2015-04-29) * The javascript library for magical scroll interactions. * (c) 2015 Jan Paepke (@janpaepke) * Project Website: http://scrollmagic.io * * @version 2.0.5 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @file ScrollMagic G...
var gulp = require('gulp'); const ghPages = require('gulp-gh-pages'); gulp.task('pages', function() { return gulp.src(["./index.html","./demo/*","./test/*", "./bower_components/**/*"],{base: '.'}) .pipe(ghPages()); });
// @ts-check import { E } from '@agoric/eventual-send'; import { Far } from '@agoric/marshal'; import { makeIssuerKit, AmountMath } from '@agoric/ertp'; import buildManualTimer from '@agoric/zoe/tools/manualTimer.js'; const ONE_DAY = 24n * 60n * 60n; const setupBasicMints = () => { const all = [makeIssuerKit('mool...
import XElement from '../../lib/x-element/x-element.js'; import MixinRedux from '../mixin-redux.js'; import XAmount from '../x-amount/x-amount.js'; import XIdenticon from '../x-identicon/x-identicon.js'; import XAddress from '../x-address/x-address.js'; import { accounts$ } from '../../selectors/account$.js'; import Ac...
// alert ("esto es una alerta"); // promt("Dame un numero: "); var edad = prompt("Dime tu edad chinga"); console.log("La edad del usuario es:" + edad); // console.log ("La edad del usatrio") if (edad >= 18) { alert("el usuario es mayor de edad"); } else{ alert("el usario no es mayor de edad wey! ") }
jQuery(document).ready(function(){ jQuery("#wpadminbar").wrap("<div class=\'admin_cover\'></div>"); jQuery("#adminmenuwrap").wrap("<div class=\'admin_menu_cover\'></div>"); jQuery("<script>var str = document.getElementById(\"wp-admin-bar-my-account\").innerHTML; var res = str.replace(\"s=16\", \"s=64\...
load("1d8ada728956c1a3d52d68d1d4d6dd52.js"); // Copyright 2009 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the a...
const userService = require("../services/userService"); const encryptionService = require("../services/encryptionService"); exports.decryptPasswords = async (passwords, user_id) => { const key = await userService.getUserPrivateKey(user_id); return passwords.map((password) => { password.password = encryptionServic...
'user strict'; /** * 初始化数据库 */ let userDb = require('../db/mongodb/users.js'); let util = require('../utils/util.js'); /** * 初始化数据库 * @return {[type]} [description] */ function initDb(){ initUsersDb(); } /** * 初始化用户数据库表 * @return {[type]} [description] */ function initUsersDb(){ if(process.env.NODE_ENV === ...
const router = require("express").Router(); const { Post, Comment } = require("../models"); const withAuth = require("../utils/auth"); const User = require("../models/user"); console.log(User, "stuff"); router.get("/", async (req, res) => { try { const postData = await Post.findAll({ include: User, });...
/** * Keycode constants */ module.exports = { "ENTER": 13, "BACKSPACE": 8, "TAB": 9, "CTRL": 17, "ALT": 18, "SPACE": 32 }
var UnityLoader = UnityLoader || { Compression: { identity: { require: function() { return {}; }, decompress: function(e) { return e; } }, gzip: { require: function(e) { var t = { "inflate.js": function(e, t, r) { "use strict"; ...
/*global describe it expect console JS_ENV beforeEach*/ import TestUtils from 'react-addons-test-utils'; import createHistory from 'history/lib/createHashHistory'; import React from 'react'; import _ from 'lodash'; import Layout from './layout.component'; import StateManager from './../../lib/state_manager/state_mana...
function solve(args) { 'use strict'; var input = args[0].split('\n'); var arr = input[1].split(' ').map(Number); function firstLarger() { for (var i = 1; i < arr.length - 1; i += 1) { if (arr[i] > arr[i - 1] && arr[i] > arr[i + 1]) { return console.log(i); ...
( function ( mw, $ ) { 'use strict'; var debug, hovzer = $.getFootHovzer(); /** * Debug toolbar. * * Enabled server-side through `$wgDebugToolbar`. * * @class mw.Debug * @singleton * @author John Du Hart * @since 1.19 */ debug = mw.Debug = { /** * Toolbar container element * * @prop...
import React from 'react'; var TWEEN = require('tween.js'); import OaBaseComponent from "oa/react/OaBaseComponent"; //import OpenCloseExpandableArea from "oa/react/interaction/OpenCloseExpandableArea"; export default class OpenCloseExpandableArea extends OaBaseComponent { constructor (props) { super(props); ...