text
stringlengths
2
1.04M
import React from 'react' import { View, Text, StyleSheet } from 'react-native' export default function MyAccountScreen({ mainScreenP2P }) { return ( <View style={styles.container}> <Text>My Profile!</Text> <Text onPress={() => mainScreenP2P()} style={styles.logoutTe...
var fs = require('fs'); module.exports = function (RED) { 'use strict'; var trainUtil = require("../lib/util/TrainUtil.js"); var message = require('../lib/model/Message.js'); var request = require('sync-request'); var alert = require('alert-node'); var repositoryServiceLocator = require('../l...
import React from 'react'; import { Link } from 'react-router-dom'; import messages from 'lib/text'; import Paper from 'material-ui/Paper'; import Divider from 'material-ui/Divider'; import FontIcon from 'material-ui/FontIcon'; import { List, ListItem } from 'material-ui/List'; const CheckoutFieldItem = ({ name, stat...
import React from 'react' class Card extends React.Component{ click = () =>{ const {card, clickFn} = this.props clickFn(card) } render(){ const {player, card} = this.props return ( <span className='cardBorder'> <img className={'card '+ player} src={card.image} alt='' onClick={this....
import React, {useState, useEffect, useContext} from 'react' import { useParams } from "react-router-dom"; import axios from 'axios' import { Button, Modal, ModalBody, ModalFooter } from 'reactstrap'; import { ApiUrlContext } from '../../ApiUrlContext' export const ContactForm = ({challenge, preview}) => { const [em...
/** * Copyright 2018 The AMP HTML Authors. All Rights Reserved. * * 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 require...
/** @license React v16.13.1 * react-is.production.min.js * * 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. /** * A better abstraction over CSS. * * @copyright Oleg Isonen (Slobodskoi...
import axios from "axios" import { BASE_URL, TIMEOUT } from "./config" axios.defaults.baseURL = BASE_URL axios.defaults.timeout = TIMEOUT const ERROR_OK = 0 // 请求自己搭建的node server export function get(url, params) { return axios .get(url, { params }) .then((res) => { const data = res.data if (da...
/* * Copyright (C) 2019 Google Inc. 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 above copyright * notice, this list of conditio...
//Links.js: Client for the zendesk services API. var util = require('util'), Client = require('../client').Client var Links = exports.Links = function (options) { this.jsonAPINames = [ 'links' ]; this.sideLoadMap = [ { field: 'ticket_id', name: 'ticket', dataset: 'tickets' } ]; Client.call...
let axios = require('axios') let moment = require('moment-timezone'); let handler = async (m, { conn, text }) => { if (!text) throw `Error!\nMasukan perintah dengan tambahan username!` let Quer = text.replace("https://github.com/", "").replace("@", "") axios.get(`https://api.github.com/users/${Quer}`) .then((res) =>{ ...
import React, { Fragment } from 'react' import { Body, Title } from '../text' import voteT from '../voteT' const VoteInfo = ({ vt }) => ( <Fragment> <Title>{vt('info/201907/title')}</Title> <Body dangerousHTML={vt('info/201907/intro/body1')} /> </Fragment> ) export default voteT(VoteInfo)
var Assert = require('assert'); var ValidatorTrigger = require('libresignage/ui/validator/ValidatorTrigger'); /** * A class for grouping together Validators. * * @memberof module:libresignage/ui/validator */ class ValidatorController { /** * Construct a new ValidatorController object. * * @param {object} validator...
/** * Copyright 2018 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. * * `social-media-iconset` * @customElement social-media-iconset is a iconset for the Material Design Icons collection * * Example: * <script>import "@lrnwebcomponents/social-media-icons/social-media-ic...
const path = require('path'); const webpack = require('webpack'); const readDir = require('fs').readdirSync; const files = readDir(path.join('../', 'src/locale/lang')); const entry = {}; files.forEach(file => { const name = file.split('.')[0]; entry[name] = './src/locale/lang/' + file; }); process.env.NODE_ENV = ...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'stylescombo', 'eo', { label: 'Stiloj', panelTitle: 'Stiloj pri enpaĝigo', panelTitle1: 'Stiloj de blokoj', panelTitle2: 'Enli...
class BaseModel { constructor(data, message) { if (typeof data === 'string') { this.message = data; data = null; message = null; } if (data) { this.result = data; } if (message) { this.message = message; } ...
const {EOL} = require('os'); const {inspect} = require('util'); const {messageGap} = require('../lib/utils'); const minify = require('../lib'); const {parsingErrorCode} = require('../lib/error'); const PEC = parsingErrorCode; describe('Minify/Positive', () => { describe('end-of-line detection', () => { it...
const mongoose = require('mongoose'); // ----------------------- patient data--------------------------- const PatientDataSchema = new mongoose.Schema({ patientId: { type: mongoose.Schema.Types.ObjectId, ref: "Patient", required: true }, gender: { type: String }, birth: { type: Date}, // ...
import React from 'react' import { withStyles } from '@material-ui/core/styles'; import FlexedBetween from 'components/FlexBetween' import trans from "../../trans"; import FooterCover from "./FooterCover" import Link from 'components/Link' const styles = ({ link:{ color: '#9497A2', cursor: 'pointe...
/** * Created by PanJiaChen on 16/11/18. */ /** * Parse the time to string * @param {(Object|string|number)} time * @param {string} cFormat * @returns {string | null} */ export function parseTime(time, cFormat) { if (arguments.length === 0) { return null } const format = cFormat || '{y}-{m}-{d} {h}:{i...
//loops and arrays part 3 //Challenge: Build a pac-man board. A pacman board is a board 18 x 18 squares large that has squares //coloured based on if there is a wall in the square, a power-pellet in the square, a pac-dot in the //square, pac-man himself, or the four ghosts, inky, blinky, pinky and clyde. Based on the ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.setupJunitReportGeneration = setupJunitReportGeneration; var _path = require('path'); var _fs = require('fs'); var _util = require('util'); var _mkdirp = require('mkdirp'); var _mkdirp2 = _interopRequireDefault(_mkdirp); var _...
const LOCAL_FORECAST = { today: { min: 72, max: 83 }, tomorrow: { min: 73.3, max: 84.6 }, }; function getMaxOfTmrw(forecast) { "use strict"; // change code below this line const { tomorrow: { max: maxOfTomorrow }, } = forecast; // change this line // change code above this line return maxOfTomorrow...
import _ from 'lodash' import gql from 'graphql-tag' import AddressInput from './AddressInput' export const intFields = [ 'area', 'balconies', 'bathrooms', 'restrooms', 'rooms', 'dependencies', 'garageSpots', 'price' ] export const boolFields = ['hasElevator', 'isExclusive', 'isRelease'] export cons...
exports.names = ["commands"]; exports.hidden = true; exports.enabled = true; exports.cdAll = 30; exports.cdUser = 30; exports.cdStaff = 10; exports.minRole = PERMISSIONS.NONE; exports.handler = function (data) { bot.speak( "Commands: " + _.compact( _.map(bot.commands, function (command) { ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M13.41 12l1.26-1.26c1.4.6 3.32.14 4.75-1.3 1.75-1.75 2.09-4.27.74-5.62-1.34-1.34-3.85-1.01-5.62.74-1.43 1.43-1.9 3.36-1.29 4.76L3.7 18.87c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l6.8...
function sortNumbers(numbA, numbB, numbC) { let max = numbA; if (max < numbB) { max = numbB; } if (max < numbC) { max = numbC; } console.log(max); if (max == numbA) { if (numbB > numbC) { console.log(numbB); console.log(numbC); } el...
/* * App Actions * * Actions change things in your application * Since this boilerplate uses a uni-directional data flow, specifically redux, * we have these actions which are the only way your application interacts with * your appliction state. This guarantees that your state is up to date and nobody * messes i...
/*This is an auto generated class, please do not change.*/ /** * Class to create a ELB object * @category AWS */ class AWS_LoadBalancer { /** * * @param {module} aws AWS SDK * @param {object} options SDK options */ constructor(aws, options) { this._AWS = aws; this._apiVersion = options.apiVer...
/* YUI 3.18.1 (build f7e7bcb) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('widget-buttons', function (Y, NAME) { /** Provides header/body/footer button support for Widgets that use the `WidgetStdMod` extension. @module widget-buttons @sinc...
const { parseTags } = require('../../dist/lib/es5/index'); const { isNotNullOrEmpty } = require('../../dist/lib/es5/_private/utils'); describe('isNullOrEmpty', () => { test('empty', () => { expect(isNotNullOrEmpty(null)).toBe(false); expect(isNotNullOrEmpty(undefined)).toBe(false); expect(isNotNullOrEmpt...
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhDiceOne = { color: "currentColor", size: "1em", weight: "regular", mirrored: false, render: ({ color, size, weight, mirrored }) => html` <svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" ...
'use strict'; angular.module('mean').controller('CookingController', ['$scope', '$stateParams', '$location', 'Global', 'Cooking', function ($scope, $stateParams, $location, Global, Cooking) { $scope.global = Global; $scope.imginfo = function($event) { if($event.target.exifdata) delete $ev...
/* * Metro JS for jQuery * http://drewgreenwell.com/ * For details and usage info see: http://drewgreenwell.com/projects/metrojs Copyright (C) 2012, 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 d...
var TabLockdownController = { tabModels: {}, init: function() { chrome.browserAction.onClicked.addListener(function(tab) { TabLockdownController.toggleTabLock(TabLockdownController.getTabModelForTab(tab)) }); console.log("Tab Lockdown - Extension Initalized"); }, getTabModelForTab: function(tab) { var t...
import { render } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { Sort } from "."; describe("Sort", () => { describe("With default settings", () => { test("When selecting different sortBy option, should call handleChangeSortBy", async () => { const h...
/*jshint maxlen:false */ define({ // ACTION: "Action", // TODO: localize ACTION to zh-cn // ADD_ENDLINE_TO_THE_END_OF_FILE: "Add endline at the end of file", ADD_ENDLINE_TO_THE_END_OF_FILE: "在文件末尾添加空行", // ADD_TO_GITIGNORE: "Add to .gitignore...
const utils = require("../../../../helpers/common"); const teachersDb = require("../../../../controllers/teachers"); const { handleDatabase } = require("../../../../helpers/handle_response"); const teachers = (module.exports = {}); teachers.index = (req, res, next) => { const getDb = teachersDb.listData(); handle...
exports.config = { seleniumAddress: 'http://127.0.0.1:4444/wd/hub', specs: ['E2E/**/*.e2e.spec.js'], framework: 'jasmine2' }
var searchData= [ ['tetmesh_2ecpp_0',['tetmesh.cpp',['../tetmesh_8cpp.html',1,'']]], ['tetmesh_2ehpp_1',['tetmesh.hpp',['../tetmesh_8hpp.html',1,'']]], ['tetmesh_5fsplittor_2ecpp_2',['tetmesh_splittor.cpp',['../tetmesh__splittor_8cpp.html',1,'']]], ['tetmesh_5fsplittor_2ehpp_3',['tetmesh_splittor.hpp',['../tetm...
import Vue from 'vue' import Cookies from 'js-cookie' import 'normalize.css/normalize.css' // a modern alternative to CSS resets import Element from 'element-ui' import './styles/element-variables.scss' import enLang from 'element-ui/lib/locale/lang/en'// 如果使用中文语言包请默认支持,无需额外引入,请删除该依赖 import '@/styles/index.scss' //...
import React, { Component } from 'react'; import { useState, useEffect } from "react" import NavBar from '../components/Navbar'; import "../css/AddBrokerage.css" import axiosInstance from '../axios'; import { useNavigate } from 'react-router-dom'; const AddAccount = () => { const [accountType, setType] = useState...
function sendDataForSave() { return $.ajax({ type: "POST", url: "/classification/save/", data: { image_id: g_imageID, task_id: g_taskID, label_id: g_currentLabel, quality: $('input[name=quality]:checked').val(), rejected: g_rejected...
import React from 'react'; import ModalCover from './rh-ModalCover'; import PopupSimple from './rh-PopupSimple'; /** * Simple modal message cover */ const ModalMessage = ({modal, message, children}) => { return ( <div className="rh-popup-container"> <ModalCover {...modal}/> <div className="full-wi...
import React, { useState } from "react"; import { useSelector, useDispatch } from "react-redux"; import CardBodyAll from "./home/post_card/CardBody"; import CardFooter from "./home/post_card/CardFooter"; import CardHeader from "./home/post_card/CardHeader"; import CardHeaderComu from "./home/post_card/CardHeaderComu"; ...
import React from 'react' import './styles.css' function DevItem({ developer }) { return ( <li className="dev-item"> <header> <img src={developer.avatar_url} alt={developer.name} /> <div className="user-info"> <strong>{developer.name || devel...
App.addChild('ProjectEditForm', _.extend({ el: '.project-form', events: { 'blur input' : 'checkInput' }, activate: function() { this.setupForm(); }, }, Skull.Form)); App.addChild('ProjectEdit', _.extend({ el: '.project-dashboard-edit', activate: function(){ this.route('basics'); this.r...
'use strict'; (function () { // Cartview Controller Spec describe('Cartview Controller Tests', function () { // Initialize global variables var CartviewController, $scope, $httpBackend, $stateParams, $location, PromotionsService, mockPromotion, mockPromotion2, ...
/**************************************************************************** Copyright (c) 2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...
// Base app requirements var express = require('express'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var init = require('./lib/init'); // First make sure that startup checks pass if (init.startupChecksPassed(__dirna...
define(["require","exports","tslib","react","spectrum/button"],(function(e,t,r,a,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=r.__importStar(a),t.ThirdPartyReplyCTA=function(e){var t=e.thirdPartySource,r=e.openWith,n=e.intl;return t?a.createElement("div",{className:"sc-third-party-reply-cta"},a.cr...
// Our namespace var NetIo = {}; /** * Define the debug options object. * @type {Object} * @private */ NetIo._debug = { _enabled: true, _node: typeof (module) !== 'undefined' && typeof (module.exports) !== 'undefined', _level: ['log', 'warning', 'error'], _stacks: false, _throwErrors: true, _trace: { setup...
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
'use strict'; const { RPCClient } = require('@alicloud/pop-core'); function hasOwnProperty(obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); } class Client extends RPCClient { constructor(config) { config.apiVersion = '2017-12-04'; super(config); } /** * @param {String} Pk - Pk. ...
import React from 'react'; import './App.css'; var d3 = require('d3'); var topojson = require('topojson'); class ChoroplethMap extends React.Component { constructor(props) { super(props); this.createChoropleth = this.createChoropleth.bind(this); } componentDidMount() { this.createChoropleth(); } ...
import React, {Component} from 'react'; import {Row, Col, Button, Modal, ModalHeader, ModalBody, ModalFooter, Card, CardHeader, CardBody} from 'reactstrap'; class Modals extends Component { constructor(props) { super(props); this.state = { modal: false, large: false, small: false, p...
import React from 'react'; import Text from 'wix-style-react/Text'; export default () => ( <div data-hook="text-with-ellipses" style={{width: '120px'}}> <Text ellipsis>very very long text</Text> </div> );
/** * This is the main server code. * ExpressJS 4.14.0 * * @author Mattia Corvaglia <corvagliamattia@gmail.com> * @see http://www.mattiacorvaglia.com * @version 1.0.0 * @since 1.0.0 * @copyright 2017 Mattia Corvaglia All Rights Reserved. * @license MIT */ 'use strict'; // ------------...
macDetailCallback("00200d000000/24",[{"d":"1998-04-22","t":"add","a":"POSTFACH 1380\nABT. 1-EL\n73444 OBERKOCHEN\n","c":"GERMANY","o":"CARL ZEISS"},{"d":"2001-10-24","t":"change","a":"POSTFACH 1380\nABT. 1-EL 73444 OBERKOCHEN\n\n","c":"GERMANY","o":"CARL ZEISS"},{"d":"2015-08-27","t":"change","a":"POSTFACH 1380 DE"...
const { Log } = require('../utils/log.js'); const { MessageEmbed } = require('discord.js'); const { bye, chat, byeGif } = require('../../config.json') // Return a MessageEmbed function getEmbed(member) { // Create removal message const greetEmbed = new MessageEmbed() .setColor('#0...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
export { List, ListItem } from './List';
Meteor.publish('sales', function () { return sales.find(); });
import bampfaUOCbyApprovalStatus from './bampfaUOCbyApprovalStatus'; import bampfaUOCbyRequesterObject from './bampfaUOCbyRequesterObject'; export default [ bampfaUOCbyApprovalStatus, bampfaUOCbyRequesterObject, ];
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMarketReferenceCurrencyAndUsdBalance = exports.calculateAvailableBorrowsMarketReferenceCurrency = exports.calculateHealthFactorFromBalancesBigUnits = exports.calculateHealthFactorFromBalances = exports.getCompoundedStableBalance = e...
function main() { const v4 = [1337]; let v7 = "undefined"; function v8(v9,v10,v11) { } const v16 = [1337]; let v19 = 0; while (v19 < 8) { const v21 = {set:v8,get:v8}; const v23 = Object.defineProperty(Function,127,v21); const v24 = v19 + 1; v19 = v24; } } %NeverOptimizeFunction(main); main();
$(document).ready(function(){//1 var submit = $("#submit") var u = [ { "userId": "jonesj", "Password": "baby" }, { "userId": "davisd", "Password": "mommy" }, { "userId": "eriksa", "Password": "sissor" } ] submit.click(function(){//2 var username = $("#user").val() ...
/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * 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/LICEN...
const router = require('express').Router() const users = require('../data') const { generateHash } = require('../modules/crypt') const { createUser } = require('../models/UserModel') router.get('/', (req, res) => { let options = { title: "Registration Page", path: '/registration', error: ...
module.exports = { getLink: function(oembed, whitelistRecord) { if ((oembed.type === "photo" || oembed.type === "image") && oembed.url && whitelistRecord.isAllowed && whitelistRecord.isAllowed('oembed.photo')) { return { href: oembed.url, type: CONFIG.T.image, ...
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; export const PrivateRouteWrapper = ({ component: Component, layout: Layout, ...rest }) => ( <Route {...rest} render={(props) => ( localStorage.getItem('user') ? <Layout {...props}> <Component {...props} /> </Layout> ...
const BN = require('bn.js'); const BerryMaster = artifacts.require("./BerryMaster.sol"); const Oracle = artifacts.require("./Berry.sol"); var oracleAbi = Oracle.abi; var oracleByte = Oracle.bytecode; //Mainnet // var berryMasterAddress = '0x0Ba45A8b5d5575935B8158a88C631E9F9C95a2e'; // var berryAddress ='0x350E67De9E9...
/** * Copyright 2020-2021 Sourcepole AG * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import {createSelector} from 'reselect'; import {addSearchResults, SearchResultType} from '../actions/search'; impo...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var BitmapText = require('./BitmapText'); var GameObjectFactory = require('../../GameObjectFactory'); /** * Creates ...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Polymer element for displaying AD domain joining and AD * Authenticate user screens. */ // Possible error states of the screen. Mus...
describe('domToCSS', function() { var domToCSS; var cleanup; before(function(done) { requirejs.config({ baseUrl: '../src', paths: { cleanup: '../test/cleanup' } }); requirejs(['domToCSS', 'cleanup'], function(_domToCSS, _cleanup) { domToCSS = _domToCSS; cleanup = _cleanup; ...
module.exports = { re: [ /^https:\/\/www\.indiegogo\.com\/projects\/([\w-]+)/i, /^https:\/\/life\.indiegogo\.com\/fundraisers\/([\w-]+)/i ], mixins: [ "*" ], getLink: function(urlMatch) { return { href: 'https://www.indiegogo.com/project/' + urlMatch[1]...
//Grade $(document).on('click', '.add-agency, .update-agency, .add-penyelaras', function(){ let selectedClass = $(this); if(selectedClass.hasClass('add-agency')){ $('#btn-agency').removeClass('post-update-agency'); $('#btn-agency').addClass('post-add-agency'); $('#btn-agency').text('Tam...
import { setCurrent, clear } from './interface'; import { hookSymbol, effectsSymbol, layoutEffectsSymbol } from './symbols'; class State { update; host; virtual; [hookSymbol]; [effectsSymbol]; [layoutEffectsSymbol]; constructor(update, host) { this.update = update; this.host ...
import is from '../src/index.js' test('checks for an undefined value', () => { expect(is.undef(undefined)).toBe(true) expect(is.undef('abc')).toBe(false) })
import React, {Fragment} from 'react'; import styled from 'styled-components'; const Experience = styled.section` grid-column: 1 / 4; grid-row: 1 / 5; @media screen and (min-width: 48em) { padding: 55% 0 0 10%; } @media screen and (min-width: 64em) { padding: 65% 0 0 10%; } ...
const axios = require('axios'); const { ArgumentError } = require('rest-facade'); /** * Provides methods for getting token data and exchanging tokens. */ class TokensManager { /** * @param {object} options Manager options. * @param {string} options.baseUrl The authok account URL...
import template from './billing-autoRenew-debtBeforePaying.html'; export default { bindings: { goBack: '<', payDebt: '<', serviceName: '<', }, template, };
/*----------------------------------- 打包需要设置isWebapp为false 才能绑定后退按键 ------------------------------------------- */ /* bui.isWebapp = false; // 原生方法 bui.on("pageready",function(){ // 绑定手机后退按键 bindBack(); }); // 绑定手机后退按键 function bindBack() { // 监听后退按钮 var flag = 0, quickClick = ...
window.swaggerSpec={ "swagger" : "2.0", "info" : { "description" : "OperatorFabric ThirdParty Management API", "version" : "1.2.0.RELEASE", "title" : "Thirds Management", "termsOfService" : "", "contact" : { "email" : "opfab_AT_lists.lfenergy.org", "url" : "https://opfab.github.io/" ...
/* * @name Pixeles de video * @frame 320,240 * @description Cargar un video, manipula sus pixeles y dibújalo en el lienzo. * Para correr este ejemplo localmente, necesitarás correr un * <a href="https://github.com/processing/p5.js/wiki/Local-server">servidor local</a>. */ let fingers; function setup() { creat...
'use strict'; import RNModalNoUnmount from './RNModalNoUnmount'; export default RNModalNoUnmount;
import React, { Component } from "react"; import TabNav from './tabnav'; class Dashboard extends Component { constrtuctor(props) { super(props) thsi.state = { tabs: [ { title: 'resipies', active: true, compon...
import React, { Component } from 'react'; import { Link } from 'gatsby'; import logo from '../../../images/fr logo png.png'; import { FaAlignRight } from 'react-icons/fa'; import styled from 'styled-components'; import { styles } from '../../../utils'; class NavbarHeader extends Component { render() { const { h...
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const InputStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
import React, { useEffect, useState } from "react"; import * as API from "services/Loaders"; import * as UTIL from "utils"; import * as S from "./styles"; import * as C from "components"; const PeopleListPage = () => { const itemsPerPage = 20; const [isLoading, setIsLoading] = useState(false); const [people, set...
import React, {Component} from 'react'; import PropTypes from "prop-types"; // reactstrap components import { Button, Modal, ModalHeader, ModalBody, ModalFooter, } from "reactstrap"; import { connect } from 'react-redux'; import { deleteSong } from 'redux/media/actions.js' class DeleteSong extends Componen...
const Controller = require('egg').Controller; // 定义创建接口的请求参数规则 const createRule = { accesstoken: 'string', title: 'string', tab: {type: 'enum', values: ['ask', 'share', 'job'], required: false}, content: 'string', }; class TopicsController extends Controller { async create() { console.log...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var BookSchema = new Schema({ title: { type: String, required: true }, author: { type: Schema.Types.ObjectId, ref: 'Author', required: true }, summary: { type: String, required: true }, isbn: { type: String, required: true }, genre: [{ type: ...
const express = require('express'); const router = express.Router(); const Blog = require('../db/models').Blog; const User = require('../db/models').User; const { check, validationResult } = require('express-validator'); const bcryptjs = require('bcryptjs'); const auth = require('basic-auth'); // Handler function to ...
const dns = require('dns'); const log = require('./log'); /** * getHostName - get hostname * @param {string} url - url * @return {string} hostname - hostname */ function getHostName(url) { if (url.indexOf('data:') == 0) { return ''; } try { const urlinfo = new URL(url); return urlinfo.hostname; ...
macDetailCallback("00113a000000/24",[{"d":"2004-05-11","t":"add","a":"4F DAHNWORLD BUILDING, 154-11 SAMSUNG-DONG\nKANGNAM-GU,\nSEOUL 135-879\n","c":"KOREA, REPUBLIC OF","o":"SHINBORAM","s":"wireshark.org"},{"d":"2015-08-27","t":"change","a":"4F DAHNWORLD BUILDING, 154-11 SAMSUNG-DONG SEOUL KR 135-879","c":"KR","o":"S...
export function updateAIProperties(snake, game) { // Check if snake is the last snake alive and if it's winning (higher score) snake.ai.alone = true; snake.winning = true; game.snakes.forEach(function(otherSnake) { if (otherSnake !== snake) { if (otherSnake.dead === false) { ...