text stringlengths 7 3.69M |
|---|
var value = "472";
document.write("Value: " + value);
document.write("<br />Type: string");
document.write("<br />Value: " + Number(value));
document.write("<br />Type: number");
|
import React, {Component} from 'react';
import * as _ from "lodash";
import SortableTree from "react-sortable-tree";
import 'react-sortable-tree/style.css';
import '../css/ASTVisualizer.css'
let getChildren = (node) => {
switch (node.type) {
case 'Program':
return node.body;
case 'Va... |
import { REQUEST_AUDIT_RULES, RECEIVE_AUDIT_RULES, NOTIFY_AUDIT_REQUEST_ERROR,
DISMISS_AUDIT_REQUEST_ERROR, REQUEST_AUDIT_RULE_FIELDS,
RECEIVE_AUDIT_RULE_FIELDS, SET_AUDIT_RULES_FILTER}
from './netaudit-actions';
let initialState = {
requestingRules: false,
requestError: null,
rul... |
import React from 'react';
import {TouchableOpacity, StyleSheet} from 'react-native';
import {shadowStyle} from '../utils/shadow';
const Card = props => {
return (
<TouchableOpacity
{...props}
activeOpacity={
props.activeOpacity ?? (props.onPress || props.onLongPress ? 0.8 : 1)
}
... |
export * from './employee-card';
|
import React from 'react'
import {Link} from 'react-router-dom'
export default function Product(props) {
const singleProduct = props.product
return (
<div className="media">
<div className="media-left">
<Link to={`/products/${singleProduct.id}`}>
<img className="media-object" src={sing... |
window.onscroll = function() {
menuScroll()
};
function menuScroll() {
var navbar = document.getElementById("myNavbar");
var idLogo = document.getElementById("Logo");
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
navbar.className = "clnavBar" + " j-w3-animate... |
import React from "react";
import PropTypes from "prop-types";
import { Helmet } from "react-helmet";
import { useLocation } from "@reach/router";
import { useStaticQuery, graphql } from "gatsby";
const SEO = ({ title, description }) => {
const { pathname } = useLocation();
const { site } = useStaticQuery(query);
... |
import React, {Component} from 'react'
import {Platform, StyleSheet,Text, View,Image,Dimensions} from 'react-native';
import { Card, ListItem, Button, Icon,Input, Header} from 'react-native-elements'
const SCREEN_WIDTH = Dimensions.get('window').width;
const IMAGE_SIZE = SCREEN_WIDTH - 80;
class singleOrde... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const PENDING_FRIEND_REQUEST = 'pending';
const ACCEPTED_FRIEND_REQUEST = 'accepted';
const friendRequestScheme = new Schema({ //создаем тему запроса
sender_id: Schema.Types.ObjectId,
receiver_id: Schema.Types.ObjectId,
status: {
type: S... |
const input = require('fs').readFileSync('./dev/stdin', 'utf8');
const lines = input.split('\n');
const raio = parseFloat(lines.shift())
const pi = 3.14159
const area = pi * Math.pow(raio, 2)
console.log(`A=${area.toFixed(4)}`) |
export default {
async test({ assert, target, window }) {
const button = target.querySelector('button');
const p = target.querySelector('p');
const eventClick = new window.MouseEvent('click');
await button.dispatchEvent(eventClick);
assert.htmlEqual(p.innerHTML, 'True');
}
};
|
// DO NOT DELETE
import React from 'react'
export const Header = () => {
return (
<header>
<h1 id="title">Dog App</h1>
</header>
)
}
|
$(document).ready(function () {
d = new Date()
let month = String(d.getMonth() + 1);
let day = String(d.getDate());
const year = String(d.getFullYear());
if (month.length < 2) month = '0' + month;
if (day.length < 2) day = '0' + day;
$('.date h3').text(`${day}/${month}/${year}`)
// ... |
const request = require (`request`);
// 1.- Hacer una petición a cualquier pokemon y mostrar sus tipos.
// https://pokeapi.co/
request(`https://pokeapi.co/api/v2/pokemon/ditto`, function (error, response, body){
console.error(`error:`, error);
console.log(`statusCode`, response && respo... |
import React from 'react';
import {observer, inject} from 'mobx-react';
import Food from '../Food/Food';
import Snake from '../Snake/Snake';
import Game from '../../business/Game';
import './Board.css';
import {PIXELS_UNIT} from '../../business/Position';
@inject("snakeStore")
@observer
class Board extends React.Compo... |
function register(env) {
env.addGlobal("file_by_id", handler);
}
function handler(file_id) {
return {};
}
export {
handler,
register as default
};
|
import React from "react"
import styled from "styled-components"
import ClassDot from "../../../svgs/ClassDot"
const ClassKeyCard = ({ classType }) => {
const setStartColor = () => {
switch (classType) {
case "body_burn":
return "#8991ff"
case "yoga":
return "#dc45c7"
case "run... |
import React, { useState } from "react";
import { useDispatch } from "react-redux";
import { useParams } from "react-router-dom";
import { makeStyles } from "@material-ui/core/styles";
import Rating from "@material-ui/lab/Rating";
import Paper from "@material-ui/core/Paper";
import Collapse from "@material-ui/core/Col... |
Ext.define('CBA.model.SchedModel', {
extend: 'Ext.data.Model',
requires:[
'Ext.data.Field'
],
config: {
fields: ['id','bID','start','end','type']
}
}); |
const express = require('express');
const controller = require('./controller');
const massive = require('massive');
require('dotenv').config();
const app = express()
const { SERVER_PORT, CONNECTION_STRING} = process.env;
massive({
connectionString: {connectionString: CONNECTION_STRING}, ssl: {rejectUnauthorized:... |
$(document).ready(function() {
var myLink = $('a[href $= \\.PDF]');
myLink.hide().text('Ara Periyan').show(2000);
}); // End of ready |
angular.module('happoshuApp').
service('SimulationGroupsService', function ($http) {
this.getSimulationGroups = function () {
console.log('Getting simulation groups');
return $http({
method: 'GET',
url: 'http://localhost:9000/api/simulationGroups'
});
};
thi... |
var redis = require('node-redis'),
moment = require('moment'),
moment_range = require('moment-range'),
Q = require("q");
// create redis client
var redisClient = redis.createClient(6379);
var stats = require('./libs/stats')(redisClient);
var fromDate = moment().subtract(2, 'day');
var toDate = moment().su... |
function mostrar()
{
let nota;
//en vez de colocar el minimo y maximo simplifico y saco la resta de una vez del ejer 9
nota = Math.round(Math.random() * 9 + 1);
if (nota >= 9) {
alert(nota + " EXCELENTE");
}else if (nota > 4) {
alert(nota + " APROBÓ")
}else{
alert(nota + " Vamos, la proxima se puede")
... |
import * as constants from "../constants"
export let sourceImageReducer = (state = "", action) => {
let {type, sourceImage} = action
switch (type) {
case constants.SOURCE_IMAGE_RECEIVED:
return sourceImage
default:
return state
}
}
export let extraImagesReducer = (state = [], action) => {
let {t... |
#!/usr/bin/env node
//Echo client program
var net = require('net');
var fs = require('fs');
var stime=new Date().getTime();
var done=0;
function tryToConnect( ip, port ){
done++;
var socket = net.createConnection(port, ip);
socket.on('error', function(err){
console.log( ip + ' ' + port );
... |
var player, player_running, player_collided
var ground, invisGround
var bg, backgroundImage
var enemy, enemyGroup
var gameState = "play"
function preload(){
player_running = loadAnimation("player1.png", "player2.png")
player_collided = loadImage("deadChar.png")
backgroundImage = loadImage("background.jpg")
enemyAn... |
module.exports = {
USERNAME: '[email protected]',
PASSWORD: 'Pairon1Mein0Bandhan1Hain'
} |
/**
* AnonLookup.js
* @file Acquires data on selected IP addresses
* @author Eizen <dev.wikia.com/wiki/User_talk:Eizen>
* @external "mediawiki.util"
* @external "jQuery"
* @external "wikia.ui.factory"
* @external "wikia.window"
* @external "mw"
*/
/*jslint browser, this:true */
/*global mw, jQuery, window, r... |
$(document).ready(function(){
init_tag_event();
init_drop_event();
});
function init_tag_event()
{
$(".dtag").bind("click",function(){
location.href = $(this).find("input").val();
});
}
function init_drop_event()
{
$(".dnode dd a").bind("click",function(){
location.href = $(this).attr("value... |
import { assert, match, spy, stub } from 'sinon';
import { expect } from 'chai';
import proxyquire from 'proxyquire';
describe('create-archive', () => {
let mod, archiveInstance, deps, mockWritable;
beforeEach(() => {
archiveInstance = {
glob: stub(),
directory: stub(),
file: stub(),
... |
/*
* Copyright 2018 ConsenSys AG.
*
* 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 in wr... |
const {Thoughts} = require('../models');
const thoughtsController = {
// get all thoughts
getThoughts(req, res) {
Thoughts.find({})
.select('-__v')
.sort({ _id: -1 })
.then(dbThoughtData => res.json(dbThoughtData))
.catch(err => {
console.log("There was an error. " + err);
... |
class Obstacle1{
constructor(ctx, canvasSize) {
this.ctx = ctx
this.canvasSize = { w: canvasSize.w, h: canvasSize.h}
this.obstacle1Size = {w: 250, h: 250}
this.obstacle1Pos = {x:0, y:this.canvasSize.h-this.obstacle1Size.h-40}
this.speed = {x:15, y: 0}
this.obstacle1... |
import { createStore, applyMiddleware, compose } from "redux";
import createSagaMiddleware from "redux-saga";
import { reducer } from './redux';
import { watcherSaga } from './sagas';
// create the saga middleware
const sagaMiddleware = createSagaMiddleware();
// // dev tools middleware
// const reduxDevTools =
// ... |
(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/search/latest_opening/main" ], {
"1fcc": function(n, e, t) {
t.d(e, "b", function() {
return o;
}), t.d(e, "c", function() {
return a;
}), t.d(e, "a", function() {});
var o = function() {
... |
var MongoClient = require('mongodb').MongoClient
var fs = require('q-io/fs')
var exec = require('child_process').exec;
function url(config, exclude_db){
var user='';
var db = exclude_db?'':'/'+config.database;
if(config.user){
user = config.user+":"+config.password+"@"
}
return user+config.host+":"+con... |
define([
'apps/system3/office/office',
'apps/system3/office/car/car.service'], function (app) {
app.module.controller("office.controller.car.apply", function ($scope, $stateParams, $uibModal, $timeout, carService) {
$scope.carUseInfo = {};
$scope.showNormalCar();
... |
function build_full_space() {
startNode = {pos: -1, player: 2, parent: null, children: [], depth: 0, x_has_won: false, o_has_won: false};
return ttt_recur(startNode);
}
function ttt_recur(node) {
if(node.depth == 10) { return null; }
checkNode = node;
path = [];
while(checkNode != null) {
if(path.in... |
var mongoose = require("mongoose");
var campgrounds = require("./models/campground");
const campground = require("./models/campground");
var comment = require("./models/comment");
var data = [{
name: "hunter valley",
image: "https://images.unsplash.com/photo-1471115853179-bb1d604434e0?ixlib=rb-1.2.1&ix... |
(function (m, v, c, r) {
r.Main = Backbone.Router.extend({
routes : {
'*path' : 'home'
},
home : function () {
new v.Menu();
new v.LogMessageListView({ collection : new c.LogMessageCollection() });
}
});
}(Yarder.Models, Yarder.Views, Yarder.Collections, Yarder.Routers));
|
import marked from 'marked'
import config from './config'
export function loadMd(options = {
containerName: '',
content: '',
}) {
return new Promise((resolve,reject) => {
let container = document.querySelector(options.containerName)
let mdStr = options.content
let interval = 50
let num = 0
le... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsCallSplit = {
name: 'call_split',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/></svg>`
};
|
({
refreshOptions : function(component) {
var self = this;
var action = component.get("c.searchData");
var searchString = component.get("v.name");
var strObject = component.get("v.object");
if (strObject.indexOf("TaxRate") > -1 )
strObject = "User";
action.setParams({
... |
export const RADIUS = 5
export const MOON_RADIUS = 0.6
export const DOME_RADIUS = 20
export const MOON_DISTANCE = 10
export const ARROW_HELPER_LENGTH = 1
export const LOCATIONS = [
{ key: 'beijing', name: 'Beijing', lat: 40.13, lng: 117.10 },
{ key: 'tokoyo', name: 'Tokoyo', lat: 35.65, lng: 139.87 },
{ key: 'sy... |
Ext.define('Gvsu.modules.tender.view.BidList', {
extend: 'Core.grid.GridWindow',
//filterable: true,
filterbar: true,
//sortManually: true,
buildColumns: function() {
var me = this;
var setStyle = function(v,m,r) {
m.tdCls = (r.data.status? '':'g... |
/* eslint-disable no-undef */
$(document).ready(function(){
$("#filter").on("click",function(event){
event.preventDefault();
const name = $("#inputGroupSelect03").val();
$(".gig-card").each(function(i,element){
const checkName = $(element).children(".card-text").children(".card-title").tex... |
/* Guarda informacion */
function Legalizar() {
var documento = $("#txtDocumento").val();
var numero = $("#txtNumero").val();
if (documento != "" && numero != "") {
$.ajax({
type: 'POST',
url: "/Cajero/Legalizar",
data: { documento: documento, numero:... |
import React, { Component } from "react";
import "./index.scss";
class TbLayout extends Component {
constructor(props) {
super(props);
this.state = {
topH: this.props.defaultHeight
? this.props.defaultHeight
: localStorage.getItem(`TbLayoutTopH${this.props... |
import React, { Component } from 'react'
export class Contact extends Component {
constructor(props) {
super(props);
this.state = {
name: "",
email: "",
message: ""
}
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = th... |
import React from "react";
import NavBar from "./NaviBar";
import { Row, Col } from "react-bootstrap";
import "./ResumePage.css";
import webicon from "../picture/webdesignnew.svg";
import photoicon from "../picture/data.svg";
import management from "../picture/creativity_icon.png";
import responsive from "../picture/re... |
import React from 'react';
// import ShowDonor from '../ShowDonor/ShowDonor.react'
// import Search from '../Search/Search.react'
// import Blog from '../Blog/Blog.react'
// import FetchDonors from '../FetchDonors/FetchDonors.react';
// import AddDonor from '../AddDonor/AddDonor.react'
// import LifeCycle from '../Life... |
import React, { useState, useEffect } from 'react';
import { Grid } from '@material-ui/core';
import youtube from './api/youtube';
import { SearchBar, VideoList, VideoDetail } from './components/index';
import './App.css';
const App = () => {
const [videos, setVideo] = useState([]);
const [selectedVideo, setSele... |
var promise = require('bluebird');
require('locus')
var options = {
promiseLib: promise
};
var pgp = require('pg-promise')(options);
var connectionString = 'postgres://localhost:5432/users';
var db = pgp(connectionString);
function getAllUsers(req, res, next) {
db.any('select * from users')
.then(function(da... |
window.esdocSearchIndex = [
[
"rx-cancellable/src/boolean.js~booleancancellable",
"class/src/boolean.js~BooleanCancellable.html",
"<span>BooleanCancellable</span> <span class=\"search-result-import-path\">rx-cancellable/src/boolean.js</span>",
"class"
],
[
"rx-cancellable/src/cancelled.js~canc... |
var packerCmd = require('../packerCmd/packerCmd')(),
fs = require('fs')
module.exports = function(){
//Create a PackerFile Class.
/*
PackerFile
Attrs:
filePath = filePath of the packer.json file IF it exists
builders = [] of builders
provisioners = [] of provisioners
post-process... |
module.exports = function (req, res) {
var credentials = req.credentials;
var apply = new Object;
if (req.param('read') !== undefined) apply.read = (!!req.param('read')) || false;
if (req.param('spam') !== undefined) apply.spam = (!!req.param('spam')) || false;
if (req.param('trash') !== undefined) apply.tr... |
import { h, Component } from 'preact';
import PropTypes from 'prop-types';
import { route } from 'preact-router';
import CommandForm from 'forms/command';
class CreatePage extends Component {
constructor(props) {
super(props);
this.onSubmit = this.onSubmit.bind(this);
this.onReturnToList = this.onReturn... |
import React from "react"
import entryStyles from "./news-entry.module.css"
export default (props) => {
let right;
if(props.image) {
right = (
<div className={entryStyles.withImage}>
<div className={entryStyles.contentText}>{props.content}</div>
<img src={props.image} classNa... |
"use strict";
angular.module('myApp').controller("AuthCtrl", function($scope, $location, AuthFactory,$window) {
$scope.auth = {};
$scope.loggedIn = false;
$scope.registerUser = function(registerNewUser) {
AuthFactory.registerWithEmail(registerNewUser).then(function(didRegister) {
$(".progress").css("visi... |
// our array
let alpha = ["a", "b", "c", "d", "e", "f"];
// storing our array as a string
localStorage.setItem("letters", JSON.stringify(alpha));
let retrievedData = localStorage.getItem("letters");
let alpha2 = JSON.parse(retrievedData);
console.log(retrievedData);
console.log(alpha2);
$(function() {
getJSON();... |
let _Vue
class Store {
constructor (options) {
this.$options = options
// 保存用户配置的mutations和actions
this._mutations = options.mutations || {}
this._actions = options.actions || {}
this._vm = new _Vue({
data: {
$$state: options.state
}
})
this.commit = this.commit.bind(th... |
import AppReducer from './AppReducer';
import AppStore, { AppContext, useAppStore } from './AppStore';
export {
AppReducer,
AppStore as default,
AppStore,
AppContext,
useAppStore,
}; |
function something(c){
var val1=50;
var val2=70;
return c(val1,val2);
}
oper=[add,sub,mul];
function add(x,y){return x+y;}
function sub(x,y){return y-x;}
function mul(x,y){return x*y;}
console.log("___________________");
www0=something(oper[0]);
console.log("Addition is: "+www0);
www1=something(oper[1])... |
import '../styles/globals.css'
import React from 'react'
import SuperTokensReact from 'supertokens-auth-react'
import ThirdPartyEmailPasswordReact from 'supertokens-auth-react/recipe/thirdpartyemailpassword'
import SessionReact from 'supertokens-auth-react/recipe/session'
import SuperTokensNode from 'supertokens-node'
... |
var pOne = document.getElementById("placeholder");
var pTwo = document.getElementById("placeholder2");
var Results = document.getElementById("results");
var container = document.getElementById("container");
var gameOver = document.getElementById("end");
var pOneTurn = false;
var pTwoTurn = false;
var pOneTime = 0;
var ... |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//模块的提取
transport : {
ec : {
files : {
'temp' : ['main.js','autoSelect.js']
}
}
},
//代码合并
concat : {
ec : {
files : {
... |
const fetchData = async (url, method = "GET", data) => {
try {
const response = await fetch(
`https://imp-product-server.herokuapp.com/shops/5ff9ab4b6aa5fa31a4f23783/${url}`,
{
method,
mode: "cors",
headers: {
"Content-Type": "application/json",
"Cache-Contr... |
// 接口
// 1.导入
const http = require("http")
const db = require("./db/index")
const dayjs = require("dayjs")
// 下载依赖包 npm i
// 2.创建
const server = http.createServer()
// 3.开启
server.listen(3000,()=>{
console.log("server is running at port 3000")
})
// 4.监听
server.on('request',(req,res)=>{
//... |
import React from 'react'
import { mount } from 'enzyme'
import { Callout } from '@blueprintjs/core'
import Error from '../index'
describe('<Error />', () => {
test('displays error', () => {
const error = getError()
const dataSource = getDataSource(error)
const comp = mount(<Error dataSource={dataSource}... |
'use strict';
angular.module('todoTodaySheetApp')
.controller('TaskCtrl', function ($scope, $filter, Task) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
$scope.filter = function() {
console.log(Date())
console.log($filter('filter')(Task.tasks, {canc... |
const fs = require('fs')
const angle = (hrs, min) => {
let result = Math.abs((hrs * 30 + min * 0.5) - (min * 6))
return Math.min(360 - result, result)
}
const num = (_float, _digits) => {
let rounded = Math.pow(10, _digits);
return (Math.round(parseFloat(_float) * rounded) / rounded).toFixed(_digits);
}
function i... |
// @flow
import PIXI from './Pixi';
function application(options): PIXI.Application {
console.warn('ExpoPIXI.application(): is deprecated, use new PIXI.Application(); instead');
return new PIXI.Application(options);
}
export default application;
|
40
"Gilberto Guerrero"
true
false
null
undefined |
angular.module('starter.controllers', [])
.config(function($compileProvider){
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel):/);
})
.controller('WelcomeCtrl', function($scope) {
console.log('Opening welcome page');
})
.controller('AppCtrl', function($scope, $ionicModal, $timeout)... |
class DrawingLine extends PaintFunction{
constructor(contextReal,contextDraft){
super();
this.contextReal = contextReal;
this.contextDraft = contextDraft;
}
onMouseDown(coord,event){
this.contextReal.strokeStyle = canvasSettings.colorStroke; //canvas-... |
module.exports = [{
"question": {
"w0": "صدقه",
"w1": "بلا",
"ind": 2,
"cat_name": "CAUSE-PURPOSE Prevention"
},
"options": [{
"w0": "متوهم",
"w1": "توهم",
"ind": 1,
"cat_name": "Attribute Agent/Object Attribute:Typical Action (adj... |
function maximize_art(fileId) {
var dataObj = {fileId:fileId};
$('#visible-container').addClass('filterBlur');
$('#maximize').load('/modules/ajax/model_modal.php',dataObj);
}
$('#maximize').on('hidden.bs.modal', function () {
$('#visible-container').removeClass('filterBlur');
}); |
import Blocks from './Blocks/index'
import Settings from './Settings'
export { Blocks, Settings }
|
module.exports={
MongoURI:'mongodb+srv://jefferson:[email protected]/test?retryWrites=true'
} |
var express = require("express");
var app = express();
app.use(express.static(__dirname));
app.use(express.static(__dirname + "/assets"));
app.get('/', function(request, response){
response.sendFile("./index.html");
})
app.get('/app', function(request, response){
response.sendFile("./app.html");
})... |
export const buildObjectFromArrays = (keys, values) => {
let newObject = {};
keys.forEach((key, index) => {
newObject[key] = values[index]
})
return newObject;
}
export const pluck = (array, key) => (
array.map(element => element[key])
)
export const sample = (array, size) => {
const result = []
co... |
module.exports.require = {
http: require('http'),
moment: require('moment'),
pubKey: require('../api/api.js').pubKey,
privKey: require('../api/api.js').privKey,
date: new Date()
}; |
import React, { useContext } from "react";
import { StateContext } from "./contexts/StateContext";
function Editor() {
const { setText, setWordsWritten, darkMode } = useContext(StateContext);
const handleInputChange = (e) => {
const words = e.target.innerText;
// save written words to state
setText(wo... |
import { combineReducers } from "redux";
import { signIn } from "./signIn.reducer";
import { validation } from "./validation.reducer";
import { signUp } from "./signUp.reducer";
import { verification } from "./verification.reducer";
export default combineReducers({
signUp,
signIn,
validation,
verificat... |
/**
* 全局属性和方法
*/
$.extend(true, window.gb || (window.gb = {}), {
caches: {
},
table: {
/**
* 格式化 是否循环
*/
fmtIsCycle: function(value, row, index) {
if (value.className == "YES") {
return '<div class="handler isCycle switch-close yes" />';
} else if (value.className == "NO") {
return '<div... |
/*global window */
/*exported by_id */
/*jslint
indent: 2,
vars: true
*/
function by_id(x) {
return window.document.getElementById(x);
}
|
import React, { Component } from 'react';
import '../../src/App.css';
import Home from '../Page/home'
import Brand from '../Page/brand'
import { Link, Route, Redirect } from 'react-router-dom';
import Popup from "reactjs-popup";
import Fade from 'react-reveal/Fade';
import {connect} from 'react-redux'
// import {id_... |
/**
* The shoe is a list of card decks.
*/
cards.Shoe = {
decks: [],
init: function() {
}
};
|
import firebase from 'firebase/app'
import {firebaseConfig} from './config' |
import { showMembers } from "./modules/members.js";
import { showJokes } from "./modules/jokes.js";
import { showCars } from "./modules/cars.js";
const rootContainer = document.querySelector("#root");
const parentContainer = document.createElement("div");
const container = document.createElement("div");
const membersB... |
//Colors at http://www.color-hex.com/color-palette/17804
// http://www.0to255.com/
export const Colors = {
text: {
soft: 'rgba(0, 0, 0, 0.68)',
toString: ()=>'rgba(0, 0, 0, 0.75)',
strong: 'rgba(0, 0, 0, 0.88)',
onDark: {
soft: 'rgba(255, 255, 255, 0.68)',
toString: ()=>'rgba(255, 255, 255... |
(function() {
'use strict';
angular.module('leaderboardController', [])
.controller('leaderboardController', leaderboardController);
leaderboardController.$inject = ['$timeout', '$http', 'ngToast', '$interval', '$filter'];
function leaderboardController($timeout, $http, ngToast, $interval, $fi... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Route } from "react-router-dom";
import "./App.css";
import { Header, Footer, Nav, Breadcrumbs } from "./components";
import { LastProducts, QuickLinks, Cart } from "./pages";
import Blog from "./pages/Blog/Blog... |
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip()
auto_suggest_predicate("#predicate")
auto_suggest_class("#clss")
sessionStorage.clear();
var i = 0
var filtersAdd = false
var prologMap = new Map()
var predColorMap = new Map()
var colors = ['FFC0CB', '98FB98', '66CDAA', 'F5DEB3', 'E0FFFF'... |
import { connect } from 'react-redux';
import Splash from './splash.component';
import { showSplash } from './splash.action';
const mapStateToProps = ({
app: {
splash,
splashed,
config: { modules },
},
}) => ({
splash,
splashed,
modules,
});
export default connect(
mapStateToProps,
{ showSp... |
besgamApp
.controller("surebet", function( $scope, $http, $location ,$localStorage, $filter, dataFactory )
{
$scope.surebets = [];
$scope.imgLoad = 0;
$scope.$on( 'LOAD', function(){ $scope.loading = true } );
$scope.$on( 'UNLOAD', function(){ $scope.loading = false } );
$... |
import React from 'react';
import pages from "./pages";
import { BrowserRouter, Route, Switch, Link } from "react-router-dom";
import "./css/style.sass";
import AutoBahn from "./components/AutoBahn";
function App() {
return (
<div className="App">
{/* <AutoBahn/> */}
<BrowserRouter>
... |
import styled from 'styled-components'
import JSON from '../Texts/Banner.JSON'
const BannerSection = styled.section`
font-family: 'Ubuntu';
display:flex;
flex-direction:column;
height:450px;
align-items:center;
text-align:center;
justify-content:center;
font-size:25px;
backgrou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.