text
stringlengths
7
3.69M
var IP = "192.168.2.131"; var HTTP_PORT = 3200; // var ELECT_IMG = "../../uploads"; // var BUSS_IMG = "../../uploads"; var IMG_PATH = "../uploads"; exports.mysql = function(){ return { HOST:'uws7-087.cafe24.com', USER:'tiddler', PSWD:'a7693707!', DB:'tiddler' } }; exports.solarmy_server = function(){ re...
import React from 'react'; import { Link } from 'react-router-dom'; import person1 from '../../img/person1.jpg'; import person2 from '../../img/person1.jpg'; import person3 from '../../img/person1.jpg'; export const Blog = () => { return ( <div id="fh5co-blog" className="fh5co-bg-section"> <d...
//Licensed to the Apache Software Foundation (ASF) under one or more //contributor license agreements. See the NOTICE file distributed with //this work for additional information regarding copyright ownership. //The ASF licenses this file to You under the Apache License, Version 2.0 //(the "License"); you may not use ...
const { handler: minify } = require('./minify'); const { handler: towebp } = require('./towebp'); const { handler: resize } = require('./resize'); module.exports = { cmd: 'img:build', desc: 'Process images (minify, convert to webp and resize).', opts: { source: { alias: 'src', describe: 'Source p...
import React, { Component } from "react"; import Track from "./track"; class Tracks extends Component { state = {}; render() { const { searchedTracks } = this.props; console.log("logged from tracks", searchedTracks); return ( <div> <table className="table table-striped" ...
import React from 'react'; import PropTypes from 'prop-types'; import DatePicker from 'react-datepicker'; import { FormGroup, Label, UncontrolledTooltip } from 'reactstrap'; import s from '../styles/Profile.module.scss'; import cx from 'classnames'; function DatePickerField(props) { const { name, values, ...
var Cache = require('Cache'); function Population(room) { this.cache = new Cache(); this.room = room; this.population = 0; this.populationLevelMultiplier = 8; this.typeDistribution = { CreepMiner: { total: 0, max: 5, minExtensions: 0 },/* CreepCarrier: { total: 0, max: 15, minExtensions: ...
import Vue from 'vue' import Vuetify from 'vuetify/lib' import 'material-design-icons-iconfont/dist/material-design-icons.css' import 'vuetify/src/stylus/app.styl' Vue.use(Vuetify, { theme: { primary: '#f6ad8', secondary: '#444054', accent: '#794c8a', error: '#d92550', info:...
export default { color: `primary`, textDecoration: `none`, userSelect: `none`, ':visited': { color: 'primary' }, ':hover': { color: 'primaryDark' } }
import React, { Component } from 'react'; class CreatePost extends Component { constructor(props) { super(props); this.state = { title: null, subtitle: null, image: null, content: null } this.handleChange = props.handleChange.bind(thi...
import icons from 'url:../../img/icons.svg'; class TopBar { constructor() { this._searchBtn = document.querySelector('.search__btn'); this._bookmarkBtn = document.querySelector('.nav__btn--bookmarks'); this._addRecipeBtn = document.querySelector('.nav__btn--add-recipe'); this._searchSvg = this._searc...
let express = require('express'); let app = express(); app.use(express.urlencoded({extended:true})); app.use(express.json()); // Résolution API app.all('*', function(req, res, next) { res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Methods', 'PUT, GET, POST, DELETE, OPTIONS');...
import React, { useContext, useState } from 'react'; import './Dashboard.css'; import logo from "../../../images/fav-icon.png"; import SideBar from '../SideBar/SideBar'; import BookService from '../../Client/BookService/BookService'; import BookedServices from '../../Client/BookedServices/BookedServices'; import { User...
var checkboxes = document.getElementsByName("imggiud"); function selectAll() { for ( var i = 0; i < checkboxes.length; i++) checkboxes[i].checked = true; } function cancleSelected() { for ( var i = 0; i < checkboxes.length; i++) checkboxes[i].checked = false; } function delSelectedImgS() { var checkedBox ...
export default class initThreeBasic { constructor(vertexShader,fragmentShader,texturePath1,texturePath2,texturePath3) { this.DOM = {}; this.DOM.container = document.getElementById('canvas-container'); this.DOM.textElement = document.getElementById('text'); this.textRect; this.fixedAxis; this.m...
// --------------------------------------------- // [Author] Christopher Ciufo // [Description] Omnibox App Launcher controller // [Created] 2015/06/18 // --------------------------------------------- (function () { 'use strict'; function escapeText(text) { return text .replace(/&/g, '&amp;') ....
import axios from 'axios'; import md5 from 'js-md5'; import {SECRET_KEY, API_URL} from './constants'; axios.defaults.headers.common['Content-Type'] = 'application/json'; axios.defaults.baseURL = API_URL; axios.interceptors.request.use( function (config) { console.log('---axios.interceptors.request---', config...
/****************************************************************************************************************************************************************************/ /*CARREGA TIPOS CONTATO*/ $(document).ready(function () { ajaxCarregaTiposContato(); }); function ajaxCarregaTiposContato() { $.ajax({...
import { Routes, Route, useParams, Link, Outlet } from "react-router-dom"; import "./index.css"; import { getMessageById, messages } from "./messages"; import { NoMatch } from "./no-match"; export default function InboxApp() { return ( <Routes> {/* Routes in this app don't need to worry about which URL pre...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExercisesType = void 0; var ExercisesType; (function (ExercisesType) { ExercisesType[ExercisesType["multipleChoices"] = 0] = "multipleChoices"; ExercisesType[ExercisesType["discursive"] = 1] = "discursive"; })(ExercisesType = e...
var SC_ID = '528dd3394707d2e437879317d161890a' var Lineup = (function($) { var artists, isOpen = false, $player = $('<div id="player"></div>'), $currentPopup; var show = function() { hideAll() var $popup = $(this).data('artistPopup'), $currentPopup = $popup, left = $(this).offset().left if (lef...
/* SPDX-License-Identifier: Apache-2.0 */ /* * This application has 6 basic steps: * 1. Select an identity from a wallet * 2. Connect to network gateway * 3. Access logging-system network * 4. Construct request to accept contract * 5. Submit transaction * 6. Process response */ 'use strict'; // Bring key cla...
/** * Created by xuwusheng on 15/12/18. */ define(['../../../app'], function (app) { app.factory('personalBusiness', ['$http','$q','$filter','HOST',function ($http,$q,$filter,HOST) { return { getThead: function () { return [ {name:'',check:true,checkAll:true...
import _ from 'lodash' class QuestionProviderAgent { static get $inject(){ return ['StateManagerAgent']}; stateAgent = {}; constructor(stateManagerAgent){ this.stateAgent = stateManagerAgent; }; getQuestions(){ var resultingQuestions = []; if(this.stateAgent.isLeveling) ...
var mongoose = require('mongoose'); //在app/moduel/client创建新的数据库表文件 // Define the schema //通过html文件里面的fromdate.value获取value等属性 //client:id ,client_name,interest_rate,interest,begin_date,last_modify_time,balance //账户表:id,用户名字,利率,利息,开始日期,上次修改日期,金额 //时间都初始化为当前时间 module.exports = mongoose.model('Client', { client_id...
import Subject from './Subject' class Completion extends Subject { constructor({stem, branch, type, answer}) { super({stem, branch, type, answer}) } attrValidation() { super.attrValidation(); if (!(this.answer instanceof Array)) { throw new Error('答案必须是数组') } } validateAnswer(answer) { ...
P.views.log.ListItem = P.views.Item.extend({ templateId: 'log.list_item', className: 'set list-group-item js-log-nav', events: { 'click .js-toggle-done': 'done' }, initialize: function() { this.listenTo(this.model, 'change:state', this.render); }, done: function(event) { event.stopPropagation(...
var TableTable_Couplelevel = { map: function() { if (!this._map) this._map = pi.JsonLoader.getInstance().load_dict("map/Table_Couplelevel_Auto.js") if (!this._map) PILogE("Table_Couplelevel: load map fail"); return this._map; }, info: function(id) { var map = this.map(); if (!map) return null; ...
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/building/comments/_item" ], { b11f: function(e, t, n) { function i(e) { return e && e.__esModule ? e : { default: e }; } Object.defineProperty(t, "__esMod...
/* * Represents a row of student data. */ class StudentRow extends Row { /* * @override */ constructor(data, index) { // Convert necessary items to numbers. data[1] = parseFloat(data[1]); data[3] = parseFloat(data[3]); data[4] = parseFloat(data[4]); data[5] = parseFloat(data[5]); // Make a copy of the ...
import React from "react"; import { connect } from "react-redux"; import { getActs, getContacts } from "../actions"; class HomePage extends React.Component { state = { randomGenerated: { act: "", contact: "" } }; componentDidMount() { console.log(":: IN COMPONENT DID MOUNT ::"...
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/personal_package/feedback/_tag_filter" ], { "292c": function(e, a, n) { n.d(a, "b", function() { return t; }), n.d(a, "c", function() { return o; }), n.d(a, "a", function...
var state = { init: function () { this.effects = [] this.splats = [] this.buildings = [] this.houses = {} this.taken = {} this.platforms = [] this.newplatforms = [] this.hsectors = {} this.addhouse(0, 0, "elgo") this.addhouse(-2, 1, "wari") this.addhouse(3, 1, "semt") this.addhouse(-3, 3, "pald...
const restify = require('restify'); const db = require('../database/delete'); module.exports = { deleteItem: async function(req,res,next){ let getResult = await db.deleteItem(req.params.id) res.send(getResult.code) }, deleteList: async function(req,res,next){ let getResult = awa...
define(['jquery', 'jquery.cookie', 'serializeObject'], function($, cookie, serializeObject) { // 登陆 $(function() { animateTime = 300; $tip = $('#ST_tip'); $form = $('#login_form'); if($.cookie('U_email')) { $form.find('input[name="email"]').val($.cookie('U_email')); } var formCheck = { email: fu...
// What is the return value of the below code sample? Provide a sentence or two of explanation. typeof( 15 ); number // What is the return value of the below code sample? Provide a sentence or two of explanation. typeof( "hello" ); string // What is the return value of the below code sample? Provide a sentence or two o...
import React, { Component } from 'react'; import Tweet from './Tweet'; import buildConfigObj from './Data'; class Stream extends Component { render() { const data = buildConfigObj(); let tweetStream = []; data.forEach(element => { tweetStream.push(<Tweet key={element.key} details={element} />) ...
import Reforma from '@reforma/core' import { snakeCase } from './helpers' const URL = global.URL || require('url').URL const absoluteUrlRegex = /^https?:\/\//i const pathSeparator = '/' const defaultHost = 'https://2fn5i627ppxfy2fg.move4.app' export function isAbsolutePath(path) { return absoluteUrlRegex.test(path)...
const { expect } = require("chai"); const noSpaces = require("../checks/no-spaces-in-exports"); describe("No Spaces in Exports Check", () => { it("skips if there is no orders file", async () => { const deployment = { serviceName: "streamliner" }; const results = await noSpaces(deployment); exp...
const path = require('path') const HtmlPlugin = require('html-webpack-plugin') module.exports = { entry: './src/main.ts', output: { path: path.resolve(__dirname, 'build'), filename: 'bundle.js' }, module: { rules: [ { test: /\.ts$/, loader: 'ts-loader' }, { ...
'use strict'; angular.module('app.channels') .controller('ChannelsCtrl', ['$state', 'Socket', 'Channels', 'Users', 'auth', 'users', 'channels', 'user', function($state, Socket, Channels, Users, auth, users, channels, user) { var self = this; self.users = users; self.channels = channels; ...
import React from "react"; import styled from "styled-components"; import { Button, Header, Container, Divider, Icon } from "semantic-ui-react"; import { FacebookButton, GmailButton, EmailButton } from "../SocialNetButtons"; import RegisterForm from "./Form/Container"; import facebook from "../../../assets/faceboo...
import React, { useState } from "react"; import "antd/dist/antd.css"; import ContactList from "./ContactList"; import { ContactService } from "../../api/contactService"; const Contact = () => { const [contact, setContact] = useState({ loading: false, contactList: [], }); ContactService.contacts().then((...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View, ScrollView, StyleSheet, YellowBox, Dimensions, } from 'react-native'; import { Actions } from 'react-native-router-flux'; import HomeContent from '../../containers/home/content'; /** * * @HomeView Layout compon...
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsInvertColors = { name: 'invert_colors', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31A7.98 7.98 0 0012 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-1...
'use strict'; /** * based on buggy Angucomplete */ angular.module('angucomplete', []) .directive('angucomplete', ['$timeout', function($timeout) { return { restrict : 'EA', scope : { 'id' : '@id', 'placeholder' : '@placeholder', 'selectedObject' : '=selectedobject', ...
const AirtableSync = require("@evdhiggins/airtable-sync"); /** * For airtable-sync v0.2.4 */ const airtableConfig = { apiKey: "keyxxxxxxxxxxxxxx", baseId: "appxxxxxxxxxxxxxx", }; const databaseConfig = { name: "postgresql", options: { databaseUrl: "postgres://USER:PASS@HOST:PORT/DB", }, }; const ite...
var searchData= [ ['mouthcontroller_80',['mouthController',['../d0/d61/class_eye_poke_handler.html#ab0828f7b5481ae0abec599b2cc06941e',1,'EyePokeHandler']]] ];
import en from "../locales-js/en"; import de from "../locales-js/de"; import fr from "../locales-js/fr"; import es from "../locales-js/es"; import pt from "../locales-js/pt"; import ja from "../locales-js/ja"; import zh from "../locales-js/zh"; const locales = { en: en.en, de: de.de, fr: fr.fr, es: es.es, pt...
import React from "react" const PizzaForm = (props) => { return( <div className="form-row"> <div className="col-5"> <input type="text" className="form-control" placeholder="Pizza Topping" value={ //Pizza Topping Should Go Here props.selectedPizza ? props.sel...
// pages/resume-edit/languageAbility/languageAbility.js const APP = getApp(); const { saveResume, deleteResume } = require('../../common/common.js'); Page({ /** * 页面的初始数据 */ data: { languageTypes: ['英语', '日语', '韩语', '法语', '德语', '西班牙语', '葡萄牙语', '意大利语', '阿拉伯语', '俄语'], languageLevel: ['一般', '良好', '熟练',...
var assert = require('assert'); var cc = require('../index'); var hex = cc.hex; describe('hex', function() { describe('#hex', function() { it('should construct hex {abbr: \'#123456\', val: \'#123456\'}', function() { var target = { abbr: '#123456', val: '#123456' } assert.deepEqual(target, hex('#12...
import React from "react"; import Router from "react-router-dom/BrowserRouter"; import Route from "react-router-dom/Route"; import PortfolioWrapper from "./components/topbar/handling/portfolioWrapper"; import Main from "./components/main components/main"; import SidebarAnimationWrapper from "./components/topbar/handlin...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _initialize = require('./initialize'); var _initialize2 = _interopRequireDefault(_initialize); var _express = require('express'); var _express2 = _interopRequireDefault(_express); var _bodyParser = require('body-parser'); var _bod...
/* * Route: /apps/:appId/notifications/:appNotificationId? */ const AppNotificationModel = rootRequire('/models/AppNotification'); const AppDeviceModel = rootRequire('/models/AppDevice'); const userAuthorize = rootRequire('/middlewares/users/authorize'); const appAuthorizeOwnership = rootRequire('/middlewares/apps/a...
import { useHistory } from "react-router-dom"; import restringido from "../assets//restringido.svg"; import Button from "react-bootstrap/Button"; const SinAutorizacion = () => { const history = useHistory(); return ( <div className="d-flex justify-content-center mt-5"> <img className="mb-4" src={restring...
import React, { Component } from 'react'; class SearchBar extends Component { constructor() { super(); this.state = { term: ''}; } render() { return ( <div className="search-bar"> <h1>Nkululeko Youtube</h1> <label htmlFor="search">Search</...
import React, { useState } from "react"; import { Route, Switch } from "react-router-dom"; import "./MainBody.css"; import Home from "./Home/Home"; import Watch from "./Watch/Watch"; import Friends from "./Friends/Friends"; import MyProfile from "./MyProfile/MyProfile"; import Chat from "./Chat/Chat"; import ChatBubble...
import React, { Component } from "react"; export class IndexHome extends Component{ render(){ return ( <div className="container"> <div className="jumbotron text-center"> <h1><span className="fa fa-lock"></span> Node Authentication</h1> <p>Login or Register with:</p> ...
exports.up = function(knex) { return knex.schema.table('blogposts', t=>{ t.string('facebook_link') t.string('instagram_link') t.string('youtube_link') }) }; exports.down = function(knex) { return knex.schema.table('blogposts', t=>{ t.dropColumn('facebook_link') t.dropColumn('instagram_link')...
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import {Link} from 'react-router-dom' import Header from './header'; class Dashboard extends Component { state = { user1: "", email1: "", password1: "", phoneNumber1: "", isRedirect: false...
const express = require('express'); const bodyParser = require('body-parser'); const fetch = require('node-fetch'); const fs = require('fs'); const app = express(); const cors = require('cors'); const port = 7777; app.use(express.json()); // app.use(bodyParser.urlencoded({ extended: true })); app.use(cors()); const r...
/** * @license * * Copyright IBM Corp. 2020, 2021 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { render } from 'react-dom'; import ArrowRight20 from '@carbon/icons-react/es/arrow--right/2...
"use strict"; App .filter('timeFormat',function(){ /* 时间过滤 */ return function(time){ return time * 1000; } }) .filter('search',function(){ /* 搜索 */ return function(data){ return ""; } }) .filter('plus',function(){ /* $index+1 */ return function(data){ return data = Number(data) + 1; } }) ...
module.exports = { totalTokens(quantity, price) { let total = quantity * price return total }, removeBalance(balance, quantity, price) { let total = quantity * price let accountBalance = balance - total return accountBalance }, repay(quantity, balance, pri...
import React, { Component } from "react"; // class NavBar extends Component { // render() { // return ( // <nav class="navbar navbar-light bg-light"> // <a class="navbar-brand" href="#"> // <span className="badge badge-pill badge-secondary"> // {this.props.counterTotal} // ...
;(function() { $(document).ready( function() { //start ready let timerId = setInterval( function () { $('.slider__list').each( function() { let currIndex = $('.slider__list').data('item'); let prevIndex = currIndex; currIndex++; currIndex >= $(this).children().length ? currIndex = 0 : currInd...
'use strict'; describe('GalleryThumbs directive', function() { var scope, isolatedScope, template, element, $rs; beforeEach(module('FEF-Angular-UI')); // beforeEach(module('templates/directives/gallery-thumbs.html')) beforeEach(inject(function($rootScope, $compile, $templateCache) { /** * instead ...
import React, { Component } from 'react'; import { Form } from 'antd'; import { type, scope, changeitem, selectType, createhistory } from '../constants/enumtype'; import {halfFourColLayout,fourColLayout} from "components/layout/formLayout"; const FormItem = Form.Item; export default class OtherInfo extends Component { ...
function signIn() { console.log("Attempting to sign in..."); var provider = new firebase.auth.GithubAuthProvider(); provider.addScope('repo'); // Request access to user's repos provider.setCustomParameters({ 'allow_signup': false }); firebase.auth().signInWithPopup(provider).then(...
var %BUNDLE%; var deps=%DEPS%; var getRequire = (function(){ return function getRequire(a){ return function atomRequire(m){ return require(deps[a][m]) } } })(); (function start (entryAtomName, derefs) { var ATOMS = {}; function translate (word) { // TODO import whole wisp return word.rep...
'use strict'; angular .module('emailInput') .component('emailInput', { templateUrl : 'email-input/email-input.template.html', controller : function emailInputController () { //Messages var messages = { 'startingMessage' : 'Your email goes here.', 'nameOverflowMessage' : 'I am afraid that em...
/* * Copyright 2000-2012 JetBrains s.r.o. * * 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 agre...
'use strict'; const bcrypt = require('bcryptjs') module.exports = (sequelize, DataTypes) => { const User = sequelize.define('User', { name: DataTypes.STRING, username: { type : DataTypes.STRING, validate:{ isUnique(){ return User.findAll() .then(data=>{ dat...
import React, { Component } from 'react'; import GroceryListContainer from '../containers/GroceryListContainer'; import AddGroceryContainer from '../containers/AddGroceryContainer'; import SortContainer from '../containers/SortContainer'; class App extends Component { render() { return ( <div className="Ap...
import styled from "styled-components"; export default styled.div` height: 30px; width: 30px; background: url(${props => props.url}) no-repeat center; background-size: cover; border-radius: 50%; margin-right: 12px; cursor: pointer; `;
export const users=[ { "id": 1, "username": "_LinaJiang", "firstName": "Lina", "lastName": "Jiang", "email": "[email protected]", "isAdmin": true, "twoots": [ {"id": 1, "content": "Twotter is Amazing!"}, {"id": 2, "content": "Don't forget to subscrib...
/** * @author ashutosh * @type type */ var procedure = require('../models/procedure.js'); var policy = require('../models/policy.js'); var LocalStorage = require('node-localstorage').LocalStorage, localStorage = new LocalStorage('./scratch'); var legislation = require('../models/legislation.js'); var fs = require('f...
import { API_KEY } from '../constants' import { REQUEST_MOVIES, REQUEST_MOVIE_DETAILS, RECEIVE_MOVIES, RECEIVE_MOVIE_DETAILS } from './types' function requestMovies() { return { type: REQUEST_MOVIES } } function receiveMovies(json) { return { type: RECEIVE_MOVIES, movies: json.results.map(movie => ...
../../../../../../shared/src/App/MainHeader/Search/actions.js
module.exports = { collectCoverage: true, collectCoverageFrom: [ '**/server/**/*.js', '!**/server/server.js', '!**/tests/**', ], };
setInterval(updateIcon(), 5000); updateIcon();
import VueFetch, { $fetch } from '../../plugins/fetch' export function getComments(fanficId, isActive) { return $fetch(`comments-list/?fanfic=${fanficId}&active=${isActive}/`) .then(res => res) .catch(err => { console.log(err); throw err; }); } export function getAllComments() { re...
function kreni() { var opcija = document.lista.izbor.selectedIndex; var url = document.lista.izbor.options[opcija].value; if ((opcija != 0) || (opcija != 8)) window.location = url; }
/*Create a new website with external js file Add a button (e.g. 'click me') that when clicked console.logs 'you clicked me!' Create a function that fetches from The Github API. For example from [this page] (https://api.github.com/orgs/HackYourFuture/repos) (the one we used last week). For help on this check this SO p...
(function() { "use strict"; // レコード一覧画面 kintone.events.on(['app.record.index.show', 'app.record.detail.show'], function(event) { var manager = new KintoneRecordManager; manager.getRecords(function(records) { // レコード取得後の処理 console.log('KintoneRecordManager'); ...
import test from 'ava'; import React from 'react'; import { mount, shallow } from 'enzyme'; import sinon from 'sinon'; import injectCss from 'src/index'; import * as utils from 'src/utils'; const Component = () => { return ( <div/> ); }; test('if injectCss will throw an error if the incorrect values are...
var Sumalib = require('libreria-deber/lib/area'); var respuesta = Sumalib(8, 5,2); console.log('la respuesta es :', respuesta);
import mongoose from 'mongoose' const Schema = mongoose.Schema // create a schema const tagSchema = new Schema({ nodeId: { type: String, required: true, unique: true }, watch: { type: Boolean, default: false }, }) // the schema is useless so far // we need to create a model using it const Tag = mongoose.model('T...
const BrowserStack = require('../api/browserstack'); module.exports = { 'init': init } var browserstack = undefined; function init(cfg) { if (!cfg.browserstack || !cfg.browserstack.api){ throw Error('BrowserStack credentials not passed with config'); } return browserstack = { 'client...
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { compose } from 'redux'; import get from 'lodash.get'; import { Button, Form, Icon, Input, message } from 'antd'; import buttonStyle from '../../../antdTheme/button/style/index.less'; import formStyle from '../../../antd...
describe('pixi/Pixi', function () { 'use strict'; var expect = chai.expect; it('Module exists', function () { expect(global).to.have.property('PIXI').and.to.be.an('object'); }); });
/** * @param {number} input * @return {number} */ // 10 -> 1010 -> 0101 -> 5 // 9090 -> 10001110000010 -> 01000001110001 const reverseBits = (input) => { // convert decimal to binary // divide until we have result = 0 // append remaining to binary number // 5 / 2 = 2 remaining = 1 // 2 / 2 = 1 remaining = ...
import React from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, Button, ScrollView, TextInput, KeyboardAvoidingView, Picker, TouchableOpacity, Dimensions, } from 'react-native'; import {connect} from 'react-redux'; import {bindActionCreators } from 'redux...
ui.GalleryEdit = function() { ui.GalleryEdit.base.constructor.call(this); this.userClass = ""; this.images = {}; this.meAdd = wr.bind(this, this.onAdd); }; wr.inherit(ui.GalleryEdit, wr.View); ui.GalleryEdit.prototype.create = function() { this.thumbs = wr.div_c("ui_galleryedit_thumbs"); this.buttonAd...
const INC = 'inc'; const DEC = 'dec'; const reducer = (state = 0, action) => { switch (action.type) { case INC: state + action.amount; break; case DEC: state - action.amount; break; default: } return state; } const store = Redux.createStore(reducer); const increment = { ty...
export default { 'filter': true, };
/*-------------------------------- Constants --------------------------------*/ const winCom = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 4, 8], [2, 4, 6], [0, 3, 6], [1, 4, 7], [2, 5, 8]] /*---------------------------- Variables (state) ----------------------------*/ //1) Define the required variables used to track the...
module.exports = { beep: require('./beep'), ping: require('./ping'), clean: require('./cleanChannel'), test: require('./test'), play: require('./music/play'), pause: require('./music/pause'), resume: require('./music/resume'), leave: require('./music/leave'), volumedown: require('./m...
var menu = { init: function() { var viewportWidth = window.innerWidth || document.documentElement.clientWidth; // Si la viewport est inférieure à 768px if (viewportWidth <= 768) { //on exécute les fonctions menu.displayMenu(); menu.removeMenu(); ...