text stringlengths 7 3.69M |
|---|
import React, { Fragment, PureComponent } from "react";
import { Link } from "react-router-dom";
import { withStyles, CardMedia } from "@material-ui/core";
import { Typography, Grid, Card, CardContent } from "@material-ui/core";
import logos from "../../assets/images/logos.png";
import styles from "./homeStyle";
import... |
const express = require("express");
const logfmt = require("logfmt");
const microtime = require('microtime');
const app = express();
app.use(logfmt.requestLogger());
app.get('/', (req, res) => {
res.send('Hello, World!');
});
app.get('/microtime', (req, res) => {
res.send('native time: ' + microtime.nowDouble().... |
import { classNameBindings, classNames } from '@ember-decorators/component';
import BaseCarouselSlide from 'ember-bootstrap/components/base/bs-carousel/slide';
@classNameBindings(
'left:carousel-item-left',
'next:carousel-item-next',
'prev:carousel-item-prev',
'right:carousel-item-right'
)
@classNames('carouse... |
/**
* Copyright 2019 ForgeRock AS. All Rights Reserved
*
* Use of this code requires a commercial software license with ForgeRock AS.
* or with one of its affiliates. All use shall be exclusively subject
* to such license between the licensee and ForgeRock AS.
*/
import BootstrapVue from 'bootstrap-vue';
import {... |
var moogoose = require('mongoose');
moogoose.connect('mongodb+srv://dbUser:123@cluster0.knc4f.mongodb.net/JobtestDB?retryWrites=true&w=majority', { useNewUrlParser: true, useUnifiedTopology: true });
var db = moogoose.connection;
db.on('error', function(err) {
if (err) console.log(err)
});
db.once('open', functi... |
$(function() {
$(".avatar-div-div").mousemove(function(){
$(".avatar-div-div").css("display","inline");
});
$(".avatar-div-div").mouseleave(function(){
$(".avatar-div-div").css("display","none");
});
$("#avatar").mousemove(function(){
$(".avatar-div-div").css("display","inline");
});
$("#avatar").mouseleav... |
import {combineEpics} from 'redux-observable';
import {
exampleEpic
} from './epics/exampleEpic';
export default combineEpics(
exampleEpic
);
|
export { default } from './router'
export { default as args } from './args'
export { default as hash } from './hash'
export { default as params } from './params'
export { default as urlFor } from './urlFor'
|
var validator = require('mongoose-validators');
/**
* @class address
* @classdesc address class contains the address details
*/
var address = {
/** address type must be string and can be maximum 10 characters*/
addressType: { type: String, validate:[validator.isLength(0, 10)] },
/** name... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsMarkEmailUnread = {
name: 'mark_email_unread',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 8.98V18c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h10.1c-.06.32-.1.66-.1 1 0 1.48.65 2.79 1.67 3.71L12 11 4 6v2l8... |
const postCommentURL = "https://blog.styve.digital/wp-json/wp/v2/comments";
const contactForm = document.getElementById("blog-contact");
const successIcon = document.getElementById("form-success-check");
contactForm.addEventListener("submit", validateContactForm);
function submitContactForm() {
const [contactName, ... |
const latitude = document.getElementById('lat');
const longitude = document.getElementById('long');
window.navigator.geolocation.getCurrentPosition((success) => {
const lat = success.coords.latitude;
latitude.setAttribute('value', lat);
const long = success.coords.longitude;
longitude.setAttribute('value', l... |
var FolderMenuItemView = Backbone.View.extend({
initialize: function (options) {
_.bindAll(this, "render", "update", "expand", "collapse");
this.criteria = options.criteria;
this.selected = options.selected;
this.model.bind('change', this.render);
this.model.view = this;
... |
import RentalsController from '../rentals';
export default RentalsController.extend({
actions: {
buttonClick() {
var $add = $(".show-block-rent");
if ($add.hasClass('hidden-block')) {
$add.removeClass('hidden-block');
}
else
$add.addClass('hidden-block');
}
}
});
|
import React, { useState, useEffect } from "react";
import axios from "axios";
import "./App.css";
import Filter from "./components/Filter";
import Countries from "./components/Countries";
const App = () => {
const [countries, setCountries] = useState([]);
const [filteredCountries, setFilteredCountries] = useState... |
/**
* Created by Osvaldo on 20/10/15.
*/
var Mongoose = require('../Banco.js').mongoose;
var types = Mongoose.Schema.Types;
var options = {
toJSON: {
getters: true
},
toObject: {
getters: true
}
};
var situacao = Mongoose.Schema({
nome: {type: types.String, required: true},
... |
// @flow
import * as React from "react";
import { LibraryFactorsPhotosUploadCommon } from "./LibraryFactorsPhotosUploadCommon";
export default function LibraryFactorsPhotosUpload( props )
{
return <LibraryFactorsPhotosUploadCommon filesLocationPrefix="/custom/editions/photo/146x110" { ...props } />;
} |
import React, { Component } from "react";
import CallApi from "../../../api/api";
import "./LoginForm.css";
import classNames from "classnames";
import { withAuth } from "../../../hoc/withAuth";
class LoginForm extends Component {
constructor() {
super();
this.state = {
username: "",
password: "... |
/*******************************************************************************
*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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
* ... |
import React from 'react';
import Context from '../src/context.js';
import '../src/App.css';
import AutoCompleteInput from './AutoCompleteInput';
export default class CityCell extends React.Component {
constructor(props){
super(props);
this.state = {
}
}
consoleLog(newCity,oldCity){
if(ne... |
const {assert} = require("chai");
const Helpers = {
initEthers(ethers) {
this.ethers = ethers;
},
async assertThrowsMessage(promise, message) {
try {
await promise;
console.log("It did not throw :-(");
assert.isTrue(false);
} catch (e) {
const shouldBeTrue = e.message.indexOf... |
$(document).ready(function(){
//cow buttons
//function to hide ps
function hideAllCow() {
$('#cowProductText').hide();
$('#cowFeedText').hide();
$('#cowLandText').hide();
}
//immediately hide everything
hideAllCow();
$('#cowProductText').show();
//when any button is clicked make the text appea... |
const genders = ['male', 'female']
function validate(...validators) {
return data => validators.every(v => v(data))
}
function loginValidator({ gender, searchFor}) {
console.log(gender, searchFor)
return genders.includes(gender)
&& searchFor.length >= 1 && searchFor.length <= 2 && searchFor.every(g => gende... |
$(document).ready(function() {
$("#search_word").change(function() {
var sw = $(this).val().trim();
if(sw===""){
window.alert("you have enterd nothing");
return;
}
$("#body").html("<div id='res'></div>")
var url = "https://en.wikipedia.org/w/api.php?action=query&format=json&list=search... |
// $(document).ready(function () {
// let ptag = $('p');
// })
// $(document).ready(function () {
// let div = $('.container div');
// let count = 1;
// let
// if (count < 10) {
// div.click(function () {
// if (count % 2 == 1 && !$(this).hasClass(clicked) ) {
// ... |
import React from 'react';
import styled from '@emotion/styled';
export const Text = styled.div({
fontSize: '35px',
marginTop: '30%',
textAlign: 'center',
});
export default function NotFoundPage() {
return (
<>
<Text>존재하지 않는 엽서입니다.</Text>
</>
);
}
|
const express = require('express');
const router = express.Router({
mergeParams: true
});
const {
check,
validationResult,
oneOf,
} = require('express-validator/check');
const jwt = require('jsonwebtoken');
require('dotenv').config();
const {
protectedRoute
} = require('../middlewares')
// Require controller mo... |
// Type Coercion - string, number, boolean
console.log( '5' + 5 );
console.log( '5' - 5 );
console.log( '5' == 5 ); |
$(function() {
$( "#dialog" ).dialog({
autoOpen: false,
resizable: true,
height:512,
width:512,
modal: true,
buttons: {
"Rešeno!": function() {
$.ajax({
url: "main/finishOrder",
type: "GET",
... |
import Swiper from './swiper.vue'
export default Swiper
|
module.exports = (req, res, next) => {
if(req.user.credits < 1 ){ //if your cedits are less than 1 that means you cant buy
return res.status(403).send({ error: 'You must add credits to your account'});
}
next();
};
//https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
//to see the status code definition... |
import React, { useContext } from 'react';
import Card from '../cards/Card';
import ProfileContext from '../../context/profile/profileContext';
export const Search = () => {
const profileContext = useContext(ProfileContext);
const { serchResult, language } = profileContext;
return (
<div id="search">
... |
import React from 'react';
import { ScrollView, Text, View, StyleSheet } from 'react-native';
import { ExpoLinksView } from '@expo/samples';
export default function ProfileScreen() {
return (
<ScrollView style={styles.container}>
<View style={styles.profiles}>
<Text>Artist Profile</Text>
</View>
... |
//------------------------------------//
// Week 1 Day 1 //
//------------------------------------//
/* Numbers
isOdd
Input: A Number.
Output: A Boolean. true if the number is odd, otherwise false*/
// isOdd(2);
// isOdd(5);
// isOdd(-17);
//using num % 2 ===0 and num % 2 !==0, is consider a "... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
const express = require('express');
const router = express.Router();
const helper = require('../helper');
const pusher = require('../pusher');
const User = require('../db/controller/user');
let allUsers = [];
module.exports = (passport) => {
router.get('/', helper.isAuth, (req, res) => {
res.send(req.user);
... |
import React from 'react';
import PropTypes from 'prop-types';
const Login = (props) => {
const { onSubmit } = props;
return (<div>
<h2>Log in</h2>
<hr />
<form onSubmit={e => {
e.preventDefault();
const email = document.querySelector('#email').value;
const password = document.querySelector('#passwor... |
import * as React from 'react';
import { View, TouchableOpacity, Text, FlatList, StyleSheet, Image, TouchableHighlight } from 'react-native';
import * as PropTypes from 'prop-types';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import DEFAULT_AVATAR from 'kitsu/assets/img/default_avatar.png';
const... |
function firstReverse(str) {
var str= "Hello My Name is Aisha";
return str.split("").reverse().join("");
}
alert(firstReverse());
var firstFactorial= function(num) {
if (num === 1)
{
return 1;
}
return num * firstFactorial( num - 1);
}
alert(firstFactorial(5));
// keep this fu... |
var Article = function (object) {
this.title = object.title;
this.category = object.category;
this.author = object.author;
this.authorUrl = object.authorUrl;
this.publishedOn = object.publishedOn;
this.body = object.body;
};
Article.prototype.toHTML = function() {
var $article = $('#article').clone();
... |
import * as test from './common/_test';
import * as test2 from './common/_test2';
test.init();
test2.init();
|
var CallidForm;
var pageSize = 25;
/**********************************************************************站臺管理主頁面**************************************************************************************/
//站臺管理Model
Ext.define('gigade.Sites', {
extend: 'Ext.data.Model',
fields: [
{ name: "map_id", type: "... |
/*
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
*/
// This code counts all permutations of a string.
function permutation(str) {
permutation2(str, "");
}
function permutation2(str, prefix) {
if (str.length == 0) {
console.log(prefix);
} else {
for ... |
#! /usr/bin/env node
const getStdin = require("get-stdin");
getStdin()
.then((data) => {console.log(data)})
.catch((err) => {console.log(err)})
// POSIX
// process.stdout.write("Hello world\n");
// console.log("Hello world");
// const readable = process.stdin;
// readable.on('readable', () => {
// let chunk;... |
function Header () {
return(
<header id="main-header">
<div>
<title>Graduation</title>
</div>
<div>
<h1>UNIVERSITY GRADUATION</h1>
</div>
</header>
);
}
export default Header; |
jest.unmock('../components/App');
import React from 'react';
import {shallow} from 'enzyme';
import App from '../components/App';
import Store from '../stores/Store';
const store = new Store();
describe('<App />', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<App store={store} />);
});
aft... |
var router = require('express').Router();
router.get('/new_voted', function(req, res)
{
var eosapp = req.app.get('eosapp');
var bpAccount = req.query.bp_account;
if (typeof bpAccount !== 'string' || bpAccount === '')
{
res.sendStatus(404);
}
else
{
res.json({ accounts: eosapp.getNewVoted(bpAccount) });
}
}... |
app.controller('resourceAddCtrl', function ($scope, $location, resourceSvc, resourceUtilSvc, errorMngrSvc) {
$scope.resource = {};
resourceUtilSvc.createResourceAddFormModel()
.then(function (model) {
$scope.locations = model;
}, function (error) {
errorMngrSvc.handleError();
});
... |
import React from 'react';
import { Col, Row } from '@ctkit/layout';
import Button from '@ctkit/button';
import { styled } from '@ctkit/theme';
import { CardsStyle } from './styles';
export default (function (_ref) {
var loading = _ref.loading,
title = _ref.title,
description = _ref.description,
cta... |
var globalUrl = new Object();
var ctx;
//swagger路径配置-------------------------start-------------------------
//// 用户管理
//url.user = 'http://192.168.80.110:8080/wms-web-user';
//// 系统管理
////url.symgr = 'http://192.168.80.110:8080/wms-web-symgr';
//swagger本地路径配置-------------------------end----------------------... |
import React, { PropTypes } from 'react';
require('./button.scss');
const Button = props => (
<button {...props} className="button" type="button">{props.children}</button>
);
Button.propTypes = {
children: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
]),
};
export default Button;
|
const express = require("express")
let app = express()
const port = 3000
app.set('view engine', 'ejs')
app.use(express.json())
app.use(express.static('public'))
app.use('/css', express.static(__dirname+ 'public/css'))
app.use('/css', express.static(__dirname+ 'public/img'))
app.get('/', (req,res)=>{
res.render("... |
var app = angular.module("komGikkApp");
app.controller("timeCtrl", function($scope, $http, $filter, properties, activityService, timeEventService) {
var prevDate;
var selectedDate;
var nextDate;
function getEvents(year, month, day) {
$http.get(properties.timeeventUrl + "/list/" + year + "/" ... |
export default function() {
this.namespace = '/api';
let rentals = [{
type: 'rentals',
id: 'comanche-niagara-comp',
attributes: {
title: 'Comanche Niagara Comp',
owner: 'Veruca Salt',
rentalpoint: 'Москва',
type: 'Горный',
bedrooms: 24,
image: '../a... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('sweetalert');
require('slug');
/**
* Next, we will create a f... |
export default [
{
path: '/content',
//可以在打包的时候进行代码分片,并异步加载分片后的代码,此方法在官方中是不建议使用的
// component: resolve => {
// require.ensure([], () => {
// resolve(require('../views/content/Main.vue'))
// })
// },
component: require('../views/content/... |
const db = require("../models/index");
const Orders_Products = db.sequelize.define(
"Orders_Products",
{
Orders_ProductsID: {
type: db.Sequelize.INTEGER,
allowNull: false,
autoIncrement: true,
primaryKey: true,
},
ProductID: {
type: db.Sequelize.INTEGER,
allowNull: f... |
$(document).ready(function(){
$.localScroll({
queue:true,
duration:1000,
hash:true
});
var waitForFinalEvent = (function () {
var timers = {};
return function (callback, ms, uniqueId) {
if (!uniqueId) {
uniqueId = "Don't call this twice without a uniqueId";
}
if (timers[uniqueId])... |
'use strict';
angular
.module('playgroundApp')
.controller(
'SignupCtrl',
[
'$scope',
'$location',
'UserService',
function ($scope, $location, UserService) {
$scope.user = {
username: "test",
... |
import {System} from 'gml-system';
import 'gml-polyfills';
import {version, author, name, description} from '../../package.json';
const system = System({
ua: window.navigator.userAgent,
config: { name, version, author, description }
});
window.system = system;
const statements = {};
const folders = require.c... |
{ location:
{ _url:
{ protocol: 'http:',
slashes: true,
auth: null,
host: 'widget.tippebannere.no',
port: null,
hostname: 'widget.tippebannere.no',
hash: null,
search: null,
query: null,
pathname: '/v3/2.0/Frontbox.aspx',
path: '/v... |
const { expect } = require("chai");
const knex = require("knex");
const { test } = require("mocha");
const supertest = require("supertest");
const app = require("../src/app");
const { makePostsArr } = require("./test-helpers");
const testHelpers = require("./test-helpers");
describe("Posts Endpoints", function () {
... |
import React, { useState, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Link as RouterLink } from 'react-router-dom';
import { makeStyles } from '@material-ui/styles';
import {
Card,
CardContent,
CardMedia,
Typography,
Divider,
Link,
Avatar,
B... |
const express = require("express");
const cors = require("cors");
const bcrypt = require("bcrypt-nodejs");
const login = require("./controllers/loginHandler").loginHandler;
const register = require("./controllers/registrationHandler");
const {
patientInsertionHandler,
patientRetriever,
patientRetrieveByDoctorApp... |
const localStore = {}
const isLocalStorageAccessible = (() => {
let isStorageAccessible
return function () {
if (!isStorageAccessible) {
isStorageAccessible = !!(window && window.localStorage)
}
return isStorageAccessible
}
})()
function readLocalStorage (key) {
try {
if (
isLocal... |
import React from 'react';
import { Media, Button } from 'reactstrap';
export default class Product extends React.Component {
render() {
const { product } = this.props;
const baseUrl = '/images/';
return (
<Media>
<Media left top>
<Media obj... |
var leftHalf = slate.operation("move", {
x: "screenOriginX",
y: "screenOriginY",
width: "screenSizeX/2",
height: "screenSizeY"
});
var rightHalf = slate.operation("move", {
x: "screenOriginX+screenSizeX/2",
y: "screenOriginY",
width: "screenSizeX/2",
height: "screenSizeY"
});
var topT... |
const express = require('express');
const router = express.Router();
const { completeUserProfile, isUserExist, addToCart, findUser, adduserLocation, summaTestWA, userOrderPayment, removeFromCart, getUserData, getAllProductInCart, getallproductDataFromCart, userOrdernow, showUserOrders } = require('../controllers/user'... |
/*
Elasticity:
1 - elastic
2 - firm
3 - rigid
Texture:
1 - rough
2 - semi-smooth
3 - smooth
Temperature:
1 - cold
2 - warm
3 - hot
Solidity:
1 - liquid
2 - gel
3 - solid
*/
function Element() {
// Init main variables
this.name;
this.elasticity;
this.texture;
this.temperature;
this.solidity;
th... |
const express = require('express');
const router = express.Router();
const UserController = require('./../controllers/UserController');
const PhoneController = require('./../controllers/PhoneController');
const AuthController = require('./../controllers/AuthController');
const ReportController = require('../controlle... |
function runTest()
{
FBTest.openNewTab(basePath + "commandLine/4209/issue4209.html", function(win)
{
FBTest.openFirebug(function()
{
FBTest.enableConsolePanel(function(win)
{
var config = {tagName: "a", classes: "objectLink objectLink-object"};
... |
var bolognese = document.getElementById("bolognese");
var baked = document.getElementById("baked");
// var avocado = document.getElementById("avocado");
// var roasted = document.getElementById("roasted");
// var half = document.getElementById("half");
// var mushroom = document.getElementById("mushroom");
/... |
import moxios from 'moxios'
const {
__httpClient__,
updateClient,
getAsync,
postAsync,
putAsync,
deleteAsync
} = jest.requireActual('..')
describe('Api', () => {
const data = {
firstName: 'Dimitri',
lastName: 'Kurashvili'
}
const responseData = {
id: 1,
first_name: 'Dimitri',
las... |
angular
.module('app')
.controller('aboutCtrl', ['$scope','Friends', function($scope, Friends) {
$scope.title = "About";
$scope.friends = Friends.get();
$scope.items = ['a', 'b', 'c'];
}]);
|
"use strict"
class DocMerger {
constructor(combinedDoc, doc, pathProcessor) {
this.combinedDoc = combinedDoc
this.doc = doc
this.pathProcessor = pathProcessor
}
mergeDoc() {
if (this.combinedDoc) {
const newDoc = this.newDocAfterRenamingSchemaReferences()
... |
import React from "react"
import { Map, TileLayer, Marker } from "react-leaflet"
// import { icon } from "leaflet"
import { css } from "@emotion/core"
import "leaflet/dist/leaflet.css"
export default ({ position }) => (
<Map
center={position}
zoom={15}
css={css`
@media screen and (max-width: 943p... |
import { put } from "redux-saga/effects";
import { failureList, successList } from "Reducers/people";
import create from "Services/api";
const api = create("people");
export function* getPeople() {
try {
const response = yield api.getAll({});
if (response.ok) {
const { results } = response.data;
... |
function ApiError( message, status, errors ){
this.message = message;
this.status = status;
this.errors = errors || [];
}
ApiError.create = function( err, status ){
if( err instanceof ApiError ){
return err;
} else if( Array.isArray( err ) ){
return new ApiError( 'Multiple Errors', err.status... |
const config = require("../config/db.config.js");
const Sequelize = require("sequelize");
const db = {};
const sequelize = new Sequelize(config.DB, config.USER, config.PASSWORD, {
host: config.HOST,
dialect: config.dialect,
operatorsAliases: 0,
dialectOptions: {
ssl: {
require: true,
rejectUnau... |
/* APIs.js */
var i = 0, treeview;
$(function () {
$("#sampleProperties").ejPropertiesPanel();
var treeview = $("#LayoutSection_ControlsSection_treeview").data("ejTreeView");
});
// Client side APIs
function onExpandAll(args) {
treeview = $("#LayoutSection_ControlsSection_treeview").data("ejTreeView")... |
import {component} from '@reduct/component';
import propTypes from '@reduct/nitpick';
import lighten from 'lightness';
import {loadJs} from './../Utilities/';
const dependencies = [
'https://www.amcharts.com/lib/3/amcharts.js',
'https://www.amcharts.com/lib/3/serial.js',
'https://www.amcharts.com/lib/3/themes/light... |
import React, { useState, useEffect, useRef } from 'react';
import { useDrag } from 'react-use-gesture';
import PropTypes from 'prop-types';
import Icon from '../icon';
export const BottomSheet = (props) => {
const [show, setShow] = useState(props.show);
const [active, setActive] = useState(false);
const [heig... |
window.onload = function(){
const background = document.getElementsByTagName("background");
const order = document.getElementsByClassName("order");
const box = document.getElementsByClassName("ourcontacts");
// const container = document.getElementsByClassName("ourcontacts_container");
//... |
import React from "react";
import {NavLink, Redirect, Route} from "react-router-dom";
import css from "./dialogs.module.css"
import {draftMessageActionCreator, sendMessageActionCreator} from "../../redux/dialogs-reducer";
import Login from "../component/auth";
import {Field, reduxForm} from "redux-form";
const Message... |
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
const CANVAS_HEIGHT = canvas.height;
const CANVAS_WIDTH = canvas.width;
let drawBB = false;
let worldObjects = [];
let worldBullets = [];
let animations = [];
let enemies = [];
let player;
let gameloop;
function circleCollidingWithR... |
$(function() {
var main = $("main"),
fName,
message,
pictureURL,
rankURL,
currency,
amount,
lName,
phone,
tumbD,
tumbU,
messageID,
dealID,
id,
cells = 0,
body = $("body"),
del = $(".delete... |
(function(){
'use strict';
angular.module('app')
.controller('CreateCustomerModalCtrl', CreateCustomerModalCtrl);
CreateCustomerModalCtrl.$inject = ["$scope","$uibModalInstance", "$location", "$window", "omsUtilService"];
function CreateCustomerModalCtrl($scope, $uibModalInstance, $location, $... |
var potions ={
"Healing":
{effect:"This potion’s red liquid glimmers when agitated. Drink to regain 2d4 + 2 hitpoints.",
value:25
},
"Animal Friendship":
{effect:"When you drink this potion, you can cast the animal friendship spell (save DC 13) for 1 hour at will. Agitating this muddy liquid brings l... |
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import * as serviceWorker from './serviceWorker'
import AuthService from "./services/authService";
if (localStorage.token) {
AuthService.setToken(localStorage.token)
}
ReactDOM.render(<App />, document.getElementById('root'))
serv... |
var instruction_8c =
[
[ "CLASSMANAGER_SERV", "instruction_8c.html#a5c7b181a46e1bf752e98109ae790381f", null ],
[ "doCLInit", "instruction_8c.html#a7d9d7f8ad882f517712edf151f60d439", null ],
[ "doInstruction", "instruction_8c.html#af8cd4f0201364dedd1ced41896652716", null ],
[ "doInstructionArray", "instr... |
import { PROMPT_TRACK, NO_MATCH } from '../actions';
export const responseStatus = (state = { error: false }, action) => {
switch (action.type) {
case PROMPT_TRACK:
return {
...state,
error: false,
};
case NO_MATCH:
return {
...state,
error: 'The is no match ... |
import logo from './logo.svg';
import './App.css';
import { useDispatch, useSelector } from 'react-redux';
import { addCustomerAction } from './store/customersReducer'
import { removeCustomerAction } from './store/customersReducer'
import {addCashAction} from './store/cashReducer'
import {getCashAction} from './store/c... |
var ForumPost = {
reply : function(obj){
if(jQuery(".reply-to-this-thread a").attr("active")=="true"){
return;
}else{
var html = '<div class="reply-post-container"><textarea id="reply" name="text" placeholder="write your reply here..."></textarea>';
html += '<div cla... |
import styled from 'styled-components';
const Container = styled.section`
margin: 0 0 0 0;
display: -webkit-flex; /_ Safari _/
display: flex;
flex-direction: column;
`;
export default Container; |
var images = [
"images/google_clone.png",
"images/streetfighter.png",
"images/shopping_list.png",
"images/hot_or_cold.png",
"images/quiz.png",
"images/stackerAJAX.png",
"images/apihack.png"
];
var links = [
"http://scompton.github.io/google-clone/",
"http://scompton.github.io/jquery-streetfighter/",
... |
require('app-module-path').addPath(__dirname);
const express = require('express');
const config = require('config');
const passport = require('passport');
const events = require('events');
let eventEmitter = new events.EventEmitter();
function startApp() {
let app = express();
require('bootstrap/express')(ap... |
import React,{useState} from 'react';
import {View,StyleSheet, TextInput,Alert} from 'react-native';
import CircleButton from '../components/CircleButton';
import KeyboardSafeView from '../components/KeyboardSafeView';
import firebase from 'firebase';
import { translateErrors } from '../utils';
export default funct... |
import React from 'react';
import ReactDOM from 'react-dom';
import Dancer from './Dancer.jsx';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import dummyPeople from '../../../database-mongo/dummyPeople.js'
class Dancers extends React.Component {
constructor(props) {
super(props);
... |
var url = 'http://localhost:8080';
var app = angular.module("myApp", ['ngRoute']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'main.html',
controller: "myCtrl"
})
.when('/etl', {
templateUrl: 'etl.ht... |
'use strict'
var React = require('react-native');
var {
AppRegistry,
View,
Text,
StyleSheet,
Navigator,
Platform,
BackAndroid,
} = React;
/**
* 对Navigator的封装控件
*/
var NavAndroid = React.createClass({
componentWillMount:function() {
if (Platform.OS === 'android') {
BackAndroid.addEven... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.