text stringlengths 7 3.69M |
|---|
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import TestResults from './TestResults';
import * as classroomActions from '../../actions/classroomActions/classroomActions';
const mapStateToProps = ({ classroom }) => {
return {
classroom,
};
};
const mapDispatchToPr... |
$(document).ready(function () {
$("#first").click(function () {
$("#first-desc").fadeIn(4000);
$("#third-desc").hide();
$("#second-desc").hide();
});
});
$(document).ready(function () {
$("#second").click(function () {
$("#second-desc").slideDown(2000);
$... |
var express = require('express');
var router = express.Router();
const conn = require('../db/db');
const svgCaptcha = require('svg-captcha');
const sms_util = require('../util/sms_util');
const md5 = require('blueimp-md5');
let user = {};
/* 用户相关 */
//一次性图形验证码
router.get('/captcha', (req, res) => {
let captcha = s... |
var itens = [];
function atualizar() {
var table = window.document.getElementById("ta")
var tb = "<tr><td>Nomes</td><td>Email's</td><td>Idades</td><td>Cargos</td></tr>"
for (var i of itens) {
tb = tb + `<tr><td>${i[0]}</td><td>${i[1]}</td><td>${i[2]}</td><td>${i[3]}</td></tr>`;
}
table.inne... |
import db from '../src/models';
import sequelizeFixtures from 'sequelize-fixtures';
import { syncDB } from '../src/model-helpers';
// verify that we are not in production
if (process.env.NODE_ENV === 'production') {
console.log("Unable to load database in production (NODE_ENV=='production')");
process.exit(1);
}
... |
const AndhraPradeshDist = [
"Anantapur",
"Chittoor",
"East Godavari",
"Guntur",
"Krishna",
"Kurnool",
"Prakasam",
"Srikakulam",
"Nellore",
"Visakhapatnam",
"Vizianagaram",
"WestGodavari",
"Kadapa",
];
const TelanganaDist = [
"Adilabad",
"Kothagudem",
"Hyderabad",
"Jagtial",
"Jangaon"... |
import {combineReducers} from 'redux';
import { GET_FORMA_PAGO_SUCCESS, SAVE_FORMA_PAGO_SUCCESS, DELETE_FORMA_PAGO_SUCCESS, EDIT_FORMA_PAGO_SUCCESS} from "../../actions/catalogos/formadepagoActions";
function list(state=[], action){
switch(action.type){
case GET_FORMA_PAGO_SUCCESS:
return actio... |
const msg = {
id: '[email protected]_DE7B990439AEED793A7B7B3E6F29EA41',
body: '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsbGxscGx4hIR4qLSgtKj04MzM4PV1CR0JHQl2NWGdYWGdYjX2Xe3N7l33gsJycsOD/2c7Z//////////////8BGxsbGxwbHiEhHiotKC0qPTgzMzg9XUJHQkdCXY1YZ1hYZ1iNfZd7c3uXfeCwnJyw4P/Zztn////////////////CABEIAB4APwMBIgACEQE... |
StrokeHandler = Class.extend({
drawingAgent: null,
rules: [],
init: function() {
this.setupRules();
this.listen();
},
setupRules: function() {
this.rules = [
new AlphaNumericRule(),
new UnmodifiedRule(),
new ShiftedRule(),
ne... |
import React from 'react';
import { BoardConfigDialog } from '../containers/BoardConfigDialog';
import { EditStyleDialog } from '../containers/EditStyleDialog';
import { EditTextDialog } from '../containers/EditTextDialog';
import { PieceDialog } from '../containers/PieceDialog';
import { Toolbar } from '../containers/... |
e = 1;
f = 2;
var h = 1, f;
function m(){
k = 2;
} |
const fs = require('fs')
const info = require('./os')
const infoText = `
CPUS => ${JSON.stringify(info.osData.cpus)}
SYSTEM => ${JSON.stringify(info.osData.system)}
SERVER => ${JSON.stringify(info.osData.server)}
`;
fs.writeFile('infoText.txt',infoText, (err) => {
if (err) throw err;
console.log('The file has... |
import { GET_CAKES_SUCCESS, GET_CAKES_FAILED, ADD_CAKE_SUCCESS, ADD_CAKE_FAILED } from '../actions'
const startState = {
cakes: [],
getCakesError: false,
addCakeErrors: []
}
const cakes = (state = startState, action) => {
switch (action.type) {
case GET_CAKES_SUCCESS:
return {
...state,
... |
// Calculate the total price of one product
function getTotalPrice (oneProduct) {
var unitPrice = oneProduct.querySelector(".unit-cost");
var price = unitPrice.innerHTML;
var quantityItems = oneProduct.querySelector("input");
var quantity = quantityItems.value;
var total = price * quantity;
return ... |
/* eslint-disable react/jsx-no-target-blank */
import './style.scss';
const listaDeProjetos = [
{
imagem: 'https://github.com/giovanispaula/PodCastream/blob/main/img/header-parallax.jpg?raw=true',
title: 'PodCastream',
text: 'Compilador de podcasts elaborado para Checkpoint de FrontEnd I',
src: 'http... |
define([
'./grouped_timeseries',
'extensions/models/data_source',
'moment-timezone'
],
function (GroupedCollection, DataSource, moment) {
var format = 'YYYY-MM-DD[T]HH:mm:ss';
return GroupedCollection.extend({
queryParams: function () {
var params = {};
var options = this.dataSource.get('que... |
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use(express.static('public'));
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());
//ROUTES
app.use('/', require('./routes/routes'));
app.listen(3000, function() {
console.log('Express... |
const services = require('../../models/services');
const request = require('request');
let VERSION_ARGS={};
for( let key in process.env ) {
if( key.match(/^FIN_.*_(VERSION|HASH|TAG)$/) ) {
VERSION_ARGS[key] = process.env[key];
}
}
module.exports = async (req, res) => {
let arr = [];
for( var key in servic... |
import {createGlobalStyle} from "styled-components"
import tw from "tailwind-styled-components";
/** Body setup */
export const GlobalStyle = createGlobalStyle`
body {
${tw`min-h-screen bg-gray-100 text-sm`}
}
`
/*
styled.div.attrs({
className: "w-full h-screen bg-gray-100 p-2"
})``;
*/ |
const HtmlWebpackPlugin = require("html-webpack-plugin")
const CopyPlugin = require("copy-webpack-plugin")
const TerserPlugin = require("terser-webpack-plugin")
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
module.exports = {
mode: ... |
import React from "react";
const Landing = props => {
return <h1>Welcome! To get started, click a link in the navbar above.</h1>;
};
export default Landing;
|
import React from "react";
import styles from "./Subscribe.module.css";
const Subscribe = () => {
return (
<form action="#" method="POST" className={styles.subscribe}>
<div>
<h2 className={styles.title}>newsletter</h2>
<input
className={styles.input}
type="email"
... |
import React, { useState, useEffect } from 'react'
import { Link } from 'react-router-dom'
import Bookshelf from '../Components/Bookshelf'
export default function MyReads({ setBooks, books}) {
const [currentlyReading, setCurrentlyReading] = useState([])
const [wantToRead, setWantToRead] = useState([])
const [rea... |
const express = require('express');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const passport = require('passport');
const User = require('.././model/User');
const key = require('../config/keys').secret;
module.exports = {
register : async (req, res, next) => {
let {
... |
'use strict';
const hell = new (require(__dirname + "/helper.js"))({module_name: "ruleset"});
module.exports = function (ruleset) {
/**
* INITIALIZE RULESETS
*
* create default rulesets
*
* @param cb
*/
ruleset.initialize = async function () {
hell.o("start", "initialize", "info");
//... |
function MsgCenter() {
var msgQueue = [];
var handlers = {};
this.postMsg = function(msgName, msgData, immediately) {
var msg = {
name: msgName,
data: msgData
};
immediately ? msgQueue.unshift(msg) : msgQueue.push(msg);
};
this.regHandler = function(msgName, host, handler) {
if (!handlers[msgName])... |
import React, { Component } from 'react';
class Resume extends Component {
render() {
const divStyle = {
color: "#4f4d4d",
fontWeight: "bold",
};
if(this.props.data){
var skillmessage = this.props.data.skillmessage;
var education = this.props.data.education.map(function(educatio... |
import React, { PropTypes } from 'react'
import Emoji from 'emojione'
var Emojify = React.createClass({
render() {
let { children } = this.props
children = Emoji.toImage(children)
return (
<span dangerouslySetInnerHTML={{__html: children}}/>
)
}
})
export default... |
'use strict';
var path = require('path');
var assert = require('yeoman-generator').assert;
var helpers = require('yeoman-generator').test;
var os = require('os');
describe('interstellar:app', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withArgume... |
// Sample Yelp business URL
// https://www.yelp.com/biz/kings-of-punjab-sunnyvale-2?sort_by=date_desc
var sortBy = encodeURI('sort_by=date_desc');
chrome.tabs.onUpdated.addListener( function (tabId, changeInfo, tab) {
if (changeInfo.status == 'complete' && tab.active) {
var url = tab.url;
// Replace only... |
$(function() {
// function followHTML(message?) {
// var followedBtn = '<div class="js-messages" message-id="' + message.id + '">'
// return followedBtn;
// }
$('.followBTNHover').hover(function() {
console.log("hover");
$(this).find('a').text("解除");
$(this).css('background-co... |
/**
* Increment action
* @return {Object} plain action object
*/
export function increment() {
return {
type: 'INCREMENT'
};
}
/**
* Decrement action
* @return {Object} plain action object
*/
export function decrement() {
return {
type: 'DECREMENT'
};
}
|
import {
GraphQLInt,
GraphQLObjectType,
GraphQLString,
GraphQLNonNull,
GraphQLList
} from 'graphql';
import Resolver from '../../resolver.js'
import addressType from './address.js'
import phoneType from './phone.js'
import historyType from './history.js'
import emailType from './email.js'
let iBorrowerType = new Grap... |
import React, { useState, useEffect } from "react";
import { Link, useParams } from "react-router-dom";
import {
getAllProducts,
updateProductStateOnLoad,
updateProduct,
} from "../actions/productsActions";
import { Prompt } from "react-router";
import { Formik, Form } from "formik";
import FormikController from ... |
// Chapter 2, example 5
// TRY IT OUT: Concatenating Strings
var greetingString = "Hello";
var myName = prompt("Please enter your name", "Bob");
var concatString;
document.write(greetingString + " " + myName + "<br>");
concatString = greetingString + " " + myName;
document.write(concatString); |
import * as _ from './_';
import * as _Arr from './_Arr';
// https://vocajs.com/
const proto = _.prototypeOf(String);
const protoSlice = proto.slice;
/**
* Adds padding to a string's ends
* @param {string} str
*
* @returns {string}
*/
export const pad = str => ' ' + str + ' ';
/**
* Checks if a string contains... |
import React,{useState} from 'react'
import Dudeme_Logo from "../IMAGES/Dudeme_Logo.png";
import image1 from "../IMAGES/image1.png";
import cart from "../IMAGES/cart.png"; //category-1
import category1 from "../IMAGES/category1.png";
import product1 from "../IMAGES/product1.jpg";
import watch from "../IMAGES/watch.png... |
import React from 'react';
import {Grid, Box, Text, Image, TextInput} from 'grommet';
//import {ImageStamp} from 'grommet-controls';
import Calendar from './assets/calendar.jpg';
import Bell from './assets/bell.jpg';
import Question from './assets/question.jpg';
//import images from './assets'
import './empty.cs... |
import '@testing-library/jest-dom'
import {render, fireEvent} from '@testing-library/vue'
import VuexTest from './components/Store/VuexTest'
import {store} from './components/Store/store'
// A common testing pattern is to create a custom renderer for a specific test
// file. This way, common operations such as regist... |
//Revealing module pattern [module is an Object literal, it contains set of related methods]
var repo = function () {
var db = {};
var get = function (id) {
console.log('Getting for db.. pojectId: ' + id);
return {
name: 'A project Id ' + id + ' from db'
};
};
var ... |
import React, { createContext, useReducer } from "react";
import { AppReducer } from "./AppReducer";
const initialState = {
usersList: [],
isDataLoaded: false,
snackBarOptions: {
openNotification: false,
notificationType: "success",
notificationMessage: "API is success",
},
};
export const GlobalC... |
import {applyMiddleware, combineReducers, createStore} from 'redux'
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import reducer from './reducers';
const enhancer = applyMiddleware(thunk, logger());
export default createStore(reducer, enhancer);
|
/**
* @namespace
*/
/**
* Validates form fields within a form.
* @constructor
* @class
* @param {Element} form The form node
*/
kitty.FormValidator = function(form) {
this.form = form;
this.errors = [];
this.validators = [];
};
/**
* Adds a field to be validated against given rules
* @param {String} field... |
const adminController={
entrarAdmin:(req,res)=>{
res.render("admin")
}
}
module.exports= adminController; |
const express = require('express');
const service = require('./service');
const pkg = require('./package.json');
var bodyParser = require('body-parser');
var jsonParser = bodyParser.json();
const logger = console;
const app = express();
var http = require('http');
var httpServer = http.createServer(app);
httpServer.l... |
const mongoose = require('mongoose');
const Joi = require('joi');
Joi.objectId = require('joi-objectid')(Joi);
const now = new Date();
const minDate = new Date(now);
minDate.setFullYear(now.getFullYear() - 50);
const maxDate = new Date();
maxDate.setFullYear(now.getFullYear() + 50);
const todoSchema = new mongoose.Sc... |
let fr = {
"values": {
"buttons:flipper" : "Tourner l'échiquier",
"buttons:first" : "Aller au premier coup",
"buttons:prev" : "Coup précédent",
"buttons:next" : "Coup suivant",
"buttons:play" : "Jouer / arrêter tous les coups",
"buttons:last" : "Aller au dernier coup"... |
db.books.find({},{title:1,isbn:1,pageCount:1,_id:0}).limit(3) |
let GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
let FacebookStrategy = require('passport-facebook').Strategy;
//load user model
let OtherUsers = require('../../models').OtherUser;
let Users = require('../../models').User;
//load configuration file
const configAuth = require('./auth');
module.e... |
import React from 'react';
class List extends React.Component{
render(){
const {value, onClick} = this.props;
return(
<ul>
<li className="list">{this.props.item}<button onClick={()=>onClick(value)} value={value} aria-label="delete" type="button" className="delete">Delet... |
export function checkPlaceHolder(text){
cy.get('.new-todo').should('have.attr','placeholder',text)
}
export function visit(){
cy.visit('/')
}
export function addTodo(text){
cy.get('.new-todo').type(text + '{enter}')
}
export function validateItemsLeft(num){
if(num == 1){
cy.contains(num +' it... |
import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
export default new Router({
mode: 'hash',
base: process.env.BASE_URL,
routes: [
{
path: '/',
name: 'Home',
meta: { title: '首页' },
component: () => import(/* webpackChunkName: "Home" */ '../views/Home.vue'),
... |
import React, { Component } from 'react';
import Letter from './Letter'
class Letters extends Component {
render() {
const letterStatus = this.props.letterStatus
return (
<div>Available Letters<div>
{Object.keys(letterStatus).map(l => letterStatus[l] ? <Letter className='crossed' lette... |
/**
* Created by griga on 11/17/16.
*/
/* https://github.com/indexiatech/redux-immutablejs */
/*
import { createStore } from 'redux';
import { combineReducers } from 'redux-immutablejs';
import Immutable from 'immutable';
import * as reducers from './reducers';
const reducer = combineReducers(reducers);
const st... |
export default [
{
tab_name: 'Venue',
venuetabs: [
{
heading: 'Brighton Waterfront Hotel, Brighton, London',
address: '1Hd- 50, 010 Avenue, NY 90001 United States',
t_name: ' Ronaldo König11111' ,
t_phone: '009-215-5595',
t_mail: '[email protected]',
p_nam... |
'use strict';
/*
* Auth Controller
* @author Rachel Dotey
* The login and logout controller.
*/
var app = angular.module('editor.controllers', ['ui.bootstrap.showErrors']);
app.controller('ResetPasswordCtrl', ['$rootScope', '$scope', '$stateParams', '$state', 'notifications', 'AuthService',
function($rootS... |
import auth from "../services/auth.js";
import viewFinder from "../viewFinder.js";
let view = undefined;
function initialize(domElement) {
view = domElement
}
async function getView(id) {
let ideaRequest = await fetch(`http://localhost:3030/data/ideas/${id}`);
let idea = await ideaRequest.json();
let... |
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
import fetchSeats from './seatsAPI';
const initialState = {
status: 'loading',
ticketQty: 1,
seatNextTo: false,
seats: [],
};
export const fetchSeatsAsync = createAsyncThunk('fetchSeats', async () => {
const response = await fetchSeats();
r... |
function create2DArray(X, Y) {
var arr = [];
for (var i = 0; i < X; i++) {
arr[i] = [];
}
for (var x = 0; x < X; x++) {
for (var y = 0; y < Y; y++) {
arr[x][y] = 0;
}
}
return arr;
}
const Point = require("../common/Point");
const Player = require("./Play... |
(function() {
'use strict';
angular
.module('bq')
.controller('HistoryCtrl', HistoryCtrl);
/* @ngInject */
function HistoryCtrl(common, settings, dataService, $q, $state) {
var vm = this; /*jshint validthis: true */
vm.select = select;
activate();
////////////////
function a... |
import { CHANGE_SEARCH } from '../constants';
import { changeSearch } from '../actions';
describe('Home Actions', () => {
describe('changeSearch', () => {
it('should return the correct type and the passed search', () => {
const fixture = 'Max';
const expectedResult = {
type: CHANGE_SEARCH,
... |
import {
LOGIN_REQUEST,
LOGIN_FAILURE,
LOGIN_SUCCESS,
LOGOUT_SUCCESS,
REGISTER_REQUEST,
REGISTER_SUCCESS,
REGISTER_FAILURE,
} from "./types";
import axios from "../api/axios";
//action for requesting login
const requestLogin = () => {
return {
type: LOGIN_REQUEST,
};
};
//action for recieving lo... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @suppress {duplicate} */
var remoting = remoting || {};
/**
* Type definition for the RunApplicationResponse returned by the API.
* @typedef {{
* ... |
'use strict'
const webpack = require('webpack')
const webpackMerge = require('webpack-merge')
const commonConfig = require('./webpack.common.js')
const helpers = require('./helpers')
const ExtractTextWebpackPlugin = require('extract-text-webpack-plugin')
const METADATA = {
HOST: process.env.HOST || 'localh... |
class Player {
constructor() {
// 汎用変数の宣言
let width = window.innerWidth; // ブラウザのクライアント領域の幅
let height = window.innerHeight; // ブラウザのクライアント領域の高さ
//アニメショーン用のパラメーター
this.handLRotation = 0.01;
this.handRRotation = -0.01;
this.footLRotation = -0.01;
thi... |
var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var ReactRouterBootstrap = require('react-router-bootstrap');
var Navbar = ReactBootstrap.Navbar;
var Nav = ReactBootstrap.Nav;
var NavItem = ReactBootstrap.NavItem;
var NavItemLink = ReactRouterBootstrap.NavItemLink;
var Grid = ReactBootst... |
$(document).ready(function() {
$("#content").fadeOut();
$("#content").fadeIn();
function hypo(base, height) {
var hyp = Math.sqrt((base * base) + (height * height));
return hyp
}
function bases(hyp, height) {
var base = Math.sqrt((hyp * hyp) - (height * height));
return base
}
function h... |
import RecoveryPasswordForm from "./RecoveryPasswordForm";
export {RecoveryPasswordForm}
export default RecoveryPasswordForm |
import { Salad } from "../../class/SaladAPI/Salad"
import store from 'localforage'
// let worker = new PlayingWorker()
// let audioCtx = new (window.AudioContext || window.webkitAudioContext)()
// let audioSrc = audioCtx.createMediaElementSource(playing)
// let analyser = audioCtx.createAnalyser()
// audioSrc.connect(... |
const knex = require('knex');
const knexConfig = require('../knexfile');
const db = knex(knexConfig.development);
module.exports = {
getProject,
// getProjectActions,
addProject,
addActions,
};
function getProject(id) {
return db('projects')
.where({ id })
.first()
.then(project => {
if (p... |
/**
* Created by gullumbroso on 09/07/2016.
*/
angular.module('DealersApp')
/**
* The controller that is responsible for checkout's view behaviour.
* @param $scope - the isolated scope of the controller.
* @param $mdDialog - the mdDialog service of the Material Angular library.
*/
.controller('PurchaseDetai... |
import React, {Component} from "react";
import "./AddTodo.css";
export class AddTodo extends Component {
state = {
title: ""
};
onChange = (e) => {
this.setState({[e.target.name]: e.target.value})
}
onSubmit = (e) => {
e.preventDefault();
this.props.addTodo({id: Date.now(), title: this.state.title})
t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _dns = require("dns");
/**
* IndexModel类,生成一段异步的数据
* @author 学彤
*/
class IndexModel {
contructor() {}
/**
* 获取具体的API接口数据,返回异步处理结果
* @author 学彤
*/
getData() {
return new Promise((resolve, reject) =>... |
sap.ui.define([], function () {
"use strict";
return {
getData: async function () {
return await jQuery.get("/api/v1/data");
},
initializeWebSocket: function(fnHandler) {
const socket = new SockJS('/gs-guide-websocket');
const stompClient = Stomp.ove... |
const jwt = require('jsonwebtoken');
exports.auth = (req, res, next) => {
var token = req.cookies.jwt;
// console.log("token = "+ token);
// console.log("Ab hoga Authorization");
if(!token){
console.log("Please Login First !!!!");
res.redirect('/');
return ;
}
try{... |
App.controller('home', function (page) {
// Prevent user from navigating back to signup page
$(page).on('appBeforeBack', function() { return false; });
var $tmpl = $(page).find('ul li.app-button').remove();
var $lists = $(page).find('ul.app-list');
var $spinner = $(page).find('.loading-wrapper');
... |
/*
* @class NoteView
* @extends Backbone.View
*/
var NoteView = Backbone.View.extend({
tagName: 'article',
className: 'note inactive-note',
template: Handlebars.compile( $('#note-template').html() ),
initialize: function(options) {
this.stacksCollection = options.stacksCollection;
this.listenTo(this.model, '... |
const http = require("http");
const path = require("path");
const router = require(path.join(__dirname, "router"));
const port = process.env.PORT || 3000;
//create the server here
const server = http.createServer((request, response) => {
//calls router function
router(request, response);
});
//server takes request... |
module.exports.tokenValidation = (req, res, next) => {
let token = JSON.parse(localStorage.getItem('default_auth_token'));
if (!token) {
return req.sendStatus(401);
} else {
next();
}
}
|
import React from "react";
import {HashRouter, Route, Switch} from 'react-router-dom';
import Home from "./mould/home.js";
import About from "./mould/about.js";
import News from "./mould/news.js";
export default class router extends React.Component {
render() {
return (
<HashRouter>
<Swit... |
//grab packages that we need for post model
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var SheetSchema = new Schema({
username: {
type: String,
required: true
},
timeStamp: {
type: Date,
required: true
},
filepath: String,
type: String
});
//return the model
module.exports = mongoo... |
/* globals binarysearch*/
(function(){
'use strict';
describe('BinarySearch', function(){
it('Should return the position of the number it is looking for, it works only for sorted lists', function(){
var list = [1, 2, 3, 4, 5, 9, 20, 1000];
for(var i = 0; i < list.length; i++){
expect(binarys... |
import { Link } from 'react-router-dom';
import useFetch from './useFetch';
const Products = () => {
const {data: products, isPending, error} = useFetch('https://inventory-be-app.herokuapp.com/api/v1/products');
return (
<div className="list-main">
<h1>All Products</h1>
{error ... |
import Enzyme from 'enzyme'
import Adapter from 'enzyme-react-adapter-future'
Enzyme.configure({ adapter: new Adapter() })
|
define(['ngApp'], function (ngApp) {
return ngApp.directive('petForm', function () {
return {
restrict: 'C',
controller: ['$scope', '$element', '$http', '$mdToast', 'dataParserService',
function ($scope, $element, $http, $mdToast, dataParserService) {
... |
$(document).ready(function(){
//------ SEQUENCE D'ACCUEIL SUR HOMEPAGE ---------//
TweenMax.to(".title", 3, {opacity:1, top:"0"});
TweenMax.to("#imgDev", 3, {opacity:1, delay:4});
TweenMax.to('#imgMusic', 3, {opacity:1, delay:3});
//------ GESTION DES LIENS HOME PAGE ---------//
$( "#imgDev" )
.mouse... |
import React, { lazy } from 'react'
const Login = lazy(() => import('../Base/Login'))
const LoginPage = () => {
return (
<>
<div className="Container-main">
<Login/>
</div>
</>
)
}
export default LoginPage
|
const fetch = require("node-fetch");
module.exports = class VOID {
constructor(token, client) {
this['token'] = token;
this['client'] = client;
return this;
}
serverCount(message) {
fetch(`https://disbotlist.top/api/bots/stats`, {
method: 'POST',
headers: {
'serverCount':... |
const express = require('express');
const router = express.Router();
module.exports = (db) => {
router.get("/", (req, res) => {
let query = `SELECT *, orders.id AS order_id, CURRENT_TIMESTAMP - date AS time_in_queue, status FROM orders JOIN users ON users.id = user_id WHERE orders.status = 'paid';`
console... |
const expect = require('chai').expect;
const generateCustomerSalesMap = require('../acme');
describe('generateCustomerSalesMap', ()=>{
it('exists', () => {
expect(generateCustomerSalesMap).to.be.ok;
});
it('converts two arrays to one object', ()=> {
expect(generateCustomerSalesMap([],[])).... |
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import axios from 'axios'
import Header from './Header'
import Player from './Player'
import RelatedVideos from './RelatedVideos'
const apiKey = 'AIzaSyBB9LBxNmwDosU6hf6-AsPJgoGc4TaTpUw'
const uploadPlaylistId = 'UUIi1h9LoV9fefFTucM8bRtw'... |
'use strict';
/**
* @ngdoc function
* @name dssiFrontApp.controller:ChecklistItemGroupCreateCtrl
* @description
* # ChecklistItemGroupCreateCtrl
* Controller of the dssiFrontApp
*/
angular.module('dssiFrontApp')
.controller('ChecklistItemGroupCreateCtrl', function ($scope, ChecklistItemGroup, $uibModal, notifi... |
var searchData=
[
['myvect',['MyVect',['../class_my_vect.html',1,'']]]
];
|
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySy... |
var express = require('express');
var router = express.Router();
var fs = require('fs');
var http = require('http');
var https = require('https');
/* GET home page. */
router.get('/', function(req, res, next) {
res.sendFile('weather.html',{root: 'public'} );
});
router.get('/getcity', function(req, res, next) {
var... |
const express = require('express');
const router = express.Router();
const {nuevo, mostrar, detallesVehiculo, mostrarRecientes, eliminar, mostrarCarrosById, mostrarImg} = require('../controladores/controlador.carros');
router.post('/nuevo', nuevo);
router.get('/mostrar-recientes', mostrarRecientes);
router.get('/most... |
import Preloader from "../../Common/Preloader/Preloader"
import ProfileStatusWithHooks from "./ProfileStatusWithHooks"
const ProfileInfo = ({profile, status, updateStatus}) => {
if (!profile) {
return <Preloader />
}
return (
<div>
<img src={profile.photos.large} alt="т... |
// NAVBAR ON CLICK
const burger = document.getElementsByClassName("burger");
const navSlider = () => {
const nav = document.querySelector(".desktop");
// TOGGLE NAVBAR
burger.addEventListener("click", () => {
nav.classList.toggle("active");
// BURGER ICON ANIMATE
burger.classList.toggle("animate");
... |
module.exports = require('./user.processor.js');
|
#!/usr/bin/env node
'use strict';
const LarryBnd = require('../index');
const BnDCookbook = LarryBnd.cookbook.BnDCookbook;
const cookbook = new BnDCookbook(process.cwd());
(async function (){
await cookbook.initializeProject();
})(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.