text stringlengths 7 3.69M |
|---|
const body=document.querySelector('section');
const div=document.createElement('div');
const el = document.createElement('div');
el.classList.add('visualizzaDOT');
div.classList.add('container');
body.appendChild(el);
el.appendChild(div);
document.querySelector('body').classList.add('no-scroll');
const dot1=document.cr... |
import styled from 'styled-components';
export const Container = styled.div`
background-color: #fff;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
padding: 20px;
width: 250px;
height: 310px;
padding-bottom: 70px;
h... |
import React from "react";
import { Image as PdfImage } from "@react-pdf/renderer";
import extract from "../../styles/compose";
const Image = ({ className, src }) => {
return (
<PdfImage
style={extract("view " + (className ? className : ""))}
src={src}
/>
);
};
export default Image;
|
import { ScaledSheet } from 'react-native-size-matters';
import { spacing } from '../../styles/spacing';
const styles = ScaledSheet.create({
// inputLabelStyle: {
flatliststyle:{
marginTop: 40
},
slotView:{
flexDirection: 'row',
justifyContent: 'space-be... |
import React from 'react'
import PropTypes from 'prop-types'
import { Svg, HiddenText } from './styled'
const CoffeeDrip = ({
attributionId,
attributionText,
isAnimating,
inScene,
}) => (
<Svg
aria-labelledby={attributionId}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 125"
isAnimating... |
//A function is a piece of code that can be run many times, usually by its name
//can you make this a polygon?
function square(side) {
repeat(4, function () {
forward(side);
right(90);
});
}
function demo() {
hideTurtle();
colour(0,0,255,1);
for(s = 100; s > 0; s -= 10) {
square(s);
... |
//utils
import React from 'react';
import Modal from 'react-modal';
import * as MaterialDesign from 'react-icons/lib/md';
//components
import NoteModalContainer from '../modals/note_modal_container';
class NoteTools extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
var varToggleCampaign = true;
elems.forEach(function(html) {
var switchery = new Switchery(html);
});
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": true,
... |
import * as React from "react";
function ButtonItem({ children }) {
return (
<>
<li className="h-full w-full">
{children}
</li>
</>
);
}
export default ButtonItem;
|
/**
*
*/
window.onload = function(){
document.getElementById("signout")
.addEventListener("click", signout);
}
function signout(){
//document.getElementById('signout').onclick=function(){
//session.invalidate();
response.sendRedirect("../../Login.html");
// };
console.log(5 + 6);
}
window.o... |
/* global angular */
/* global window */
angular.module('mean.system')
.factory('dashboard',
['$http', ($http) => {
const getGameLog = () => new Promise((resolve, reject) => {
$http.get('/api/games/history',
{ headers: { token: window.localStorage.token } })
.success((response) => {
... |
var React = require('react'),
AvailableTaskIndexItem = require('./available_task_index_item'),
TaskerStore = require('../../stores/tasker');
module.exports = React.createClass({
getInitialState: function() {
return {
tasker: this._getTaskerFromStore()
};
},
componentDidMount: function() {
... |
/**
* @param {number[]} A
* @return {number}
*/
var repeatedNTimes = function(A) {
var map = {};
for (var i = 0; i< A.length; i++) {
var value = A[i];
if(!map[value]) {
map[value] = true;
} else {
return value;
}
}
};
console.log(repeatedNTimes([1,2,3,3]));
console.log(repeatedNTim... |
const koalaBio = "The koala or, inaccurately, koala bear is an arboreal herbivorous marsupial native to Australia. It is the only extant representative of the family Phascolarctidae and its closest living relatives are the wombats, which are members of the family Vombatidae.";
const dingoBio = "The dingo is a dog that ... |
import request from '@/utils/request'
export function login(data1,data2) {
return request({
url: `/zhjg/login/${data1}?userPass=${data2}`,
method: 'get',
})
}
export function getInfo(token) {
return request({
url: '/user/info',
method: 'get',
params: { token }
})
}
export function getUser... |
export default function(accepts = [], props = {}) {
return function(widget) {
function getData(e) {
return JSON.parse(e.dataTransfer.getData("text"));
}
function handleDragEnter(e) {
e.stopPropagation();
e.preventDefault();
props.onDragEnter && props.onDragEnter(e);
}
fu... |
//Create main class
function Bank () {
this.customers = {};
}
// Create a new customer, we need to pass the name of the curstomer
Bank.prototype.addCustomer = function(customerName) {
var customersLenght = Object.keys(this.customers).length;;
var key = customersLenght + 1;
this.customers[key] = {};
th... |
import magic from '@kuba/magic'
export default magic.validator_outlet
|
export const
indicatorColor = 'secondary',
textColor = 'secondary'
|
import React, { useState, useEffect } from 'react';
import { Link } from "react-router-dom";
import './css/Login.css';
import { useDispatch, useSelector } from 'react-redux';
import { loginUser } from './../../actions/authActions';
import AOS from 'aos';
import 'aos/dist/aos.css'
import Nav from "../Nav/Nav"
const St... |
const assert = require('chai').assert
const expect = require('chai').expect
const {foo, obj1, arr, add, arr2, doMath } = require('../app')
describe('index file', function() {
describe('foo', function(){
it('should return type of string', function(){
assert.typeOf(foo, 'string', 'foo is a string')
})
... |
import Link from "next/link";
import NavStyles from "./styles/NavStyles";
const Nav = () => (
<NavStyles data-test="nav">
<Link href="/tech">
<a>Tech</a>
</Link>
<Link href="/health">
<a>Health</a>
</Link>
<Link href="mailto:alaindwight@gmail.com">
<a>Contact</a>
</Link>
<... |
import clientEvents from '../../../constants/clientEvents';
const sConnect = (user) => {
return {
type: clientEvents.CONNECT,
user: user
}
}
const sAuth = (user) => {
return {
type: clientEvents.AUTH,
user: user
}
}
const sLeaveRoom = () => {
retur... |
var interface_i_notify =
[
[ "ListenFor", "interface_i_notify.html#a60a6e16d55d60a9c9ee3940fbeb01135", null ],
[ "PostNotification", "interface_i_notify.html#a0a8970c686057a0d1f9ee0b3773c8b69", null ],
[ "PostSimpleNotification", "interface_i_notify.html#ac4543617ce432d84b202503515a087b6", null ],
[ "St... |
/**
* Copyright (c) Benjamin Ansbach - all rights reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const BC = require('./../BC');
const AbstractType = require('./AbstractType');
const P_SIZE_ENCODED = Symbol('size_encoded'... |
const gulp = require('gulp')
const browserSync = require('browser-sync').create()
const inject = require('gulp-inject')
const htmlmin = require('gulp-htmlmin')
const uglify = require('gulp-uglify')
const zip = require('gulp-zip')
const checkFilesize = require('gulp-check-filesize')
const concat = require('gulp-concat')... |
(function() {
function toggleClass(element, className) {
var currentClasses = element.className;
if (currentClasses.indexOf(className) >= 0) {
element.className = currentClasses.replace(className, '').trim();
}
else {
element.className += ' ' + className;
... |
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
export { default as Carousel1 } from './components/Carousel1';
export { default as Carousel2 } from './components/Carousel2';
|
'use strict';
import Study from './study.model';
import config from '../../config/environment';
import jwt from 'jsonwebtoken';
function validationError( res, statusCode ) {
statusCode = statusCode || 422;
return function ( err ) {
res.status( statusCode ).json( err );
}
}
function handleError( res, status... |
/* Given a linked list, determine if it has a cycle in it.
Definition for singly-linked list.
function ListNode(val) {
this.val = val;
this.next = null;
To represent a cycle in the given linked list, we use an integer
pos which represents the position (0-indexed) in the linked list where tail
conne... |
export {default as TimeSliderTitle } from "./TimeSliderTitle";
|
import React, { Component } from 'react';
import './styles.css'
class SelectorIndex extends Component {
render() {
return (
<div className='selectorIndexCont'>
<h3>Cuéntanos, <span>¿qué eres?</span></h3>
<div className='selectionCont'>
<div>
... |
export const CHANGE_FORM_FIELD = 'CHANGE_FORM_FIELD';
export const CHANGE_FORM_FIELD_IN_ARRAY = 'CHANGE_FORM_FIELD_IN_ARRAY';
export const ADD_FIELD_TO_ARRAY = 'ADD_FIELD_TO_ARRAY';
export const DELETE_FIELD_FROM_ARRAY = 'DELETE_FIELD_FROM_ARRAY';
export const SET_ERROR = 'SET_ERROR';
export const SET_RESPONSE_ERROR = ... |
export function getScroll() {
var x, y;
if(window.pageYOffset) { // all except IE
y = window.pageYOffset;
x = window.pageXOffset;
} else if(document.documentElement && document.documentElement.scrollTop) { // IE 6 Strict
y = document.documentElement.scrollTop;
x = document.documentElement.sc... |
/**
* first part : level 1, 3 exercices
* @returns
*/
/**
* exercise 1 : make a function to say hello
*
* @returns
*/
function hello() { // creation of the main function to display hello
return alert("Hello World !");
}
const plevel1 = document.querySelector("p.level1"); // selection of paragraph in
// the b... |
/// <reference path="../../../../Scripts/jquery-1.7.2.min.js" />
(function ($) {
HiddenDropbox = function (_options) {
//start init
this.settings = _options;
this.ensureDefault = function (settingName, defaultValue) {
this.settings[settingName] = (this.settings[settingName]... |
import TestDraggableList from "./TestDraggableList";
export default {
title: 'component/TestDraggableList',
component: TestDraggableList
}
export const normal = () => <TestDraggableList/>; |
var Hapi = require('hapi');
var jwt = require('jsonwebtoken');
var hapiAuthJWT = require('hapi-auth-jwt2');
var couchbase = require('couchbase');
var Boom = require('boom');
var bcrypt = require('bcrypt-nodejs');
var smtpKey = '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';
var sendgrid = requi... |
import React from 'react'
import {connect} from 'react-redux'
import Product from './Product'
import {CardDeck} from 'react-bootstrap'
class AllProducts extends React.Component {
render() {
const {products} = this.props
if (!products) {
return <h1>Loading!</h1>
} else {
return (
<div>... |
const router = require('express').Router();
const TeacherController = require('../Controllers/TeacherController');
const ResponseError = require('../../Enterprise_business_rules/Manage_error/ResponseError');
const { TYPES_ERROR } = require('../../Enterprise_business_rules/Manage_error/codeError');
const errorToStatus... |
import ReactDOMComponent from 'react/lib/ReactDOMComponent';
var assign = require('Object.assign');
var warning = require('fbjs/lib/warning');
var voidElementTags = assign({
'menuitem': true
}, omittedCloseTags);
var omittedCloseTags = {
'area': true,
'base': true,
'br': true,
'col': true,
'embed': true,... |
import React, { Component } from 'react';
import 'whatwg-fetch';
import { throttle } from '../utils';
import KanbanBoard from './KanbanBoard';
const API_URL = 'http://kanbanapi.pro-react.com';
const API_HEADERS = {
'Content-Type': 'application/json',
Authorization: 'meowmeowbeanz'
};
class App extends Component {... |
'use strict';
const scriptInfo = {
name: 'idle',
desc: 'Provide random gibberish should the primary channel be inactive for to long',
createdBy: 'IronY'
};
const _ = require('lodash');
const fml = require('../generators/_fmlLine');
const bofh = require('../generators/_bofhExcuse');
const shower = require('../gene... |
import React, {useState, useEffect} from 'react';
import {Alert, StyleSheet, Text, TouchableOpacity, View, Modal, TouchableHighlight} from 'react-native';
import {colors} from '../../utils/colors';
import Icon from 'react-native-vector-icons/FontAwesome';
import {ScrollView, TextInput} from 'react-native-gesture-handle... |
"use strict";
$(document).ready(function() {
// Process about button: Pop up a message with an Alert
function about() {
alert(ODSA.AV.aboutstring(interpret(".avTitle"), interpret("av_Authors")));
}
$('#about').click(about);
// Processes the reset button
function initialize() {
// if (... |
import styled from "styled-components";
export const Wrapper = styled.div`
position: relative;
transform: translateY(-30px);
`;
|
import React from 'react'
const TableHeader = () =>{
return(
<thead>
<tr>
<th>Name</th>
<th>Type</th>
</tr>
</thead>
)
}
// class TableHeader extends Component {
// render() {
// return (
// <thead>
// </thead>
// )
// }
// }
... |
// JavaScript Document
function pidChange(){
var pid = document.getElementById("prodid").value;
if(pid.length!=0){
getprice("id",pid);
}
else
document.getElementById("prodname").disabled=false;
document.getElementById("prodname").value="";
document.getElementById("quantity").setAttribute("placehold... |
import { default as Edge } from './edge.js';
import { default as EdgeSemantics } from './index.semantical.js';
import { default as EdgePresentation } from './index.presentational.js';
export { Edge, EdgeSemantics, EdgePresentation };
|
const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
return sequelize.define('CatalogProductEntityMediaGalleryValueVideo', {
value_id: {
type: DataTypes.INTEGER.UNSIGNED,
allowNull: false,
comment: "Media Entity ID",
references: {
model: 'catalo... |
import React from "react";
import "./ProjectWindow.css";
import Draggable from "react-draggable";
const ProjectWindow = (props) => {
const renderProjectWindow = () => {
if (props.projectDisplay === true) {
return (
<>
<Draggable handle="#handle" onMouseD... |
const dbquery = require('./dbquery');
const client = require('./redisClient');
exports.GetAllStops = (req, res) => {
let routeid = req.body.route_id;
client.lrange(routeid, 0, -1, function (error, result) {
if (error) console.error();
if (result && result.length) {
console.log("fro... |
/*
In-Field Label jQuery Plugin
http://fuelyourcoding.com/scripts/infield.html
Copyright (c) 2009 Doug Neiner
Dual licensed under the MIT and GPL licenses.
Uses the same license as jQuery, see:
http://docs.jquery.com/License
*/
(function(d){d.InFieldLabels=function(e,b,f){var a=this;a.$label=d(e);a.label=e;a.$f... |
const eventBus = require('./event-bus')
class AnalyticsManager {
actions = []
constructor() {
eventBus.on((event) => this.track(event))
}
track(action) {
this.actions.push({
action,
time: new Date(),
})
}
printActions() {
console.log(this.actions)
}
}
module.exports = new ... |
// To run this script use this command
// node bs.js yourBSGuest yourBSKey
var webdriver = require('selenium-webdriver')
var test = require('./bs_test.js')
// Input capabilities
var iPhone = {
browserName: 'iPhone',
device: 'iPhone 7',
realMobile: 'true',
os_version: '10.3',
'browserstack.user': process.arg... |
import DataType from 'sequelize';
import to from 'await-to-js';
import Model from '../../sequelize';
const UserAuthStatus = Model.define('UserAuthStatus', {
id: {
type: DataType.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
twoFactorAuthEnabled: {
type: DataType.BOO... |
import { createSelector } from 'reselect';
/**
* Direct selector to the botHeaderContainer state domain
*/
const selectBotHeaderContainerDomain = () => (state) => state.get('botHeaderContainer');
/**
* Other specific selectors
*/
/**
* Default selector used by BotHeaderContainer
*/
const makeSelectBotHeaderC... |
'use strict';
const { expect } = require('chai');
const { createStubInstance } = require('sinon');
const {
CollectionReference,
DocumentReference,
Firestore,
WriteBatch
} = require('@google-cloud/firestore');
const ServiceOfferingRepository = require('../../../src/lib/repository/service-offering-repository');
... |
var mongoose = require('mongoose');
var wasteSchema = new mongoose.Schema({
title: String,
body: String,
keywords: String,
favorite: {
type: Boolean,
default: false
}
});
var Waste = mongoose.model('Waste', wasteSchema);
module.exports = Waste; |
/**
* @author: yunfour
* @email: yunfour@163.com
* @version: 0.0.1
*/
define(function (require, exports, module) {
/**
* @param {Object} targetObj 对象、数组类型;必填;如果只有这一个参数,则返回值为该对象的克隆版本的对象
* @param {Object} obj 对象;选填;如果设置了该参数,则会将该对象的属性复制到目标对象targetObj上,然后返回targetObj
* @description 克隆对象,可以将obj的... |
var searchData=
[
['hmat',['hmat',['../classhmat.html',1,'hmat'],['../classhmat.html#aab11e1638abca5cfcfa1c8912f172318',1,'hmat::hmat()']]],
['hierarchical_20matrix_20construction_20library',['Hierarchical Matrix construction library',['../index.html',1,'']]]
];
|
function removeTile() {
$('.grid-stack-item').remove();
}
function addNew() {
var serialization = [
{x: 0, y: 0, width: 9, height: 7, id:'video'},
{x: 9, y: 0, width: 3, height: 6, id:'image-carousel'},
{x: 0, y: 7, width: 9, height: 3, id:'text-carousel'},
{x: 9, y: 6, widt... |
var searchData=
[
['weak_5fattribute_876',['WEAK_ATTRIBUTE',['../weakmacros_8h.html#a7b4e8308dcb91579fb0a11c039b8b70d',1,'weakmacros.h']]]
];
|
import React, { useCallback, useEffect, useRef } from "react";
import UserIcon from "../../assets/svgJs/UserIcon";
import { makeStyles, Typography } from "@material-ui/core";
import VideoTrack from "../VideoTrack";
import useVideoContext from "../Hooks/useVideoContext";
import useLocalVideoToggle from "../Hooks/useLoca... |
/**
* @author v.lugovsky
* created on 16.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.app.specialmenu.specialmenupage')
.controller('SpecialMenuPageCtrl', SpecialMenuPageCtrl)
.controller('SpecialMenuAddModalCtrl', SpecialMenuAddModalCtrl)
.controller('SpecialMenuEditModal... |
import React from 'react';
const HomePage = () => {
return(
<div style={{marginLeft:'11vw'}}><p>Hello There, In our Company we have decided to give each employee a CAR 🥳 🎊.</p>
<p>So each one of you will inter the website with his UserName and PassWord.</p>
<p>If your Salary is more then 30K so you can ... |
import React from "react";
import Column from "./column";
import Career from "./career";
import Study from "./study";
import Main_in from "./Main_in";
import Search from "./search";
import Uploadimage from './Uploadimage';
const Column_page = () =>{
return <Column />
}
const Career_page = () =>{
return <Career ... |
import React from 'react'
import ppp1 from './UP主.png'
import ppp2 from './时间.png'
import ppp3 from './播放量.png'
import ppp4 from './弹幕的副本.png'
import ppp5 from './arrowbottom.png'
import side_1 from './cover-m1.png'
import side_2 from './cover-m2.png'
import side_3 from './cover-m3.png'
import side_4 from './c... |
import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
FlatList,
Alert,
Modal,
} from 'react-native';
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen';
import * as Progress from 'react-native-progress';
// import { Ch... |
function encode(str){
let strArray = str.split("");
let newStr = '';
let newObj=strArray.reduce((acc, curr)=>({
...acc,
[curr]: acc[curr] ? acc[curr]+1 : 1
}),{});
for(let i in newObj){
newStr += (newObj[i]===1)?`${i}` : `${newObj[i]}[${i}]`;
}
return newStr;
}
... |
import React, { Component } from "react";
import "./Landing.css";
import { Link } from "react-router-dom";
import { withFirebase } from "../Firebase";
// import * as ROUTES from "../../constants/routes";
import styled from "styled-components";
import HomeImage from "../../resources/images/home_farmland.png";
import ren... |
import { regexConst } from '../utils/regexConst.js';
// check the form content
function checkFormInputs(formContent) {
/* firstName, lastName, email, and birthdate are checked against a Regex
formerContest amount must be a number
a city must be selected
conditionsAgreement must be checked by the user: ... |
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
export default class MyDocument extends Document {
render() {
return (
<html lang="pt-BR">
<Head>
<title>Dominando Promises</title>
<link rel="stylesheet" href="/_next/static/style.css" ... |
define(['jquery'], function($) {
return {
scrollIntoView: function(element, duration) {
if (duration === undefined) {
duration = 500;
}
var offset = $(element).offset().top;
$('html, body').animate({ scrollTop: offset }, duration);
}
};
}); |
$(document).ready(function () {
var search = {}
search["bookTitle"] = "";
search["pageNumber"] = 1;
ajaxGetBooks(search);
$('#search').click(function() {
search["bookTitle"] = $("#search-data").val();
search["pageNumber"] = 1;
ajaxGetBooks(search);
});
});
function ajaxGetBooks(search... |
//main package used for sending mails
import nodemailer from 'nodemailer';
//templating engine for sending mail and create beautiful templates
import hbs from 'nodemailer-express-handlebars'
//inbuilt module for resolving the path of the template files to look for sending emails
import path from 'path'
//package fo... |
import React, {useEffect, useState} from 'react';
import { Modal, Table, Badge, Image} from 'react-bootstrap';
import { getPokemonSpecies, getPokemonDetails, getGender, getEvolutionChain } from '../../utils/HTTPRequests';
import './ModalPokemon.scss'
const ModalPokemon = ({ show, onHide, image, pokemonDetails, pokemon... |
var status_string;
var status_url;
var didFinishValidating = true;
var intval;
function buildError(data, classname){
var error = $("<div />").addClass(classname);
var line = $("<p />").addClass("line-no");
line.append("Line " + data.num + ": ");
line.append($("<code />").append(data.line))
var msg ... |
var express = require('express');
var mongoose = require('mongoose');
var bodyParser = require('body-parser')
var helpers = require('./helpers.js')
var Message = require('./messages/messageModel')
var app = express();
app.use(bodyParser.json());
app.use(express.static(__dirname + '/../client'));
mongoose.connect('mo... |
alert("Pronto para iniciar o jogo? Clique em ok.")
var userChoice = prompt("Voce escolhe pedra, papel ou tesoura?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
computerChoice = "pedra";
} else if (computerChoice <= 0.67) {
computerChoice = "papel";
} else {
comp... |
import React from 'react';
import {View, StyleSheet, Image} from 'react-native';
import {Text} from 'react-native-paper';
const ForecastData = ({day, img, temp}) => {
return (
<View style={styles.container}>
<View style={styles.left}>
<Text style={styles.text}>{day}</Text>
</View>
<Imag... |
function iter(a,b,x,y,ba,mi) {
var n = 0;
var x2 = x*x;
var y2 = y*y;
do {
y = 2*x*y + b;
x = x2 - y2 + a;
x2 = x*x;
y2 = y*y;
n++;
}
while (x2+y2 < ba && n < mi);
return n;
}
self.onmessage = function (event) {
var data = event.data;
var a = data.a;
var b = da... |
/**
* RoomController
*
* @module :: Controller
* @description :: Contains logic for handling requests.
*/
module.exports = {
'list': function(req,res,next){
res.view();
},
'index': function(req,res){
Room.find(function foundRoom(err,rooms){
if(err) return console.log(err);
else {
... |
'use strict';
let Hapi = require('hapi');
let Util = require('util');
let Config = require('../config');
let server = new Hapi.Server({
connections: {
routes: {
cors: {
origin: Config.CORS,
credentials: true
},
json: {
space: 4
},
payload: {
maxByte... |
const findKthPositive = (arr, k) => {
let s=0;
let e=arr.length -1;
while(s < e){
let m = s + Math.floor((e-s)/2);
if(arr[m] - m -1 < k)
s = m +1;
else
e = m-1;
}
return s + k;
}
console.log(findKthPositive([2,3,4,7,11],5));
console.log(findKthPosi... |
/**
* Load all employees from the database
* The result is saved to res.locals.employees
*/
const requireOption = require('../requireOption');
const getAge = require('age-by-birthdate');
module.exports = function (objectrepository) {
const EmployeeModel = requireOption(objectrepository, 'EmployeeModel');
... |
var gulp = require('gulp');
var karma = require('gulp-karma');
var nodemon = require('gulp-nodemon');
var sass = require('gulp-sass');
var minify = require('gulp-minify');
var browserify = require('browserify');
var es6ify = require('es6ify');
var source = require('vinyl-source-stream');... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import Menu from '@material-ui/core/Menu';
import MenuIt... |
/**
* wx
*/
var FDDrillingMgr = function (viewer) {
var version = "0.0.1";
var dsc = "用于钻井柱管理";
var scene = viewer.scene;
var drillingData = [];
var playModel = null ;
var pickedModels = [];
var clickedColor = new FreeDo.Color(1,3,1,1);
var unClickedColor =new FreeDo.Color(1,1,1,1);
function ca... |
import React, { useState, useEffect } from "react";
// Styled Component
import styled from "styled-components";
// Bootstrap
import Form from "react-bootstrap/Form";
// Draggablevertice Component
import { DraggableVertice } from "..";
const Playground = styled.div`
width: 100%;
`;
const Box = styled.div`
wid... |
angular.module('ngApp.pastShipment').controller('ShipmentDocumentDownloadController', function ($scope, $state, $translate, $location, $stateParams, $filter, CustomerService, SessionService, $uibModal, uiGridConstants, toaster, ShipmentService, shipmentId) {
//Set Multilingual for Modal Popup
var setModal... |
/*const produto = {};
produto.nome = 'celular';
produto.preco = 10000;
produto.cor = 'azul';
console.log(produto.nome, produto.preco);*/
function imprimir_soma(n1, n2){
console.log(n1+n2)
}
imprimir_soma(2,5);
//operador ternário:
const resultado = nota => nota>=7? 'Aprovado' : 'Reprovado';
console.log(resultado(... |
import React from "react";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
const Electronics = ({products}) => {
return (
<div>
<div className="min-h-[80vh] flex flex-col space-y-5">
<div>
<div>
<h2 className="text-3xl my-3 font-semi... |
const express = require('express');
const router = express.Router();
const mainController = require('./controllers');
// GET
router.get('/api/v1/allTables', mainController.allTablesSelect);
router.get('/api/v1/tables', mainController.tablesSelect);
// POST
router.post('/api/v1/tables', mainController.tablesInsert);
... |
angular.module('influences')
.service('genreService', function($http, $state) {
this.getMainGenres = function() {
return $http({
method: 'GET',
url: '/api/main/genres'
})
.then(function(res) {
return res.data;
})
}
this.getRandomGenre = function() {
return $http({
met... |
const storeItemKey = 'state';
/**
* Try to load state from localStorage
* Do nothing if user disabled localStorage
* @returns {*}
*/
export const loadState = () => {
try {
const serializedState = localStorage.getItem(storeItemKey);
if (serializedState === null) {
return undefined;
}
return ... |
var namespacejava_1_1lang =
[
[ "Object", "classjava_1_1lang_1_1_object.html", "classjava_1_1lang_1_1_object" ]
]; |
class comunicacaoEletronicaC{
constructor(id, meioComunicacao, telefone, preferencia, utilizacao){
this.id = id;
this.meioComunicacao = meioComunicacao;
this.telefone = telefone;
this.preferencia = preferencia;
this.utilizacao = utilizacao;
}
} |
function datos_Docentes_ValidacionDatos_Cargar(pCicloEstimulo) {
/* var Docentes_ValidacionDatosSource =
{
datatype: "json",
datafields: [
{name: 'accion', type: 'string'},
{name: 'idEstimulo', type: 'bigint'},
{name: 'idEstadoRevisado', type: 'bigint'},
{name: 'numeroEmpleado', type: 'bigint'},
{name... |
import React, { useState, useEffect } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { List, ListItem, ListItemText, Checkbox } from '@material-ui/core/';
import { fetchMessagesByCategory } from '../../../actions/messages';
import Toolbar from '../Toolbar/Toolbar';
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.