text stringlengths 7 3.69M |
|---|
var globalSolicitudes;
//'../api/v1.0/sesion/'
fetch("../api/v1.0/tablaSolicitudes/",{
method:"GET"
}).then(function (respuesta){
if(respuesta.ok){//si la repuesta devuleve un ok
console.log("ok");
return respuesta.json();
}
}).then(function (solicitudes){
//console.log(solicitudes);
... |
import qiauto from "@qiqi1996/qi-auto";
import common from "../common";
import plugin from "../dist/index.js";
const auto = new qiauto({
"task1": {
module: plugin,
directory: common.path.EXAMPLE
}
})
console.log(auto["task1"]); |
import Block from './block';
import Util from './util';
class Chain{
constructor(){
this.genesis = new Block({
hash: Util.makeHash(),
txns: [],
previous: null
});
this.blocks = [ this.genesis ];
this.latestBlock = null;
}
addBlock(block){
// add block that doesn't have prev... |
import { combineEpics } from 'redux-observable'
import { merge } from 'rxjs/observable/merge'
import { of } from 'rxjs/observable/of'
import 'rxjs/add/operator/map'
import { incrementCounter, decrementCounter } from './actions'
import { INCREMENT_COUNTER, DECREMENT_COUNTER } from './constants'
// Only here for exampl... |
app.factory("uiClassService",[function(){
var imgArray = [{"name":"时钟","class":"fa-clock-o"},{"name":"人物","class":"fa-child"}];
var colorArray = [{"name":"红色","class":"-danger"},{"name":"蓝色","class":"info"}];
return {
getImgArray:getImgArray,
getColorArray:getColorArray
};
function getImgArray(){
ret... |
import React from 'react';
import { MDXProvider } from '../';
import { Box } from '@sparkpost/matchbox';
import Wrapper from './Wrapper';
function Layout(props) {
return (
<Wrapper location={props.location}>
<Box maxWidth="1400" m="0 auto">
<Box as="main" pb={['400', null, '800']} pt="400" px="500"... |
import React from 'react'
import styled, { css } from 'styled-components'
import { blue, white, black, gray60 } from './colors'
import { Icon } from './icons'
import { Flex, Box } from 'grid-styled'
const Tip = styled.div``
const position = ({ position }) => {
switch (position) {
default:
case 'below': {
... |
import React from 'react'
import {useHistory, useLocation} from 'react-router-dom'
import {useEffect} from 'react'
import './Home.css'
import loadingGif2 from '../../shared/images/loadingGif2.gif'
export const Home = () => {
const history = useHistory()
const location = useLocation()
const animalArray = ['... |
import React, { useState, useContext, useEffect } from "react";
import Axios from "axios";
import UserContext from "../Contexts/UserContext";
import { makeStyles } from "@material-ui/core/styles";
import SearchBar from "./SearchBar";
import CardFriends from "./CardFriends";
import CardFriendsWithActions from "./CardFri... |
X.define('modules.user.regist', ["modules.common.global", 'model.userModel', 'modules.user.common','modules.common.cookies','modules.common.md5'], function (global, userModel, common,cookies,md5) {
var view = X.view.newOne({
el: $(".js-myRegist"),
url: X.config.user.tpl.regist,
res: X.confi... |
var fs = require('fs');
var async = require('async');
var logger = require('mylogger');
var listenPort = 22;
var io = require('socket.io')(listenPort);
dl = require('delivery');
// console.log("hi manoj rao");
io.sockets.on('connection', function (sock) {
var delivery = dl.listen(sock);
delivery.on('receive.success',f... |
import React from 'react'
import { Segment, Menu, Card, Image } from 'semantic-ui-react'
const Sidebar = (props) => {
const joinDate = props.activeUser.created_at.split('-')[0]
const totalMiles = props.activeUser.trips.reduce((total, trip) => total + trip.miles, 0)
return (
<Menu vertical flui... |
import React, { Component } from 'react'
import ViewBakesContainer from './ViewBakesContainer'
import '../Styles.css'
import Nav from '../other/Nav'
import LoginHOC from '../other/LoginHOC';
import Footer from '../other/Footer'
export class ViewBakesScreen extends Component {
render() {
return (
... |
var express = require('express')
var router = express.Router()
const mongoose = require("mongoose");
const User = require('../model/user');
const Post = require('../model/post');
const FriendList = require('../model/friendlist');
require('dotenv').config()
mongoose.connect(process.env.DB_URL, {
useNewUrlParser: t... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Image from "../components/image"
import SEO from "../components/seo"
import { auto } from "eol"
import { relative } from "upath"
const PackagesPage = () => (
<Layout>
<SEO title="Packages" />
... |
var http = require('http')
var fs = require('fs')
var app = http.createServer(function(req, res)
{
console.log("url is: ", req.url)
if(req.url === '/')
{
fs.readFile('./views/index.html', 'utf8', function(err, data)
{
if(err) console.log(err)
res.writeHead(2... |
var vt = vt = vt || {};
vt.LogicClass_500190 = 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... |
(function (){
var deleteButtons = document.querySelectorAll('.delete-button');
if (deleteButtons) {
var dialog = new DeployerConfirmDialog();
var selectedUrl = '';
deleteButtons.forEach(function(element) {
element.addEventListener('click', function(event) {
... |
var EBE_PopManager = function(){
var winEl = $(window);
var el = $(".header .popBlock");
var bgEl = el.find(".holder");
var ulEl = el.find(".border ul");
var itemImgEl = ulEl.find("li a img:eq(0)");
if( itemImgEl.length == 0 ){return;}
var loadedCount = 0;
function sizeResizeHandler(){
... |
/**
* Comment Controller
* Created by yuansc on 2017/3/13.
*/
"use strict";
const _ = require('lodash');
const exception = require('../utils/exception');
const genres = require('../utils/genres');
const commentService = require('../service/comment');
let CommentController = module.exports = {};
/**
* @api {post} /... |
import React, { useState, useEffect } from "react";
import CardsRow from "./CardsRow";
import styled from "styled-components";
import CardInfoFull from "./CardInfoFull";
import { useHistory } from "react-router-dom";
const ContainerCardsRow = styled.section`
background-color: rgb(35, 39, 42);
color: rgb(22... |
import React, { useState } from "react";
import { Link } from "react-router-dom";
import { addProduct } from "../actions/productsActions";
import { Formik, Form } from "formik";
import FormikController from "../formikFolder/FormikController";
import { useHistory } from "react-router";
import * as Yup from "yup";
import... |
Player = {
getPlayers: function() {
var players = []
var levelDescription = {
6: 'goleiro bom',
5: 'goleiro regular',
4: 'mais habilidoso',
3: 'habilidoso',
2: 'bom',
1: 'aprendendo'
}
va... |
//=||= jQuery Multiple Select plugin -------------------------------------------\\
// This plugins transforms an HTML select element into a multiple select box
// Author: Federico Ramírez <[email protected]>
// Licence: MIT
// -------------------------------------------------------------------------=||=//
(function($... |
const string = document.getElementsByTagName("pre")[0].textContent;
const inputArray = string.split(/\W+/)
inputArray.forEach( item1 => {
let sum = 0;
inputArray.forEach( item2 => {
sum = Number(item1) + Number(item2);
if(sum===2020) {
console.log('item1: ', item1, 'item2... |
const Users = require(model + "pengguna/users.model")
const Roles = require(model + "pengguna/roles.model")
const { Validator } = require(base+'service/Validator');
const storage = require(base+'service/Storage');
async function index(req, res){
let data = await this.DB('SELECT * FROM pengguna.users u INNER JOIN pe... |
import React, { Component } from 'react';
import axios from 'axios';
import Linkify from 'react-linkify';
import { error_handler } from '../../../utils/error_handlers';
import { api_url } from '../../../config/config';
import BarPlot from './BarPlot';
const linkifyTarget = (href, text, key) => (
<a href={href} key=... |
$(document).keydown(function (event) {
var keyCode = event.keyCode;
switch (keyCode) {
case 27: { cancel(); } break;
//case 13: { console.log($(".panel.window>.edit-button")) } break;
}
});
$(window).resize(function () {
//$(".edit-dialog1").css("max-height", ($("#tabs").height() - 27) ... |
import React from 'react';
import ReactDOM from 'react-dom';
import NavLink from './pages/nav';
import PageA from './pages/page_a';
import PageB from './pages/page_b';
import PageC from './pages/page_c';
import StyledComponentsContainer from './styled-components-demo/container';
import RRWebComponent from './rrweb-dem... |
import events from '../requests/events'
export const REGISTER_EVENT = 'REGISTER_EVENT'
export const UPDATE_EVENT_REVIEW = 'UPDATE_EVENT_REVIEW'
export const GET_EVENTS_PENDING = 'GET_EVENTS_PENDING'
export const GET_EVENTS_SUCCESS = 'GET_EVENTS_SUCCESS'
export const GET_EVENTS_FAILED = 'GET_EVENTS_FAILED'
export con... |
// jscat test_3d.js
var mucko = require("mucko")
var Test = mucko.Test
var Meta = mucko.Meta
var Base = mucko.Base
var Sys = mucko.Sys
// https://bl.ocks.org/niekes/293aa96c653b669ef0ca04fa4f1d5403
function inbrowser_winding_order() {
var d3 = require("d3")
var D3 = require("d3-3d")
let println = Base.pr... |
import React from 'react';
//credits https://materialdesignicons.com/icon/cursor-default-outline
export default function IconCut() {
return (
<svg width={40} height={40} viewBox={'0 0 24 24'} stroke="currentColor">
<path
d="M7.22,11.91C6.89,12.24 6.71,12.65 6.66,13.08L12.17,15.44L20.66,6.96C21.44,... |
import React, { useState } from 'react';
import {View, TextInput, Text, Image, ScrollView, StyleSheet} from 'react-native';
import useAxios from 'axios-hooks'
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'
import { faSearch } from '@fortawesome/free-solid-svg-icons'
const Search = () => {
... |
const updateButton = document.getElementById("update");
const detailsEquipement = document.getElementById("details");
const detailsEquipmentContent = detailsEquipement.cloneNode(true);
const nameEquipement = document.getElementById("nameEquipment").innerText;
const descriptionEquipement = document.getElementById("des... |
../../module/Core/public/js/pnotify.custom.min.js |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React, { Component } from 'react';
import './Searcher.css';
class Searcher extends Component {
render() {
return (
<div className="row">
<div className="search col-md-12">
<div className="top-flex">
<button className="clear-btn col-md-... |
const App = function() {
this.websites = ['onet', 'wp', 'facebook'];
this.links = [];
}
App.prototype.generateLinks = function() {
this.links = this.websites.map(site => {
return 'https://' + site + '.com';
})
let alinks = $('.menu a');
// console.log(alinks);
alinks.each((index, el... |
const express = require("express");
const router = express.Router();
const { User } = require("../models/user");
const jwt = require("jsonwebtoken");
const bcrypt = require("bcrypt");
router.post("/login", async (req, res) => {
try {
let user = await User.findOne({ email: req.body.user.email });
if (!user)
... |
export const FETCH_PLACES = 'fetchPlaces';
export const SET_DETAILS = 'setDetails';
export const FETCH_DETAILS = 'fetchDetails';
export const SET_COMPLETE_DETAILS = 'setCompleteDetails';
|
const axios = require('axios');
const getClima = async(lat, lng) => {
let latitude = encodeURI(lat);
let longitude = encodeURI(lng);
let resp = await axios.get(`https://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longitude}&units=imperial&appid=fbd4749a3a9ba1449ae1783902afe83e`)
if... |
/* function myFunction() {
var fname = document.getElementById("fname").value;
submitOK = "true";
if (fname.length > 255) {
alert... |
import mongoose from "mongoose";
import bcrypt from "bcryptjs";
const UserSchema = new mongoose.Schema(
{
name: {
type: String,
trim: true,
required: "Name is required",
},
email: {
type: String,
trim: true,
unique: "Email already exists",
match: [/.+\@.+\..+/, "Please fill a valid email ad... |
import React from 'react';
import './CourseCard.css';
function CourseCard(props) {
const card = props;
return (
<div className={`coursecard ${card.backgroundColor}`}>
<img
className="coursecard-img"
src={require(`./../../assets/courses/${card.image}`)}
alt={card.title}
/>
... |
import fetch from 'isomorphic-fetch'
const csrfToken = document.querySelector('meta[name=csrf-token]').attributes.content.value
const underscore = (str) =>
str.replace(/[A-Z]/g, (char, index) => (index !== 0 ? '_' : '') + char.toLowerCase())
const camelcase = (str) =>
str.replace(/_[a-z]/g, (char, index) => char... |
'use strict';
angular.module('myShoppinglistApp')
.controller('ItemDialogController', function ($scope, $mdDialog, $http) {
var vm = this;
//model
vm.item = {active:true};
vm.item.name = '';
vm.item.description= '';
vm.item.category = '';
vm.item.size = '';
//functions
vm.Clo... |
import { DeviceEventEmitter } from 'react-native';
import { PView } from 'rnplus';
import tester from '../../tester.js';
import render from './render.js';
class Bridge extends PView {
render = render;
// Events
bindEvents = {
ready() {
tester.log('[Bridge][ready]', this.props.param);
},
acti... |
//页面上部分数据查询 SQL
var changeTime;
changeTime = $("#changeTime option:selected").val(); // 获取选中的项
var statisticsHtml = {
initSlide : function(data) {
var data = {
"changeTime" : changeTime,
"erjibiaozhun" : "desc",
"erjiyonghu" : "desc",
"page" :1,
"rows" :10
}
$.ajax({
url :... |
var express = require('express');
var app = express();
//var server = require('http').createServer(app);
//app.use(express.bodyParser({}));
app.listen(8081);
//app.get('/:phoneNumber', function(req, res){
// console.log(req);
// var p = req.params.phoneNumber;
// console.log(req.route.params);
// console.log( p);
... |
const path = require("path");
const electron = require("electron");
const { app, BrowserWindow, Tray, Menu } = electron;
let mainWindow;
let tray;
app.on("ready", () => {
mainWindow = new BrowserWindow({
height: 500,
width: 300,
frame: false,
resizable: false,
show: false,
webPreferences: {... |
'use strict';
let nombres = ["Acción","Comedia","Terror","Suspenso","Documental","Ciencia Ficción","Aventuras", "Animación","Infantiles","Musical","Fantasía","Drama"]
let generos = [];
let genero;
for (let index = 0; index < nombres.length; index++) {
genero = {
name : nombres[index],
createdAt : new Date(... |
import './styles.css';
import { withInfo } from '@storybook/addon-info';
import { withKnobs } from '@storybook/addon-knobs';
import { addDecorator, configure as reactConfigure } from '@storybook/react';
import React from 'react';
import { TableComponent } from './TableComponent';
const req = require.context('../src/... |
import gql from 'graphql-tag';
const CREATE_RESERVATIONS = gql`
mutation CreateReservation($data: ReservationCreateInput!) {
createReservation(data: $data) {
id
hotelName
name
departureDate
arrivalDate
}
}
`;
export {CREATE_RESERVATIONS};
|
import React from 'react'
import css from '../../lib/css/'
import styles from './styles.js'
import TotalFundsRaised from 'supporticon/components/total-funds-raised'
import TotalSupporters from 'supporticon/components/total-supporters'
export default ({
raisedIcon,
supporterIcon,
campaignUids = []
}) => (
<arti... |
import tw from 'tailwind-styled-components'
/** Div which contains Logo svg */
export const StyledUserDropdown = tw.div`
absolute
top-full
right-0
` |
export default class DemoController {
constructor () {
this.name = 'Demo'
}
} |
const Discord = require("discord.js");
const request = require("request")
exports.name = "invite";
exports.guildonly = false;
exports.run = async (robot, interaction)=>{
var text = `**[>> клик сюды <<](https://discord.com/api/oauth2/authorize?client_id=726865963424677909&scope=bot%20applications.commands&permissi... |
document.write('<applet code="BIOM_API.Legend.class" width="0" height="0" archive="http://authbridge.co/authbridge.co/resources/js/BIOM_API.jar" id="Obj"></applet>');
function GetFeatureAccural(sUserID,iFingerID)
{
var lsFeature = null;
var bmpimage = null;
var isdeviceConnected = null;
try
{... |
const fs = require("fs");
const Parser = require("./parser.js");
const CodeWriter = require("./codeWriter.js");
const path = process.argv[2];
const codeWriter = new CodeWriter();
const stat = fs.statSync(path);
if (stat.isFile()) {
translateVMToASM(path);
} else if (stat.isDirectory()) {
codeWriter.writeInit();... |
import React, { Component } from 'react';
import './static.css';
class Home extends Component {
componentDidMount() {
document.title = 'Home';
}
render() {
return (
<div id='home-page'>
<div className='quote'>DanceTroupe is one of the largest dance organizations at MIT, bringing a unique ... |
/*
* @lc app=leetcode id=189 lang=javascript
*
* [189] Rotate Array
*/
/**
* @param {number[]} nums
* @param {number} k
* @return {void} Do not return anything, modify nums in-place instead.
*/
var rotate = function(nums, k) {
while (k) {
let temp = nums[nums.length - 1];
let i = nums.length... |
import './map-container.scss'
import FireImage from './markers/fire-marker.png'
import SelectedFireImage from './markers/fire-marker-selected.png'
import L from 'leaflet'
import 'leaflet/dist/leaflet.css'
import PropTypes from 'prop-types'
import React, { useState, useEffect, useRef } from 'react'
import { useResize... |
'use strict';
// API Calls
$(document).ready(function() {
// Call to create a metric
$('#createMetric').submit(function(event){
event.preventDefault();
$.ajax({
url: "http://127.0.0.1:8081/createMetric",
type: "POST",
data: $("#createMetric").serialize(),
... |
angular.module('starter.controllers', [])
.directive('ionSelect', function () {
'use strict';
return {
restrict: 'EAC',
scope: {
label: '@',
labelField: '@',
provider: '=',
ngModel: '=?',
ngValue: '=?',
saveItemSelected: '&'... |
/**
* Google Map
*/
import React, { Component } from 'react';
import GoogleMap from 'google-map-react';
import PropTypes from 'prop-types';
// intl messages
import IntlMessages from 'Util/IntlMessages';
// page title bar
import PageTitleBar from 'Components/PageTitleBar/PageTitleBar';
// rct card box
import RctCol... |
export default context => new CalcService(context);
class CalcService {
constructor(context) {
this.context = context;
}
calculateTotal(operation, firstValue, value) {
return operation == "+" ? firstValue + value
: operation == "-" ? firstValue - value
: operatio... |
import React, { useState, useEffect } from 'react';
import { Link, NavLink, useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import {
HOME_ROUTE,
DOCTORS_ROUTE,
CONTACT_ROUTE,
SELF_ASSESSMENT_ROUTE,
ARTICLES_BASE_ROUTE,
LOGIN_ROUTE,
ABOUT_ROUTE,
} from '../../routes';... |
import Page from "~/pages_shadow/[...slug]";
export default Page;
|
/**
* @overview JavaScript API (GUI parts) for Tenken Application
* @copyright Copyright 2014 FUJITSU LIMITED
*/
/**
* Library's namespace for GUI.
*/
Tenken.GUI = {};
// Flag to define upload is in progress.
Tenken.GUI.Uploading = false;
Tenken.GUI.UploadingSelectMode = false;
Tenken.GUI.Upload... |
import { runInAction } from 'mobx';
import { delay } from '../utils';
import { MockWorkflowStep } from './MockWorkflowStep';
export class TrackStep extends MockWorkflowStep {
async getMainOperation() {
await delay(400);
runInAction(() => (this.workflow.currentStep = 'shopping'));
}
}
|
/*
* Mock replacement for AsapiController
*/
"use strict";
var Promise = require("bluebird");
/**
* Construct a new mock ASAPI controller.
* @return {AsapiController} A Mock ASAPI controller.
*/
module.exports.create = function() {
var onFunctions = {
// event type: [fn, fn]
};
var resolvers =... |
/**
* MyPiece
* @constructor
* @param game - game instance where piece will be used
* @param {string} color - piece's color
* @param representation - piece's internal representation for the server module
* @param initialPosition - piece's initial position in the scene
* @param file - file where piece object is s... |
import Ember from 'ember';
export default Ember.Route.extend({
model(){
return this.store.findAll('category').then(categories => categories.sortBy('categoryName'));
},
afterModel: function(model){
//console.log(model);
},
actions: {
editCategory(category){
this.transitionTo('admin.categories.edit',{ ... |
import React, { PropTypes } from 'react'
const UserDetails = (props) => {
return (
<div className="col-sm-6">
<p>Player: {props.data.login}</p>
<div className="col-sm-8 col-sm-offset-2">
<div className="row"><img src={props.data.avatar_url} /></div>
<div className="row">Login:... |
import React from "react";
export default function Movie(props) {
return (
<div>
<h3>{props.name}</h3>
<h5>{props.price}</h5>
</div>
);
}
|
var router = require('express').Router();
var User = require('../models/user');
router.route('/signin')
.post(function(req, res, next) {
var username;
var password;
if (!(username = req.body.username) ||
!(password = req.body.password))
return res.sendStatus(400);
User.findOne({
username: req.b... |
const test = require('tape');
const pipeFunctions = require('./pipeFunctions.js');
test('Testing pipeFunctions', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof pipeFunctions === 'function', 'pipeFunctions is a Function');
const... |
const mongo = require('mongodb').MongoClient;
let databaseName = 'flaker-dev'; // dev database name here
if(process.env.NODE_ENV === 'production'){
databaseName = 'flaker-prod'; // production database name here
}
module.exports = new Promise((resolve, reject) => {
mongo.connect(process.env.MONGODB_URI, { useN... |
describe('window.bem', function () {
var bem = window.bem;
describe('splitModifiers method', function () {
it('should ignore extra spaces', function () {
// Arrange.
var serializedModifiers = ' is-selected size_xs is-focused ',
expectedModifiers = [
... |
///////////////////////////////////////////////////////////////////////////////
// complexMatrixLib
// v. 1.0 - 2015-11-15
// by JRussi
///////////////////////////////////////////////////////////////////////////////
/* var Matriz = function(linhas,colunas) {
this.linhas: linhas;
this.colunas: colunas;
this.valor;
... |
import { cons } from 'hexlet-pairs';
import startGame from '../game';
import { generateRandomNumber } from '../utils';
const description = 'What is the result of the expression?';
const getRandomOperator = () => {
const operators = ['+', '-', '*'];
const randomIndex = Math.floor(Math.random() * operators.length);... |
import React, { Component } from "react";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import { addLead } from "../../actions/leads";
export class Form extends Component {
constructor(props) {
super(props);
this.state = {
name: "",
email: "",
message... |
import DBHelper from './dbhelper';
let restaurant;
let map;
/**
* Initialize Google map, called from HTML.
*/
if (window.location.pathname === '/restaurant.html') {
window.initMap = () => {
fetchRestaurantFromURL((error, data) => {
if (error) {
// Got an error!
console.error(error);
... |
import React from 'react'
import Tilt from 'react-tilt'
import image from './image.png'
import './logo.css'
const Logo = () => {
return(
<div className='ml3 mb1 mt1'>
<Tilt className="Tilt br2 shadow-3" options={{ max : 65 }} style={{ height: 100, width: 100 }} >
<div className=... |
import {actionTypes} from './actionTypes';
import {AppAPI} from '../../lib';
export const addFavoriteData = (data) => {
return {
type: actionTypes.ADD_FAVORITE,
payload: data,
};
};
export const removeFavoriteData = (data) => {
return {
type: actionTypes.REMOVE_FAVORITE,
pa... |
"use strict";
var gulp = require('gulp');
var gutil = require('gulp-util');
module.exports = function() {
gulp.src('demo/**')
.pipe(gulp.dest('build/demo/'));
gutil.log(gutil.colors.green('Copy demo: build/demo'));
};
|
export function getAllParamsFromUrl() {
const queryString = window.location.search;
return new URLSearchParams(queryString);
}
export function getParamFromUrl(key) {
try {
const urlParams = getAllParamsFromUrl();
if (key) {
if (typeof(key) == "string") {
return urlParams.get(key);
} ... |
import firebase from "firebase/app";
import "firebase/auth";
//import "firebase/database";
import "firebase/firestore";
//import "firebase/functions";
//import "firebase/storage";
const firebaseConfig = {
apiKey: "AIzaSyAhgH4bbYzLsAwX0pyiPW0q8PfOnrSVUoc",
authDomain: "signal-clone-mobile.firebaseapp.com",
projec... |
"use strict";
class BaseError extends Error {
constructor(message, cause) {
super();
this.message = message;
this.cause = cause;
this.name = this.constructor.name;
}
}
class ValidationError extends BaseError {
constructor(name, errors) {
super(`Validation error took place while validating a... |
/**
* @param {number[][]} matrix
* @return {void} Do not return anything, modify matrix in-place instead.
*/
var setZeroes = function (matrix) {
const row = new Set();
let col = new Set();
for (let i = 0; i < matrix.length; i++)
for (let j = 0; j < matrix[0].length; j++)
if (matrix[i][j] === 0) {
... |
import { combineReducers } from 'redux';
import releases from './releases';
const rootReducer = combineReducers({
releases
});
export default rootReducer; |
// see http://thecatapi.com/
const generateCatThumb = function() {
const apiKey = '3e716ca0-8514-4bf0-bc87-4792a37c3ec0';
const userId = 'd0x7pr';
const apiUrl = 'https://api.thecatapi.com/v1/images/search?format=json&size=small';
const fetchOptions = {
headers: {
'Content-Type': 'application/json',
... |
import React from 'react';
import { Typography } from '@material-ui/core';
import { indigo } from '@material-ui/core/colors'
import styled from 'styled-components';
import { containerStyle } from './containerStyle';
import Title from './Title';
const Section = styled.section`
background-color: ${ indigo[50] };
`;
c... |
$(function() {
$("#"+modulo).addClass("nav-active");
$("#"+submodulo).addClass("active");
});
function imprimir_reservas(){
if ($("#rango1").val()=="") {
$("#rango1").focus(); return 0;
}
if ($("#rango2").val()=="") {
$("#rango2").focus(); return 0;
}
var urlcomp = String(url_base).split('?'... |
/**
* @overview JavaScript API (Core & Utilities) for Tenken Application
* @copyright Copyright 2014 FUJITSU LIMITED
*/
/**
* Name Space for Tenken Application
*/
var Tenken = {};
/*********************************************************/
/* Environment parameters
/* Configure following parameters... |
(function(window) {
'use strict';
window.SlackMusicNotifier.init('pandora');
}(window)); |
Ext.define('Assessmentapp.assessmentapp.shared.com.model.assessmentcontext.survey.CounterBeanModel.CounterBeanModel', {
"extend": "Ext.data.Model",
"fields": [{
"name": "questionCount",
"type": "int",
"defaultValue": ""
}]
}); |
/*
** 搜索栏
*/
HROS.searchbar = (function(){
return {
/*
** 初始化
*/
init : function(){
$('#pageletSearchInput').on('click', function(){
return false;
});
$('#search-suggest .resultBox').on('click', 'li', function(){
switch($(this).attr('type')){
case 'window':
HROS.window.create($(th... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
var _excluded = ["className", "dataCellTemplate", "isVerticalGroupOrientation", "leftVirtualCellCount", "leftVirtualCellWidth", "rightVirtualCellCount", "rightV... |
import {images} from '../../Models/Constants';
import React from 'react';
import {TextInput, Button, SafeAreaView, Image, View, Text} from 'react-native';
import style from '../index.style';
import styleProfile from './Profile.style';
import strings from '../../Models/Constants/strings.json';
const Profile = () => {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.