text stringlengths 7 3.69M |
|---|
import React from 'react';
export default class WordTicker extends React.Component {
constructor(props) {
super(props);
this.ticker = React.createRef();
this.rail = React.createRef();
}
componentDidMount() {
setInterval(() => {
const original = this.ticker.current.querySelector('.wordticke... |
'use strict';
//module for form's non-map functions etc.
var addEditForm = (function() {
//submit event is fired on the form...
var pkform = document.getElementById('pk-post-form');
//Form buttons and boxes elements
let addProtocolBtn = document.getElementById('add-protocol-btn');
let addSourceBtn... |
const fs = require("fs");
const Discord = require("discord.js");
const { prefix, token } = require("./config.json");
const permissions = require("./util/permissions");
const client = new Discord.Client();
client.commands = new Discord.Collection();
const commandFiles = fs
.readdirSync("./commands")
.filter((file)... |
function solve() {
const inputForm = document.querySelector('form');
const nameInp = document.querySelector("input[name='lecture-name']");
const dateInp = document.querySelector("input[name='lecture-date']");
const moduleSelect = document.querySelector("select[name='lecture-module']");
const addBtn ... |
var hemera = require('../index');
/**
* Snoozes updates for a specific person
* @param {Object} bot
* @param {Object} message
*/
module.exports = function hi(bot, message) {
bot.startPrivateConversation(message, function(err, convo) {
var targetUser = message.match[1];
var targetUserId = targ... |
import React from "react";
import { Label, Input } from "./Filter.styled";
const Filter = ({ filter, onChange }) => (
<Label>
Find contacts by name
<Input type="text" value={filter} onChange={onChange} />
</Label>
);
export default Filter;
|
/*
Copyright 2016-2018 Stratumn SAS. All rights reserved.
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 l... |
var allCones = Math.floor(Math.random() * 50) + 50;
console.log(allCones);
do {
var cones = Math.floor(Math.random() * 5) + 1;
if (cones > allCones) {
console.log("I cannot sell you " + cones + ", I only have " + allCones + " left.")
} else {
console.log("I sold " + cones + " cones.");
... |
/**
* Created by ianpfeffer on 9/22/15.
*/
var fs = require('fs');
var logger = require('./loggerFactory').getLogger();
var move = function(src, dest) {
};
var symlink = function(src, dest) {
logger.info("commands#symlink: called with src: " + src + " and dest: " + dest);
try {
fs.symlinkSync(src, ... |
import { angleRule } from '../src/index';
describe('angleRule', () => {
it('finds angle 2 to be 60', () => {
const unsolved = {
angles: { 0: 60, 1: 60 },
sides: { 1: 20 },
};
const solved = {
angles: { 0: 60, 1: 60, 2: 60 },
sides: { 1: 20 },
};
expect(angleRule(unsolved))... |
const Customer = require('../models/customerModel');
const { sanitizeBody, check, validationResult } = require('express-validator');
const validation = require('../validation.js');
exports.getCustomers = function (req, res, next) {
var query = Customer.find();
query.select('-__v'); // mongoose internal version... |
define(['services/logger','durandal/app','viewmodels/chatmessage'], function (logger,app,ChatMessage) {
function vm() {
var self = this;
self.title = 'Chat';
self.messages = ko.observableArray([]);
self.newChatMessage = ko.observable('');
self.sendChatMessage = f... |
/* CC3206 Programming Project
Lecture Class: 203
Lecturer: Dr Simon WONG
Group Member: CHAN You Zhi Eugene (11036677A)
Group Member: FONG Chi Fai (11058147A)
Group Member: SO Chun Kit (11048455A)
Group Member: SO Tik Hang (111030753A)
Group Member: WONG Ka Wai (11038591A)
Group Member: YEUNG Chi Shing (11062622A) */
/... |
/**
* Using Rails-like standard naming convention for endpoints.
* GET /things -> index
* POST /things -> create
* GET /things/:id -> show
* PUT /things/:id -> update
* DELETE /things/:id -> destroy
*/
'use strict';
var AWS = require('aw... |
import * as React from 'react';
import { createAppContainer,createSwitchNavigator } from 'react-navigation';
import LoadingScreen from './screens/loadingScreen';
import LoginScreen from './screens/loggingScreen';
import PostScreen from './screens/PostScreen';
import firebase from 'firebase'
import firebaseConfig from '... |
/*******************************************************************************
* Project MCMS, all source code and data files except images,
* Copyright 2008-2015 Grit-Innovation Software Pvt. Ltd., India
*
* Permission is granted to Magma Fin Corp. to use and modify as they see fit.
****************************... |
const Arena = require("./Arena");
const PlayerClan = require("./PlayerClan");
const LeagueStatistics = require("./LeagueStatistics");
const Badges = require("./Badges");
const Achievements = require("./Achievements");
const PlayerCards = require("./PlayerCards");
const FavouriteCard = require("./FavouriteCard");
... |
/**
* Created by dell on 2016/7/13.
*/
jQuery( document ).ready(function( $ ) {
$('.dropdown-toggle').dropdown();
}); |
var bookmarkname=document.title;
var dynamichost=document.location.host;
var countimg=document.createElement('img');
document.onclick=clickOut;
function checkhomepage(){
if (document.getElementById('logo').isHomePage('http://' + document.location.host + '/'))
{
return true;
}else{
return... |
import {createSelector} from 'reselect';
import {prettyFormatTime} from '../utils/time';
export const progress$ = (state) => state.getIn(['player', 'progress']);
export const playing$ = (state) => state.getIn(['player', 'playing']);
export const length$ = (state) => state.getIn(['player', 'length']);
export const sour... |
$(function () {
var $tbody = $('tbody'); //chashowanie selektora//
$tbody //dla $body:
// .on('click', '.box' , handleBoxClick) //event handler dla klikniecie w box
// .on('click', '.clicked button' , remov... |
var player;
var enemyGroup;
var GameCollision = new GameCollision({
objectEvent: "collide",
mode: "async",
fps: 30
});
GameCollision.start();
window.addEvent("domready", function() {
player = new GamePlayer();
stage = new GameStages();
}); |
import React, {Component} from 'react';
import {Field, reduxForm} from 'redux-form';
import RaisedButton from 'material-ui/RaisedButton';
import {Grid, Row, Col} from 'react-flexbox-grid';
import * as AuthActions from '../../actions/authActions';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
... |
var Tappable = require('react-tappable');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(
<Tappable onTap={tapMe} style={{fontSize:'60px', margin:'50px auto' }}
activeDelay={5000}
moveThreshold={1}
onPress={pressMe}
pressMoveThresho... |
/**
* @author:Jacob Cohen
* @description: command call for quote, sends a random quote from array
* @returns: text output (no @)
* Date last edited: 4/2/2018
*/
const CONFIG = require('../../config.json');
const COMMANDO = require('discord.js-commando');
var LINQ = require('node-linq').LINQ;
//quotes to select... |
var LogMessage = require('../model/logMessage');
var getDefaultLogMessages = function (done, fail) {
LogMessage.find({}, function (err, results) {
if (!err) {
done(results);
} else {
fail(err);
}
});
}
var writeLogMessage = function (input, done, fail) {
var lm = new LogMessage({
application : input.... |
/**
* Created by Knaufux on 8/31/2015.
*/
module.exports = {
punch: {
baseDamage: 1,
baseAoE: 24,
repetition: 0,
randomizePos: 5,
offSet: 10,
defaultCharge: false,
graphic: "Attack2"
}
}; |
export const LOGIN_USER = 'LOGIN_USER';
export const LOGIN_USER_SUCCESS = 'LOGIN_USER_SUCCESS';
export const LOGIN_USER_FAIL = 'LOGIN_USER_FAIL';
export const LOGOUT_USER = 'LOGOUT_USER';
export const CREATE_USER = 'CREATE_USER';
export const CREATE_USER_SUCCESS = 'CREATE_USER_SUCCESS';
export const CREATE_USER_FAIL ... |
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import Actions from './actions';
class TaskBar extends React.Component {
constructor() {
super();
this.handleSubmit = this.handleSubmit.bind(this);
}
handleSubmit(e) {
e.preve... |
import React from 'react';
import styles from './_city-switcher.module.scss';
import Flex from '../../../UI/Flex';
import { ReactComponent as GeoIcon } from './../../../../static/icons/geo.svg';
import { ReactComponent as ArrowDown } from './../../../../static/icons/arrow-down.svg';
import { Select } from 'antd'... |
import React, { Component, PropTypes } from 'react'
import { Link } from "react-router";
export default class CalendarWeek extends Component {
deleteOutfit(){
}
render() {
return (
<div className="calendar-week">
<div className="calendar-week-month">Mars 2016</div>
<div className="calend... |
var list = Array();
var listH = Array();
var max = 10;
var maxH = 10;
var channel = null;
var subKey = null;
var pubKey = null;
var cs = null;
var count = 0;
var highlightCount = 0;
var totalByte=0;
var highlightText = [];
var highlightText2 = [];
var Time = new Date()
var lastTime = 0;
var timer = null;
var show... |
import Uri from 'urijs';
import _ from 'lodash';
export default class CmsApi {
constructor() {
this.init = this.init.bind(this);
this.initSession = this.initSession.bind(this);
this.isInitialized = this.isInitialized.bind(this);
this.getUrl = this.getUrl.bind(this);
this.endpoint = nul... |
import React, { useEffect, useRef } from 'react';
import Head from 'next/head'
import styles from '../styles/Home.module.css'
import Footer from '../components/footer';
import hljs from 'highlight.js';
class ItemsAdder extends React.Component {
constructor(props) {
super(props);
this.state = {
items: ... |
var test = 'test file';
console.log(test);
|
import React, { Component } from 'react';
import Nav from './components/Nav';
import Me from './components/Me';
import Home from './components/Home';
import Skills from './components/Skills';
import Portfolio from './components/Portfolio';
import About from './components/About';
import Contact from './components/Contac... |
const localScore = (() => {
const saveScore = (scene) => {
if (localStorage.getItem('score') === null) {
localStorage.setItem(
'score',
// eslint-disable-next-line
JSON.stringify(scene.delayLevel - scene.time._active[0].delay)
);
}
};
const saveName = (user) => {
i... |
import React, { useState, useEffect } from "react";
import ProfileForm from "./ProfileForm";
import firebaseDb from "../../services/firebase/firebaseConfig";
import { fireDb } from "../../services/firebase/firebaseConfig";
import FetchDoctor from './FetchDoctor'
const Profile = () => {
const [user, setUser] = useSta... |
import { useEffect, useReducer } from "react";
import { API, Auth, graphqlOperation } from "aws-amplify";
import * as queries from "../graphql/queries";
import * as subscriptions from "../graphql/subscriptions";
const initialState = { todos: [] };
function reducer(state, action) {
switch (action.type) {
case "s... |
//''\''
var a= [];
for(var i=1; i<=2; i++) {
a[i] = [];
for(var x=1; x<= 2; x++) {
a[i][x] = parseInt(prompt("Ingrese numero del eje " + i + " y del eje " + x));
document.write("El numero de la columna " + i + " y del la fila " + x +" es: " + a[i][x]+ '</br>');
}
}
var resultado =(a[1][1]*a[2][2])-(a[1][2]*a[2]... |
import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity
} from 'react-native';
import PropTypes from 'prop-types';
export default class SimpleButton extends Component {
render () {
return (
<TouchableOpacity onPress={this.props.onPress}>
<Vie... |
var utils= {
fbtoarr: (fbobj) => {
let returnarr= [];
for(let k in fbobj){
let obj= {};
obj= fbobj[k];
obj.key= k;
returnarr.push(obj);
}
}
};
module.exports= utils; |
import React, { Component } from 'react';
import './App.css';
import Header from './containers/Header'
import Footer from './containers/Footer'
import Slidebar from './containers/Slidebar'
import PlayList from './containers/PlayList'
import Mask from './containers/Mask'
class App extends Component {
render() {
... |
import React from "react"
import EyeCatcher from "./EyeCatcher/index"
import ProductInfo from "./ProductInfo/index"
import Convincer from "./Convincer/index"
import About from "./about_us/index"
class StartPage extends React.Component {
componentDidMount() {
document.title = "Tojj - Digital Kalasinbjudan"
wi... |
import $ from '$';
import _ from 'underscore';
import DRPlot from './DRPlot';
import Endpoint from './Endpoint';
class EditEndpoint extends Endpoint {
constructor(data, doses, eg_table, plot){
super(data);
this.doses = data.doses;
this.eg_table = eg_table;
this.plot_div = plot;
... |
import React, {useEffect, useState} from "react";
import {useHistory} from "react-router-dom";
import {deleteDeck, listDecks} from "../utils/api/index";
function DeckList() {
const history = useHistory();
const [decks, setDecks] = useState([]);
useEffect(() => {
const abortController = new AbortCo... |
/*jshint globalstrict:false, strict:false, maxlen: 5000 */
/*global assertTrue, assertFalse, assertEqual, assertNotEqual, fail, Buffer */
////////////////////////////////////////////////////////////////////////////////
/// @brief test filesystem functions
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2021 Ar... |
export default function printMe(){
// console.log('I get called');
// cosnole.error('errorhhhh');
console.log('Updating print.js..');
} |
const install = (Vue) =>{
// 默认我希望可以将这个router放到任何的组件使用
Vue.mixin({
beforeCreate(){
// 判断是不是根
if(this.$options.router){
// 保存根实例
this._routerRoot = this;
this._router = this.$options.router;
// 路由的初始化
... |
export const RECEIVE_QUESTIONS = 'RECEIVE_QUESTIONS';
export const SAVE_QUESTION_ANSWER = 'SAVE_QUESTION_ANSWER';
export const SAVE_QUESTION = 'SAVE_QUESTION';
export function receiveQuestions (questions) {
return {
type: RECEIVE_QUESTIONS,
questions
}
}
export function questionAnswer (answerToQuestion) {... |
const mongoose = require('mongoose');
let reportUserSchema = mongoose.Schema({
reportedUser: {type: mongoose.Schema.Types.ObjectId, ref: 'User'},
reportedByUsers: [{type: mongoose.Schema.Types.ObjectId, ref: 'User'}],
reason: {type: String, required: true}
});
reportUserSchema.set('versionKey', false);
l... |
function f1() {
var w = parseInt(document.getElementById('w').value);
var h = parseInt(document.getElementById('h').value);
var tl = parseInt(document.getElementById('tl').value);
var co = document.getElementById('co').value;
var al = document.getElementById('al').value;
var im = document.getElementById('im');
im.alt =... |
require("dotenv").config();
const express = require("express");
const fileUpload = require("express-fileupload");
const cors = require("cors");
const app = express();
const userRouter = require("./api/users/user.router");
const organizationRouter = require("./api/organizations/organization.router");
const positionRout... |
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import styles from './layout.module.css'
import Image from 'next/image'
import Carousel from 'react-bootstrap/Carousel'
import Slider from "react-slick";
export default function caroussel(props) {
return (
<div classN... |
import { Avatar, IconButton } from "@material-ui/core";
import {
AttachFile,
InsertEmoticon,
MicRounded,
MoreVert,
SearchOutlined,
} from "@material-ui/icons";
import React, { useEffect, useState } from "react";
import "../chat.css";
import axios from "../axios";
import { useParams } from "react-router-dom";
... |
(function () {
angular
.module('todoList')
.controller('todoCtrl', todoCtrl);
todoCtrl.$inject = ['$scope', 'todos', 'userTodos'];
function todoCtrl ($scope, todos, userTodos) {
//All of the user's tasks from route's resolve
$scope.userTodos = userTodos.data;
$scope.addTodo = addTodo;
$scope.editTodo ... |
import {takeLatest, put} from "redux-saga/effects";
import {FLIGHT_DATE_REQUEST} from "../types";
import axios from "axios";
import {flightDayFailure, flightDaySuccess} from "../actions";
function* flightDateSagaWorker({payload}) {
const {day, month, year} = payload;
const options = {
method: 'GET',
url: `... |
$('#profileCard').on('click', '.follow', (e) => {
const username = e.target.id.split('_')[1]
const was_following = e.target.classList.contains('btn-outline-danger')
const request_method = was_following ? 'DELETE' : 'POST'
$.ajax({
url: `/api/follows/${username}`,
type: request_method,
success: () =>... |
export default {
'': [
'repeating-linear-gradient',
'repeating-radial-gradient',
],
};
|
import React from 'react'
export default function SearchBar({handleChange}) {
return (
<div onChange={handleChange}>
<input className="input is-focused is-normal is-rounded" type="search" name="" id="" placeholder="Find your products"/>
<br></br>
<label className="checkb... |
document.getElementById("id_business_version").innerHTML = "Business version 2018.10.26.6"
document.getElementById("id_start").addEventListener("click", start);
document.getElementById("id_stop").addEventListener("click", stop);
document.getElementById("id_start").disabled = false;
document.getElementById("id_stop").d... |
var fs = require('fs');
var url = require('url');
var path = require('path');
var http = require('http');
var ROOT = __dirname + "/public";
http.createServer(function (req, res) {
if (!hasPermissions(req)) {
res.statusCode = 403;
res.end("Tell me the secret of access");
return;
}
sendFileSafe(url.... |
$(function() {
$('#search-btn').on('click', function() {
let zipcode = $('#search-word').val();
$.ajax({
url:'http://zipcloud.ibsnet.co.jp/api/search',
type:'GET',
dataType: 'jsonp',
data:{
zipcode: zipcode
}
})
// Ajaxリクエストが成功した時発動
.done( (data) => {
co... |
import seatsReducer from './reducers'
export { default as seatsTypes } from './types'
export { default as seatsActions } from './actions'
export default seatsReducer |
import React from 'react';
//Imports MUI
import { Card, SvgIcon } from '@material-ui/core';
import FacebookIcon from '@material-ui/icons/Facebook';
import TwitterIcon from '@material-ui/icons/Twitter';
import InstagramIcon from '@material-ui/icons/Instagram';
import CardActionArea from '@material-ui/core/CardActionAre... |
import { createStore, applyMiddleware, compose } from 'redux';
import reduxImmutableStateInvariant from 'redux-immutable-state-invariant';
import thunk from 'redux-thunk';
import { persistStore, persistReducer } from 'redux-persist'
import storage from 'redux-persist/lib/storage' // defaults to localStorage for web and... |
function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterN... |
import React from 'react';
import Form from 'react-bootstrap/Form';
import rawData from './data.json';
class FilterForm extends React.Component {
filterBeast = event => {
const numOfHorns = parseInt(event.target.value);
let allBeasts = rawData;
if (numOfHorns) {
allBeasts = rawData.filter(beast => ... |
var Zia;
(function (Zia) {
(function (Comparison) {
Comparison[Comparison["Never"] = 0] = "Never";
Comparison[Comparison["Always"] = 1] = "Always";
Comparison[Comparison["Less"] = 2] = "Less";
Comparison[Comparison["Equal"] = 3] = "Equal";
Comparison[Comparison["LessEqual"] =... |
import PropTypes from 'prop-types';
import React from 'react';
const Links = ({ children }) => (
<div className="links">
{children}
</div>
);
Links.propTypes = {
children: PropTypes.node.isRequired,
};
export default Links;
|
'use strict';
import app from '../..';
import Doctor from './doctor.model';
import request from 'supertest';
describe('Doctor API:', function() {
var doc;
// Clear data before testing
before(function() {
User.remove().then(function() {
user = new User({
name: 'Fake User',
email: 'test@examp... |
import React from 'react';
import PageHeader from '../PageHeader';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event'
describe('PageHeader', () => {
it('render correct count if plural', () => {
render(<PageHeader employeeCount={2} onClick={() => { }} />);... |
// Objetivo: Contiene las funciones JavaScript llamadas desde el Sistema ECO.
function validaRut(variable,digit){
/*----------------------------------*/
Sum = 0;
digito = 0;
factor = 2;
largo = variable.length;
while (largo !== 0) {
Sum = Sum + (variable.substring(largo, largo-1) * factor);
... |
"use strict";
import { historyLengthIncreaseSet } from "./outlay.js";
import { paramRefresh } from "./needRefresh.js";
export class NavbarTop {
static hrefOnClick() {
historyLengthIncreaseSet();
location.href = this.href;
return false;
}
static show(options) {
const navbarTop = d... |
//index.js
//获取应用实例
const app = getApp()
const util = require('../../utils/util.js')
var flag = 0;
var touch = [0, 0];
Page({
data: {
time: '',
done: false,
swiperItem: 'swiper_item',
currentItem: '',
current: 1,
classCatch: ['current', 'next', 'prev'],
imgUrls: [
'http://7xo285.com... |
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import { initReactI18next } from "react-i18next";
import translationEng from "./locales/en-US/translation.json";
import translationFre from "./locales/fr-FR/translation.json";
import translationJap from "./locales/ja-JP/transla... |
// JavaScript Document
TOC = [
//manggil default configuratiom
"ini-js/coba-config.js",
//manggil ceritanya
"ini-js/coba-cerita.js",
]; |
const totalGridSize = 600;
let shadowsMode = false;
let rainbowMode = false;
const reset = document.querySelector('#reset')
reset.addEventListener('click', clear)
function clear() {
const rows = document.querySelectorAll('.row');
rows.forEach(row => {
row.parentNode.removeChild(row);
});
gener... |
window.onload = function(){
var game = document.querySelector('.game');
var el = document.createElement('div');
el.classList.add('board');
game.appendChild(el);
var board = new Board(el, 16, 16, 51);
board.create();
// Listen for click events on the field elements
for(var i = 0; i < board.cols... |
import * as yup from 'yup'
export default yup.object().shape({
email: yup.string()
.email('Must be a valid email')
.required('Email is required'),
password: yup.string()
.required('Password is required'),
terms: yup.boolean()
.oneOf([true], "you must agree to terms and cond... |
$(function(){
$(window).on('scroll', function(){
if($(this).scrollTop() > 100){
$('.scroll-to-top').addClass('vis').on('click', function(){
$('html, body').stop().animate({
scrollTop: 0
}, 700);
});
}else{
$('.scroll-to-top').removeClass('vis');
}
});
}); |
export default ({ store, actionCreators }) => {
const { handleDelete, handleError } = actionCreators;
store.dispatch(handleDelete([]));
store.dispatch(
handleError({
searchQuery: "",
emptyResponse: "",
allBeersFetched: "",
})
);
};
|
import React, { Component } from 'react';
import './MonsterInstance.css'
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'
export class MonsterInstance extends Component {
constructor(props){
super(props);
this.state = {
attackDelay: '',
turns: 0,
click: false
}
this.attackNo... |
/*
* index.js - Nicholas V. Giamblanco.
* performs tasks required for the index of this website.
*/
/* Global vars */
var cnvs;
var ctx;
var list;
var type;
/* Global Graphing Vars */
var margin;
var marginOverview;
var selectorHeight;
var width;
var height;
var heightOverview;
var maxLength;
var barWidth;
var ... |
import React from 'react'
import { SpinnerContainer, LoadingText, Loader } from './spinner.styles'
const Spinner = ({
loadingText,
size = '50px',
fontSize = '16px',
...props
}) => {
return (
<SpinnerContainer {...props}>
<Loader size={size} />
{loadingText ? (
<LoadingText fontSize={... |
// Helper functions
// gets the sum of all volume collected between two dates
function sumOfVolume(response) {
let formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
});
let dataObj = [...response.data.data.tokens]
let volumeObj = [...dataObj]
let volumeAr... |
//code to initialize express & body-parser
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const PORT = 8080;
app.use(express.static('./server/public'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
//empty objects that data is push... |
import React from 'react';
import { Route, Switch } from 'react-router-dom'
import Navigation from './Navigation'
import Footer from './Footer'
import Home from './Home'
import Information from './Information'
import Media from './Media'
import Location from './Location'
import Form from './Form'
import Thankyou from '... |
module.exports = options => ({
foo: 'bar',
baz: options.id
});
|
/**
* Created by andycall on 15/5/4.
*/
var modelAccess = require('../models').Access,
modelError = require('../models').Error,
redis = require('./redis'),
staticFunc = require('./static'),
getStatic = staticFunc.getStatic,
EventProxy = require('eventproxy'),
ee = new EventProxy(),
pligin... |
class API {
constructor(ipc, manager, opts={}) {
this.manager = manager
this.opts = opts
ipc.on("feed.all", (e, args) => this.AllFeeds(e, args))
ipc.on("podcast.all", (e, args) => this.AllPodcasts(e, args))
ipc.on("feed.podcast.all", (e, args) => this.AllPodcastsForF... |
require("dotenv").config();
require("./../configs/dbconfig");
const PatientModel = require('./../models/patient.model');
const patients = [
{
name: "Rélu",
lastname: "Mey",
email: "relu@email.com",
password: "123456789",
phoneNumber: "1234567890",
location: {
address: "66 Fake Street",
... |
import React from 'react';
import { Formik } from 'formik';
import * as Yup from 'yup';
const model = '<%=small_model%>';
const FieldsSchema = Yup.object().shape({
<% fields.forEach(function(f){ if(f[1] === 'String') { %>
<%= f[0] %>: Yup.string()
.min(2, 'Must be 2 characters or more!')
.max(3... |
import React, { Component } from 'react';
import { NavigationActions } from 'react-navigation';
import { StatusBar, Platform } from 'react-native';
import {
Button,
Text,
Container,
Body,
Header,
Title,
Icon,
Left,
Right
} from 'native-base';
import MenuTrigger from './sidebar/MenuTrigger';
export d... |
(function() {
'use strict';
angular.module('app')
.component('itemEdit', {
controller: itemEditController,
templateUrl: '/js/item/itemEdit.template.html'
});
itemEditController.$inject = ['$http', '$stateParams', '$state', 'itemService'];
function itemEditController($http, $stateParams, $stat... |
export const appActions = {
setView: (state, payload) => {
return { ...state, app: { ...state.app, view: payload } };
}
};
|
// Ao carregar a página, o jogo é renderizado
window.onload = function() {
var stage = document.getElementById("stage");
var context = stage.getContext("2d");
// Ao pressionar uma tecla o evento "KeyPush" é acionado
document.addEventListener("keydown", keyPush);
//timer();
// Ritmo do jogo
... |
// @cc_on directive
// @cc_on This line should be preserved. |
export const conf = {
key: "123456"
};
|
module.exports = (app) => {
/**
* @swagger
* /login:
* post:
* description: Login to the application
* produces:
* - application/json
* parameters:
* - name: email
* description: Email to use for login.
* in: formData
* required: true... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.