text stringlengths 7 3.69M |
|---|
(function() {
'use strict';
angular
.module('app.math')
.directive('fcMathQuestionBlock', fcMathQuestionBlock);
fcMathQuestionBlock.$inject = ["mathService"];
/* @ngInject */
function fcMathQuestionBlock (mathService) {
var directive = {
bindToController: true,... |
import { useNavigation } from "@react-navigation/native";
import React, { useState } from "react";
import {
ActivityIndicator,
Image,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from "react-native";
import StarRating from "react-native-star-rating-new";
import { PRIMARY_FONT } from "../../cons... |
const prisma = require('../../prisma');
const Command = require('../../structures/Command');
const Util = require('../../util');
module.exports = class SetMaxWebhooks extends Command {
get name() { return 'setmaxwebhooks'; }
get _options() { return {
aliases: ['smw', 'smwh'],
permissions: ['elevated'],
... |
var mutt__mailbox_8h =
[
[ "MUTT_MAILBOX_CHECK_FORCE", "mutt__mailbox_8h.html#ae62751826fa9f9b4ea0502a8595ea235", null ],
[ "MUTT_MAILBOX_CHECK_FORCE_STATS", "mutt__mailbox_8h.html#aa10f1093422ec4cbd542f54e759c99aa", null ],
[ "mutt_mailbox_check", "mutt__mailbox_8h.html#a699c8af5931c0e7156efb889a6e43738", ... |
import { combineReducers } from 'redux';
import themeKey from './themeKey';
import memberList from './memberList'
import winner from './winner'
export default combineReducers({
themeKey,
memberList,
winner
});
|
const passwordValidator = require("password-validator");
const validator = require("email-validator");
const validatePassword = (password) => {
// Create a schema
var schema = new passwordValidator();
// Add properties to it
schema
.is()
.min(5) // Minimum length 5
.has()
.uppercase() // Must h... |
const render = (element, container) => {
const { type, props } = element;
const { children } = props;
const node =
type === 'TEXT_ELEMENT'
? document.createTextNode('')
: document.createElement(element.type);
const keysOfAttributes = Object.keys(props).filter(
(key) => key !== 'children',
... |
var searchData=
[
['caissier',['Caissier',['../classCaissier.html',1,'']]],
['client',['Client',['../classClient.html',1,'']]],
['compareevenement',['CompareEvenement',['../classCompareEvenement.html',1,'']]]
];
|
let str = '-121';
let mRegExp = new RegExp(/^-?[1-9]\d*$/.source);
console.log(mRegExp.test(str));
|
import React, {useState} from 'react'
import Button from '@material-ui/core/Button'
export default function Counter(){
const [counter, setCounter] = useState(0)
const incrementCounter = () => setCounter(counter + 1)
const decrementCounter = () => setCounter(counter - 1)
return (
<div>
... |
<% if (i === 1 && type == "house"){ %> \
<div class="clear_all"></div> \
<% } else if((i + 3) % 4 === 0){ %> \
<div class="clear_all"></div> \
<% } %> \ |
function setup() {
// set the width & height of the sketch
createCanvas(600,400)
// print the time to the console once at the beginning of the run. try opening up the
// web inspector and poking around to see the various values the clock function gives you
}
function draw() {
// check the clock for the cu... |
import React from 'react';
const Index = () => {
return (
<div className="four-o-four text-center">
<h1>404 test</h1>
</div>
);
};
export default Index; |
import Transaction from './src/transaction'
import Blockchain from './src/blockchain'
import { ec as EC } from 'elliptic'
const ec = new EC('secp256k1')
const privateKey = ec.keyFromPrivate("0fca665ee300c79df2b5a838831c753aeead536b0224af0f7e0fd5de83138213")
const walletAddress = privateKey.getPublic('hex')
const bu... |
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema');
class EventSchema extends Schema {
up() {
this.create('events', table => {
table.uuid('id').primary();
table
.uuid('trip_id')
.unsigned()
.references('id')
.inTable('trips')
.onUp... |
$(document).ready(function(){
var $commentBox = $('.commentBox');
$('.commentArea').on('submit', function(event){
//stops page from refreshing
event.preventDefault();
//gets the data from the form
var data = $(this).serializeArray();
// new empty object
var newComment = {};
for (var i=0; i < data.len... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
class NoteItem extends Component {
twoActionButton = () => {
this.props.changeEditStaus() // action 1
//ham lay noi dung truyen vao trong store, de store update vao du lieu -- action 2
// console.log(this.props.note)
thi... |
import React, { useState, useEffect } from 'react'
import { format } from 'date-fns'
import { FiArrowLeft } from 'react-icons/fi'
import { Link } from 'react-router-dom'
import api from '../../services/api'
import {
Container,
Header,
HeaderContent,
BackTo,
Content,
Card,
} from './styles'
const Entities ... |
/*
* https://www.google.com/calendar/render
* ?action=TEMPLATE
* &dates=20161129T230000Z/20161203T100000Z
* &location=somewhere
* &text=some+title
* &details=some+descr
*/
export default function (calendarium) {
const base = 'https://www.google.com/calendar/render?'
// with time
const _makeDateTime = fun... |
import React, { Component } from 'react';
import styled from 'styled-components';
import Typist from 'react-typist';
import { Zoom } from 'react-reveal';
import { Link } from 'react-router-dom';
const MainIntro = styled.h1`
font-family: ${props => props.theme.fonts.openSansSemiBold};
font-weight: 800;
font-size:... |
var rec = require('node-record-lpcm16'),
request = require('request');
rec.start()
|
import { call, apply, put, takeEvery } from 'redux-saga/effects'
import web3 from '../../ethereum/web3'
import { betWizardActionTypes, betWizardUIStates } from '../actions/index.js'
const compiledMatchContract = require('../../ethereum/build/Match.json')
export function* betSaga(action) {
yield put({
ty... |
var dbName = function(){
if(process.env.NODE_ENV === "test") return "testdb";
else return "dbrest";
};
exports.mongodb = {
uri: 'mongodb://localhost:27017/'+dbName()
};
exports.secret = 'lifeiseasyifyouthinkso' |
import React from 'react';
import {Image, StyleSheet, Text, View} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
//config
import color from '../config/color';
import font from '../config/font';
const Rating = ({rating}) => {
var element = [];
var tot = 0;
var count = 1;
for (let... |
import React, { useEffect, useState } from "react";
import { Display } from "./Display";
import "../styles/css/styles.css";
const TranslatedDisplay = (props) => {
const [toText, setToText] = useState("");
const [translatedText, setTranslatedText] = useState("");
useEffect(() => {
setToText(props.editorState... |
import React from 'react'
import {Link} from 'react-router-dom'
import moment from 'moment'
const NoteListItem = ({note}) => {
if(!note) return <div>No Note</div>
return (
<Link className="note-list-item" to={`/notes/${note.id}`}>
<h4>{note.name}</h4>
<p>{moment(note.timestam... |
const express = require("express");
const router = express.Router();
const app = express();
var bodyParser = require("body-parser");
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
const routes = require("./routes/routes");
//const read = require("./routes/read");
/*
let movies = requi... |
import {Component} from 'react'
import './index.css'
const imgResource =
'https://assets.ccbp.in/frontend/react-js/speedometer-img.png'
class Speedometer extends Component {
state = {
speed: 0,
}
increaseSpeed = () => {
const {speed} = this.state
if (speed < 200) {
this.setState(prevState =... |
import React, {Component} from 'react'
import {StackNavigator} from 'react-navigation'
/**
* Screens
*/
console.disableYellowBox = true
import Home from './src/Home'
import Cadastrar from './src/Cadastrar'
import Interno from './src/Interno'
import Preload from './src/preload'
import Receita from './src/receita'
imp... |
function StartDropDown(Obj, Length){
}
function movedown(Obj, Ypos){
Obj.style.top = parseInt(Obj.style.top) + 1 + 'px';
if (parseInt(Obj.style.top) < Ypos) {
setTimeout(movedown(Obj, Ypos), 20);
}
}
|
// The functionality of Objects
const obj = {
firstName:'Arman',
age:31,
greet(){
console.log('Hello '+this.firstName)
}
}
//console.log(obj)
//console.log(obj.greet())
obj.lastName = 'Enzo'
//console.log(obj)
delete obj.lastName
console.log(obj)
// To iterate we use For in loop
|
import axios from 'axios';
import {
ACTIVITY_URI,
ALL_DEVICES_URI,
ADD_MAINTENANCE_LOGS_URI,
DEPLOY_DEVICE_URI,
EDIT_DEVICE_URI,
DELETE_DEVICE_URI,
DELETE_DEVICE_PHOTO,
EVENTS,
RECALL_DEVICE_URI,
SITES,
AIRQLOUDS,
DECRYPT,
QRCODE,
REFRESH_AIRQLOUD,
SOFT_EDIT_DEVICE_URI,
DASHBOARD_AIRQLOU... |
import React, { useEffect, useState } from 'react';
import { Text, View, RefreshControl, StyleSheet, Image, FlatList, Dimensions } from 'react-native';
import { connect } from 'react-redux';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { getAllProducts } from '../store/actions/product';
impo... |
import React, { Fragment } from 'react';
import Header from '../../components/Header';
import ArtworkList from '../../components/ArtworkList';
import { urlEnv, configEnv } from '../../utils/urlEnv';
import Head from '../../components/Head';
import sortBy from 'lodash.sortby';
import wretch from 'wretch';
import configC... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
const Data = require("./Data");
exports.Data = Data;
function setSystemsPath(path) {
exports.systemsPath = path;
}
exports.setSystemsPath = se... |
import ArBasicExample from "./ar-basic";
import ArHitTestExample from "./ar-hit-test";
import VrBasicExample from "./vr-basic";
import VrControllersExample from './vr-controllers';
import VrHandsExample from "./vr-hands";
import VrMovementExample from "./vr-movement";
import XrPickingExample from "./xr-picking";
expor... |
import request from '@/utils/request'
export function scoreList(query) {
return request({
url: '/input/list',
method: 'get',
params: query
})
}
export function updateStatOne(row) {
return request({
url: '/input/updateOne',
method: 'post',
row
})
}
export function updateStatAll(rows) {... |
//Declarando Variáveis
var btnContact = document.querySelector('.vg-btn-contact');
var toggleMenu = document.querySelectorAll('.vg-toggle-menu');
var menuMobile = document.querySelector('.vg-menu-mob');
var btnMenuMobIcon = document.querySelector('.vg-btn-menu-mob ion-icon');
//Page Preloader
window.addEventListener('... |
require("/javascripts/foo");
var FakeAjax = new Object();
$.ajax = FakeAjax;
|
function getNumbers(str) {
let splitString,
numbers = [];
const minNumber = 1,
maxNumber = 9;
splitString = str.split('');
for(let i = 0; i < splitString.length; i++) {
if(splitString[i] >= minNumber && splitString[i] <= maxNumber) {
numbers.push(parseInt(splitString[i]));
}... |
import React, { useContext } from 'react';
export const ListBook = (props) => {
return (
<
li key = { props.id } > { props.text } < span > { props.amount } < /span>
<
button onClick = { null } >
*
<
/button > < /
li >
)
} |
new Vue({
el: '#app', //dentro de este id se trabajara con vue
data: {
valorA: 908526,
valorB: 0,
transporte: 106000
},
methods:{
suma:function(){
return (this.valorA + this.valorB);
},
descuento:function(){
return ((this.valorA +... |
var Game = function(token) {
this.token = token;
this.playersCount = 0;
this.tiles = [];
this.players = [];
this.hasStarted = false;
this.turn = 'W';
this.lastMoveWasBeat = undefined;
// for (var i = 0; i < Game.tilesCount; ++i) {
// this.tiles[i] = [];
// for (var j = 0; j < Game.tilesCount; +... |
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('tasks').truncate()
.then(function () {
// Inserts seed entries
return knex('tasks').insert([
{ task_description: "home page", task_notes: "do it", task_complete: false, project_id: 1 },
{ task_description: ... |
import OrderTable from "./orderTable";
import ProductTable from "./productTable";
export default class TableFactory {
db;
constructor(db) {
this.db = db;
}
createTable(tableName) {
switch (tableName) {
case "orders":
return new OrderTable(this.db.collection("orders"), this.db);
b... |
import { pad } from '../utils/padding';
export function sliceBeats(data, peaks) {
const indices = calculateSliceIndices(data, peaks);
const slices = [];
for(let i = 0; i < indices.length; i++) {
const padded = pad(data.slice(indices[i][0], indices[i][1]), 360);
slices.push(padded);
}
... |
import React from 'react';
import {updateFilters} from '../../services/filters/actions.js';
import {connect} from 'react-redux';
const availableSizes = ['XS', 'S', 'M', 'ML', 'L', 'XL', 'XXL'];
const CreateCheckBox = (props)=>{
return (
<div class="form-check mb-2 mr-sm-2">
<label class="form-check-label">
... |
'use strict';
import React, {Component} from 'react';
import { View, Modal, ScrollView, TouchableHighlight,Text,SafeAreaView, StatusBar, Image, TouchableOpacity, StyleSheet,} from 'react-native';
import {DisplayText, SubmitButton, InputField} from '../../components';
import styles from './styles';
import colors from '... |
import React, { Component, PropTypes } from 'react'
import CSSModules from 'react-css-modules'
import { Link, IndexLink } from 'react-router'
import styles from './button-group.scss'
function getStyleName(props) {
const isLink = props.to || props.href
let style = `btn btn-${props.bsStyle}`
if (props.outline) st... |
/**
* Copyright 2016 Google Inc.
*
* 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... |
const chalk = require("chalk");
async function logMSG(m, command, from, prefix) {
let mediaType = ''
if (m.hasMedia) {
let _mediaType = await m.downloadMedia()
mediaType = await _mediaType.mimetype
}
let numFrom = from.split('@')[0];
let d = new Date();
let _is = command.include... |
const bcrypt = require("bcrypt");
// bcrypt.hash() or bcrypt.hashSync()
// ----------------------------------------------------------------------------
// ENCRYPT or HASH a string
// 1. Encrypt password for sign-up feature
// 2. Encrypt password for seed file that inserts users
// 3. Encrypt password for update passwo... |
import { context as entry } from '../resources/entry';
import { context as project } from '../resources/project';
import { context as client } from '../resources/client';
import { context as activity } from '../resources/activity';
import { context as employee } from '../resources/employee';
import { context as totals... |
Ext.define('Assessmentapp.assessmentapp.shared.com.viewmodel.assessmentcontext.survey.AssessmentQuestionSheetLoaderUIViewModel', {
'extend': 'Ext.app.ViewModel',
'alias': 'viewmodel.AssessmentQuestionSheetLoaderUIViewModel',
'model': 'AssessmentQuestionSheetLoaderUIModel'
}); |
'use strict'
import puppeteer from 'puppeteer'
import cheerio from 'cheerio'
import fetch from 'node-fetch'
import buildQueryString from './buildQueryString'
export default async (config) => {
const queryString = config.queryVars ? buildQueryString(config.queryVars) : ''
const url = `https://news.google.com/s... |
var vt = vt = vt || {};
vt.LogicClass_500120 = cc.Class.extend({
m_view: null,
ctor: function () {},
setTableView: function (view) {
this.m_view = view;
},
refreshTableView: function () {
//this.m_view.reloadData();
},
setVar: function (key, value) {
this[key] = value;
},
run: function (context, t... |
import './app4.css'
import $ from 'jquery'
const localKey = 'app3.active2'
const eventBus = $({})
const m = {
data: {
bool: localStorage.getItem(localKey) || 'no'
},
creat() {},
delete() {},
update(data) {
Object.assign(m.data, data)
eventBus.trigger('m:update')
loc... |
import React from 'react';
import DisplayEvent from "./containers/DisplayEvents"
import { Header, Modal, Button, Icon } from "semantic-ui-react"
import Welcome from './presentational/Welcome'
import EditUserModal from './components/EditUserModal';
import { api } from './services/api';
export default class UserShow ext... |
import React from 'react';
import styled from 'styled-components';
import { AboutSection } from './aboutSection';
import { FooterSection } from './footer';
import { SectionUp } from './LandingPageContent';
import { SectionSlide } from './simpleReactCarousel';
const HomeContainer = styled.div`
width: 100%;
height: ... |
export {default as Card} from './Card'
export {default as Loading} from './Loading'
export {default as Navigation} from './Navigation'
export {default as Footer} from './Footer' |
module.exports = function(app) {
Ember.TEMPLATES['components/header-site'] = require('./template.hbs');
app.HeaderSiteComponent = Ember.Component.extend({
tagName: 'header',
classNames: ['header-site', 'noselect'],
// some cool header logic ...
});
};
|
import firebase from './index';
export default function getAllDoc(coll) {
var db = firebase.firestore();
let temp = [];
return new Promise((resolve) => {
db.collection(coll)
.get()
.then(function (querySnapshot) {
querySnapshot.forEach(function (doc) {
... |
const ModalReducer = (state = {}, action) => {
if(action.type === "openModal"){
var modals = Object.assign({}, state);
modals[action.modal] = true;
return modals;
} else if(action.type === "closeModal"){
var modals = Object.assign({}, state);
modals[action.modal] = false;
return modals;
} ... |
(function(){
//popup part
var btn_popup = document.getElementById("btn_popup");
var popup = document.getElementById("popup");
var popup_bar = document.getElementById("popup_bar");
var btn_close = document.getElementById("btn_close");
var btnCall = document.getElementById("btnCall");
var btn... |
'use strict';
angular.module('myShoppinglistApp')
.controller
(
'StoresCtrl'
, function ($http)
{
var vm = this;
vm.allStores = [];
vm.selectedStore = {};
vm.updateMode = false;
vm.Add_Update = Add_Update;
vm.SelectStore = SelectStore;
vm.DeleteStore = DeleteStore;
Init();
f... |
/** @jsx React.DOM */
var React = require('react'),
Router = require('react-router');
var Util = require('../../util'),
Actions = require('../../actions'),
AuthService = require('../../services/auth'),
Validator = require('validator');
var Header ... |
angular.module('starter.controllers', [])
.controller('DashCtrl', function($scope, $cordovaGeolocation, uiGmapGoogleMapApi, uiGmapIsReady, ngGPlacesAPI) {
var posOptions = {timeout: 10000, enableHighAccuracy: false};
// get user location with ngCordova geolocation plugin
$cordovaGeolocation
.getCurre... |
var books = localStorage.getItem("books");
if (!books) {
books = [];
}
else {
books = JSON.parse(books);
}
var BookManager = /** @class */ (function () {
function BookManager() {
this.table = document.getElementById("myTable");
}
BookManager.prototype.searchBooks = function (searchparam, boo... |
var images = ["f.jpg", "p.jpg", "m.jpg", "d.jpg", "pu.jpg"];
var names = ["Lunawat Family", "Paresh Lunawat", "Smital Lunawat", "Diveet Lunawat", "Purab Lunawat"];
var i = 0;
function update()
{
i++;
if(i > 4 )
{
i = 0;
}
var updatedImage = images[i];
var updatedName = nam... |
function lookerFetchData(url) {
url = url.replace(/(\/\w+\.)txt|html|csv(\?.*)?/, "$1csv$2");
var csvString = UrlFetchApp.fetch(url).getContentText();
var dataIn = Utilities.parseCsv(csvString);
var dataOut = dataIn.map(function(row) {
return row.map(function(val) {
if (val == '') return '';
... |
const express = require('express');
const path = require('path');
const app = express();
/*
*******
routes*
*******
*/
const rindex = require('./routes/index');
const rinvest = require('./routes/investor');
const renterpreneur = require('./routes/enterpreneur');
const rbank = require('./routes/bank');
const rhost_comp... |
import React, { useState } from "react";
import SQUARE from "./components/square";
const App = () => {
const [square, setSquare] = useState(Array(9).fill(null));
const [content, setContent] = useState(true);
const calculateWin = (square) => {
const win = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8],
... |
export const COLUMN_INVOICE_ITEMS = [
{
header: "",
data: "selected",
targets: [0],
orderable: false,
sortable: false,
width: "60px"
},
{
header: "Invoice Item No.",
data: "invoiceItemNo",
targets: [1],
width: "80px",
orderable: true,
className: "text-center"
},
... |
const router = require('express').Router();
const choreSchema = require('../models/chores.js');
const authCheck = require('../middleware/authCheck');
const mongoose = require('mongoose');
const User = require('../models/users.js');
const io_client = require('socket.io-client')
const nodemailer_transporter = require('..... |
/// <reference types="Cypress" />
context('Verify that web app works correctly', () => {
before(() => {
cy.visit('https://web.mvoterapp.com/',{timeout:90000})
})
it("Check the candidates menu is correct",()=>{
cy.get('.col-lg-3 > .Navigation > ul > :nth-child(2) > :nth-child(1) > div.activ... |
var productCardMarkup = `
{{#products}}
<tr class="wishlist-container text-center">
<td class="wishlist-selected p-4 ">
<input type="checkbox" name="" value="{{epi}}" data-product-id="{{empi}}" data-url="{{du}}" data-title="{{dt}}">
</td>
<td class="p-4 ">
<img class="max-w... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defineConfig = void 0;
function defineConfig(config) {
return Object.assign({ protocol: 'ftp' }, config);
}
exports.defineConfig = defineConfig;
exports.default = {};
|
import TreeList from './ui.tree_list.base';
export default TreeList;
import './ui.tree_list.state_storing';
import './ui.tree_list.column_chooser';
import './ui.tree_list.master_detail';
import './ui.tree_list.editing';
import './ui.tree_list.editing_row_based';
import './ui.tree_list.editing_form_based';
import './ui.... |
import React from 'react';
import { useRecoilValue } from 'recoil';
import { totalsState } from './state';
function Totals() {
const totals = useRecoilValue(totalsState);
return (
<div className="container">
<h2 className="title">Totals</h2>
<p>Subtotal: ${totals.subtotal.toFixe... |
import compose from 'koa-compose';
import postsRouter from './posts';
export default function router() {
return compose([
postsRouter.middleware(),
]);
} |
function areaOfTriangle(sideOne ,sideTwo, sideThree){
semiperimeter = 0.5*(sideOne + sideTwo + sideThree);
area = Math.sqrt(semiperimeter * (semiperimeter-sideOne) * (semiperimeter-sideTwo) * (semiperimeter-sideThree));
return area;
} |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var point_1 = require("./point");
var like_button_1 = require("./like-button");
//catch compile time errors
//======== function ========
function log(message) {
console.log(message);
}
var message = 'Hello World';
log(message);
//======== ... |
// @tag full-page
// @require C:\webapps\dlmsprint2a\app.js
|
$(function () {
initPostTable();
initSelTable();
$("#selPostModel .btn-close").click(function () {
closeModal();
});
$("#selSaveBtn").click(function(){
var ids = $("#selTable").bootstrapTable("getSelections");
var ids_arr = "";
if (!ids.length) {
$Jtk.n_warning("请勾选需要关联... |
// A port of the Firefox extension
// https://github.com/palant/searchlinkfix/blob/master/data/content.js
var actualCode = '(' + function() {
'use strict';
var found = null;
var restore = function() {
try {
if (found && ('getAttribute' in found.element) && found.element.getAttribute('hr... |
var width = 600,
height = 600,
blockSize = 20,
widthInBlocks = width / blockSize,
heightInBlocks = height / blockSize;
var game = (function () {
var canvas, ctx,
frameLength,
score,
timeout;
var init = function () {
var $canvas = $('#jsSnake');
if ($canvas.length === 0) {
... |
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('scrobbleAlong.services', []).
factory('baseApi', ['$http', '$log', function($http, $log) {
var apiServiceInstance = {
getApiUrl: function(page, params, callback) {
$http({ me... |
/**
* @author Ignacio González Bullón - <nacho.gonzalez.bullon@gmail.com>
* @since 22/11/15.
*/
(function () {
'use strict';
angular.module('corestudioApp.admin')
.factory('Holiday', Holiday);
Holiday.$inject = ['$resource', 'HOLIDAYS_ENDPOINT'];
function Holiday ($resource, HOLIDAYS_ENDPO... |
import React from "react"
import { connect } from "react-redux"
import {HashRouter as Router, Route, Link, Redirect} from 'react-router-dom'
import styled from "styled-components"
import $ from "jquery"
import Footer from './footer.jsx'
class Cperson extends React.Component {
constructor(props){
super(pro... |
import React from 'react';
import { Form, Button, DatePicker, Typography, message, Statistic, Row, Col } from 'antd';
import { useMutation } from 'react-query';
import MainLayout from '../../Layouts/MainLayout';
import api from '../../Utils/api';
const { Text } = Typography;
const fetchStatistics = async ({ dateFrom,... |
import React from "react";
import RegisterProvider from "./RegisterProvider";
import RegisterPage from "./RegisterPage";
const Register = () => {
return (
<RegisterProvider>
<RegisterPage />
</RegisterProvider>
);
};
export default Register;
|
'use strict';
const {CheckSettings, Region} = require('@applitools/eyes-sdk-core');
function createCheckSettings({ignore, floating}) {
const checkSettings = new CheckSettings(0);
if (ignore) {
ignore = [].concat(ignore);
for (const region of ignore) {
checkSettings.ignoreRegions(new Region(region));
... |
export const decrement = () => {
return {
type: "DECREMENT"
};
};
export const increment = () => {
return {
type: "INCREMENT"
};
};
export const onChange = value => {
return {
type: "CHANGE",
value
};
};
export const onSubmit = e => {
return {
type: "SUBMIT",
e
};
};
export co... |
var dialogsModule = require("ui/dialogs");
var observableModule = require("data/observable");
var ObservableArray = require("data/observable-array").ObservableArray;
var page;
var pageData = new observableModule.fromObject({
groceryList: new ObservableArray([
{ name: "eggs" },
{ name: "bread" },
... |
"use strict"
window.onload = init;
var id = 1;
var canvas;
var width;
var height;
var cx;
var cy;
var socket = null;
var connected = false;
var connectionInterval = 60000;
var trackerData = {};
var targets = {};
var paths = {};
var trackerHistory = [];
var trail = null;
var link = null;
var distThresh = 10000;
var... |
/**
* Copyright (C) 2009 eXo Platform SAS.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This softwar... |
'use strict';
const Q = require('@nmq/q/client');
setInterval( () => {
Q.publish('database', 'create', {id:10});
Q.publish('database', 'udpate', {id:10, name:'Domboo'});
Q.publish('database', 'delete', {id:10, name:'Howdiest'});
Q.publish('network', 'attack', {id:10, name:'Domboo'});
Q.publish('network'... |
'use strict';
/**
* @ngdoc directive
* @name seedApp.directive:shopfront
* @description
* # shopfront
*/
angular.module('seedApp')
.directive('shopfront', function (previewService) {
return {
scope: true,
templateUrl: 'views/shopfront.dir.html',
restrict: 'E',
link: function postLink... |
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const isProd = process.env.NODE_ENV === 'prod';
const resolve = (dir) => {
return path.join(__dirname, '..', dir)
};
module.e... |
import gql from "graphql-tag";
const ABOUT_QUERY = gql`
query About {
about {
title {
en
hun
}
subtitle {
en
hun
}
}
}
`;
export default ABOUT_QUERY; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.