text stringlengths 7 3.69M |
|---|
var context_8h =
[
[ "Context", "structContext.html", "structContext" ],
[ "EventContext", "structEventContext.html", "structEventContext" ],
[ "NotifyContext", "context_8h.html#a4b12137da3b4327ecfe951e545f36d4c", [
[ "NT_CONTEXT_OPEN", "context_8h.html#a4b12137da3b4327ecfe951e545f36d4ca551ca75b292371... |
import React, {Component} from 'react';
import Message from './Message.jsx';
/* iterates over [{messages} either Messages or Notifications]
rendering each to display container */
class MessageList extends Component {
render() {
let messageDetails = this.props.messages.map(details =>
<Message
key=... |
/**
* Created by wen on 2016/8/16.
*/
import React, { PropTypes,Component } from 'react';
import ClassName from 'classnames';
import {TextArea,LocalButton,Toast} from "../../../components";
import s from './BMmodifyEmail.css';
import history from '../../../core/history';
import {clientFetch} from "../../../utils/clie... |
const express = require('express');
const http = require('http');
// Basic calculator API
function add(n1, n2) {
return n1 + n2;
}
// REST calculator API
function caclServer(port, isStartedCB) {
const app = express();
app.get('/api/calc/add/:n1/:n2', (req, res) => {
const n1 = Number(req.params.... |
const Deployer = require( './index.js' )
const d = new Deployer( {
host: 'httpbin.org',
service: '/status/401'
} )
d.deploy( )
|
var { TextureLoader, JSONLoader, Mesh, MeshStandardMaterial, Vector2 } = require('./three.js');
var texLoader = new TextureLoader();
var jsonLoader = new JSONLoader();
var loadTexture = url => new Promise( resolve => texLoader.load( url, resolve ) );
var loadJSON = url => new Promise( resolve => jsonLoader.load( url,... |
import './RcChatContent.scss';
import React, { Component } from 'react';
import Avatar from 'material-ui/Avatar';
import RcChatBubble from '../rc-chat-bubble/RcChatBubble.jsx';
import { List, ListItem } from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import IconButton from 'material-ui/IconButto... |
const {Network, WalletClient} = require('bcoin.js');
const { validateWalletConfig } = require('../utils/validation/validators')
function initializeWalletClient(config){
const walletConfigValidation = validateWalletConfig(config);
if(walletConfigValidation){
throw new Error(Object.values(walletConfigVal... |
//Menu
let menuIcon = document.querySelector(".menuIcon");
let nav = document.querySelector(".overlay-menu");
menuIcon.onclick = () => {
menuIcon.classList.toggle("toggle");
if (nav.style.transform != "translateX(0%)") {
nav.style.transform = "translateX(0%)";
nav.style.transition = "transform 0.2s ease-ou... |
const fs = require('fs')
const path = require('path')
const nconf = require('nconf')
const webpack = require('webpack')
const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
... |
// redis handling |
import React, {Fragment} from 'react'
import MovieDetail from "./MovieDetail";
import {connect} from 'react-redux';
import {getCurrentMovie, getGenres, getRating, Reviews, getReviews, setReviews, Name, Text, setRating, ClearFields, MovieId} from '../../redux/HomeReducer'
import {withRouter} from "react-router-dom";... |
import anime from "animejs";
function writeOnMockup() {
var elements = document.getElementsByClassName("mock-text");
var elementsArray = Array.from(elements);
var elStyles = elementsArray.map(item => {
var style = window.getComputedStyle(item);
return style.getPropertyValue("width");
});
var timeline... |
const promise = require('bluebird')
const options = { promiseLib: promise }
const pgp = require('pg-promise')(options)
const connectionString = 'postgres://localhost:5432/http_auth'
const db = pgp(connectionString)
const insertUser = (email, password) => {
return db.one('INSERT INTO users (email, password) VALUES (... |
var todelete = ds.Webuser.query('ID > 84');
todelete.remove();
|
$(document).ready(function() {
$('.fade').hover(
function(){
$(this).find('.caption').stop().fadeTo('slow',0.8);
},
function(){
$(this).find('.caption').stop().fadeTo('slow',0);
});
});
|
$(document).ready(function(){
$('.lightbox_trigger').click(function(prevent) {
prevent.preventDefault()
var image_href = $(this).attr("data-img");
if ($('#lightbox').length > 0) {
$('#content').html('<p>hi</p>');
$('#lightbox').show("fast")
}
else {
var lightbox = '<div id="lightbox">' + '<p>Cl... |
import React, { PureComponent } from 'react'
import moment from 'moment'
import './index.css'
export class Article extends PureComponent {
render () {
const { description, title, publishedAt } = this.props
return (
<div className='rn-Article'>
<ArticleRow title='Title:' value={title} />
... |
import { useState, useEffect } from 'react'
import Search from './searchbar'
import SerieList from './SerieList'
export default function App() {
const [seriesData, setSeriesData] = useState([])
useEffect(() => {
fetch('http://localhost:4000/rest/shows')
.then(response => response.json(... |
import request from '@/utils/request'
import { urlFinance } from '@/api/commUrl'
const url = urlFinance
// const url = 'http://qa.oss.womaoapp.com/fwas-finance-admin/sys/'
const findSettlement = url + 'settlement/findSettlementRelation'
const findOrder = url + 'settlement/findOrderId'
const openInvoice = url + 'settle... |
export const deepDiveContent = [
{
id: 0,
content: `Steeped in innovation, education and craftsmanship.`,
},
{
id: 1,
content: `With a passion to embrace change, and a relentless focus.`,
},
{
id: 2,
content: `To deliver beautifully simple solutions to the institutional execution community.`,
},
{
... |
tasks.todos.views.helpers.ErrorHandler = (function (views) {
var ErrorHandler = views.helpers.ExtendedView.extend({
className: 'err-handler animated bounceOutUp',
template: JST['templates/error-handler'],
events: {
'click .close': 'close'
},
render: function (err) {
this.$el.html(this.temp... |
function findLongestWordLength(str) {
// Turn "str" string input into an array of strings
var arrayStr = str.split(" ");
// Set maximum (largest) number variable
var max = 0;
//Use for loop such that iterates through i + 1 through the length of the "arrayStr" string array
for(let i = 0; i < arrayStr.length; ... |
const Discord = require("discord.js");
const request = require("request")
exports.name = "rate";
exports.guildonly = false;
exports.run = async (robot, interaction)=>{
try{
if(!interaction.options.data[0].value) return interaction.reply({content: 'Напишите комментарий!'});
var token = 'your token... |
/*global document */
(function(className){
var i, nodes, node, next, siblings = [], returnValue;
if (document.getElementsByClassName) {
nodes = document.getElementsByClassName(className);
for (i in nodes){
if (nodes.hasOwnProperty(i)) {
node = nodes[i];
if (node.nextSibling) {
next = node.nextSibl... |
import React, { Component } from 'react';
import { View } from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { FormLabel, FormInput } from 'react-native-elements'
import Button from '../components/Button';
import { userRegister } from '../actions/userActions... |
import React from 'react'
import uid from 'uid'
import { Link } from 'react-router-dom'
const Categorias = (props) => (
<ul className="list-group">
<span className="list-group-item">Categorias</span>
{
props.categories.map((item) => {
return (
<Link t... |
import {promisify} from '../helpers';
import {User,Product,Order,Customer} from '../models/index.js';
import ISODate from '../scalars/ISODate';
import mongoose from 'mongoose';
const ObjectId = mongoose.Types.ObjectId;
const paramHandler= (qry) => {
let param ={}
if(qry.argument && qry.query)param= {[qry.argumen... |
//visível apenas para o módulo
let a = 2
//FORMA PADRÃO DE EXPORTAR
//não pode usar só exports nem só this
module.exports={
bomDia: 'Bom dia',
boaNoite(){
return 'Boa noite'
}
} |
import React from 'react';
import ItemCollection from './Containers/ItemCollection';
import Accessories from './Containers/Accessories';
import Tops from './Containers/Tops';
import HottestReleases from './Containers/HottestReleases';
class MainBody extends React.Component {
render() {
return(<div classNa... |
const React = require("react");
const NoteInput = () => ({
componentDidMount() {
let input = this.refs.noteInput;
this.focus(input);
},
focus(input) {
if (!input) return;
input.focus();
input.setSelectionRange(0, input.value.length);
},
render() {
r... |
export const HOME = '/';
export const ASSUMPTIONS = '/assumptions';
export const NOT_FOUND = '/404'; |
import React from 'react'
import Club from './clubs/Club.js/index.js'
import { withKnobs, text, boolean, number } from '@storybook/addon-knobs'
export default {
component: Club,
title: 'Club',
decorators: [withKnobs],
}
export const club = () => (
<Club
logo={text(
'Logo',
'https://upload.wiki... |
const { fake } = require("faker");
const faker = require("faker");
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('clucks').del()
.then(function () {
// Inserts seed entries
const clucks=[];
for (let i = 0; i < 30; i++) {
sentences = faker.lorem... |
// @flow
import type { ChatMessage, MessageBatchRequest } from '../types';
/**
* Channels
*/
// Subscriptions channel
export function createSubToSubscriptionsChannel() {
return { command: 'subscribe', identifier: { channel: 'SubscriptionsChannel' } };
}
export function cancelSubToSubscriptionsChannel() {
retur... |
/*
* File containing commonly run tests / assertions
*
* @package: Blueacorn CommonTests.js
* @version: 1.0
* @Author: Luke Fitzgerald
* @Copyright: Copyright 2015-07-24 10:43:45 Blue Acorn, Inc.
*/
'use strict';
function CommonTests() {
this.testHttpStatus = function() {
casper.then(function() {
casper.test.a... |
/// <reference path="../lib/jquery-1.7.2.js" />
/// <reference path="../lib/underscore.js" />
/// <reference path="../lib/backbone.js" />
!function(){
var Post = Backbone.Model.extend({
idAttribute: "Id"
})
var PostCollection = Backbone.Collection.extend({
model: Post,
url: '/ap... |
import * as React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
Animated,
// TextInput,
LogBox
} from 'react-native';
import {FloatingLabelInput} from 'react-native-floating-label-input';
import {
TextField,
FilledTextField,
Out... |
services.factory('ChatService', function() {
return {
createOrReplace: function(id){
console.log(id);
database.ref().child('chats').push();
},
get: function(id){
database.ref('/chats').on('value', function(snapshot){
console.log(snapshot);
snapshot.forEach(function(child){
//userList.push... |
let pg=require('pg');
let fs = require('fs');
let arrayobj = JSON.parse(fs.readFileSync('./data.txt', 'utf8'));
// console.log(arrayobj[0])
let movies=[]
let directors=[]
for(let i=0;i<arrayobj.length;i++){
let entry=[]
for(let j in arrayobj[i]){
let value=arrayobj[i][j]
entry.push(value)
}
... |
import Widget from "./Widget";
/**
* @extends Widget
*/
class Command extends Widget {}
export default Command; |
const Heading = {
render: (props) => `
<div class="heading title">
<h3 class="heading__title">${props}</h3>
<div class="heading__desc"><img src="../images/titleleft-dark.png" alt="Title"/></div>
</div>
`,
};
export default Heading; |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
/**
* Created by Taoxinyu on 2015/10/19.
*/
function GiveBodyHei(){
var bodyhei=$(document).height();
var winhei=$(window).height();
if(bodyhei<winhei){
$(".body_con").height(winhei-105);
}
}
function GiveRightContentHei(){
var leftnavihei=$(".nav_list_con").height();
$(".content_con"... |
import Head from "next/head";
export default function Home() {
return (
<div>
<Head>
<title>Create Next App + Tailwind</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className="min-h-scree... |
export function configure(config) {
config.globalResources([
'./value-converters/repeatlimit',
'./value-converters/sortpolls',
'./elements/header.html',
'./elements/footer.html'
]);
} |
console.log("loops");
// My basic for loop
for (let i = 0; i <5; i++) {
console.log(i);
}
// Basic while loop
let j = 0;
while (j < 5) {
console.log(j);
j++;
} |
function sl_check(field, name, maxlength, minlength)
{
var sMsg="";
if(minlength != 0 && field.value == "")
{
sMsg=name+"\t不能为空,请您填写"+name+"!\n\n";
field.focus();
return sMsg;
}
if(!no_deviant_char(field,name)) {
sMsg+=name+"\t中不能包含单引号等非法字符!\n\n";
return sMsg;
}
if(minlength != ... |
'use strict';
// MODULES //
var isArrayLike = require( 'validate.io-array-like' ),
isMatrixLike = require( 'validate.io-matrix-like' ),
isNumber = require( 'validate.io-number-primitive' ),
matrix = require( 'dstructs-matrix' );
// FUNCTIONS //
var getPDF = require( './pdf.js' ),
getCDF = require( './cdf.js' )... |
const crypto = require('crypto');
class EncryptionManager {
constructor() {
}
/**
* Validates a hash of a string against the passed hash
* @param string - The string to validate
* @param salt - The salt for the hash
* @param hash - The hash to validate against
*/
validiateHash(string, salt, h... |
import React from "react";
function Note1() {
return (
<div className="note">
<h1> Other courses given by the shape AI </h1>
<p>
There are some other bootcamp and Internship provided by the Shape AI
Such as python Bootcamp and Full sfack devolopment Internship
</p>
... |
define('Map', function(){
var Map = function(){
console.log('A new map (3)');
}
return Map;
});
|
let j = 0;
let a = 0;
let v = 0;
let personnes;
do {
personnes = window.prompt("Entrez votre age (la saisie s'arrete losque l'on rentre le nombre 100)");
if (personnes < 20) {
j++;
console.log(j);
} else if (personne >= 20) {
a++;
console.log(a);
} else if ((personnes >= ... |
// select all elements-------------------------------------
const start = document.getElementById("start");
const quiz = document.getElementById("quiz");
const question = document.getElementById("question");
const qImg = document.getElementById("qImg");
const choiceA = document.getElementById("A");
const choiceB ... |
import Main from '@/views/layout/Main'
import Login from '@/views/Login'
// 不作为Main组件的子页面展示的页面
export const loginRouter = {
path: '/login',
name: '登录',
component: resolve => { require(['@/views/Login'], resolve); },
meta:{isLogin:false,isAuth:false},
};
export const page404Router = {
path: '*',
... |
/* CPU: Ricoh RP2A03 (based on MOS6502, almost the same as in Commodore 64) */
// Declares the standard 2KiB of NES RAM accessible by the CPU
RAM = [];
// Set variables for managing CPU contexts and triggers: reset, non-maskable interrupt disable, edge state comparator, and current interrupt state.
// These are spec... |
/*****************************************************
* 时间:2016-04-23 22:07:36
* 作者:zhongxia
*
* 操作数据的一些相关方法
* 提供的方法:
* 1. getItemByKeyAndValue 根据key 和 value 或者 对象数组的中某个对象
* 2. setItemByKeyAndValue 根据key 和 value 设置 对象数组中的某个对象
* 3. prevOrNextItem 根据 排序的字段key 和当前的下标,指定向前或者先后移动几位
* 4. clone ... |
let CSRF = $('meta[name="csrf-token"]').attr('content');
let uploadImages = [];
let uploadIndex = 0;
let ALLOW_MIME = ['image/png'];
function selectFolder(element) {
clearInput();
let input = $(element)
.closest('#app')
.find('#dirLoader');
input.click();
input
.unbind()
... |
import {Link} from 'react-router-dom';
import $ from 'jquery';
import DataStore from 'flux/stores/DataStore.js';
import SubLinks from './SubLinks.js'
import AboutSide from './AboutSide.js';
function isEmpty(myObject) {
for(var key in myObject) {
if (myObject.hasOwnProperty(key)) {
return false;... |
import React from 'react'
export default class SoundCloud extends React.Component {
render() {
const autoPlay = false;
const color = '4b2c20'
return(
<iframe
height="600"
scrolling="no"
allow="autoplay"
src={`https://w.so... |
'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ItemSchema = new Schema({
name:{
type: String,
required: "please kindly enter the name for item"
},
itemType:{
type: String
},
itemDescription:{
type: String
},
itemURL:{
... |
import React from 'react';
import { filterAttribsForReact } from '../../../react-utilities';
import { componentMap } from '../block-component-maps/component-map';
import Html from '../Html';
export const defaultBlocksFromData = (data) =>
data.map(({ attribs, data, name }, i) => {
const Block = componentMap(name)... |
WAF.onAfterInit = function onAfterInit() {// @lock
// @region namespaceDeclaration// @startlock
var button_Save = {}; // @button
// @endregion// @endlock
// eventHandlers// @lock
button_Save.click = function button_Save_click (event)// @startlock
{// @endlock
sources.content.save();
};// @lock
// @region ev... |
define({
'title': '欢迎页'
}); |
import Microcastle from '../../index.js';
import ItemFrame from '../ItemFrame.js';
import thunk from 'redux-thunk';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import I from 'immutable';
describe('Part Editor', () => {
const reducer = combineReduce... |
const ccra = require('customize-cra');
module.exports = ccra.override(
// ccra.useEslintRc(),
ccra.useBabelRc(),
ccra.addDecoratorsLegacy(),
// ccra.fixBabelImports('antd', { libraryDirectory: 'es', style: 'css' }),
ccra.fixBabelImports('antd', { libraryDirectory: 'es', style: true }), // If need customize st... |
// @flow
import React, { Component } from "react";
import { connect } from "react-redux";
import Layout from "components/mainLayout";
import Link from "components/Link";
import "./styles.scss";
type HomePageProps = {
user: Object,
};
class HomePage extends Component<HomePageProps> {
render() {
const {
... |
i18nUtil = {};
i18nUtil.setup = function(/*Object*/kwArgs){
//summary: loads dojo so we can use it for i18n bundle flattening.
//Do the setup only if it has not already been done before.
if(typeof djConfig == "undefined" || !(typeof dojo != "undefined" && dojo["i18n"])){
djConfig={
locale: 'xx',
extraLoca... |
import React, { useEffect, useState } from 'react';
import Sidebar from './Sidebar';
import Result from './Result';
import Table from './Table';
import './Body.scss';
import { SettingFilled } from '@ant-design/icons';
import { filterData, filterByDate, filterByPepClass, filterByMatching } from '../utils';
const Body ... |
import React, { Component } from 'react';
import { Redirect, NavLink } from 'react-router-dom';
import { getIndex } from '../../api';
class TypeLink extends Component {
render() {
const { url, item } = this.props;
return (
<span>
<NavLink to={`${url}/${item.id}`}>{item.name}</NavLink>
... |
import axios from '../plugins/axios'
import Swal from 'sweetalert2'
export const state = () => ({
services: [],
carts: [],
visibles: 0,
direction: 'left'
})
export const mutations = {
fetch_services(state, payload) {
state.services = payload
},
fetch_carts(state, payload) {
... |
import "js/web.jsx";
class Config {
static const quantity = 360;
static const size = 2.0;
static const decay = 0.98;
static const gravity = 2.0;
static const speed = 6.0;
static const canvasId = "night-sky";
static const fpsElementId = "fps";
}
final class Spark {
static const rad = Math.PI * 2;
... |
submitForms = function() {
//see what areas are filled in and what are not
var places = [];
var rows = document.getElementsByClassName("places-table")[0].children[0].children[0].children
for (i=3; i<(rows.length-1); i++) {
var rowElements = rows[i].children;
index = i-3;
places[index] = 0;
for (... |
import { gql } from 'apollo-server-express';
export default gql`
scalar Date
type Query {
""" PAGINATION USERS ONLY ADMIN """
paginationUsers(limit:Int,offset:Int):[User]
""" TOTAL USERS FOR PAGINATION ADMIN """
totalUsers:Int
""" USER VALID """
userValid:User
"""RETURN CHAT USERS DB"""
chatUsers... |
// CAROUSEL OBJECT
var b=0;
function Carousel(option,carouselId) {
if (typeof option === 'undefined' || option === null) {
this.option= {showIndicator : true, cycle : false, animation : "rotateIn",interval:2000,buttons:"hidden"};
// alert('user not defined option field');
}
... |
import { Debug } from '../../core/debug.js';
import { Color } from '../../core/math/color.js';
import { math } from '../../core/math/math.js';
import { Vec2 } from '../../core/math/vec2.js';
import { ShaderProcessorOptions } from '../../platform/graphics/shader-processor-options.js';
import {
CUBEPROJ_BOX, CUBEPR... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Form from './Form';
import { calculateMaxEntropyLabel } from '../services/Utils';
import './Setup.css';
class Setup extends Component {
constructor(...args) {
super(...args);
this.state = {
entropyLabe... |
import React from 'react';
// import 'react-bootstrap/dist/css/bootstrap.min.css';
import App from './App';
import ReactDOM from 'react-dom/client';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { UserContextProvider } from './firebase/userContext';
import MachiMachi from './pages/work/mach... |
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
StatusBar,
TouchableOpacity,
Dimensions,
FlatList,
Modal,
TextInput,
Button,
Alert
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { TabView, SceneMap } from 'r... |
export const create = {
icon: "plus",
action: "CREATE",
route: "create"
};
export const back = {
icon: "arrow-left",
action: "BACK",
route: "items"
};
export const submit = {
icon: "check",
action: "SUBMIT",
route: "items"
};
|
({
deactivateFirstTimeExperience : function(component, event, helper) {
let onBoardingStatus = component.get("v.UserXCOnboardingStatus");
var action = component.get("c.deactivateFirstTimeExperience");
action.setParams({ XCOnboardingStatus :onBoardingStatus });
action.setCallback(this, functio... |
import React from "react";
import "./badge.css";
const Badge = props => (
<div className="badgeContainer col-md-6">
<h1 className="badgeName text-center"> {props.firstname} {props.lastname}</h1>
<h2 className="badgeCompany text-center"> {props.company}</h2>
<h1>{props.qrV... |
var fs = require('fs'),
path = require('path'),
util = require('util'),
_ = require('lodash'),
async = require('async'),
bodyParser = require('body-parser'),
Express = require('express'),
multer = require('multer'),
MongoDB = require('../mongodb'),
csvReader = require('../csv-parse... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { Layout } from 'antd'
import { Switch, Route } from 'react-router-dom'
import Header from '../../components/Header'
import Breadcrumbs from '../../components/Breadcrumbs/Breadcrumbs'
import Home from '../../components/Home'
import Si... |
/* eslint-env node */
/* eslint-disable no-sync */
var gulp = require('gulp');
var sass = require('gulp-sass');
var del = require('del');
var execSync = require('child_process').execSync;
var osenv = require('osenv');
var path = require('path');
var runSequence = require('run-sequence');
var eslint = require('gulp-e... |
import React from 'react';
import { Link } from 'react-router';
var HeaderButton = props => {
const { logged_in } = props;
const style = {
background: "#FAFAFA",
float: "right",
height: "100%",
}
return (
<div className="col btn btn-primary navbar-btn" style={style}>
... |
#pragma strict
private var marginFromLeftRatio : float = 0.10;
private var marginFromTopRatio : float = 0.09;
private var marginBetweenButtonRatio : float = 0.10;
private var widthOfButtonRatio : float = 0.8;
private var heightOfButtonRatio : float = 0.08;
private var isClickedOneOfThem : boolean = false;
public var... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Mock"] = factory();
else
root["Mock"] =... |
var margin = {top: 20, right: 1, bottom: 6, left: 1},
width = 1140 - margin.left - margin.right,
height = 630 - margin.top - margin.bottom;
var formatNumber = d3.format(",.0f"),
format = function(d) { return "$" + formatNumber(d); },
color = d3.scale.category10();
var svg = d3.select("#chart").append(... |
!(function (e, t) {
"object" == typeof exports && "object" == typeof module
? (module.exports = t(require("gofor")))
: "function" == typeof define && define.amd
? define(["gofor"], t)
: "object" == typeof exports
? (exports.fNotificationSound = t(require("gofor")))
: (e.fNotificationSound = t(... |
'use strict';
import mongoose from 'mongoose';
var scheduledayschema = new mongoose.Schema({
name : String,
days : {type:Number,default: 1}
});
export default mongoose.model('scheduleday', scheduledayschema);
|
let _csrf;
const categories = ['Shirts', 'Pants', 'Accesssories'];
const shirts = [{name:'White T-Shirt', price:20, src:'/assets/img/white-t.png', alt:'White T-Shirt'},
{name:'Black T-Shirt', price:20, src:'/assets/img/black-t.png', alt:'Black T-Shirt'},
{name:'Red T-Shirt... |
var Midiplex = require('midiplex')
var midi = require('midi')
var through = require('through')
var net = require('net')
var mp = new Midiplex()
function controlServer(controlNum) {
return net.createServer(function(stream) {
mp.addControllerStream(stream, {maxVal: 127, controller: controlNum})
})
}
var server... |
import React, { useEffect, useState } from 'react'
import QuestionForm from '../common/QuestionForm'
import SurveyIntro from '../components/SurveyIntro'
/**
*
* 설문조사 미리보기 페이지
* by : 우혜경
*
**/
function SurveyPreview(props) {
const [questionDatas, setquestionDatas] = useState([])
const questionData... |
const username = document.getElementById("username");
const saveScore = document.getElementById("saveScoreBtn");
const finalScore = document.getElementById("scoreResults");
const recentScore = localStorage.getItem("mostRecentScore");
const highScore = JSON.parse(localStorage.getItem("highScores")) || [];
const submit =... |
// libs
import React from 'react';
import { FiCheck } from "react-icons/fi";
const Services = ({sellingPoints, servicesWrapper}) => {
return (
<div className='home-service'>
<div className='row m-0 p-1'>
{
Array.isArray(sellingPoints) && sellingPoints.map(point => (
<div classNam... |
//global variables
var clickZoneEl = document.querySelector("#qna");
var startEl = document.querySelector(".answer1");
var timerEl = document.querySelector("#timer");
var questionEl = document.querySelector(".question");
var Answer1El = document.querySelector(".answer1");
var Answer2El = document.querySelector(".answer... |
/**
* Created by HP on 20-May-17.
*/
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does t... |
var express = require('express'),
//fs = require('fs'),
//pg = require('pg'),
//multer = require('multer'),
//aws = require('aws-sdk'),
session = require('express-session'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
//nodemailer = require('nodemailer... |
const panels = {
question: null,
answer: null,
end: null
};
let countries = [];
let question = {};
let questionNumber = 1;
let questionTotal = 5;
let goodAnswers = 0;
const init = async () => {
panels.question = document.querySelector('#question-panel');
panels.answer = document.quer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.