text stringlengths 7 3.69M |
|---|
function CreateBadge(icon,header,content,url){
var Badge = '<li class="list-item game-card">'+
'<div class="game-card-container">'+
'<a href='+url+' class="game-card-link">'+
'<div class="game-card-thumb-container">'+
'<img class="game-card-thumb" src='+icon+' alt="Catalog Notifier" image-retry="">'+
'</div>'+
'... |
const { GraphQLClient } = require("graphql-request");
const GRAPHQL_URI = "http://mazzad.herokuapp.com/v1alpha1/graphql";
module.exports = new GraphQLClient(GRAPHQL_URI, {
headers: {
"x-hasura-admin-secret": "mazzadapi"
}
});
|
import {
rhythm,
colors,
transitions
} from '../../lib/traits'
export default {
base: {
display: 'inline-block',
lineHeight: 1,
color: colors.light,
padding: `${rhythm(0.5, 'em')} ${rhythm(0.75, 'em')}`,
transition: `box-shadow ${transitions.easeOut}`,
':hover': {
boxShadow: `inse... |
var io = require('socket.io-client');
var socket = io('http://localhost:8000');
socket.emit('join_room', 'foobar');
socket.emit('foo', {bar: 'bar', room: 'foobar'});
socket.on('foo', function(args) {
console.log(args); // -> ['bar']
}); |
Ext.namespace('Ext.Syis.lib');
Ext.Syis.lib.SyisModifyVeWin = Ext.extend(Ext.Window, {
type : null,
record : null,
modifyVeUrl : null,
constructor : function(_cfg) {
if (_cfg == null) {
_cfg = {};
};
Ext.apply(this, _cfg);
Ext.QuickTips.init();
var me = this;
var fieldPlugins = ... |
$(function () {
$("#more-concert").css({borderBottom:"3px solid #C81623",
color:"#C81623"});
$(".phone-show li").hover(function(){
var i = $(this).index();
$(".phone-show li .desc").eq(i).hide()
$(".phone-show .ph_buy").eq(i).css("opacity","1")
$(".phone-show .ph_buy").e... |
import Ember from 'ember';
export function hot(params) {
if (params[0] > 4) {
return ("<img src='assets/shocked.png' alt='' />").htmlSafe();
}
}
export default Ember.Helper.helper(hot);
|
import {Grid} from "@material-ui/core";
import {useEffect} from "react";
import {useRecoilState} from "recoil";
import IconButton from "~/components/atoms/iconButton/IconButton";
import Select from "~/components/atoms/Select/Select";
import TextField from "~/components/atoms/textfield/Textfield";
import TextFieldWithTa... |
import isPlainObject from './.inside/isPlainObject';
import getType from './.inside/getType';
/**
* 判断一个值是不是错误对象。
* `Error`, `EvalError`, `RangeError`, `ReferenceError`,`SyntaxError`, `TypeError`, or `URIError`
*
* @since V0.1.3
* @public
* @param {*} value 需要判断类型的值
* @returns {boolean} 如果是错误对象返回true,否则返回false
... |
import { fromJS } from 'immutable';
import * as actionType from './actionType.js';
const defaultState = fromJS({
topicList: [],
articleList: [],
writerList: [],
articlePage: 1,
showScroll: false
});
const changeContent = (prevState,action)=>{
return prevState.merge({
topicList:fromJS(action.topi... |
import payment, {Creators as PaymentActions} from '../../store/ducks/payment'
describe('Payment Duck', () => {
const newPayment = {
cardHolder: "Donald Martinez",
cardNumber: "4764146564886488",
cvv: "307",
validity: "03/2023"
}
it('should be able to realize payment', () => {
const state = ... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import {updateHistory} from '../../ducks/reducer.js';
import {connect} from 'react-redux';
class WizardEight extends Component {
render(){
return(
<div className="parent-div">
<div className... |
import dbConnection from '../../../middlewares/db';
import Post from '../../../models/Post';
import User from '../../../models/User';
import mongoose from 'mongoose';
import { getSession } from 'next-auth/client';
async function handler(req, res) {
const { method } = req;
const session = await getSession({ req });... |
/**
* Title: Initial file
* Description: Project initial file to starts server and workers
* Author: Samin Yasar
* Date: 24/October/2021
*/
// Dependencies
const server = require("./src/helpers/server");
const worker = require("./src/helpers/worker");
// Module scaffolding
const app = {};
// Defin... |
var jsutil = jsutil || {};
/** can be used to copy a function's arguments into a real Array */
jsutil.Number = {
range: function(from, to) {
var out = [];
for (var i=from; i<to; i++) out.push(i);
return out;
}
};
|
// Seven Boom!
// Create a function that takes an array of numbers and return "Boom!" if the number 7 appears in the array. Otherwise, return "there is no 7 in the array".
// Examples
sevenBoom([1, 2, 3, 4, 5, 6, 7])// ➞ "Boom!"
sevenBoom([8, 6, 33, 100])// ➞ "there is no 7 in the array"
sevenBoom([2, 55, 60, 97, 86... |
import React from "react";
import ReactDom from "react-dom";
import { Hangman } from "../Hangman";
import {
resetButton,
guessedWord,
handleGuess,
getMistake,
getGameState,
getDisplayText
} from "../hangman-functions";
import { PROGRAMING_LANG } from "../words";
let mockState = { mistake: 100, guessed: new... |
/*
EXERCISE 18:
Write a small function called "randNum" that takes the parameters of "min" and "max" and returns a random integer from 0 to "max" (inclusive).
For example:
randNum(0,10) should only return integers between 0 and 10 (including 0 and 10)
randNum(10,10) should onl... |
(function() {
'use strict'
angular
.module('reward', [
'ui.router',
'btford.socket-io',
'customer',
'prize',
'angular-svg-round-progressbar',
'ngToast'
])
})() |
module.exports = {
parseYaml: require('./yamlParser').parseYaml
} |
const express = require('express');
const path = require('path');
const routes = require('./routes.js');
const app = express();
const port = process.env.PORT || 8084;
const router = express.Router();
const bodyParser = require('body-parser');
const passport = require('./auth/local.js');
var session = require('express-s... |
var pin = require('linchpin')
var h = require('snabbdom/h')
var { div } = require('hyperscript-helpers')(h)
var most = require('most')
var { tail } = require('ramda')
var { CellStateEnum, CellFlagEnum } = require('minesweeper')
module.exports = function (cell) {
return div(`#c${cell.x}|${cell.y}.col-xs-1`, cellSta... |
/**
* Created by huamin on 2018/4/12.
*/
//money 类型为string 或 number, 调用:numFormat(10000)或numFormat('10000');
export let numFormat = value => {
let m2 = parseFloat(value);
if(isNaN(m2)) {
return false;
}
let num = m2 + ""
let re = /([0-9]+\.[0-9]{2})[0-9]*/;
m2 = num.replace(re, "$1")
l... |
import React from 'react';
import Drawer from 'material-ui/Drawer';
import {List, ListItem} from 'material-ui/List';
import LogoWhite from '../../../static/aLogo.svg';
import PetroTitle from '../../../static/title.svg';
import RoundedLogo from '../../../static/rounded_logo.svg';
import CommentsIcon from 'material-ui/sv... |
const Singleton_queue = require("../queue_helpers/Singleton");
const Singleton_worker = require("../../worker/Singleton");
const EnqueueTask = require("../task_helpers/EnqueueTask");
const EmitEvent = require("./Emitters");
const invokeWorker = () => {
const taskQueue = Singleton_queue.getQueue();
const workerPool =... |
var React = require('react');
var Router = require('react-router');
var Quiz = React.createClass({
render: function(){
return(
<div className="main-container">
<div className="row">Question 1</div>
<div className="row">
<button type=... |
let Events = function() {
this.funcs = {};
};
Events.prototype = {
on: function(name, func) {
if (!this.funcs[name]) {
this.funcs[name] = [];
}
this.funcs[name].push(func);
},
fire: function(name, evt) {
if (this.funcs[name]) {
this.funcs[name].forEach(function(f) {
f(evt);
... |
import Analytics from 'analytics';
import googleAnalytics from '@analytics/google-analytics';
import { getApp } from "..";
let analytics;
let isAnalyticsActive = false;
if(typeof getApp().analytics != "undefined") {
isAnalyticsActive = getApp().analytics.isActive;
if(isAnalyticsActive === true) {
con... |
// let a = 2 + 2;
// switch (a) {
// case 3:
// alert( 'Too small' );
// break;
// case 4:
// alert( 'Exactly!' ); //Alerts 'Exactly'
// break;
// case 5:
// alert( 'Too large' );
// break;
// default:
// alert( "I don't know such values" );
// }
// // Without the breaks, it aler... |
// @flow
import React from 'react';
import { compose } from 'redux';
import SettingsHOC from '../../Settings/HOC';
import SettingsComponent from '../../Settings/components/currentFiatSettings';
const
Settings = compose(
SettingsHOC,
)(SettingsComponent);
class SettingsPage extends React.Component<{}>{
rend... |
import React, { useState, useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { getProduct, updateProduct } from "../reducers/productAction";
import { useHistory } from "react-router-dom";
import { useParams } from "react-router-dom";
const EditProduct = () => {
let history = use... |
// Membuat object
// Object patrial
const santri1 = {
nama : "Bangkit Juang Raharjo",
id : "081325507780",
email : "[email protected]",
divisi : "Backend Developer"
}
const santri2 = {
nama : "Rahmat Bagus Latami",
id : "088881222345",
email : "[email protected]",
divisi : "Back... |
import axios from "axios";
const cardDiv = document.querySelector(".git-cards");
function getUserInfo(username) {
// pulling userdata from the api
axios
.get(`https://api.github.com/users/${username}`)
.then((res) => {
// creating a variable to store the userdata recieved inside of
const gitUs... |
// forms
const signUpForm = document.querySelector('#sign-up-form');
const loginForm = document.querySelector('#login-form');
// Sign up inputs
const signUpName = document.querySelector('#sign-up-name');
const signUpEmail = document.querySelector('#sign-up-email');
const signUpPassword = document.querySelector('#sign-... |
'use strict';
MetronicApp.controller('TodoController', function($rootScope, $scope, $http, $timeout) {
$scope.$on('$viewContentLoaded', function() {
Metronic.initAjax(); // initialize core components
});
// set sidebar closed and body solid layout mode
$rootScope.settings.layout.pag... |
var express = require('express');
var expressLayouts = require('cloud/express-layouts');
var smartshop = require('cloud/routes/smartshop');
var app = express();
// Configure the app
app.set('views', 'cloud/views');
app.set('view engine', 'ejs');
app.use(expressLayouts);
app.use(express.bodyParser());
app.use(express.... |
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
//host: 'http://intuo-backend.herokuapp.com',
host: Frontend.SERVICES_HOST,
primaryKey: 'id',
ajaxError: function(jqXHR) {
var error, errors, jsonErrors, response;
error = this._super(jqXHR);
if (jqXHR && jqXHR.status === 422) {
... |
var express = require('express');
var multer = require('multer');
var path = require('path');
const http = require('http');
const url = require('url');
require('dotenv').config()
const app = express();
var expressWs = require('express-ws')(app);
var apiKey = process.env.API_KEY;
app.use(express.static('public'));
... |
import React from 'react';
import Section from './Section';
import type { Education } from './types';
const Edu = ({ list }: { list: Education[] }) => (
<Section title="Education">
<ul className="list--unstyled">
{list.map(({ institution, qualification, yearStart, yearEnd }, i) => (
<li key={i}>
... |
const addActionToRequested = db => db.query(
`ALTER TABLE requested
ADD COLUMN action INTEGER NOT NULL REFERENCES action(id)`
).catch(e => {
// ignore the error when we have already run the migration successfully
if (e.message !== 'column "action" of relation "requested" already exists') {
throw e
}
})... |
//2520 is the smallest number that can be divided by
//each of the numbers from 1 to 10 without any remainder.
//What is the smallest positive number that is evenly divisible
//by all of the numbers from 1 to 20?
//function gcd(a, b) {
var x = a;
var y = b;
var result;
while (y != 0) {
result = x % y;
x = y... |
//Importar FS
const fs = require('fs');
//constante que contiene la ruta en donde se almacenara el archivo
const archivo = './db/data.json';
//Funcion para crear archivo JSON
const guardarDB = ( data ) => {
//grabar archivo recibiendo como argumento la constante de la URL
fs.writeFileSync( archivo, JSON.str... |
function monkeyTrouble(aSmile, bSmile){
if (aSmile && bSmile || !aSmile && !bSmile) {
return true;
}
return false;
}
|
/**
* Created by dkroeske on 28/04/2017.
*/
// API - versie 3
const express = require('express');
const router = express.Router();
const db = require('../db/mssql-connector');
const assert = require('assert');
router.get('/actors/:id?', (req, res, next) => {
const actorId = req.params.id || null;
if (act... |
/***
*
* @param {string} text
* @return {{}}
*/
export default function parseCookieString(text) {
return text.split(/\s*;\s*/).reduce(function (ac, item) {
var tokens = item.split('=');
var name = (tokens.shift() || '').trim();
if (!name) return ac;
var value = (tokens.shift() ||... |
import API from '@/api';
export const GET_HOSTGROUP = 'GET_HOSTGROUP';
export const GET_HOSTS = 'GET_HOSTS';
export const getHostgroup = data => ({ type: GET_HOSTGROUP, hostGroups: data });
export const getHosts = data => ({ type: GET_HOSTS, hosts: data });
export const fetchHostgroup = () => async (dispatch) => ... |
const express = require('express')
const userRouter = require('./user')
const app = express()
app.use('/user', userRouter)
app.get('/', (req, res) => {
res.send('hello zhangyuhong3')
})
app.listen(9093, function () {
console.log('Node app start at port 9093')
}) |
var x=50
console.log(x) /*to print the value of x*/
console.log(typeof x) /*to print the type of x*/
var j=100.45
console.log(j)
console.log(typeof j)
var str="welcome" /*for string and characters, can use both '' and "" */
console.log(typeof str)
console.log("value of x=",x, "type :",typeof x)
var b=true
console... |
export const IconMap = {
logout: 'fas fa-sign-out-alt',
user: 'fas fa-user',
manage: 'fas fa-th-list',
edit: 'fas fa-edit'
};
|
//global variables
const colordivs = document.querySelectorAll(".color");
const generate = document.querySelector(".generate");
const sliders = document.querySelectorAll(".slider");
const currentHexes = document.querySelectorAll(".color h3");
const adjust = document.querySelectorAll(".adjust");
const closeSlider = docu... |
const Category = require('../controller/categoryController');
module.exports = {
Query: {
categories: async (parent, args, req) => {
const categories = Category.find({});
if(categories !== undefined){
return categories;
}
return null;
}
},
Mutation: {
addCategory: asy... |
var React=require('react');
var DisplayEmp=require('./DisplayEmp');
var Display=React.createClass({
var msg= this.props.display.map(function(l){
render:function(){
//console.log(this.props.p2);
var msg= this.props.adata.map(function(e){
return(
<DisplayEmp wave={e.wave} n... |
require('dotenv').config();
const mongoose = require('mongoose');
const { initApp } = require('./init-app.js');
const { MONGODB_URI } = process.env;
async function connectDb(mongoUrl) {
return mongoose.connect(mongoUrl, {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true
});
... |
import React from 'react';
import { connect } from 'react-redux';
import {
Form, Input, Button, Select, InputNumber
} from 'antd';
import { fetchMetrics } from '../../store/reducers/template/actions';
import API from '@/api';
const { Item } = Form;
const { Option } = Select;
class StrategyForm extends React.Compone... |
var _viewer = this;
var ctlgShare = _viewer.getItem("CTLG_SHARE");
//模块CTLG_MODULE赋值
if(_viewer.getItem("CTLG_MODULE").getValue() == "") {
if(_viewer.getParHandler()){
_viewer.getItem("CTLG_MODULE").setValue(_viewer.getParHandler().getParams().CTLG_MODULE);
} else {
_viewer.getItem("CTLG_MODULE").setValue(_vie... |
/********************
VARIABLE DECLARATION
*********************/
// constants
var LIST_LEFT;
var USER_LANG = navigator.language || navigator.userLanguage;
var ID_SCROLL_PREV = 'box_prev';
var ID_SCROLL_NEXT = 'box_next';
var ID_DAYLIST = 'box-daylist';
var ID_VIEWPORT = 'layer_viewport';
var ID_NEEDLE = 'obj_needle';... |
import React from 'react';
import { Button, View, Text, AsyncStorage } from 'react-native';
import { ListItem } from 'react-native-elements';
export default class Lista extends React.Component {
constructor(props) {
super(props);
try {
AsyncStorage.getItem('dados').then(value => {
global.dados ... |
window.onload = function(){
function accodianInit(accodianDiv){
var liElements = accodianDiv.querySelectorAll('.title_section');
function showPanel(titleItem){
(accodianDiv.querySelector('.is_active')) && accodianDiv.querySelector('.is_active').classList.remove('is_active');
... |
var BTVPlatform = new function () {
var callback_2;
/**
* 구매 비밀번호 체크
* @param {int} inputPwd 입력한 비밀 번호
* @param {function} callback 비밀번호 체크 결과를 리턴 받을 콜백 함수
* @returns {Boolean}
*/
this.checkPurchasePin = function (inputPwd, callback) {
if (!callback) {
HLog.... |
/**
*
* @param {*} graph
*/
var shortestPathLength = function(graph) {
const N = graph.length;
// 动态规划
// 广搜
// 如果指定了起点结束点 直接广搜解决
// 初始化
const L = [];
for (const i = 0; i < N; i++) {
gI.foreach(j => {
l[i][j] = 1;
});
}
for () {
}
};
const grap... |
describe('Transformation', function() {
it('can do an identity transform', function() {
var t = new MM.Transformation(1, 0, 0, 0, 1, 0);
var p = new MM.Point(1, 1);
var p_ = t.transform(p);
var p__ = t.untransform(p_);
expect(p).toEqual(new MM.Point(1, 1));
expect(p... |
define(function (require) {
var slider = require('slide');
var a = new slider('#box-outer',{
});
console.log(a);
}); |
const conexionMysql = require("../../DB/conexionMysql");
/**
* Cancela la reserva de cierta experiencia 👍
* @param {} req
* @param {*} res
* @param {*} next
*/
async function cancelarExperiencia(req, res, next) {
let conexion;
try {
conexion = await conexionMysql();
const idExperienci... |
export const WitnessHTML = (witnessObj) => {
return `
<section class="witness card">
<div class="witness__name"> Name: ${witnessObj.name}</div>
<div class="witness__statement"> Statement ${witnessObj.statements}</div>
</section>
`
} |
var txtintro = "Press enter!";
function intro() {
document.getElementById('suite').style.display = 'none'
display = document.getElementById('intro');
for(var i = 0, l = txtintro.length; i < l; i++) {
(function(i) {
setTimeout(function() {
display.innerHTML += txtintro.charAt(i);
}, i * 200);
}(i));
} ... |
import React, { Component } from 'react';
import Background from './Background'
import Loading from './Loading'
import LandingPage from './LandingPage'
import Transition from './Transition'
import Question1 from './question/Question_1'
import Question2 from './question/Question_2'
import Question3 from './question/Ques... |
import Artboard from './Artboard'
import dndWrapper from './dndWrapper'
import connector from './connector'
import './styles.scss'
export default connector(dndWrapper(Artboard))
|
import React from 'react'
import { View, StyleSheet } from 'react-native'
import { Text } from 'react-native-elements'
import { BarIndicator as LoadingAnimation } from 'react-native-indicators'
import { COLORS } from '../style/theme.style'
import { getLoadingPhrase } from './lib/helper'
import { commonStyles as common ... |
/*
FreeBSD License
---------------
Copyright 2011 Maarten Mortier. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this lis... |
import Person from "./Object-oriented";
class Student extends Person {
constructor(name, age, job) {
super(name);
this.age = age;
this.job = job;
}
getJob() {
console.log(this.job);
}
getAge() {
console.log(this.age);
}
}
export default Student;
|
const err_names = {
ServerError: [ "Internal Server Error", 500 ],
TooFewArguments: [ "Too few Arguments", 400 ],
PasswordInvalid: [ "Password invalid", 400 ],
PasswordNotSecure: [ "Password does not match criteria", 400 ],
UsernameInvalid: [ "Username invalid", 400 ],
UserEmailInvalid: [ "U... |
import {request} from "../utils/request";
export function getCart(data) {
return request({
url: '/api/Cart/getCart',
method: 'post',
data
})
}
export function saveCart(data) {
return request({
url: '/api/Cart/saveCart',
method: 'post',
data
})
}
export function deleteCart(data) {
retur... |
// Copyright 2019 Google LLC
//
// 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 ... |
const timesDB = require("../myModel/timesCount.js");
module.exports = app => {
class NewsController extends app.Controller {
* list() {
let list = [];
for(let key in timesDB) {
list.push({
type:`${key}`,
times:`${timesDB[key]}`
})
}
list = this.mergeSort... |
'use strict';
app.controller('JobCtrl', function ($scope, factJobs, factDomains, factAnalytics, $timeout, $q) {
console.log ('JobCtrl');
$scope.newcrawljob = {
depth : -1,
numberpages : -1
}
$scope.addCrawljob = function (newcrawljob) {
console.log('addCrawljob: started "startJob"');
console.log... |
const gulp = require('gulp');
const build = () => (
gulp.series('build')
);
module.exports = {
build,
}; |
import { USER } from '../constants/actionTypes';
import authHeader from '../helpers/authHeader';
const { token, user } = authHeader();
const initialState = {
isLoggedIn: token ? true : false,
user: user ? user : false,
}
console.log(initialState);
export default (state = initialState, action) => {
switch(ac... |
/*
EXERCISE 16:
Write a small function called "getLongest" that takes a parameter called "arr" and returns the longest string in "arr". If there is a tie, return the first of the longest strings.
For example:
getLongest(['sam','indubitably','jacob']) should return 'indubitably'
... |
function checkForInputErrors(regex, element, array, message){
if(!regex.test(element.val().trim())) {
array.push(message);
element.addClass("border-danger");
}
else{
element.removeClass("border-danger");
$(".errors").empty();
}
}
function printErrors(array) {
if (arra... |
import express from 'express';
import mongoose from 'mongoose';
import User from '../models/user';
const router = express.Router();
// GET: /
router.get('/', async (req, res) => {
const users = await User.find().exec();
return res
.status(200)
.json({ data: users });
});
// GET: /:id
router.get('/:id', a... |
/*
* Copyright 2018 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const form = document.querySelector("form");
const inputFields = document.querySelectorAll("input");
const textAreas = document.querySelectorAll("textarea");
const submitButton = document.querySelector(".submit-button");
const validate = () => {
let inputArray = [];
// If the form includes textareas
textA... |
#!/usr/bin/env node
require('../index.js')(process.argv[2], process.argv[3]);
|
const board = {
asdf12j124j: {
name: "Stuff to Try",
cards: [
{
id: "asdfj23j243",
text: 'This is a card. Drag it on to "tried it" to show it\'s done.'
},
{
id: "asdfj23j244",
text: 'This is a card. Drag it on to "tried it" to show it\'s done.'
},
... |
import authRouter from './authRouter';
import spotifyRouter from './spotifyRouter';
import trackRouter from './trackRouter';
import unknownRouter from './unknownRouter';
export { authRouter, spotifyRouter, trackRouter, unknownRouter }; |
//import actions
import { GET_DATA } from '../actions/shared'
export default function meta (state = {}, action){
switch(action.type){
case GET_DATA :
return {
...state,
page: action.metadata.meta.page,
perPage: action.metadata.meta.perPage,
totalPages: action.metadata.meta.... |
var co = require('co'),
path = require('path'),
assert = require('assert'),
f = require('util').format,
SocketIOTransport = require('../../../server/transports/socketio'),
Server = require('../../../server/server'),
Long = require('../../../client/bson/long'),
MongoClient = require('mongodb').MongoClient;... |
var searchData=
[
['name',['name',['../interface_c1_connector_offer.html#a6c64624a2579f62538634568f7972525',1,'C1ConnectorOffer']]],
['nickname',['nickname',['../interface_c1_connector_user_master_data.html#a60223ec1e4216d015a063f4e272012d8',1,'C1ConnectorUserMasterData']]],
['nsdata_28base64_29',['NSData(Base64)... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { isUserSet } from "../../lib/helpers";
import DepositTable from "../DepositTable";
import _ from 'lodash';
import "./index.css";
class DepositTab extends Component {
constructor(props){
super(props);
this.stat... |
'use strict';
const webpack = require('webpack');
const utils = require('../webpack/utils');
const { NODE_ENV } = utils;
const config = {
output: {
filename: '[name].js',
chunkFilename: '[id].chunk.js'
},
performance: {
hints: NODE_ENV === 'production' ? 'warning' : false,
assetFilter(assetFile... |
//====================================//
//========== Express Server ==========//
//====================================//
// Require server modules
const express = require('express');
const app = express();
const server = require('http').createServer(app);
const port = process.env.PORT || 3000;
// Serve the public d... |
/*
* Short description for file
*
* Long description for file (if any)...
*
* @package: Blueacorn AdminColorAttribute.js
* @version: 1.0
* @Author: Blue Acorn, Inc. <[email protected]>
* @Copyright: Copyright 2015-08-23 21:03:06 Blue Acorn, Inc.
*/
'use strict';
function AdminColorAttribute() {
var adminColorAttr... |
const test = require('tape');
const everyNth = require('./everyNth.js');
test('Testing everyNth', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof everyNth === 'function', 'everyNth is a Function');
t.deepEqual(everyNth([1, 2, 3,... |
import React from 'react';
import './Buildcontrol.css';
class Buildcontrol extends React.Component {
render() {
return (
<div className="buildcontrol">
<div className="label">{this.props.label}</div>
<button onClick={this.props.removeItem} className="btn btn-sec... |
'use strict';
angular.module('newApp').controller('mdl.mobileweb.controller.postalvotesdeliveredstatement',
['$rootScope', '$scope', 'mdl.mobileweb.service.dashboard', 'mdl.mobileweb.service.recordprogress','mdl.mobileweb.service.login', 'toaster', 'mdl.mobileweb.service.json', '$http','modalService','$location','m... |
function asyncAdd(a, b, callback) {
setTimeout(function () {
callback(null, a + b);
}, 1000);
}
/**
* 请在此方法中调用asyncAdd方法,完成数值计算
* @param {...any} rest 传入的参数
*/
async function sum(...rest) {
async function add(a, b) {
return new Promise((resolve) => {
asyncAdd(a, b, (err, result) => {
re... |
'use strict'// Modo estricto para las variables.
/** LOOPS */
let n=0;
while(n<10){
console.log(`While ${n++}`);
}
for(var i = 0;i<10;i++){
console.log(`For ${i}`);
}
console.log(`i = ${i}`); // Var se mantiene fuera de los loops y los condicionales. |
import React, { useState } from 'react'
import { BrowserRouter as Router, Route, Switch } from "react-router-dom"
import { useHistory } from "react-router-dom"
import { useDispatch } from 'react-redux'
import { SETUSER } from '../../Reducers/actionTypes'
import { makeStyles } from '@material-ui/core/styles'
import AppB... |
import React from "react";
import "./Navbar.css";
function Navbar() {
return (
<div className="nav">
<div className="container-fluid">
<nav className="navbar navbar-expand-md bg-dark navbar-dark">
<a href="#" className="navbar-brand">
MENU
</a>
<button
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.