text
stringlengths
7
3.69M
var variables________________________________c________________8js________8js____8js__8js_8js = [ [ "variables________________c________8js____8js__8js_8js", "variables________________________________c________________8js________8js____8js__8js_8js.html#a807e5474d0003c5eabe893159bd4b920", null ] ];
/* * Please see the included README.md file for license terms and conditions. */ /** @file app.js * Purpose: contains all of the javascript for the index file * * @author Keith Gudger * @copyright (c) 2016, Keith Gudger, all rights reserved * @license http://opensource.org/licenses/BSD-2-Clause * @version ...
// @ts-check /* eslint no-redeclare: 0 */ /* eslint camelcase: 0 */ /* eslint indent: ["error", 4, { "ignoredNodes": ["ConditionalExpression"] }] */ /* eslint curly: ["error", "multi", "consistent"] */ // var http = require('http'); /* var log4js = require('log4js') log4js.configure({ appenders: { consol...
import _ from 'lodash'; import { Noise } from 'noisejs'; import { calc } from 'popmotion'; import PIXI from '../../../utils/pixi'; import { mean } from '../../../utils/2d'; const noise = new Noise(); noise.seed(Math.random()); const thunderPoint = (points, index, target, middlePoints) => { const lastPoint = points...
describe('Weather', function() { var weather; beforeEach(function() { weather = new Weather(); }); it('Responds to stormy?', function() { expect(weather.isStormy).toBe(true||false); }) })
var express = require('express'), http = require('http'), conf = require('./conf'); var app = require('express')(), server = require('http').createServer(app), io = require('socket.io').listen(server); conf(app); server.listen(app.get('port'), function() { console.log("Express server listening on port " + app.g...
import { combineReducers } from 'redux' import { JOIN_ZONE, LEAVE_ZONE, REQUEST_ZONES, RECEIVE_ZONES, SELECT_ZONE, SET_HOVER_TARGET, REMOVE_HOVER_TARGET, START_CHANGE_REQUEST, END_CHANGE_REQUEST } from '../actions/ZoneActions' function availableZones(state = { fetching: true, selected: '', hove...
import Ember from 'ember'; /** * Clamp.js Component * Ember component for http://joe.sh/clamp-js * * @module * @augments ember/Component */ export default Ember.Component.extend({ clampDelay: 100, // Events /** * Initializes clamping on the nested content. * * @function * @returns {undefined...
import React from 'react' import PersonalSummary from '../myprofile/PersonalSummary'; import EducationalSummary from '../myprofile/EducationalSummary'; import ProjectsSummary from '../myprofile/ProjectsSummary'; import ExperianceSummary from '../myprofile/ExperianceSummary'; import TechnicalSkills from '../myprofile/T...
const app = require('./src/app'); const server = app.listen(5000, () => { console.log('Example app listening on port 5000!'); }); // The signals we want to handle // NOTE: although it is tempting, the SIGKILL signal (9) cannot be intercepted and handled var signals = { 'SIGHUP': 1, 'SIGINT': 2, 'SIGTERM': 15 ...
import React, { useState } from 'react' import { Result, Button } from 'antd'; const Success = () => { return ( <div> <Result status="success" title="Registration Successful!!!" subTitle="Your account is successfully registered with us. Please proceed to Login Page." extra={...
class RenderSpells { static $getRenderedSpell (sp, subclassLookup) { const renderer = Renderer.get(); const renderStack = []; renderer.setFirstSection(true); renderStack.push(` ${Renderer.utils.getBorderTr()} ${Renderer.utils.getExcludedTr(sp, "spell", UrlUtil.PG_SPELLS)} ${Renderer.utils.getNameTr(...
import React from "react"; import styled from "styled-components"; import { Form, Table } from "reactstrap"; import { IconButton } from "@material-ui/core"; import moment from "moment"; import { FormGroup, SingleSelectFormat, Loading } from "../../../common"; import AddIcon from "@material-ui/icons/Add"; // import Sear...
import { createAction } from '_Utils/tools' import { combineReducers } from 'redux' export const ACTIONS = { EXAMPLE_ACTION: 'example/example-action/started', EXAMPLE_ACTION_SUCCESS: 'example/example-action/success', EXAMPLE_ACTION_FAILED: 'example/example-action/failed' } // Statement Entries export const exam...
var trank = angular.module("trankApp"); trank.controller("LugaresController", function ($rootScope, $scope, $timeout, categoria, lugares, lugaresApi) { $rootScope.title = "Lugares da Categoria " + categoria[0].nome; $rootScope.meta_desc = "Tranks - Lista de lugares da categoria " + cat...
/* * 定义所有的action类型 * */ export const START = 'START'; export const STOP = 'STOP'; export const RESET = 'RESET'; export const RUN_TIMER = 'RUN_TIMER';
(function () { 'use strict' var createApp = function (context) { const Home = { template: '<div>home</div>' } const Foo = { template: '<div>foo</div>' } const Bar = { template: '<div>bar {{test}}</div>', data : function(){ return { test : '' } }, created :...
'use strict'; const chai = require('chai'); const chaiHttp = require('chai-http'); const server = require('../../server'); const Entry = require('../../app/models/entry'); const User = require('../../app/models/user'); const jwt = require('jsonwebtoken'); const config = require('../../config'); const expect = chai.exp...
const Converter = require('../converter') const length = require('./length') const angle = require('./angle') const time = require('./time') module.exports = [ new Converter("length", length), new Converter("angle", angle), new Converter("time", time) ]
import React from 'react'; import { query } from './webpack'; import { match } from 'react-router'; import render from './render'; import routes from '../../client/routes'; function findInWebpack (file, callback) { query(file, (err, body) => { callback(err, body); }); } export default (request, response, nex...
const starwars = require("starwars"); const app = document.getElementById("app"); app.innerText = starwars();
import main from 'main' import map from 'ramda/src/map' import value from 'main/processes/value' import selection from 'main/processes/selection' const cynics = [ 'Antisthenes', 'Diogenes of Sinope', 'Onesicritus', 'Philiscus of Aegina' ] const select = (v) => console.log('VALUE:', v) const selectText = (v...
$.fn.dataTableExt.afnSortData['dom-checkbox'] = function ( oSettings, iColumn ) { var aData = []; $( 'td:eq('+iColumn+') input', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () { aData.push( this.checked==true ? "1" : "0" ); } ); return aData; } $.fn.dataTableExt.afnSortData['dom-class'] = function ...
"use strict"; var app = { loading: function (){ // load image; setTimeout(function (){ $('.state .loadImage').fadeIn(); // download progress setTimeout(function (){ $('.stateLoad').fadeOut(); // into state01 app.s...
import React, { Component } from "react"; import axios from "./axios"; import { editProfile } from "./actions"; import { connect } from "react-redux"; import { withRouter } from "react-router-dom"; const mapStateToProps = (state, props) => { return { ...props, firstName: state.me.firstName, ...
/* $FreeBSD$ */ /* * Please do not commit to this file without receiving review from * [email protected]. */ /* Teach jslint the appropriate style rules. */ /*jslint browser:true*/ var enable_ga = true; var allow_track = true; var h = document.location.hostname; /* * Check that the hosting domain is actually...
/** * 클로저는 이너함수가 스코프 밖에 있는 변수에 접근하는 것 * 정보은닉, 함수 팩토리를 생성할 때 사용 */ const arr = [10, 11, 12, 13]; for (var i = 0; i < arr.length; i++) { setTimeout(function() { console.log("index : " + i); }, 3000); } // 결과 값 모두 3 // 이유 : setTimeout의 함수는 3초뒤에 실행됨. 그러므로 for문이 종료된 이후 // 마지막 인덱스가 적용됨 // setTimeout의 스코프와 for문의 ...
import gql from 'graphql-tag' const repositories = gql` query repositories( $login: String! $number_of_repos: Int $orderBy: RepositoryOrder ) { user(login: $login) { repositories(last: $number_of_repos, orderBy: $orderBy) { totalCount nodes { name forkCount...
"use strict"; const express = require("express"); const multer = require("multer"); const checkAccountSession = require("../controllers/account/check-account-session"); const checkRolePermission = require("../controllers/account/check-role-permission"); const createCompany = require("../controllers/company/create-comp...
import React from "react"; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@mat...
import Tumbler from './Tumbler'; export default Tumbler;
var tablero; var monopoly = { monopolyURI: '/img/metropoly-575.png', monopolyOK: false, casillas:[ [20,525], [20,475], [20,425], [20,375], [20,325], [20,275], [20,225], [20,175], [20,125], [20,75], [20,25], [70,25], [120,25], [170,25], [220,25], [270,25], [320,25], [370,25], [42...
document.addEventListener('DOMContentLoaded', () => { // Get all "navbar-burger" elements const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); // Check if there are any navbar burgers if ($navbarBurgers.length > 0) { // Add a click event on each of them $...
import {createActions} from 'src/App/helpers' const actions = createActions('HDSWITCH', [ 'TOGGLE_HD' ]) export default actions
$(function(){ var ConditionIFItem, conditionIFItem; // 注册一个Condition IF类型 ConditionIFItem = function(spec, inherit){ inherit = inherit || Design.item.root; var that = inherit(spec), superRemove = Object.superior.call(that, 'remove'), superGetNexts = Object.superior.call(that, 'getNexts')...
define(['dataTables'], function(){ wgn.console('programs module loaded','f'); // wgn.loadCss('stylesheets/wgn.marketcontext.css'); wgn.marketcontext = wgn.marketcontext || {}; wgn.marketcontext.selectedRow = false; wgn.marketcontext.parameters = wgn.marketcontext.parameters || {}; wg...
const app = getApp() Page({ /** * 页面的初始数据 */ data: { StatusBar: app.globalData.StatusBar, CustomBar: app.globalData.CustomBar, TabbarBot: app.globalData.tabbar_bottom, hidden: true, defaultAdd:false, region:['广东省', '广州市', '番禺区'] }, /** * 生命周期函数--监听页面加载 */ onLoad: function...
NewsReader.Routers.Router = Backbone.Router.extend({ routes: { "" : "index", 'feeds/:id' : 'feedShow' }, initialize: function(options) { this.feeds = new NewsReader.Collections.Feeds(); this.$rootEl = options.$rootEl; }, index: function () { this.indexView = new NewsReader.Views.FeedsIn...
import { AppError } from "../errors"; import { User } from "../models"; class UserController { async destroy(req, res) { const { userId: id } = req; const messages = { success: "Usuário deletado com sucesso.", error: "Ocorreu um erro. Por favor, tente novamente mais tarde.", user...
/* * Copyright (C) 2009-2017 SAP SE or an SAP affiliate company. All rights reserved. */ sap.ui.define([ 'jquery.sap.global', 'sap/ui/core/Control', 'sap/ui/thirdparty/d3', "sap/ui/core/ResizeHandler", "sap/ui/model/json/JSONModel" ], function($, Control, d3, ResizeHandler, JSONModel) { 'use strict'; ...
var fs = require("fs"); fs.readFileSync("input.txt").toString().split("\n").forEach(function (line) { if (line !== "") { swapElements(line); } }); function swapElements(line) { var temp = line.trim().split(":"), numbers = temp[0].trim().split(" ").map(function (n) { return parseInt(n); }),...
import React from 'react' import numeral from 'numeral' import moment from 'moment' import ExternalLink from './ExternalLink' const FeaturedDataset = ({ dataset, onClick }) => { const { peername, name, meta, structure, commit } = dataset const description = meta && meta.description ? meta.description : 'No descr...
import React, { PropTypes } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Layout.less'; import Header from '../Header'; import Sidebar from '../Sidebar'; import Loading from '../Loading'; import { Breadcrumb } from 'antd'; const BreadcrumbItem = Breadcrumb.Item; const ...
const readlineSync = require("readline-sync"); const t = Number(readlineSync.question("\nEnter a temperature: ")); const s = String(readlineSync.question("Enter a scale: ")) const ffp = 32; const fbp = 212; const cfp = 0; const cbp = 100; const kfp = 273; const kbp = 373; if (t < (Number.MIN_SAFE_INTEGER) || t > Nu...
window.addEventListener('load', () => { const game = new Game('canvas-game') game.start() // ==================================== // Computer / Laptops // ==================================== document.addEventListener('keydown', event => { game.onKeyEvent(event) }) document.addEventListener('keyu...
'use strict'; const key = 'bea1ef37a31e4f89ac4102550211508'; const url = 'https://api.weatherapi.com/v1/current.json?key=bea1ef37a31e4f89ac4102550211508&q=iasi&aqi=yes'; const form = document.querySelector('[data-form]'); form.addEventListener('submit', handleSubmit); function handleSubmit(e) { e.preventDefault();...
import React from 'react'; import { StyleSheet, Text, View, StatusBar, TextInput, TouchableOpacity, Alert, } from 'react-native'; import firebase, { auth } from "firebase"; import config from '../config/firebase'; export default class SignUpScreen extends React.Component { state = { email :null, p...
import React, { useState } from 'react' import { Button, Input } from '../GlobalStyles'; const TodoForm = ({ addTodo }) => { const [todo, setTodo] = useState({ id: '', task: '', completed: false }); const changeAction = (event) => { setTodo({ ...todo, ...
angular.module('about') .component('about', { templateUrl: 'app/components/about/about.html' });
export {EditPanel} from './edit-panel';
// import mock from 'mock' // console.log(mock)
function openVentana1() { $(".ventana2").slideDown("slow"); } function closeVentana1() { $(".ventana2").slideUp("fast"); }
export const setCity = city => ({ type: 'SET_CITY', payload: { city } }) export const setCoordinates = (coordinates) => ({ type: 'SET_COORDINATES', payload: { coordinates } }) export const setData = (weather) => ({ type: 'SET_DATA', payload: { weather } })
import { FETCH_CURRENT_USER, CURRENT_USER_REQUEST, CURRENT_USER_RESPONSE, CURRENT_USER_ERROR, CURRENT_USER_CLEAR } from "./constants"; const initialState = { currentUser: null, currentUserIsLoading: false, currentUserIsLoaded: false, currentUserError: false }; const currentUserReducer = (state = ini...
export { get as getAvailability } from './get'; export { AVAILABILITY_NOT_AVAILABLE, AVAILABILITY_CHECK_IN, AVAILABILITY_CHECK_IN_AND_OUT, AVAILABILITY_CHECK_OUT, } from './constants';
import React from 'react'; import {applyMiddleware, createStore} from 'redux' import {logger} from "redux-logger"; import rootReducer from "./Reducers/Reducer"; export default () => { const store = createStore(rootReducer, applyMiddleware(logger)); return store; }
import React from 'react'; import { Container, Row, Col, Button } from "react-bootstrap"; import HomePageNav from '../../components/NavBarHomePage'; import styles from './styles.module.css'; import { useHistory } from "react-router-dom"; import image from '../../image/image2.png' function HomePage() { const h...
const mongoose = require('mongoose') const Schema = mongoose.Schema const scrapVideoSchema = new mongoose.Schema({ company_id: { type: Schema.Types.ObjectId, ref: 'company', required: true }, video_id: { type: Schema.Types.ObjectId, ref: 'video', required: true } }) const ScrapVideoM...
module.exports = () => ({ '/': { page: '/' }, '/legal': { page: '/legal' }, '/privacy-policy': { page: '/privacy-policy' }, '/terms': { page: '/terms' }, '/products/cove-touch': { page: '/products/cove-touch' }, '/products/motion-sensor-alarm': { page: '/products/motion-sensor-alarm' }, '/products/window-...
$(function(){ $('#hamburger-btn').on('click',function(){ $(this).toggleClass('on'); }); $('#hamburger-btn').on('click',function(){ $('.menu-target').toggleClass('hide'); }); });
const {multiplication, division} = require('../math') let result, expected result = multiplication(4, 2) expected = 8 if (result !== expected) { throw new Error(`${result} is not equal to ${expected}`) } result = division(4, 2) expected = 2 if (result !== expected) { throw new Error(`${result} is not equal to ${...
var viewModel = { docs: ko.observableArray(), type: ko.observable() } viewModel.docName = ko.computed(function() { var t = viewModel.type(), arr = viewModel.docs() for(var i = 0;i<arr.length;i++) { if(t == arr[i]._id) return arr[i].name } return ''; }, viewModel) addEventList...
import React, { PureComponent } from 'react'; import { StyleSheet, KeyboardAvoidingView, Dimensions, Text, View, ActivityIndicator, TouchableOpacity, Image, Button, } from 'react-native'; const WIDTH = Dimensions.get('window').width; // import BottomSheet from 'reanimated-bottom-sheet'...
var searchData= [ ['jpeg',['JPEG',['../classdomini_1_1algorithm_1_1JPEG.html#ac489916de8505f11b6e29c7206baf3c7',1,'domini.algorithm.JPEG.JPEG(String path, boolean b)'],['../classdomini_1_1algorithm_1_1JPEG.html#ade39a15f3c5722b4975746fcee6ad364',1,'domini.algorithm.JPEG.JPEG(boolean b)']]] ];
export const getResults = () => { return fetch('http://localhost:5000/api/countries/quiz-results/capitals') .then(res => res.json()) } export const postResults = (payload) => { return fetch('http://localhost:5000/api/countries/quiz-results/capitals', { method: 'POST', body: JSON.stringify(payload),...
/* eslint-disable no-unused-vars */ import React from 'react'; import { createStore } from 'redux'; import { cleanup, render, screen } from '@testing-library/react'; import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import '@testing-library/jest-dom/extend-expect'; import Categor...
// var items = [5,3,7,6,2,9]; // function swap(items, leftIndex, rightIndex){ // var temp = items[leftIndex]; // items[leftIndex] = items[rightIndex]; // items[rightIndex] = temp; // } // function partition(items, left, right) { // var pivot = items[Math.floor((right + left) / 2)], //middle element ...
#!/usr/bin/env node process.stdout.write('TOOD :: Implement create-inventory-config.js\n'); process.exit(0);
// const puppeteer = require('puppeteer'); // // document.querySelector('#keyword').addEventListener('keyup', event => { // // // console.log(event.target.value); // // }) // async function scrapeProduct(url){ // const browser = await puppeteer.launch(); // const page = await browser.newPage(); // await pag...
import { StatusBar } from 'expo-status-bar'; import React, { useState } from 'react'; import { StyleSheet, View, Text, Switch } from 'react-native'; import theme from '../../constants/theme'; import { Input, Button } from 'react-native-elements'; import { useSelector, useDispatch } from 'react-redux'; import { signup, ...
/** * DomoGeeek v0.1 * https://github.com/ltoinel/domogeeek * * Copyright 2014 DomoGeeek * Released under the Apache License 2.0 (Apache-2.0) * * @desc: MultiPush main app * @author: [email protected] */ // Global require var express = require('express'); //Local require var config = require('./config'); // ...
const mongoose = require('mongoose'); const { Schema } = mongoose; const nameSchema = new Schema({ name: String, meaning: String, views: { type: Number, default: 0, }, similar_names: String, gender: { type: String, enum: ['male', 'female', ''], default: '', }, status: { type: S...
import React from "react"; import PropTypes from "prop-types"; const WidgetHeader = ({title, extra, styleName}) => { return ( <h2 className={`gx-entry-title ${styleName}`}> {title} <span className="gx-text-primary gx-fs-md gx-pointer gx-ml-auto gx-d-none gx-d-sm-block">{extra}</span> </...
const dogBar = document.querySelector("#dog-bar") const dogInfo = document.querySelector("#dog-info") const filter = document.querySelector("#good-dog-filter") const dogs = [] filter.addEventListener('click', function(e) { let textArray = e.target.innerText.split(" ") if (textArray[3] === "OFF") { e.ta...
module.exports = (sequelize, DataTypes) => { return sequelize.define('artifactCoin', { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, averse: { type: DataTypes.BLOB, allowNull: true }, reverse: { type: DataTypes.BLOB, allow...
import template from './view.html'; export default class View { static defaultOptions = { height: 400, width: 400 }; /** * Creates main view elemnt from view template. * * @param {Object} options * @returns {Element} */ static creatView(options) { const div = document.createElement(...
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _assertThisInitialize...
import React from "react"; import {Avatar, Card} from "antd"; const Basic = () => { return ( <Card className="gx-card" title="Basic"> <div className="gx-mb-3"> <Avatar className="gx-mr-2" size="large" icon="user"/> <Avatar className="gx-mr-2" icon="user"/> <Avatar className...
import { useEffect, useRef } from "react"; export const useUpdateEffect = (callback, dependencies) => { const isFirstRender = useRef(true); useEffect(() => { if (isFirstRender.current) { isFirstRender.current = false; } else { return callback(); } }, dependen...
/** * Created by zhangsu on 2016/5/9. */ MetronicApp.controller('login_controller', function($rootScope, $scope,$state,$stateParams,login_service,filterFilter,$modal, $http, $timeout) { $scope.$on('$viewContentLoaded', function() { // initialize core components App.initAjax(); }); ...
// ========================================= // ** Responsive Menu ** // ========================================= const app = new Vue({ el: '#vue-wrapper', data: { navPull: false, outlineHide: true, categoryReveal: false, }, }); // Allows menu to be closed with escape key document.addEventListener...
var nav = document.querySelector(".nav"); nav.classList.remove("nav--nojs"); var toggle = document.querySelector(".nav__toggle"); toggle.addEventListener("click", function (evt) { evt.preventDefault(); if (nav.classList.contains("nav--closed")) { nav.classList.remove("nav--closed"); nav.classList.add("nav...
import DataType from 'sequelize'; import Model from '../../sequelize'; import { initialize as initializeTransactionStatus } from '../utils'; const TransactionStatus = Model.define('TransactionStatus', { id: { type: DataType.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true, }, ...
function createBookShopOri(inventory) { return { inventory : inventory, inventoryValue : function() { return this.inventory.reduce((total, book) => total + book.price, 0); }, priceForTitle : function (title) { return this.inventory.find(book => book.title === title).price; } }; } //...
import React from 'react'; import { Indent, SuperTable, SuperToolbar, Search, ModalWithDrag, Title, SuperPagination} from '../../../../../components'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from '../../EditPage/EditPage.less'; class AddDialog extends React.Component { constructor ...
const express = require('express'); const routes = express.Router(); const {findUserByID,read,update} = require("../controller/userController.js"); const { requireSignin,isAuth,isAdmin} = require("../controller/authController"); routes.get("/secret/:userId",requireSignin,isAuth,isAdmin,(req,res)=>{ res.json({ ...
let dd = ['cat', 'louis', 'lulu', 'dog'] let [dd1, dd2, dd3, dd4] = dd; console.log(dd1) console.log(dd2) console.log(dd3) let [a,b,c] = [1,2]; console.log(a) console.log(c) console.log('Rest Parameters, Spread syntax=============='); showName = (name) => { console.log(name); } showName('Mike') showName('Mike...
const db = require('./index'); /** * Get a single user from the database given their email. * @param {String} email The email of the user. * @return {Promise<{}>} A promise to the user. */ const getUserWithEmail = function(email) { const query = { text: ` SELECT * FROM users WHERE email = $1; ...
import { connect } from 'react-redux'; import {EnhanceLoading} from '../../../../../components/Enhance'; import AddDialog from './AddDialog'; import {postOption, showError, showSuccessMsg, getJsonResult, convert, fuzzySearchEx, fetchJson}from '../../../../../common/common'; import {Action} from '../../../../../action-r...
// 构造函数, 用于生成一个dom function Element(tagName, props, children) { if (!(this instanceof Element)) { return new Element(tagName, props, children); } this.tagName = tagName; this.props = props || {}; this.children = children || []; this.key = props ? props.key : undefined; this.id = props ? props.id : un...
var appContext; var authStr = ""; var startTime = null; var store = null; var startTimeRefresh = null; var online = navigator.onLine; /******************************************************************** * Initialize the application * In this case, it will check first of the application has already * re...
const { attributes } = require("structure"); const Directory = attributes({ id: String, parent: String, name: String, path: String, createdBy: String, updatedBy: String, createdAt: Date, updatedAt: Date, children: Array })( class Directory { } ); module.exports = Directory;
"use strict"; function tlsClient(chan, psk) { const RandomSize = 32; const MasterSecretSize = 48; const MAXFRAG = 16384; const DigestStateSize = 336; const FChangeCipherSpec = 20; const FAlert = 21; const FHandshake = 22; const FApplicationData = 23; const Fragment = Struct([ 'type', U8, 'version', U16, ...
import { makeStyles } from '@material-ui/core/styles' const useStyles = makeStyles(() => ({ root: { flexGrow: 1, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', backgroundColor: '#FD2A36', borderRadius: 10, fontFamily: 'Barlow', position: 'absolute', }, ti...
var contador = 0; var correct = 0; var incorrect = 0; var question = document.getElementsByClassName('question') var answer = document.getElementsByClassName('answerPs') var score = document.getElementById('score') var mistake = document.getElementById('mistake') var list = [1, 3, 8, 9, 13, 15, 20, 21, 26, 28] //para ...
import launchDarkly from '@busy-web/ember-cli-launch-darkly/services/launch-darkly'; export function initialize(application) { let serviceLookupName = `service:launchDarkly`; application.register(serviceLookupName, launchDarkly); application.inject(serviceLookupName, 'application', 'application:main'); } expor...
import React from 'react'; import PropTypes from 'prop-types'; import { Box, Grid } from '@chakra-ui/react'; import CardPost from './CardPost.jsx'; const CardList = ({ stateStore }) => ( <div> <Grid templateColumns="repeat(4, 1fr)" gap={6} className="scroll-style"> {/* eslint-disable-next-line operator-lin...
(function(){ this.utils = { colorWithHex: function(str,alpha) { var alpha = alpha || 1; var color = MSColor.colorWithSVGString(str); color.alpha = alpha; return color; }, generateGUID: function() { return NSUUID.UUID().UUIDString(...
angular.module('ngApp.directBooking').controller('UploadShipmentGuideLineController', function ($scope, DirectBookingService, SessionService, TopCountryService, TopCurrencyService, DbUploadShipmentService, IsCollapedFillExcel) { function init() { var userInfo = SessionService.getUser(); $scope.R...
$(document).ready(function() { var l = localStorage.getItem('locale'); if(l) { l = $('[value=' + l + ']') if(l) l.attr('selected', true) } var success = function(data) { if(data.status == 'blocked') { alert('Аккаунт не активирован! Для активации аккаунта перейди...